@polyester/sdk 0.36.0-devnet-20261114152753 → 0.36.0-devnet-20261116002603
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 +61 -3
- package/dist/browser-core.js +1 -1
- package/dist/catalogs/readers.d.ts.map +1 -1
- package/dist/catalogs/readers.js +1 -1
- package/dist/catalogs/readers.js.map +1 -1
- package/dist/catalogs/snapshot-validation.js +8 -6
- package/dist/catalogs/snapshot-validation.js.map +1 -1
- package/dist/catalogs/unknown-asset.d.ts.map +1 -1
- package/dist/catalogs/unknown-asset.js +4 -4
- package/dist/catalogs/unknown-asset.js.map +1 -1
- package/dist/client.d.ts +4 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +4 -0
- package/dist/client.js.map +1 -1
- package/dist/core-client.d.ts.map +1 -1
- package/dist/core-client.js +2 -1
- package/dist/core-client.js.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +83 -5
- package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.js +67 -11
- package/dist/gen/ai/v1/assistant_pb.js.map +1 -1
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts +1 -1
- package/dist/gen/auth/v1/address_book_pb.d.ts +1 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts +5 -5
- package/dist/gen/auth/v1/api_keys_pb.js +4 -4
- package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +27 -2
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +18 -1
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/mfa_pb.d.ts +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +19 -2
- package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +18 -1
- package/dist/gen/auth/v1/policies_pb.js.map +1 -1
- package/dist/gen/auth/v1/profile_pb.d.ts +8 -12
- package/dist/gen/auth/v1/profile_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/profile_pb.js +1 -1
- package/dist/gen/auth/v1/profile_pb.js.map +1 -1
- package/dist/gen/auth/v1/resolve_pb.d.ts +1 -1
- package/dist/gen/auth/v1/social_verification_pb.d.ts +45 -11
- package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +18 -2
- package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js +16 -2
- package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
- package/dist/gen/chain/analytics/v1/analytics_read_pb.d.ts +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +229 -39
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +34 -10
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +13 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts.map +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.js +13 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +7 -4
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +11 -2
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +10 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/chain/zipper/v1/reason_pb.d.ts +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +11 -7
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts.map +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.js +2 -2
- package/dist/gen/chain/zipper/v1/zipper_pb.js.map +1 -1
- package/dist/gen/changelog/v1/changelog_pb.d.ts +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +1 -1
- package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
- package/dist/gen/fees/v1/fees_pb.d.ts +1 -1
- package/dist/gen/index.d.ts +3 -1
- package/dist/gen/index.js +23 -21
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +58 -17
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
- package/dist/gen/ledger/read/v1/ledger_read_pb.js +32 -1
- package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
- package/dist/gen/ledger/read/v1/statement_export_pb.d.ts +424 -0
- package/dist/gen/ledger/read/v1/statement_export_pb.d.ts.map +1 -0
- package/dist/gen/ledger/read/v1/statement_export_pb.js +154 -0
- package/dist/gen/ledger/read/v1/statement_export_pb.js.map +1 -0
- package/dist/gen/marketdata/v1/asset_info_pb.d.ts +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +1 -1
- package/dist/gen/notifications/v1/notifications_pb.d.ts +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.d.ts +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +29 -5
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +1 -1
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +3 -2
- 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/polyester/ratelimit/v1/types_pb.d.ts +1 -1
- package/dist/gen/polyester/type/v1/u128_pb.d.ts +1 -1
- package/dist/gen/privatews/v1/private_ws_pb.d.ts +1 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +13 -8
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts.map +1 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.js.map +1 -1
- package/dist/gen/rewards/v1/rewards_pb.d.ts +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +23 -11
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +4 -2
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +48 -12
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +35 -6
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +1 -1
- package/dist/gen/swap/v1/swap_pb.d.ts +1 -1
- package/dist/gen/system/v1/system_pb.d.ts +1 -1
- package/dist/gen/tradews/v1/trade_ws_pb.d.ts +1 -1
- package/dist/gen/transfer/v1/dust_conversion_pb.d.ts +741 -0
- package/dist/gen/transfer/v1/dust_conversion_pb.d.ts.map +1 -0
- package/dist/gen/transfer/v1/dust_conversion_pb.js +235 -0
- package/dist/gen/transfer/v1/dust_conversion_pb.js.map +1 -0
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +368 -4
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js +166 -4
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +11 -6
- package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.js +4 -2
- package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
- package/dist/gen/vip/v1/vip_pb.d.ts +1 -1
- package/dist/index.d.ts +13 -7
- package/dist/index.js +1 -1
- package/dist/realtime/private-orders.d.ts +8 -0
- package/dist/realtime/private-orders.d.ts.map +1 -1
- package/dist/realtime/private-orders.js +38 -5
- package/dist/realtime/private-orders.js.map +1 -1
- package/dist/realtime/snapshot-then-stream.js +1 -1
- package/dist/server-core.js +3 -3
- package/dist/services/accounts/accounts.js +1 -1
- package/dist/services/accounts/accounts.schemas.js +1 -1
- package/dist/services/address-book/address-book.js +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts.map +1 -1
- package/dist/services/address-book/address-book.schemas.js +4 -4
- package/dist/services/address-book/address-book.schemas.js.map +1 -1
- package/dist/services/api-keys/api-keys.js +1 -1
- package/dist/services/api-keys/api-keys.schemas.js +1 -1
- package/dist/services/assistant/assistant-events.schemas.d.ts +27 -27
- package/dist/services/assistant/assistant.codecs.d.ts +7 -1
- package/dist/services/assistant/assistant.codecs.d.ts.map +1 -1
- package/dist/services/assistant/assistant.codecs.js +5 -1
- package/dist/services/assistant/assistant.codecs.js.map +1 -1
- package/dist/services/assistant/assistant.d.ts +4 -3
- package/dist/services/assistant/assistant.d.ts.map +1 -1
- package/dist/services/assistant/assistant.js +7 -5
- package/dist/services/assistant/assistant.js.map +1 -1
- package/dist/services/assistant/assistant.schemas.d.ts +40 -3
- package/dist/services/assistant/assistant.schemas.d.ts.map +1 -1
- package/dist/services/assistant/assistant.schemas.js +19 -5
- package/dist/services/assistant/assistant.schemas.js.map +1 -1
- package/dist/services/assistant/assistant.types.d.ts +3 -3
- package/dist/services/auth/account-signer-auth.js +2 -2
- package/dist/services/auth/auth.js +1 -1
- package/dist/services/auth/profile/profile.d.ts +1 -1
- package/dist/services/auth/profile/profile.js +3 -3
- package/dist/services/auth/profile/profile.js.map +1 -1
- package/dist/services/auth/profile/profile.schemas.d.ts +0 -1
- package/dist/services/auth/profile/profile.schemas.d.ts.map +1 -1
- package/dist/services/auth/profile/profile.schemas.js +0 -1
- package/dist/services/auth/profile/profile.schemas.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +3 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.js +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +16 -16
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +1 -1
- package/dist/services/balances/balances.d.ts +4 -3
- package/dist/services/balances/balances.d.ts.map +1 -1
- package/dist/services/balances/balances.js +13 -5
- package/dist/services/balances/balances.js.map +1 -1
- package/dist/services/balances/balances.schemas.d.ts +36 -29
- package/dist/services/balances/balances.schemas.d.ts.map +1 -1
- package/dist/services/balances/balances.schemas.js +7 -11
- package/dist/services/balances/balances.schemas.js.map +1 -1
- package/dist/services/balances/balances.types.d.ts +2 -2
- package/dist/services/candles/candles.js +2 -2
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/chain-analytics/chain-analytics.js +1 -1
- package/dist/services/changelog/changelog.js +1 -1
- package/dist/services/changelog/changelog.schemas.d.ts +38 -38
- package/dist/services/checkpoints/checkpoints.js +1 -1
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
- package/dist/services/claims/claims.js +1 -1
- package/dist/services/claims/claims.schemas.d.ts +2 -2
- package/dist/services/claims/claims.schemas.js +1 -1
- package/dist/services/deposit/deposit.js +1 -1
- package/dist/services/dust-conversion/dust-conversion.codecs.d.ts +22 -0
- package/dist/services/dust-conversion/dust-conversion.codecs.d.ts.map +1 -0
- package/dist/services/dust-conversion/dust-conversion.codecs.js +22 -0
- package/dist/services/dust-conversion/dust-conversion.codecs.js.map +1 -0
- package/dist/services/dust-conversion/dust-conversion.d.ts +59 -0
- package/dist/services/dust-conversion/dust-conversion.d.ts.map +1 -0
- package/dist/services/dust-conversion/dust-conversion.js +87 -0
- package/dist/services/dust-conversion/dust-conversion.js.map +1 -0
- package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +561 -0
- package/dist/services/dust-conversion/dust-conversion.schemas.d.ts.map +1 -0
- package/dist/services/dust-conversion/dust-conversion.schemas.js +190 -0
- package/dist/services/dust-conversion/dust-conversion.schemas.js.map +1 -0
- package/dist/services/dust-conversion/dust-conversion.types.d.ts +3 -0
- package/dist/services/dust-conversion/service.d.ts +8 -0
- package/dist/services/dust-conversion/service.d.ts.map +1 -0
- package/dist/services/dust-conversion/service.js +9 -0
- package/dist/services/dust-conversion/service.js.map +1 -0
- package/dist/services/fees/fees.js +1 -1
- package/dist/services/guard-signer/guard-signer.js +1 -1
- package/dist/services/guard-signer/guard-signer.schemas.js +1 -1
- package/dist/services/heatmap/heatmap.js +2 -2
- package/dist/services/internal-transfers/internal-transfers.codecs.d.ts +13 -1
- package/dist/services/internal-transfers/internal-transfers.codecs.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.codecs.js +22 -2
- package/dist/services/internal-transfers/internal-transfers.codecs.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.d.ts +14 -2
- package/dist/services/internal-transfers/internal-transfers.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.js +30 -4
- package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +262 -2
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.js +62 -4
- package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.types.d.ts +3 -3
- package/dist/services/lifecycle/lifecycle.codecs.d.ts +1 -1
- package/dist/services/lifecycle/lifecycle.codecs.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.codecs.js +1 -0
- package/dist/services/lifecycle/lifecycle.codecs.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.d.ts +26 -8
- package/dist/services/lifecycle/lifecycle.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.js +42 -10
- package/dist/services/lifecycle/lifecycle.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +95 -71
- package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.js +45 -46
- package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.types.d.ts +2 -2
- package/dist/services/lifecycle/service.js +1 -1
- package/dist/services/lifecycle/service.js.map +1 -1
- package/dist/services/market-data/market-data.js +3 -3
- package/dist/services/market-overview/market-overview.js +2 -2
- package/dist/services/market-overview/market-overview.schemas.js +1 -1
- package/dist/services/notifications/notifications.js +1 -1
- package/dist/services/orderbook/orderbook.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.js +3 -2
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.d.ts +10 -0
- package/dist/services/orderbook/orderbook.schemas.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.js +4 -1
- package/dist/services/orderbook/orderbook.schemas.js.map +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +11 -1
- package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
- package/dist/services/orders/order-errors.schemas.js +19 -6
- package/dist/services/orders/order-errors.schemas.js.map +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +68 -28
- package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-batch.schemas.js +5 -4
- package/dist/services/orders/orders-batch.schemas.js.map +1 -1
- package/dist/services/orders/orders-identifiers.schemas.js +2 -1
- package/dist/services/orders/orders-identifiers.schemas.js.map +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +11 -4
- package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-input.schemas.js +4 -3
- package/dist/services/orders/orders-input.schemas.js.map +1 -1
- package/dist/services/orders/orders-modify.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-modify.schemas.js +4 -3
- package/dist/services/orders/orders-modify.schemas.js.map +1 -1
- package/dist/services/orders/orders-output.schemas.d.ts +14 -14
- package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-output.schemas.js +2 -10
- package/dist/services/orders/orders-output.schemas.js.map +1 -1
- package/dist/services/orders/orders-risk.schemas.js +3 -3
- package/dist/services/orders/orders.d.ts +6 -0
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +6 -2
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.js +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
- package/dist/services/policies/shared.codecs.js +10 -4
- package/dist/services/policies/shared.codecs.js.map +1 -1
- package/dist/services/policies/shared.d.ts +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.js +2 -2
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
- package/dist/services/price-alerts/price-alerts.js +1 -1
- package/dist/services/rate-limits/rate-limits.d.ts +4 -1
- package/dist/services/rate-limits/rate-limits.d.ts.map +1 -1
- package/dist/services/rate-limits/rate-limits.js +5 -2
- package/dist/services/rate-limits/rate-limits.js.map +1 -1
- package/dist/services/rate-limits/rate-limits.schemas.d.ts +1 -0
- package/dist/services/rate-limits/rate-limits.schemas.d.ts.map +1 -1
- package/dist/services/rate-limits/rate-limits.schemas.js +1 -0
- package/dist/services/rate-limits/rate-limits.schemas.js.map +1 -1
- package/dist/services/rewards/rewards.js +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +4 -4
- package/dist/services/social-verification/social-verification.codecs.js +6 -2
- package/dist/services/social-verification/social-verification.codecs.js.map +1 -1
- package/dist/services/social-verification/social-verification.d.ts +14 -3
- package/dist/services/social-verification/social-verification.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.js +15 -4
- package/dist/services/social-verification/social-verification.js.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.d.ts +13 -3
- package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +13 -5
- package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
- package/dist/services/statement-exports/service.d.ts +8 -0
- package/dist/services/statement-exports/service.d.ts.map +1 -0
- package/dist/services/statement-exports/service.js +9 -0
- package/dist/services/statement-exports/service.js.map +1 -0
- package/dist/services/statement-exports/statement-exports.codecs.d.ts +17 -0
- package/dist/services/statement-exports/statement-exports.codecs.d.ts.map +1 -0
- package/dist/services/statement-exports/statement-exports.codecs.js +19 -0
- package/dist/services/statement-exports/statement-exports.codecs.js.map +1 -0
- package/dist/services/statement-exports/statement-exports.d.ts +34 -0
- package/dist/services/statement-exports/statement-exports.d.ts.map +1 -0
- package/dist/services/statement-exports/statement-exports.js +53 -0
- package/dist/services/statement-exports/statement-exports.js.map +1 -0
- package/dist/services/statement-exports/statement-exports.schemas.d.ts +269 -0
- package/dist/services/statement-exports/statement-exports.schemas.d.ts.map +1 -0
- package/dist/services/statement-exports/statement-exports.schemas.js +98 -0
- package/dist/services/statement-exports/statement-exports.schemas.js.map +1 -0
- package/dist/services/statement-exports/statement-exports.types.d.ts +3 -0
- package/dist/services/subaccounts/subaccounts.codecs.js +3 -1
- package/dist/services/subaccounts/subaccounts.codecs.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.js +3 -3
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +12 -12
- package/dist/services/system/system.js +1 -1
- package/dist/services/system/system.schemas.d.ts +13 -13
- package/dist/services/trades/trades.js +2 -2
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/trading-withdraws/service.js +1 -1
- package/dist/services/trading-withdraws/service.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.d.ts +10 -12
- package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +28 -20
- package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +0 -5
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +1 -5
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
- package/dist/services/trading-withdraws/wallet-message.js +2 -2
- package/dist/services/trading-withdraws/wallet-message.js.map +1 -1
- package/dist/services/transfers/transfers.js +2 -2
- package/dist/services/triggers/trigger-child-order.schemas.js +3 -3
- package/dist/services/triggers/trigger-input.schemas.d.ts +5 -4
- package/dist/services/triggers/trigger-input.schemas.d.ts.map +1 -1
- package/dist/services/triggers/trigger-input.schemas.js +7 -6
- package/dist/services/triggers/trigger-input.schemas.js.map +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +33 -24
- package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
- package/dist/services/triggers/triggers-output.schemas.js +1 -1
- package/dist/services/triggers/triggers.js +2 -2
- package/dist/services/vip/vip.js +1 -1
- package/dist/services/vip/vip.schemas.d.ts +3 -3
- package/dist/services/vip/vip.schemas.js +1 -1
- package/dist/services/zipper/zipper.js +1 -1
- package/dist/services/zipper/zipper.schemas.d.ts.map +1 -1
- package/dist/services/zipper/zipper.schemas.js +11 -1
- package/dist/services/zipper/zipper.schemas.js.map +1 -1
- package/dist/shared/account-scope.js +4 -1
- package/dist/shared/account-scope.js.map +1 -1
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +3 -0
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/error-detail.d.ts +5 -0
- package/dist/shared/error-detail.d.ts.map +1 -1
- package/dist/shared/error-detail.js.map +1 -1
- package/dist/shared/error-details/alerts.js +1 -1
- package/dist/shared/error-details/assistant.js +1 -1
- package/dist/shared/error-details/auth.js +8 -3
- package/dist/shared/error-details/auth.js.map +1 -1
- package/dist/shared/error-details/claims.js +1 -1
- package/dist/shared/error-details/internal-transfer.js +1 -1
- package/dist/shared/error-details/ledger.js +1 -1
- package/dist/shared/error-details/market-overview.js +1 -1
- package/dist/shared/error-details/notifications.js +1 -1
- package/dist/shared/error-details/orders.js +1 -1
- package/dist/shared/error-details/profile.js +1 -1
- package/dist/shared/error-details/rate-limit.js +1 -1
- package/dist/shared/error-details/withdraw.js +1 -1
- package/dist/shared/rate-limit.schemas.js +1 -1
- package/dist/shared/transports.d.ts +2 -1
- package/dist/shared/transports.d.ts.map +1 -1
- package/dist/shared/transports.js +52 -9
- package/dist/shared/transports.js.map +1 -1
- package/dist/utils/base58-id.js +1 -1
- package/dist/utils/base58-id.js.map +1 -1
- package/dist/utils/cookies.js +1 -1
- package/dist/utils/numbers.js +3 -2
- package/dist/utils/numbers.js.map +1 -1
- package/dist/wired-services.d.ts.map +1 -1
- package/dist/wired-services.js +21 -17
- package/dist/wired-services.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthAndPublicApiTransports } from "../../shared/transports.js";
|
|
2
2
|
import { PolyesterRequestOptions } from "../../shared/request-options.js";
|
|
3
|
+
import { SubaccountResolver } from "../subaccount-resolver.js";
|
|
3
4
|
import { PolyesterRealtime } from "../../realtime/types.js";
|
|
4
5
|
import { BaseSubscribeInput } from "../../shared/types.js";
|
|
5
|
-
import { GetLifecycleFlowInput, GetLifecycleFlowOutput, LifecycleFlowDetail, LifecycleFlowSummary, ListLifecycleFlowsByTxInput, ListLifecycleFlowsByTxOutput, ListLifecycleFlowsInput, ListLifecycleFlowsOutput } from "./lifecycle.schemas.js";
|
|
6
|
+
import { GetLifecycleAccountFlowInput, GetLifecycleFlowInput, GetLifecycleFlowOutput, LifecycleFlowDetail, LifecycleFlowSummary, ListLifecycleAccountFlowsInput, ListLifecycleFlowsByTxInput, ListLifecycleFlowsByTxOutput, ListLifecycleFlowsInput, ListLifecycleFlowsOutput } from "./lifecycle.schemas.js";
|
|
6
7
|
//#region src/services/lifecycle/lifecycle.d.ts
|
|
7
8
|
interface SubscribeOpenLifecycleFlowsInput extends BaseSubscribeInput<LifecycleFlowSummary> {
|
|
8
9
|
accountId?: string;
|
|
@@ -15,18 +16,35 @@ interface SubscribeLifecycleFlowDetailInput extends BaseSubscribeInput<Lifecycle
|
|
|
15
16
|
*/
|
|
16
17
|
declare class LifecycleService {
|
|
17
18
|
#private;
|
|
18
|
-
constructor(transports:
|
|
19
|
+
constructor(transports: AuthAndPublicApiTransports, realtime: PolyesterRealtime, resolver?: SubaccountResolver);
|
|
19
20
|
/**
|
|
20
21
|
* Returns paginated lifecycle flow summaries filtered by kind, state, scope, account selector, transaction reference, chain ids, and asset ids. The response is ordered by the selected timestamp and includes an opaque next page token.
|
|
21
22
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
23
|
+
* Lists only flows a chain transaction started. With an `accountSelector` (a smart
|
|
24
|
+
* account address), the list holds the flows the account owns and the transfers it
|
|
25
|
+
* receives from other accounts; each row's `participation` says which. Pass
|
|
26
|
+
* `participation: "owner"` for the owned flows only. A `pageToken` only resumes the
|
|
27
|
+
* request it came from: change nothing but `limit` between pages. Use `listAccountFlows`
|
|
28
|
+
* for every flow of the signed-in account.
|
|
26
29
|
*/
|
|
27
30
|
listFlows(input: ListLifecycleFlowsInput, options?: PolyesterRequestOptions): Promise<ListLifecycleFlowsOutput>;
|
|
28
31
|
/**
|
|
29
|
-
*
|
|
32
|
+
* Lists the signed-in account's flows: the ones it owns and the transfers it receives,
|
|
33
|
+
* including flows no chain transaction started, such as transfers between Trading accounts.
|
|
34
|
+
* Each row's `participation` says which. Takes the same filters as `listFlows`; a
|
|
35
|
+
* `pageToken` only resumes the request it came from. API keys need `read-funding-flows`.
|
|
36
|
+
*/
|
|
37
|
+
listAccountFlows(input?: ListLifecycleAccountFlowsInput, options?: PolyesterRequestOptions): Promise<ListLifecycleFlowsOutput>;
|
|
38
|
+
/**
|
|
39
|
+
* Fetches one flow the signed-in account owns or receives, including one no chain
|
|
40
|
+
* transaction started. A flow the account takes no part in throws `ResourceNotFoundError`. API keys
|
|
41
|
+
* need `read-funding-flows`.
|
|
42
|
+
*/
|
|
43
|
+
getAccountFlow(input: GetLifecycleAccountFlowInput, options?: PolyesterRequestOptions): Promise<GetLifecycleFlowOutput>;
|
|
44
|
+
/**
|
|
45
|
+
* Fetches one lifecycle flow by its public flow id and returns summary, factual steps,
|
|
46
|
+
* timeline, and live-state detail when available. Finds only flows a chain transaction
|
|
47
|
+
* started; the account reads its other flows with `getAccountFlow`.
|
|
30
48
|
*/
|
|
31
49
|
getFlow(input: GetLifecycleFlowInput, options?: PolyesterRequestOptions): Promise<GetLifecycleFlowOutput>;
|
|
32
50
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","names":[],"sources":["../../../src/services/lifecycle/lifecycle.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"lifecycle.d.ts","names":[],"sources":["../../../src/services/lifecycle/lifecycle.ts"],"mappings":";;;;;;;UA0CU,yCAAyC,mBAAmB;EAClE;;UAGM,0CAA0C,mBAAmB;EACnE;;;;;cAMS;;EAOL,YAAA,YAAY,4BACZ,UAAU,mBACV,WAAW;;;;;;;;;;;EAkBT,UACF,OAAO,yBACP,UAAU,0BACX,QAAQ;;;;;;;EAaL,iBACF,QAAO,gCACP,UAAU,0BACX,QAAQ;;;;;;EAeL,eACF,OAAO,8BACP,UAAU,0BACX,QAAQ;;;;;;EAeL,QACF,OAAO,uBACP,UAAU,0BACX,QAAQ;;;;EAYL,cACF,OAAO,6BACP,UAAU,0BACX,QAAQ;;;;EAYX,mBAAmB,OAAO;;;;EAqB1B,oBAAoB,OAAO"}
|
|
@@ -1,29 +1,36 @@
|
|
|
1
|
-
import { isDev } from "../../utils/is-dev.js";
|
|
2
|
-
import { FlowDetailViewSchema, FlowSummaryViewSchema, GetFlowByIdRequestSchema, LifecycleReadService } from "../../gen/chain/lifecycle/v1/lifecycle_read_pb.js";
|
|
3
1
|
import { parse } from "../../shared/validation.js";
|
|
4
2
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
3
|
+
import { resolveAccountScopedInput } from "../subaccount-resolver.js";
|
|
4
|
+
import { FlowDetailViewSchema, FlowSummaryViewSchema, GetFlowByIdRequestSchema, LifecycleReadService } from "../../gen/chain/lifecycle/v1/lifecycle_read_pb.js";
|
|
5
|
+
import { isDev } from "../../utils/is-dev.js";
|
|
6
|
+
import { GetLifecycleAccountFlowInputSchema, GetLifecycleFlowInputSchema, GetLifecycleFlowOutputSchema, LifecycleFlowDetailSchema, LifecycleFlowSummarySchema, ListLifecycleAccountFlowsInputSchema, ListLifecycleFlowsByTxInputSchema, ListLifecycleFlowsByTxOutputSchema, ListLifecycleFlowsInputSchema, ListLifecycleFlowsOutputSchema } from "./lifecycle.schemas.js";
|
|
7
7
|
import { create } from "@bufbuild/protobuf";
|
|
8
8
|
import { createClient } from "@connectrpc/connect";
|
|
9
|
+
import * as v from "valibot";
|
|
9
10
|
//#region src/services/lifecycle/lifecycle.ts
|
|
10
11
|
/**
|
|
11
12
|
* Reads and streams chain lifecycle flow state, history, progress, and transaction matches.
|
|
12
13
|
*/
|
|
13
14
|
var LifecycleService = class {
|
|
14
15
|
#client;
|
|
16
|
+
#authClient;
|
|
15
17
|
#realtime;
|
|
16
|
-
|
|
18
|
+
#resolver;
|
|
19
|
+
constructor(transports, realtime, resolver) {
|
|
17
20
|
this.#client = createClient(LifecycleReadService, transports.publicApi);
|
|
21
|
+
this.#authClient = createClient(LifecycleReadService, transports.authApi);
|
|
18
22
|
this.#realtime = realtime;
|
|
23
|
+
this.#resolver = resolver;
|
|
19
24
|
}
|
|
20
25
|
/**
|
|
21
26
|
* Returns paginated lifecycle flow summaries filtered by kind, state, scope, account selector, transaction reference, chain ids, and asset ids. The response is ordered by the selected timestamp and includes an opaque next page token.
|
|
22
27
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
28
|
+
* Lists only flows a chain transaction started. With an `accountSelector` (a smart
|
|
29
|
+
* account address), the list holds the flows the account owns and the transfers it
|
|
30
|
+
* receives from other accounts; each row's `participation` says which. Pass
|
|
31
|
+
* `participation: "owner"` for the owned flows only. A `pageToken` only resumes the
|
|
32
|
+
* request it came from: change nothing but `limit` between pages. Use `listAccountFlows`
|
|
33
|
+
* for every flow of the signed-in account.
|
|
27
34
|
*/
|
|
28
35
|
async listFlows(input, options) {
|
|
29
36
|
const parsedInput = parse(ListLifecycleFlowsInputSchema, input);
|
|
@@ -31,7 +38,32 @@ var LifecycleService = class {
|
|
|
31
38
|
return parse(ListLifecycleFlowsOutputSchema, response);
|
|
32
39
|
}
|
|
33
40
|
/**
|
|
34
|
-
*
|
|
41
|
+
* Lists the signed-in account's flows: the ones it owns and the transfers it receives,
|
|
42
|
+
* including flows no chain transaction started, such as transfers between Trading accounts.
|
|
43
|
+
* Each row's `participation` says which. Takes the same filters as `listFlows`; a
|
|
44
|
+
* `pageToken` only resumes the request it came from. API keys need `read-funding-flows`.
|
|
45
|
+
*/
|
|
46
|
+
async listAccountFlows(input = {}, options) {
|
|
47
|
+
const resolved = resolveAccountScopedInput(input, this.#resolver);
|
|
48
|
+
const request = parse(ListLifecycleAccountFlowsInputSchema, resolved);
|
|
49
|
+
const response = await this.#authClient.listAccountFlows(request, toConnectCallOptions(options));
|
|
50
|
+
return parse(ListLifecycleFlowsOutputSchema, response);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Fetches one flow the signed-in account owns or receives, including one no chain
|
|
54
|
+
* transaction started. A flow the account takes no part in throws `ResourceNotFoundError`. API keys
|
|
55
|
+
* need `read-funding-flows`.
|
|
56
|
+
*/
|
|
57
|
+
async getAccountFlow(input, options) {
|
|
58
|
+
const resolved = resolveAccountScopedInput(input, this.#resolver);
|
|
59
|
+
const request = parse(GetLifecycleAccountFlowInputSchema, resolved);
|
|
60
|
+
const response = await this.#authClient.getAccountFlow(request, toConnectCallOptions(options));
|
|
61
|
+
return parse(GetLifecycleFlowOutputSchema, response);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Fetches one lifecycle flow by its public flow id and returns summary, factual steps,
|
|
65
|
+
* timeline, and live-state detail when available. Finds only flows a chain transaction
|
|
66
|
+
* started; the account reads its other flows with `getAccountFlow`.
|
|
35
67
|
*/
|
|
36
68
|
async getFlow(input, options) {
|
|
37
69
|
const parsedInput = parse(GetLifecycleFlowInputSchema, input);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.js","names":["#client","#realtime"],"sources":["../../../src/services/lifecycle/lifecycle.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport { create } from \"@bufbuild/protobuf\";\nimport {\n FlowDetailViewSchema,\n FlowSummaryViewSchema,\n GetFlowByIdRequestSchema,\n LifecycleReadService,\n} from \"../../gen/chain/lifecycle/v1/lifecycle_read_pb.js\";\nimport type { PolyesterRealtime } from \"../../realtime/types.js\";\nimport type { PublicApiTransports } from \"../../shared/transports.js\";\nimport type { BaseSubscribeInput } from \"../../shared/types.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport { isDev } from \"../../utils/is-dev.js\";\nimport * as v from \"valibot\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n GetLifecycleFlowInputSchema,\n GetLifecycleFlowOutputSchema,\n LifecycleFlowDetailSchema,\n LifecycleFlowSummarySchema,\n ListLifecycleFlowsByTxOutputSchema,\n ListLifecycleFlowsByTxInputSchema,\n ListLifecycleFlowsOutputSchema,\n ListLifecycleFlowsInputSchema,\n type GetLifecycleFlowInput,\n type GetLifecycleFlowOutput,\n type LifecycleFlowDetail,\n type LifecycleFlowSummary,\n type ListLifecycleFlowsByTxInput,\n type ListLifecycleFlowsByTxOutput,\n type ListLifecycleFlowsInput,\n type ListLifecycleFlowsOutput,\n} from \"./lifecycle.schemas.js\";\n\ninterface SubscribeOpenLifecycleFlowsInput extends BaseSubscribeInput<LifecycleFlowSummary> {\n accountId?: string;\n}\n\ninterface SubscribeLifecycleFlowDetailInput extends BaseSubscribeInput<LifecycleFlowDetail> {\n flowId: string;\n}\n\n/**\n * Reads and streams chain lifecycle flow state, history, progress, and transaction matches.\n */\nexport class LifecycleService {\n #client: Client<typeof LifecycleReadService>;\n #realtime: PolyesterRealtime;\n\n constructor(transports: PublicApiTransports, realtime: PolyesterRealtime) {\n this.#client = createClient(LifecycleReadService, transports.publicApi);\n this.#realtime = realtime;\n }\n\n /**\n * Returns paginated lifecycle flow summaries filtered by kind, state, scope, account selector, transaction reference, chain ids, and asset ids. The response is ordered by the selected timestamp and includes an opaque next page token.\n *\n * With an `accountSelector`, the list holds the flows the account owns and the\n * transfers it receives from other accounts; each row's `participation` says which.\n * Pass `participation: \"owner\"` for the owned flows only. A `pageToken` only resumes\n * the request it came from: change nothing but `limit` between pages.\n */\n async listFlows(\n input: ListLifecycleFlowsInput,\n options?: PolyesterRequestOptions,\n ): Promise<ListLifecycleFlowsOutput> {\n const parsedInput = parse(ListLifecycleFlowsInputSchema, input);\n const response = await this.#client.listFlows(parsedInput, toConnectCallOptions(options));\n const res = parse(ListLifecycleFlowsOutputSchema, response);\n return res;\n }\n\n /**\n * Fetches one lifecycle flow by its public flow id and returns summary, factual steps, timeline, and live-state detail when available.\n */\n async getFlow(\n input: GetLifecycleFlowInput,\n options?: PolyesterRequestOptions,\n ): Promise<GetLifecycleFlowOutput> {\n const parsedInput = parse(GetLifecycleFlowInputSchema, input);\n const response = await this.#client.getFlowById(\n create(GetFlowByIdRequestSchema, parsedInput),\n toConnectCallOptions(options),\n );\n return parse(GetLifecycleFlowOutputSchema, response);\n }\n\n /**\n * Searches lifecycle flows that reference a 0x-prefixed transaction hash, using source-only or any-reference lookup mode. A single transaction may match zero, one, or many flows.\n */\n async listFlowsByTx(\n input: ListLifecycleFlowsByTxInput,\n options?: PolyesterRequestOptions,\n ): Promise<ListLifecycleFlowsByTxOutput> {\n const parsedInput = parse(ListLifecycleFlowsByTxInputSchema, input);\n const response = await this.#client.listFlowsByTx(\n parsedInput,\n toConnectCallOptions(options),\n );\n return parse(ListLifecycleFlowsByTxOutputSchema, response);\n }\n\n /**\n * Subscribes to open lifecycle flow summary updates, using private:chain:lifecycle:flows:{accountId}:proto when an account id is provided and the public flow channel otherwise.\n */\n subscribeOpenFlows(input: SubscribeOpenLifecycleFlowsInput): () => void {\n const accountId = input.accountId?.trim();\n const channel = accountId\n ? `private:chain:lifecycle:flows:${accountId}:proto`\n : \"public:chain:lifecycle:flows:proto\";\n return this.#realtime.connectProtoChannel({\n channel,\n schema: FlowSummaryViewSchema,\n onPublication: (data) => {\n const flow = parse(LifecycleFlowSummarySchema, data);\n input.onEvent(flow);\n },\n onConnected: input.onOpen,\n onDisconnected: input.onClose,\n onError: input.onError,\n });\n }\n\n /**\n * Subscribes to detail updates for one lifecycle flow on public:chain:lifecycle:flow:{flowId}:proto. Invalid flow ids are rejected locally with a no-op unsubscribe function.\n */\n subscribeFlowDetail(input: SubscribeLifecycleFlowDetailInput): () => void {\n const parsedFlowId = v.safeParse(GetLifecycleFlowInputSchema, { flowId: input.flowId });\n if (!parsedFlowId.success) {\n if (isDev()) {\n console.error(\n \"[LifecycleService] flowId is required for flow detail subscription.\",\n );\n }\n return () => {};\n }\n\n const channel = `public:chain:lifecycle:flow:${parsedFlowId.output.flowId}:proto`;\n return this.#realtime.connectProtoChannel({\n channel,\n schema: FlowDetailViewSchema,\n onPublication: (data) => {\n const flow = parse(LifecycleFlowDetailSchema, data);\n input.onEvent(flow);\n },\n onConnected: input.onOpen,\n onDisconnected: input.onClose,\n onError: input.onError,\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;AAgDA,IAAa,mBAAb,MAA8B;CAC1B;CACA;CAEA,YAAY,YAAiC,UAA6B;EACtE,KAAKA,UAAU,aAAa,sBAAsB,WAAW,SAAS;EACtE,KAAKC,YAAY;CACrB;;;;;;;;;CAUA,MAAM,UACF,OACA,SACiC;EACjC,MAAM,cAAc,MAAM,+BAA+B,KAAK;EAC9D,MAAM,WAAW,MAAM,KAAKD,QAAQ,UAAU,aAAa,qBAAqB,OAAO,CAAC;EAExF,OADY,MAAM,gCAAgC,QACzC;CACb;;;;CAKA,MAAM,QACF,OACA,SAC+B;EAC/B,MAAM,cAAc,MAAM,6BAA6B,KAAK;EAC5D,MAAM,WAAW,MAAM,KAAKA,QAAQ,YAChC,OAAO,0BAA0B,WAAW,GAC5C,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,8BAA8B,QAAQ;CACvD;;;;CAKA,MAAM,cACF,OACA,SACqC;EACrC,MAAM,cAAc,MAAM,mCAAmC,KAAK;EAClE,MAAM,WAAW,MAAM,KAAKA,QAAQ,cAChC,aACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,oCAAoC,QAAQ;CAC7D;;;;CAKA,mBAAmB,OAAqD;EACpE,MAAM,YAAY,MAAM,WAAW,KAAK;EACxC,MAAM,UAAU,YACV,iCAAiC,UAAU,UAC3C;EACN,OAAO,KAAKC,UAAU,oBAAoB;GACtC;GACA,QAAQ;GACR,gBAAgB,SAAS;IACrB,MAAM,OAAO,MAAM,4BAA4B,IAAI;IACnD,MAAM,QAAQ,IAAI;GACtB;GACA,aAAa,MAAM;GACnB,gBAAgB,MAAM;GACtB,SAAS,MAAM;EACnB,CAAC;CACL;;;;CAKA,oBAAoB,OAAsD;EACtE,MAAM,eAAe,EAAE,UAAU,6BAA6B,EAAE,QAAQ,MAAM,OAAO,CAAC;EACtF,IAAI,CAAC,aAAa,SAAS;GACvB,IAAI,MAAM,GACN,QAAQ,MACJ,qEACJ;GAEJ,aAAa,CAAC;EAClB;EAEA,MAAM,UAAU,+BAA+B,aAAa,OAAO,OAAO;EAC1E,OAAO,KAAKA,UAAU,oBAAoB;GACtC;GACA,QAAQ;GACR,gBAAgB,SAAS;IACrB,MAAM,OAAO,MAAM,2BAA2B,IAAI;IAClD,MAAM,QAAQ,IAAI;GACtB;GACA,aAAa,MAAM;GACnB,gBAAgB,MAAM;GACtB,SAAS,MAAM;EACnB,CAAC;CACL;AACJ"}
|
|
1
|
+
{"version":3,"file":"lifecycle.js","names":["#client","#authClient","#realtime","#resolver"],"sources":["../../../src/services/lifecycle/lifecycle.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport { create } from \"@bufbuild/protobuf\";\nimport {\n FlowDetailViewSchema,\n FlowSummaryViewSchema,\n GetFlowByIdRequestSchema,\n LifecycleReadService,\n} from \"../../gen/chain/lifecycle/v1/lifecycle_read_pb.js\";\nimport type { PolyesterRealtime } from \"../../realtime/types.js\";\nimport type { AuthAndPublicApiTransports } from \"../../shared/transports.js\";\nimport { resolveAccountScopedInput, type SubaccountResolver } from \"../subaccount-resolver.js\";\nimport type { BaseSubscribeInput } from \"../../shared/types.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport { isDev } from \"../../utils/is-dev.js\";\nimport * as v from \"valibot\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n GetLifecycleAccountFlowInputSchema,\n GetLifecycleFlowInputSchema,\n GetLifecycleFlowOutputSchema,\n LifecycleFlowDetailSchema,\n LifecycleFlowSummarySchema,\n ListLifecycleFlowsByTxOutputSchema,\n ListLifecycleFlowsByTxInputSchema,\n ListLifecycleFlowsOutputSchema,\n ListLifecycleFlowsInputSchema,\n ListLifecycleAccountFlowsInputSchema,\n type GetLifecycleAccountFlowInput,\n type GetLifecycleFlowInput,\n type GetLifecycleFlowOutput,\n type LifecycleFlowDetail,\n type LifecycleFlowSummary,\n type ListLifecycleFlowsByTxInput,\n type ListLifecycleFlowsByTxOutput,\n type ListLifecycleFlowsInput,\n type ListLifecycleAccountFlowsInput,\n type ListLifecycleFlowsOutput,\n} from \"./lifecycle.schemas.js\";\n\ninterface SubscribeOpenLifecycleFlowsInput extends BaseSubscribeInput<LifecycleFlowSummary> {\n accountId?: string;\n}\n\ninterface SubscribeLifecycleFlowDetailInput extends BaseSubscribeInput<LifecycleFlowDetail> {\n flowId: string;\n}\n\n/**\n * Reads and streams chain lifecycle flow state, history, progress, and transaction matches.\n */\nexport class LifecycleService {\n #client: Client<typeof LifecycleReadService>;\n #authClient: Client<typeof LifecycleReadService>;\n #realtime: PolyesterRealtime;\n #resolver?: SubaccountResolver;\n\n constructor(\n transports: AuthAndPublicApiTransports,\n realtime: PolyesterRealtime,\n resolver?: SubaccountResolver,\n ) {\n this.#client = createClient(LifecycleReadService, transports.publicApi);\n this.#authClient = createClient(LifecycleReadService, transports.authApi);\n this.#realtime = realtime;\n this.#resolver = resolver;\n }\n\n /**\n * Returns paginated lifecycle flow summaries filtered by kind, state, scope, account selector, transaction reference, chain ids, and asset ids. The response is ordered by the selected timestamp and includes an opaque next page token.\n *\n * Lists only flows a chain transaction started. With an `accountSelector` (a smart\n * account address), the list holds the flows the account owns and the transfers it\n * receives from other accounts; each row's `participation` says which. Pass\n * `participation: \"owner\"` for the owned flows only. A `pageToken` only resumes the\n * request it came from: change nothing but `limit` between pages. Use `listAccountFlows`\n * for every flow of the signed-in account.\n */\n async listFlows(\n input: ListLifecycleFlowsInput,\n options?: PolyesterRequestOptions,\n ): Promise<ListLifecycleFlowsOutput> {\n const parsedInput = parse(ListLifecycleFlowsInputSchema, input);\n const response = await this.#client.listFlows(parsedInput, toConnectCallOptions(options));\n const res = parse(ListLifecycleFlowsOutputSchema, response);\n return res;\n }\n\n /**\n * Lists the signed-in account's flows: the ones it owns and the transfers it receives,\n * including flows no chain transaction started, such as transfers between Trading accounts.\n * Each row's `participation` says which. Takes the same filters as `listFlows`; a\n * `pageToken` only resumes the request it came from. API keys need `read-funding-flows`.\n */\n async listAccountFlows(\n input: ListLifecycleAccountFlowsInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<ListLifecycleFlowsOutput> {\n const resolved = resolveAccountScopedInput(input, this.#resolver);\n const request = parse(ListLifecycleAccountFlowsInputSchema, resolved);\n const response = await this.#authClient.listAccountFlows(\n request,\n toConnectCallOptions(options),\n );\n return parse(ListLifecycleFlowsOutputSchema, response);\n }\n\n /**\n * Fetches one flow the signed-in account owns or receives, including one no chain\n * transaction started. A flow the account takes no part in throws `ResourceNotFoundError`. API keys\n * need `read-funding-flows`.\n */\n async getAccountFlow(\n input: GetLifecycleAccountFlowInput,\n options?: PolyesterRequestOptions,\n ): Promise<GetLifecycleFlowOutput> {\n const resolved = resolveAccountScopedInput(input, this.#resolver);\n const request = parse(GetLifecycleAccountFlowInputSchema, resolved);\n const response = await this.#authClient.getAccountFlow(\n request,\n toConnectCallOptions(options),\n );\n return parse(GetLifecycleFlowOutputSchema, response);\n }\n\n /**\n * Fetches one lifecycle flow by its public flow id and returns summary, factual steps,\n * timeline, and live-state detail when available. Finds only flows a chain transaction\n * started; the account reads its other flows with `getAccountFlow`.\n */\n async getFlow(\n input: GetLifecycleFlowInput,\n options?: PolyesterRequestOptions,\n ): Promise<GetLifecycleFlowOutput> {\n const parsedInput = parse(GetLifecycleFlowInputSchema, input);\n const response = await this.#client.getFlowById(\n create(GetFlowByIdRequestSchema, parsedInput),\n toConnectCallOptions(options),\n );\n return parse(GetLifecycleFlowOutputSchema, response);\n }\n\n /**\n * Searches lifecycle flows that reference a 0x-prefixed transaction hash, using source-only or any-reference lookup mode. A single transaction may match zero, one, or many flows.\n */\n async listFlowsByTx(\n input: ListLifecycleFlowsByTxInput,\n options?: PolyesterRequestOptions,\n ): Promise<ListLifecycleFlowsByTxOutput> {\n const parsedInput = parse(ListLifecycleFlowsByTxInputSchema, input);\n const response = await this.#client.listFlowsByTx(\n parsedInput,\n toConnectCallOptions(options),\n );\n return parse(ListLifecycleFlowsByTxOutputSchema, response);\n }\n\n /**\n * Subscribes to open lifecycle flow summary updates, using private:chain:lifecycle:flows:{accountId}:proto when an account id is provided and the public flow channel otherwise.\n */\n subscribeOpenFlows(input: SubscribeOpenLifecycleFlowsInput): () => void {\n const accountId = input.accountId?.trim();\n const channel = accountId\n ? `private:chain:lifecycle:flows:${accountId}:proto`\n : \"public:chain:lifecycle:flows:proto\";\n return this.#realtime.connectProtoChannel({\n channel,\n schema: FlowSummaryViewSchema,\n onPublication: (data) => {\n const flow = parse(LifecycleFlowSummarySchema, data);\n input.onEvent(flow);\n },\n onConnected: input.onOpen,\n onDisconnected: input.onClose,\n onError: input.onError,\n });\n }\n\n /**\n * Subscribes to detail updates for one lifecycle flow on public:chain:lifecycle:flow:{flowId}:proto. Invalid flow ids are rejected locally with a no-op unsubscribe function.\n */\n subscribeFlowDetail(input: SubscribeLifecycleFlowDetailInput): () => void {\n const parsedFlowId = v.safeParse(GetLifecycleFlowInputSchema, { flowId: input.flowId });\n if (!parsedFlowId.success) {\n if (isDev()) {\n console.error(\n \"[LifecycleService] flowId is required for flow detail subscription.\",\n );\n }\n return () => {};\n }\n\n const channel = `public:chain:lifecycle:flow:${parsedFlowId.output.flowId}:proto`;\n return this.#realtime.connectProtoChannel({\n channel,\n schema: FlowDetailViewSchema,\n onPublication: (data) => {\n const flow = parse(LifecycleFlowDetailSchema, data);\n input.onEvent(flow);\n },\n onConnected: input.onOpen,\n onDisconnected: input.onClose,\n onError: input.onError,\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAqDA,IAAa,mBAAb,MAA8B;CAC1B;CACA;CACA;CACA;CAEA,YACI,YACA,UACA,UACF;EACE,KAAKA,UAAU,aAAa,sBAAsB,WAAW,SAAS;EACtE,KAAKC,cAAc,aAAa,sBAAsB,WAAW,OAAO;EACxE,KAAKC,YAAY;EACjB,KAAKC,YAAY;CACrB;;;;;;;;;;;CAYA,MAAM,UACF,OACA,SACiC;EACjC,MAAM,cAAc,MAAM,+BAA+B,KAAK;EAC9D,MAAM,WAAW,MAAM,KAAKH,QAAQ,UAAU,aAAa,qBAAqB,OAAO,CAAC;EAExF,OADY,MAAM,gCAAgC,QACzC;CACb;;;;;;;CAQA,MAAM,iBACF,QAAwC,CAAC,GACzC,SACiC;EACjC,MAAM,WAAW,0BAA0B,OAAO,KAAKG,SAAS;EAChE,MAAM,UAAU,MAAM,sCAAsC,QAAQ;EACpE,MAAM,WAAW,MAAM,KAAKF,YAAY,iBACpC,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,gCAAgC,QAAQ;CACzD;;;;;;CAOA,MAAM,eACF,OACA,SAC+B;EAC/B,MAAM,WAAW,0BAA0B,OAAO,KAAKE,SAAS;EAChE,MAAM,UAAU,MAAM,oCAAoC,QAAQ;EAClE,MAAM,WAAW,MAAM,KAAKF,YAAY,eACpC,SACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,8BAA8B,QAAQ;CACvD;;;;;;CAOA,MAAM,QACF,OACA,SAC+B;EAC/B,MAAM,cAAc,MAAM,6BAA6B,KAAK;EAC5D,MAAM,WAAW,MAAM,KAAKD,QAAQ,YAChC,OAAO,0BAA0B,WAAW,GAC5C,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,8BAA8B,QAAQ;CACvD;;;;CAKA,MAAM,cACF,OACA,SACqC;EACrC,MAAM,cAAc,MAAM,mCAAmC,KAAK;EAClE,MAAM,WAAW,MAAM,KAAKA,QAAQ,cAChC,aACA,qBAAqB,OAAO,CAChC;EACA,OAAO,MAAM,oCAAoC,QAAQ;CAC7D;;;;CAKA,mBAAmB,OAAqD;EACpE,MAAM,YAAY,MAAM,WAAW,KAAK;EACxC,MAAM,UAAU,YACV,iCAAiC,UAAU,UAC3C;EACN,OAAO,KAAKE,UAAU,oBAAoB;GACtC;GACA,QAAQ;GACR,gBAAgB,SAAS;IACrB,MAAM,OAAO,MAAM,4BAA4B,IAAI;IACnD,MAAM,QAAQ,IAAI;GACtB;GACA,aAAa,MAAM;GACnB,gBAAgB,MAAM;GACtB,SAAS,MAAM;EACnB,CAAC;CACL;;;;CAKA,oBAAoB,OAAsD;EACtE,MAAM,eAAe,EAAE,UAAU,6BAA6B,EAAE,QAAQ,MAAM,OAAO,CAAC;EACtF,IAAI,CAAC,aAAa,SAAS;GACvB,IAAI,MAAM,GACN,QAAQ,MACJ,qEACJ;GAEJ,aAAa,CAAC;EAClB;EAEA,MAAM,UAAU,+BAA+B,aAAa,OAAO,OAAO;EAC1E,OAAO,KAAKA,UAAU,oBAAoB;GACtC;GACA,QAAQ;GACR,gBAAgB,SAAS;IACrB,MAAM,OAAO,MAAM,2BAA2B,IAAI;IAClD,MAAM,QAAQ,IAAI;GACtB;GACA,aAAa,MAAM;GACnB,gBAAgB,MAAM;GACtB,SAAS,MAAM;EACnB,CAAC;CACL;AACJ"}
|
|
@@ -14,83 +14,57 @@ declare const LifecycleZipperReasonSchema: v.ObjectSchema<{
|
|
|
14
14
|
readonly message: v.StringSchema<undefined>;
|
|
15
15
|
}, undefined>;
|
|
16
16
|
declare const ListLifecycleFlowsInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly flowKind: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["deposit", "withdraw", "transfer"], undefined>, undefined>, v.TransformAction<"deposit" | "withdraw" | "transfer" | undefined, FlowKind>]>;
|
|
20
|
-
readonly flowState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["pending_source", "pending_polyester_chain", "pending_ledger", "completed", "failed", "dropped", "refunded"], undefined>, undefined>, v.TransformAction<"failed" | "completed" | "pending_source" | "pending_polyester_chain" | "pending_ledger" | "dropped" | "refunded" | undefined, FlowState>]>;
|
|
21
|
-
readonly txRef: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "txHash is required.">, v.CheckAction<string, "txHash must be a valid EVM hash or chain-native transaction id.">, v.TransformAction<string, string>]>, undefined>;
|
|
22
|
-
readonly scope: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["all", "open", "terminal"], undefined>, "all">, v.TransformAction<"open" | "all" | "terminal", ListScope.LIST_ALL | ListScope.LIST_OPEN_ONLY | ListScope.LIST_TERMINAL_ONLY>]>;
|
|
23
|
-
readonly accountSelector: v.OptionalSchema<v.SchemaWithPipe<readonly [v.VariantSchema<"kind", [v.StrictObjectSchema<{
|
|
24
|
-
readonly kind: v.LiteralSchema<"accountId", undefined>;
|
|
25
|
-
readonly accountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
26
|
-
}, undefined>, v.StrictObjectSchema<{
|
|
27
|
-
readonly kind: v.LiteralSchema<"ownerAccountId", undefined>;
|
|
28
|
-
readonly ownerAccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
29
|
-
}, undefined>, v.StrictObjectSchema<{
|
|
17
|
+
readonly participation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["owner", "recipient"], undefined>, undefined>, v.TransformAction<"owner" | "recipient" | undefined, FlowParticipation>]>;
|
|
18
|
+
readonly accountSelector: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
30
19
|
readonly kind: v.LiteralSchema<"smartAccountAddress", undefined>;
|
|
31
20
|
readonly smartAccountAddress: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, "smartAccountAddress must be a canonical 0x address.">]>;
|
|
32
|
-
}, undefined
|
|
33
|
-
kind: "accountId";
|
|
34
|
-
accountId: string;
|
|
35
|
-
} | {
|
|
36
|
-
kind: "ownerAccountId";
|
|
37
|
-
ownerAccountId: string;
|
|
38
|
-
} | {
|
|
21
|
+
}, undefined>, v.TransformAction<{
|
|
39
22
|
kind: "smartAccountAddress";
|
|
40
23
|
smartAccountAddress: string;
|
|
41
24
|
}, {
|
|
42
|
-
case: "ownerAccountId";
|
|
43
|
-
value: bigint;
|
|
44
|
-
} | {
|
|
45
25
|
case: "smartAccountAddress";
|
|
46
26
|
value: string;
|
|
47
27
|
}>]>, undefined>;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
readonly
|
|
28
|
+
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 500, undefined>]>, 100>;
|
|
29
|
+
readonly sort: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["newest", "oldest"], undefined>, "newest">, v.TransformAction<"newest" | "oldest", Sort.NEWEST | Sort.OLDEST>]>;
|
|
30
|
+
readonly flowKind: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["deposit", "withdraw", "transfer"], undefined>, undefined>, v.TransformAction<"deposit" | "withdraw" | "transfer" | undefined, FlowKind>]>;
|
|
31
|
+
readonly flowState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["pending_source", "pending_polyester_chain", "pending_ledger", "completed", "failed", "dropped", "refunded"], undefined>, undefined>, v.TransformAction<"failed" | "completed" | "pending_source" | "pending_polyester_chain" | "pending_ledger" | "dropped" | "refunded" | undefined, FlowState>]>;
|
|
32
|
+
readonly txRef: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "txHash is required.">, v.CheckAction<string, "txHash must be a valid EVM hash or chain-native transaction id.">, v.TransformAction<string, string>]>, undefined>;
|
|
33
|
+
readonly scope: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["all", "open", "terminal"], undefined>, "all">, v.TransformAction<"open" | "all" | "terminal", ListScope.LIST_ALL | ListScope.LIST_OPEN_ONLY | ListScope.LIST_TERMINAL_ONLY>]>;
|
|
54
34
|
readonly polyesterChainIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>, undefined>;
|
|
55
35
|
readonly zippedAssetIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>, undefined>;
|
|
56
36
|
readonly unifiedAssetIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>, undefined>;
|
|
57
37
|
readonly pageToken: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, "">;
|
|
58
38
|
readonly orderBy: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["last_activity", "started_at"], undefined>, "last_activity">, v.TransformAction<"last_activity" | "started_at", ListOrderBy.ORDER_BY_LAST_ACTIVITY | ListOrderBy.ORDER_BY_STARTED_AT>]>;
|
|
59
39
|
}, undefined>, v.CheckAction<{
|
|
40
|
+
participation?: FlowParticipation | undefined;
|
|
41
|
+
accountSelector?: {
|
|
42
|
+
case: "smartAccountAddress";
|
|
43
|
+
value: string;
|
|
44
|
+
} | undefined;
|
|
60
45
|
limit: number;
|
|
61
46
|
sort: Sort.NEWEST | Sort.OLDEST;
|
|
62
47
|
flowKind?: FlowKind | undefined;
|
|
63
48
|
flowState?: FlowState | undefined;
|
|
64
49
|
txRef?: string | undefined;
|
|
65
50
|
scope: ListScope.LIST_ALL | ListScope.LIST_OPEN_ONLY | ListScope.LIST_TERMINAL_ONLY;
|
|
66
|
-
accountSelector?: {
|
|
67
|
-
case: "ownerAccountId";
|
|
68
|
-
value: bigint;
|
|
69
|
-
} | {
|
|
70
|
-
case: "smartAccountAddress";
|
|
71
|
-
value: string;
|
|
72
|
-
} | undefined;
|
|
73
|
-
participation?: FlowParticipation | undefined;
|
|
74
51
|
polyesterChainIds?: number[] | undefined;
|
|
75
52
|
zippedAssetIds?: number[] | undefined;
|
|
76
53
|
unifiedAssetIds?: number[] | undefined;
|
|
77
54
|
pageToken: string;
|
|
78
55
|
orderBy: ListOrderBy.ORDER_BY_LAST_ACTIVITY | ListOrderBy.ORDER_BY_STARTED_AT;
|
|
79
56
|
}, "participation requires accountSelector.">, v.TransformAction<{
|
|
57
|
+
participation?: FlowParticipation | undefined;
|
|
58
|
+
accountSelector?: {
|
|
59
|
+
case: "smartAccountAddress";
|
|
60
|
+
value: string;
|
|
61
|
+
} | undefined;
|
|
80
62
|
limit: number;
|
|
81
63
|
sort: Sort.NEWEST | Sort.OLDEST;
|
|
82
64
|
flowKind?: FlowKind | undefined;
|
|
83
65
|
flowState?: FlowState | undefined;
|
|
84
66
|
txRef?: string | undefined;
|
|
85
67
|
scope: ListScope.LIST_ALL | ListScope.LIST_OPEN_ONLY | ListScope.LIST_TERMINAL_ONLY;
|
|
86
|
-
accountSelector?: {
|
|
87
|
-
case: "ownerAccountId";
|
|
88
|
-
value: bigint;
|
|
89
|
-
} | {
|
|
90
|
-
case: "smartAccountAddress";
|
|
91
|
-
value: string;
|
|
92
|
-
} | undefined;
|
|
93
|
-
participation?: FlowParticipation | undefined;
|
|
94
68
|
polyesterChainIds?: number[] | undefined;
|
|
95
69
|
zippedAssetIds?: number[] | undefined;
|
|
96
70
|
unifiedAssetIds?: number[] | undefined;
|
|
@@ -104,9 +78,6 @@ declare const ListLifecycleFlowsInputSchema: v.SchemaWithPipe<readonly [v.Strict
|
|
|
104
78
|
txRef: string | undefined;
|
|
105
79
|
scope: ListScope.LIST_ALL | ListScope.LIST_OPEN_ONLY | ListScope.LIST_TERMINAL_ONLY;
|
|
106
80
|
accountSelector: {
|
|
107
|
-
case: "ownerAccountId";
|
|
108
|
-
value: bigint;
|
|
109
|
-
} | {
|
|
110
81
|
case: "smartAccountAddress";
|
|
111
82
|
value: string;
|
|
112
83
|
} | undefined;
|
|
@@ -117,6 +88,71 @@ declare const ListLifecycleFlowsInputSchema: v.SchemaWithPipe<readonly [v.Strict
|
|
|
117
88
|
pageToken: string;
|
|
118
89
|
orderBy: ListOrderBy.ORDER_BY_LAST_ACTIVITY | ListOrderBy.ORDER_BY_STARTED_AT;
|
|
119
90
|
}>]>;
|
|
91
|
+
/**
|
|
92
|
+
* Filters for the authenticated account's own flows. `account` picks the root account or a
|
|
93
|
+
* subaccount; a subaccount-scoped API key reads its bound subaccount when it is omitted.
|
|
94
|
+
*/
|
|
95
|
+
declare const ListLifecycleAccountFlowsInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
96
|
+
readonly participation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["owner", "recipient"], undefined>, undefined>, v.TransformAction<"owner" | "recipient" | undefined, FlowParticipation>]>;
|
|
97
|
+
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 500, undefined>]>, 100>;
|
|
98
|
+
readonly sort: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["newest", "oldest"], undefined>, "newest">, v.TransformAction<"newest" | "oldest", Sort.NEWEST | Sort.OLDEST>]>;
|
|
99
|
+
readonly flowKind: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["deposit", "withdraw", "transfer"], undefined>, undefined>, v.TransformAction<"deposit" | "withdraw" | "transfer" | undefined, FlowKind>]>;
|
|
100
|
+
readonly flowState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["pending_source", "pending_polyester_chain", "pending_ledger", "completed", "failed", "dropped", "refunded"], undefined>, undefined>, v.TransformAction<"failed" | "completed" | "pending_source" | "pending_polyester_chain" | "pending_ledger" | "dropped" | "refunded" | undefined, FlowState>]>;
|
|
101
|
+
readonly txRef: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "txHash is required.">, v.CheckAction<string, "txHash must be a valid EVM hash or chain-native transaction id.">, v.TransformAction<string, string>]>, undefined>;
|
|
102
|
+
readonly scope: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["all", "open", "terminal"], undefined>, "all">, v.TransformAction<"open" | "all" | "terminal", ListScope.LIST_ALL | ListScope.LIST_OPEN_ONLY | ListScope.LIST_TERMINAL_ONLY>]>;
|
|
103
|
+
readonly polyesterChainIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>, undefined>;
|
|
104
|
+
readonly zippedAssetIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>, undefined>;
|
|
105
|
+
readonly unifiedAssetIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>, undefined>;
|
|
106
|
+
readonly pageToken: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, "">;
|
|
107
|
+
readonly orderBy: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["last_activity", "started_at"], undefined>, "last_activity">, v.TransformAction<"last_activity" | "started_at", ListOrderBy.ORDER_BY_LAST_ACTIVITY | ListOrderBy.ORDER_BY_STARTED_AT>]>;
|
|
108
|
+
readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
|
|
109
|
+
readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
110
|
+
}, undefined>], undefined>, undefined>;
|
|
111
|
+
}, undefined>, v.TransformAction<{
|
|
112
|
+
participation?: FlowParticipation | undefined;
|
|
113
|
+
limit: number;
|
|
114
|
+
sort: Sort.NEWEST | Sort.OLDEST;
|
|
115
|
+
flowKind?: FlowKind | undefined;
|
|
116
|
+
flowState?: FlowState | undefined;
|
|
117
|
+
txRef?: string | undefined;
|
|
118
|
+
scope: ListScope.LIST_ALL | ListScope.LIST_OPEN_ONLY | ListScope.LIST_TERMINAL_ONLY;
|
|
119
|
+
polyesterChainIds?: number[] | undefined;
|
|
120
|
+
zippedAssetIds?: number[] | undefined;
|
|
121
|
+
unifiedAssetIds?: number[] | undefined;
|
|
122
|
+
pageToken: string;
|
|
123
|
+
orderBy: ListOrderBy.ORDER_BY_LAST_ACTIVITY | ListOrderBy.ORDER_BY_STARTED_AT;
|
|
124
|
+
account?: "active" | "main" | {
|
|
125
|
+
subaccountId: string;
|
|
126
|
+
} | undefined;
|
|
127
|
+
}, {
|
|
128
|
+
participation?: FlowParticipation | undefined;
|
|
129
|
+
limit: number;
|
|
130
|
+
sort: Sort.NEWEST | Sort.OLDEST;
|
|
131
|
+
flowKind?: FlowKind | undefined;
|
|
132
|
+
flowState?: FlowState | undefined;
|
|
133
|
+
txRef?: string | undefined;
|
|
134
|
+
scope: ListScope.LIST_ALL | ListScope.LIST_OPEN_ONLY | ListScope.LIST_TERMINAL_ONLY;
|
|
135
|
+
polyesterChainIds?: number[] | undefined;
|
|
136
|
+
zippedAssetIds?: number[] | undefined;
|
|
137
|
+
unifiedAssetIds?: number[] | undefined;
|
|
138
|
+
pageToken: string;
|
|
139
|
+
orderBy: ListOrderBy.ORDER_BY_LAST_ACTIVITY | ListOrderBy.ORDER_BY_STARTED_AT;
|
|
140
|
+
subaccountId: bigint | undefined;
|
|
141
|
+
}>]>;
|
|
142
|
+
declare const GetLifecycleAccountFlowInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
|
|
143
|
+
readonly flowId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "flowId is required.">]>;
|
|
144
|
+
readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
|
|
145
|
+
readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
146
|
+
}, undefined>], undefined>, undefined>;
|
|
147
|
+
}, undefined>, v.TransformAction<{
|
|
148
|
+
flowId: string;
|
|
149
|
+
account?: "active" | "main" | {
|
|
150
|
+
subaccountId: string;
|
|
151
|
+
} | undefined;
|
|
152
|
+
}, {
|
|
153
|
+
subaccountId: bigint | undefined;
|
|
154
|
+
flowId: string;
|
|
155
|
+
}>]>;
|
|
120
156
|
declare const LifecycleRequestFeeSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
121
157
|
readonly assetIds: v.OptionalSchema<v.ObjectSchema<{
|
|
122
158
|
readonly zippedAssetId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -537,7 +573,6 @@ declare const LifecycleFlowSummaryProgressSchema: v.ObjectSchema<{
|
|
|
537
573
|
readonly requiredRejections: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
538
574
|
}, undefined>;
|
|
539
575
|
declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
540
|
-
readonly ownerAccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
541
576
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
542
577
|
readonly flowId: v.StringSchema<undefined>;
|
|
543
578
|
readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
@@ -631,11 +666,11 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
631
666
|
/**
|
|
632
667
|
* How the listed account takes part: `"owner"` for its own flows, including a
|
|
633
668
|
* transfer it sent, `"recipient"` for a transfer another account sent it.
|
|
634
|
-
* `"unspecified"` outside
|
|
669
|
+
* `"unspecified"` outside `listAccountFlows`, `getAccountFlow` and `listFlows` with an
|
|
670
|
+
* `accountSelector`.
|
|
635
671
|
*/
|
|
636
672
|
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "recipient">]>, FlowParticipation.PARTICIPATION_UNSPECIFIED>;
|
|
637
673
|
}, undefined>, v.TransformAction<{
|
|
638
|
-
ownerAccountId: string;
|
|
639
674
|
smartAccountAddress: string;
|
|
640
675
|
flowId: string;
|
|
641
676
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
@@ -699,7 +734,6 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
699
734
|
isDelayed: boolean;
|
|
700
735
|
participation: "unspecified" | "owner" | "recipient";
|
|
701
736
|
}, Omit<{
|
|
702
|
-
ownerAccountId: string;
|
|
703
737
|
smartAccountAddress: string;
|
|
704
738
|
flowId: string;
|
|
705
739
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
@@ -767,7 +801,6 @@ declare const LifecycleFlowSummarySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
767
801
|
}>]>;
|
|
768
802
|
declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
769
803
|
readonly summary: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
770
|
-
readonly ownerAccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
771
804
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
772
805
|
readonly flowId: v.StringSchema<undefined>;
|
|
773
806
|
readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
@@ -861,11 +894,11 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
861
894
|
/**
|
|
862
895
|
* How the listed account takes part: `"owner"` for its own flows, including a
|
|
863
896
|
* transfer it sent, `"recipient"` for a transfer another account sent it.
|
|
864
|
-
* `"unspecified"` outside
|
|
897
|
+
* `"unspecified"` outside `listAccountFlows`, `getAccountFlow` and `listFlows` with an
|
|
898
|
+
* `accountSelector`.
|
|
865
899
|
*/
|
|
866
900
|
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "recipient">]>, FlowParticipation.PARTICIPATION_UNSPECIFIED>;
|
|
867
901
|
}, undefined>, v.TransformAction<{
|
|
868
|
-
ownerAccountId: string;
|
|
869
902
|
smartAccountAddress: string;
|
|
870
903
|
flowId: string;
|
|
871
904
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
@@ -929,7 +962,6 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
929
962
|
isDelayed: boolean;
|
|
930
963
|
participation: "unspecified" | "owner" | "recipient";
|
|
931
964
|
}, Omit<{
|
|
932
|
-
ownerAccountId: string;
|
|
933
965
|
smartAccountAddress: string;
|
|
934
966
|
flowId: string;
|
|
935
967
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
@@ -1279,7 +1311,6 @@ declare const LifecycleFlowDetailSchema: v.ObjectSchema<{
|
|
|
1279
1311
|
}, undefined>;
|
|
1280
1312
|
declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
1281
1313
|
readonly flows: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1282
|
-
readonly ownerAccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
1283
1314
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
1284
1315
|
readonly flowId: v.StringSchema<undefined>;
|
|
1285
1316
|
readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
@@ -1373,11 +1404,11 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1373
1404
|
/**
|
|
1374
1405
|
* How the listed account takes part: `"owner"` for its own flows, including a
|
|
1375
1406
|
* transfer it sent, `"recipient"` for a transfer another account sent it.
|
|
1376
|
-
* `"unspecified"` outside
|
|
1407
|
+
* `"unspecified"` outside `listAccountFlows`, `getAccountFlow` and `listFlows` with an
|
|
1408
|
+
* `accountSelector`.
|
|
1377
1409
|
*/
|
|
1378
1410
|
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "recipient">]>, FlowParticipation.PARTICIPATION_UNSPECIFIED>;
|
|
1379
1411
|
}, undefined>, v.TransformAction<{
|
|
1380
|
-
ownerAccountId: string;
|
|
1381
1412
|
smartAccountAddress: string;
|
|
1382
1413
|
flowId: string;
|
|
1383
1414
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
@@ -1441,7 +1472,6 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1441
1472
|
isDelayed: boolean;
|
|
1442
1473
|
participation: "unspecified" | "owner" | "recipient";
|
|
1443
1474
|
}, Omit<{
|
|
1444
|
-
ownerAccountId: string;
|
|
1445
1475
|
smartAccountAddress: string;
|
|
1446
1476
|
flowId: string;
|
|
1447
1477
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
@@ -1512,7 +1542,6 @@ declare const ListLifecycleFlowsOutputSchema: v.ObjectSchema<{
|
|
|
1512
1542
|
declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
1513
1543
|
readonly flow: v.OptionalSchema<v.ObjectSchema<{
|
|
1514
1544
|
readonly summary: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1515
|
-
readonly ownerAccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
1516
1545
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
1517
1546
|
readonly flowId: v.StringSchema<undefined>;
|
|
1518
1547
|
readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
@@ -1606,11 +1635,11 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1606
1635
|
/**
|
|
1607
1636
|
* How the listed account takes part: `"owner"` for its own flows, including a
|
|
1608
1637
|
* transfer it sent, `"recipient"` for a transfer another account sent it.
|
|
1609
|
-
* `"unspecified"` outside
|
|
1638
|
+
* `"unspecified"` outside `listAccountFlows`, `getAccountFlow` and `listFlows` with an
|
|
1639
|
+
* `accountSelector`.
|
|
1610
1640
|
*/
|
|
1611
1641
|
readonly participation: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "recipient">]>, FlowParticipation.PARTICIPATION_UNSPECIFIED>;
|
|
1612
1642
|
}, undefined>, v.TransformAction<{
|
|
1613
|
-
ownerAccountId: string;
|
|
1614
1643
|
smartAccountAddress: string;
|
|
1615
1644
|
flowId: string;
|
|
1616
1645
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
@@ -1674,7 +1703,6 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
1674
1703
|
isDelayed: boolean;
|
|
1675
1704
|
participation: "unspecified" | "owner" | "recipient";
|
|
1676
1705
|
}, Omit<{
|
|
1677
|
-
ownerAccountId: string;
|
|
1678
1706
|
smartAccountAddress: string;
|
|
1679
1707
|
flowId: string;
|
|
1680
1708
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
@@ -2024,7 +2052,6 @@ declare const GetLifecycleFlowOutputSchema: v.ObjectSchema<{
|
|
|
2024
2052
|
}, undefined>, undefined>;
|
|
2025
2053
|
}, undefined>;
|
|
2026
2054
|
declare const LifecycleFlowTxMatchSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2027
|
-
readonly ownerAccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
2028
2055
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
2029
2056
|
readonly flowId: v.StringSchema<undefined>;
|
|
2030
2057
|
readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
@@ -2058,7 +2085,6 @@ declare const LifecycleFlowTxMatchSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
2058
2085
|
}, undefined>, undefined>;
|
|
2059
2086
|
readonly lastActivityAtUnixMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
2060
2087
|
}, undefined>, v.TransformAction<{
|
|
2061
|
-
ownerAccountId: string;
|
|
2062
2088
|
smartAccountAddress: string;
|
|
2063
2089
|
flowId: string;
|
|
2064
2090
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
@@ -2086,7 +2112,6 @@ declare const LifecycleFlowTxMatchSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
2086
2112
|
} | undefined;
|
|
2087
2113
|
lastActivityAtUnixMs: number;
|
|
2088
2114
|
}, Omit<{
|
|
2089
|
-
ownerAccountId: string;
|
|
2090
2115
|
smartAccountAddress: string;
|
|
2091
2116
|
flowId: string;
|
|
2092
2117
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
@@ -2119,7 +2144,6 @@ declare const LifecycleFlowTxMatchSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
2119
2144
|
declare const ListLifecycleFlowsByTxOutputSchema: v.ObjectSchema<{
|
|
2120
2145
|
readonly txHash: v.StringSchema<undefined>;
|
|
2121
2146
|
readonly matches: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2122
|
-
readonly ownerAccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
2123
2147
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
2124
2148
|
readonly flowId: v.StringSchema<undefined>;
|
|
2125
2149
|
readonly flowKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "deposit" | "withdraw" | "transfer">]>;
|
|
@@ -2153,7 +2177,6 @@ declare const ListLifecycleFlowsByTxOutputSchema: v.ObjectSchema<{
|
|
|
2153
2177
|
}, undefined>, undefined>;
|
|
2154
2178
|
readonly lastActivityAtUnixMs: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
2155
2179
|
}, undefined>, v.TransformAction<{
|
|
2156
|
-
ownerAccountId: string;
|
|
2157
2180
|
smartAccountAddress: string;
|
|
2158
2181
|
flowId: string;
|
|
2159
2182
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
@@ -2181,7 +2204,6 @@ declare const ListLifecycleFlowsByTxOutputSchema: v.ObjectSchema<{
|
|
|
2181
2204
|
} | undefined;
|
|
2182
2205
|
lastActivityAtUnixMs: number;
|
|
2183
2206
|
}, Omit<{
|
|
2184
|
-
ownerAccountId: string;
|
|
2185
2207
|
smartAccountAddress: string;
|
|
2186
2208
|
flowId: string;
|
|
2187
2209
|
flowKind: "unspecified" | "deposit" | "withdraw" | "transfer";
|
|
@@ -2214,6 +2236,8 @@ declare const ListLifecycleFlowsByTxOutputSchema: v.ObjectSchema<{
|
|
|
2214
2236
|
readonly nextPageToken: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
2215
2237
|
}, undefined>;
|
|
2216
2238
|
type ListLifecycleFlowsInput = v.InferInput<typeof ListLifecycleFlowsInputSchema>;
|
|
2239
|
+
type ListLifecycleAccountFlowsInput = v.InferInput<typeof ListLifecycleAccountFlowsInputSchema>;
|
|
2240
|
+
type GetLifecycleAccountFlowInput = v.InferInput<typeof GetLifecycleAccountFlowInputSchema>;
|
|
2217
2241
|
type GetLifecycleFlowInput = v.InferInput<typeof GetLifecycleFlowInputSchema>;
|
|
2218
2242
|
type ListLifecycleFlowsByTxInput = v.InferInput<typeof ListLifecycleFlowsByTxInputSchema>;
|
|
2219
2243
|
type LifecycleFlowSummary = v.InferOutput<typeof LifecycleFlowSummarySchema>;
|
|
@@ -2238,5 +2262,5 @@ type LifecycleTxLookupKind = LifecycleTxLookupKindValue;
|
|
|
2238
2262
|
type LifecycleRequestFeeStatus = LifecycleRequestFeeStatusValue;
|
|
2239
2263
|
type LifecycleFlowTxMatch = v.InferOutput<typeof LifecycleFlowTxMatchSchema>;
|
|
2240
2264
|
//#endregion
|
|
2241
|
-
export { GetLifecycleFlowInput, GetLifecycleFlowInputSchema, GetLifecycleFlowOutput, GetLifecycleFlowOutputSchema, LifecycleAssetIds, LifecycleFlowDetail, LifecycleFlowDetailSchema, LifecycleFlowState, LifecycleFlowStep, LifecycleFlowStepActivity, LifecycleFlowStepActivitySchema, LifecycleFlowStepSchema, LifecycleFlowSummary, LifecycleFlowSummaryProgress, LifecycleFlowSummaryProgressSchema, LifecycleFlowSummarySchema, LifecycleFlowTimelineItem, LifecycleFlowTimelineItemSchema, LifecycleFlowTxMatch, LifecycleFlowTxMatchSchema, LifecycleListOrderBy, LifecycleListScope, LifecycleReason, LifecycleRequestFee, LifecycleRequestFeeSchema, LifecycleRequestFeeStatus, LifecycleSort, LifecycleTxLookupKind, LifecycleZipperReason, LifecycleZipperReasonCode, ListLifecycleFlowsByTxInput, ListLifecycleFlowsByTxInputSchema, ListLifecycleFlowsByTxOutput, ListLifecycleFlowsByTxOutputSchema, ListLifecycleFlowsInput, ListLifecycleFlowsInputSchema, ListLifecycleFlowsOutput, ListLifecycleFlowsOutputSchema };
|
|
2265
|
+
export { GetLifecycleAccountFlowInput, GetLifecycleAccountFlowInputSchema, GetLifecycleFlowInput, GetLifecycleFlowInputSchema, GetLifecycleFlowOutput, GetLifecycleFlowOutputSchema, LifecycleAssetIds, LifecycleFlowDetail, LifecycleFlowDetailSchema, LifecycleFlowState, LifecycleFlowStep, LifecycleFlowStepActivity, LifecycleFlowStepActivitySchema, LifecycleFlowStepSchema, LifecycleFlowSummary, LifecycleFlowSummaryProgress, LifecycleFlowSummaryProgressSchema, LifecycleFlowSummarySchema, LifecycleFlowTimelineItem, LifecycleFlowTimelineItemSchema, LifecycleFlowTxMatch, LifecycleFlowTxMatchSchema, LifecycleListOrderBy, LifecycleListScope, LifecycleReason, LifecycleRequestFee, LifecycleRequestFeeSchema, LifecycleRequestFeeStatus, LifecycleSort, LifecycleTxLookupKind, LifecycleZipperReason, LifecycleZipperReasonCode, ListLifecycleAccountFlowsInput, ListLifecycleAccountFlowsInputSchema, ListLifecycleFlowsByTxInput, ListLifecycleFlowsByTxInputSchema, ListLifecycleFlowsByTxOutput, ListLifecycleFlowsByTxOutputSchema, ListLifecycleFlowsInput, ListLifecycleFlowsInputSchema, ListLifecycleFlowsOutput, ListLifecycleFlowsOutputSchema };
|
|
2242
2266
|
//# sourceMappingURL=lifecycle.schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.schemas.d.ts","names":[],"sources":["../../../src/services/lifecycle/lifecycle.schemas.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"lifecycle.schemas.d.ts","names":[],"sources":["../../../src/services/lifecycle/lifecycle.schemas.ts"],"mappings":"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"}
|