@polyester/sdk 0.36.0-devnet-20261118184607 → 0.36.0-devnet-20261119050221
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 +30 -2
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +6 -7
- package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.js +1 -1
- 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/activity_pb.d.ts +1 -1
- package/dist/gen/auth/v1/address_book_pb.d.ts +2 -2
- package/dist/gen/auth/v1/address_book_pb.js +1 -1
- package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts +71 -10
- package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.js +16 -1
- package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +75 -6
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +58 -6
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/connected_apps_pb.d.ts +382 -0
- package/dist/gen/auth/v1/connected_apps_pb.d.ts.map +1 -0
- package/dist/gen/auth/v1/connected_apps_pb.js +107 -0
- package/dist/gen/auth/v1/connected_apps_pb.js.map +1 -0
- package/dist/gen/auth/v1/mfa_pb.d.ts +3 -141
- package/dist/gen/auth/v1/mfa_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/mfa_pb.js +8 -80
- package/dist/gen/auth/v1/mfa_pb.js.map +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +165 -42
- package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +36 -3
- package/dist/gen/auth/v1/policies_pb.js.map +1 -1
- package/dist/gen/auth/v1/profile_pb.d.ts +1 -1
- package/dist/gen/auth/v1/resolve_pb.d.ts +1 -1
- package/dist/gen/auth/v1/social_verification_pb.d.ts +5 -5
- package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js +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 +18 -11
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +4 -2
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -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 +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 +3 -2
- package/dist/gen/fees/v1/fees_pb.d.ts.map +1 -1
- package/dist/gen/fees/v1/fees_pb.js.map +1 -1
- package/dist/gen/index.d.ts +8 -5
- package/dist/gen/index.js +26 -23
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +4 -3
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -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 +1 -1
- package/dist/gen/marketdata/v1/asset_info_pb.d.ts +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts +10 -59
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.js +8 -57
- package/dist/gen/marketdata/v1/heatmap_pb.js.map +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 +142 -5
- package/dist/gen/notifications/v1/notifications_pb.d.ts.map +1 -1
- package/dist/gen/notifications/v1/notifications_pb.js +94 -16
- package/dist/gen/notifications/v1/notifications_pb.js.map +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.d.ts +15 -13
- package/dist/gen/orderbook/v1/orderbook_pb.d.ts.map +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.js +6 -1
- package/dist/gen/orderbook/v1/orderbook_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +67 -19
- 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 +9 -1
- 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/api/options_pb.d.ts +2 -1
- package/dist/gen/polyester/api/options_pb.d.ts.map +1 -1
- package/dist/gen/polyester/api/options_pb.js +2 -1
- package/dist/gen/polyester/api/options_pb.js.map +1 -1
- package/dist/gen/polyester/api/v1/request_error_pb.d.ts +66 -0
- package/dist/gen/polyester/api/v1/request_error_pb.d.ts.map +1 -0
- package/dist/gen/polyester/api/v1/request_error_pb.js +49 -0
- package/dist/gen/polyester/api/v1/request_error_pb.js.map +1 -0
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +1 -1
- package/dist/gen/polyester/type/v1/depth_tier_pb.d.ts +98 -0
- package/dist/gen/polyester/type/v1/depth_tier_pb.d.ts.map +1 -0
- package/dist/gen/polyester/type/v1/depth_tier_pb.js +104 -0
- package/dist/gen/polyester/type/v1/depth_tier_pb.js.map +1 -0
- 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 +43 -24
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts.map +1 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.js +14 -2
- 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 +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +127 -14
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +100 -28
- 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 +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +6 -4
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +26 -4
- package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.js +18 -1
- 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 +5 -3
- package/dist/services/account-activity/account-activity.js +1 -1
- package/dist/services/account-activity/account-activity.schemas.d.ts +4 -4
- 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/api-keys/api-keys.codecs.d.ts +6 -1
- package/dist/services/api-keys/api-keys.codecs.d.ts.map +1 -1
- package/dist/services/api-keys/api-keys.codecs.js +19 -7
- package/dist/services/api-keys/api-keys.codecs.js.map +1 -1
- package/dist/services/api-keys/api-keys.js +1 -1
- package/dist/services/api-keys/api-keys.schemas.d.ts +12 -4
- package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.js +15 -6
- package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
- package/dist/services/api-keys/api-keys.types.d.ts +2 -2
- package/dist/services/assistant/assistant-events.schemas.d.ts +30 -30
- package/dist/services/assistant/assistant.js +1 -1
- package/dist/services/assistant/assistant.schemas.d.ts +1 -1
- package/dist/services/auth/auth.d.ts +4 -0
- package/dist/services/auth/auth.d.ts.map +1 -1
- package/dist/services/auth/auth.js +12 -2
- package/dist/services/auth/auth.js.map +1 -1
- package/dist/services/auth/profile/profile.js +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.js +1 -1
- package/dist/services/candles/candles.js +1 -1
- 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 +45 -40
- package/dist/services/changelog/changelog.schemas.d.ts.map +1 -1
- package/dist/services/changelog/changelog.schemas.js +6 -1
- package/dist/services/changelog/changelog.schemas.js.map +1 -1
- 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/connected-apps/connected-apps.d.ts +46 -0
- package/dist/services/connected-apps/connected-apps.d.ts.map +1 -0
- package/dist/services/connected-apps/connected-apps.js +69 -0
- package/dist/services/connected-apps/connected-apps.js.map +1 -0
- package/dist/services/connected-apps/connected-apps.schemas.d.ts +132 -0
- package/dist/services/connected-apps/connected-apps.schemas.d.ts.map +1 -0
- package/dist/services/connected-apps/connected-apps.schemas.js +68 -0
- package/dist/services/connected-apps/connected-apps.schemas.js.map +1 -0
- package/dist/services/connected-apps/connected-apps.types.d.ts +2 -0
- package/dist/services/connected-apps/service.d.ts +8 -0
- package/dist/services/connected-apps/service.d.ts.map +1 -0
- package/dist/services/connected-apps/service.js +9 -0
- package/dist/services/connected-apps/service.js.map +1 -0
- package/dist/services/deposit/deposit.js +1 -1
- package/dist/services/dust-conversion/dust-conversion.js +1 -1
- package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +8 -8
- package/dist/services/dust-conversion/dust-conversion.schemas.js +1 -1
- package/dist/services/fees/fees.js +1 -1
- package/dist/services/guard-signer/guard-signer.js +1 -1
- package/dist/services/heatmap/heatmap.codecs.d.ts +1 -0
- package/dist/services/heatmap/heatmap.codecs.d.ts.map +1 -1
- package/dist/services/heatmap/heatmap.codecs.js +2 -27
- package/dist/services/heatmap/heatmap.codecs.js.map +1 -1
- package/dist/services/heatmap/heatmap.js +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +9 -8
- package/dist/services/heatmap/heatmap.schemas.d.ts.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.js +4 -3
- package/dist/services/heatmap/heatmap.schemas.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.d.ts +4 -3
- package/dist/services/internal-transfers/internal-transfers.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.js +5 -4
- package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +3 -3
- package/dist/services/lifecycle/lifecycle.js +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +39 -39
- package/dist/services/lifecycle/lifecycle.schemas.js +2 -2
- package/dist/services/market-data/market-data.js +1 -1
- package/dist/services/market-overview/market-overview.js +1 -1
- package/dist/services/market-overview/market-overview.schemas.js +1 -1
- package/dist/services/notifications/notifications.codecs.d.ts +6 -3
- package/dist/services/notifications/notifications.codecs.d.ts.map +1 -1
- package/dist/services/notifications/notifications.codecs.js +14 -3
- package/dist/services/notifications/notifications.codecs.js.map +1 -1
- package/dist/services/notifications/notifications.js +1 -1
- package/dist/services/notifications/notifications.schemas.d.ts +97 -3
- package/dist/services/notifications/notifications.schemas.d.ts.map +1 -1
- package/dist/services/notifications/notifications.schemas.js +18 -1
- package/dist/services/notifications/notifications.schemas.js.map +1 -1
- package/dist/services/notifications/notifications.types.d.ts +2 -2
- package/dist/services/orderbook/orderbook.codecs.js +1 -1
- package/dist/services/orderbook/orderbook.codecs.js.map +1 -1
- package/dist/services/orderbook/orderbook.d.ts +2 -2
- package/dist/services/orderbook/orderbook.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.js +8 -10
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.d.ts +3 -6
- package/dist/services/orderbook/orderbook.schemas.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.js +5 -5
- package/dist/services/orderbook/orderbook.schemas.js.map +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +9 -9
- package/dist/services/orders/order-errors.schemas.js +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +101 -97
- package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-batch.schemas.js +3 -1
- package/dist/services/orders/orders-batch.schemas.js.map +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +23 -15
- package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-input.schemas.js +8 -3
- package/dist/services/orders/orders-input.schemas.js.map +1 -1
- package/dist/services/orders/orders-modify.schemas.js +1 -1
- package/dist/services/orders/orders-output.schemas.d.ts +14 -14
- package/dist/services/orders/orders-risk.schemas.js +2 -2
- package/dist/services/orders/orders.js +2 -2
- package/dist/services/policies/api-key-policies/api-key-policies.d.ts +4 -1
- package/dist/services/policies/api-key-policies/api-key-policies.d.ts.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.js +5 -2
- package/dist/services/policies/api-key-policies/api-key-policies.js.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +25 -15
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +3 -0
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.js.map +1 -1
- package/dist/services/policies/shared.codecs.js +25 -5
- 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.d.ts +4 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.js +5 -2
- package/dist/services/policies/subaccount-policies/subaccount-policies.js.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +11 -3
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +4 -0
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
- package/dist/services/price-alerts/price-alerts.js +1 -1
- package/dist/services/price-alerts/price-alerts.schemas.d.ts +10 -10
- package/dist/services/rate-limits/rate-limits.codecs.d.ts +1 -1
- package/dist/services/rate-limits/rate-limits.codecs.js +2 -1
- package/dist/services/rate-limits/rate-limits.codecs.js.map +1 -1
- package/dist/services/rate-limits/rate-limits.js +1 -1
- package/dist/services/rate-limits/rate-limits.schemas.d.ts +4 -4
- package/dist/services/rewards/rewards.js +1 -1
- package/dist/services/social-verification/social-verification.js +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +1 -1
- package/dist/services/statement-exports/statement-exports.js +1 -1
- package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
- package/dist/services/subaccounts/subaccounts.js +2 -2
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +13 -13
- package/dist/services/system/system.js +1 -1
- package/dist/services/system/system.schemas.d.ts +13 -13
- package/dist/services/trades/trades.js +1 -1
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +1 -1
- package/dist/services/trading-withdraws/wallet-message.js +1 -1
- package/dist/services/transfers/transfers.js +1 -1
- package/dist/services/triggers/trigger-child-order.schemas.js +2 -2
- package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
- package/dist/services/triggers/trigger-input.schemas.js +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +52 -52
- package/dist/services/triggers/triggers.codecs.d.ts.map +1 -1
- package/dist/services/triggers/triggers.codecs.js +2 -0
- package/dist/services/triggers/triggers.codecs.js.map +1 -1
- package/dist/services/triggers/triggers.js +1 -1
- package/dist/services/vip/vip.js +1 -1
- package/dist/services/vip/vip.schemas.js +1 -1
- package/dist/services/zipper/zipper.js +1 -1
- package/dist/services/zipper/zipper.schemas.js +1 -1
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +1 -1
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/depth-tier.js +46 -0
- package/dist/shared/depth-tier.js.map +1 -0
- package/dist/shared/error-detail.d.ts +6 -0
- package/dist/shared/error-detail.d.ts.map +1 -1
- package/dist/shared/error-detail.js +2 -1
- package/dist/shared/error-detail.js.map +1 -1
- package/dist/shared/error-details/alerts.js +1 -1
- package/dist/shared/error-details/assistant.js +1 -1
- package/dist/shared/error-details/auth.js +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/request.js +16 -0
- package/dist/shared/error-details/request.js.map +1 -0
- package/dist/shared/error-details/withdraw.js +1 -1
- package/dist/shared/errors.d.ts +4 -1
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +4 -1
- package/dist/shared/errors.js.map +1 -1
- package/dist/shared/rate-limit.schemas.d.ts +1 -1
- package/dist/shared/rate-limit.schemas.js +1 -1
- package/dist/utils/connect-mfa-errors.d.ts +2 -2
- package/dist/utils/connect-mfa-errors.js +2 -2
- package/dist/utils/connect-mfa-errors.js.map +1 -1
- package/dist/wired-services.d.ts.map +1 -1
- package/dist/wired-services.js +21 -19
- package/dist/wired-services.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Message } from "@bufbuild/protobuf";
|
|
2
1
|
import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
3
2
|
import { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import { Message } from "@bufbuild/protobuf";
|
|
4
4
|
declare namespace vip_pb_d_exports {
|
|
5
5
|
export { GetVIPStatusRequest, GetVIPStatusRequestSchema, GetVIPStatusResponse, GetVIPStatusResponseSchema, ListVIPTiersRequest, ListVIPTiersRequestSchema, ListVIPTiersResponse, ListVIPTiersResponseSchema, NextVIPTierThresholds, NextVIPTierThresholdsSchema, VIPMetricQuality, VIPMetricQualitySchema, VIPMetricStatus, VIPMetricStatusSchema, VIPService, VIPTier, VIPTierSchema, file_vip_v1_vip };
|
|
6
6
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ import { ConfirmVerificationInput, GetVerificationResponse, SocialProvider, Soci
|
|
|
61
61
|
import { ZippedAssetSupplyBatch, ZippedAssetSupplyUpdate } from "./services/zipper/zipper.schemas.js";
|
|
62
62
|
import { SubscribeZippedAssetSupplyInput } from "./services/zipper/zipper.js";
|
|
63
63
|
import { BeginMfaChallengeInput, BeginMfaChallengeResult, BeginPasskeyEnrollmentInput, BeginPasskeyEnrollmentResult, BeginTotpEnrollmentInput, BeginTotpEnrollmentResult, ClaimFreshStepUpInput, ClaimFreshStepUpResult, CompleteMfaChallengeResult, ConsumeFreshStepUpInput, DeleteMfaFactorInput, FinishPasskeyChallengeInput, FinishPasskeyEnrollmentInput, FinishPasskeyEnrollmentResult, FinishTotpEnrollmentInput, FinishTotpEnrollmentResult, ListMfaFactorsResult, MfaFactor, MfaSessionInfo, RegenerateRecoveryCodesInput, RegenerateRecoveryCodesResult, ReleaseFreshStepUpInput, UpdateMfaFactorInput, UpdateMfaFactorResult, VerifyRecoveryCodeChallengeInput, VerifyTotpChallengeInput } from "./services/mfa/mfa.schemas.js";
|
|
64
|
+
import { AppAuthorization, AppAuthorizationInput, AppAuthorizationRedirect, ConnectedApp, ConnectedAppClient, RevokeConnectedAppInput } from "./services/connected-apps/connected-apps.schemas.js";
|
|
64
65
|
import { ClaimCampaign, ClaimDailyRewardInput, ClaimDailyRewardResult, ClaimPayoutDelayReason, DailyClaimReward, DailyClaimStatus, DailyClaimTransfer } from "./services/claims/claims.schemas.js";
|
|
65
66
|
import { Checkpoint, CheckpointAssetAmount, CheckpointBiggestTrade, CheckpointChainFlow, CheckpointEarnedBadge, CheckpointFlowTotal, CheckpointFundingDay, CheckpointFundingFlowSummary, CheckpointOrderToolCounts, CheckpointOrderTypeCounts, CheckpointPairActivity, CheckpointPortfolioValuePoint, CheckpointTimeInForceCounts, CheckpointVipTierChange, CheckpointVolumePoint, ListCheckpointsInput } from "./services/checkpoints/checkpoints.schemas.js";
|
|
66
67
|
import { ChangelogChange, ChangelogChangeEntry, ChangelogDeploymentGroup, ChangelogDeploymentGroupSummary, ChangelogPost, ChangelogPostSummary, ChangelogSection, GetChangelogDeploymentGroupInput, GetChangelogPostInput, ListChangelogChangesInput, ListChangelogChangesResult, ListChangelogDeploymentGroupsInput, ListChangelogDeploymentGroupsResult, ListChangelogPostsInput, ListChangelogPostsResult } from "./services/changelog/changelog.schemas.js";
|
|
@@ -95,7 +96,7 @@ import { EvmHex, checksumEvmAddress, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex
|
|
|
95
96
|
import "./services/account-activity/account-activity.types.js";
|
|
96
97
|
import "./services/accounts/accounts.types.js";
|
|
97
98
|
import "./services/address-book/address-book.types.js";
|
|
98
|
-
import { AssistantKeyPreset } from "./services/api-keys/api-keys.codecs.js";
|
|
99
|
+
import { ApiKeyPurposeInput, ApiKeyPurposeLabel, AssistantKeyPreset } from "./services/api-keys/api-keys.codecs.js";
|
|
99
100
|
import "./services/api-keys/api-keys.types.js";
|
|
100
101
|
import "./services/assistant/assistant.types.js";
|
|
101
102
|
import "./services/auth/auth.types.js";
|
|
@@ -110,6 +111,7 @@ import { CheckpointBadge, CheckpointField } from "./services/checkpoints/checkpo
|
|
|
110
111
|
import "./services/checkpoints/checkpoints.types.js";
|
|
111
112
|
import { ClaimPolicy, DailyClaimState } from "./services/claims/claims.codecs.js";
|
|
112
113
|
import "./services/claims/claims.types.js";
|
|
114
|
+
import "./services/connected-apps/connected-apps.types.js";
|
|
113
115
|
import "./services/deposit/deposit.types.js";
|
|
114
116
|
import { DustAssetEligibility, DustConversionRefusalCode, DustConversionState } from "./services/dust-conversion/dust-conversion.codecs.js";
|
|
115
117
|
import "./services/dust-conversion/dust-conversion.types.js";
|
|
@@ -123,7 +125,7 @@ import { AssetDataSourceValue } from "./services/market-data/market-data.codecs.
|
|
|
123
125
|
import "./services/market-data/market-data.types.js";
|
|
124
126
|
import "./services/market-overview/market-overview.types.js";
|
|
125
127
|
import "./services/mfa/mfa.types.js";
|
|
126
|
-
import { BrokerAllowlistAction, BrokerAllowlistEvent, NotificationCategory, NotificationReadState, NotificationType, TelegramApprovalAction } from "./services/notifications/notifications.codecs.js";
|
|
128
|
+
import { AdminKeyAction, BrokerAllowlistAction, BrokerAllowlistEvent, NotificationCategory, NotificationReadState, NotificationType, TelegramApprovalAction } from "./services/notifications/notifications.codecs.js";
|
|
127
129
|
import "./services/notifications/notifications.types.js";
|
|
128
130
|
import "./services/orderbook/orderbook.types.js";
|
|
129
131
|
import "./services/orders/orders.types.js";
|
|
@@ -150,4 +152,4 @@ import "./services/transfers/transfers.types.js";
|
|
|
150
152
|
import "./services/triggers/triggers.types.js";
|
|
151
153
|
import "./services/vip/vip.types.js";
|
|
152
154
|
import "./services/zipper/zipper.types.js";
|
|
153
|
-
export { type AccountActivityEvent, type AccountCodeValue, type AccountIdentity, type AccountNotification, type AccountNotificationDetail, type AccountScope, type AccountScopedInput, type AccountSigner, type AccountSignerAuthEvents, type AccountSignerConfig, type CreateSubaccountResult as AccountSignerCreateSubaccountResult, type AccountSignerFactory, type AcknowledgeRewardAwardInput, type AcknowledgeRewardAwardResult, 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 AssetDataSourceValue, type AssetEditorialInfo, type AssetInfo, type AssetMarketStats, type AssetMarketValue, type AssistantAccountSelection, type AssistantApprovalDecision, type AssistantApprovalPreview, type AssistantApprovalStatus, type AssistantConversation, type AssistantDisplaySetting, type AssistantFailureCategory, type AssistantFundingMode, type AssistantKey, type AssistantKeyPreset, type AssistantKeySpecInput, type AssistantKeyState, type AssistantKeyView, type AssistantMemory, type AssistantMemoryKind, type AssistantMessage, type AssistantMessageImage, type AssistantMessageRole, type AssistantModelKey, type AssistantModelKeyCheck, type AssistantOrderPreview, type AssistantOrderPriceField, type AssistantPriceOffsetDirection, type AssistantPriceRounding, type AssistantReferencePriceSource, type AssistantRunEvent, type AssistantRunIdInput, type AssistantTriggerChangeAction, type AssistantTriggerDirection, type AssistantUnfilledSlicePolicy, type AssistantUsage, type AssistantView, type AuthCookieLocation, type AuthHydrationData, type AuthLoginMethod, type AuthState, type AuthTokenStorage, type AuthTokenStorageSetOptions, AuthenticationError, type AutoWithdrawCadence, type AutoWithdrawDestination, type AutoWithdrawDestinationInput, type AutoWithdrawHoldReason, type AutoWithdrawPause, type AutoWithdrawPauseReason, type AutoWithdrawPreview, type AutoWithdrawPreviewAsset, type AutoWithdrawPreviewStatus, 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 BatchCancelTriggerResult, type BatchCancelTriggersInput, type BatchCancelTriggersResult, type BatchCreateInternalTransfersInput, type BatchCreateInternalTransfersResult, 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 BrokerAllowlistAction, type BrokerAllowlistEvent, type CancelAllAfterInput, type CancelAllAfterResult, type CancelAllOrdersInput, type CancelAllOrdersResponse, type CancelOcoInput, type CancelOcoResult, type CancelOrderInput, type CancelOrderResult, type CancelPriceAlertInput, type CancelStatementExportInput, type CancelTriggerInput, type CancelTriggerResult, type Candle, type CandleColumnar, type CandleColumnarInt, type CandleInt, type ChainAnalyticsRange, type ChangelogAudience, type ChangelogChange, type ChangelogChangeAvailability, type ChangelogChangeCategory, type ChangelogChangeEntry, type ChangelogDeploymentGroup, type ChangelogDeploymentGroupSummary, type ChangelogEnvironment, 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, ClaimOutcomeUnknownError, type ClaimOutcomeUnknownErrorOptions, type ClaimPayoutDelayReason, type ClaimPolicy, type ColumnarTimeWindow, type CompleteAssistantKeysInput, type CompleteMfaChallengeResult, ConfigurationError, type ConfirmVerificationInput, type ConnectChannelParams, type ConnectPrivateOrdersParams, type ConsumeFreshStepUpInput, type CookieAuthTokenStorageOptions, type CopyAddressBookEntryInput, type CreateAddressBookEntryInput, type CreateAddressBookTagInput, type CreateDepositAddressInput, type CreateDustConversionInput, type CreateGuardSignerWalletResult, type CreateInternalTransferInput, type CreateInternalTransferResult, type CreateOcoInput, type CreateOcoResult, type CreateOrderResult, type CreateOrderbookSubscriptionInput, type CreatePolyesterAccountSignerParams, type CreatePolyesterEnvironmentParams, type CreatePriceAlertInput, type CreateServerClientFromCookiesParams, type CreateServerClientFromRequestParams, type CreateStatementExportInput, 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 DecideAssistantApprovalInput, type DeleteAddressBookEntryInput, type DeleteAddressBookTagInput, type DeleteAssistantMemoryInput, type DeleteMfaFactorInput, type DepositAddress, type DepositWithdrawConfig, type DustAssetEligibility, type DustAssetPrice, type DustBalance, type DustConversion, type DustConversionQuote, type DustConversionRefusalCode, type DustConversionState, 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 GetAssistantMessageImageInput, type GetBatchReplaceStatusInput, type GetBatchReplaceStatusResult, type GetCandlesColumnsInput, type GetCandlesInput, type GetChangelogDeploymentGroupInput, type GetChangelogPostInput, type GetDustConversionInput, type GetInternalTransferBatchInput, type GetInternalTransferInput, type GetInternalTransferResult, type GetLifecycleAccountFlowInput, type GetLifecycleFlowInput, type GetLifecycleFlowOutput, type GetMarketTradesInput, type GetNotificationInput, type GetOrderDetailsInput, type GetOrderbookHeatmapInput, type GetOrderbookInput, type GetSpotFeeRatesInput, type GetStatementExportDownloadUrlInput, type GetStatementExportInput, type GetSubaccountInput, type GetTriggerInput, type GetUnifiedAssetBalancesInput, type GetUserTradesInput, type GetVerificationResponse, type GetWalletBalancesInput, type GetWalletBalancesResult, type GetZippedAssetSupplyGroupInput, type GetZippedAssetSupplyInput, type GuardApproval, type GuardSignerScopedInput, type GuardSignerStatus, type HeatmapDepthValue, type HeatmapIntervalValue, type HeatmapQuantityModeValue, type HexAddress, InternalServerError, type InternalTransferBatchLegInput, type InternalTransferBatchLegResult, type InternalTransferBatchLegStatus, type InternalTransferBatchStatus, type InternalTransferDestination, type InternalTransferErrorCode, type InternalTransferStatus, 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 LifecycleZipperReasonCode, type ListAccountActivityInput, type ListAccountActivityResult, type ListAddressBookEntriesInput, type ListApiKeyPoliciesResponse, type ListAssetInfoInput, type ListAssistantConversationsInput, type ListAssistantConversationsResult, type ListAssistantKeysInput, type ListAssistantMemoriesInput, type ListAssistantMemoriesResult, type ListAssistantMessagesInput, type ListAssistantMessagesResult, type ListAutoWithdrawRunsInput, type ListAutoWithdrawRunsResult, type ListChangelogChangesInput, type ListChangelogChangesResult, type ListChangelogDeploymentGroupsInput, type ListChangelogDeploymentGroupsResult, type ListChangelogPostsInput, type ListChangelogPostsResult, type ListCheckpointsInput, type ListDepositAddressesInput, type ListDustBalancesInput, type ListDustBalancesResult, type ListDustConversionsInput, type ListDustConversionsResult, type ListInternalTransferWhitelistEntriesInput, type ListLifecycleAccountFlowsInput, type ListLifecycleFlowsByTxInput, type ListLifecycleFlowsByTxOutput, type ListLifecycleFlowsInput, type ListLifecycleFlowsOutput, type ListMarketOverviewInput, type ListMfaFactorsResult, type ListNotificationsInput, type ListNotificationsResult, type ListPriceAlertsInput, type ListPriceAlertsResult, type ListRewardAwardsInput, type ListRewardAwardsResult, type ListStatementExportsInput, type ListStatementExportsResult, type ListStatusEventsInput, type ListStatusEventsResult, 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 MarkAllNotificationsReadInput, type MarkNotificationsInput, 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 NotificationCategory, type NotificationCounts, type NotificationReadState, type NotificationType, 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 PrepareAssistantKeysInput, type PrepareAssistantKeysResult, type PreparedAssistantKey, type PreparedTradingWithdraw, type PreviewOrderResult, type PriceAlert, type PriceAlertChannel, type PriceAlertDirection, type PriceAlertPriceSource, type PriceAlertStatus, type PriceAlertUpdateOutcome, type PrivateOrdersEvent, type Profile, type QuoteDustConversionInput, type RateLimitConfig, type RateLimitDetail, RateLimitError, type RateLimitErrorOptions, type RateLimitFailureReason, type RateLimitPolicyClass, type RateLimitRefillModel, type RateLimitScope, type RealtimeConnection, type RealtimeConnectionState, type RealtimeConnectionStatus, RealtimeError, type RealtimeErrorOptions, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestDeadlineExceededError, RequestError, RequestTooLargeError, type ResolveAccountInput, type ResolvedAccount, type ResolvedInternalTransferDestination, ResourceNotFoundError, type RespondSubaccountInviteInput, type ResumeTriggerInput, type ResumeTriggerResult, RevisionConflictError, type RewardAward, type RewardFulfillmentMethod, type RewardFulfillmentState, type RiskPolicyInput, type RotateGuardSignerWalletResult, type SdkSubscriptionErrorContext, type SendAssistantMessageInput, type ServerSessionCookieOptions, type ServerSessionSnapshot, ServiceUnavailableError, type SessionData, SessionElevationRequiredError, type SetAssistantKeysInput, type SetAssistantModelKeyInput, type SetAutoWithdrawRuleEnabledInput, type SetAutoWithdrawRuleInput, type SetRewardDestinationInput, type SetRewardDestinationResult, type SetSubaccountMemberMfaRequirementInput, type SetTelegramApprovalLimitsInput, type SignProtectedActionInput, type SocialProvider, type SocialProviderInput, type SocialVerification, type SocialVerificationErrorCode, type SocialVerificationMethod, type SocialVerificationStatus, type SparklineIntervalName, type SpotConfig, type SpotFeeDiscount, type SpotFeeRate, type SpotFeeRateBreakdown, type SpotPairVolumeSeries, type SpotVolumeHistoryInput, type SpotVolumeHistoryResponse, type StablecoinConversionRate, StaleQuoteError, type StartVerificationInput, type StartVerificationResponse, type StatementExport, type StatementExportDownloadUrl, type StatementExportFailureReason, type StatementExportStatus, type StatusEvent, type StatusEventImpact, type StatusEventKind, type StatusEventService, type StatusEventState, 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 SystemTime, type SystemVersion, type TakeProfitInput, type TelegramApprovalAction, type TelegramApprovalLimits, 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 UnlinkSocialAccountInput, type UpdateAddressBookEntryInput, type UpdateAddressBookTagInput, type UpdateMfaFactorInput, type UpdateMfaFactorResult, type UpdatePriceAlertInput, type UpdatePriceAlertResult, 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 WalletAssetUnavailableReasonValue, type WalletChallenge, type WatchAssistantRunInput, WithdrawDeadlineExpiredError, type WithdrawWhitelistView, type ZippedAssetSupplyBatch, type ZippedAssetSupplyGroupResponse, type ZippedAssetSupplyResponse, type ZippedAssetSupplySeries, type ZippedAssetSupplyUpdate, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperChainConfig, type ZipperChainContractConfig, type ZipperMemoRequirement, type ZipperRouteStatus, type ZipperSupplyStatus, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, createPolyesterServerCoreFromCookies, createPolyesterServerCoreFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatLedgerBalance, 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 };
|
|
155
|
+
export { type AccountActivityEvent, type AccountCodeValue, type AccountIdentity, type AccountNotification, type AccountNotificationDetail, type AccountScope, type AccountScopedInput, type AccountSigner, type AccountSignerAuthEvents, type AccountSignerConfig, type CreateSubaccountResult as AccountSignerCreateSubaccountResult, type AccountSignerFactory, type AcknowledgeRewardAwardInput, type AcknowledgeRewardAwardResult, type ActiveAccountInfo, type AddressBook, type AddressBookAccountScope, type AddressBookEntries, type AddressBookEntriesView, type AddressBookEntry, type AddressBookRecentDestinationsView, type AddressBookTag, type AddressBookTagSummary, type AddressBookView, type AddressBookViewInvalidated, type AdminKeyAction, AlreadyExistsError, type ApiKey, type ApiKeyEd25519AuthProvider, type ApiKeyIdInput, type ApiKeyPolicy, type ApiKeyPolicyApplyInput, type ApiKeyPolicyCreateInput, type ApiKeyPolicyUpdateInput, type ApiKeyPurposeInput, type ApiKeyPurposeLabel, type ApiKeyStatus, type ApiKeysCreateInput, type ApiKeysListInput, type ApiKeysUpdateInput, type AppAuthorization, type AppAuthorizationInput, type AppAuthorizationRedirect, type AssetConfig, type AssetDataSourceValue, type AssetEditorialInfo, type AssetInfo, type AssetMarketStats, type AssetMarketValue, type AssistantAccountSelection, type AssistantApprovalDecision, type AssistantApprovalPreview, type AssistantApprovalStatus, type AssistantConversation, type AssistantDisplaySetting, type AssistantFailureCategory, type AssistantFundingMode, type AssistantKey, type AssistantKeyPreset, type AssistantKeySpecInput, type AssistantKeyState, type AssistantKeyView, type AssistantMemory, type AssistantMemoryKind, type AssistantMessage, type AssistantMessageImage, type AssistantMessageRole, type AssistantModelKey, type AssistantModelKeyCheck, type AssistantOrderPreview, type AssistantOrderPriceField, type AssistantPriceOffsetDirection, type AssistantPriceRounding, type AssistantReferencePriceSource, type AssistantRunEvent, type AssistantRunIdInput, type AssistantTriggerChangeAction, type AssistantTriggerDirection, type AssistantUnfilledSlicePolicy, type AssistantUsage, type AssistantView, type AuthCookieLocation, type AuthHydrationData, type AuthLoginMethod, type AuthState, type AuthTokenStorage, type AuthTokenStorageSetOptions, AuthenticationError, type AutoWithdrawCadence, type AutoWithdrawDestination, type AutoWithdrawDestinationInput, type AutoWithdrawHoldReason, type AutoWithdrawPause, type AutoWithdrawPauseReason, type AutoWithdrawPreview, type AutoWithdrawPreviewAsset, type AutoWithdrawPreviewStatus, 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 BatchCancelTriggerResult, type BatchCancelTriggersInput, type BatchCancelTriggersResult, type BatchCreateInternalTransfersInput, type BatchCreateInternalTransfersResult, 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 BrokerAllowlistAction, type BrokerAllowlistEvent, type CancelAllAfterInput, type CancelAllAfterResult, type CancelAllOrdersInput, type CancelAllOrdersResponse, type CancelOcoInput, type CancelOcoResult, type CancelOrderInput, type CancelOrderResult, type CancelPriceAlertInput, type CancelStatementExportInput, type CancelTriggerInput, type CancelTriggerResult, type Candle, type CandleColumnar, type CandleColumnarInt, type CandleInt, type ChainAnalyticsRange, type ChangelogAudience, type ChangelogChange, type ChangelogChangeAvailability, type ChangelogChangeCategory, type ChangelogChangeEntry, type ChangelogDeploymentGroup, type ChangelogDeploymentGroupSummary, type ChangelogEnvironment, 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, ClaimOutcomeUnknownError, type ClaimOutcomeUnknownErrorOptions, type ClaimPayoutDelayReason, type ClaimPolicy, type ColumnarTimeWindow, type CompleteAssistantKeysInput, type CompleteMfaChallengeResult, ConfigurationError, type ConfirmVerificationInput, type ConnectChannelParams, type ConnectPrivateOrdersParams, type ConnectedApp, type ConnectedAppClient, type ConsumeFreshStepUpInput, type CookieAuthTokenStorageOptions, type CopyAddressBookEntryInput, type CreateAddressBookEntryInput, type CreateAddressBookTagInput, type CreateDepositAddressInput, type CreateDustConversionInput, type CreateGuardSignerWalletResult, type CreateInternalTransferInput, type CreateInternalTransferResult, type CreateOcoInput, type CreateOcoResult, type CreateOrderResult, type CreateOrderbookSubscriptionInput, type CreatePolyesterAccountSignerParams, type CreatePolyesterEnvironmentParams, type CreatePriceAlertInput, type CreateServerClientFromCookiesParams, type CreateServerClientFromRequestParams, type CreateStatementExportInput, 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 DecideAssistantApprovalInput, type DeleteAddressBookEntryInput, type DeleteAddressBookTagInput, type DeleteAssistantMemoryInput, type DeleteMfaFactorInput, type DepositAddress, type DepositWithdrawConfig, type DustAssetEligibility, type DustAssetPrice, type DustBalance, type DustConversion, type DustConversionQuote, type DustConversionRefusalCode, type DustConversionState, 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 GetAssistantMessageImageInput, type GetBatchReplaceStatusInput, type GetBatchReplaceStatusResult, type GetCandlesColumnsInput, type GetCandlesInput, type GetChangelogDeploymentGroupInput, type GetChangelogPostInput, type GetDustConversionInput, type GetInternalTransferBatchInput, type GetInternalTransferInput, type GetInternalTransferResult, type GetLifecycleAccountFlowInput, type GetLifecycleFlowInput, type GetLifecycleFlowOutput, type GetMarketTradesInput, type GetNotificationInput, type GetOrderDetailsInput, type GetOrderbookHeatmapInput, type GetOrderbookInput, type GetSpotFeeRatesInput, type GetStatementExportDownloadUrlInput, type GetStatementExportInput, type GetSubaccountInput, type GetTriggerInput, type GetUnifiedAssetBalancesInput, type GetUserTradesInput, type GetVerificationResponse, type GetWalletBalancesInput, type GetWalletBalancesResult, type GetZippedAssetSupplyGroupInput, type GetZippedAssetSupplyInput, type GuardApproval, type GuardSignerScopedInput, type GuardSignerStatus, type HeatmapDepthValue, type HeatmapIntervalValue, type HeatmapQuantityModeValue, type HexAddress, InternalServerError, type InternalTransferBatchLegInput, type InternalTransferBatchLegResult, type InternalTransferBatchLegStatus, type InternalTransferBatchStatus, type InternalTransferDestination, type InternalTransferErrorCode, type InternalTransferStatus, 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 LifecycleZipperReasonCode, type ListAccountActivityInput, type ListAccountActivityResult, type ListAddressBookEntriesInput, type ListApiKeyPoliciesResponse, type ListAssetInfoInput, type ListAssistantConversationsInput, type ListAssistantConversationsResult, type ListAssistantKeysInput, type ListAssistantMemoriesInput, type ListAssistantMemoriesResult, type ListAssistantMessagesInput, type ListAssistantMessagesResult, type ListAutoWithdrawRunsInput, type ListAutoWithdrawRunsResult, type ListChangelogChangesInput, type ListChangelogChangesResult, type ListChangelogDeploymentGroupsInput, type ListChangelogDeploymentGroupsResult, type ListChangelogPostsInput, type ListChangelogPostsResult, type ListCheckpointsInput, type ListDepositAddressesInput, type ListDustBalancesInput, type ListDustBalancesResult, type ListDustConversionsInput, type ListDustConversionsResult, type ListInternalTransferWhitelistEntriesInput, type ListLifecycleAccountFlowsInput, type ListLifecycleFlowsByTxInput, type ListLifecycleFlowsByTxOutput, type ListLifecycleFlowsInput, type ListLifecycleFlowsOutput, type ListMarketOverviewInput, type ListMfaFactorsResult, type ListNotificationsInput, type ListNotificationsResult, type ListPriceAlertsInput, type ListPriceAlertsResult, type ListRewardAwardsInput, type ListRewardAwardsResult, type ListStatementExportsInput, type ListStatementExportsResult, type ListStatusEventsInput, type ListStatusEventsResult, 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 MarkAllNotificationsReadInput, type MarkNotificationsInput, 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 NotificationCategory, type NotificationCounts, type NotificationReadState, type NotificationType, 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 PrepareAssistantKeysInput, type PrepareAssistantKeysResult, type PreparedAssistantKey, type PreparedTradingWithdraw, type PreviewOrderResult, type PriceAlert, type PriceAlertChannel, type PriceAlertDirection, type PriceAlertPriceSource, type PriceAlertStatus, type PriceAlertUpdateOutcome, type PrivateOrdersEvent, type Profile, type QuoteDustConversionInput, type RateLimitConfig, type RateLimitDetail, RateLimitError, type RateLimitErrorOptions, type RateLimitFailureReason, type RateLimitPolicyClass, type RateLimitRefillModel, type RateLimitScope, type RealtimeConnection, type RealtimeConnectionState, type RealtimeConnectionStatus, RealtimeError, type RealtimeErrorOptions, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestDeadlineExceededError, RequestError, RequestTooLargeError, type ResolveAccountInput, type ResolvedAccount, type ResolvedInternalTransferDestination, ResourceNotFoundError, type RespondSubaccountInviteInput, type ResumeTriggerInput, type ResumeTriggerResult, RevisionConflictError, type RevokeConnectedAppInput, type RewardAward, type RewardFulfillmentMethod, type RewardFulfillmentState, type RiskPolicyInput, type RotateGuardSignerWalletResult, type SdkSubscriptionErrorContext, type SendAssistantMessageInput, type ServerSessionCookieOptions, type ServerSessionSnapshot, ServiceUnavailableError, type SessionData, SessionElevationRequiredError, type SetAssistantKeysInput, type SetAssistantModelKeyInput, type SetAutoWithdrawRuleEnabledInput, type SetAutoWithdrawRuleInput, type SetRewardDestinationInput, type SetRewardDestinationResult, type SetSubaccountMemberMfaRequirementInput, type SetTelegramApprovalLimitsInput, type SignProtectedActionInput, type SocialProvider, type SocialProviderInput, type SocialVerification, type SocialVerificationErrorCode, type SocialVerificationMethod, type SocialVerificationStatus, type SparklineIntervalName, type SpotConfig, type SpotFeeDiscount, type SpotFeeRate, type SpotFeeRateBreakdown, type SpotPairVolumeSeries, type SpotVolumeHistoryInput, type SpotVolumeHistoryResponse, type StablecoinConversionRate, StaleQuoteError, type StartVerificationInput, type StartVerificationResponse, type StatementExport, type StatementExportDownloadUrl, type StatementExportFailureReason, type StatementExportStatus, type StatusEvent, type StatusEventImpact, type StatusEventKind, type StatusEventService, type StatusEventState, 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 SystemTime, type SystemVersion, type TakeProfitInput, type TelegramApprovalAction, type TelegramApprovalLimits, 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 UnlinkSocialAccountInput, type UpdateAddressBookEntryInput, type UpdateAddressBookTagInput, type UpdateMfaFactorInput, type UpdateMfaFactorResult, type UpdatePriceAlertInput, type UpdatePriceAlertResult, 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 WalletAssetUnavailableReasonValue, type WalletChallenge, type WatchAssistantRunInput, WithdrawDeadlineExpiredError, type WithdrawWhitelistView, type ZippedAssetSupplyBatch, type ZippedAssetSupplyGroupResponse, type ZippedAssetSupplyResponse, type ZippedAssetSupplySeries, type ZippedAssetSupplyUpdate, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperChainConfig, type ZipperChainContractConfig, type ZipperMemoRequirement, type ZipperRouteStatus, type ZipperSupplyStatus, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, createPolyesterServerCoreFromCookies, createPolyesterServerCoreFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatLedgerBalance, 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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { AccountActivityService as AccountActivityService$1 } from "../../gen/auth/v1/activity_pb.js";
|
|
1
2
|
import { parse } from "../../shared/validation.js";
|
|
2
3
|
import { removeUndefined } from "../../utils/remove-undefined.js";
|
|
3
4
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
4
|
-
import { AccountActivityService as AccountActivityService$1 } from "../../gen/auth/v1/activity_pb.js";
|
|
5
5
|
import { ListAccountActivityInputSchema, ListAccountActivityResultSchema } from "./account-activity.schemas.js";
|
|
6
6
|
import { createClient } from "@connectrpc/connect";
|
|
7
7
|
//#region src/services/account-activity/account-activity.ts
|
|
@@ -27,8 +27,8 @@ declare const ListAccountActivityInputSchema: v.SchemaWithPipe<readonly [v.Stric
|
|
|
27
27
|
}, undefined>, v.TransformAction<{
|
|
28
28
|
subaccountIds?: bigint[] | undefined;
|
|
29
29
|
includeMainAccount?: boolean | undefined;
|
|
30
|
-
entityKinds?: ("
|
|
31
|
-
eventActions?: ("disabled" | "
|
|
30
|
+
entityKinds?: ("api_key" | "account" | "subaccount" | "session" | "member" | "policy" | "invite" | "security" | "destination")[] | undefined;
|
|
31
|
+
eventActions?: ("disabled" | "removed" | "revoked" | "created" | "updated" | "deleted" | "enabled" | "role_set" | "received" | "replied" | "failed" | "blocked" | "hold_placed" | "hold_released" | "requested" | "applied")[] | undefined;
|
|
32
32
|
sources?: ("web" | "mobile" | "api")[] | undefined;
|
|
33
33
|
apiKeyId?: bigint | undefined;
|
|
34
34
|
startTime?: import("@bufbuild/protobuf/wkt").Timestamp | undefined;
|
|
@@ -57,8 +57,8 @@ declare const ListAccountActivityResultSchema: v.ObjectSchema<{
|
|
|
57
57
|
seconds: bigint;
|
|
58
58
|
nanos: number;
|
|
59
59
|
} | undefined, number | undefined>]>;
|
|
60
|
-
readonly entityKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "
|
|
61
|
-
readonly eventAction: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "disabled" | "
|
|
60
|
+
readonly entityKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "api_key" | "account" | "subaccount" | "session" | "member" | "policy" | "invite" | "security" | "destination">]>;
|
|
61
|
+
readonly eventAction: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "disabled" | "removed" | "revoked" | "created" | "updated" | "deleted" | "enabled" | "role_set" | "received" | "replied" | "failed" | "blocked" | "hold_placed" | "hold_released" | "requested" | "applied">]>;
|
|
62
62
|
readonly source: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "web" | "mobile" | "api">]>;
|
|
63
63
|
readonly ip: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
64
64
|
readonly userAgent: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ResolveService } from "../../gen/auth/v1/resolve_pb.js";
|
|
1
2
|
import { parse } from "../../shared/validation.js";
|
|
2
3
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
3
|
-
import { ResolveService } from "../../gen/auth/v1/resolve_pb.js";
|
|
4
4
|
import { ResolveAccountInputSchema, ResolvedAccountArraySchema } from "./accounts.schemas.js";
|
|
5
5
|
import { createClient } from "@connectrpc/connect";
|
|
6
6
|
//#region src/services/accounts/accounts.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import "../../gen/auth/v1/resolve_pb.js";
|
|
1
2
|
import { PublicIdSchema } from "../../shared/schemas.js";
|
|
2
3
|
import { enumLabelSchema } from "../../shared/proto-enum-codec.js";
|
|
3
|
-
import "../../gen/auth/v1/resolve_pb.js";
|
|
4
4
|
import { ResolveHintCodec, ResolvedAccountKindCodec } from "./accounts.codecs.js";
|
|
5
5
|
import * as v from "valibot";
|
|
6
6
|
//#region src/services/accounts/accounts.schemas.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { AddressBookService as AddressBookService$1, AddressBookViewInvalidatedSchema } from "../../gen/auth/v1/address_book_pb.js";
|
|
1
2
|
import { parse } from "../../shared/validation.js";
|
|
2
3
|
import { removeUndefined } from "../../utils/remove-undefined.js";
|
|
3
4
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
4
|
-
import { AddressBookService as AddressBookService$1, AddressBookViewInvalidatedSchema } from "../../gen/auth/v1/address_book_pb.js";
|
|
5
5
|
import { resolveAccountScopedInput } from "../subaccount-resolver.js";
|
|
6
6
|
import { AddressBookEntriesSchema, AddressBookEntrySchema, AddressBookSchema, AddressBookTagSchema, AddressBookViewInvalidatedSchema as AddressBookViewInvalidatedSchema$1, AddressBookViewSchema, CopyAddressBookEntryInputSchema, CreateAddressBookEntryInputSchema, CreateAddressBookTagInputSchema, DeleteAddressBookEntryInputSchema, DeleteAddressBookTagInputSchema, GetAddressBookViewInputSchema, InternalTransferWhitelistEntriesSchema, ListAddressBookEntriesInputSchema, ListInternalTransferWhitelistEntriesInputSchema, ListTransferCounterpartiesInputSchema, ListTransferDestinationsInputSchema, SubaccountScopedInputSchema, TransferCounterpartiesSchema, TransferDestinationsSchema, UpdateAddressBookEntryInputSchema, UpdateAddressBookTagInputSchema, WithdrawWhitelistViewSchema } from "./address-book.schemas.js";
|
|
7
7
|
import { createClient } from "@connectrpc/connect";
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import "../../gen/auth/v1/api_keys_pb.js";
|
|
2
2
|
//#region src/services/api-keys/api-keys.codecs.d.ts
|
|
3
|
+
declare const API_KEY_PURPOSE_VALUES: readonly ["standard", "assistant", "admin"];
|
|
4
|
+
type ApiKeyPurposeLabel = (typeof API_KEY_PURPOSE_VALUES)[number];
|
|
5
|
+
/** Purposes a key can be created with or switched to; assistant keys come from `setAssistantKeys`. */
|
|
6
|
+
declare const API_KEY_PURPOSE_INPUT_VALUES: readonly ["standard", "admin"];
|
|
7
|
+
type ApiKeyPurposeInput = (typeof API_KEY_PURPOSE_INPUT_VALUES)[number];
|
|
3
8
|
/**
|
|
4
9
|
* Fixed permission sets for an assistant key, available on devnet only. `read_only` reads
|
|
5
10
|
* balances, orders, transfers, auto-withdraw rules, API keys, subaccounts, deposit addresses
|
|
@@ -10,5 +15,5 @@ import "../../gen/auth/v1/api_keys_pb.js";
|
|
|
10
15
|
declare const ASSISTANT_KEY_PRESET_VALUES: readonly ["read_only", "trade_with_approval"];
|
|
11
16
|
type AssistantKeyPreset = (typeof ASSISTANT_KEY_PRESET_VALUES)[number];
|
|
12
17
|
//#endregion
|
|
13
|
-
export { ASSISTANT_KEY_PRESET_VALUES, AssistantKeyPreset };
|
|
18
|
+
export { API_KEY_PURPOSE_INPUT_VALUES, API_KEY_PURPOSE_VALUES, ASSISTANT_KEY_PRESET_VALUES, ApiKeyPurposeInput, ApiKeyPurposeLabel, AssistantKeyPreset };
|
|
14
19
|
//# sourceMappingURL=api-keys.codecs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.codecs.d.ts","names":[],"sources":["../../../src/services/api-keys/api-keys.codecs.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"api-keys.codecs.d.ts","names":[],"sources":["../../../src/services/api-keys/api-keys.codecs.ts"],"mappings":";;cAOa;KACD,6BAA6B;;cAE5B;KACD,6BAA6B;;;;;;;;cAS5B;KACD,6BAA6B"}
|
|
@@ -6,6 +6,8 @@ const API_KEY_STATUS_VALUES = [
|
|
|
6
6
|
"disabled"
|
|
7
7
|
];
|
|
8
8
|
const API_KEY_UPDATE_STATUS_VALUES = ["active", "disabled"];
|
|
9
|
+
/** Purposes a key can be created with or switched to; assistant keys come from `setAssistantKeys`. */
|
|
10
|
+
const API_KEY_PURPOSE_INPUT_VALUES = ["standard", "admin"];
|
|
9
11
|
/**
|
|
10
12
|
* Fixed permission sets for an assistant key, available on devnet only. `read_only` reads
|
|
11
13
|
* balances, orders, transfers, auto-withdraw rules, API keys, subaccounts, deposit addresses
|
|
@@ -20,13 +22,23 @@ const AssistantKeyPresetCodec = { inputToProto: {
|
|
|
20
22
|
} };
|
|
21
23
|
/**
|
|
22
24
|
* `assistant` keys belong to the Polyester AI assistant: their policy can never move value out
|
|
23
|
-
* of the account. They are listed, updated and revoked like any key.
|
|
25
|
+
* of the account. They are listed, updated and revoked like any key. `admin` keys are elevated:
|
|
26
|
+
* their policy's admin permissions let them manage the main account's other keys and its
|
|
27
|
+
* sub-account policies without a session. Only the owner's session with a fresh step-up proof
|
|
28
|
+
* can create, promote, change or delete one.
|
|
24
29
|
*/
|
|
25
|
-
const ApiKeyPurposeCodec = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
+
const ApiKeyPurposeCodec = {
|
|
31
|
+
inputToProto: {
|
|
32
|
+
standard: 1,
|
|
33
|
+
admin: 3
|
|
34
|
+
},
|
|
35
|
+
protoToOutput: {
|
|
36
|
+
[0]: "unspecified",
|
|
37
|
+
[1]: "standard",
|
|
38
|
+
[2]: "assistant",
|
|
39
|
+
[3]: "admin"
|
|
40
|
+
}
|
|
41
|
+
};
|
|
30
42
|
const ApiKeyStatusCodec = {
|
|
31
43
|
inputToProto: {
|
|
32
44
|
active: 1,
|
|
@@ -40,6 +52,6 @@ const ApiKeyStatusCodec = {
|
|
|
40
52
|
}
|
|
41
53
|
};
|
|
42
54
|
//#endregion
|
|
43
|
-
export { API_KEY_STATUS_VALUES, API_KEY_UPDATE_STATUS_VALUES, ASSISTANT_KEY_PRESET_VALUES, ApiKeyPurposeCodec, ApiKeyStatusCodec, AssistantKeyPresetCodec };
|
|
55
|
+
export { API_KEY_PURPOSE_INPUT_VALUES, API_KEY_STATUS_VALUES, API_KEY_UPDATE_STATUS_VALUES, ASSISTANT_KEY_PRESET_VALUES, ApiKeyPurposeCodec, ApiKeyStatusCodec, AssistantKeyPresetCodec };
|
|
44
56
|
|
|
45
57
|
//# sourceMappingURL=api-keys.codecs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.codecs.js","names":[],"sources":["../../../src/services/api-keys/api-keys.codecs.ts"],"sourcesContent":["import * as Proto from \"../../gen/auth/v1/api_keys_pb.js\";\nimport type { InputToProto, ProtoToOutput } from \"../../utils/types.js\";\n\nexport const API_KEY_STATUS_VALUES = [\"active\", \"revoked\", \"disabled\"] as const;\nexport type ApiKeyStatusLabel = (typeof API_KEY_STATUS_VALUES)[number];\nexport const API_KEY_UPDATE_STATUS_VALUES = [\"active\", \"disabled\"] as const;\nexport type ApiKeyUpdateStatusLabel = (typeof API_KEY_UPDATE_STATUS_VALUES)[number];\nexport const API_KEY_PURPOSE_VALUES = [\"standard\", \"assistant\"] as const;\nexport type ApiKeyPurposeLabel = (typeof API_KEY_PURPOSE_VALUES)[number];\n\n/**\n * Fixed permission sets for an assistant key, available on devnet only. `read_only` reads\n * balances, orders, transfers, auto-withdraw rules, API keys, subaccounts, deposit addresses\n * and account statements (and price alerts on the main account). `trade_with_approval` adds trading, swaps and deposit\n * address creation, each trade only after the user approves it (and price alert management on\n * the main account). No preset moves value out of the account.\n */\nexport const ASSISTANT_KEY_PRESET_VALUES = [\"read_only\", \"trade_with_approval\"] as const;\nexport type AssistantKeyPreset = (typeof ASSISTANT_KEY_PRESET_VALUES)[number];\n\nexport const AssistantKeyPresetCodec = {\n inputToProto: {\n read_only: Proto.AssistantKeyPreset.READ_ONLY,\n trade_with_approval: Proto.AssistantKeyPreset.TRADE_WITH_APPROVAL,\n } satisfies InputToProto<AssistantKeyPreset, Proto.AssistantKeyPreset>,\n} as const;\n\n/**\n * `assistant` keys belong to the Polyester AI assistant: their policy can never move value out\n * of the account. They are listed, updated and revoked like any key.\n */\nexport const ApiKeyPurposeCodec = {\n protoToOutput: {\n [Proto.ApiKeyPurpose.PURPOSE_UNSPECIFIED]: \"unspecified\",\n [Proto.ApiKeyPurpose.STANDARD]: \"standard\",\n [Proto.ApiKeyPurpose.ASSISTANT]: \"assistant\",\n } satisfies ProtoToOutput<Proto.ApiKeyPurpose, ApiKeyPurposeLabel>,\n} as const;\n\nexport const ApiKeyStatusCodec = {\n inputToProto: {\n active: Proto.ApiKeyStatus.ACTIVE,\n disabled: Proto.ApiKeyStatus.DISABLED,\n } satisfies InputToProto<ApiKeyUpdateStatusLabel, Proto.ApiKeyStatus>,\n protoToOutput: {\n [Proto.ApiKeyStatus.API_KEY_STATUS_UNSPECIFIED]: \"unspecified\",\n [Proto.ApiKeyStatus.ACTIVE]: \"active\",\n [Proto.ApiKeyStatus.REVOKED]: \"revoked\",\n [Proto.ApiKeyStatus.DISABLED]: \"disabled\",\n } satisfies ProtoToOutput<Proto.ApiKeyStatus, ApiKeyStatusLabel>,\n} as const;\n"],"mappings":";;AAGA,MAAa,wBAAwB;CAAC;CAAU;CAAW;AAAU;AAErE,MAAa,+BAA+B,CAAC,UAAU,UAAU;;;;;;;;
|
|
1
|
+
{"version":3,"file":"api-keys.codecs.js","names":[],"sources":["../../../src/services/api-keys/api-keys.codecs.ts"],"sourcesContent":["import * as Proto from \"../../gen/auth/v1/api_keys_pb.js\";\nimport type { InputToProto, ProtoToOutput } from \"../../utils/types.js\";\n\nexport const API_KEY_STATUS_VALUES = [\"active\", \"revoked\", \"disabled\"] as const;\nexport type ApiKeyStatusLabel = (typeof API_KEY_STATUS_VALUES)[number];\nexport const API_KEY_UPDATE_STATUS_VALUES = [\"active\", \"disabled\"] as const;\nexport type ApiKeyUpdateStatusLabel = (typeof API_KEY_UPDATE_STATUS_VALUES)[number];\nexport const API_KEY_PURPOSE_VALUES = [\"standard\", \"assistant\", \"admin\"] as const;\nexport type ApiKeyPurposeLabel = (typeof API_KEY_PURPOSE_VALUES)[number];\n/** Purposes a key can be created with or switched to; assistant keys come from `setAssistantKeys`. */\nexport const API_KEY_PURPOSE_INPUT_VALUES = [\"standard\", \"admin\"] as const;\nexport type ApiKeyPurposeInput = (typeof API_KEY_PURPOSE_INPUT_VALUES)[number];\n\n/**\n * Fixed permission sets for an assistant key, available on devnet only. `read_only` reads\n * balances, orders, transfers, auto-withdraw rules, API keys, subaccounts, deposit addresses\n * and account statements (and price alerts on the main account). `trade_with_approval` adds trading, swaps and deposit\n * address creation, each trade only after the user approves it (and price alert management on\n * the main account). No preset moves value out of the account.\n */\nexport const ASSISTANT_KEY_PRESET_VALUES = [\"read_only\", \"trade_with_approval\"] as const;\nexport type AssistantKeyPreset = (typeof ASSISTANT_KEY_PRESET_VALUES)[number];\n\nexport const AssistantKeyPresetCodec = {\n inputToProto: {\n read_only: Proto.AssistantKeyPreset.READ_ONLY,\n trade_with_approval: Proto.AssistantKeyPreset.TRADE_WITH_APPROVAL,\n } satisfies InputToProto<AssistantKeyPreset, Proto.AssistantKeyPreset>,\n} as const;\n\n/**\n * `assistant` keys belong to the Polyester AI assistant: their policy can never move value out\n * of the account. They are listed, updated and revoked like any key. `admin` keys are elevated:\n * their policy's admin permissions let them manage the main account's other keys and its\n * sub-account policies without a session. Only the owner's session with a fresh step-up proof\n * can create, promote, change or delete one.\n */\nexport const ApiKeyPurposeCodec = {\n inputToProto: {\n standard: Proto.ApiKeyPurpose.STANDARD,\n admin: Proto.ApiKeyPurpose.ADMIN_KEY,\n } satisfies InputToProto<ApiKeyPurposeInput, Proto.ApiKeyPurpose>,\n protoToOutput: {\n [Proto.ApiKeyPurpose.PURPOSE_UNSPECIFIED]: \"unspecified\",\n [Proto.ApiKeyPurpose.STANDARD]: \"standard\",\n [Proto.ApiKeyPurpose.ASSISTANT]: \"assistant\",\n [Proto.ApiKeyPurpose.ADMIN_KEY]: \"admin\",\n } satisfies ProtoToOutput<Proto.ApiKeyPurpose, ApiKeyPurposeLabel>,\n} as const;\n\nexport const ApiKeyStatusCodec = {\n inputToProto: {\n active: Proto.ApiKeyStatus.ACTIVE,\n disabled: Proto.ApiKeyStatus.DISABLED,\n } satisfies InputToProto<ApiKeyUpdateStatusLabel, Proto.ApiKeyStatus>,\n protoToOutput: {\n [Proto.ApiKeyStatus.API_KEY_STATUS_UNSPECIFIED]: \"unspecified\",\n [Proto.ApiKeyStatus.ACTIVE]: \"active\",\n [Proto.ApiKeyStatus.REVOKED]: \"revoked\",\n [Proto.ApiKeyStatus.DISABLED]: \"disabled\",\n } satisfies ProtoToOutput<Proto.ApiKeyStatus, ApiKeyStatusLabel>,\n} as const;\n"],"mappings":";;AAGA,MAAa,wBAAwB;CAAC;CAAU;CAAW;AAAU;AAErE,MAAa,+BAA+B,CAAC,UAAU,UAAU;;AAKjE,MAAa,+BAA+B,CAAC,YAAY,OAAO;;;;;;;;AAUhE,MAAa,8BAA8B,CAAC,aAAa,qBAAqB;AAG9E,MAAa,0BAA0B,EACnC,cAAc;CACV,WAAA;CACA,qBAAA;AACJ,EACJ;;;;;;;;AASA,MAAa,qBAAqB;CAC9B,cAAc;EACV,UAAA;EACA,OAAA;CACJ;CACA,eAAe;GACgC,IAAA;GACX,IAAA;GACC,IAAA;GACA,IAAA;CACrC;AACJ;AAEA,MAAa,oBAAoB;CAC7B,cAAc;EACV,QAAA;EACA,UAAA;CACJ;CACA,eAAe;GACsC,IAAA;GACpB,IAAA;GACC,IAAA;GACC,IAAA;CACnC;AACJ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ApiKeySchema, ApiKeyService } from "../../gen/auth/v1/api_keys_pb.js";
|
|
1
2
|
import { parse } from "../../shared/validation.js";
|
|
2
3
|
import { removeUndefined } from "../../utils/remove-undefined.js";
|
|
3
4
|
import { toConnectCallOptions } from "../../shared/request-options.js";
|
|
4
|
-
import { ApiKeySchema, ApiKeyService } from "../../gen/auth/v1/api_keys_pb.js";
|
|
5
5
|
import { resolveAccountScopedInput } from "../subaccount-resolver.js";
|
|
6
6
|
import { ApiKeyPoliciesService } from "../policies/api-key-policies/api-key-policies.js";
|
|
7
7
|
import { ApiKeyIdInputSchema, ApiKeySchema as ApiKeySchema$1, ApiKeysCreateInputSchema, ApiKeysListInputSchema, ApiKeysSchema, ApiKeysUpdateInputSchema, SetAssistantKeysInputSchema } from "./api-keys.schemas.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AssistantKeyPreset } from "../../gen/auth/v1/api_keys_pb.js";
|
|
1
|
+
import { ApiKeyPurpose, AssistantKeyPreset } from "../../gen/auth/v1/api_keys_pb.js";
|
|
2
2
|
import * as v from "valibot";
|
|
3
3
|
//#region src/services/api-keys/api-keys.schemas.d.ts
|
|
4
4
|
declare const ApiKeyStatusSchema: v.PicklistSchema<readonly ["active", "revoked", "disabled"], undefined>;
|
|
@@ -31,6 +31,8 @@ declare const ApiKeysCreateInputSchema: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
31
31
|
from(elements: Iterable<number>): Uint8Array<ArrayBuffer>;
|
|
32
32
|
from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
|
|
33
33
|
}, undefined>;
|
|
34
|
+
/** `admin` takes the owner's session with a fresh step-up proof, for the main account. */
|
|
35
|
+
readonly purpose: v.OptionalSchema<v.PicklistSchema<readonly ["standard", "admin"], undefined>, undefined>;
|
|
34
36
|
readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
|
|
35
37
|
readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
36
38
|
}, undefined>], undefined>, undefined>;
|
|
@@ -40,6 +42,7 @@ declare const ApiKeysCreateInputSchema: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
40
42
|
}, undefined>, v.TransformAction<{
|
|
41
43
|
ipWhitelist: string[];
|
|
42
44
|
publicKeyEd25519: Uint8Array<ArrayBufferLike>;
|
|
45
|
+
purpose?: "admin" | "standard" | undefined;
|
|
43
46
|
account?: "active" | "main" | {
|
|
44
47
|
subaccountId: string;
|
|
45
48
|
} | undefined;
|
|
@@ -48,6 +51,7 @@ declare const ApiKeysCreateInputSchema: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
48
51
|
color: string;
|
|
49
52
|
}, {
|
|
50
53
|
subaccountId: bigint | undefined;
|
|
54
|
+
purpose: ApiKeyPurpose.STANDARD | ApiKeyPurpose.ADMIN_KEY | undefined;
|
|
51
55
|
ipWhitelist: string[];
|
|
52
56
|
publicKeyEd25519: Uint8Array<ArrayBufferLike>;
|
|
53
57
|
label: string;
|
|
@@ -64,6 +68,8 @@ declare const ApiKeysUpdateInputSchema: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
64
68
|
readonly status: v.OptionalSchema<v.PicklistSchema<readonly ["active", "disabled"], undefined>, undefined>;
|
|
65
69
|
readonly ipWhitelist: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
66
70
|
readonly expiresAtIso: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "expiresAtIso must be a valid timestamp">]>, undefined>, undefined>;
|
|
71
|
+
/** `admin` promotes a standard key, `standard` demotes an admin key; needs the owner's session with a fresh step-up proof. */
|
|
72
|
+
readonly purpose: v.OptionalSchema<v.PicklistSchema<readonly ["standard", "admin"], undefined>, undefined>;
|
|
67
73
|
}, undefined>, v.CheckAction<{
|
|
68
74
|
keyId: string;
|
|
69
75
|
expectedRevision: bigint;
|
|
@@ -73,6 +79,7 @@ declare const ApiKeysUpdateInputSchema: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
73
79
|
status?: "active" | "disabled" | undefined;
|
|
74
80
|
ipWhitelist?: string[] | undefined;
|
|
75
81
|
expiresAtIso?: string | null | undefined;
|
|
82
|
+
purpose?: "admin" | "standard" | undefined;
|
|
76
83
|
}, "At least one API key field must be provided">, v.TransformAction<{
|
|
77
84
|
keyId: string;
|
|
78
85
|
expectedRevision: bigint;
|
|
@@ -82,6 +89,7 @@ declare const ApiKeysUpdateInputSchema: v.SchemaWithPipe<readonly [v.StrictObjec
|
|
|
82
89
|
status?: "active" | "disabled" | undefined;
|
|
83
90
|
ipWhitelist?: string[] | undefined;
|
|
84
91
|
expiresAtIso?: string | null | undefined;
|
|
92
|
+
purpose?: "admin" | "standard" | undefined;
|
|
85
93
|
}, {
|
|
86
94
|
keyId: string;
|
|
87
95
|
apiKey: never;
|
|
@@ -136,7 +144,7 @@ declare const ApiKeySchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
136
144
|
} | undefined, string | undefined>]>;
|
|
137
145
|
readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "active" | "disabled" | "revoked">]>;
|
|
138
146
|
/** `"standard"`, `"assistant"`, or `"unspecified"` from older servers. */
|
|
139
|
-
readonly purpose: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "standard" | "assistant">]>, 0>;
|
|
147
|
+
readonly purpose: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "admin" | "standard" | "assistant">]>, 0>;
|
|
140
148
|
readonly createdByActor: v.StringSchema<undefined>;
|
|
141
149
|
readonly revision: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
|
|
142
150
|
}, undefined>, v.TransformAction<{
|
|
@@ -156,7 +164,7 @@ declare const ApiKeySchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
156
164
|
publicKeyEd25519: Uint8Array<ArrayBufferLike>;
|
|
157
165
|
expiresAt?: string | undefined;
|
|
158
166
|
status: "unspecified" | "active" | "disabled" | "revoked";
|
|
159
|
-
purpose: "unspecified" | "standard" | "assistant";
|
|
167
|
+
purpose: "unspecified" | "admin" | "standard" | "assistant";
|
|
160
168
|
createdByActor: string;
|
|
161
169
|
revision: string;
|
|
162
170
|
}, {
|
|
@@ -175,7 +183,7 @@ declare const ApiKeySchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
175
183
|
publicKeyEd25519: Uint8Array<ArrayBufferLike>;
|
|
176
184
|
expiresAt?: string | undefined;
|
|
177
185
|
status: "unspecified" | "active" | "disabled" | "revoked";
|
|
178
|
-
purpose: "unspecified" | "standard" | "assistant";
|
|
186
|
+
purpose: "unspecified" | "admin" | "standard" | "assistant";
|
|
179
187
|
createdByActor: string;
|
|
180
188
|
revision: string;
|
|
181
189
|
}>]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.schemas.d.ts","names":[],"sources":["../../../src/services/api-keys/api-keys.schemas.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"api-keys.schemas.d.ts","names":[],"sources":["../../../src/services/api-keys/api-keys.schemas.ts"],"mappings":";;;cA+BM,oBAAkB,EAAA;KAGZ,eAAe,EAAE,mBAAmB;cAEnC,wBAAsB,EAAA,yBAAA,EAAA;;;;;;;;;;;KASvB,mBAAmB,EAAE,kBAAkB;cAEtC,qBAAmB,EAAA;;;KAIpB,gBAAgB,EAAE,kBAAkB;cAEnC,0BAAwB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkBzB,qBAAqB,EAAE,kBAAkB;cAqCxC,0BAAwB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAwCzB,qBAAqB,EAAE,kBAAkB;cAExC,cAAY,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuCb,SAAS,EAAE,mBAAmB;;;;;cAUpC,6BAA2B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAwCrB,wBAAwB,EAAE,kBAAkB;cAE3C,6BAA2B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgB5B,wBAAwB,EAAE,kBAAkB"}
|
|
@@ -4,7 +4,7 @@ import { enumLabelSchema } from "../../shared/proto-enum-codec.js";
|
|
|
4
4
|
import { msToTimestamp } from "../../utils/timestamp.js";
|
|
5
5
|
import { buildProtoPatch, defineProtoPatchFields } from "../../utils/proto-patch.js";
|
|
6
6
|
import { AccountScopeInputEntries, accountScopeToSubaccountId } from "../../shared/account-scope.js";
|
|
7
|
-
import { API_KEY_STATUS_VALUES, API_KEY_UPDATE_STATUS_VALUES, ASSISTANT_KEY_PRESET_VALUES, ApiKeyPurposeCodec, ApiKeyStatusCodec, AssistantKeyPresetCodec } from "./api-keys.codecs.js";
|
|
7
|
+
import { API_KEY_PURPOSE_INPUT_VALUES, API_KEY_STATUS_VALUES, API_KEY_UPDATE_STATUS_VALUES, ASSISTANT_KEY_PRESET_VALUES, ApiKeyPurposeCodec, ApiKeyStatusCodec, AssistantKeyPresetCodec } from "./api-keys.codecs.js";
|
|
8
8
|
import { bytesToHex } from "@noble/hashes/utils.js";
|
|
9
9
|
import * as v from "valibot";
|
|
10
10
|
//#region src/services/api-keys/api-keys.schemas.ts
|
|
@@ -18,10 +18,13 @@ const ApiKeysCreateInputSchema = v.pipe(v.strictObject({
|
|
|
18
18
|
color: v.optional(v.string(), ""),
|
|
19
19
|
...AccountScopeInputEntries,
|
|
20
20
|
ipWhitelist: v.optional(v.array(v.string()), []),
|
|
21
|
-
publicKeyEd25519: v.instance(Uint8Array)
|
|
22
|
-
|
|
21
|
+
publicKeyEd25519: v.instance(Uint8Array),
|
|
22
|
+
/** `admin` takes the owner's session with a fresh step-up proof, for the main account. */
|
|
23
|
+
purpose: v.optional(v.picklist(API_KEY_PURPOSE_INPUT_VALUES))
|
|
24
|
+
}), v.transform(({ account, purpose, ...input }) => ({
|
|
23
25
|
...input,
|
|
24
|
-
subaccountId: accountScopeToSubaccountId(account)
|
|
26
|
+
subaccountId: accountScopeToSubaccountId(account),
|
|
27
|
+
purpose: purpose === void 0 ? void 0 : ApiKeyPurposeCodec.inputToProto[purpose]
|
|
25
28
|
})));
|
|
26
29
|
const API_KEY_PATCH_FIELDS = defineProtoPatchFields()({
|
|
27
30
|
label: {
|
|
@@ -50,6 +53,10 @@ const API_KEY_PATCH_FIELDS = defineProtoPatchFields()({
|
|
|
50
53
|
if (expiresAtIso === null) return {};
|
|
51
54
|
return { expiresAt: msToTimestamp(new Date(expiresAtIso).getTime()) };
|
|
52
55
|
}
|
|
56
|
+
},
|
|
57
|
+
purpose: {
|
|
58
|
+
path: "purpose",
|
|
59
|
+
encode: (purpose) => ({ purpose: ApiKeyPurposeCodec.inputToProto[purpose] })
|
|
53
60
|
}
|
|
54
61
|
});
|
|
55
62
|
const ApiKeysUpdateInputSchema = v.pipe(v.strictObject({
|
|
@@ -60,8 +67,10 @@ const ApiKeysUpdateInputSchema = v.pipe(v.strictObject({
|
|
|
60
67
|
color: v.optional(v.string()),
|
|
61
68
|
status: v.optional(ApiKeyUpdateStatusSchema),
|
|
62
69
|
ipWhitelist: v.optional(v.array(v.string())),
|
|
63
|
-
expiresAtIso: v.optional(v.nullable(v.pipe(v.string(), v.check((value) => Number.isFinite(Date.parse(value)), "expiresAtIso must be a valid timestamp"))))
|
|
64
|
-
|
|
70
|
+
expiresAtIso: v.optional(v.nullable(v.pipe(v.string(), v.check((value) => Number.isFinite(Date.parse(value)), "expiresAtIso must be a valid timestamp")))),
|
|
71
|
+
/** `admin` promotes a standard key, `standard` demotes an admin key; needs the owner's session with a fresh step-up proof. */
|
|
72
|
+
purpose: v.optional(v.picklist(API_KEY_PURPOSE_INPUT_VALUES))
|
|
73
|
+
}), v.check(({ label, icon, color, status, ipWhitelist, expiresAtIso, purpose }) => label !== void 0 || icon !== void 0 || color !== void 0 || status !== void 0 || ipWhitelist !== void 0 || expiresAtIso !== void 0 || purpose !== void 0, "At least one API key field must be provided"), v.transform(({ keyId, expectedRevision, ...input }) => {
|
|
65
74
|
const { patch: apiKey, updateMask } = buildProtoPatch(input, API_KEY_PATCH_FIELDS);
|
|
66
75
|
return {
|
|
67
76
|
keyId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-keys.schemas.js","names":[],"sources":["../../../src/services/api-keys/api-keys.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { msToTimestamp } from \"../../utils/timestamp.js\";\nimport { tsObjToMs, tsObjToNsString } from \"../../utils/time.js\";\nimport {\n OptionalPublicIdSchema,\n PublicIdOrEmptySchema,\n OptionalTimestampMsSchema,\n BigIntStringSchema,\n TimestampMsSchema,\n TimestampSchema,\n positiveBigintStringInputSchema,\n idInputSchema,\n optionalSubaccountIdInputSchema,\n} from \"../../shared/schemas.js\";\nimport {\n AccountScopeInputEntries,\n accountScopeToSubaccountId,\n} from \"../../shared/account-scope.js\";\nimport { enumLabelSchema } from \"../../shared/proto-enum-codec.js\";\nimport { bytesToHex } from \"@noble/hashes/utils.js\";\nimport {\n API_KEY_STATUS_VALUES,\n API_KEY_UPDATE_STATUS_VALUES,\n ASSISTANT_KEY_PRESET_VALUES,\n ApiKeyPurposeCodec,\n AssistantKeyPresetCodec,\n ApiKeyStatusCodec,\n} from \"./api-keys.codecs.js\";\nimport { buildProtoPatch, defineProtoPatchFields } from \"../../utils/proto-patch.js\";\n\nconst ApiKeyStatusSchema = v.picklist(API_KEY_STATUS_VALUES);\nconst ApiKeyUpdateStatusSchema = v.picklist(API_KEY_UPDATE_STATUS_VALUES);\n\nexport type ApiKeyStatus = v.InferOutput<typeof ApiKeyStatusSchema>;\n\nexport const ApiKeysListInputSchema = v.pipe(\n v.strictObject({\n ...AccountScopeInputEntries,\n }),\n v.transform(({ account }) => ({\n subaccountId: accountScopeToSubaccountId(account),\n })),\n);\n\nexport type ApiKeysListInput = v.InferInput<typeof ApiKeysListInputSchema>;\n\nexport const ApiKeyIdInputSchema = v.strictObject({\n keyId: v.pipe(v.string(), v.trim(), v.minLength(1, \"keyId is required\")),\n});\n\nexport type ApiKeyIdInput = v.InferInput<typeof ApiKeyIdInputSchema>;\n\nexport const ApiKeysCreateInputSchema = v.pipe(\n v.strictObject({\n label: v.string(),\n icon: v.optional(v.string(), \"\"),\n color: v.optional(v.string(), \"\"),\n ...AccountScopeInputEntries,\n ipWhitelist: v.optional(v.array(v.string()), []),\n publicKeyEd25519: v.instance(Uint8Array<ArrayBufferLike>),\n }),\n v.transform(({ account, ...input }) => ({\n ...input,\n subaccountId: accountScopeToSubaccountId(account),\n })),\n);\n\nexport type ApiKeysCreateInput = v.InferInput<typeof ApiKeysCreateInputSchema>;\n\ntype ApiKeyPatch = {\n label?: string;\n icon?: string;\n color?: string;\n status?: v.InferOutput<typeof ApiKeyUpdateStatusSchema>;\n ipWhitelist?: string[];\n expiresAtIso?: string | null;\n};\n\nconst API_KEY_PATCH_FIELDS = defineProtoPatchFields<ApiKeyPatch>()({\n label: { path: \"label\", encode: (label) => ({ label }) },\n icon: { path: \"icon\", encode: (icon) => ({ icon }) },\n color: { path: \"color\", encode: (color) => ({ color }) },\n status: {\n path: \"status\",\n encode: (status) => ({ status: ApiKeyStatusCodec.inputToProto[status] }),\n },\n ipWhitelist: {\n path: \"ip_whitelist\",\n encode: (ipWhitelist) => ({ ipWhitelist }),\n },\n expiresAtIso: {\n path: \"expires_at\",\n encode: (expiresAtIso) => {\n if (expiresAtIso === null) return {};\n return { expiresAt: msToTimestamp(new Date(expiresAtIso).getTime()) };\n },\n },\n});\n\nexport const ApiKeysUpdateInputSchema = v.pipe(\n v.strictObject({\n keyId: v.pipe(v.string(), v.trim(), v.minLength(1, \"keyId is required\")),\n expectedRevision: positiveBigintStringInputSchema(\"expectedRevision\"),\n label: v.optional(v.string()),\n icon: v.optional(v.string()),\n color: v.optional(v.string()),\n status: v.optional(ApiKeyUpdateStatusSchema),\n ipWhitelist: v.optional(v.array(v.string())),\n expiresAtIso: v.optional(\n v.nullable(\n v.pipe(\n v.string(),\n v.check(\n (value) => Number.isFinite(Date.parse(value)),\n \"expiresAtIso must be a valid timestamp\",\n ),\n ),\n ),\n ),\n }),\n v.check(\n ({ label, icon, color, status, ipWhitelist, expiresAtIso }) =>\n label !== undefined ||\n icon !== undefined ||\n color !== undefined ||\n status !== undefined ||\n ipWhitelist !== undefined ||\n expiresAtIso !== undefined,\n \"At least one API key field must be provided\",\n ),\n v.transform(({ keyId, expectedRevision, ...input }) => {\n const { patch: apiKey, updateMask } = buildProtoPatch(input, API_KEY_PATCH_FIELDS);\n return { keyId, apiKey, updateMask, expectedRevision };\n }),\n);\n\nexport type ApiKeysUpdateInput = v.InferInput<typeof ApiKeysUpdateInputSchema>;\n\nexport const ApiKeySchema = v.pipe(\n v.object({\n keyId: v.string(),\n label: v.optional(v.string(), \"\"),\n icon: v.optional(v.string(), \"\"),\n color: v.optional(v.string(), \"\"),\n ipWhitelist: v.optional(v.array(v.string()), []),\n subaccountId: OptionalPublicIdSchema,\n // Unset decodes to \"\", matching DEFAULT_API_KEY_POLICY.id.\n policyId: v.optional(PublicIdOrEmptySchema, 0n),\n createdAt: TimestampMsSchema,\n updatedAt: v.optional(TimestampSchema),\n lastUsedAt: OptionalTimestampMsSchema,\n publicKeyEd25519: v.instance(Uint8Array<ArrayBufferLike>),\n expiresAt: v.pipe(\n v.optional(TimestampSchema),\n v.transform((v) => {\n const ms = tsObjToMs(v);\n return ms ? new Date(ms).toISOString() : undefined;\n }),\n ),\n status: enumLabelSchema(ApiKeyStatusCodec.protoToOutput),\n /** `\"standard\"`, `\"assistant\"`, or `\"unspecified\"` from older servers. */\n purpose: v.optional(enumLabelSchema(ApiKeyPurposeCodec.protoToOutput), 0),\n createdByActor: v.string(),\n revision: BigIntStringSchema,\n }),\n v.transform(({ subaccountId, updatedAt, ...rest }) => {\n const hex = bytesToHex(rest.publicKeyEd25519);\n return {\n ...rest,\n subaccountId,\n updatedAt: tsObjToMs(updatedAt),\n updatedAtNs: tsObjToNsString(updatedAt),\n publicKeyHex: hex,\n };\n }),\n);\n\nexport type ApiKey = v.InferOutput<typeof ApiKeySchema>;\n\nexport const ApiKeysSchema = v.array(ApiKeySchema);\n\nconst BytesSchema = v.instance(Uint8Array<ArrayBufferLike>);\n\n/**\n * One account's key in the assistant key set. Spread a key from `assistant.prepareKeys` and add\n * exactly one of `policyId` and `preset`; other fields (like `publicKeyHex`) are ignored.\n */\nconst AssistantKeySpecInputSchema = v.pipe(\n v.object({\n /** Subaccount the key acts for; omit for the main account. */\n subaccountId: optionalSubaccountIdInputSchema(),\n /** 32-byte Ed25519 public key from `assistant.prepareKeys`. */\n publicKeyEd25519: v.pipe(BytesSchema, v.length(32, \"publicKeyEd25519 must be 32 bytes\")),\n /** API policy that bounds the key. It must not allow moving value out of the account. */\n policyId: v.optional(idInputSchema(\"policyId\")),\n /**\n * Permission preset that bounds the key instead of `policyId`. The key is bound to the\n * account's policy named after the preset, created in the same change when missing; the\n * returned key's `policyId` names it. Devnet only.\n */\n preset: v.optional(\n v.pipe(\n v.picklist(ASSISTANT_KEY_PRESET_VALUES),\n v.transform((preset) => AssistantKeyPresetCodec.inputToProto[preset]),\n ),\n ),\n /** Epoch ms from `assistant.prepareKeys`; needed for a new key, not for one already registered. */\n registrationDeadline: v.optional(\n v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(Number.MAX_SAFE_INTEGER)),\n ),\n /** 64-byte proof from `assistant.prepareKeys`; needed for a new key, not for one already registered. */\n registrationProof: v.optional(\n v.pipe(BytesSchema, v.length(64, \"registrationProof must be 64 bytes\")),\n ),\n }),\n v.check(\n ({ policyId, preset }) => (policyId === undefined) !== (preset === undefined),\n \"Set exactly one of policyId and preset.\",\n ),\n v.transform(({ registrationDeadline, registrationProof, ...key }) => ({\n ...key,\n registrationDeadline:\n registrationDeadline === undefined ? undefined : msToTimestamp(registrationDeadline),\n registrationProof: registrationProof ?? new Uint8Array(),\n })),\n);\n\nexport type AssistantKeySpecInput = v.InferInput<typeof AssistantKeySpecInputSchema>;\n\nexport const SetAssistantKeysInputSchema = v.strictObject({\n /** The complete set: at most one key per account, at most 64. An account left out loses its key. */\n keys: v.pipe(\n v.array(AssistantKeySpecInputSchema),\n v.maxLength(64, \"At most 64 assistant keys are allowed.\"),\n v.check(\n (keys) => new Set(keys.map((k) => k.subaccountId ?? 0n)).size === keys.length,\n \"At most one assistant key per account is allowed.\",\n ),\n v.check(\n (keys) => new Set(keys.map((k) => bytesToHex(k.publicKeyEd25519))).size === keys.length,\n \"Assistant public keys must be distinct.\",\n ),\n ),\n});\n\nexport type SetAssistantKeysInput = v.InferInput<typeof SetAssistantKeysInputSchema>;\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"api-keys.schemas.js","names":[],"sources":["../../../src/services/api-keys/api-keys.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { msToTimestamp } from \"../../utils/timestamp.js\";\nimport { tsObjToMs, tsObjToNsString } from \"../../utils/time.js\";\nimport {\n OptionalPublicIdSchema,\n PublicIdOrEmptySchema,\n OptionalTimestampMsSchema,\n BigIntStringSchema,\n TimestampMsSchema,\n TimestampSchema,\n positiveBigintStringInputSchema,\n idInputSchema,\n optionalSubaccountIdInputSchema,\n} from \"../../shared/schemas.js\";\nimport {\n AccountScopeInputEntries,\n accountScopeToSubaccountId,\n} from \"../../shared/account-scope.js\";\nimport { enumLabelSchema } from \"../../shared/proto-enum-codec.js\";\nimport { bytesToHex } from \"@noble/hashes/utils.js\";\nimport {\n API_KEY_PURPOSE_INPUT_VALUES,\n API_KEY_STATUS_VALUES,\n API_KEY_UPDATE_STATUS_VALUES,\n ASSISTANT_KEY_PRESET_VALUES,\n ApiKeyPurposeCodec,\n AssistantKeyPresetCodec,\n ApiKeyStatusCodec,\n} from \"./api-keys.codecs.js\";\nimport { buildProtoPatch, defineProtoPatchFields } from \"../../utils/proto-patch.js\";\n\nconst ApiKeyStatusSchema = v.picklist(API_KEY_STATUS_VALUES);\nconst ApiKeyUpdateStatusSchema = v.picklist(API_KEY_UPDATE_STATUS_VALUES);\n\nexport type ApiKeyStatus = v.InferOutput<typeof ApiKeyStatusSchema>;\n\nexport const ApiKeysListInputSchema = v.pipe(\n v.strictObject({\n ...AccountScopeInputEntries,\n }),\n v.transform(({ account }) => ({\n subaccountId: accountScopeToSubaccountId(account),\n })),\n);\n\nexport type ApiKeysListInput = v.InferInput<typeof ApiKeysListInputSchema>;\n\nexport const ApiKeyIdInputSchema = v.strictObject({\n keyId: v.pipe(v.string(), v.trim(), v.minLength(1, \"keyId is required\")),\n});\n\nexport type ApiKeyIdInput = v.InferInput<typeof ApiKeyIdInputSchema>;\n\nexport const ApiKeysCreateInputSchema = v.pipe(\n v.strictObject({\n label: v.string(),\n icon: v.optional(v.string(), \"\"),\n color: v.optional(v.string(), \"\"),\n ...AccountScopeInputEntries,\n ipWhitelist: v.optional(v.array(v.string()), []),\n publicKeyEd25519: v.instance(Uint8Array<ArrayBufferLike>),\n /** `admin` takes the owner's session with a fresh step-up proof, for the main account. */\n purpose: v.optional(v.picklist(API_KEY_PURPOSE_INPUT_VALUES)),\n }),\n v.transform(({ account, purpose, ...input }) => ({\n ...input,\n subaccountId: accountScopeToSubaccountId(account),\n purpose: purpose === undefined ? undefined : ApiKeyPurposeCodec.inputToProto[purpose],\n })),\n);\n\nexport type ApiKeysCreateInput = v.InferInput<typeof ApiKeysCreateInputSchema>;\n\ntype ApiKeyPatch = {\n label?: string;\n icon?: string;\n color?: string;\n status?: v.InferOutput<typeof ApiKeyUpdateStatusSchema>;\n ipWhitelist?: string[];\n expiresAtIso?: string | null;\n purpose?: (typeof API_KEY_PURPOSE_INPUT_VALUES)[number];\n};\n\nconst API_KEY_PATCH_FIELDS = defineProtoPatchFields<ApiKeyPatch>()({\n label: { path: \"label\", encode: (label) => ({ label }) },\n icon: { path: \"icon\", encode: (icon) => ({ icon }) },\n color: { path: \"color\", encode: (color) => ({ color }) },\n status: {\n path: \"status\",\n encode: (status) => ({ status: ApiKeyStatusCodec.inputToProto[status] }),\n },\n ipWhitelist: {\n path: \"ip_whitelist\",\n encode: (ipWhitelist) => ({ ipWhitelist }),\n },\n expiresAtIso: {\n path: \"expires_at\",\n encode: (expiresAtIso) => {\n if (expiresAtIso === null) return {};\n return { expiresAt: msToTimestamp(new Date(expiresAtIso).getTime()) };\n },\n },\n purpose: {\n path: \"purpose\",\n encode: (purpose) => ({ purpose: ApiKeyPurposeCodec.inputToProto[purpose] }),\n },\n});\n\nexport const ApiKeysUpdateInputSchema = v.pipe(\n v.strictObject({\n keyId: v.pipe(v.string(), v.trim(), v.minLength(1, \"keyId is required\")),\n expectedRevision: positiveBigintStringInputSchema(\"expectedRevision\"),\n label: v.optional(v.string()),\n icon: v.optional(v.string()),\n color: v.optional(v.string()),\n status: v.optional(ApiKeyUpdateStatusSchema),\n ipWhitelist: v.optional(v.array(v.string())),\n expiresAtIso: v.optional(\n v.nullable(\n v.pipe(\n v.string(),\n v.check(\n (value) => Number.isFinite(Date.parse(value)),\n \"expiresAtIso must be a valid timestamp\",\n ),\n ),\n ),\n ),\n /** `admin` promotes a standard key, `standard` demotes an admin key; needs the owner's session with a fresh step-up proof. */\n purpose: v.optional(v.picklist(API_KEY_PURPOSE_INPUT_VALUES)),\n }),\n v.check(\n ({ label, icon, color, status, ipWhitelist, expiresAtIso, purpose }) =>\n label !== undefined ||\n icon !== undefined ||\n color !== undefined ||\n status !== undefined ||\n ipWhitelist !== undefined ||\n expiresAtIso !== undefined ||\n purpose !== undefined,\n \"At least one API key field must be provided\",\n ),\n v.transform(({ keyId, expectedRevision, ...input }) => {\n const { patch: apiKey, updateMask } = buildProtoPatch(input, API_KEY_PATCH_FIELDS);\n return { keyId, apiKey, updateMask, expectedRevision };\n }),\n);\n\nexport type ApiKeysUpdateInput = v.InferInput<typeof ApiKeysUpdateInputSchema>;\n\nexport const ApiKeySchema = v.pipe(\n v.object({\n keyId: v.string(),\n label: v.optional(v.string(), \"\"),\n icon: v.optional(v.string(), \"\"),\n color: v.optional(v.string(), \"\"),\n ipWhitelist: v.optional(v.array(v.string()), []),\n subaccountId: OptionalPublicIdSchema,\n // Unset decodes to \"\", matching DEFAULT_API_KEY_POLICY.id.\n policyId: v.optional(PublicIdOrEmptySchema, 0n),\n createdAt: TimestampMsSchema,\n updatedAt: v.optional(TimestampSchema),\n lastUsedAt: OptionalTimestampMsSchema,\n publicKeyEd25519: v.instance(Uint8Array<ArrayBufferLike>),\n expiresAt: v.pipe(\n v.optional(TimestampSchema),\n v.transform((v) => {\n const ms = tsObjToMs(v);\n return ms ? new Date(ms).toISOString() : undefined;\n }),\n ),\n status: enumLabelSchema(ApiKeyStatusCodec.protoToOutput),\n /** `\"standard\"`, `\"assistant\"`, or `\"unspecified\"` from older servers. */\n purpose: v.optional(enumLabelSchema(ApiKeyPurposeCodec.protoToOutput), 0),\n createdByActor: v.string(),\n revision: BigIntStringSchema,\n }),\n v.transform(({ subaccountId, updatedAt, ...rest }) => {\n const hex = bytesToHex(rest.publicKeyEd25519);\n return {\n ...rest,\n subaccountId,\n updatedAt: tsObjToMs(updatedAt),\n updatedAtNs: tsObjToNsString(updatedAt),\n publicKeyHex: hex,\n };\n }),\n);\n\nexport type ApiKey = v.InferOutput<typeof ApiKeySchema>;\n\nexport const ApiKeysSchema = v.array(ApiKeySchema);\n\nconst BytesSchema = v.instance(Uint8Array<ArrayBufferLike>);\n\n/**\n * One account's key in the assistant key set. Spread a key from `assistant.prepareKeys` and add\n * exactly one of `policyId` and `preset`; other fields (like `publicKeyHex`) are ignored.\n */\nconst AssistantKeySpecInputSchema = v.pipe(\n v.object({\n /** Subaccount the key acts for; omit for the main account. */\n subaccountId: optionalSubaccountIdInputSchema(),\n /** 32-byte Ed25519 public key from `assistant.prepareKeys`. */\n publicKeyEd25519: v.pipe(BytesSchema, v.length(32, \"publicKeyEd25519 must be 32 bytes\")),\n /** API policy that bounds the key. It must not allow moving value out of the account. */\n policyId: v.optional(idInputSchema(\"policyId\")),\n /**\n * Permission preset that bounds the key instead of `policyId`. The key is bound to the\n * account's policy named after the preset, created in the same change when missing; the\n * returned key's `policyId` names it. Devnet only.\n */\n preset: v.optional(\n v.pipe(\n v.picklist(ASSISTANT_KEY_PRESET_VALUES),\n v.transform((preset) => AssistantKeyPresetCodec.inputToProto[preset]),\n ),\n ),\n /** Epoch ms from `assistant.prepareKeys`; needed for a new key, not for one already registered. */\n registrationDeadline: v.optional(\n v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(Number.MAX_SAFE_INTEGER)),\n ),\n /** 64-byte proof from `assistant.prepareKeys`; needed for a new key, not for one already registered. */\n registrationProof: v.optional(\n v.pipe(BytesSchema, v.length(64, \"registrationProof must be 64 bytes\")),\n ),\n }),\n v.check(\n ({ policyId, preset }) => (policyId === undefined) !== (preset === undefined),\n \"Set exactly one of policyId and preset.\",\n ),\n v.transform(({ registrationDeadline, registrationProof, ...key }) => ({\n ...key,\n registrationDeadline:\n registrationDeadline === undefined ? undefined : msToTimestamp(registrationDeadline),\n registrationProof: registrationProof ?? new Uint8Array(),\n })),\n);\n\nexport type AssistantKeySpecInput = v.InferInput<typeof AssistantKeySpecInputSchema>;\n\nexport const SetAssistantKeysInputSchema = v.strictObject({\n /** The complete set: at most one key per account, at most 64. An account left out loses its key. */\n keys: v.pipe(\n v.array(AssistantKeySpecInputSchema),\n v.maxLength(64, \"At most 64 assistant keys are allowed.\"),\n v.check(\n (keys) => new Set(keys.map((k) => k.subaccountId ?? 0n)).size === keys.length,\n \"At most one assistant key per account is allowed.\",\n ),\n v.check(\n (keys) => new Set(keys.map((k) => bytesToHex(k.publicKeyEd25519))).size === keys.length,\n \"Assistant public keys must be distinct.\",\n ),\n ),\n});\n\nexport type SetAssistantKeysInput = v.InferInput<typeof SetAssistantKeysInputSchema>;\n"],"mappings":";;;;;;;;;;AA+B2B,EAAE,SAAS,qBAAqB;AAC3D,MAAM,2BAA2B,EAAE,SAAS,4BAA4B;AAIxE,MAAa,yBAAyB,EAAE,KACpC,EAAE,aAAa,EACX,GAAG,yBACP,CAAC,GACD,EAAE,WAAW,EAAE,eAAe,EAC1B,cAAc,2BAA2B,OAAO,EACpD,EAAE,CACN;AAIA,MAAa,sBAAsB,EAAE,aAAa,EAC9C,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,GAAG,mBAAmB,CAAC,EAC3E,CAAC;AAID,MAAa,2BAA2B,EAAE,KACtC,EAAE,aAAa;CACX,OAAO,EAAE,OAAO;CAChB,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,EAAE;CAC/B,OAAO,EAAE,SAAS,EAAE,OAAO,GAAG,EAAE;CAChC,GAAG;CACH,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;CAC/C,kBAAkB,EAAE,SAAS,UAA2B;;CAExD,SAAS,EAAE,SAAS,EAAE,SAAS,4BAA4B,CAAC;AAChE,CAAC,GACD,EAAE,WAAW,EAAE,SAAS,SAAS,GAAG,aAAa;CAC7C,GAAG;CACH,cAAc,2BAA2B,OAAO;CAChD,SAAS,YAAY,KAAA,IAAY,KAAA,IAAY,mBAAmB,aAAa;AACjF,EAAE,CACN;AAcA,MAAM,uBAAuB,uBAAoC,CAAC,CAAC;CAC/D,OAAO;EAAE,MAAM;EAAS,SAAS,WAAW,EAAE,MAAM;CAAG;CACvD,MAAM;EAAE,MAAM;EAAQ,SAAS,UAAU,EAAE,KAAK;CAAG;CACnD,OAAO;EAAE,MAAM;EAAS,SAAS,WAAW,EAAE,MAAM;CAAG;CACvD,QAAQ;EACJ,MAAM;EACN,SAAS,YAAY,EAAE,QAAQ,kBAAkB,aAAa,QAAQ;CAC1E;CACA,aAAa;EACT,MAAM;EACN,SAAS,iBAAiB,EAAE,YAAY;CAC5C;CACA,cAAc;EACV,MAAM;EACN,SAAS,iBAAiB;GACtB,IAAI,iBAAiB,MAAM,OAAO,CAAC;GACnC,OAAO,EAAE,WAAW,cAAc,IAAI,KAAK,YAAY,CAAC,CAAC,QAAQ,CAAC,EAAE;EACxE;CACJ;CACA,SAAS;EACL,MAAM;EACN,SAAS,aAAa,EAAE,SAAS,mBAAmB,aAAa,SAAS;CAC9E;AACJ,CAAC;AAED,MAAa,2BAA2B,EAAE,KACtC,EAAE,aAAa;CACX,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,GAAG,mBAAmB,CAAC;CACvE,kBAAkB,gCAAgC,kBAAkB;CACpE,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC;CAC5B,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC;CAC3B,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC;CAC5B,QAAQ,EAAE,SAAS,wBAAwB;CAC3C,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;CAC3C,cAAc,EAAE,SACZ,EAAE,SACE,EAAE,KACE,EAAE,OAAO,GACT,EAAE,OACG,UAAU,OAAO,SAAS,KAAK,MAAM,KAAK,CAAC,GAC5C,wCACJ,CACJ,CACJ,CACJ;;CAEA,SAAS,EAAE,SAAS,EAAE,SAAS,4BAA4B,CAAC;AAChE,CAAC,GACD,EAAE,OACG,EAAE,OAAO,MAAM,OAAO,QAAQ,aAAa,cAAc,cACtD,UAAU,KAAA,KACV,SAAS,KAAA,KACT,UAAU,KAAA,KACV,WAAW,KAAA,KACX,gBAAgB,KAAA,KAChB,iBAAiB,KAAA,KACjB,YAAY,KAAA,GAChB,6CACJ,GACA,EAAE,WAAW,EAAE,OAAO,kBAAkB,GAAG,YAAY;CACnD,MAAM,EAAE,OAAO,QAAQ,eAAe,gBAAgB,OAAO,oBAAoB;CACjF,OAAO;EAAE;EAAO;EAAQ;EAAY;CAAiB;AACzD,CAAC,CACL;AAIA,MAAa,eAAe,EAAE,KAC1B,EAAE,OAAO;CACL,OAAO,EAAE,OAAO;CAChB,OAAO,EAAE,SAAS,EAAE,OAAO,GAAG,EAAE;CAChC,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,EAAE;CAC/B,OAAO,EAAE,SAAS,EAAE,OAAO,GAAG,EAAE;CAChC,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;CAC/C,cAAc;CAEd,UAAU,EAAE,SAAS,uBAAuB,EAAE;CAC9C,WAAW;CACX,WAAW,EAAE,SAAS,eAAe;CACrC,YAAY;CACZ,kBAAkB,EAAE,SAAS,UAA2B;CACxD,WAAW,EAAE,KACT,EAAE,SAAS,eAAe,GAC1B,EAAE,WAAW,MAAM;EACf,MAAM,KAAK,UAAU,CAAC;EACtB,OAAO,KAAK,IAAI,KAAK,EAAE,CAAC,CAAC,YAAY,IAAI,KAAA;CAC7C,CAAC,CACL;CACA,QAAQ,gBAAgB,kBAAkB,aAAa;;CAEvD,SAAS,EAAE,SAAS,gBAAgB,mBAAmB,aAAa,GAAG,CAAC;CACxE,gBAAgB,EAAE,OAAO;CACzB,UAAU;AACd,CAAC,GACD,EAAE,WAAW,EAAE,cAAc,WAAW,GAAG,WAAW;CAClD,MAAM,MAAM,WAAW,KAAK,gBAAgB;CAC5C,OAAO;EACH,GAAG;EACH;EACA,WAAW,UAAU,SAAS;EAC9B,aAAa,gBAAgB,SAAS;EACtC,cAAc;CAClB;AACJ,CAAC,CACL;AAIA,MAAa,gBAAgB,EAAE,MAAM,YAAY;AAEjD,MAAM,cAAc,EAAE,SAAS,UAA2B;;;;;AAM1D,MAAM,8BAA8B,EAAE,KAClC,EAAE,OAAO;;CAEL,cAAc,gCAAgC;;CAE9C,kBAAkB,EAAE,KAAK,aAAa,EAAE,OAAO,IAAI,mCAAmC,CAAC;;CAEvF,UAAU,EAAE,SAAS,cAAc,UAAU,CAAC;;;;;;CAM9C,QAAQ,EAAE,SACN,EAAE,KACE,EAAE,SAAS,2BAA2B,GACtC,EAAE,WAAW,WAAW,wBAAwB,aAAa,OAAO,CACxE,CACJ;;CAEA,sBAAsB,EAAE,SACpB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,QAAQ,GAAG,EAAE,SAAS,CAAC,GAAG,EAAE,SAAS,OAAO,gBAAgB,CAAC,CACtF;;CAEA,mBAAmB,EAAE,SACjB,EAAE,KAAK,aAAa,EAAE,OAAO,IAAI,oCAAoC,CAAC,CAC1E;AACJ,CAAC,GACD,EAAE,OACG,EAAE,UAAU,aAAc,aAAa,KAAA,OAAgB,WAAW,KAAA,IACnE,yCACJ,GACA,EAAE,WAAW,EAAE,sBAAsB,mBAAmB,GAAG,WAAW;CAClE,GAAG;CACH,sBACI,yBAAyB,KAAA,IAAY,KAAA,IAAY,cAAc,oBAAoB;CACvF,mBAAmB,qCAAqB,IAAI,WAAW;AAC3D,EAAE,CACN;AAIA,MAAa,8BAA8B,EAAE,aAAa;;AAEtD,MAAM,EAAE,KACJ,EAAE,MAAM,2BAA2B,GACnC,EAAE,UAAU,IAAI,wCAAwC,GACxD,EAAE,OACG,SAAS,IAAI,IAAI,KAAK,KAAK,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,QACvE,mDACJ,GACA,EAAE,OACG,SAAS,IAAI,IAAI,KAAK,KAAK,MAAM,WAAW,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,SAAS,KAAK,QACjF,yCACJ,CACJ,EACJ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ApiKey, ApiKeyIdInput, ApiKeyStatus, ApiKeysCreateInput, ApiKeysListInput, ApiKeysUpdateInput, AssistantKeySpecInput, SetAssistantKeysInput } from "./api-keys.schemas.js";
|
|
2
|
-
import { AssistantKeyPreset } from "./api-keys.codecs.js";
|
|
3
|
-
export type { ApiKey, ApiKeyIdInput, ApiKeyStatus, ApiKeysCreateInput, ApiKeysListInput, ApiKeysUpdateInput, AssistantKeyPreset, AssistantKeySpecInput, SetAssistantKeysInput };
|
|
2
|
+
import { ApiKeyPurposeInput, ApiKeyPurposeLabel, AssistantKeyPreset } from "./api-keys.codecs.js";
|
|
3
|
+
export type { ApiKey, ApiKeyIdInput, ApiKeyPurposeInput, ApiKeyPurposeLabel, ApiKeyStatus, ApiKeysCreateInput, ApiKeysListInput, ApiKeysUpdateInput, AssistantKeyPreset, AssistantKeySpecInput, SetAssistantKeysInput };
|