@polyester/sdk 0.32.2-devnet-20261102211233 → 0.32.2-devnet-20261103155212

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 (102) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/dist/client.d.ts +2 -0
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +2 -0
  5. package/dist/client.js.map +1 -1
  6. package/dist/gen/auth/v1/address_book_pb.d.ts +6 -3
  7. package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
  8. package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
  9. package/dist/gen/auth/v1/auth_pb.d.ts +48 -1
  10. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  11. package/dist/gen/auth/v1/auth_pb.js +48 -1
  12. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  13. package/dist/gen/auth/v1/subaccounts_pb.d.ts +4 -2
  14. package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
  15. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  16. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +1 -1
  17. package/dist/gen/chain/guard/v1/guard_signer_pb.js.map +1 -1
  18. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +16 -1
  19. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
  20. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js +4 -1
  21. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
  22. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +3 -1
  23. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  24. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  25. package/dist/gen/changelog/v1/changelog_pb.d.ts +29 -3
  26. package/dist/gen/changelog/v1/changelog_pb.d.ts.map +1 -1
  27. package/dist/gen/changelog/v1/changelog_pb.js +22 -3
  28. package/dist/gen/changelog/v1/changelog_pb.js.map +1 -1
  29. package/dist/gen/index.js +2 -2
  30. package/dist/gen/ledger/read/v1/ledger_read_pb.js +1 -1
  31. package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +5 -0
  32. package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts.map +1 -1
  33. package/dist/gen/marketoverview/v1/marketoverview_pb.js.map +1 -1
  34. package/dist/gen/orders/v1/orders_pb.d.ts +58 -6
  35. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  36. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  37. package/dist/gen/orders/v1/orders_read_pb.d.ts +97 -7
  38. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  39. package/dist/gen/orders/v1/orders_read_pb.js +36 -22
  40. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  41. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +11 -9
  42. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  43. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  44. package/dist/gen/triggers/v1/triggers_pb.d.ts +53 -11
  45. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  46. package/dist/gen/triggers/v1/triggers_pb.js +38 -10
  47. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  48. package/dist/index.d.ts +4 -1
  49. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  50. package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +19 -0
  51. package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -0
  52. package/dist/services/auto-withdraw/auto-withdraw.codecs.js +61 -0
  53. package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -0
  54. package/dist/services/auto-withdraw/auto-withdraw.d.ts +40 -0
  55. package/dist/services/auto-withdraw/auto-withdraw.d.ts.map +1 -0
  56. package/dist/services/auto-withdraw/auto-withdraw.js +82 -0
  57. package/dist/services/auto-withdraw/auto-withdraw.js.map +1 -0
  58. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +751 -0
  59. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -0
  60. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +238 -0
  61. package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -0
  62. package/dist/services/auto-withdraw/auto-withdraw.types.d.ts +3 -0
  63. package/dist/services/auto-withdraw/service.d.ts +8 -0
  64. package/dist/services/auto-withdraw/service.d.ts.map +1 -0
  65. package/dist/services/auto-withdraw/service.js +9 -0
  66. package/dist/services/auto-withdraw/service.js.map +1 -0
  67. package/dist/services/candles/candles.schemas.d.ts +10 -10
  68. package/dist/services/changelog/changelog.codecs.d.ts +1 -1
  69. package/dist/services/changelog/changelog.codecs.d.ts.map +1 -1
  70. package/dist/services/changelog/changelog.codecs.js +12 -3
  71. package/dist/services/changelog/changelog.codecs.js.map +1 -1
  72. package/dist/services/changelog/changelog.schemas.d.ts +20 -15
  73. package/dist/services/changelog/changelog.schemas.d.ts.map +1 -1
  74. package/dist/services/changelog/changelog.schemas.js +2 -0
  75. package/dist/services/changelog/changelog.schemas.js.map +1 -1
  76. package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
  77. package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
  78. package/dist/services/lifecycle/lifecycle.schemas.d.ts +94 -94
  79. package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
  80. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  81. package/dist/services/orders/orders-batch.schemas.d.ts +14 -14
  82. package/dist/services/orders/orders-output.schemas.d.ts +97 -21
  83. package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
  84. package/dist/services/orders/orders-output.schemas.js +15 -2
  85. package/dist/services/orders/orders-output.schemas.js.map +1 -1
  86. package/dist/services/rewards/rewards.schemas.d.ts +3 -3
  87. package/dist/services/subaccounts/subaccounts.schemas.d.ts +14 -14
  88. package/dist/services/trades/trades.schemas.d.ts +2 -2
  89. package/dist/services/triggers/trigger-input.schemas.d.ts +4 -4
  90. package/dist/services/triggers/triggers-output.schemas.d.ts +40 -32
  91. package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
  92. package/dist/services/triggers/triggers-output.schemas.js +5 -2
  93. package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
  94. package/dist/services/triggers/triggers.codecs.js +7 -3
  95. package/dist/services/triggers/triggers.codecs.js.map +1 -1
  96. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  97. package/dist/shared/connect-error-mapping.js +1 -1
  98. package/dist/shared/connect-error-mapping.js.map +1 -1
  99. package/dist/wired-services.d.ts.map +1 -1
  100. package/dist/wired-services.js +2 -0
  101. package/dist/wired-services.js.map +1 -1
  102. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -44,6 +44,8 @@ import { LedgerTransfer, LedgerTransferSide, ListTransfersInput } from "./servic
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";
46
46
  import { CreateTradingWithdrawToExternalChainServiceInput, CreateTradingWithdrawToFundingServiceInput, PreparedTradingWithdraw, TradingWithdrawSigningConfig, TradingWithdrawWalletSigner } from "./services/trading-withdraws/trading-withdraws.js";
