@polyester/sdk 0.36.0-devnet-20261119195411 → 0.36.0-devnet-20261120040128
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 +18 -2
- package/dist/client.d.ts +4 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +4 -0
- package/dist/client.js.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +56 -4
- package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.js +9 -2
- 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/account_scope_pb.d.ts +40 -0
- package/dist/gen/auth/v1/account_scope_pb.d.ts.map +1 -0
- package/dist/gen/auth/v1/account_scope_pb.js +46 -0
- package/dist/gen/auth/v1/account_scope_pb.js.map +1 -0
- package/dist/gen/auth/v1/activity_pb.d.ts +1 -1
- package/dist/gen/auth/v1/address_book_pb.d.ts +4 -32
- package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/address_book_pb.js +8 -38
- package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +16 -15
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +16 -15
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/connected_apps_pb.d.ts +60 -59
- package/dist/gen/auth/v1/connected_apps_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/connected_apps_pb.js +38 -37
- package/dist/gen/auth/v1/connected_apps_pb.js.map +1 -1
- package/dist/gen/auth/v1/mfa_pb.d.ts +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +28 -2
- package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +27 -1
- 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 +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 +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 +229 -3
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +32 -8
- 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 +17 -5
- package/dist/gen/changelog/v1/changelog_pb.d.ts.map +1 -1
- package/dist/gen/changelog/v1/changelog_pb.js.map +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +1 -1
- package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
- package/dist/gen/fees/v1/fees_pb.d.ts +1 -1
- package/dist/gen/index.d.ts +8 -6
- package/dist/gen/index.js +28 -26
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +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 +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts +289 -3
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js +115 -2
- package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +1 -1
- package/dist/gen/notifications/v1/notifications_pb.d.ts +1 -1
- package/dist/gen/orderbook/v1/orderbook_pb.d.ts +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +79 -26
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +36 -7
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +36 -2
- package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
- package/dist/gen/polyester/api/v1/request_error_pb.d.ts +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +1 -1
- package/dist/gen/polyester/type/v1/u128_pb.d.ts +1 -1
- package/dist/gen/privatews/v1/private_ws_pb.d.ts +1 -1
- package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +1 -1
- package/dist/gen/rewards/v1/rewards_pb.d.ts +1 -1
- package/dist/gen/strategies/v1/strategies_pb.d.ts +2928 -0
- package/dist/gen/strategies/v1/strategies_pb.d.ts.map +1 -0
- package/dist/gen/strategies/v1/strategies_pb.js +818 -0
- package/dist/gen/strategies/v1/strategies_pb.js.map +1 -0
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +39 -18
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +4 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts +313 -133
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js +31 -26
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +29 -14
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +2 -2
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +110 -3
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +23 -3
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +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 +4 -3
- 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 +62 -12
- package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.js +4 -2
- package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
- package/dist/gen/vip/v1/vip_pb.d.ts +1 -1
- package/dist/index.d.ts +12 -6
- 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.codecs.js +1 -0
- package/dist/services/address-book/address-book.codecs.js.map +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/api-keys/api-keys.schemas.d.ts +6 -6
- package/dist/services/assistant/assistant-events.schemas.d.ts +135 -37
- package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -1
- package/dist/services/assistant/assistant-events.schemas.js +15 -5
- package/dist/services/assistant/assistant-events.schemas.js.map +1 -1
- package/dist/services/assistant/assistant.codecs.d.ts +5 -2
- package/dist/services/assistant/assistant.codecs.d.ts.map +1 -1
- package/dist/services/assistant/assistant.codecs.js +10 -2
- package/dist/services/assistant/assistant.codecs.js.map +1 -1
- package/dist/services/assistant/assistant.js +1 -1
- package/dist/services/assistant/assistant.schemas.d.ts +1 -1
- package/dist/services/auth/auth.js +1 -1
- 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 +9 -9
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +5 -12
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +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/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 +4 -4
- package/dist/services/connected-apps/connected-apps.d.ts.map +1 -1
- package/dist/services/connected-apps/connected-apps.js +14 -14
- package/dist/services/connected-apps/connected-apps.js.map +1 -1
- package/dist/services/connected-apps/connected-apps.schemas.d.ts +7 -7
- package/dist/services/connected-apps/connected-apps.schemas.d.ts.map +1 -1
- package/dist/services/connected-apps/connected-apps.schemas.js +10 -10
- package/dist/services/connected-apps/connected-apps.schemas.js.map +1 -1
- package/dist/services/connected-apps/connected-apps.types.d.ts +2 -2
- 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.js +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.js +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +6 -6
- package/dist/services/lifecycle/lifecycle.js +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +13 -13
- package/dist/services/lifecycle/lifecycle.schemas.js +2 -2
- package/dist/services/market-data/market-data.codecs.d.ts +9 -1
- package/dist/services/market-data/market-data.codecs.d.ts.map +1 -1
- package/dist/services/market-data/market-data.codecs.js +14 -1
- package/dist/services/market-data/market-data.codecs.js.map +1 -1
- package/dist/services/market-data/market-data.d.ts +9 -1
- package/dist/services/market-data/market-data.d.ts.map +1 -1
- package/dist/services/market-data/market-data.js +15 -2
- package/dist/services/market-data/market-data.js.map +1 -1
- package/dist/services/market-data/market-data.schemas.d.ts +40 -2
- package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
- package/dist/services/market-data/market-data.schemas.js +43 -8
- package/dist/services/market-data/market-data.schemas.js.map +1 -1
- package/dist/services/market-data/market-data.types.d.ts +3 -3
- 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.js +1 -1
- package/dist/services/notifications/notifications.schemas.d.ts +4 -4
- package/dist/services/orderbook/orderbook.js +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 +97 -97
- package/dist/services/orders/orders-batch.schemas.js +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +16 -16
- package/dist/services/orders/orders-input.schemas.js +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-output.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-output.schemas.js +1 -1
- package/dist/services/orders/orders-output.schemas.js.map +1 -1
- package/dist/services/orders/orders-risk.schemas.js +2 -2
- package/dist/services/orders/orders.d.ts +5 -0
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +7 -2
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
- package/dist/services/policies/shared.codecs.js +12 -3
- 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.schemas.d.ts +3 -3
- package/dist/services/price-alerts/price-alerts.js +1 -1
- package/dist/services/rate-limits/rate-limits.js +1 -1
- package/dist/services/rewards/rewards.js +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +4 -4
- package/dist/services/social-verification/social-verification.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/strategies/service.d.ts +8 -0
- package/dist/services/strategies/service.d.ts.map +1 -0
- package/dist/services/strategies/service.js +9 -0
- package/dist/services/strategies/service.js.map +1 -0
- package/dist/services/strategies/strategies.codecs.d.ts +15 -0
- package/dist/services/strategies/strategies.codecs.d.ts.map +1 -0
- package/dist/services/strategies/strategies.codecs.js +50 -0
- package/dist/services/strategies/strategies.codecs.js.map +1 -0
- package/dist/services/strategies/strategies.d.ts +75 -0
- package/dist/services/strategies/strategies.d.ts.map +1 -0
- package/dist/services/strategies/strategies.js +135 -0
- package/dist/services/strategies/strategies.js.map +1 -0
- package/dist/services/strategies/strategies.schemas.d.ts +568 -0
- package/dist/services/strategies/strategies.schemas.d.ts.map +1 -0
- package/dist/services/strategies/strategies.schemas.js +408 -0
- package/dist/services/strategies/strategies.schemas.js.map +1 -0
- package/dist/services/strategies/strategies.types.d.ts +3 -0
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +19 -19
- package/dist/services/swap/service.d.ts +8 -0
- package/dist/services/swap/service.d.ts.map +1 -0
- package/dist/services/swap/service.js +9 -0
- package/dist/services/swap/service.js.map +1 -0
- package/dist/services/swap/swap.codecs.d.ts +19 -0
- package/dist/services/swap/swap.codecs.d.ts.map +1 -0
- package/dist/services/swap/swap.codecs.js +39 -0
- package/dist/services/swap/swap.codecs.js.map +1 -0
- package/dist/services/swap/swap.d.ts +51 -0
- package/dist/services/swap/swap.d.ts.map +1 -0
- package/dist/services/swap/swap.js +71 -0
- package/dist/services/swap/swap.js.map +1 -0
- package/dist/services/swap/swap.schemas.d.ts +520 -0
- package/dist/services/swap/swap.schemas.d.ts.map +1 -0
- package/dist/services/swap/swap.schemas.js +213 -0
- package/dist/services/swap/swap.schemas.js.map +1 -0
- package/dist/services/swap/swap.types.d.ts +3 -0
- package/dist/services/system/system.js +1 -1
- 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.d.ts +29 -2
- package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +75 -12
- package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +85 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +57 -2
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +3 -3
- package/dist/services/trading-withdraws/wallet-message.js +30 -2
- package/dist/services/trading-withdraws/wallet-message.js.map +1 -1
- package/dist/services/triggers/trigger-child-order.schemas.js +2 -2
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/trigger-input.schemas.js +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +53 -53
- package/dist/services/triggers/triggers.js +1 -1
- package/dist/services/vip/vip.js +1 -1
- package/dist/services/vip/vip.schemas.d.ts +3 -3
- package/dist/services/vip/vip.schemas.js +1 -1
- package/dist/services/zipper/zipper.js +1 -1
- package/dist/services/zipper/zipper.schemas.js +1 -1
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +6 -0
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/decimal-surface.d.ts.map +1 -1
- package/dist/shared/decimal-surface.js +11 -1
- package/dist/shared/decimal-surface.js.map +1 -1
- package/dist/shared/error-detail.d.ts +37 -2
- package/dist/shared/error-detail.d.ts.map +1 -1
- package/dist/shared/error-detail.js +2 -0
- 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/strategies.js +36 -0
- package/dist/shared/error-details/strategies.js.map +1 -0
- package/dist/shared/error-details/swap.js +22 -0
- package/dist/shared/error-details/swap.js.map +1 -0
- package/dist/shared/error-details/withdraw.js +1 -1
- package/dist/shared/rate-limit.schemas.d.ts +1 -1
- package/dist/shared/rate-limit.schemas.js +1 -1
- package/dist/wired-services.d.ts.map +1 -1
- package/dist/wired-services.js +23 -19
- package/dist/wired-services.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { file_polyester_api_options } from "../../polyester/api/options_pb.js";
|
|
3
|
-
import {
|
|
3
|
+
import { file_auth_v1_account_scope } from "./account_scope_pb.js";
|
|
4
4
|
import { file_auth_v1_mfa } from "./mfa_pb.js";
|
|
5
5
|
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
6
6
|
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
@@ -27,7 +27,7 @@ var auth_pb_exports = /* @__PURE__ */ __exportAll({
|
|
|
27
27
|
* Describes the file auth/v1/auth.proto.
|
|
28
28
|
*/
|
|
29
29
|
const file_auth_v1_auth = /*@__PURE__*/ fileDesc("ChJhdXRoL3YxL2F1dGgucHJvdG8SB2F1dGgudjEinAEKHENyZWF0ZVdhbGxldENoYWxsZW5nZVJlcXVlc3QSHwoVc21hcnRfYWNjb3VudF9hZGRyZXNzGAEgASgJQgASGAoOc2lnbmVyX2FkZHJlc3MYAiABKAlCABINCgN1cmkYAyABKAlCABIyCgdwdXJwb3NlGAQgASgOMh8uYXV0aC52MS5XYWxsZXRDaGFsbGVuZ2VQdXJwb3NlQgAiYAodQ3JlYXRlV2FsbGV0Q2hhbGxlbmdlUmVzcG9uc2USDwoHbWVzc2FnZRgBIAEoCRIuCgpleHBpcmVzX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCKgAQoWTG9naW5XaXRoV2FsbGV0UmVxdWVzdBIfChVzbWFydF9hY2NvdW50X2FkZHJlc3MYASABKAlCABITCglzaWduYXR1cmUYAyABKAlCABIUCgp1c2VyX2FnZW50GAQgASgJQgASDAoCa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RBBIEiQKIEFVVEhfQ09OTkVDVEVEX0FQUF9MSU1JVF9SRUFDSEVEEEky0QIKC0F1dGhTZXJ2aWNlEmgKFUNyZWF0ZVdhbGxldENoYWxsZW5nZRIlLmF1dGgudjEuQ3JlYXRlV2FsbGV0Q2hhbGxlbmdlUmVxdWVzdBomLmF1dGgudjEuQ3JlYXRlV2FsbGV0Q2hhbGxlbmdlUmVzcG9uc2UiABJWCg9Mb2dpbldpdGhXYWxsZXQSHy5hdXRoLnYxLkxvZ2luV2l0aFdhbGxldFJlcXVlc3QaIC5hdXRoLnYxLkxvZ2luV2l0aFdhbGxldFJlc3BvbnNlIgASTQoLQWNjZXB0VGVybXMSGy5hdXRoLnYxLkFjY2VwdFRlcm1zUmVxdWVzdBocLmF1dGgudjEuQWNjZXB0VGVybXNSZXNwb25zZSIDkAICEi8KAk1lEhIuYXV0aC52MS5NZVJlcXVlc3QaEy5hdXRoLnYxLk1lUmVzcG9uc2UiABoAQjxaOmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vYXV0aC92MTthdXRodjFiBnByb3RvMw==", [
|
|
30
|
-
|
|
30
|
+
file_auth_v1_account_scope,
|
|
31
31
|
file_auth_v1_mfa,
|
|
32
32
|
file_google_protobuf_timestamp,
|
|
33
33
|
file_polyester_api_options
|
|
@@ -440,8 +440,9 @@ let AuthErrorCode = /* @__PURE__ */ function(AuthErrorCode) {
|
|
|
440
440
|
*/
|
|
441
441
|
AuthErrorCode[AuthErrorCode["AUTH_KEY_DISABLED"] = 52] = "AUTH_KEY_DISABLED";
|
|
442
442
|
/**
|
|
443
|
-
* The API key's IP allowlist does not include the request's
|
|
444
|
-
*
|
|
443
|
+
* The API key's IP allowlist, an admin key's included, does not include the request's
|
|
444
|
+
* source address. ConnectRPC answers unauthenticated with this code in the
|
|
445
|
+
* AuthErrorDetail; the REST problem code is the short IP_NOT_ALLOWED, with HTTP 401.
|
|
445
446
|
*
|
|
446
447
|
* @generated from enum value: AUTH_IP_NOT_ALLOWED = 53;
|
|
447
448
|
*/
|
|
@@ -497,21 +498,21 @@ let AuthErrorCode = /* @__PURE__ */ function(AuthErrorCode) {
|
|
|
497
498
|
/**
|
|
498
499
|
* A new assistant key's registration proof is missing or does not verify
|
|
499
500
|
* for its account, public key and registration deadline. The REST problem
|
|
500
|
-
* code is
|
|
501
|
+
* code is AUTH_ASSISTANT_KEY_PROOF_INVALID.
|
|
501
502
|
*
|
|
502
503
|
* @generated from enum value: AUTH_ASSISTANT_KEY_PROOF_INVALID = 60;
|
|
503
504
|
*/
|
|
504
505
|
AuthErrorCode[AuthErrorCode["AUTH_ASSISTANT_KEY_PROOF_INVALID"] = 60] = "AUTH_ASSISTANT_KEY_PROOF_INVALID";
|
|
505
506
|
/**
|
|
506
507
|
* A new assistant key's registration deadline has passed; prepare the key
|
|
507
|
-
* again. The REST problem code is
|
|
508
|
+
* again. The REST problem code is AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED.
|
|
508
509
|
*
|
|
509
510
|
* @generated from enum value: AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED = 61;
|
|
510
511
|
*/
|
|
511
512
|
AuthErrorCode[AuthErrorCode["AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED"] = 61] = "AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED";
|
|
512
513
|
/**
|
|
513
514
|
* A new assistant key's registration deadline is more than 15 minutes
|
|
514
|
-
* ahead. The REST problem code is
|
|
515
|
+
* ahead. The REST problem code is AUTH_ASSISTANT_KEY_DEADLINE_TOO_FAR.
|
|
515
516
|
*
|
|
516
517
|
* @generated from enum value: AUTH_ASSISTANT_KEY_DEADLINE_TOO_FAR = 62;
|
|
517
518
|
*/
|
|
@@ -527,7 +528,7 @@ let AuthErrorCode = /* @__PURE__ */ function(AuthErrorCode) {
|
|
|
527
528
|
* The X/Twitter or Discord account was unlinked from another Polyester
|
|
528
529
|
* account less than 30 days ago, and can be linked to a different account
|
|
529
530
|
* only after that. The account that unlinked it may link it again at once.
|
|
530
|
-
* retry_after says when. HTTP 412,
|
|
531
|
+
* retry_after says when. HTTP 412, AUTH_SOCIAL_ACCOUNT_COOLDOWN.
|
|
531
532
|
*
|
|
532
533
|
* @generated from enum value: AUTH_SOCIAL_ACCOUNT_COOLDOWN = 64;
|
|
533
534
|
*/
|
|
@@ -535,14 +536,14 @@ let AuthErrorCode = /* @__PURE__ */ function(AuthErrorCode) {
|
|
|
535
536
|
/**
|
|
536
537
|
* The account already changed or unlinked its X/Twitter or Discord account
|
|
537
538
|
* less than 30 days ago: one change per provider every 30 days. retry_after
|
|
538
|
-
* says when the next one is allowed. HTTP 412,
|
|
539
|
+
* says when the next one is allowed. HTTP 412, AUTH_SOCIAL_CHANGE_LIMIT_REACHED.
|
|
539
540
|
*
|
|
540
541
|
* @generated from enum value: AUTH_SOCIAL_CHANGE_LIMIT_REACHED = 65;
|
|
541
542
|
*/
|
|
542
543
|
AuthErrorCode[AuthErrorCode["AUTH_SOCIAL_CHANGE_LIMIT_REACHED"] = 65] = "AUTH_SOCIAL_CHANGE_LIMIT_REACHED";
|
|
543
544
|
/**
|
|
544
545
|
* Only an admin API key may call this with an API key; the key that signed
|
|
545
|
-
* the request is not one. HTTP 403,
|
|
546
|
+
* the request is not one. HTTP 403, AUTH_ADMIN_KEY_REQUIRED.
|
|
546
547
|
*
|
|
547
548
|
* @generated from enum value: AUTH_ADMIN_KEY_REQUIRED = 67;
|
|
548
549
|
*/
|
|
@@ -551,7 +552,7 @@ let AuthErrorCode = /* @__PURE__ */ function(AuthErrorCode) {
|
|
|
551
552
|
* The request would create, promote or change an admin key, or attach an
|
|
552
553
|
* admin permission, by API key. Only the main account's owner may, in a
|
|
553
554
|
* signed-in session with a fresh step-up proof. HTTP 403,
|
|
554
|
-
*
|
|
555
|
+
* AUTH_ADMIN_KEY_ESCALATION_DENIED.
|
|
555
556
|
*
|
|
556
557
|
* @generated from enum value: AUTH_ADMIN_KEY_ESCALATION_DENIED = 68;
|
|
557
558
|
*/
|
|
@@ -560,7 +561,7 @@ let AuthErrorCode = /* @__PURE__ */ function(AuthErrorCode) {
|
|
|
560
561
|
* The admin API key's change would give a key more than the admin key's own
|
|
561
562
|
* scope allows: an IP allowlist entry outside the admin key's allowlist, or
|
|
562
563
|
* on a sub-account key more actions or markets than the sub-account's
|
|
563
|
-
* policy. HTTP 403,
|
|
564
|
+
* policy. HTTP 403, AUTH_ADMIN_KEY_SCOPE_EXCEEDED.
|
|
564
565
|
*
|
|
565
566
|
* @generated from enum value: AUTH_ADMIN_KEY_SCOPE_EXCEEDED = 69;
|
|
566
567
|
*/
|
|
@@ -569,7 +570,7 @@ let AuthErrorCode = /* @__PURE__ */ function(AuthErrorCode) {
|
|
|
569
570
|
* An admin API key can never reach this target: an assistant key, a key or
|
|
570
571
|
* policy that allows a money-out action, a locked sub-account policy, or a
|
|
571
572
|
* sub-account the main account does not own. HTTP 403,
|
|
572
|
-
*
|
|
573
|
+
* AUTH_ADMIN_KEY_FORBIDDEN_TARGET.
|
|
573
574
|
*
|
|
574
575
|
* @generated from enum value: AUTH_ADMIN_KEY_FORBIDDEN_TARGET = 70;
|
|
575
576
|
*/
|
|
@@ -577,7 +578,7 @@ let AuthErrorCode = /* @__PURE__ */ function(AuthErrorCode) {
|
|
|
577
578
|
/**
|
|
578
579
|
* An admin key's IP allowlist is empty, or has an entry broader than /24
|
|
579
580
|
* (IPv4) or /48 (IPv6), or an IPv4-mapped IPv6 entry. HTTP 400,
|
|
580
|
-
*
|
|
581
|
+
* AUTH_ADMIN_KEY_ALLOWLIST_INVALID.
|
|
581
582
|
*
|
|
582
583
|
* @generated from enum value: AUTH_ADMIN_KEY_ALLOWLIST_INVALID = 71;
|
|
583
584
|
*/
|
|
@@ -586,7 +587,7 @@ let AuthErrorCode = /* @__PURE__ */ function(AuthErrorCode) {
|
|
|
586
587
|
* An admin API key can never be allowed an action that moves value out of
|
|
587
588
|
* the account or manages where it goes: EXTERNAL_WITHDRAW,
|
|
588
589
|
* INTERNAL_TRANSFER, MANAGE_ADDRESS_BOOK or MANAGE_AUTO_WITHDRAW. HTTP 412,
|
|
589
|
-
*
|
|
590
|
+
* AUTH_ADMIN_KEY_ACTION_NOT_ALLOWED.
|
|
590
591
|
*
|
|
591
592
|
* @generated from enum value: AUTH_ADMIN_KEY_ACTION_NOT_ALLOWED = 72;
|
|
592
593
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/auth_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/auth.proto (package auth.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { AccountScopeType } from \"./address_book_pb.js\";\nimport { file_auth_v1_address_book } from \"./address_book_pb.js\";\nimport type { SessionInfo } from \"./mfa_pb.js\";\nimport { file_auth_v1_mfa } from \"./mfa_pb.js\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file auth/v1/auth.proto.\n */\nexport const file_auth_v1_auth: GenFile = /*@__PURE__*/\n fileDesc(\"ChJhdXRoL3YxL2F1dGgucHJvdG8SB2F1dGgudjEinAEKHENyZWF0ZVdhbGxldENoYWxsZW5nZVJlcXVlc3QSHwoVc21hcnRfYWNjb3VudF9hZGRyZXNzGAEgASgJQgASGAoOc2lnbmVyX2FkZHJlc3MYAiABKAlCABINCgN1cmkYAyABKAlCABIyCgdwdXJwb3NlGAQgASgOMh8uYXV0aC52MS5XYWxsZXRDaGFsbGVuZ2V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0FVVEhfQURNSU5fS0VZX1JFUVVJUkVEEEMSJAogQVVUSF9BRE1JTl9LRVlfRVNDQUxBVElPTl9ERU5JRUQQRBIhCh1BVVRIX0FETUlOX0tFWV9TQ09QRV9FWENFRURFRBBFEiMKH0FVVEhfQURNSU5fS0VZX0ZPUkJJRERFTl9UQVJHRVQQRhIkCiBBVVRIX0FETUlOX0tFWV9BTExPV0xJU1RfSU5WQUxJRBBHEiUKIUFVVEhfQURNSU5fS0VZX0FDVElPTl9OT1RfQUxMT1dFRBBIEiQKIEFVVEhfQ09OTkVDVEVEX0FQUF9MSU1JVF9SRUFDSEVEEEky0QIKC0F1dGhTZXJ2aWNlEmgKFUNyZWF0ZVdhbGxldENoYWxsZW5nZRIlLmF1dGgudjEuQ3JlYXRlV2FsbGV0Q2hhbGxlbmdlUmVxdWVzdBomLmF1dGgudjEuQ3JlYXRlV2FsbGV0Q2hhbGxlbmdlUmVzcG9uc2UiABJWCg9Mb2dpbldpdGhXYWxsZXQSHy5hdXRoLnYxLkxvZ2luV2l0aFdhbGxldFJlcXVlc3QaIC5hdXRoLnYxLkxvZ2luV2l0aFdhbGxldFJlc3BvbnNlIgASTQoLQWNjZXB0VGVybXMSGy5hdXRoLnYxLkFjY2VwdFRlcm1zUmVxdWVzdBocLmF1dGgudjEuQWNjZXB0VGVybXNSZXNwb25zZSIDkAICEi8KAk1lEhIuYXV0aC52MS5NZVJlcXVlc3QaEy5hdXRoLnYxLk1lUmVzcG9uc2UiABoAQjxaOmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vYXV0aC92MTthdXRodjFiBnByb3RvMw==\", [file_auth_v1_address_book, file_auth_v1_mfa, file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * CreateWalletChallengeRequest requests a short-lived EIP-4361 message whose\n * exact UTF-8 bytes must be signed by the wallet.\n *\n * @generated from message auth.v1.CreateWalletChallengeRequest\n */\nexport type CreateWalletChallengeRequest = Message<\"auth.v1.CreateWalletChallengeRequest\"> & {\n /**\n * Smart-account EVM address being authenticated, formatted as 0x plus 40 hex characters.\n *\n * @generated from field: string smart_account_address = 1;\n */\n smartAccountAddress: string;\n\n /**\n * Address whose signature authorizes the challenge and that is written into\n * the EIP-4361 message. This must be an EOA that controls the target smart account.\n *\n * @generated from field: string signer_address = 2;\n */\n signerAddress: string;\n\n /**\n * Browser origin URI requesting the signature, including scheme and optional\n * port but no path, query, fragment, or user information.\n *\n * @generated from field: string uri = 3;\n */\n uri: string;\n\n /**\n * Operation for which the challenge may be consumed. Must be LOGIN.\n *\n * @generated from field: auth.v1.WalletChallengePurpose purpose = 4;\n */\n purpose: WalletChallengePurpose;\n};\n\n/**\n * Describes the message auth.v1.CreateWalletChallengeRequest.\n * Use `create(CreateWalletChallengeRequestSchema)` to create a new message.\n */\nexport const CreateWalletChallengeRequestSchema: GenMessage<CreateWalletChallengeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 0);\n\n/**\n * CreateWalletChallengeResponse contains the canonical EIP-4361 message.\n *\n * @generated from message auth.v1.CreateWalletChallengeResponse\n */\nexport type CreateWalletChallengeResponse = Message<\"auth.v1.CreateWalletChallengeResponse\"> & {\n /**\n * Canonical EIP-4361 message. Sign these UTF-8 bytes exactly once with\n * personal_sign; do not hash, alter, or reconstruct the message.\n *\n * @generated from field: string message = 1;\n */\n message: string;\n\n /**\n * Time in UTC when the challenge expires. Wallet challenges expire after 5 minutes.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.CreateWalletChallengeResponse.\n * Use `create(CreateWalletChallengeResponseSchema)` to create a new message.\n */\nexport const CreateWalletChallengeResponseSchema: GenMessage<CreateWalletChallengeResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 1);\n\n/**\n * LoginWithWalletRequest completes smart-account wallet login using the exact\n * server-issued EIP-4361 message and its signature.\n *\n * @generated from message auth.v1.LoginWithWalletRequest\n */\nexport type LoginWithWalletRequest = Message<\"auth.v1.LoginWithWalletRequest\"> & {\n /**\n * Smart-account EVM address bound into the challenge resource, formatted as\n * 0x plus 40 hex characters.\n *\n * @generated from field: string smart_account_address = 1;\n */\n smartAccountAddress: string;\n\n /**\n * EOA signature over message using EIP-191 personal_sign semantics. A valid\n * value is 65 bytes of hexadecimal with an optional 0x prefix. Requests are\n * limited to 8192 characters.\n *\n * @generated from field: string signature = 3;\n */\n signature: string;\n\n /**\n * Optional user-agent string for account security and audit displays. Maximum\n * length is 512 characters.\n *\n * @generated from field: string user_agent = 4;\n */\n userAgent: string;\n\n /**\n * Optional caller IP address for account security and audit displays. Maximum\n * length is 64 characters.\n *\n * @generated from field: string ip = 5;\n */\n ip: string;\n\n /**\n * Optional provider hint for the signing wallet. Maximum length is 32 characters.\n *\n * @generated from field: string wallet_provider = 7;\n */\n walletProvider: string;\n\n /**\n * Exact EIP-4361 message returned by CreateWalletChallenge. Maximum length is\n * 4096 UTF-8 bytes.\n *\n * @generated from field: string message = 8;\n */\n message: string;\n};\n\n/**\n * Describes the message auth.v1.LoginWithWalletRequest.\n * Use `create(LoginWithWalletRequestSchema)` to create a new message.\n */\nexport const LoginWithWalletRequestSchema: GenMessage<LoginWithWalletRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 2);\n\n/**\n * LoginWithWalletResponse returns a session token for the authenticated root\n * account.\n *\n * @generated from message auth.v1.LoginWithWalletResponse\n */\nexport type LoginWithWalletResponse = Message<\"auth.v1.LoginWithWalletResponse\"> & {\n /**\n * Bearer access token for authenticated API calls.\n *\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * Time in UTC when access_token expires.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n\n /**\n * Root account the token is bound to (opaque ID).\n *\n * @generated from field: fixed64 account_id = 10;\n */\n accountId: bigint;\n\n /**\n * Optional current username for the root account (empty if not set).\n *\n * @generated from field: string username = 13;\n */\n username: string;\n\n /**\n * Session assurance details for the issued access token.\n *\n * @generated from field: auth.v1.SessionInfo session = 20;\n */\n session?: SessionInfo | undefined;\n};\n\n/**\n * Describes the message auth.v1.LoginWithWalletResponse.\n * Use `create(LoginWithWalletResponseSchema)` to create a new message.\n */\nexport const LoginWithWalletResponseSchema: GenMessage<LoginWithWalletResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 3);\n\n/**\n * MeRequest introspects the authenticated caller from the presented access\n * token or API key.\n *\n * @generated from message auth.v1.MeRequest\n */\nexport type MeRequest = Message<\"auth.v1.MeRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.MeRequest.\n * Use `create(MeRequestSchema)` to create a new message.\n */\nexport const MeRequestSchema: GenMessage<MeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 4);\n\n/**\n * MeResponse describes the authenticated caller and current session context.\n *\n * @generated from message auth.v1.MeResponse\n */\nexport type MeResponse = Message<\"auth.v1.MeResponse\"> & {\n /**\n * Root account identifier (opaque ID).\n *\n * @generated from field: fixed64 account_id = 1;\n */\n accountId: bigint;\n\n /**\n * Stable public identifier of the API key that authenticated this request,\n * formatted as \"ak_\" followed by 32 lowercase hexadecimal characters.\n * Absent when the request was not authenticated with an API key.\n *\n * @generated from field: optional string api_key_id = 10;\n */\n apiKeyId?: string | undefined;\n\n /**\n * Optional current username for the root account (empty if not set).\n *\n * @generated from field: string username = 11;\n */\n username: string;\n\n /**\n * Root smart-account EVM address, formatted as 0x plus 40 hex characters.\n * Empty if not set.\n *\n * @generated from field: string root_smart_account_address = 12;\n */\n rootSmartAccountAddress: string;\n\n /**\n * Account scope of the API key that authenticated this request: SCOPE_ROOT\n * for a key of the main account, SCOPE_SUBACCOUNT for a key bound to one\n * sub-account. SCOPE_UNSPECIFIED when the request was not authenticated with\n * an API key.\n *\n * @generated from field: auth.v1.AccountScopeType api_key_scope = 13;\n */\n apiKeyScope: AccountScopeType;\n\n /**\n * Sub-account the API key is bound to (opaque ID). Present only when\n * api_key_scope is SCOPE_SUBACCOUNT. The key's private realtime channels\n * and account reads name this sub-account, for example\n * private:ledger:balances:<subaccount_id>.\n *\n * @generated from field: optional fixed64 subaccount_id = 14;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Session assurance details for the presented access token, if any.\n *\n * @generated from field: auth.v1.SessionInfo session = 20;\n */\n session?: SessionInfo | undefined;\n};\n\n/**\n * Describes the message auth.v1.MeResponse.\n * Use `create(MeResponseSchema)` to create a new message.\n */\nexport const MeResponseSchema: GenMessage<MeResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 5);\n\n/**\n * AuthErrorDetail describes an authentication or account-domain failure.\n *\n * @generated from message auth.v1.AuthErrorDetail\n */\nexport type AuthErrorDetail = Message<\"auth.v1.AuthErrorDetail\"> & {\n /**\n * Stable machine-readable auth error code.\n *\n * @generated from field: auth.v1.AuthErrorCode code = 1;\n */\n code: AuthErrorCode;\n\n /**\n * Human-readable error message.\n *\n * @generated from field: string message = 2;\n */\n message: string;\n\n /**\n * Time in UTC from which the same request may succeed. Set for\n * AUTH_SOCIAL_ACCOUNT_COOLDOWN and AUTH_SOCIAL_CHANGE_LIMIT_REACHED; empty\n * otherwise.\n *\n * @generated from field: google.protobuf.Timestamp retry_after = 3;\n */\n retryAfter?: Timestamp | undefined;\n\n /**\n * The server time and the window a signed request's timestamp must fall in.\n * Set for AUTH_TIMESTAMP_SKEW; empty otherwise.\n *\n * @generated from field: auth.v1.TimestampWindow timestamp_window = 4;\n */\n timestampWindow?: TimestampWindow | undefined;\n};\n\n/**\n * Describes the message auth.v1.AuthErrorDetail.\n * Use `create(AuthErrorDetailSchema)` to create a new message.\n */\nexport const AuthErrorDetailSchema: GenMessage<AuthErrorDetail> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 6);\n\n/**\n * TimestampWindow is the window in which the server accepts the timestamp of\n * a request signed with an API key: from server_time_ms minus recv_window_ms\n * to server_time_ms plus max_future_ms, both inclusive. Compare\n * server_time_ms with the clock that signed the request to correct its\n * offset.\n *\n * @generated from message auth.v1.TimestampWindow\n */\nexport type TimestampWindow = Message<\"auth.v1.TimestampWindow\"> & {\n /**\n * Server time when the request was refused, in milliseconds since the Unix\n * epoch (UTC).\n *\n * @generated from field: int64 server_time_ms = 1;\n */\n serverTimeMs: bigint;\n\n /**\n * Receive window the timestamp was checked against, in milliseconds: the\n * request's X-API-RECV-WINDOW, from 1 to 60000, or 5000 when the header is\n * omitted.\n *\n * @generated from field: uint32 recv_window_ms = 2;\n */\n recvWindowMs: number;\n\n /**\n * How far a timestamp may run ahead of the server time, in milliseconds:\n * 1000, whatever the receive window.\n *\n * @generated from field: uint32 max_future_ms = 3;\n */\n maxFutureMs: number;\n};\n\n/**\n * Describes the message auth.v1.TimestampWindow.\n * Use `create(TimestampWindowSchema)` to create a new message.\n */\nexport const TimestampWindowSchema: GenMessage<TimestampWindow> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 7);\n\n/**\n * AcceptTermsRequest records explicit consent to the terms that apply to the caller's root account.\n *\n * @generated from message auth.v1.AcceptTermsRequest\n */\nexport type AcceptTermsRequest = Message<\"auth.v1.AcceptTermsRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.AcceptTermsRequest.\n * Use `create(AcceptTermsRequestSchema)` to create a new message.\n */\nexport const AcceptTermsRequestSchema: GenMessage<AcceptTermsRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 8);\n\n/**\n * AcceptTermsResponse confirms acceptance. Repeated requests succeed and\n * preserve the first acceptance time.\n *\n * @generated from message auth.v1.AcceptTermsResponse\n */\nexport type AcceptTermsResponse = Message<\"auth.v1.AcceptTermsResponse\"> & {\n};\n\n/**\n * Describes the message auth.v1.AcceptTermsResponse.\n * Use `create(AcceptTermsResponseSchema)` to create a new message.\n */\nexport const AcceptTermsResponseSchema: GenMessage<AcceptTermsResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 9);\n\n/**\n * Purpose for a server-issued wallet challenge.\n *\n * @generated from enum auth.v1.WalletChallengePurpose\n */\nexport enum WalletChallengePurpose {\n /**\n * No wallet challenge purpose was specified.\n *\n * @generated from enum value: WALLET_PROOF_UNSPECIFIED = 0;\n */\n WALLET_PROOF_UNSPECIFIED = 0,\n\n /**\n * Authenticate the wallet and create a Polyester session.\n *\n * @generated from enum value: LOGIN = 1;\n */\n LOGIN = 1,\n}\n\n/**\n * Describes the enum auth.v1.WalletChallengePurpose.\n */\nexport const WalletChallengePurposeSchema: GenEnum<WalletChallengePurpose> = /*@__PURE__*/\n enumDesc(file_auth_v1_auth, 0);\n\n/**\n * High-level error codes for authentication and account-domain failures.\n *\n * @generated from enum auth.v1.AuthErrorCode\n */\nexport enum AuthErrorCode {\n /**\n * No auth error code specified.\n *\n * @generated from enum value: AUTH_UNSPECIFIED = 0;\n */\n AUTH_UNSPECIFIED = 0,\n\n /**\n * Username format or characters are invalid.\n *\n * @generated from enum value: AUTH_USERNAME_INVALID = 1;\n */\n AUTH_USERNAME_INVALID = 1,\n\n /**\n * Username is already used by another account.\n *\n * @generated from enum value: AUTH_USERNAME_TAKEN = 2;\n */\n AUTH_USERNAME_TAKEN = 2,\n\n /**\n * Username was changed too recently.\n *\n * @generated from enum value: AUTH_USERNAME_COOLDOWN = 3;\n */\n AUTH_USERNAME_COOLDOWN = 3,\n\n /**\n * Account is not currently eligible to claim or change a username.\n *\n * @generated from enum value: AUTH_USERNAME_FEATURE_LOCKED = 4;\n */\n AUTH_USERNAME_FEATURE_LOCKED = 4,\n\n /**\n * Username is reserved and cannot be claimed by this account.\n *\n * @generated from enum value: AUTH_USERNAME_RESERVED = 5;\n */\n AUTH_USERNAME_RESERVED = 5,\n\n /**\n * Request is malformed or missing required input.\n *\n * @generated from enum value: AUTH_INVALID_REQUEST = 6;\n */\n AUTH_INVALID_REQUEST = 6,\n\n /**\n * Authentication is required for this operation.\n *\n * @generated from enum value: AUTH_AUTHENTICATION_REQUIRED = 7;\n */\n AUTH_AUTHENTICATION_REQUIRED = 7,\n\n /**\n * Presented session type is not allowed for this operation.\n *\n * @generated from enum value: AUTH_SESSION_KIND_NOT_ALLOWED = 8;\n */\n AUTH_SESSION_KIND_NOT_ALLOWED = 8,\n\n /**\n * Wallet login failed because the nonce or signature could not be verified.\n *\n * @generated from enum value: AUTH_WALLET_LOGIN_FAILED = 9;\n */\n AUTH_WALLET_LOGIN_FAILED = 9,\n\n /**\n * Requested resource was not found.\n *\n * @generated from enum value: AUTH_RESOURCE_NOT_FOUND = 10;\n */\n AUTH_RESOURCE_NOT_FOUND = 10,\n\n /**\n * Caller does not have access to the requested sub-account.\n *\n * @generated from enum value: AUTH_SUBACCOUNT_ACCESS_DENIED = 11;\n */\n AUTH_SUBACCOUNT_ACCESS_DENIED = 11,\n\n /**\n * Caller does not have access to the requested API key, or the calling API\n * key's policy lacks the account permission the call needs, or the call needs\n * a key scoped to the main account. Those two permission refusals name the\n * permission in the message; an ownership refusal names none.\n *\n * @generated from enum value: AUTH_API_KEY_ACCESS_DENIED = 12;\n */\n AUTH_API_KEY_ACCESS_DENIED = 12,\n\n /**\n * Requested API key status transition is not allowed.\n *\n * @generated from enum value: AUTH_API_KEY_INVALID_STATUS_TRANSITION = 14;\n */\n AUTH_API_KEY_INVALID_STATUS_TRANSITION = 14,\n\n /**\n * Policy definition or binding is invalid.\n *\n * @generated from enum value: AUTH_POLICY_INVALID = 15;\n */\n AUTH_POLICY_INVALID = 15,\n\n /**\n * Smart-account address is already linked to another account.\n *\n * @generated from enum value: AUTH_SMART_ACCOUNT_ALREADY_LINKED = 16;\n */\n AUTH_SMART_ACCOUNT_ALREADY_LINKED = 16,\n\n /**\n * Caller does not have access to the requested invite.\n *\n * @generated from enum value: AUTH_INVITE_ACCESS_DENIED = 17;\n */\n AUTH_INVITE_ACCESS_DENIED = 17,\n\n /**\n * Invite cannot be used in its current state.\n *\n * @generated from enum value: AUTH_INVITE_INVALID_STATE = 18;\n */\n AUTH_INVITE_INVALID_STATE = 18,\n\n /**\n * MFA is not available for this account.\n *\n * @generated from enum value: AUTH_MFA_DISABLED = 19;\n */\n AUTH_MFA_DISABLED = 19,\n\n /**\n * Required MFA factor is not enrolled.\n *\n * @generated from enum value: AUTH_MFA_NOT_ENROLLED = 20;\n */\n AUTH_MFA_NOT_ENROLLED = 20,\n\n /**\n * MFA session is missing, expired, or invalid.\n *\n * @generated from enum value: AUTH_MFA_SESSION_INVALID = 21;\n */\n AUTH_MFA_SESSION_INVALID = 21,\n\n /**\n * MFA challenge was not found.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_NOT_FOUND = 22;\n */\n AUTH_MFA_CHALLENGE_NOT_FOUND = 22,\n\n /**\n * MFA challenge payload is invalid.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_INVALID = 23;\n */\n AUTH_MFA_CHALLENGE_INVALID = 23,\n\n /**\n * MFA challenge is locked after too many failed attempts.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_LOCKED = 24;\n */\n AUTH_MFA_CHALLENGE_LOCKED = 24,\n\n /**\n * One-time password is invalid.\n *\n * @generated from enum value: AUTH_MFA_OTP_INVALID = 25;\n */\n AUTH_MFA_OTP_INVALID = 25,\n\n /**\n * Recovery code is invalid.\n *\n * @generated from enum value: AUTH_MFA_RECOVERY_INVALID = 26;\n */\n AUTH_MFA_RECOVERY_INVALID = 26,\n\n /**\n * Passkey verification is not available for this challenge.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_NOT_AVAILABLE = 27;\n */\n AUTH_MFA_PASSKEY_NOT_AVAILABLE = 27,\n\n /**\n * Passkey credential is invalid for this account or challenge.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_CREDENTIAL_INVALID = 28;\n */\n AUTH_MFA_PASSKEY_CREDENTIAL_INVALID = 28,\n\n /**\n * Passkey verification failed.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_VERIFY_FAILED = 29;\n */\n AUTH_MFA_PASSKEY_VERIFY_FAILED = 29,\n\n /**\n * MFA enrollment binding is invalid or expired.\n *\n * @generated from enum value: AUTH_MFA_ENROLLMENT_BINDING_INVALID = 30;\n */\n AUTH_MFA_ENROLLMENT_BINDING_INVALID = 30,\n\n /**\n * A fresh step-up proof is required for this protected operation.\n *\n * @generated from enum value: AUTH_STEP_UP_REQUIRED = 31;\n */\n AUTH_STEP_UP_REQUIRED = 31,\n\n /**\n * A requested step-up proof is unavailable.\n *\n * @generated from enum value: AUTH_STEP_UP_PROOF_UNAVAILABLE = 32;\n */\n AUTH_STEP_UP_PROOF_UNAVAILABLE = 32,\n\n /**\n * The step-up proof has already been claimed.\n *\n * @generated from enum value: AUTH_STEP_UP_ALREADY_CLAIMED = 33;\n */\n AUTH_STEP_UP_ALREADY_CLAIMED = 33,\n\n /**\n * The requested policy cannot be removed because it is still in use.\n *\n * @generated from enum value: AUTH_POLICY_IN_USE = 34;\n */\n AUTH_POLICY_IN_USE = 34,\n\n /**\n * The requested policy is locked against this mutation.\n *\n * @generated from enum value: AUTH_POLICY_LOCKED = 35;\n */\n AUTH_POLICY_LOCKED = 35,\n\n /**\n * The requested policy does not belong to the target account scope.\n *\n * @generated from enum value: AUTH_POLICY_SCOPE_MISMATCH = 36;\n */\n AUTH_POLICY_SCOPE_MISMATCH = 36,\n\n /**\n * The resource changed after the caller read it.\n *\n * @generated from enum value: AUTH_REVISION_CONFLICT = 37;\n */\n AUTH_REVISION_CONFLICT = 37,\n\n /**\n * A recently MFA-elevated interactive session is required.\n *\n * @generated from enum value: AUTH_MFA_ELEVATION_REQUIRED = 38;\n */\n AUTH_MFA_ELEVATION_REQUIRED = 38,\n\n /**\n * At least one active MFA factor must remain enrolled.\n *\n * @generated from enum value: AUTH_MFA_LAST_FACTOR_REQUIRED = 39;\n */\n AUTH_MFA_LAST_FACTOR_REQUIRED = 39,\n\n /**\n * An unexpected server error stopped the request from completing.\n *\n * @generated from enum value: AUTH_INTERNAL_ERROR = 40;\n */\n AUTH_INTERNAL_ERROR = 40,\n\n /**\n * The caller has not accepted the terms required for this action.\n *\n * @generated from enum value: AUTH_TERMS_NOT_ACCEPTED = 41;\n */\n AUTH_TERMS_NOT_ACCEPTED = 41,\n\n /**\n * Social verification challenge expired. Start a new verification, then mark it ready again.\n *\n * @generated from enum value: AUTH_SOCIAL_VERIFICATION_EXPIRED = 42;\n */\n AUTH_SOCIAL_VERIFICATION_EXPIRED = 42,\n\n /**\n * Social verification cannot accept this request in its current state.\n *\n * @generated from enum value: AUTH_SOCIAL_VERIFICATION_INVALID_STATE = 43;\n */\n AUTH_SOCIAL_VERIFICATION_INVALID_STATE = 43,\n\n /**\n * Sub-account authorization is expired, replaced, consumed, or has an invalid signature.\n * Temporary verification failures return Unavailable; retry the same signed challenge.\n *\n * @generated from enum value: AUTH_SUBACCOUNT_CHALLENGE_INVALID = 44;\n */\n AUTH_SUBACCOUNT_CHALLENGE_INVALID = 44,\n\n /**\n * Social account is already linked to another Polyester account.\n *\n * @generated from enum value: AUTH_SOCIAL_ACCOUNT_ALREADY_LINKED = 45;\n */\n AUTH_SOCIAL_ACCOUNT_ALREADY_LINKED = 45,\n\n /**\n * The request could not be completed right now and changed nothing. Retry the same request.\n * A refused WebSocket login needs a new signed login with a fresh nonce.\n *\n * @generated from enum value: AUTH_TEMPORARILY_UNAVAILABLE = 46;\n */\n AUTH_TEMPORARILY_UNAVAILABLE = 46,\n\n /**\n * The account owns this sub-account. An owner cannot be invited to it, and member role\n * changes and member removal do not apply to the owner.\n *\n * @generated from enum value: AUTH_SUBACCOUNT_OWNER_ROLE_LOCKED = 47;\n */\n AUTH_SUBACCOUNT_OWNER_ROLE_LOCKED = 47,\n\n /**\n * The API key request signature does not verify against the request, or the key is unknown.\n * The REST problem code is SIGNATURE_INVALID.\n *\n * @generated from enum value: AUTH_SIGNATURE_INVALID = 48;\n */\n AUTH_SIGNATURE_INVALID = 48,\n\n /**\n * The API key request timestamp is malformed, more than 1 second ahead of the server\n * clock, or older than the request's receive window (X-API-RECV-WINDOW, 5 seconds when\n * omitted) when the request arrived. The request was not processed. The detail's\n * timestamp_window carries the server time and the window the timestamp was checked\n * against; the REST problem carries the same as its timestampWindow member. Sync the\n * clock, for example with the server time from GET /v1/time or this refusal, then sign\n * the request again with a fresh timestamp. The REST problem code is TIMESTAMP_SKEW.\n *\n * @generated from enum value: AUTH_TIMESTAMP_SKEW = 49;\n */\n AUTH_TIMESTAMP_SKEW = 49,\n\n /**\n * The API key request lacks its timestamp or signature header, or a signed\n * WebSocket login lacks a valid X-API-NONCE. The REST problem code is\n * MISSING_HEADERS.\n *\n * @generated from enum value: AUTH_MISSING_HEADERS = 50;\n */\n AUTH_MISSING_HEADERS = 50,\n\n /**\n * The API key has expired. The REST problem code is KEY_EXPIRED.\n *\n * @generated from enum value: AUTH_KEY_EXPIRED = 51;\n */\n AUTH_KEY_EXPIRED = 51,\n\n /**\n * The API key is disabled or revoked. The REST problem code is KEY_DISABLED.\n *\n * @generated from enum value: AUTH_KEY_DISABLED = 52;\n */\n AUTH_KEY_DISABLED = 52,\n\n /**\n * The API key's IP allowlist does not include the request's source address. The REST\n * problem code is IP_NOT_ALLOWED.\n *\n * @generated from enum value: AUTH_IP_NOT_ALLOWED = 53;\n */\n AUTH_IP_NOT_ALLOWED = 53,\n\n /**\n * This API does not accept API keys; authenticate with a session token. The REST problem\n * code is API_KEY_NOT_ACCEPTED.\n *\n * @generated from enum value: AUTH_API_KEY_NOT_ACCEPTED = 54;\n */\n AUTH_API_KEY_NOT_ACCEPTED = 54,\n\n /**\n * The wallet that signed this login is already linked to another account, so the\n * submitted account address cannot be registered with it. Wallets are not moved between\n * accounts. Log in with the account address this wallet already uses.\n *\n * @generated from enum value: AUTH_WALLET_ALREADY_LINKED = 55;\n */\n AUTH_WALLET_ALREADY_LINKED = 55,\n\n /**\n * The API key request's X-API-RECV-WINDOW header is not a single whole number of\n * milliseconds from 1 to 60000. The request was not processed. The REST problem code is\n * RECV_WINDOW_INVALID.\n *\n * @generated from enum value: AUTH_RECV_WINDOW_INVALID = 56;\n */\n AUTH_RECV_WINDOW_INVALID = 56,\n\n /**\n * Too many of this API key's signed requests are still within their receive windows,\n * or too many of every key's, for another to be accepted. The request was not\n * processed. Retry shortly; a shorter receive window lets requests make room sooner.\n * ConnectRPC answers resource_exhausted. The REST problem code is\n * REPLAY_CAPACITY_EXHAUSTED, with HTTP 429.\n *\n * @generated from enum value: AUTH_REPLAY_CAPACITY_EXHAUSTED = 57;\n */\n AUTH_REPLAY_CAPACITY_EXHAUSTED = 57,\n\n /**\n * A non-empty request body identifier differs from the REST path identifier.\n * The request is rejected with HTTP 400 before any action is performed.\n *\n * @generated from enum value: AUTH_PATH_BODY_ID_MISMATCH = 58;\n */\n AUTH_PATH_BODY_ID_MISMATCH = 58,\n\n /**\n * An assistant API key can never be allowed an action that moves value out of the\n * account or manages where it goes: EXTERNAL_WITHDRAW, INTERNAL_TRANSFER,\n * MANAGE_ADDRESS_BOOK or MANAGE_AUTO_WITHDRAW.\n *\n * @generated from enum value: AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED = 59;\n */\n AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED = 59,\n\n /**\n * A new assistant key's registration proof is missing or does not verify\n * for its account, public key and registration deadline. The REST problem\n * code is ASSISTANT_KEY_PROOF_INVALID.\n *\n * @generated from enum value: AUTH_ASSISTANT_KEY_PROOF_INVALID = 60;\n */\n AUTH_ASSISTANT_KEY_PROOF_INVALID = 60,\n\n /**\n * A new assistant key's registration deadline has passed; prepare the key\n * again. The REST problem code is ASSISTANT_KEY_REGISTRATION_EXPIRED.\n *\n * @generated from enum value: AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED = 61;\n */\n AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED = 61,\n\n /**\n * A new assistant key's registration deadline is more than 15 minutes\n * ahead. The REST problem code is ASSISTANT_KEY_DEADLINE_TOO_FAR.\n *\n * @generated from enum value: AUTH_ASSISTANT_KEY_DEADLINE_TOO_FAR = 62;\n */\n AUTH_ASSISTANT_KEY_DEADLINE_TOO_FAR = 62,\n\n /**\n * The signed WebSocket login nonce has already been used. Create a new login\n * with a fresh random nonce and signature. HTTP 401, REPLAY_DETECTED.\n *\n * @generated from enum value: AUTH_REPLAY_DETECTED = 63;\n */\n AUTH_REPLAY_DETECTED = 63,\n\n /**\n * The X/Twitter or Discord account was unlinked from another Polyester\n * account less than 30 days ago, and can be linked to a different account\n * only after that. The account that unlinked it may link it again at once.\n * retry_after says when. HTTP 412, SOCIAL_ACCOUNT_COOLDOWN.\n *\n * @generated from enum value: AUTH_SOCIAL_ACCOUNT_COOLDOWN = 64;\n */\n AUTH_SOCIAL_ACCOUNT_COOLDOWN = 64,\n\n /**\n * The account already changed or unlinked its X/Twitter or Discord account\n * less than 30 days ago: one change per provider every 30 days. retry_after\n * says when the next one is allowed. HTTP 412, SOCIAL_CHANGE_LIMIT_REACHED.\n *\n * @generated from enum value: AUTH_SOCIAL_CHANGE_LIMIT_REACHED = 65;\n */\n AUTH_SOCIAL_CHANGE_LIMIT_REACHED = 65,\n\n /**\n * Only an admin API key may call this with an API key; the key that signed\n * the request is not one. HTTP 403, ADMIN_KEY_REQUIRED.\n *\n * @generated from enum value: AUTH_ADMIN_KEY_REQUIRED = 67;\n */\n AUTH_ADMIN_KEY_REQUIRED = 67,\n\n /**\n * The request would create, promote or change an admin key, or attach an\n * admin permission, by API key. Only the main account's owner may, in a\n * signed-in session with a fresh step-up proof. HTTP 403,\n * ADMIN_KEY_ESCALATION_DENIED.\n *\n * @generated from enum value: AUTH_ADMIN_KEY_ESCALATION_DENIED = 68;\n */\n AUTH_ADMIN_KEY_ESCALATION_DENIED = 68,\n\n /**\n * The admin API key's change would give a key more than the admin key's own\n * scope allows: an IP allowlist entry outside the admin key's allowlist, or\n * on a sub-account key more actions or markets than the sub-account's\n * policy. HTTP 403, ADMIN_KEY_SCOPE_EXCEEDED.\n *\n * @generated from enum value: AUTH_ADMIN_KEY_SCOPE_EXCEEDED = 69;\n */\n AUTH_ADMIN_KEY_SCOPE_EXCEEDED = 69,\n\n /**\n * An admin API key can never reach this target: an assistant key, a key or\n * policy that allows a money-out action, a locked sub-account policy, or a\n * sub-account the main account does not own. HTTP 403,\n * ADMIN_KEY_FORBIDDEN_TARGET.\n *\n * @generated from enum value: AUTH_ADMIN_KEY_FORBIDDEN_TARGET = 70;\n */\n AUTH_ADMIN_KEY_FORBIDDEN_TARGET = 70,\n\n /**\n * An admin key's IP allowlist is empty, or has an entry broader than /24\n * (IPv4) or /48 (IPv6), or an IPv4-mapped IPv6 entry. HTTP 400,\n * ADMIN_KEY_ALLOWLIST_INVALID.\n *\n * @generated from enum value: AUTH_ADMIN_KEY_ALLOWLIST_INVALID = 71;\n */\n AUTH_ADMIN_KEY_ALLOWLIST_INVALID = 71,\n\n /**\n * An admin API key can never be allowed an action that moves value out of\n * the account or manages where it goes: EXTERNAL_WITHDRAW,\n * INTERNAL_TRANSFER, MANAGE_ADDRESS_BOOK or MANAGE_AUTO_WITHDRAW. HTTP 412,\n * ADMIN_KEY_ACTION_NOT_ALLOWED.\n *\n * @generated from enum value: AUTH_ADMIN_KEY_ACTION_NOT_ALLOWED = 72;\n */\n AUTH_ADMIN_KEY_ACTION_NOT_ALLOWED = 72,\n\n /**\n * The account already has the most connected apps it may have. Disconnect\n * an app before connecting another. FailedPrecondition.\n *\n * @generated from enum value: AUTH_CONNECTED_APP_LIMIT_REACHED = 73;\n */\n AUTH_CONNECTED_APP_LIMIT_REACHED = 73,\n}\n\n/**\n * Describes the enum auth.v1.AuthErrorCode.\n */\nexport const AuthErrorCodeSchema: GenEnum<AuthErrorCode> = /*@__PURE__*/\n enumDesc(file_auth_v1_auth, 1);\n\n/**\n * AuthService manages wallet login, explicit terms consent, and caller authentication context.\n *\n * @generated from service auth.v1.AuthService\n */\nexport const AuthService: GenService<{\n /**\n * Create a short-lived EIP-4361 wallet challenge.\n *\n * @generated from rpc auth.v1.AuthService.CreateWalletChallenge\n */\n createWalletChallenge: {\n methodKind: \"unary\";\n input: typeof CreateWalletChallengeRequestSchema;\n output: typeof CreateWalletChallengeResponseSchema;\n },\n /**\n * Verify a signed EIP-4361 message and issue an access token. Login and account creation\n * do not accept terms; explicit consent is recorded only by AcceptTerms.\n *\n * @generated from rpc auth.v1.AuthService.LoginWithWallet\n */\n loginWithWallet: {\n methodKind: \"unary\";\n input: typeof LoginWithWalletRequestSchema;\n output: typeof LoginWithWalletResponseSchema;\n },\n /**\n * Explicitly accept the terms that apply to the caller's root account.\n * Requires an interactive JWT session; API keys are not allowed. Login, trading,\n * reads, and use of existing resources remain available without acceptance.\n * Acceptance is required before creating a subaccount, API key, or deposit address.\n *\n * @generated from rpc auth.v1.AuthService.AcceptTerms\n */\n acceptTerms: {\n methodKind: \"unary\";\n input: typeof AcceptTermsRequestSchema;\n output: typeof AcceptTermsResponseSchema;\n },\n /**\n * Return the caller's current auth context.\n *\n * @generated from rpc auth.v1.AuthService.Me\n */\n me: {\n methodKind: \"unary\";\n input: typeof MeRequestSchema;\n output: typeof MeResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_auth, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,MAAa,oBACX,uBAAS,oxKAAoxK;CAAC;CAA2B;CAAkB;CAAgC;AAA0B,CAAC;;;;;AA4Cx4K,MAAa,qCACX,0BAAY,mBAAmB,CAAC;;;;;AA4BlC,MAAa,sCACX,0BAAY,mBAAmB,CAAC;;;;;AA8DlC,MAAa,+BACX,0BAAY,mBAAmB,CAAC;;;;;AAiDlC,MAAa,gCACX,0BAAY,mBAAmB,CAAC;;;;;AAelC,MAAa,kBACX,0BAAY,mBAAmB,CAAC;;;;;AAuElC,MAAa,mBACX,0BAAY,mBAAmB,CAAC;;;;;AA4ClC,MAAa,wBACX,0BAAY,mBAAmB,CAAC;;;;;AA0ClC,MAAa,wBACX,0BAAY,mBAAmB,CAAC;;;;;AAclC,MAAa,2BACX,0BAAY,mBAAmB,C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;;;;;;;CASA,cAAA,cAAA,2CAAA,MAAA;;;;;;;;CASA,cAAA,cAAA,sCAAA,MAAA;;;;;;;CAQA,cAAA,cAAA,6CAAA,MAAA;;;;;;;CAQA,cAAA,cAAA,yCAAA,MAAA;;;;;;;CAQA,cAAA,cAAA,0BAAA,MAAA;;;;;;;;;CAUA,cAAA,cAAA,kCAAA,MAAA;;;;;;;;CASA,cAAA,cAAA,sCAAA,MAAA;;;;;;;CAQA,cAAA,cAAA,6BAAA,MAAA;;;;;;;;;CAUA,cAAA,cAAA,sCAAA,MAAA;;;;;;;;;CAUA,cAAA,cAAA,mCAAA,MAAA;;;;;;;;;CAUA,cAAA,cAAA,qCAAA,MAAA;;;;;;;;CASA,cAAA,cAAA,sCAAA,MAAA;;;;;;;;;CAUA,cAAA,cAAA,uCAAA,MAAA;;;;;;;CAQA,cAAA,cAAA,sCAAA,MAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,sBACX,uBAAS,mBAAmB,CAAC;;;;;;AAO/B,MAAa,cA8CX,0BAAY,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"auth_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/auth_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/auth.proto (package auth.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { AccountScopeType } from \"./account_scope_pb.js\";\nimport { file_auth_v1_account_scope } from \"./account_scope_pb.js\";\nimport type { SessionInfo } from \"./mfa_pb.js\";\nimport { file_auth_v1_mfa } from \"./mfa_pb.js\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file auth/v1/auth.proto.\n */\nexport const file_auth_v1_auth: GenFile = /*@__PURE__*/\n fileDesc(\"ChJhdXRoL3YxL2F1dGgucHJvdG8SB2F1dGgudjEinAEKHENyZWF0ZVdhbGxldENoYWxsZW5nZVJlcXVlc3QSHwoVc21hcnRfYWNjb3VudF9hZGRyZXNzGAEgASgJQgASGAoOc2lnbmVyX2FkZHJlc3MYAiABKAlCABINCgN1cmkYAyABKAlCABIyCgdwdXJwb3NlGAQgASgOMh8uYXV0aC52MS5XYWxsZXRDaGFsbGVuZ2VQdXJwb3NlQgAiYAodQ3JlYXRlV2FsbGV0Q2hhbGxlbmdlUmVzcG9uc2USDwoHbWVzc2FnZRgBIAEoCRIuCgpleHBpcmVzX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCKgAQoWTG9naW5XaXRoV2FsbGV0UmVxdWVzdBIfChVzbWFydF9hY2NvdW50X2FkZHJlc3MYASABKAlCABITCglzaWduYXR1cmUYAyABKAlCABIUCgp1c2VyX2FnZW50GAQgASgJQgASDAoCaXAYBSABKAlCABIZCg93YWxsZXRfcHJvdmlkZXIYByABKAlCABIRCgdtZXNzYWdlGAggASgJQgAirAEKF0xvZ2luV2l0aFdhbGxldFJlc3BvbnNlEhQKDGFjY2Vzc190b2tlbhgBIAEoCRIuCgpleHBpcmVzX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBISCgphY2NvdW50X2lkGAogASgGEhAKCHVzZXJuYW1lGA0gASgJEiUKB3Nlc3Npb24YFCABKAsyFC5hdXRoLnYxLlNlc3Npb25JbmZvIgsKCU1lUmVxdWVzdCKHAgoKTWVSZXNwb25zZRISCgphY2NvdW50X2lkGAEgASgGEhkKCmFwaV9rZXlfaWQYCiABKAlCAEgAiAEBEhAKCHVzZXJuYW1lGAsgASgJEiIKGnJvb3Rfc21hcnRf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zZSIDkAICEi8KAk1lEhIuYXV0aC52MS5NZVJlcXVlc3QaEy5hdXRoLnYxLk1lUmVzcG9uc2UiABoAQjxaOmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vYXV0aC92MTthdXRodjFiBnByb3RvMw==\", [file_auth_v1_account_scope, file_auth_v1_mfa, file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * CreateWalletChallengeRequest requests a short-lived EIP-4361 message whose\n * exact UTF-8 bytes must be signed by the wallet.\n *\n * @generated from message auth.v1.CreateWalletChallengeRequest\n */\nexport type CreateWalletChallengeRequest = Message<\"auth.v1.CreateWalletChallengeRequest\"> & {\n /**\n * Smart-account EVM address being authenticated, formatted as 0x plus 40 hex characters.\n *\n * @generated from field: string smart_account_address = 1;\n */\n smartAccountAddress: string;\n\n /**\n * Address whose signature authorizes the challenge and that is written into\n * the EIP-4361 message. This must be an EOA that controls the target smart account.\n *\n * @generated from field: string signer_address = 2;\n */\n signerAddress: string;\n\n /**\n * Browser origin URI requesting the signature, including scheme and optional\n * port but no path, query, fragment, or user information.\n *\n * @generated from field: string uri = 3;\n */\n uri: string;\n\n /**\n * Operation for which the challenge may be consumed. Must be LOGIN.\n *\n * @generated from field: auth.v1.WalletChallengePurpose purpose = 4;\n */\n purpose: WalletChallengePurpose;\n};\n\n/**\n * Describes the message auth.v1.CreateWalletChallengeRequest.\n * Use `create(CreateWalletChallengeRequestSchema)` to create a new message.\n */\nexport const CreateWalletChallengeRequestSchema: GenMessage<CreateWalletChallengeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 0);\n\n/**\n * CreateWalletChallengeResponse contains the canonical EIP-4361 message.\n *\n * @generated from message auth.v1.CreateWalletChallengeResponse\n */\nexport type CreateWalletChallengeResponse = Message<\"auth.v1.CreateWalletChallengeResponse\"> & {\n /**\n * Canonical EIP-4361 message. Sign these UTF-8 bytes exactly once with\n * personal_sign; do not hash, alter, or reconstruct the message.\n *\n * @generated from field: string message = 1;\n */\n message: string;\n\n /**\n * Time in UTC when the challenge expires. Wallet challenges expire after 5 minutes.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.CreateWalletChallengeResponse.\n * Use `create(CreateWalletChallengeResponseSchema)` to create a new message.\n */\nexport const CreateWalletChallengeResponseSchema: GenMessage<CreateWalletChallengeResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 1);\n\n/**\n * LoginWithWalletRequest completes smart-account wallet login using the exact\n * server-issued EIP-4361 message and its signature.\n *\n * @generated from message auth.v1.LoginWithWalletRequest\n */\nexport type LoginWithWalletRequest = Message<\"auth.v1.LoginWithWalletRequest\"> & {\n /**\n * Smart-account EVM address bound into the challenge resource, formatted as\n * 0x plus 40 hex characters.\n *\n * @generated from field: string smart_account_address = 1;\n */\n smartAccountAddress: string;\n\n /**\n * EOA signature over message using EIP-191 personal_sign semantics. A valid\n * value is 65 bytes of hexadecimal with an optional 0x prefix. Requests are\n * limited to 8192 characters.\n *\n * @generated from field: string signature = 3;\n */\n signature: string;\n\n /**\n * Optional user-agent string for account security and audit displays. Maximum\n * length is 512 characters.\n *\n * @generated from field: string user_agent = 4;\n */\n userAgent: string;\n\n /**\n * Optional caller IP address for account security and audit displays. Maximum\n * length is 64 characters.\n *\n * @generated from field: string ip = 5;\n */\n ip: string;\n\n /**\n * Optional provider hint for the signing wallet. Maximum length is 32 characters.\n *\n * @generated from field: string wallet_provider = 7;\n */\n walletProvider: string;\n\n /**\n * Exact EIP-4361 message returned by CreateWalletChallenge. Maximum length is\n * 4096 UTF-8 bytes.\n *\n * @generated from field: string message = 8;\n */\n message: string;\n};\n\n/**\n * Describes the message auth.v1.LoginWithWalletRequest.\n * Use `create(LoginWithWalletRequestSchema)` to create a new message.\n */\nexport const LoginWithWalletRequestSchema: GenMessage<LoginWithWalletRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 2);\n\n/**\n * LoginWithWalletResponse returns a session token for the authenticated root\n * account.\n *\n * @generated from message auth.v1.LoginWithWalletResponse\n */\nexport type LoginWithWalletResponse = Message<\"auth.v1.LoginWithWalletResponse\"> & {\n /**\n * Bearer access token for authenticated API calls.\n *\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * Time in UTC when access_token expires.\n *\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp | undefined;\n\n /**\n * Root account the token is bound to (opaque ID).\n *\n * @generated from field: fixed64 account_id = 10;\n */\n accountId: bigint;\n\n /**\n * Optional current username for the root account (empty if not set).\n *\n * @generated from field: string username = 13;\n */\n username: string;\n\n /**\n * Session assurance details for the issued access token.\n *\n * @generated from field: auth.v1.SessionInfo session = 20;\n */\n session?: SessionInfo | undefined;\n};\n\n/**\n * Describes the message auth.v1.LoginWithWalletResponse.\n * Use `create(LoginWithWalletResponseSchema)` to create a new message.\n */\nexport const LoginWithWalletResponseSchema: GenMessage<LoginWithWalletResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 3);\n\n/**\n * MeRequest introspects the authenticated caller from the presented access\n * token or API key.\n *\n * @generated from message auth.v1.MeRequest\n */\nexport type MeRequest = Message<\"auth.v1.MeRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.MeRequest.\n * Use `create(MeRequestSchema)` to create a new message.\n */\nexport const MeRequestSchema: GenMessage<MeRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 4);\n\n/**\n * MeResponse describes the authenticated caller and current session context.\n *\n * @generated from message auth.v1.MeResponse\n */\nexport type MeResponse = Message<\"auth.v1.MeResponse\"> & {\n /**\n * Root account identifier (opaque ID).\n *\n * @generated from field: fixed64 account_id = 1;\n */\n accountId: bigint;\n\n /**\n * Stable public identifier of the API key that authenticated this request,\n * formatted as \"ak_\" followed by 32 lowercase hexadecimal characters.\n * Absent when the request was not authenticated with an API key.\n *\n * @generated from field: optional string api_key_id = 10;\n */\n apiKeyId?: string | undefined;\n\n /**\n * Optional current username for the root account (empty if not set).\n *\n * @generated from field: string username = 11;\n */\n username: string;\n\n /**\n * Root smart-account EVM address, formatted as 0x plus 40 hex characters.\n * Empty if not set.\n *\n * @generated from field: string root_smart_account_address = 12;\n */\n rootSmartAccountAddress: string;\n\n /**\n * Account scope of the API key that authenticated this request: SCOPE_ROOT\n * for a key of the main account, SCOPE_SUBACCOUNT for a key bound to one\n * sub-account. SCOPE_UNSPECIFIED when the request was not authenticated with\n * an API key.\n *\n * @generated from field: auth.v1.AccountScopeType api_key_scope = 13;\n */\n apiKeyScope: AccountScopeType;\n\n /**\n * Sub-account the API key is bound to (opaque ID). Present only when\n * api_key_scope is SCOPE_SUBACCOUNT. The key's private realtime channels\n * and account reads name this sub-account, for example\n * private:ledger:balances:<subaccount_id>.\n *\n * @generated from field: optional fixed64 subaccount_id = 14;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Session assurance details for the presented access token, if any.\n *\n * @generated from field: auth.v1.SessionInfo session = 20;\n */\n session?: SessionInfo | undefined;\n};\n\n/**\n * Describes the message auth.v1.MeResponse.\n * Use `create(MeResponseSchema)` to create a new message.\n */\nexport const MeResponseSchema: GenMessage<MeResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 5);\n\n/**\n * AuthErrorDetail describes an authentication or account-domain failure.\n *\n * @generated from message auth.v1.AuthErrorDetail\n */\nexport type AuthErrorDetail = Message<\"auth.v1.AuthErrorDetail\"> & {\n /**\n * Stable machine-readable auth error code.\n *\n * @generated from field: auth.v1.AuthErrorCode code = 1;\n */\n code: AuthErrorCode;\n\n /**\n * Human-readable error message.\n *\n * @generated from field: string message = 2;\n */\n message: string;\n\n /**\n * Time in UTC from which the same request may succeed. Set for\n * AUTH_SOCIAL_ACCOUNT_COOLDOWN and AUTH_SOCIAL_CHANGE_LIMIT_REACHED; empty\n * otherwise.\n *\n * @generated from field: google.protobuf.Timestamp retry_after = 3;\n */\n retryAfter?: Timestamp | undefined;\n\n /**\n * The server time and the window a signed request's timestamp must fall in.\n * Set for AUTH_TIMESTAMP_SKEW; empty otherwise.\n *\n * @generated from field: auth.v1.TimestampWindow timestamp_window = 4;\n */\n timestampWindow?: TimestampWindow | undefined;\n};\n\n/**\n * Describes the message auth.v1.AuthErrorDetail.\n * Use `create(AuthErrorDetailSchema)` to create a new message.\n */\nexport const AuthErrorDetailSchema: GenMessage<AuthErrorDetail> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 6);\n\n/**\n * TimestampWindow is the window in which the server accepts the timestamp of\n * a request signed with an API key: from server_time_ms minus recv_window_ms\n * to server_time_ms plus max_future_ms, both inclusive. Compare\n * server_time_ms with the clock that signed the request to correct its\n * offset.\n *\n * @generated from message auth.v1.TimestampWindow\n */\nexport type TimestampWindow = Message<\"auth.v1.TimestampWindow\"> & {\n /**\n * Server time when the request was refused, in milliseconds since the Unix\n * epoch (UTC).\n *\n * @generated from field: int64 server_time_ms = 1;\n */\n serverTimeMs: bigint;\n\n /**\n * Receive window the timestamp was checked against, in milliseconds: the\n * request's X-API-RECV-WINDOW, from 1 to 60000, or 5000 when the header is\n * omitted.\n *\n * @generated from field: uint32 recv_window_ms = 2;\n */\n recvWindowMs: number;\n\n /**\n * How far a timestamp may run ahead of the server time, in milliseconds:\n * 1000, whatever the receive window.\n *\n * @generated from field: uint32 max_future_ms = 3;\n */\n maxFutureMs: number;\n};\n\n/**\n * Describes the message auth.v1.TimestampWindow.\n * Use `create(TimestampWindowSchema)` to create a new message.\n */\nexport const TimestampWindowSchema: GenMessage<TimestampWindow> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 7);\n\n/**\n * AcceptTermsRequest records explicit consent to the terms that apply to the caller's root account.\n *\n * @generated from message auth.v1.AcceptTermsRequest\n */\nexport type AcceptTermsRequest = Message<\"auth.v1.AcceptTermsRequest\"> & {\n};\n\n/**\n * Describes the message auth.v1.AcceptTermsRequest.\n * Use `create(AcceptTermsRequestSchema)` to create a new message.\n */\nexport const AcceptTermsRequestSchema: GenMessage<AcceptTermsRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 8);\n\n/**\n * AcceptTermsResponse confirms acceptance. Repeated requests succeed and\n * preserve the first acceptance time.\n *\n * @generated from message auth.v1.AcceptTermsResponse\n */\nexport type AcceptTermsResponse = Message<\"auth.v1.AcceptTermsResponse\"> & {\n};\n\n/**\n * Describes the message auth.v1.AcceptTermsResponse.\n * Use `create(AcceptTermsResponseSchema)` to create a new message.\n */\nexport const AcceptTermsResponseSchema: GenMessage<AcceptTermsResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_auth, 9);\n\n/**\n * Purpose for a server-issued wallet challenge.\n *\n * @generated from enum auth.v1.WalletChallengePurpose\n */\nexport enum WalletChallengePurpose {\n /**\n * No wallet challenge purpose was specified.\n *\n * @generated from enum value: WALLET_PROOF_UNSPECIFIED = 0;\n */\n WALLET_PROOF_UNSPECIFIED = 0,\n\n /**\n * Authenticate the wallet and create a Polyester session.\n *\n * @generated from enum value: LOGIN = 1;\n */\n LOGIN = 1,\n}\n\n/**\n * Describes the enum auth.v1.WalletChallengePurpose.\n */\nexport const WalletChallengePurposeSchema: GenEnum<WalletChallengePurpose> = /*@__PURE__*/\n enumDesc(file_auth_v1_auth, 0);\n\n/**\n * High-level error codes for authentication and account-domain failures.\n *\n * @generated from enum auth.v1.AuthErrorCode\n */\nexport enum AuthErrorCode {\n /**\n * No auth error code specified.\n *\n * @generated from enum value: AUTH_UNSPECIFIED = 0;\n */\n AUTH_UNSPECIFIED = 0,\n\n /**\n * Username format or characters are invalid.\n *\n * @generated from enum value: AUTH_USERNAME_INVALID = 1;\n */\n AUTH_USERNAME_INVALID = 1,\n\n /**\n * Username is already used by another account.\n *\n * @generated from enum value: AUTH_USERNAME_TAKEN = 2;\n */\n AUTH_USERNAME_TAKEN = 2,\n\n /**\n * Username was changed too recently.\n *\n * @generated from enum value: AUTH_USERNAME_COOLDOWN = 3;\n */\n AUTH_USERNAME_COOLDOWN = 3,\n\n /**\n * Account is not currently eligible to claim or change a username.\n *\n * @generated from enum value: AUTH_USERNAME_FEATURE_LOCKED = 4;\n */\n AUTH_USERNAME_FEATURE_LOCKED = 4,\n\n /**\n * Username is reserved and cannot be claimed by this account.\n *\n * @generated from enum value: AUTH_USERNAME_RESERVED = 5;\n */\n AUTH_USERNAME_RESERVED = 5,\n\n /**\n * Request is malformed or missing required input.\n *\n * @generated from enum value: AUTH_INVALID_REQUEST = 6;\n */\n AUTH_INVALID_REQUEST = 6,\n\n /**\n * Authentication is required for this operation.\n *\n * @generated from enum value: AUTH_AUTHENTICATION_REQUIRED = 7;\n */\n AUTH_AUTHENTICATION_REQUIRED = 7,\n\n /**\n * Presented session type is not allowed for this operation.\n *\n * @generated from enum value: AUTH_SESSION_KIND_NOT_ALLOWED = 8;\n */\n AUTH_SESSION_KIND_NOT_ALLOWED = 8,\n\n /**\n * Wallet login failed because the nonce or signature could not be verified.\n *\n * @generated from enum value: AUTH_WALLET_LOGIN_FAILED = 9;\n */\n AUTH_WALLET_LOGIN_FAILED = 9,\n\n /**\n * Requested resource was not found.\n *\n * @generated from enum value: AUTH_RESOURCE_NOT_FOUND = 10;\n */\n AUTH_RESOURCE_NOT_FOUND = 10,\n\n /**\n * Caller does not have access to the requested sub-account.\n *\n * @generated from enum value: AUTH_SUBACCOUNT_ACCESS_DENIED = 11;\n */\n AUTH_SUBACCOUNT_ACCESS_DENIED = 11,\n\n /**\n * Caller does not have access to the requested API key, or the calling API\n * key's policy lacks the account permission the call needs, or the call needs\n * a key scoped to the main account. Those two permission refusals name the\n * permission in the message; an ownership refusal names none.\n *\n * @generated from enum value: AUTH_API_KEY_ACCESS_DENIED = 12;\n */\n AUTH_API_KEY_ACCESS_DENIED = 12,\n\n /**\n * Requested API key status transition is not allowed.\n *\n * @generated from enum value: AUTH_API_KEY_INVALID_STATUS_TRANSITION = 14;\n */\n AUTH_API_KEY_INVALID_STATUS_TRANSITION = 14,\n\n /**\n * Policy definition or binding is invalid.\n *\n * @generated from enum value: AUTH_POLICY_INVALID = 15;\n */\n AUTH_POLICY_INVALID = 15,\n\n /**\n * Smart-account address is already linked to another account.\n *\n * @generated from enum value: AUTH_SMART_ACCOUNT_ALREADY_LINKED = 16;\n */\n AUTH_SMART_ACCOUNT_ALREADY_LINKED = 16,\n\n /**\n * Caller does not have access to the requested invite.\n *\n * @generated from enum value: AUTH_INVITE_ACCESS_DENIED = 17;\n */\n AUTH_INVITE_ACCESS_DENIED = 17,\n\n /**\n * Invite cannot be used in its current state.\n *\n * @generated from enum value: AUTH_INVITE_INVALID_STATE = 18;\n */\n AUTH_INVITE_INVALID_STATE = 18,\n\n /**\n * MFA is not available for this account.\n *\n * @generated from enum value: AUTH_MFA_DISABLED = 19;\n */\n AUTH_MFA_DISABLED = 19,\n\n /**\n * Required MFA factor is not enrolled.\n *\n * @generated from enum value: AUTH_MFA_NOT_ENROLLED = 20;\n */\n AUTH_MFA_NOT_ENROLLED = 20,\n\n /**\n * MFA session is missing, expired, or invalid.\n *\n * @generated from enum value: AUTH_MFA_SESSION_INVALID = 21;\n */\n AUTH_MFA_SESSION_INVALID = 21,\n\n /**\n * MFA challenge was not found.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_NOT_FOUND = 22;\n */\n AUTH_MFA_CHALLENGE_NOT_FOUND = 22,\n\n /**\n * MFA challenge payload is invalid.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_INVALID = 23;\n */\n AUTH_MFA_CHALLENGE_INVALID = 23,\n\n /**\n * MFA challenge is locked after too many failed attempts.\n *\n * @generated from enum value: AUTH_MFA_CHALLENGE_LOCKED = 24;\n */\n AUTH_MFA_CHALLENGE_LOCKED = 24,\n\n /**\n * One-time password is invalid.\n *\n * @generated from enum value: AUTH_MFA_OTP_INVALID = 25;\n */\n AUTH_MFA_OTP_INVALID = 25,\n\n /**\n * Recovery code is invalid.\n *\n * @generated from enum value: AUTH_MFA_RECOVERY_INVALID = 26;\n */\n AUTH_MFA_RECOVERY_INVALID = 26,\n\n /**\n * Passkey verification is not available for this challenge.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_NOT_AVAILABLE = 27;\n */\n AUTH_MFA_PASSKEY_NOT_AVAILABLE = 27,\n\n /**\n * Passkey credential is invalid for this account or challenge.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_CREDENTIAL_INVALID = 28;\n */\n AUTH_MFA_PASSKEY_CREDENTIAL_INVALID = 28,\n\n /**\n * Passkey verification failed.\n *\n * @generated from enum value: AUTH_MFA_PASSKEY_VERIFY_FAILED = 29;\n */\n AUTH_MFA_PASSKEY_VERIFY_FAILED = 29,\n\n /**\n * MFA enrollment binding is invalid or expired.\n *\n * @generated from enum value: AUTH_MFA_ENROLLMENT_BINDING_INVALID = 30;\n */\n AUTH_MFA_ENROLLMENT_BINDING_INVALID = 30,\n\n /**\n * A fresh step-up proof is required for this protected operation.\n *\n * @generated from enum value: AUTH_STEP_UP_REQUIRED = 31;\n */\n AUTH_STEP_UP_REQUIRED = 31,\n\n /**\n * A requested step-up proof is unavailable.\n *\n * @generated from enum value: AUTH_STEP_UP_PROOF_UNAVAILABLE = 32;\n */\n AUTH_STEP_UP_PROOF_UNAVAILABLE = 32,\n\n /**\n * The step-up proof has already been claimed.\n *\n * @generated from enum value: AUTH_STEP_UP_ALREADY_CLAIMED = 33;\n */\n AUTH_STEP_UP_ALREADY_CLAIMED = 33,\n\n /**\n * The requested policy cannot be removed because it is still in use.\n *\n * @generated from enum value: AUTH_POLICY_IN_USE = 34;\n */\n AUTH_POLICY_IN_USE = 34,\n\n /**\n * The requested policy is locked against this mutation.\n *\n * @generated from enum value: AUTH_POLICY_LOCKED = 35;\n */\n AUTH_POLICY_LOCKED = 35,\n\n /**\n * The requested policy does not belong to the target account scope.\n *\n * @generated from enum value: AUTH_POLICY_SCOPE_MISMATCH = 36;\n */\n AUTH_POLICY_SCOPE_MISMATCH = 36,\n\n /**\n * The resource changed after the caller read it.\n *\n * @generated from enum value: AUTH_REVISION_CONFLICT = 37;\n */\n AUTH_REVISION_CONFLICT = 37,\n\n /**\n * A recently MFA-elevated interactive session is required.\n *\n * @generated from enum value: AUTH_MFA_ELEVATION_REQUIRED = 38;\n */\n AUTH_MFA_ELEVATION_REQUIRED = 38,\n\n /**\n * At least one active MFA factor must remain enrolled.\n *\n * @generated from enum value: AUTH_MFA_LAST_FACTOR_REQUIRED = 39;\n */\n AUTH_MFA_LAST_FACTOR_REQUIRED = 39,\n\n /**\n * An unexpected server error stopped the request from completing.\n *\n * @generated from enum value: AUTH_INTERNAL_ERROR = 40;\n */\n AUTH_INTERNAL_ERROR = 40,\n\n /**\n * The caller has not accepted the terms required for this action.\n *\n * @generated from enum value: AUTH_TERMS_NOT_ACCEPTED = 41;\n */\n AUTH_TERMS_NOT_ACCEPTED = 41,\n\n /**\n * Social verification challenge expired. Start a new verification, then mark it ready again.\n *\n * @generated from enum value: AUTH_SOCIAL_VERIFICATION_EXPIRED = 42;\n */\n AUTH_SOCIAL_VERIFICATION_EXPIRED = 42,\n\n /**\n * Social verification cannot accept this request in its current state.\n *\n * @generated from enum value: AUTH_SOCIAL_VERIFICATION_INVALID_STATE = 43;\n */\n AUTH_SOCIAL_VERIFICATION_INVALID_STATE = 43,\n\n /**\n * Sub-account authorization is expired, replaced, consumed, or has an invalid signature.\n * Temporary verification failures return Unavailable; retry the same signed challenge.\n *\n * @generated from enum value: AUTH_SUBACCOUNT_CHALLENGE_INVALID = 44;\n */\n AUTH_SUBACCOUNT_CHALLENGE_INVALID = 44,\n\n /**\n * Social account is already linked to another Polyester account.\n *\n * @generated from enum value: AUTH_SOCIAL_ACCOUNT_ALREADY_LINKED = 45;\n */\n AUTH_SOCIAL_ACCOUNT_ALREADY_LINKED = 45,\n\n /**\n * The request could not be completed right now and changed nothing. Retry the same request.\n * A refused WebSocket login needs a new signed login with a fresh nonce.\n *\n * @generated from enum value: AUTH_TEMPORARILY_UNAVAILABLE = 46;\n */\n AUTH_TEMPORARILY_UNAVAILABLE = 46,\n\n /**\n * The account owns this sub-account. An owner cannot be invited to it, and member role\n * changes and member removal do not apply to the owner.\n *\n * @generated from enum value: AUTH_SUBACCOUNT_OWNER_ROLE_LOCKED = 47;\n */\n AUTH_SUBACCOUNT_OWNER_ROLE_LOCKED = 47,\n\n /**\n * The API key request signature does not verify against the request, or the key is unknown.\n * The REST problem code is SIGNATURE_INVALID.\n *\n * @generated from enum value: AUTH_SIGNATURE_INVALID = 48;\n */\n AUTH_SIGNATURE_INVALID = 48,\n\n /**\n * The API key request timestamp is malformed, more than 1 second ahead of the server\n * clock, or older than the request's receive window (X-API-RECV-WINDOW, 5 seconds when\n * omitted) when the request arrived. The request was not processed. The detail's\n * timestamp_window carries the server time and the window the timestamp was checked\n * against; the REST problem carries the same as its timestampWindow member. Sync the\n * clock, for example with the server time from GET /v1/time or this refusal, then sign\n * the request again with a fresh timestamp. The REST problem code is TIMESTAMP_SKEW.\n *\n * @generated from enum value: AUTH_TIMESTAMP_SKEW = 49;\n */\n AUTH_TIMESTAMP_SKEW = 49,\n\n /**\n * The API key request lacks its timestamp or signature header, or a signed\n * WebSocket login lacks a valid X-API-NONCE. The REST problem code is\n * MISSING_HEADERS.\n *\n * @generated from enum value: AUTH_MISSING_HEADERS = 50;\n */\n AUTH_MISSING_HEADERS = 50,\n\n /**\n * The API key has expired. The REST problem code is KEY_EXPIRED.\n *\n * @generated from enum value: AUTH_KEY_EXPIRED = 51;\n */\n AUTH_KEY_EXPIRED = 51,\n\n /**\n * The API key is disabled or revoked. The REST problem code is KEY_DISABLED.\n *\n * @generated from enum value: AUTH_KEY_DISABLED = 52;\n */\n AUTH_KEY_DISABLED = 52,\n\n /**\n * The API key's IP allowlist, an admin key's included, does not include the request's\n * source address. ConnectRPC answers unauthenticated with this code in the\n * AuthErrorDetail; the REST problem code is the short IP_NOT_ALLOWED, with HTTP 401.\n *\n * @generated from enum value: AUTH_IP_NOT_ALLOWED = 53;\n */\n AUTH_IP_NOT_ALLOWED = 53,\n\n /**\n * This API does not accept API keys; authenticate with a session token. The REST problem\n * code is API_KEY_NOT_ACCEPTED.\n *\n * @generated from enum value: AUTH_API_KEY_NOT_ACCEPTED = 54;\n */\n AUTH_API_KEY_NOT_ACCEPTED = 54,\n\n /**\n * The wallet that signed this login is already linked to another account, so the\n * submitted account address cannot be registered with it. Wallets are not moved between\n * accounts. Log in with the account address this wallet already uses.\n *\n * @generated from enum value: AUTH_WALLET_ALREADY_LINKED = 55;\n */\n AUTH_WALLET_ALREADY_LINKED = 55,\n\n /**\n * The API key request's X-API-RECV-WINDOW header is not a single whole number of\n * milliseconds from 1 to 60000. The request was not processed. The REST problem code is\n * RECV_WINDOW_INVALID.\n *\n * @generated from enum value: AUTH_RECV_WINDOW_INVALID = 56;\n */\n AUTH_RECV_WINDOW_INVALID = 56,\n\n /**\n * Too many of this API key's signed requests are still within their receive windows,\n * or too many of every key's, for another to be accepted. The request was not\n * processed. Retry shortly; a shorter receive window lets requests make room sooner.\n * ConnectRPC answers resource_exhausted. The REST problem code is\n * REPLAY_CAPACITY_EXHAUSTED, with HTTP 429.\n *\n * @generated from enum value: AUTH_REPLAY_CAPACITY_EXHAUSTED = 57;\n */\n AUTH_REPLAY_CAPACITY_EXHAUSTED = 57,\n\n /**\n * A non-empty request body identifier differs from the REST path identifier.\n * The request is rejected with HTTP 400 before any action is performed.\n *\n * @generated from enum value: AUTH_PATH_BODY_ID_MISMATCH = 58;\n */\n AUTH_PATH_BODY_ID_MISMATCH = 58,\n\n /**\n * An assistant API key can never be allowed an action that moves value out of the\n * account or manages where it goes: EXTERNAL_WITHDRAW, INTERNAL_TRANSFER,\n * MANAGE_ADDRESS_BOOK or MANAGE_AUTO_WITHDRAW.\n *\n * @generated from enum value: AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED = 59;\n */\n AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED = 59,\n\n /**\n * A new assistant key's registration proof is missing or does not verify\n * for its account, public key and registration deadline. The REST problem\n * code is AUTH_ASSISTANT_KEY_PROOF_INVALID.\n *\n * @generated from enum value: AUTH_ASSISTANT_KEY_PROOF_INVALID = 60;\n */\n AUTH_ASSISTANT_KEY_PROOF_INVALID = 60,\n\n /**\n * A new assistant key's registration deadline has passed; prepare the key\n * again. The REST problem code is AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED.\n *\n * @generated from enum value: AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED = 61;\n */\n AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED = 61,\n\n /**\n * A new assistant key's registration deadline is more than 15 minutes\n * ahead. The REST problem code is AUTH_ASSISTANT_KEY_DEADLINE_TOO_FAR.\n *\n * @generated from enum value: AUTH_ASSISTANT_KEY_DEADLINE_TOO_FAR = 62;\n */\n AUTH_ASSISTANT_KEY_DEADLINE_TOO_FAR = 62,\n\n /**\n * The signed WebSocket login nonce has already been used. Create a new login\n * with a fresh random nonce and signature. HTTP 401, REPLAY_DETECTED.\n *\n * @generated from enum value: AUTH_REPLAY_DETECTED = 63;\n */\n AUTH_REPLAY_DETECTED = 63,\n\n /**\n * The X/Twitter or Discord account was unlinked from another Polyester\n * account less than 30 days ago, and can be linked to a different account\n * only after that. The account that unlinked it may link it again at once.\n * retry_after says when. HTTP 412, AUTH_SOCIAL_ACCOUNT_COOLDOWN.\n *\n * @generated from enum value: AUTH_SOCIAL_ACCOUNT_COOLDOWN = 64;\n */\n AUTH_SOCIAL_ACCOUNT_COOLDOWN = 64,\n\n /**\n * The account already changed or unlinked its X/Twitter or Discord account\n * less than 30 days ago: one change per provider every 30 days. retry_after\n * says when the next one is allowed. HTTP 412, AUTH_SOCIAL_CHANGE_LIMIT_REACHED.\n *\n * @generated from enum value: AUTH_SOCIAL_CHANGE_LIMIT_REACHED = 65;\n */\n AUTH_SOCIAL_CHANGE_LIMIT_REACHED = 65,\n\n /**\n * Only an admin API key may call this with an API key; the key that signed\n * the request is not one. HTTP 403, AUTH_ADMIN_KEY_REQUIRED.\n *\n * @generated from enum value: AUTH_ADMIN_KEY_REQUIRED = 67;\n */\n AUTH_ADMIN_KEY_REQUIRED = 67,\n\n /**\n * The request would create, promote or change an admin key, or attach an\n * admin permission, by API key. Only the main account's owner may, in a\n * signed-in session with a fresh step-up proof. HTTP 403,\n * AUTH_ADMIN_KEY_ESCALATION_DENIED.\n *\n * @generated from enum value: AUTH_ADMIN_KEY_ESCALATION_DENIED = 68;\n */\n AUTH_ADMIN_KEY_ESCALATION_DENIED = 68,\n\n /**\n * The admin API key's change would give a key more than the admin key's own\n * scope allows: an IP allowlist entry outside the admin key's allowlist, or\n * on a sub-account key more actions or markets than the sub-account's\n * policy. HTTP 403, AUTH_ADMIN_KEY_SCOPE_EXCEEDED.\n *\n * @generated from enum value: AUTH_ADMIN_KEY_SCOPE_EXCEEDED = 69;\n */\n AUTH_ADMIN_KEY_SCOPE_EXCEEDED = 69,\n\n /**\n * An admin API key can never reach this target: an assistant key, a key or\n * policy that allows a money-out action, a locked sub-account policy, or a\n * sub-account the main account does not own. HTTP 403,\n * AUTH_ADMIN_KEY_FORBIDDEN_TARGET.\n *\n * @generated from enum value: AUTH_ADMIN_KEY_FORBIDDEN_TARGET = 70;\n */\n AUTH_ADMIN_KEY_FORBIDDEN_TARGET = 70,\n\n /**\n * An admin key's IP allowlist is empty, or has an entry broader than /24\n * (IPv4) or /48 (IPv6), or an IPv4-mapped IPv6 entry. HTTP 400,\n * AUTH_ADMIN_KEY_ALLOWLIST_INVALID.\n *\n * @generated from enum value: AUTH_ADMIN_KEY_ALLOWLIST_INVALID = 71;\n */\n AUTH_ADMIN_KEY_ALLOWLIST_INVALID = 71,\n\n /**\n * An admin API key can never be allowed an action that moves value out of\n * the account or manages where it goes: EXTERNAL_WITHDRAW,\n * INTERNAL_TRANSFER, MANAGE_ADDRESS_BOOK or MANAGE_AUTO_WITHDRAW. HTTP 412,\n * AUTH_ADMIN_KEY_ACTION_NOT_ALLOWED.\n *\n * @generated from enum value: AUTH_ADMIN_KEY_ACTION_NOT_ALLOWED = 72;\n */\n AUTH_ADMIN_KEY_ACTION_NOT_ALLOWED = 72,\n\n /**\n * The account already has the most connected apps it may have. Disconnect\n * an app before connecting another. FailedPrecondition.\n *\n * @generated from enum value: AUTH_CONNECTED_APP_LIMIT_REACHED = 73;\n */\n AUTH_CONNECTED_APP_LIMIT_REACHED = 73,\n}\n\n/**\n * Describes the enum auth.v1.AuthErrorCode.\n */\nexport const AuthErrorCodeSchema: GenEnum<AuthErrorCode> = /*@__PURE__*/\n enumDesc(file_auth_v1_auth, 1);\n\n/**\n * AuthService manages wallet login, explicit terms consent, and caller authentication context.\n *\n * @generated from service auth.v1.AuthService\n */\nexport const AuthService: GenService<{\n /**\n * Create a short-lived EIP-4361 wallet challenge.\n *\n * @generated from rpc auth.v1.AuthService.CreateWalletChallenge\n */\n createWalletChallenge: {\n methodKind: \"unary\";\n input: typeof CreateWalletChallengeRequestSchema;\n output: typeof CreateWalletChallengeResponseSchema;\n },\n /**\n * Verify a signed EIP-4361 message and issue an access token. Login and account creation\n * do not accept terms; explicit consent is recorded only by AcceptTerms.\n *\n * @generated from rpc auth.v1.AuthService.LoginWithWallet\n */\n loginWithWallet: {\n methodKind: \"unary\";\n input: typeof LoginWithWalletRequestSchema;\n output: typeof LoginWithWalletResponseSchema;\n },\n /**\n * Explicitly accept the terms that apply to the caller's root account.\n * Requires an interactive JWT session; API keys are not allowed. Login, trading,\n * reads, and use of existing resources remain available without acceptance.\n * Acceptance is required before creating a subaccount, API key, or deposit address.\n *\n * @generated from rpc auth.v1.AuthService.AcceptTerms\n */\n acceptTerms: {\n methodKind: \"unary\";\n input: typeof AcceptTermsRequestSchema;\n output: typeof AcceptTermsResponseSchema;\n },\n /**\n * Return the caller's current auth context.\n *\n * @generated from rpc auth.v1.AuthService.Me\n */\n me: {\n methodKind: \"unary\";\n input: typeof MeRequestSchema;\n output: typeof MeResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_auth, 0);\n\n"],"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
|
-
import { Message } from "@bufbuild/protobuf";
|
|
2
1
|
import { 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 connected_apps_pb_d_exports {
|
|
5
|
-
export {
|
|
5
|
+
export { AppConnectionRequest, AppConnectionRequestSchema, ApproveAppConnectionRequestRequest, ApproveAppConnectionRequestRequestSchema, ApproveAppConnectionRequestResponse, ApproveAppConnectionRequestResponseSchema, ConnectedApp, ConnectedAppClient, ConnectedAppClientSchema, ConnectedAppSchema, ConnectedAppService, DenyAppConnectionRequestRequest, DenyAppConnectionRequestRequestSchema, DenyAppConnectionRequestResponse, DenyAppConnectionRequestResponseSchema, GetAppConnectionRequestRequest, GetAppConnectionRequestRequestSchema, GetAppConnectionRequestResponse, GetAppConnectionRequestResponseSchema, ListConnectedAppsRequest, ListConnectedAppsRequestSchema, ListConnectedAppsResponse, ListConnectedAppsResponseSchema, RevokeConnectedAppRequest, RevokeConnectedAppRequestSchema, RevokeConnectedAppResponse, RevokeConnectedAppResponseSchema, file_auth_v1_connected_apps };
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file auth/v1/connected_apps.proto.
|
|
@@ -36,9 +36,9 @@ declare const ConnectedAppClientSchema: GenMessage<ConnectedAppClient>;
|
|
|
36
36
|
/**
|
|
37
37
|
* A pending request from an app to connect to the account.
|
|
38
38
|
*
|
|
39
|
-
* @generated from message auth.v1.
|
|
39
|
+
* @generated from message auth.v1.AppConnectionRequest
|
|
40
40
|
*/
|
|
41
|
-
type
|
|
41
|
+
type AppConnectionRequest = Message<"auth.v1.AppConnectionRequest"> & {
|
|
42
42
|
/**
|
|
43
43
|
* The app that asks.
|
|
44
44
|
*
|
|
@@ -74,10 +74,10 @@ type AppAuthorization = Message<"auth.v1.AppAuthorization"> & {
|
|
|
74
74
|
expiresAt?: Timestamp | undefined;
|
|
75
75
|
};
|
|
76
76
|
/**
|
|
77
|
-
* Describes the message auth.v1.
|
|
78
|
-
* Use `create(
|
|
77
|
+
* Describes the message auth.v1.AppConnectionRequest.
|
|
78
|
+
* Use `create(AppConnectionRequestSchema)` to create a new message.
|
|
79
79
|
*/
|
|
80
|
-
declare const
|
|
80
|
+
declare const AppConnectionRequestSchema: GenMessage<AppConnectionRequest>;
|
|
81
81
|
/**
|
|
82
82
|
* An app connected to the account.
|
|
83
83
|
*
|
|
@@ -137,9 +137,9 @@ declare const ConnectedAppSchema: GenMessage<ConnectedApp>;
|
|
|
137
137
|
/**
|
|
138
138
|
* Request to read a pending app connection request for the consent page.
|
|
139
139
|
*
|
|
140
|
-
* @generated from message auth.v1.
|
|
140
|
+
* @generated from message auth.v1.GetAppConnectionRequestRequest
|
|
141
141
|
*/
|
|
142
|
-
type
|
|
142
|
+
type GetAppConnectionRequestRequest = Message<"auth.v1.GetAppConnectionRequestRequest"> & {
|
|
143
143
|
/**
|
|
144
144
|
* Request ID the authorization endpoint gave the consent page in its
|
|
145
145
|
* `request` query parameter.
|
|
@@ -149,34 +149,34 @@ type GetAppAuthorizationRequest = Message<"auth.v1.GetAppAuthorizationRequest">
|
|
|
149
149
|
requestId: string;
|
|
150
150
|
};
|
|
151
151
|
/**
|
|
152
|
-
* Describes the message auth.v1.
|
|
153
|
-
* Use `create(
|
|
152
|
+
* Describes the message auth.v1.GetAppConnectionRequestRequest.
|
|
153
|
+
* Use `create(GetAppConnectionRequestRequestSchema)` to create a new message.
|
|
154
154
|
*/
|
|
155
|
-
declare const
|
|
155
|
+
declare const GetAppConnectionRequestRequestSchema: GenMessage<GetAppConnectionRequestRequest>;
|
|
156
156
|
/**
|
|
157
157
|
* The pending app connection request.
|
|
158
158
|
*
|
|
159
|
-
* @generated from message auth.v1.
|
|
159
|
+
* @generated from message auth.v1.GetAppConnectionRequestResponse
|
|
160
160
|
*/
|
|
161
|
-
type
|
|
161
|
+
type GetAppConnectionRequestResponse = Message<"auth.v1.GetAppConnectionRequestResponse"> & {
|
|
162
162
|
/**
|
|
163
163
|
* The request.
|
|
164
164
|
*
|
|
165
|
-
* @generated from field: auth.v1.
|
|
165
|
+
* @generated from field: auth.v1.AppConnectionRequest connection_request = 1;
|
|
166
166
|
*/
|
|
167
|
-
|
|
167
|
+
connectionRequest?: AppConnectionRequest | undefined;
|
|
168
168
|
};
|
|
169
169
|
/**
|
|
170
|
-
* Describes the message auth.v1.
|
|
171
|
-
* Use `create(
|
|
170
|
+
* Describes the message auth.v1.GetAppConnectionRequestResponse.
|
|
171
|
+
* Use `create(GetAppConnectionRequestResponseSchema)` to create a new message.
|
|
172
172
|
*/
|
|
173
|
-
declare const
|
|
173
|
+
declare const GetAppConnectionRequestResponseSchema: GenMessage<GetAppConnectionRequestResponse>;
|
|
174
174
|
/**
|
|
175
175
|
* Request to approve a pending app connection request.
|
|
176
176
|
*
|
|
177
|
-
* @generated from message auth.v1.
|
|
177
|
+
* @generated from message auth.v1.ApproveAppConnectionRequestRequest
|
|
178
178
|
*/
|
|
179
|
-
type
|
|
179
|
+
type ApproveAppConnectionRequestRequest = Message<"auth.v1.ApproveAppConnectionRequestRequest"> & {
|
|
180
180
|
/**
|
|
181
181
|
* Request ID the authorization endpoint gave the consent page.
|
|
182
182
|
*
|
|
@@ -185,16 +185,16 @@ type ApproveAppAuthorizationRequest = Message<"auth.v1.ApproveAppAuthorizationRe
|
|
|
185
185
|
requestId: string;
|
|
186
186
|
};
|
|
187
187
|
/**
|
|
188
|
-
* Describes the message auth.v1.
|
|
189
|
-
* Use `create(
|
|
188
|
+
* Describes the message auth.v1.ApproveAppConnectionRequestRequest.
|
|
189
|
+
* Use `create(ApproveAppConnectionRequestRequestSchema)` to create a new message.
|
|
190
190
|
*/
|
|
191
|
-
declare const
|
|
191
|
+
declare const ApproveAppConnectionRequestRequestSchema: GenMessage<ApproveAppConnectionRequestRequest>;
|
|
192
192
|
/**
|
|
193
193
|
* The approved request's answer to the app.
|
|
194
194
|
*
|
|
195
|
-
* @generated from message auth.v1.
|
|
195
|
+
* @generated from message auth.v1.ApproveAppConnectionRequestResponse
|
|
196
196
|
*/
|
|
197
|
-
type
|
|
197
|
+
type ApproveAppConnectionRequestResponse = Message<"auth.v1.ApproveAppConnectionRequestResponse"> & {
|
|
198
198
|
/**
|
|
199
199
|
* URL to send the browser to: the app's redirect URL carrying a one-time
|
|
200
200
|
* authorization code. It is valid for 60 seconds.
|
|
@@ -204,16 +204,16 @@ type ApproveAppAuthorizationResponse = Message<"auth.v1.ApproveAppAuthorizationR
|
|
|
204
204
|
redirectUrl: string;
|
|
205
205
|
};
|
|
206
206
|
/**
|
|
207
|
-
* Describes the message auth.v1.
|
|
208
|
-
* Use `create(
|
|
207
|
+
* Describes the message auth.v1.ApproveAppConnectionRequestResponse.
|
|
208
|
+
* Use `create(ApproveAppConnectionRequestResponseSchema)` to create a new message.
|
|
209
209
|
*/
|
|
210
|
-
declare const
|
|
210
|
+
declare const ApproveAppConnectionRequestResponseSchema: GenMessage<ApproveAppConnectionRequestResponse>;
|
|
211
211
|
/**
|
|
212
212
|
* Request to deny a pending app connection request.
|
|
213
213
|
*
|
|
214
|
-
* @generated from message auth.v1.
|
|
214
|
+
* @generated from message auth.v1.DenyAppConnectionRequestRequest
|
|
215
215
|
*/
|
|
216
|
-
type
|
|
216
|
+
type DenyAppConnectionRequestRequest = Message<"auth.v1.DenyAppConnectionRequestRequest"> & {
|
|
217
217
|
/**
|
|
218
218
|
* Request ID the authorization endpoint gave the consent page.
|
|
219
219
|
*
|
|
@@ -222,16 +222,16 @@ type DenyAppAuthorizationRequest = Message<"auth.v1.DenyAppAuthorizationRequest"
|
|
|
222
222
|
requestId: string;
|
|
223
223
|
};
|
|
224
224
|
/**
|
|
225
|
-
* Describes the message auth.v1.
|
|
226
|
-
* Use `create(
|
|
225
|
+
* Describes the message auth.v1.DenyAppConnectionRequestRequest.
|
|
226
|
+
* Use `create(DenyAppConnectionRequestRequestSchema)` to create a new message.
|
|
227
227
|
*/
|
|
228
|
-
declare const
|
|
228
|
+
declare const DenyAppConnectionRequestRequestSchema: GenMessage<DenyAppConnectionRequestRequest>;
|
|
229
229
|
/**
|
|
230
230
|
* The denied request's answer to the app.
|
|
231
231
|
*
|
|
232
|
-
* @generated from message auth.v1.
|
|
232
|
+
* @generated from message auth.v1.DenyAppConnectionRequestResponse
|
|
233
233
|
*/
|
|
234
|
-
type
|
|
234
|
+
type DenyAppConnectionRequestResponse = Message<"auth.v1.DenyAppConnectionRequestResponse"> & {
|
|
235
235
|
/**
|
|
236
236
|
* URL to send the browser to: the app's redirect URL carrying the
|
|
237
237
|
* `access_denied` error.
|
|
@@ -241,10 +241,10 @@ type DenyAppAuthorizationResponse = Message<"auth.v1.DenyAppAuthorizationRespons
|
|
|
241
241
|
redirectUrl: string;
|
|
242
242
|
};
|
|
243
243
|
/**
|
|
244
|
-
* Describes the message auth.v1.
|
|
245
|
-
* Use `create(
|
|
244
|
+
* Describes the message auth.v1.DenyAppConnectionRequestResponse.
|
|
245
|
+
* Use `create(DenyAppConnectionRequestResponseSchema)` to create a new message.
|
|
246
246
|
*/
|
|
247
|
-
declare const
|
|
247
|
+
declare const DenyAppConnectionRequestResponseSchema: GenMessage<DenyAppConnectionRequestResponse>;
|
|
248
248
|
/**
|
|
249
249
|
* Request to list the apps connected to the account.
|
|
250
250
|
*
|
|
@@ -305,13 +305,14 @@ type RevokeConnectedAppResponse = Message<"auth.v1.RevokeConnectedAppResponse">
|
|
|
305
305
|
*/
|
|
306
306
|
declare const RevokeConnectedAppResponseSchema: GenMessage<RevokeConnectedAppResponse>;
|
|
307
307
|
/**
|
|
308
|
-
* ConnectedAppService connects outside apps, such as an AI assistant,
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
* website does not
|
|
308
|
+
* ConnectedAppService connects outside apps, such as an AI assistant, a
|
|
309
|
+
* spreadsheet, a portfolio tracker or another tool, to the account with OAuth
|
|
310
|
+
* ("Sign in with Polyester"), and lists and disconnects them. A connected app
|
|
311
|
+
* uses the account as the signed-in website does, for the scopes the account
|
|
312
|
+
* granted; it never moves money out of the account and never changes its
|
|
313
|
+
* security settings. A connection lasts until the account or the app
|
|
314
|
+
* disconnects it, or until it expires; signing out of the website does not
|
|
315
|
+
* end it.
|
|
315
316
|
*
|
|
316
317
|
* @generated from service auth.v1.ConnectedAppService
|
|
317
318
|
*/
|
|
@@ -320,12 +321,12 @@ declare const ConnectedAppService: GenService<{
|
|
|
320
321
|
* Read a pending app connection request, to show the consent page. An
|
|
321
322
|
* unknown, expired or already answered request is NotFound.
|
|
322
323
|
*
|
|
323
|
-
* @generated from rpc auth.v1.ConnectedAppService.
|
|
324
|
+
* @generated from rpc auth.v1.ConnectedAppService.GetAppConnectionRequest
|
|
324
325
|
*/
|
|
325
|
-
|
|
326
|
+
getAppConnectionRequest: {
|
|
326
327
|
methodKind: "unary";
|
|
327
|
-
input: typeof
|
|
328
|
-
output: typeof
|
|
328
|
+
input: typeof GetAppConnectionRequestRequestSchema;
|
|
329
|
+
output: typeof GetAppConnectionRequestResponseSchema;
|
|
329
330
|
};
|
|
330
331
|
/**
|
|
331
332
|
* Approve a pending app connection request. The account must have MFA
|
|
@@ -335,24 +336,24 @@ declare const ConnectedAppService: GenService<{
|
|
|
335
336
|
* expired or already answered request is NotFound; an account with 20
|
|
336
337
|
* connected apps is FailedPrecondition with AUTH_CONNECTED_APP_LIMIT_REACHED.
|
|
337
338
|
*
|
|
338
|
-
* @generated from rpc auth.v1.ConnectedAppService.
|
|
339
|
+
* @generated from rpc auth.v1.ConnectedAppService.ApproveAppConnectionRequest
|
|
339
340
|
*/
|
|
340
|
-
|
|
341
|
+
approveAppConnectionRequest: {
|
|
341
342
|
methodKind: "unary";
|
|
342
|
-
input: typeof
|
|
343
|
-
output: typeof
|
|
343
|
+
input: typeof ApproveAppConnectionRequestRequestSchema;
|
|
344
|
+
output: typeof ApproveAppConnectionRequestResponseSchema;
|
|
344
345
|
};
|
|
345
346
|
/**
|
|
346
347
|
* Deny a pending app connection request. The app receives the
|
|
347
348
|
* `access_denied` error through the returned redirect URL. An unknown,
|
|
348
349
|
* expired or already answered request is NotFound.
|
|
349
350
|
*
|
|
350
|
-
* @generated from rpc auth.v1.ConnectedAppService.
|
|
351
|
+
* @generated from rpc auth.v1.ConnectedAppService.DenyAppConnectionRequest
|
|
351
352
|
*/
|
|
352
|
-
|
|
353
|
+
denyAppConnectionRequest: {
|
|
353
354
|
methodKind: "unary";
|
|
354
|
-
input: typeof
|
|
355
|
-
output: typeof
|
|
355
|
+
input: typeof DenyAppConnectionRequestRequestSchema;
|
|
356
|
+
output: typeof DenyAppConnectionRequestResponseSchema;
|
|
356
357
|
};
|
|
357
358
|
/**
|
|
358
359
|
* List the apps connected to the account.
|
|
@@ -378,5 +379,5 @@ declare const ConnectedAppService: GenService<{
|
|
|
378
379
|
};
|
|
379
380
|
}>;
|
|
380
381
|
//#endregion
|
|
381
|
-
export {
|
|
382
|
+
export { AppConnectionRequest, AppConnectionRequestSchema, ApproveAppConnectionRequestRequest, ApproveAppConnectionRequestRequestSchema, ApproveAppConnectionRequestResponse, ApproveAppConnectionRequestResponseSchema, ConnectedApp, ConnectedAppClient, ConnectedAppClientSchema, ConnectedAppSchema, ConnectedAppService, DenyAppConnectionRequestRequest, DenyAppConnectionRequestRequestSchema, DenyAppConnectionRequestResponse, DenyAppConnectionRequestResponseSchema, GetAppConnectionRequestRequest, GetAppConnectionRequestRequestSchema, GetAppConnectionRequestResponse, GetAppConnectionRequestResponseSchema, ListConnectedAppsRequest, ListConnectedAppsRequestSchema, ListConnectedAppsResponse, ListConnectedAppsResponseSchema, RevokeConnectedAppRequest, RevokeConnectedAppRequestSchema, RevokeConnectedAppResponse, RevokeConnectedAppResponseSchema, connected_apps_pb_d_exports, file_auth_v1_connected_apps };
|
|
382
383
|
//# sourceMappingURL=connected_apps_pb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connected_apps_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/connected_apps_pb.ts"],"mappings":";;;;;;;;;cAca,6BAA6B;;;;;;;KAS9B,qBAAqB;;;;;;EAM/B;;;;;;EAOA;;;;;;cAOW,0BAA0B,WAAW;;;;;;KAQtC,
|
|
1
|
+
{"version":3,"file":"connected_apps_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/connected_apps_pb.ts"],"mappings":";;;;;;;;;cAca,6BAA6B;;;;;;;KAS9B,qBAAqB;;;;;;EAM/B;;;;;;EAOA;;;;;;cAOW,0BAA0B,WAAW;;;;;;KAQtC,uBAAuB;;;;;;EAMjC,SAAS;;;;;;;;;EAUT;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA,YAAY;;;;;;cAOD,4BAA4B,WAAW;;;;;;KAQxC,eAAe;;;;;;EAMzB;;;;;;EAOA,SAAS;;;;;;EAOT;;;;;;EAOA;;;;;;EAOA,cAAc;;;;;;;EAQd,aAAa;;;;;;;EAQb,YAAY;;;;;;cAOD,oBAAoB,WAAW;;;;;;KAQhC,iCAAiC;;;;;;;EAO3C;;;;;;cAOW,sCAAsC,WAAW;;;;;;KAQlD,kCAAkC;;;;;;EAM5C,oBAAoB;;;;;;cAOT,uCAAuC,WAAW;;;;;;KAQnD,qCAAqC;;;;;;EAM/C;;;;;;cAOW,0CAA0C,WAAW;;;;;;KAQtD,sCAAsC;;;;;;;EAOhD;;;;;;cAOW,2CAA2C,WAAW;;;;;;KAQvD,kCAAkC;;;;;;EAM5C;;;;;;cAOW,uCAAuC,WAAW;;;;;;KAQnD,mCAAmC;;;;;;;EAO7C;;;;;;cAOW,wCAAwC,WAAW;;;;;;KAQpD,2BAA2B;;;;;cAO1B,gCAAgC,WAAW;;;;;;KAQ5C,4BAA4B;;;;;;;EAOtC,MAAM;;;;;;cAOK,iCAAiC,WAAW;;;;;;KAQ7C,4BAA4B;;;;;;EAMtC;;;;;;cAOW,iC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