@polyester/sdk 0.35.0-devnet-20261111031027 → 0.35.0-devnet-20261111161451
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 +35 -1
- package/dist/catalogs/snapshot-validation.js +2 -1
- package/dist/catalogs/snapshot-validation.js.map +1 -1
- package/dist/client.d.ts +6 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +6 -0
- package/dist/client.js.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +4164 -0
- package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -0
- package/dist/gen/ai/v1/assistant_pb.js +1174 -0
- package/dist/gen/ai/v1/assistant_pb.js.map +1 -0
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts +776 -0
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts.map +1 -0
- package/dist/gen/alerts/v1/price_alerts_pb.js +378 -0
- package/dist/gen/alerts/v1/price_alerts_pb.js.map +1 -0
- package/dist/gen/auth/v1/address_book_pb.d.ts +6 -0
- package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/address_book_pb.js +6 -0
- package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts +242 -2
- package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.js +81 -2
- package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +48 -6
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +48 -6
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +83 -19
- package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +74 -16
- package/dist/gen/auth/v1/policies_pb.js.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.d.ts +167 -11
- package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js +41 -3
- package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +17 -6
- package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +4 -2
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts.map +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +5 -0
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts.map +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.js.map +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +10 -0
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +32 -4
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts.map +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.js +32 -4
- package/dist/gen/chain/lifecycle/v1/types_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +391 -42
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js +103 -17
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +170 -3
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +63 -2
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
- package/dist/gen/claims/v1/claims_pb.js +1 -1
- package/dist/gen/claims/v1/claims_pb.js.map +1 -1
- package/dist/gen/index.d.ts +14 -10
- package/dist/gen/index.js +11 -7
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +1 -1
- package/dist/gen/ledger/v1/catalog_pb.d.ts +9 -1
- package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
- package/dist/gen/ledger/v1/catalog_pb.js +9 -1
- package/dist/gen/ledger/v1/catalog_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts +8 -0
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +4 -4
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +20 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts.map +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.js +20 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +1186 -127
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +282 -5
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +253 -38
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +180 -36
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +933 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +292 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -0
- package/dist/gen/system/v1/system_pb.d.ts +77 -0
- package/dist/gen/system/v1/system_pb.d.ts.map +1 -0
- package/dist/gen/system/v1/system_pb.js +34 -0
- package/dist/gen/system/v1/system_pb.js.map +1 -0
- package/dist/gen/tradews/v1/trade_ws_pb.d.ts +2 -2
- package/dist/gen/tradews/v1/trade_ws_pb.js.map +1 -1
- package/dist/index.d.ts +14 -6
- package/dist/services/api-keys/api-keys.codecs.js +10 -1
- package/dist/services/api-keys/api-keys.codecs.js.map +1 -1
- package/dist/services/api-keys/api-keys.d.ts +16 -1
- package/dist/services/api-keys/api-keys.d.ts.map +1 -1
- package/dist/services/api-keys/api-keys.js +25 -1
- package/dist/services/api-keys/api-keys.js.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.d.ts +116 -1
- package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.js +29 -3
- package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
- package/dist/services/api-keys/api-keys.types.d.ts +2 -2
- package/dist/services/api-keys/index.d.ts +2 -2
- package/dist/services/assistant/assistant-events.schemas.d.ts +4618 -0
- package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -0
- package/dist/services/assistant/assistant-events.schemas.js +485 -0
- package/dist/services/assistant/assistant-events.schemas.js.map +1 -0
- package/dist/services/assistant/assistant.codecs.d.ts +24 -0
- package/dist/services/assistant/assistant.codecs.d.ts.map +1 -0
- package/dist/services/assistant/assistant.codecs.js +88 -0
- package/dist/services/assistant/assistant.codecs.js.map +1 -0
- package/dist/services/assistant/assistant.d.ts +76 -0
- package/dist/services/assistant/assistant.d.ts.map +1 -0
- package/dist/services/assistant/assistant.js +133 -0
- package/dist/services/assistant/assistant.js.map +1 -0
- package/dist/services/assistant/assistant.schemas.d.ts +184 -0
- package/dist/services/assistant/assistant.schemas.d.ts.map +1 -0
- package/dist/services/assistant/assistant.schemas.js +135 -0
- package/dist/services/assistant/assistant.schemas.js.map +1 -0
- package/dist/services/assistant/assistant.types.d.ts +4 -0
- package/dist/services/assistant/service.d.ts +8 -0
- package/dist/services/assistant/service.d.ts.map +1 -0
- package/dist/services/assistant/service.js +9 -0
- package/dist/services/assistant/service.js.map +1 -0
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +9 -2
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js +9 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.d.ts +15 -4
- package/dist/services/auto-withdraw/auto-withdraw.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.js +24 -8
- package/dist/services/auto-withdraw/auto-withdraw.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +394 -26
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +67 -12
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.types.d.ts +3 -3
- package/dist/services/balances/balances.js +1 -1
- package/dist/services/balances/balances.schemas.d.ts +3 -3
- package/dist/services/candles/candles.js +1 -1
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/candles/candles.schemas.js +5 -2
- package/dist/services/candles/candles.schemas.js.map +1 -1
- package/dist/services/changelog/changelog.schemas.d.ts +17 -17
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +3 -3
- package/dist/services/lifecycle/lifecycle.codecs.d.ts +2 -2
- package/dist/services/lifecycle/lifecycle.codecs.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.codecs.js +3 -1
- package/dist/services/lifecycle/lifecycle.codecs.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +210 -186
- package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.js +7 -1
- package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
- package/dist/services/market-data/market-data.js +1 -1
- package/dist/services/market-data/market-data.schemas.js +7 -2
- package/dist/services/market-data/market-data.schemas.js.map +1 -1
- package/dist/services/market-overview/market-overview.schemas.d.ts +1 -1
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +2 -2
- package/dist/services/orders/orders-batch.schemas.d.ts +54 -54
- package/dist/services/orders/orders-input.schemas.d.ts +6 -6
- 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 +16 -16
- package/dist/services/orders/orders-output.schemas.js +3 -3
- package/dist/services/orders/orders-risk.schemas.js +1 -1
- package/dist/services/orders/orders.codecs.js +1 -1
- package/dist/services/orders/orders.js +3 -3
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
- package/dist/services/policies/shared.codecs.js +24 -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.codecs.d.ts +20 -0
- package/dist/services/price-alerts/price-alerts.codecs.d.ts.map +1 -0
- package/dist/services/price-alerts/price-alerts.codecs.js +66 -0
- package/dist/services/price-alerts/price-alerts.codecs.js.map +1 -0
- package/dist/services/price-alerts/price-alerts.d.ts +38 -0
- package/dist/services/price-alerts/price-alerts.d.ts.map +1 -0
- package/dist/services/price-alerts/price-alerts.js +60 -0
- package/dist/services/price-alerts/price-alerts.js.map +1 -0
- package/dist/services/price-alerts/price-alerts.schemas.d.ts +309 -0
- package/dist/services/price-alerts/price-alerts.schemas.d.ts.map +1 -0
- package/dist/services/price-alerts/price-alerts.schemas.js +130 -0
- package/dist/services/price-alerts/price-alerts.schemas.js.map +1 -0
- package/dist/services/price-alerts/price-alerts.types.d.ts +3 -0
- package/dist/services/price-alerts/service.d.ts +8 -0
- package/dist/services/price-alerts/service.d.ts.map +1 -0
- package/dist/services/price-alerts/service.js +9 -0
- package/dist/services/price-alerts/service.js.map +1 -0
- package/dist/services/social-verification/social-verification.codecs.js +13 -5
- package/dist/services/social-verification/social-verification.codecs.js.map +1 -1
- package/dist/services/social-verification/social-verification.d.ts +18 -3
- package/dist/services/social-verification/social-verification.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.js +26 -3
- package/dist/services/social-verification/social-verification.js.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.d.ts +33 -7
- package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +35 -10
- package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
- package/dist/services/social-verification/social-verification.types.d.ts +2 -2
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +8 -8
- package/dist/services/system/service.d.ts +8 -0
- package/dist/services/system/service.d.ts.map +1 -0
- package/dist/services/system/service.js +9 -0
- package/dist/services/system/service.js.map +1 -0
- package/dist/services/system/system.d.ts +25 -0
- package/dist/services/system/system.d.ts.map +1 -0
- package/dist/services/system/system.js +24 -0
- package/dist/services/system/system.js.map +1 -0
- package/dist/services/trades/trades.js +1 -1
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/trades/trades.schemas.js +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.d.ts +7 -1
- package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +11 -1
- package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +42 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +19 -3
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +2 -2
- package/dist/services/transfers/transfers.schemas.d.ts +5 -5
- package/dist/services/triggers/trigger-child-order.schemas.js +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/trigger-input.schemas.js +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +49 -49
- package/dist/services/triggers/triggers.codecs.js +1 -1
- package/dist/services/triggers/triggers.js +2 -2
- package/dist/shared/catalog-config.d.ts +5 -0
- package/dist/shared/catalog-config.d.ts.map +1 -1
- package/dist/shared/catalog-config.js.map +1 -1
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +1 -0
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/error-detail.d.ts +24 -10
- 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 +15 -0
- package/dist/shared/error-details/alerts.js.map +1 -0
- package/dist/shared/error-details/assistant.js +15 -0
- package/dist/shared/error-details/assistant.js.map +1 -0
- package/dist/shared/error-details/withdraw.js +11 -2
- package/dist/shared/error-details/withdraw.js.map +1 -1
- package/dist/shared/ledger-codes.d.ts +4 -2
- package/dist/shared/ledger-codes.d.ts.map +1 -1
- package/dist/shared/ledger-codes.js +6 -3
- package/dist/shared/ledger-codes.js.map +1 -1
- package/dist/shared/rate-limit.schemas.d.ts +3 -3
- package/dist/shared/rate-limit.schemas.d.ts.map +1 -1
- package/dist/shared/rate-limit.schemas.js +4 -1
- package/dist/shared/rate-limit.schemas.js.map +1 -1
- package/dist/shared/transports.d.ts +2 -1
- package/dist/shared/transports.d.ts.map +1 -1
- package/dist/shared/transports.js.map +1 -1
- package/dist/wired-services.d.ts.map +1 -1
- package/dist/wired-services.js +11 -5
- package/dist/wired-services.js.map +1 -1
- package/package.json +1 -1
|
@@ -377,7 +377,10 @@ declare enum AuthErrorCode {
|
|
|
377
377
|
*/
|
|
378
378
|
AUTH_SUBACCOUNT_ACCESS_DENIED = 11,
|
|
379
379
|
/**
|
|
380
|
-
* Caller does not have access to the requested API key
|
|
380
|
+
* Caller does not have access to the requested API key, or the calling API
|
|
381
|
+
* key's policy lacks the account permission the call needs, or the call needs
|
|
382
|
+
* a key scoped to the main account. Those two permission refusals name the
|
|
383
|
+
* permission in the message; an ownership refusal names none.
|
|
381
384
|
*
|
|
382
385
|
* @generated from enum value: AUTH_API_KEY_ACCESS_DENIED = 12;
|
|
383
386
|
*/
|
|
@@ -557,7 +560,7 @@ declare enum AuthErrorCode {
|
|
|
557
560
|
*/
|
|
558
561
|
AUTH_SOCIAL_VERIFICATION_EXPIRED = 42,
|
|
559
562
|
/**
|
|
560
|
-
* Social verification cannot accept
|
|
563
|
+
* Social verification cannot accept this request in its current state.
|
|
561
564
|
*
|
|
562
565
|
* @generated from enum value: AUTH_SOCIAL_VERIFICATION_INVALID_STATE = 43;
|
|
563
566
|
*/
|
|
@@ -577,6 +580,7 @@ declare enum AuthErrorCode {
|
|
|
577
580
|
AUTH_SOCIAL_ACCOUNT_ALREADY_LINKED = 45,
|
|
578
581
|
/**
|
|
579
582
|
* The request could not be completed right now and changed nothing. Retry the same request.
|
|
583
|
+
* A refused WebSocket login needs a new signed login with a fresh nonce.
|
|
580
584
|
*
|
|
581
585
|
* @generated from enum value: AUTH_TEMPORARILY_UNAVAILABLE = 46;
|
|
582
586
|
*/
|
|
@@ -596,8 +600,8 @@ declare enum AuthErrorCode {
|
|
|
596
600
|
*/
|
|
597
601
|
AUTH_SIGNATURE_INVALID = 48,
|
|
598
602
|
/**
|
|
599
|
-
* The API key request timestamp is malformed, more than
|
|
600
|
-
* clock, or older than the request's receive window (X-API-RECV-WINDOW,
|
|
603
|
+
* The API key request timestamp is malformed, more than 1 second ahead of the server
|
|
604
|
+
* clock, or older than the request's receive window (X-API-RECV-WINDOW, 5 seconds when
|
|
601
605
|
* omitted) when the request arrived. The request was not processed. Sync the clock, then
|
|
602
606
|
* sign the request again with a fresh timestamp. The REST problem code is TIMESTAMP_SKEW.
|
|
603
607
|
*
|
|
@@ -605,7 +609,8 @@ declare enum AuthErrorCode {
|
|
|
605
609
|
*/
|
|
606
610
|
AUTH_TIMESTAMP_SKEW = 49,
|
|
607
611
|
/**
|
|
608
|
-
* The API key request lacks its timestamp or signature header
|
|
612
|
+
* The API key request lacks its timestamp or signature header, or a signed
|
|
613
|
+
* WebSocket login lacks a valid X-API-NONCE. The REST problem code is
|
|
609
614
|
* MISSING_HEADERS.
|
|
610
615
|
*
|
|
611
616
|
* @generated from enum value: AUTH_MISSING_HEADERS = 50;
|
|
@@ -669,7 +674,44 @@ declare enum AuthErrorCode {
|
|
|
669
674
|
*
|
|
670
675
|
* @generated from enum value: AUTH_PATH_BODY_ID_MISMATCH = 58;
|
|
671
676
|
*/
|
|
672
|
-
AUTH_PATH_BODY_ID_MISMATCH = 58
|
|
677
|
+
AUTH_PATH_BODY_ID_MISMATCH = 58,
|
|
678
|
+
/**
|
|
679
|
+
* An assistant API key can never be allowed an action that moves value out of the
|
|
680
|
+
* account or manages where it goes: EXTERNAL_WITHDRAW, INTERNAL_TRANSFER,
|
|
681
|
+
* MANAGE_ADDRESS_BOOK or MANAGE_AUTO_WITHDRAW.
|
|
682
|
+
*
|
|
683
|
+
* @generated from enum value: AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED = 59;
|
|
684
|
+
*/
|
|
685
|
+
AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED = 59,
|
|
686
|
+
/**
|
|
687
|
+
* A new assistant key's registration proof is missing or does not verify
|
|
688
|
+
* for its account, public key and registration deadline. The REST problem
|
|
689
|
+
* code is ASSISTANT_KEY_PROOF_INVALID.
|
|
690
|
+
*
|
|
691
|
+
* @generated from enum value: AUTH_ASSISTANT_KEY_PROOF_INVALID = 60;
|
|
692
|
+
*/
|
|
693
|
+
AUTH_ASSISTANT_KEY_PROOF_INVALID = 60,
|
|
694
|
+
/**
|
|
695
|
+
* A new assistant key's registration deadline has passed; prepare the key
|
|
696
|
+
* again. The REST problem code is ASSISTANT_KEY_REGISTRATION_EXPIRED.
|
|
697
|
+
*
|
|
698
|
+
* @generated from enum value: AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED = 61;
|
|
699
|
+
*/
|
|
700
|
+
AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED = 61,
|
|
701
|
+
/**
|
|
702
|
+
* A new assistant key's registration deadline is more than 15 minutes
|
|
703
|
+
* ahead. The REST problem code is ASSISTANT_KEY_DEADLINE_TOO_FAR.
|
|
704
|
+
*
|
|
705
|
+
* @generated from enum value: AUTH_ASSISTANT_KEY_DEADLINE_TOO_FAR = 62;
|
|
706
|
+
*/
|
|
707
|
+
AUTH_ASSISTANT_KEY_DEADLINE_TOO_FAR = 62,
|
|
708
|
+
/**
|
|
709
|
+
* The signed WebSocket login nonce has already been used. Create a new login
|
|
710
|
+
* with a fresh random nonce and signature. HTTP 401, REPLAY_DETECTED.
|
|
711
|
+
*
|
|
712
|
+
* @generated from enum value: AUTH_REPLAY_DETECTED = 63;
|
|
713
|
+
*/
|
|
714
|
+
AUTH_REPLAY_DETECTED = 63
|
|
673
715
|
}
|
|
674
716
|
/**
|
|
675
717
|
* Describes the enum auth.v1.AuthErrorCode.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/auth_pb.ts"],"mappings":";;;;;;;;;;cAgBa,mBAAmB;;;;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;;;;;;;;EAUA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;;EAQA;;;;;;EAOA;;;;;;;EAQA;;;;;;;EAQA;;;;;;;EAQA;;;;;;;;;EAUA;;;;;;;;EASA;;;;;;EAOA;;;;;;EAOA;;;;;;;EAQA;;;;;;;EAQA;;;;;;;;EASA;;;;;;;;EASA;;;;;;;;;;EAWA;;;;;;;EAQA;;;;;;;;EASA;;;;;;;;EASA;;;;;;;EAQA;;;;;;;EAQA;;;;;;;EAQA;;;;;cAMW,qBAAqB,QAAQ;;;;;;cAQ7B,aAAa;;;;;;EAMxB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;EAQjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;;EAUjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe"}
|
|
@@ -24,7 +24,7 @@ var auth_pb_exports = /* @__PURE__ */ __exportAll({
|
|
|
24
24
|
/**
|
|
25
25
|
* Describes the file auth/v1/auth.proto.
|
|
26
26
|
*/
|
|
27
|
-
const file_auth_v1_auth = /*@__PURE__*/ fileDesc("
|
|
27
|
+
const file_auth_v1_auth = /*@__PURE__*/ fileDesc("ChJhdXRoL3YxL2F1dGgucHJvdG8SB2F1dGgudjEinAEKHENyZWF0ZVdhbGxldENoYWxsZW5nZVJlcXVlc3QSHwoVc21hcnRfYWNjb3VudF9hZGRyZXNzGAEgASgJQgASGAoOc2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VzcG9uc2UiA5ACAhIvCgJNZRISLmF1dGgudjEuTWVSZXF1ZXN0GhMuYXV0aC52MS5NZVJlc3BvbnNlIgAaAEI8WjpnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2F1dGgvdjE7YXV0aHYxYgZwcm90bzM=", [
|
|
28
28
|
file_auth_v1_mfa,
|
|
29
29
|
file_google_protobuf_timestamp,
|
|
30
30
|
file_polyester_api_options
|
|
@@ -177,7 +177,10 @@ let AuthErrorCode = /* @__PURE__ */ function(AuthErrorCode) {
|
|
|
177
177
|
*/
|
|
178
178
|
AuthErrorCode[AuthErrorCode["AUTH_SUBACCOUNT_ACCESS_DENIED"] = 11] = "AUTH_SUBACCOUNT_ACCESS_DENIED";
|
|
179
179
|
/**
|
|
180
|
-
* Caller does not have access to the requested API key
|
|
180
|
+
* Caller does not have access to the requested API key, or the calling API
|
|
181
|
+
* key's policy lacks the account permission the call needs, or the call needs
|
|
182
|
+
* a key scoped to the main account. Those two permission refusals name the
|
|
183
|
+
* permission in the message; an ownership refusal names none.
|
|
181
184
|
*
|
|
182
185
|
* @generated from enum value: AUTH_API_KEY_ACCESS_DENIED = 12;
|
|
183
186
|
*/
|
|
@@ -357,7 +360,7 @@ let AuthErrorCode = /* @__PURE__ */ function(AuthErrorCode) {
|
|
|
357
360
|
*/
|
|
358
361
|
AuthErrorCode[AuthErrorCode["AUTH_SOCIAL_VERIFICATION_EXPIRED"] = 42] = "AUTH_SOCIAL_VERIFICATION_EXPIRED";
|
|
359
362
|
/**
|
|
360
|
-
* Social verification cannot accept
|
|
363
|
+
* Social verification cannot accept this request in its current state.
|
|
361
364
|
*
|
|
362
365
|
* @generated from enum value: AUTH_SOCIAL_VERIFICATION_INVALID_STATE = 43;
|
|
363
366
|
*/
|
|
@@ -377,6 +380,7 @@ let AuthErrorCode = /* @__PURE__ */ function(AuthErrorCode) {
|
|
|
377
380
|
AuthErrorCode[AuthErrorCode["AUTH_SOCIAL_ACCOUNT_ALREADY_LINKED"] = 45] = "AUTH_SOCIAL_ACCOUNT_ALREADY_LINKED";
|
|
378
381
|
/**
|
|
379
382
|
* The request could not be completed right now and changed nothing. Retry the same request.
|
|
383
|
+
* A refused WebSocket login needs a new signed login with a fresh nonce.
|
|
380
384
|
*
|
|
381
385
|
* @generated from enum value: AUTH_TEMPORARILY_UNAVAILABLE = 46;
|
|
382
386
|
*/
|
|
@@ -396,8 +400,8 @@ let AuthErrorCode = /* @__PURE__ */ function(AuthErrorCode) {
|
|
|
396
400
|
*/
|
|
397
401
|
AuthErrorCode[AuthErrorCode["AUTH_SIGNATURE_INVALID"] = 48] = "AUTH_SIGNATURE_INVALID";
|
|
398
402
|
/**
|
|
399
|
-
* The API key request timestamp is malformed, more than
|
|
400
|
-
* clock, or older than the request's receive window (X-API-RECV-WINDOW,
|
|
403
|
+
* The API key request timestamp is malformed, more than 1 second ahead of the server
|
|
404
|
+
* clock, or older than the request's receive window (X-API-RECV-WINDOW, 5 seconds when
|
|
401
405
|
* omitted) when the request arrived. The request was not processed. Sync the clock, then
|
|
402
406
|
* sign the request again with a fresh timestamp. The REST problem code is TIMESTAMP_SKEW.
|
|
403
407
|
*
|
|
@@ -405,7 +409,8 @@ let AuthErrorCode = /* @__PURE__ */ function(AuthErrorCode) {
|
|
|
405
409
|
*/
|
|
406
410
|
AuthErrorCode[AuthErrorCode["AUTH_TIMESTAMP_SKEW"] = 49] = "AUTH_TIMESTAMP_SKEW";
|
|
407
411
|
/**
|
|
408
|
-
* The API key request lacks its timestamp or signature header
|
|
412
|
+
* The API key request lacks its timestamp or signature header, or a signed
|
|
413
|
+
* WebSocket login lacks a valid X-API-NONCE. The REST problem code is
|
|
409
414
|
* MISSING_HEADERS.
|
|
410
415
|
*
|
|
411
416
|
* @generated from enum value: AUTH_MISSING_HEADERS = 50;
|
|
@@ -470,6 +475,43 @@ let AuthErrorCode = /* @__PURE__ */ function(AuthErrorCode) {
|
|
|
470
475
|
* @generated from enum value: AUTH_PATH_BODY_ID_MISMATCH = 58;
|
|
471
476
|
*/
|
|
472
477
|
AuthErrorCode[AuthErrorCode["AUTH_PATH_BODY_ID_MISMATCH"] = 58] = "AUTH_PATH_BODY_ID_MISMATCH";
|
|
478
|
+
/**
|
|
479
|
+
* An assistant API key can never be allowed an action that moves value out of the
|
|
480
|
+
* account or manages where it goes: EXTERNAL_WITHDRAW, INTERNAL_TRANSFER,
|
|
481
|
+
* MANAGE_ADDRESS_BOOK or MANAGE_AUTO_WITHDRAW.
|
|
482
|
+
*
|
|
483
|
+
* @generated from enum value: AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED = 59;
|
|
484
|
+
*/
|
|
485
|
+
AuthErrorCode[AuthErrorCode["AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED"] = 59] = "AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED";
|
|
486
|
+
/**
|
|
487
|
+
* A new assistant key's registration proof is missing or does not verify
|
|
488
|
+
* for its account, public key and registration deadline. The REST problem
|
|
489
|
+
* code is ASSISTANT_KEY_PROOF_INVALID.
|
|
490
|
+
*
|
|
491
|
+
* @generated from enum value: AUTH_ASSISTANT_KEY_PROOF_INVALID = 60;
|
|
492
|
+
*/
|
|
493
|
+
AuthErrorCode[AuthErrorCode["AUTH_ASSISTANT_KEY_PROOF_INVALID"] = 60] = "AUTH_ASSISTANT_KEY_PROOF_INVALID";
|
|
494
|
+
/**
|
|
495
|
+
* A new assistant key's registration deadline has passed; prepare the key
|
|
496
|
+
* again. The REST problem code is ASSISTANT_KEY_REGISTRATION_EXPIRED.
|
|
497
|
+
*
|
|
498
|
+
* @generated from enum value: AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED = 61;
|
|
499
|
+
*/
|
|
500
|
+
AuthErrorCode[AuthErrorCode["AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED"] = 61] = "AUTH_ASSISTANT_KEY_REGISTRATION_EXPIRED";
|
|
501
|
+
/**
|
|
502
|
+
* A new assistant key's registration deadline is more than 15 minutes
|
|
503
|
+
* ahead. The REST problem code is ASSISTANT_KEY_DEADLINE_TOO_FAR.
|
|
504
|
+
*
|
|
505
|
+
* @generated from enum value: AUTH_ASSISTANT_KEY_DEADLINE_TOO_FAR = 62;
|
|
506
|
+
*/
|
|
507
|
+
AuthErrorCode[AuthErrorCode["AUTH_ASSISTANT_KEY_DEADLINE_TOO_FAR"] = 62] = "AUTH_ASSISTANT_KEY_DEADLINE_TOO_FAR";
|
|
508
|
+
/**
|
|
509
|
+
* The signed WebSocket login nonce has already been used. Create a new login
|
|
510
|
+
* with a fresh random nonce and signature. HTTP 401, REPLAY_DETECTED.
|
|
511
|
+
*
|
|
512
|
+
* @generated from enum value: AUTH_REPLAY_DETECTED = 63;
|
|
513
|
+
*/
|
|
514
|
+
AuthErrorCode[AuthErrorCode["AUTH_REPLAY_DETECTED"] = 63] = "AUTH_REPLAY_DETECTED";
|
|
473
515
|
return AuthErrorCode;
|
|
474
516
|
}({});
|
|
475
517
|
/**
|
|
@@ -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 { 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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aOmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vYXV0aC92MTthdXRodjFiBnByb3RvMw==\", [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 * 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/**\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 * 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, 7);\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, 8);\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.\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 internal failure prevented the auth mutation 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 a ready mark 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 *\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 10 seconds ahead of the server\n * clock, or older than the request's receive window (X-API-RECV-WINDOW, 10 seconds when\n * omitted) when the request arrived. The request was not processed. Sync the clock, then\n * sign 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. 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/**\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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AA;;;;;;;CAQA,cAAA,cAAA,uCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,wCAAA,MAAA;;;;;;CAOA,cAAA,cAAA,kCAAA,MAAA;;;;;;;CAQA,cAAA,cAAA,uCAAA,MAAA;;;;;;;CAQA,cAAA,cAAA,4BAAA,MAAA;;;;;;;;;CAUA,cAAA,cAAA,yBAAA,MAAA;;;;;;;CAQA,cAAA,cAAA,0BAAA,MAAA;;;;;;CAOA,cAAA,cAAA,sBAAA,MAAA;;;;;;CAOA,cAAA,cAAA,uBAAA,MAAA;;;;;;;CAQA,cAAA,cAAA,yBAAA,MAAA;;;;;;;CAQA,cAAA,cAAA,+BAAA,MAAA;;;;;;;;CASA,cAAA,cAAA,gCAAA,MAAA;;;;;;;;CASA,cAAA,cAAA,8BAAA,MAAA;;;;;;;;;;CAWA,cAAA,cAAA,oCAAA,MAAA;;;;;;;CAQA,cAAA,cAAA,gCAAA,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 { 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(\"ChJhdXRoL3YxL2F1dGgucHJvdG8SB2F1dGgudjEinAEKHENyZWF0ZVdhbGxldENoYWxsZW5nZVJlcXVlc3QSHwoVc21hcnRfYWNjb3VudF9hZGRyZXNzGAEgASgJQgASGAoOc2lnbmVyX2FkZHJlc3MYAiABKAlCABINCgN1cmkYAyABKAlCABIyCgdwdXJwb3NlGAQgASgOMh8uYXV0aC52MS5XYWxsZXRDaGFsbGVuZ2VQdXJwb3NlQgAiYAodQ3JlYXRlV2FsbGV0Q2hhbGxlbmdlUmVzcG9uc2USDwoHbWVzc2FnZRgBIAEoCRIuCgpleHBpcmVzX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCKgAQoWTG9naW5XaXRoV2FsbGV0UmVxdWVzdBIfChVzbWFydF9hY2NvdW50X2FkZHJlc3MYASABKAlCABITCglzaWduYXR1cmUYAyABKAlCABIUCgp1c2VyX2FnZW50GAQgASgJQgASDAoCaXAYBSABKAlCABIZCg93YWxsZXRfcHJvdmlkZXIYByABKAlCABIRCgdtZXNzYWdlGAggASgJQgAirAEKF0xvZ2luV2l0aFdhbGxldFJlc3BvbnNlEhQKDGFjY2Vzc190b2tlbhgBIAEoCRIuCgpleHBpcmVzX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBISCgphY2NvdW50X2lkGAogASgGEhAKCHVzZXJuYW1lGA0gASgJEiUKB3Nlc3Npb24YFCABKAsyFC5hdXRoLnYxLlNlc3Npb25JbmZvIgsKCU1lUmVxdWVzdCKnAQoKTWVSZXNwb25zZRISCgphY2NvdW50X2lkGAEgASgGEhkKCmFwaV9rZXlfaWQYCiABKAlCAEgAiAEBEhAKCHVzZXJuYW1lGAsgASgJEiIKGnJvb3Rfc21hcnRfYWNjb3VudF9hZGRyZXNzGAwgASgJEiUKB3Nlc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TG9naW5XaXRoV2FsbGV0Eh8uYXV0aC52MS5Mb2dpbldpdGhXYWxsZXRSZXF1ZXN0GiAuYXV0aC52MS5Mb2dpbldpdGhXYWxsZXRSZXNwb25zZSIAEk0KC0FjY2VwdFRlcm1zEhsuYXV0aC52MS5BY2NlcHRUZXJtc1JlcXVlc3QaHC5hdXRoLnYxLkFjY2VwdFRlcm1zUmVzcG9uc2UiA5ACAhIvCgJNZRISLmF1dGgudjEuTWVSZXF1ZXN0GhMuYXV0aC52MS5NZVJlc3BvbnNlIgAaAEI8WjpnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2F1dGgvdjE7YXV0aHYxYgZwcm90bzM=\", [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 * 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/**\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 * 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, 7);\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, 8);\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 internal failure prevented the auth mutation 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. Sync the clock, then\n * sign 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/**\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":";;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAAa,oBACX,uBAAS,g+IAAg+I;CAAC;CAAkB;CAAgC;AAA0B,CAAC;;;;;AA4CzjJ,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;;;;;AAmDlC,MAAa,mBACX,0BAAY,mBAAmB,CAAC;;;;;AA2BlC,MAAa,wBACX,0BAAY,mBAAmB,CAAC;;;;;AAclC,MAAa,2BACX,0BAAY,mBAAmB,CAAC;;;;;AAelC,MAAa,4BACX,0BAAY,mBAAmB,CAAC;;;;;;AAOlC,IAAY,yBAAL,yBAAA,wBAAA;;;;;;CAML,uBAAA,uBAAA,8BAAA,KAAA;;;;;;CAOA,uBAAA,uBAAA,WAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,+BACX,uBAAS,mBAAmB,CAAC;;;;;;AAO/B,IAAY,gBAAL,yBAAA,eAAA;;;;;;CAML,cAAA,cAAA,sBAAA,KAAA;;;;;;CAOA,cAAA,cAAA,2BAAA,KAAA;;;;;;CAOA,cAAA,cAAA,yBAAA,KAAA;;;;;;CAOA,cAAA,cAAA,4B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Optional API key identifier to bind this newly-created policy to
|
|
788
788
|
* atomically. When set, the caller must be allowed to manage the key and the
|
|
789
|
-
* create+assign operation consumes a single fresh step-up proof.
|
|
789
|
+
* create+assign operation consumes a single fresh step-up proof. An
|
|
790
|
+
* assistant API key cannot be assigned a policy that allows a money-out
|
|
791
|
+
* action: FailedPrecondition with AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED.
|
|
790
792
|
*
|
|
791
793
|
* @generated from field: string assign_to_key_id = 2;
|
|
792
794
|
*/
|
|
@@ -940,14 +942,15 @@ type SetApiKeyPolicyResponse = Message<"auth.v1.SetApiKeyPolicyResponse"> & {};
|
|
|
940
942
|
declare const SetApiKeyPolicyResponseSchema: GenMessage<SetApiKeyPolicyResponse>;
|
|
941
943
|
/**
|
|
942
944
|
* PolicyAction is a high-level permission that can be granted by a policy.
|
|
943
|
-
*
|
|
944
|
-
*
|
|
945
|
-
*
|
|
946
|
-
*
|
|
947
|
-
* refuses them. Each
|
|
948
|
-
*
|
|
949
|
-
*
|
|
950
|
-
* even when its policy
|
|
945
|
+
* Product actions apply to sub-account and API-key policies, and their
|
|
946
|
+
* write-style actions also grant the matching read visibility where needed by
|
|
947
|
+
* the product experience. Account permissions, each documented below as an
|
|
948
|
+
* account permission or a main-account permission, apply to API-key policies
|
|
949
|
+
* only: a sub-account policy refuses them. Each account permission grants
|
|
950
|
+
* exactly the calls it names and never implies another permission. A
|
|
951
|
+
* main-account permission is honored only for an API key scoped to the main
|
|
952
|
+
* account; a key scoped to a sub-account is refused even when its policy
|
|
953
|
+
* grants it. An API key without a policy has no permission at all.
|
|
951
954
|
*
|
|
952
955
|
* @generated from enum auth.v1.PolicyAction
|
|
953
956
|
*/
|
|
@@ -971,14 +974,16 @@ declare enum PolicyAction {
|
|
|
971
974
|
TRADE_SPOT = 1,
|
|
972
975
|
/**
|
|
973
976
|
* Allow internal transfers between sub-accounts or linked Polyester accounts,
|
|
974
|
-
* including reading internal transfer history.
|
|
977
|
+
* including reading internal transfer history. Moves value out of the
|
|
978
|
+
* account, so an assistant API key can never be allowed it.
|
|
975
979
|
*
|
|
976
980
|
* @generated from enum value: INTERNAL_TRANSFER = 3;
|
|
977
981
|
*/
|
|
978
982
|
INTERNAL_TRANSFER = 3,
|
|
979
983
|
/**
|
|
980
984
|
* Allow value to leave Trading through external withdrawals. Destination
|
|
981
|
-
* authorization is enforced separately from this policy.
|
|
985
|
+
* authorization is enforced separately from this policy. Moves value out of
|
|
986
|
+
* the account, so an assistant API key can never be allowed it.
|
|
982
987
|
*
|
|
983
988
|
* @generated from enum value: EXTERNAL_WITHDRAW = 4;
|
|
984
989
|
*/
|
|
@@ -1012,6 +1017,8 @@ declare enum PolicyAction {
|
|
|
1012
1017
|
* Allow creating, updating, deleting, and copying saved destination entries,
|
|
1013
1018
|
* including reading the address book. Address-book writes accept only a
|
|
1014
1019
|
* session token, so on an API-key policy this grants address-book reads only.
|
|
1020
|
+
* It manages where value can leave the account, so an assistant API key can
|
|
1021
|
+
* never be allowed it.
|
|
1015
1022
|
*
|
|
1016
1023
|
* @generated from enum value: MANAGE_ADDRESS_BOOK = 12;
|
|
1017
1024
|
*/
|
|
@@ -1025,7 +1032,8 @@ declare enum PolicyAction {
|
|
|
1025
1032
|
/**
|
|
1026
1033
|
* Allow creating, changing, and disabling the auto-withdraw rule, including
|
|
1027
1034
|
* reading it. A rule pays value out, so changing one also requires
|
|
1028
|
-
* EXTERNAL_WITHDRAW,
|
|
1035
|
+
* EXTERNAL_WITHDRAW, API keys can never change one, and an assistant API key
|
|
1036
|
+
* can never be allowed it.
|
|
1029
1037
|
*
|
|
1030
1038
|
* @generated from enum value: MANAGE_AUTO_WITHDRAW = 15;
|
|
1031
1039
|
*/
|
|
@@ -1042,7 +1050,7 @@ declare enum PolicyAction {
|
|
|
1042
1050
|
/**
|
|
1043
1051
|
* Allow listing and reading API keys. A key scoped to the main account sees
|
|
1044
1052
|
* the main account's keys and those of its sub-accounts; a key scoped to a
|
|
1045
|
-
* sub-account sees only that sub-account's keys.
|
|
1053
|
+
* sub-account sees only that sub-account's keys. Account permission.
|
|
1046
1054
|
*
|
|
1047
1055
|
* @generated from enum value: READ_API_KEYS = 17;
|
|
1048
1056
|
*/
|
|
@@ -1051,6 +1059,7 @@ declare enum PolicyAction {
|
|
|
1051
1059
|
* Allow listing and reading API-key policies. A key scoped to the main
|
|
1052
1060
|
* account sees every API-key policy of the main account; a key scoped to a
|
|
1053
1061
|
* sub-account sees only the policies attached to that sub-account's keys.
|
|
1062
|
+
* Account permission.
|
|
1054
1063
|
*
|
|
1055
1064
|
* @generated from enum value: READ_API_POLICIES = 18;
|
|
1056
1065
|
*/
|
|
@@ -1058,14 +1067,15 @@ declare enum PolicyAction {
|
|
|
1058
1067
|
/**
|
|
1059
1068
|
* Allow listing and reading sub-account policies. A key scoped to the main
|
|
1060
1069
|
* account sees every sub-account policy of the main account; a key scoped to
|
|
1061
|
-
* a sub-account sees only the policy attached to that sub-account.
|
|
1070
|
+
* a sub-account sees only the policy attached to that sub-account. Account
|
|
1071
|
+
* permission.
|
|
1062
1072
|
*
|
|
1063
1073
|
* @generated from enum value: READ_SUBACCOUNT_POLICIES = 19;
|
|
1064
1074
|
*/
|
|
1065
1075
|
READ_SUBACCOUNT_POLICIES = 19,
|
|
1066
1076
|
/**
|
|
1067
1077
|
* Allow reading what the key itself may do on a sub-account within its
|
|
1068
|
-
* scope.
|
|
1078
|
+
* scope. Account permission.
|
|
1069
1079
|
*
|
|
1070
1080
|
* @generated from enum value: READ_SUBACCOUNT_PERMISSIONS = 20;
|
|
1071
1081
|
*/
|
|
@@ -1093,6 +1103,7 @@ declare enum PolicyAction {
|
|
|
1093
1103
|
/**
|
|
1094
1104
|
* Allow resolving an account by username, account ID, or smart-account
|
|
1095
1105
|
* address. Any key of the main account may use it, whatever its scope.
|
|
1106
|
+
* Account permission.
|
|
1096
1107
|
*
|
|
1097
1108
|
* @generated from enum value: READ_ACCOUNT_DIRECTORY = 24;
|
|
1098
1109
|
*/
|
|
@@ -1100,7 +1111,7 @@ declare enum PolicyAction {
|
|
|
1100
1111
|
/**
|
|
1101
1112
|
* Allow validating an external withdraw destination within the key's scope
|
|
1102
1113
|
* without creating, signing, or reserving a withdraw. It does not allow
|
|
1103
|
-
* withdrawing.
|
|
1114
|
+
* withdrawing. Account permission.
|
|
1104
1115
|
*
|
|
1105
1116
|
* @generated from enum value: READ_WITHDRAW_VALIDATION = 25;
|
|
1106
1117
|
*/
|
|
@@ -1131,7 +1142,56 @@ declare enum PolicyAction {
|
|
|
1131
1142
|
*
|
|
1132
1143
|
* @generated from enum value: READ_REWARDS = 29;
|
|
1133
1144
|
*/
|
|
1134
|
-
READ_REWARDS = 29
|
|
1145
|
+
READ_REWARDS = 29,
|
|
1146
|
+
/**
|
|
1147
|
+
* Allow creating a deposit address within the key's scope. Account
|
|
1148
|
+
* permission.
|
|
1149
|
+
*
|
|
1150
|
+
* @generated from enum value: CREATE_DEPOSIT_ADDRESS = 10;
|
|
1151
|
+
*/
|
|
1152
|
+
CREATE_DEPOSIT_ADDRESS = 10,
|
|
1153
|
+
/**
|
|
1154
|
+
* Allow listing the deposit addresses within the key's scope. Account
|
|
1155
|
+
* permission.
|
|
1156
|
+
*
|
|
1157
|
+
* @generated from enum value: READ_DEPOSIT_ADDRESSES = 30;
|
|
1158
|
+
*/
|
|
1159
|
+
READ_DEPOSIT_ADDRESSES = 30,
|
|
1160
|
+
/**
|
|
1161
|
+
* Allow listing and reading the subaccounts within the key's scope. Account
|
|
1162
|
+
* permission.
|
|
1163
|
+
*
|
|
1164
|
+
* @generated from enum value: READ_SUBACCOUNTS = 31;
|
|
1165
|
+
*/
|
|
1166
|
+
READ_SUBACCOUNTS = 31,
|
|
1167
|
+
/**
|
|
1168
|
+
* Allow reading the activity of the subaccounts within the key's scope.
|
|
1169
|
+
* Account permission.
|
|
1170
|
+
*
|
|
1171
|
+
* @generated from enum value: READ_SUBACCOUNT_ACTIVITY = 32;
|
|
1172
|
+
*/
|
|
1173
|
+
READ_SUBACCOUNT_ACTIVITY = 32,
|
|
1174
|
+
/**
|
|
1175
|
+
* Allow listing the members of the subaccounts within the key's scope.
|
|
1176
|
+
* Account permission.
|
|
1177
|
+
*
|
|
1178
|
+
* @generated from enum value: READ_SUBACCOUNT_MEMBERS = 33;
|
|
1179
|
+
*/
|
|
1180
|
+
READ_SUBACCOUNT_MEMBERS = 33,
|
|
1181
|
+
/**
|
|
1182
|
+
* Allow listing the outgoing invites of the subaccounts within the key's
|
|
1183
|
+
* scope. Account permission.
|
|
1184
|
+
*
|
|
1185
|
+
* @generated from enum value: READ_SUBACCOUNT_INVITES = 34;
|
|
1186
|
+
*/
|
|
1187
|
+
READ_SUBACCOUNT_INVITES = 34,
|
|
1188
|
+
/**
|
|
1189
|
+
* Allow reading the Guard Signer status within the key's scope; a key never
|
|
1190
|
+
* reads another main account's Guard Signer. Account permission.
|
|
1191
|
+
*
|
|
1192
|
+
* @generated from enum value: READ_GUARD_SIGNER_STATUS = 35;
|
|
1193
|
+
*/
|
|
1194
|
+
READ_GUARD_SIGNER_STATUS = 35
|
|
1135
1195
|
}
|
|
1136
1196
|
/**
|
|
1137
1197
|
* Describes the enum auth.v1.PolicyAction.
|
|
@@ -1242,7 +1302,9 @@ declare const PolicyService: GenService<{
|
|
|
1242
1302
|
output: typeof CreateApiPolicyResponseSchema;
|
|
1243
1303
|
};
|
|
1244
1304
|
/**
|
|
1245
|
-
* Change selected fields on an existing API key policy template.
|
|
1305
|
+
* Change selected fields on an existing API key policy template. Adding a
|
|
1306
|
+
* money-out action to a policy attached to an assistant API key returns
|
|
1307
|
+
* FailedPrecondition with AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED.
|
|
1246
1308
|
*
|
|
1247
1309
|
* @generated from rpc auth.v1.PolicyService.UpdateApiPolicy
|
|
1248
1310
|
*/
|
|
@@ -1262,7 +1324,9 @@ declare const PolicyService: GenService<{
|
|
|
1262
1324
|
output: typeof DeleteApiPolicyResponseSchema;
|
|
1263
1325
|
};
|
|
1264
1326
|
/**
|
|
1265
|
-
* Attach or clear an API key policy for a key.
|
|
1327
|
+
* Attach or clear an API key policy for a key. Attaching a policy that allows
|
|
1328
|
+
* a money-out action to an assistant API key returns FailedPrecondition with
|
|
1329
|
+
* AUTH_ASSISTANT_KEY_ACTION_NOT_ALLOWED.
|
|
1266
1330
|
*
|
|
1267
1331
|
* @generated from rpc auth.v1.PolicyService.SetApiKeyPolicy
|
|
1268
1332
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policies_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/policies_pb.ts"],"mappings":";;;;;;;;;cAca,uBAAuB;;;;;;KAQxB,cAAc;;;;;cAOb,mBAAmB,WAAW;;;;;;;;aAU/B;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,yBAAyB,QAAQ;;;;;;KAQlC,qBAAqB;;;;;;EAM/B;;;;;;cAOW,0BAA0B,WAAW;;;;;;KAQtC,iBAAiB;;;;;;EAM3B;;;;;;cAOW,sBAAsB,WAAW;;;;;;KAQlC,uBAAuB;;;;;;EAMjC;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA,aAAa;;;;;;;EAQb,iBAAiB;;;;;;;EAQjB,SAAS;;;;;;;EAQT;;;;;;;EAQA;;;;;;;;EASA;;;;;;;EAQA;;;;;;;;EASA;;;;;;;EAQA;;;;;;;EAQA,WAAW;;;;;;;EAQX,YAAY;;;;;;EAOZ,YAAY;;;;;;EAOZ,YAAY;;;;;;EAOZ;;;;;;cAOW,4BAA4B,WAAW;;;;;;;;KAUxC,gCAAgC;;;;;;;;;EAS1C;;;;;;cAOW,qCAAqC,WAAW;;;;;;;KASjD,iCAAiC;;;;;;EAM3C,UAAU;;;;;;cAOC,sCAAsC,WAAW;;;;;;KAQlD,6BAA6B;;;;;;EAMvC;;;;;;;;;EAUA;;;;;;cAOW,kCAAkC,WAAW;;;;;;KAQ9C,8BAA8B;;;;;;EAMxC,S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