47
+ import { AutoWithdrawCadence, AutoWithdrawPauseReason, AutoWithdrawRunReason, AutoWithdrawRunState, AutoWithdrawStepReason, AutoWithdrawStepState, AutoWithdrawWeekday } from "./services/auto-withdraw/auto-withdraw.codecs.js";
48
+ import { AutoWithdrawDestination, AutoWithdrawDestinationInput, AutoWithdrawPause, AutoWithdrawRule, AutoWithdrawRun, AutoWithdrawSchedule, AutoWithdrawScheduleInput, AutoWithdrawScopedInput, AutoWithdrawStep, DisableAutoWithdrawRuleInput, ListAutoWithdrawRunsInput, ListAutoWithdrawRunsResult, SetAutoWithdrawRuleInput } from "./services/auto-withdraw/auto-withdraw.schemas.js";
47
49
  import { CreateDepositAddressInput, DepositAddress, ListDepositAddressesInput } from "./services/deposit/deposit.schemas.js";
48
50
  import { AddressBook, AddressBookAccountScope, AddressBookEntries, AddressBookEntriesView, AddressBookEntry, AddressBookRecentDestinationsView, AddressBookTag, AddressBookTagSummary, AddressBookView, AddressBookViewInvalidated, CopyAddressBookEntryInput, CreateAddressBookEntryInput, CreateAddressBookTagInput, DeleteAddressBookEntryInput, DeleteAddressBookTagInput, GetAddressBookViewInput, InternalTransferWhitelistEntries, InternalTransferWhitelistEntry, ListAddressBookEntriesInput, ListInternalTransferWhitelistEntriesInput, ListTransferCounterpartiesInput, ListTransferDestinationsInput, MirroredWithdrawWhitelistEntry, SubaccountScopedInput, TransferCounterparties, TransferCounterparty, TransferDestination, TransferDestinations, UpdateAddressBookEntryInput, UpdateAddressBookTagInput, WithdrawWhitelistView, validateCreateAddressBookEntryInput } from "./services/address-book/address-book.schemas.js";
49
51
  import { BatchGuardApprovals, BatchSignProtectedActionInput, CreateGuardSignerWalletResult, ExportGuardSignerWalletResult, GuardApproval, GuardSignerScopedInput, GuardSignerStatus, RotateGuardSignerWalletResult, SignProtectedActionInput } from "./services/guard-signer/guard-signer.schemas.js";
@@ -85,6 +87,7 @@ import "./services/address-book/address-book.types.js";
85
87
  import "./services/api-keys/api-keys.types.js";
86
88
  import "./services/auth/auth.types.js";
87
89
  import "./services/auth/profile/profile.types.js";
90
+ import "./services/auto-withdraw/auto-withdraw.types.js";
88
91
  import "./services/balances/balances.types.js";
89
92
  import "./services/candles/candles.types.js";
90
93
  import "./services/chain-analytics/chain-analytics.types.js";
@@ -121,4 +124,4 @@ import "./services/transfers/transfers.types.js";
121
124
  import "./services/triggers/triggers.types.js";
122
125
  import "./services/vip/vip.types.js";
123
126
  import "./services/zipper/zipper.types.js";
124
- 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 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 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 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 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 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, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
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, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
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>;
@@ -0,0 +1,19 @@
1
+ import "../../gen/chain/withdraw/v1/auto_withdraw_pb.js";
2
+ //#region src/services/auto-withdraw/auto-withdraw.codecs.d.ts
3
+ declare const AUTO_WITHDRAW_CADENCE_VALUES: readonly ["hourly", "daily", "weekly", "biweekly", "monthly"];
4
+ type AutoWithdrawCadence = (typeof AUTO_WITHDRAW_CADENCE_VALUES)[number];
5
+ declare const AUTO_WITHDRAW_WEEKDAY_VALUES: readonly ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
6
+ type AutoWithdrawWeekday = (typeof AUTO_WITHDRAW_WEEKDAY_VALUES)[number];
7
+ declare const AUTO_WITHDRAW_RUN_STATE_VALUES: readonly ["planned", "paying", "completed", "partially_failed", "failed", "skipped"];
8
+ type AutoWithdrawRunState = (typeof AUTO_WITHDRAW_RUN_STATE_VALUES)[number];
9
+ declare const AUTO_WITHDRAW_STEP_STATE_VALUES: readonly ["pending", "submitting", "submitted", "completed", "failed", "skipped"];
10
+ type AutoWithdrawStepState = (typeof AUTO_WITHDRAW_STEP_STATE_VALUES)[number];
11
+ /** Why a rule paused itself. Unknown future reasons pass through as strings. */
12
+ type AutoWithdrawPauseReason = "destination_not_whitelisted" | "destination_invalid" | "authority_revoked" | (string & {});
13
+ /** Why a run was skipped. Unknown future reasons pass through as strings. */
14
+ type AutoWithdrawRunReason = "nothing_to_pay" | "price_unavailable" | "rule_superseded" | (string & {});
15
+ /** Why a step was skipped or failed. Unknown future reasons pass through as strings. */
16
+ type AutoWithdrawStepReason = "below_minimum" | "price_unavailable" | "rule_superseded" | "destination_not_whitelisted" | "authority_revoked" | "gateway_capacity_insufficient" | "withdrawal_released" | "withdrawal_failed" | (string & {});
17
+ //#endregion
18
+ export { AUTO_WITHDRAW_CADENCE_VALUES, AUTO_WITHDRAW_RUN_STATE_VALUES, AUTO_WITHDRAW_STEP_STATE_VALUES, AUTO_WITHDRAW_WEEKDAY_VALUES, AutoWithdrawCadence, AutoWithdrawPauseReason, AutoWithdrawRunReason, AutoWithdrawRunState, AutoWithdrawStepReason, AutoWithdrawStepState, AutoWithdrawWeekday };
19
+ //# sourceMappingURL=auto-withdraw.codecs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auto-withdraw.codecs.d.ts","names":[],"sources":["../../../src/services/auto-withdraw/auto-withdraw.codecs.ts"],"mappings":";;cAGa;KAOD,8BAA8B;cAE7B;KASD,8BAA8B;cAE7B;KAQD,+BAA+B;cAE9B;KAQD,gCAAgC;;KA2DhC;;KAOA;;KAOA"}
@@ -0,0 +1,61 @@
1
+ import "../../gen/chain/withdraw/v1/auto_withdraw_pb.js";
2
+ //#region src/services/auto-withdraw/auto-withdraw.codecs.ts
3
+ const AUTO_WITHDRAW_WEEKDAY_VALUES = [
4
+ "monday",
5
+ "tuesday",
6
+ "wednesday",
7
+ "thursday",
8
+ "friday",
9
+ "saturday",
10
+ "sunday"
11
+ ];
12
+ const AutoWithdrawCadenceCodec = { inputToProto: {
13
+ hourly: 3,
14
+ daily: 1,
15
+ weekly: 2,
16
+ biweekly: 4,
17
+ monthly: 5
18
+ } };
19
+ const AutoWithdrawWeekdayCodec = {
20
+ inputToProto: {
21
+ monday: 1,
22
+ tuesday: 2,
23
+ wednesday: 3,
24
+ thursday: 4,
25
+ friday: 5,
26
+ saturday: 6,
27
+ sunday: 7
28
+ },
29
+ protoToOutput: {
30
+ [0]: "unspecified",
31
+ [1]: "monday",
32
+ [2]: "tuesday",
33
+ [3]: "wednesday",
34
+ [4]: "thursday",
35
+ [5]: "friday",
36
+ [6]: "saturday",
37
+ [7]: "sunday"
38
+ }
39
+ };
40
+ const AutoWithdrawRunStateCodec = { protoToOutput: {
41
+ [0]: "unspecified",
42
+ [1]: "planned",
43
+ [2]: "paying",
44
+ [3]: "completed",
45
+ [4]: "partially_failed",
46
+ [5]: "failed",
47
+ [6]: "skipped"
48
+ } };
49
+ const AutoWithdrawStepStateCodec = { protoToOutput: {
50
+ [0]: "unspecified",
51
+ [1]: "pending",
52
+ [2]: "submitting",
53
+ [3]: "submitted",
54
+ [4]: "completed",
55
+ [5]: "failed",
56
+ [6]: "skipped"
57
+ } };
58
+ //#endregion
59
+ export { AUTO_WITHDRAW_WEEKDAY_VALUES, AutoWithdrawCadenceCodec, AutoWithdrawRunStateCodec, AutoWithdrawStepStateCodec, AutoWithdrawWeekdayCodec };
60
+
61
+ //# sourceMappingURL=auto-withdraw.codecs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auto-withdraw.codecs.js","names":[],"sources":["../../../src/services/auto-withdraw/auto-withdraw.codecs.ts"],"sourcesContent":["import * as Proto from \"../../gen/chain/withdraw/v1/auto_withdraw_pb.js\";\nimport type { InputToProto, ProtoToOutput } from \"../../utils/types.js\";\n\nexport const AUTO_WITHDRAW_CADENCE_VALUES = [\n \"hourly\",\n \"daily\",\n \"weekly\",\n \"biweekly\",\n \"monthly\",\n] as const;\nexport type AutoWithdrawCadence = (typeof AUTO_WITHDRAW_CADENCE_VALUES)[number];\n\nexport const AUTO_WITHDRAW_WEEKDAY_VALUES = [\n \"monday\",\n \"tuesday\",\n \"wednesday\",\n \"thursday\",\n \"friday\",\n \"saturday\",\n \"sunday\",\n] as const;\nexport type AutoWithdrawWeekday = (typeof AUTO_WITHDRAW_WEEKDAY_VALUES)[number];\n\nexport const AUTO_WITHDRAW_RUN_STATE_VALUES = [\n \"planned\",\n \"paying\",\n \"completed\",\n \"partially_failed\",\n \"failed\",\n \"skipped\",\n] as const;\nexport type AutoWithdrawRunState = (typeof AUTO_WITHDRAW_RUN_STATE_VALUES)[number];\n\nexport const AUTO_WITHDRAW_STEP_STATE_VALUES = [\n \"pending\",\n \"submitting\",\n \"submitted\",\n \"completed\",\n \"failed\",\n \"skipped\",\n] as const;\nexport type AutoWithdrawStepState = (typeof AUTO_WITHDRAW_STEP_STATE_VALUES)[number];\n\nexport const AutoWithdrawCadenceCodec = {\n inputToProto: {\n hourly: Proto.AutoWithdrawCadence.HOURLY,\n daily: Proto.AutoWithdrawCadence.DAILY,\n weekly: Proto.AutoWithdrawCadence.WEEKLY,\n biweekly: Proto.AutoWithdrawCadence.BIWEEKLY,\n monthly: Proto.AutoWithdrawCadence.MONTHLY,\n } satisfies InputToProto<AutoWithdrawCadence, Proto.AutoWithdrawCadence>,\n} as const;\n\nexport const AutoWithdrawWeekdayCodec = {\n inputToProto: {\n monday: Proto.AutoWithdrawWeekday.MONDAY,\n tuesday: Proto.AutoWithdrawWeekday.TUESDAY,\n wednesday: Proto.AutoWithdrawWeekday.WEDNESDAY,\n thursday: Proto.AutoWithdrawWeekday.THURSDAY,\n friday: Proto.AutoWithdrawWeekday.FRIDAY,\n saturday: Proto.AutoWithdrawWeekday.SATURDAY,\n sunday: Proto.AutoWithdrawWeekday.SUNDAY,\n } satisfies InputToProto<AutoWithdrawWeekday, Proto.AutoWithdrawWeekday>,\n protoToOutput: {\n [Proto.AutoWithdrawWeekday.WEEKDAY_UNSPECIFIED]: \"unspecified\",\n [Proto.AutoWithdrawWeekday.MONDAY]: \"monday\",\n [Proto.AutoWithdrawWeekday.TUESDAY]: \"tuesday\",\n [Proto.AutoWithdrawWeekday.WEDNESDAY]: \"wednesday\",\n [Proto.AutoWithdrawWeekday.THURSDAY]: \"thursday\",\n [Proto.AutoWithdrawWeekday.FRIDAY]: \"friday\",\n [Proto.AutoWithdrawWeekday.SATURDAY]: \"saturday\",\n [Proto.AutoWithdrawWeekday.SUNDAY]: \"sunday\",\n } satisfies ProtoToOutput<Proto.AutoWithdrawWeekday, AutoWithdrawWeekday>,\n} as const;\n\nexport const AutoWithdrawRunStateCodec = {\n protoToOutput: {\n [Proto.AutoWithdrawRunState.RUN_STATE_UNSPECIFIED]: \"unspecified\",\n [Proto.AutoWithdrawRunState.RUN_PLANNED]: \"planned\",\n [Proto.AutoWithdrawRunState.RUN_PAYING]: \"paying\",\n [Proto.AutoWithdrawRunState.RUN_COMPLETED]: \"completed\",\n [Proto.AutoWithdrawRunState.RUN_PARTIALLY_FAILED]: \"partially_failed\",\n [Proto.AutoWithdrawRunState.RUN_FAILED]: \"failed\",\n [Proto.AutoWithdrawRunState.RUN_SKIPPED]: \"skipped\",\n } satisfies ProtoToOutput<Proto.AutoWithdrawRunState, AutoWithdrawRunState>,\n} as const;\n\nexport const AutoWithdrawStepStateCodec = {\n protoToOutput: {\n [Proto.AutoWithdrawStepState.STEP_STATE_UNSPECIFIED]: \"unspecified\",\n [Proto.AutoWithdrawStepState.STEP_PENDING]: \"pending\",\n [Proto.AutoWithdrawStepState.STEP_SUBMITTING]: \"submitting\",\n [Proto.AutoWithdrawStepState.STEP_SUBMITTED]: \"submitted\",\n [Proto.AutoWithdrawStepState.STEP_COMPLETED]: \"completed\",\n [Proto.AutoWithdrawStepState.STEP_FAILED]: \"failed\",\n [Proto.AutoWithdrawStepState.STEP_SKIPPED]: \"skipped\",\n } satisfies ProtoToOutput<Proto.AutoWithdrawStepState, AutoWithdrawStepState>,\n} as const;\n\n/** Why a rule paused itself. Unknown future reasons pass through as strings. */\nexport type AutoWithdrawPauseReason =\n | \"destination_not_whitelisted\"\n | \"destination_invalid\"\n | \"authority_revoked\"\n | (string & {});\n\n/** Why a run was skipped. Unknown future reasons pass through as strings. */\nexport type AutoWithdrawRunReason =\n | \"nothing_to_pay\"\n | \"price_unavailable\"\n | \"rule_superseded\"\n | (string & {});\n\n/** Why a step was skipped or failed. Unknown future reasons pass through as strings. */\nexport type AutoWithdrawStepReason =\n | \"below_minimum\"\n | \"price_unavailable\"\n | \"rule_superseded\"\n | \"destination_not_whitelisted\"\n | \"authority_revoked\"\n | \"gateway_capacity_insufficient\"\n | \"withdrawal_released\"\n | \"withdrawal_failed\"\n | (string & {});\n"],"mappings":";;AAYA,MAAa,+BAA+B;CACxC;CACA;CACA;CACA;CACA;CACA;CACA;AACJ;AAuBA,MAAa,2BAA2B,EACpC,cAAc;CACV,QAAA;CACA,OAAA;CACA,QAAA;CACA,UAAA;CACA,SAAA;AACJ,EACJ;AAEA,MAAa,2BAA2B;CACpC,cAAc;EACV,QAAA;EACA,SAAA;EACA,WAAA;EACA,UAAA;EACA,QAAA;EACA,UAAA;EACA,QAAA;CACJ;CACA,eAAe;GACsC,IAAA;GACb,IAAA;GACC,IAAA;GACE,IAAA;GACD,IAAA;GACF,IAAA;GACE,IAAA;GACF,IAAA;CACxC;AACJ;AAEA,MAAa,4BAA4B,EACrC,eAAe;EACyC,IAAA;EACV,IAAA;EACD,IAAA;EACG,IAAA;EACO,IAAA;EACV,IAAA;EACC,IAAA;AAC9C,EACJ;AAEA,MAAa,6BAA6B,EACtC,eAAe;EAC2C,IAAA;EACV,IAAA;EACG,IAAA;EACD,IAAA;EACA,IAAA;EACH,IAAA;EACC,IAAA;AAChD,EACJ"}
@@ -0,0 +1,40 @@
1
+ import { AuthApiTransports } from "../../shared/transports.js";
2
+ import { PolyesterMutationOptions, PolyesterRequestOptions } from "../../shared/request-options.js";
3
+ import { SubaccountResolver } from "../subaccount-resolver.js";
4
+ import { AutoWithdrawRule, AutoWithdrawScopedInput, DisableAutoWithdrawRuleInput, ListAutoWithdrawRunsInput, ListAutoWithdrawRunsResult, SetAutoWithdrawRuleInput } from "./auto-withdraw.schemas.js";
5
+ //#region src/services/auto-withdraw/auto-withdraw.d.ts
6
+ /**
7
+ * Manages the scheduled auto-withdraw rule of the root account or a subaccount: each asset's
8
+ * balance is paid in kind on an hourly, daily, weekly, biweekly or monthly UTC slot to
9
+ * destinations on the account's external withdraw whitelist. API keys can read rules and runs;
10
+ * changing a rule needs a session login with withdraw rights and a fresh single-use step-up
11
+ * token (`stepUpToken`). A missing step-up throws `StepUpRequiredError` or
12
+ * `SessionElevationRequiredError`; check `isFreshStepUpRequiredError` before retrying with a new
13
+ * token.
14
+ */
15
+ declare class AutoWithdrawService {
16
+ #private;
17
+ constructor(transports: AuthApiTransports, resolver?: SubaccountResolver);
18
+ /** Returns the account's latest rule version, or null when the account never had a rule. */
19
+ getRule(input?: AutoWithdrawScopedInput, options?: PolyesterRequestOptions): Promise<AutoWithdrawRule | null>;
20
+ /**
21
+ * Creates the account's rule, or replaces its latest version, and returns the new version.
22
+ * `expectedVersion` is 0 when the account has no rule yet, otherwise its latest version; a
23
+ * stale version throws `RevisionConflictError`. Requires a fresh `stepUpToken`.
24
+ */
25
+ setRule(input: SetAutoWithdrawRuleInput, options?: PolyesterMutationOptions): Promise<AutoWithdrawRule>;
26
+ /**
27
+ * Disables the account's rule and returns the disabled version, which has no destinations.
28
+ * A stale `expectedVersion` throws `RevisionConflictError`. Requires a fresh `stepUpToken`.
29
+ */
30
+ disableRule(input: DisableAutoWithdrawRuleInput, options?: PolyesterMutationOptions): Promise<AutoWithdrawRule>;
31
+ /**
32
+ * Lists the account's runs with their payouts, newest first. Pass the previous
33
+ * `nextPageToken` as `pageToken` to continue; an empty `nextPageToken` means no more runs.
34
+ */
35
+ listRuns(input?: ListAutoWithdrawRunsInput, options?: PolyesterRequestOptions): Promise<ListAutoWithdrawRunsResult>;
36
+ private resolveInput;
37
+ }
38
+ //#endregion
39
+ export { AutoWithdrawService };
40
+ //# sourceMappingURL=auto-withdraw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auto-withdraw.d.ts","names":[],"sources":["../../../src/services/auto-withdraw/auto-withdraw.ts"],"mappings":";;;;;;;;;;;;;;cA6Da;;EAIG,YAAA,YAAY,mBAAmB,WAAW;;EAMhD,QACF,QAAO,yBACP,UAAU,0BACX,QAAQ;;;;;;EAcL,QACF,OAAO,0BACP,UAAU,2BACX,QAAQ;;;;;EAYL,YACF,OAAO,8BACP,UAAU,2BACX,QAAQ;;;;;EAYL,SACF,QAAO,2BACP,UAAU,0BACX,QAAQ;UASH"}
@@ -0,0 +1,82 @@
1
+ import { PolyesterError, RevisionConflictError } from "../../shared/errors.js";
2
+ import { toPolyesterError } from "../../shared/connect-error-mapping.js";
3
+ import { parse } from "../../shared/validation.js";
4
+ import { removeUndefined } from "../../utils/remove-undefined.js";
5
+ import { toConnectCallOptions } from "../../shared/request-options.js";
6
+ import { resolveAccountScopedInput } from "../subaccount-resolver.js";
7
+ import { AutoWithdrawService as AutoWithdrawService$1 } from "../../gen/chain/withdraw/v1/auto_withdraw_pb.js";
8
+ import { AutoWithdrawRuleSchema, AutoWithdrawScopedInputSchema, DisableAutoWithdrawRuleInputSchema, ListAutoWithdrawRunsInputSchema, ListAutoWithdrawRunsResultSchema, SetAutoWithdrawRuleInputSchema } from "./auto-withdraw.schemas.js";
9
+ import { Code, ConnectError, createClient } from "@connectrpc/connect";
10
+ //#region src/services/auto-withdraw/auto-withdraw.ts
11
+ /**
12
+ * A stale `expectedVersion` comes back as the withdraw `CONFLICT` detail, or as a bare
13
+ * `Aborted`, which the transport would otherwise surface as a retryable `TransientError`.
14
+ * Either one becomes a `RevisionConflictError`: refetch the rule, don't retry blindly.
15
+ */
16
+ function rethrowVersionConflict(err) {
17
+ const mapped = toPolyesterError(err);
18
+ if (mapped instanceof PolyesterError && !(mapped instanceof RevisionConflictError) && (mapped.detail?.service === "withdraw" && mapped.detail.code === "CONFLICT" || mapped.cause instanceof ConnectError && mapped.cause.code === Code.Aborted && mapped.cause.details.length === 0)) throw new RevisionConflictError(mapped.message || "Auto-withdraw rule changed since it was last read.", {
19
+ cause: mapped.cause,
20
+ detail: mapped.detail,
21
+ status: mapped.status
22
+ });
23
+ throw mapped;
24
+ }
25
+ /**
26
+ * Manages the scheduled auto-withdraw rule of the root account or a subaccount: each asset's
27
+ * balance is paid in kind on an hourly, daily, weekly, biweekly or monthly UTC slot to
28
+ * destinations on the account's external withdraw whitelist. API keys can read rules and runs;
29
+ * changing a rule needs a session login with withdraw rights and a fresh single-use step-up
30
+ * token (`stepUpToken`). A missing step-up throws `StepUpRequiredError` or
31
+ * `SessionElevationRequiredError`; check `isFreshStepUpRequiredError` before retrying with a new
32
+ * token.
33
+ */
34
+ var AutoWithdrawService = class {
35
+ #client;
36
+ #resolver;
37
+ constructor(transports, resolver) {
38
+ this.#client = createClient(AutoWithdrawService$1, transports.authApi);
39
+ this.#resolver = resolver;
40
+ }
41
+ /** Returns the account's latest rule version, or null when the account never had a rule. */
42
+ async getRule(input = {}, options) {
43
+ const request = parse(AutoWithdrawScopedInputSchema, this.resolveInput(input));
44
+ const response = await this.#client.getAutoWithdrawRule(removeUndefined(request), toConnectCallOptions(options));
45
+ return response.rule ? parse(AutoWithdrawRuleSchema, response.rule) : null;
46
+ }
47
+ /**
48
+ * Creates the account's rule, or replaces its latest version, and returns the new version.
49
+ * `expectedVersion` is 0 when the account has no rule yet, otherwise its latest version; a
50
+ * stale version throws `RevisionConflictError`. Requires a fresh `stepUpToken`.
51
+ */
52
+ async setRule(input, options) {
53
+ const request = parse(SetAutoWithdrawRuleInputSchema, this.resolveInput(input));
54
+ const response = await this.#client.setAutoWithdrawRule(removeUndefined(request), toConnectCallOptions(options)).catch(rethrowVersionConflict);
55
+ return parse(AutoWithdrawRuleSchema, response.rule);
56
+ }
57
+ /**
58
+ * Disables the account's rule and returns the disabled version, which has no destinations.
59
+ * A stale `expectedVersion` throws `RevisionConflictError`. Requires a fresh `stepUpToken`.
60
+ */
61
+ async disableRule(input, options) {
62
+ const request = parse(DisableAutoWithdrawRuleInputSchema, this.resolveInput(input));
63
+ const response = await this.#client.disableAutoWithdrawRule(removeUndefined(request), toConnectCallOptions(options)).catch(rethrowVersionConflict);
64
+ return parse(AutoWithdrawRuleSchema, response.rule);
65
+ }
66
+ /**
67
+ * Lists the account's runs with their payouts, newest first. Pass the previous
68
+ * `nextPageToken` as `pageToken` to continue; an empty `nextPageToken` means no more runs.
69
+ */
70
+ async listRuns(input = {}, options) {
71
+ const request = parse(ListAutoWithdrawRunsInputSchema, this.resolveInput(input));
72
+ const response = await this.#client.listAutoWithdrawRuns(removeUndefined(request), toConnectCallOptions(options));
73
+ return parse(ListAutoWithdrawRunsResultSchema, response);
74
+ }
75
+ resolveInput(input) {
76
+ return resolveAccountScopedInput(input, this.#resolver);
77
+ }
78
+ };
79
+ //#endregion
80
+ export { AutoWithdrawService };
81
+
82
+ //# sourceMappingURL=auto-withdraw.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auto-withdraw.js","names":["#client","Proto.AutoWithdrawService","#resolver"],"sources":["../../../src/services/auto-withdraw/auto-withdraw.ts"],"sourcesContent":["import { Code, ConnectError, createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/chain/withdraw/v1/auto_withdraw_pb.js\";\nimport type { AccountScopedInput } from \"../../shared/account-scope.js\";\nimport { toPolyesterError } from \"../../shared/connect-error-mapping.js\";\nimport { PolyesterError, RevisionConflictError } from \"../../shared/errors.js\";\nimport {\n toConnectCallOptions,\n type PolyesterMutationOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { AuthApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport { removeUndefined } from \"../../utils/remove-undefined.js\";\nimport { type SubaccountResolver, resolveAccountScopedInput } from \"../subaccount-resolver.js\";\nimport {\n AutoWithdrawRuleSchema,\n AutoWithdrawScopedInputSchema,\n DisableAutoWithdrawRuleInputSchema,\n ListAutoWithdrawRunsInputSchema,\n ListAutoWithdrawRunsResultSchema,\n SetAutoWithdrawRuleInputSchema,\n type AutoWithdrawRule,\n type AutoWithdrawScopedInput,\n type DisableAutoWithdrawRuleInput,\n type ListAutoWithdrawRunsInput,\n type ListAutoWithdrawRunsResult,\n type SetAutoWithdrawRuleInput,\n} from \"./auto-withdraw.schemas.js\";\n\n/**\n * A stale `expectedVersion` comes back as the withdraw `CONFLICT` detail, or as a bare\n * `Aborted`, which the transport would otherwise surface as a retryable `TransientError`.\n * Either one becomes a `RevisionConflictError`: refetch the rule, don't retry blindly.\n */\nfunction rethrowVersionConflict(err: unknown): never {\n const mapped = toPolyesterError(err);\n if (\n mapped instanceof PolyesterError &&\n !(mapped instanceof RevisionConflictError) &&\n ((mapped.detail?.service === \"withdraw\" && mapped.detail.code === \"CONFLICT\") ||\n (mapped.cause instanceof ConnectError &&\n mapped.cause.code === Code.Aborted &&\n mapped.cause.details.length === 0))\n ) {\n throw new RevisionConflictError(\n mapped.message || \"Auto-withdraw rule changed since it was last read.\",\n { cause: mapped.cause, detail: mapped.detail, status: mapped.status },\n );\n }\n throw mapped;\n}\n\n/**\n * Manages the scheduled auto-withdraw rule of the root account or a subaccount: each asset's\n * balance is paid in kind on an hourly, daily, weekly, biweekly or monthly UTC slot to\n * destinations on the account's external withdraw whitelist. API keys can read rules and runs;\n * changing a rule needs a session login with withdraw rights and a fresh single-use step-up\n * token (`stepUpToken`). A missing step-up throws `StepUpRequiredError` or\n * `SessionElevationRequiredError`; check `isFreshStepUpRequiredError` before retrying with a new\n * token.\n */\nexport class AutoWithdrawService {\n #client: Client<typeof Proto.AutoWithdrawService>;\n #resolver?: SubaccountResolver;\n\n constructor(transports: AuthApiTransports, resolver?: SubaccountResolver) {\n this.#client = createClient(Proto.AutoWithdrawService, transports.authApi);\n this.#resolver = resolver;\n }\n\n /** Returns the account's latest rule version, or null when the account never had a rule. */\n async getRule(\n input: AutoWithdrawScopedInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<AutoWithdrawRule | null> {\n const request = parse(AutoWithdrawScopedInputSchema, this.resolveInput(input));\n const response = await this.#client.getAutoWithdrawRule(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return response.rule ? parse(AutoWithdrawRuleSchema, response.rule) : null;\n }\n\n /**\n * Creates the account's rule, or replaces its latest version, and returns the new version.\n * `expectedVersion` is 0 when the account has no rule yet, otherwise its latest version; a\n * stale version throws `RevisionConflictError`. Requires a fresh `stepUpToken`.\n */\n async setRule(\n input: SetAutoWithdrawRuleInput,\n options?: PolyesterMutationOptions,\n ): Promise<AutoWithdrawRule> {\n const request = parse(SetAutoWithdrawRuleInputSchema, this.resolveInput(input));\n const response = await this.#client\n .setAutoWithdrawRule(removeUndefined(request), toConnectCallOptions(options))\n .catch(rethrowVersionConflict);\n return parse(AutoWithdrawRuleSchema, response.rule);\n }\n\n /**\n * Disables the account's rule and returns the disabled version, which has no destinations.\n * A stale `expectedVersion` throws `RevisionConflictError`. Requires a fresh `stepUpToken`.\n */\n async disableRule(\n input: DisableAutoWithdrawRuleInput,\n options?: PolyesterMutationOptions,\n ): Promise<AutoWithdrawRule> {\n const request = parse(DisableAutoWithdrawRuleInputSchema, this.resolveInput(input));\n const response = await this.#client\n .disableAutoWithdrawRule(removeUndefined(request), toConnectCallOptions(options))\n .catch(rethrowVersionConflict);\n return parse(AutoWithdrawRuleSchema, response.rule);\n }\n\n /**\n * Lists the account's runs with their payouts, newest first. Pass the previous\n * `nextPageToken` as `pageToken` to continue; an empty `nextPageToken` means no more runs.\n */\n async listRuns(\n input: ListAutoWithdrawRunsInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<ListAutoWithdrawRunsResult> {\n const request = parse(ListAutoWithdrawRunsInputSchema, this.resolveInput(input));\n const response = await this.#client.listAutoWithdrawRuns(\n removeUndefined(request),\n toConnectCallOptions(options),\n );\n return parse(ListAutoWithdrawRunsResultSchema, response);\n }\n\n private resolveInput<TInput extends AccountScopedInput>(input: TInput): TInput {\n return resolveAccountScopedInput(input, this.#resolver);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAkCA,SAAS,uBAAuB,KAAqB;CACjD,MAAM,SAAS,iBAAiB,GAAG;CACnC,IACI,kBAAkB,kBAClB,EAAE,kBAAkB,2BAClB,OAAO,QAAQ,YAAY,cAAc,OAAO,OAAO,SAAS,cAC7D,OAAO,iBAAiB,gBACrB,OAAO,MAAM,SAAS,KAAK,WAC3B,OAAO,MAAM,QAAQ,WAAW,IAExC,MAAM,IAAI,sBACN,OAAO,WAAW,sDAClB;EAAE,OAAO,OAAO;EAAO,QAAQ,OAAO;EAAQ,QAAQ,OAAO;CAAO,CACxE;CAEJ,MAAM;AACV;;;;;;;;;;AAWA,IAAa,sBAAb,MAAiC;CAC7B;CACA;CAEA,YAAY,YAA+B,UAA+B;EACtE,KAAKA,UAAU,aAAaC,uBAA2B,WAAW,OAAO;EACzE,KAAKC,YAAY;CACrB;;CAGA,MAAM,QACF,QAAiC,CAAC,GAClC,SACgC;EAChC,MAAM,UAAU,MAAM,+BAA+B,KAAK,aAAa,KAAK,CAAC;EAC7E,MAAM,WAAW,MAAM,KAAKF,QAAQ,oBAChC,gBAAgB,OAAO,GACvB,qBAAqB,OAAO,CAChC;EACA,OAAO,SAAS,OAAO,MAAM,wBAAwB,SAAS,IAAI,IAAI;CAC1E;;;;;;CAOA,MAAM,QACF,OACA,SACyB;EACzB,MAAM,UAAU,MAAM,gCAAgC,KAAK,aAAa,KAAK,CAAC;EAC9E,MAAM,WAAW,MAAM,KAAKA,QACvB,oBAAoB,gBAAgB,OAAO,GAAG,qBAAqB,OAAO,CAAC,CAAC,CAC5E,MAAM,sBAAsB;EACjC,OAAO,MAAM,wBAAwB,SAAS,IAAI;CACtD;;;;;CAMA,MAAM,YACF,OACA,SACyB;EACzB,MAAM,UAAU,MAAM,oCAAoC,KAAK,aAAa,KAAK,CAAC;EAClF,MAAM,WAAW,MAAM,KAAKA,QACvB,wBAAwB,gBAAgB,OAAO,GAAG,qBAAqB,OAAO,CAAC,CAAC,CAChF,MAAM,sBAAsB;EACjC,OAAO,MAAM,wBAAwB,SAAS,IAAI;CACtD;;;;;CAMA,MAAM,SACF,QAAmC,CAAC,GACpC,SACmC;EACnC,MAAM,UAAU,MAAM,iCAAiC,KAAK,aAAa,KAAK,CAAC;EAC/E,MAAM,WAAW,MAAM,KAAKA,QAAQ,qBAChC,gBAAgB,OAAO,GACvB,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,kCAAkC,QAAQ;CAC3D;CAEA,aAAwD,OAAuB;EAC3E,OAAO,0BAA0B,OAAO,KAAKE,SAAS;CAC1D;AACJ"}