@polyester/sdk 0.36.0-devnet-20261118123359 → 0.36.0-devnet-20261118141710
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 +56 -8
- package/dist/catalogs/index.d.ts +2 -2
- package/dist/catalogs/snapshot-validation.js +10 -1
- package/dist/catalogs/snapshot-validation.js.map +1 -1
- package/dist/catalogs/zipper-catalog.d.ts +2 -0
- package/dist/catalogs/zipper-catalog.d.ts.map +1 -1
- package/dist/catalogs/zipper-catalog.js.map +1 -1
- package/dist/catalogs/zipper-supply.d.ts +2 -0
- package/dist/catalogs/zipper-supply.d.ts.map +1 -1
- package/dist/catalogs/zipper-supply.js +7 -5
- package/dist/catalogs/zipper-supply.js.map +1 -1
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +679 -13
- package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.js +355 -97
- package/dist/gen/ai/v1/assistant_pb.js.map +1 -1
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts +33 -4
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts.map +1 -1
- package/dist/gen/alerts/v1/price_alerts_pb.js +23 -2
- package/dist/gen/alerts/v1/price_alerts_pb.js.map +1 -1
- package/dist/gen/auth/v1/activity_pb.d.ts +148 -0
- package/dist/gen/auth/v1/activity_pb.d.ts.map +1 -0
- package/dist/gen/auth/v1/activity_pb.js +40 -0
- package/dist/gen/auth/v1/activity_pb.js.map +1 -0
- package/dist/gen/auth/v1/api_keys_pb.d.ts +10 -4
- package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.js +3 -1
- package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +61 -5
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +23 -6
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/mfa_pb.d.ts +140 -2
- package/dist/gen/auth/v1/mfa_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/mfa_pb.js +80 -8
- package/dist/gen/auth/v1/mfa_pb.js.map +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +18 -3
- package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +18 -3
- package/dist/gen/auth/v1/policies_pb.js.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.d.ts +36 -15
- package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +15 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +6 -2
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +104 -6
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +49 -3
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +76 -3
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts.map +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.js +46 -2
- package/dist/gen/chain/zipper/v1/zipper_pb.js.map +1 -1
- package/dist/gen/index.d.ts +3 -1
- package/dist/gen/index.js +4 -2
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +21 -139
- package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
- package/dist/gen/ledger/read/v1/ledger_read_pb.js +16 -17
- package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
- package/dist/gen/ledger/read/v1/statement_export_pb.d.ts +236 -20
- package/dist/gen/ledger/read/v1/statement_export_pb.d.ts.map +1 -1
- package/dist/gen/ledger/read/v1/statement_export_pb.js +44 -10
- package/dist/gen/ledger/read/v1/statement_export_pb.js.map +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/asset_info_pb.d.ts +158 -7
- package/dist/gen/marketdata/v1/asset_info_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/asset_info_pb.js +56 -6
- package/dist/gen/marketdata/v1/asset_info_pb.js.map +1 -1
- package/dist/gen/notifications/v1/notifications_pb.d.ts +45 -6
- package/dist/gen/notifications/v1/notifications_pb.d.ts.map +1 -1
- package/dist/gen/notifications/v1/notifications_pb.js +23 -5
- package/dist/gen/notifications/v1/notifications_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +105 -29
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +14 -2
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +50 -20
- package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.js +1 -1
- package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
- package/dist/gen/polyester/api/options_pb.d.ts +11 -2
- package/dist/gen/polyester/api/options_pb.d.ts.map +1 -1
- package/dist/gen/polyester/api/options_pb.js +13 -3
- package/dist/gen/polyester/api/options_pb.js.map +1 -1
- package/dist/gen/privatews/v1/private_ws_pb.d.ts +13 -3
- package/dist/gen/privatews/v1/private_ws_pb.d.ts.map +1 -1
- package/dist/gen/privatews/v1/private_ws_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +126 -10
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +14 -6
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts +665 -0
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts.map +1 -0
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js +216 -0
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js.map +1 -0
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +166 -52
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +50 -12
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/system/v1/system_pb.d.ts +49 -2
- package/dist/gen/system/v1/system_pb.d.ts.map +1 -1
- package/dist/gen/system/v1/system_pb.js +18 -6
- package/dist/gen/system/v1/system_pb.js.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +150 -71
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js +56 -34
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +117 -16
- package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.js +45 -2
- package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
- package/dist/index.d.ts +13 -9
- package/dist/services/account-activity/account-activity.d.ts +22 -0
- package/dist/services/account-activity/account-activity.d.ts.map +1 -0
- package/dist/services/account-activity/account-activity.js +32 -0
- package/dist/services/account-activity/account-activity.js.map +1 -0
- package/dist/services/account-activity/account-activity.schemas.d.ts +78 -0
- package/dist/services/account-activity/account-activity.schemas.d.ts.map +1 -0
- package/dist/services/account-activity/account-activity.schemas.js +44 -0
- package/dist/services/account-activity/account-activity.schemas.js.map +1 -0
- package/dist/services/account-activity/account-activity.types.d.ts +2 -0
- package/dist/services/account-activity/service.d.ts +8 -0
- package/dist/services/account-activity/service.d.ts.map +1 -0
- package/dist/services/account-activity/service.js +9 -0
- package/dist/services/account-activity/service.js.map +1 -0
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/address-book/address-book.schemas.js +2 -2
- package/dist/services/api-keys/api-keys.schemas.js +2 -2
- package/dist/services/assistant/assistant-events.schemas.d.ts +26 -26
- package/dist/services/assistant/assistant.codecs.d.ts +7 -2
- package/dist/services/assistant/assistant.codecs.d.ts.map +1 -1
- package/dist/services/assistant/assistant.codecs.js +18 -2
- package/dist/services/assistant/assistant.codecs.js.map +1 -1
- package/dist/services/assistant/assistant.d.ts +29 -2
- package/dist/services/assistant/assistant.d.ts.map +1 -1
- package/dist/services/assistant/assistant.js +44 -2
- package/dist/services/assistant/assistant.js.map +1 -1
- package/dist/services/assistant/assistant.schemas.d.ts +111 -6
- package/dist/services/assistant/assistant.schemas.d.ts.map +1 -1
- package/dist/services/assistant/assistant.schemas.js +74 -6
- package/dist/services/assistant/assistant.schemas.js.map +1 -1
- package/dist/services/assistant/assistant.types.d.ts +3 -3
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +3 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +24 -22
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +1 -0
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
- package/dist/services/balances/balances.d.ts +1 -13
- package/dist/services/balances/balances.d.ts.map +1 -1
- package/dist/services/balances/balances.js +1 -45
- package/dist/services/balances/balances.js.map +1 -1
- package/dist/services/balances/balances.schemas.d.ts +1 -67
- package/dist/services/balances/balances.schemas.d.ts.map +1 -1
- package/dist/services/balances/balances.schemas.js +1 -22
- package/dist/services/balances/balances.schemas.js.map +1 -1
- package/dist/services/balances/balances.types.d.ts +2 -2
- package/dist/services/changelog/changelog.schemas.d.ts +22 -22
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
- package/dist/services/claims/claims.schemas.d.ts +2 -2
- package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +2 -2
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.codecs.d.ts +11 -6
- package/dist/services/internal-transfers/internal-transfers.codecs.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.codecs.js +6 -6
- package/dist/services/internal-transfers/internal-transfers.codecs.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.d.ts +17 -10
- package/dist/services/internal-transfers/internal-transfers.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.js +21 -10
- package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +46 -34
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.js +23 -12
- package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.types.d.ts +2 -2
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +94 -94
- package/dist/services/market-data/market-data.codecs.d.ts +8 -0
- package/dist/services/market-data/market-data.codecs.d.ts.map +1 -0
- package/dist/services/market-data/market-data.codecs.js +7 -1
- package/dist/services/market-data/market-data.codecs.js.map +1 -1
- package/dist/services/market-data/market-data.d.ts +3 -2
- package/dist/services/market-data/market-data.d.ts.map +1 -1
- package/dist/services/market-data/market-data.js +3 -2
- package/dist/services/market-data/market-data.js.map +1 -1
- package/dist/services/market-data/market-data.schemas.d.ts +332 -4
- package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
- package/dist/services/market-data/market-data.schemas.js +56 -8
- package/dist/services/market-data/market-data.schemas.js.map +1 -1
- package/dist/services/market-data/market-data.types.d.ts +3 -2
- package/dist/services/notifications/notifications.codecs.d.ts +1 -1
- package/dist/services/notifications/notifications.codecs.d.ts.map +1 -1
- package/dist/services/notifications/notifications.codecs.js +2 -1
- package/dist/services/notifications/notifications.codecs.js.map +1 -1
- package/dist/services/notifications/notifications.d.ts +4 -2
- package/dist/services/notifications/notifications.d.ts.map +1 -1
- package/dist/services/notifications/notifications.js +4 -2
- package/dist/services/notifications/notifications.js.map +1 -1
- package/dist/services/notifications/notifications.schemas.d.ts +50 -6
- package/dist/services/notifications/notifications.schemas.d.ts.map +1 -1
- package/dist/services/notifications/notifications.schemas.js +5 -0
- package/dist/services/notifications/notifications.schemas.js.map +1 -1
- package/dist/services/orders/order-enums.codecs.d.ts +2 -0
- package/dist/services/orders/order-errors.schemas.d.ts +50 -5
- package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
- package/dist/services/orders/order-errors.schemas.js +13 -3
- package/dist/services/orders/order-errors.schemas.js.map +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +322 -82
- package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +58 -11
- package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-input.schemas.js +1 -1
- package/dist/services/orders/orders-output.schemas.d.ts +16 -16
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +1 -1
- package/dist/services/policies/shared.codecs.js +12 -6
- package/dist/services/policies/shared.codecs.js.map +1 -1
- package/dist/services/policies/shared.d.ts +1 -1
- package/dist/services/policies/shared.js +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +9 -9
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +3 -3
- package/dist/services/price-alerts/price-alerts.d.ts +5 -2
- package/dist/services/price-alerts/price-alerts.d.ts.map +1 -1
- package/dist/services/price-alerts/price-alerts.js +5 -2
- package/dist/services/price-alerts/price-alerts.js.map +1 -1
- package/dist/services/price-alerts/price-alerts.schemas.js +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +4 -4
- package/dist/services/social-verification/social-verification.schemas.d.ts +9 -0
- package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +9 -2
- package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
- package/dist/services/statement-exports/statement-exports.codecs.d.ts +3 -2
- package/dist/services/statement-exports/statement-exports.codecs.d.ts.map +1 -1
- package/dist/services/statement-exports/statement-exports.codecs.js +2 -1
- package/dist/services/statement-exports/statement-exports.codecs.js.map +1 -1
- package/dist/services/statement-exports/statement-exports.d.ts +25 -10
- package/dist/services/statement-exports/statement-exports.d.ts.map +1 -1
- package/dist/services/statement-exports/statement-exports.js +33 -10
- package/dist/services/statement-exports/statement-exports.js.map +1 -1
- package/dist/services/statement-exports/statement-exports.schemas.d.ts +37 -9
- package/dist/services/statement-exports/statement-exports.schemas.d.ts.map +1 -1
- package/dist/services/statement-exports/statement-exports.schemas.js +24 -5
- package/dist/services/statement-exports/statement-exports.schemas.js.map +1 -1
- package/dist/services/statement-exports/statement-exports.types.d.ts +2 -2
- package/dist/services/subaccounts/subaccounts.codecs.js +112 -38
- package/dist/services/subaccounts/subaccounts.codecs.js.map +1 -1
- package/dist/services/subaccounts/subaccounts.js +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +25 -18
- package/dist/services/subaccounts/subaccounts.schemas.d.ts.map +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.js +10 -3
- package/dist/services/subaccounts/subaccounts.schemas.js.map +1 -1
- package/dist/services/system/system.d.ts +12 -1
- package/dist/services/system/system.d.ts.map +1 -1
- package/dist/services/system/system.js +5 -0
- package/dist/services/system/system.js.map +1 -1
- package/dist/services/system/system.schemas.d.ts +13 -13
- package/dist/services/system/system.types.d.ts +2 -2
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.codecs.d.ts +8 -0
- package/dist/services/trading-withdraws/trading-withdraws.codecs.d.ts.map +1 -0
- package/dist/services/trading-withdraws/trading-withdraws.codecs.js +7 -1
- package/dist/services/trading-withdraws/trading-withdraws.codecs.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.d.ts +2 -1
- package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +2 -1
- package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +15 -0
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +16 -2
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +2 -1
- package/dist/services/transfers/transfers.schemas.d.ts +4 -4
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +163 -45
- package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
- package/dist/services/triggers/triggers-output.schemas.js +13 -3
- package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
- package/dist/services/triggers/triggers.codecs.d.ts +10 -0
- package/dist/services/triggers/triggers.codecs.d.ts.map +1 -0
- package/dist/services/triggers/triggers.codecs.js +7 -1
- package/dist/services/triggers/triggers.codecs.js.map +1 -1
- package/dist/services/triggers/triggers.d.ts +2 -2
- package/dist/services/triggers/triggers.js +2 -2
- package/dist/services/triggers/triggers.js.map +1 -1
- package/dist/services/zipper/zipper.d.ts.map +1 -1
- package/dist/services/zipper/zipper.js +13 -7
- package/dist/services/zipper/zipper.js.map +1 -1
- package/dist/services/zipper/zipper.schemas.d.ts +7 -2
- package/dist/services/zipper/zipper.schemas.d.ts.map +1 -1
- package/dist/services/zipper/zipper.schemas.js +29 -9
- package/dist/services/zipper/zipper.schemas.js.map +1 -1
- package/dist/services/zipper/zipper.types.d.ts +2 -2
- package/dist/shared/catalog-config.d.ts +16 -2
- 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 +3 -1
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/error-detail.d.ts +10 -0
- package/dist/shared/error-detail.d.ts.map +1 -1
- package/dist/shared/error-detail.js.map +1 -1
- package/dist/shared/error-details/auth.js +6 -0
- package/dist/shared/error-details/auth.js.map +1 -1
- package/dist/shared/ledger-codes.d.ts +3 -1
- 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 +1 -1
- package/dist/wired-services.d.ts.map +1 -1
- package/dist/wired-services.js +3 -1
- package/dist/wired-services.js.map +1 -1
- package/package.json +1 -1
|
@@ -504,7 +504,22 @@ declare enum ErrorCode {
|
|
|
504
504
|
*
|
|
505
505
|
* @generated from enum value: ALERT_UPDATE_LIMIT_REACHED = 12;
|
|
506
506
|
*/
|
|
507
|
-
ALERT_UPDATE_LIMIT_REACHED = 12
|
|
507
|
+
ALERT_UPDATE_LIMIT_REACHED = 12,
|
|
508
|
+
/**
|
|
509
|
+
* The alert asks for TELEGRAM, but no Telegram account is linked to the
|
|
510
|
+
* caller's account. Link Telegram in the account settings first, or choose
|
|
511
|
+
* IN_APP only.
|
|
512
|
+
*
|
|
513
|
+
* @generated from enum value: TELEGRAM_NOT_LINKED = 13;
|
|
514
|
+
*/
|
|
515
|
+
TELEGRAM_NOT_LINKED = 13,
|
|
516
|
+
/**
|
|
517
|
+
* The alert asks for TELEGRAM, but Telegram delivery is not available in
|
|
518
|
+
* this environment. Choose IN_APP only.
|
|
519
|
+
*
|
|
520
|
+
* @generated from enum value: TELEGRAM_UNAVAILABLE = 14;
|
|
521
|
+
*/
|
|
522
|
+
TELEGRAM_UNAVAILABLE = 14
|
|
508
523
|
}
|
|
509
524
|
/**
|
|
510
525
|
* Describes the enum alerts.v1.ErrorCode.
|
|
@@ -665,7 +680,13 @@ declare enum AlertChannel {
|
|
|
665
680
|
IN_APP = 1,
|
|
666
681
|
/**
|
|
667
682
|
* A direct message from the Polyester Telegram bot to the Telegram account
|
|
668
|
-
* linked to the caller's account.
|
|
683
|
+
* linked to the caller's account. Creating or changing an alert that asks
|
|
684
|
+
* for it needs Telegram delivery to be available in the environment
|
|
685
|
+
* (TELEGRAM_UNAVAILABLE otherwise) and a linked Telegram account
|
|
686
|
+
* (TELEGRAM_NOT_LINKED otherwise).
|
|
687
|
+
* When a Telegram message cannot be delivered, for example because Telegram
|
|
688
|
+
* was unlinked after the alert was set, the fired alert is shown in the
|
|
689
|
+
* notification inbox instead.
|
|
669
690
|
*
|
|
670
691
|
* @generated from enum value: TELEGRAM = 2;
|
|
671
692
|
*/
|
|
@@ -695,7 +716,10 @@ declare const PriceAlertService: GenService<{
|
|
|
695
716
|
* Errors:
|
|
696
717
|
* - INVALID_ARGUMENT: malformed request, or UNKNOWN_SYMBOL.
|
|
697
718
|
* - FAILED_PRECONDITION: PRICE_SOURCE_UNSUPPORTED (INDEX_PRICE requested on
|
|
698
|
-
* a market without one),
|
|
719
|
+
* a market without one), ALERT_LIMIT_REACHED, TELEGRAM_UNAVAILABLE
|
|
720
|
+
* (TELEGRAM requested where Telegram delivery is not available), or
|
|
721
|
+
* TELEGRAM_NOT_LINKED (TELEGRAM requested without a linked Telegram
|
|
722
|
+
* account).
|
|
699
723
|
* - ALREADY_EXISTS: IDEMPOTENCY_CONFLICT; the original alert stands.
|
|
700
724
|
* - UNAVAILABLE: PRICE_UNAVAILABLE or SERVICE_UNAVAILABLE; retry the same
|
|
701
725
|
* request.
|
|
@@ -736,6 +760,10 @@ declare const PriceAlertService: GenService<{
|
|
|
736
760
|
* unchanged. With an idempotency_key
|
|
737
761
|
* already used for the same request, it returns the alert as it is now and
|
|
738
762
|
* changes nothing: a retried or replayed update never sets the alert again.
|
|
763
|
+
* An update that changes an alert whose channels then include TELEGRAM needs
|
|
764
|
+
* Telegram delivery to be available and a linked Telegram account, so
|
|
765
|
+
* without them, change such an alert's channels to IN_APP to change it
|
|
766
|
+
* further.
|
|
739
767
|
*
|
|
740
768
|
* Errors:
|
|
741
769
|
* - INVALID_ARGUMENT: malformed request or update_mask.
|
|
@@ -743,7 +771,8 @@ declare const PriceAlertService: GenService<{
|
|
|
743
771
|
* - ALREADY_EXISTS: IDEMPOTENCY_CONFLICT.
|
|
744
772
|
* - ABORTED: REVISION_CONFLICT.
|
|
745
773
|
* - FAILED_PRECONDITION: ALERT_CANCELLED, PRICE_SOURCE_UNSUPPORTED,
|
|
746
|
-
* ALERT_LIMIT_REACHED or
|
|
774
|
+
* ALERT_LIMIT_REACHED, ALERT_UPDATE_LIMIT_REACHED, TELEGRAM_UNAVAILABLE or
|
|
775
|
+
* TELEGRAM_NOT_LINKED.
|
|
747
776
|
* - UNAVAILABLE: PRICE_UNAVAILABLE or SERVICE_UNAVAILABLE; retry.
|
|
748
777
|
* - PERMISSION_DENIED: SUBACCOUNT_KEY_REFUSED, or AUTH_API_KEY_ACCESS_DENIED
|
|
749
778
|
* when the API key's policy does not grant MANAGE_PRICE_ALERTS.
|
|
@@ -1 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;EAMV;;;;;;EAOA;;;;;;;EAQA;;;;;;;;EASA;;;;;cAMW,qBAAqB,QAAQ;;;;;;aAQ9B;;;;;;EAMV;;;;;;EAOA;;;;;;;;;;;;;EAcA;;;;;cAMW,oBAAoB,QAAQ;;;;;;;;;;;;cAc5B,mBAAmB;;;;;;;;;;;;;;;;;;;;;;EAsB9B;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;;;;;;EAcjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;;;;;;;;;EAiBjB;IACE;IACA,cAAc;IACd,eAAe"}
|
|
@@ -33,7 +33,7 @@ var price_alerts_pb_exports = /* @__PURE__ */ __exportAll({
|
|
|
33
33
|
/**
|
|
34
34
|
* Describes the file alerts/v1/price_alerts.proto.
|
|
35
35
|
*/
|
|
36
|
-
const file_alerts_v1_price_alerts = /*@__PURE__*/ fileDesc("
|
|
36
|
+
const file_alerts_v1_price_alerts = /*@__PURE__*/ fileDesc("ChxhbGVydHMvdjEvcHJpY2VfYWxlcnRzLnByb3RvEglhbGVydHMudjEiMQoLRXJyb3JEZXRhaWwSIgoEY29kZRgBIAEoDjIULmFsZXJ0cy52MS5FcnJvckNvZGUi6wMKClByaWNlQWxlcnQSEAoIYWxlcnRfaWQYASABKAYSEQoJc3ltYm9sX2lkGAIgASgNEiwKCWRpcmVjdGlvbhgDIAEoDjIZLmFsZXJ0cy52MS5BbGVydERpcmVjdGlvbhIxCgxwcmljZV9zb3VyY2UYBCABKA4yGy5hbGVydHMudjEuQWxlcnRQcmljZVNvdXJjZRITCgtwcmljZV90aWNrcxgFIAEoAxIdChVyZWZlcmVuY2VfcHJpY2VfdGlja3MYBiABKAMSDQoFYXJtZWQYByABKAgSJgoGc3RhdHVzGAggASgOMhYuYWxlcnRzLnYxLkFsZXJ0U3RhdHVzEikKCGNoYW5uZWxzGAkgAygOMhcuYWxlcnRzLnYx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b20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vYWxlcnRzL3YxO2FsZXJ0c3YxYgZwcm90bzM=", [
|
|
37
37
|
file_google_protobuf_field_mask,
|
|
38
38
|
file_google_protobuf_timestamp,
|
|
39
39
|
file_polyester_api_options
|
|
@@ -186,6 +186,21 @@ let ErrorCode = /* @__PURE__ */ function(ErrorCode) {
|
|
|
186
186
|
* @generated from enum value: ALERT_UPDATE_LIMIT_REACHED = 12;
|
|
187
187
|
*/
|
|
188
188
|
ErrorCode[ErrorCode["ALERT_UPDATE_LIMIT_REACHED"] = 12] = "ALERT_UPDATE_LIMIT_REACHED";
|
|
189
|
+
/**
|
|
190
|
+
* The alert asks for TELEGRAM, but no Telegram account is linked to the
|
|
191
|
+
* caller's account. Link Telegram in the account settings first, or choose
|
|
192
|
+
* IN_APP only.
|
|
193
|
+
*
|
|
194
|
+
* @generated from enum value: TELEGRAM_NOT_LINKED = 13;
|
|
195
|
+
*/
|
|
196
|
+
ErrorCode[ErrorCode["TELEGRAM_NOT_LINKED"] = 13] = "TELEGRAM_NOT_LINKED";
|
|
197
|
+
/**
|
|
198
|
+
* The alert asks for TELEGRAM, but Telegram delivery is not available in
|
|
199
|
+
* this environment. Choose IN_APP only.
|
|
200
|
+
*
|
|
201
|
+
* @generated from enum value: TELEGRAM_UNAVAILABLE = 14;
|
|
202
|
+
*/
|
|
203
|
+
ErrorCode[ErrorCode["TELEGRAM_UNAVAILABLE"] = 14] = "TELEGRAM_UNAVAILABLE";
|
|
189
204
|
return ErrorCode;
|
|
190
205
|
}({});
|
|
191
206
|
/**
|
|
@@ -351,7 +366,13 @@ let AlertChannel = /* @__PURE__ */ function(AlertChannel) {
|
|
|
351
366
|
AlertChannel[AlertChannel["IN_APP"] = 1] = "IN_APP";
|
|
352
367
|
/**
|
|
353
368
|
* A direct message from the Polyester Telegram bot to the Telegram account
|
|
354
|
-
* linked to the caller's account.
|
|
369
|
+
* linked to the caller's account. Creating or changing an alert that asks
|
|
370
|
+
* for it needs Telegram delivery to be available in the environment
|
|
371
|
+
* (TELEGRAM_UNAVAILABLE otherwise) and a linked Telegram account
|
|
372
|
+
* (TELEGRAM_NOT_LINKED otherwise).
|
|
373
|
+
* When a Telegram message cannot be delivered, for example because Telegram
|
|
374
|
+
* was unlinked after the alert was set, the fired alert is shown in the
|
|
375
|
+
* notification inbox instead.
|
|
355
376
|
*
|
|
356
377
|
* @generated from enum value: TELEGRAM = 2;
|
|
357
378
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"price_alerts_pb.js","names":[],"sources":["../../../../src/gen/alerts/v1/price_alerts_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file alerts/v1/price_alerts.proto (package alerts.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 { FieldMask, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_field_mask, 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 alerts/v1/price_alerts.proto.\n */\nexport const file_alerts_v1_price_alerts: GenFile = /*@__PURE__*/\n fileDesc(\"ChxhbGVydHMvdjEvcHJpY2VfYWxlcnRzLnByb3RvEglhbGVydHMudjEiMQoLRXJyb3JEZXRhaWwSIgoEY29kZRgBIAEoDjIULmFsZXJ0cy52MS5FcnJvckNvZGUi6wMKClByaWNlQWxlcnQSEAoIYWxlcnRfaWQYASABKAYSEQoJc3ltYm9sX2lkGAIgASgNEiwKCWRpcmVjdGlvbhgDIAEoDjIZLmFsZXJ0cy52MS5BbGVydERpcmVjdGlvbhIxCgxwcmljZV9zb3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VBbGVydFJlc3BvbnNlIgASUQoLQ2FuY2VsQWxlcnQSHS5hbGVydHMudjEuQ2FuY2VsQWxlcnRSZXF1ZXN0Gh4uYWxlcnRzLnYxLkNhbmNlbEFsZXJ0UmVzcG9uc2UiA5ACAhoAQkBaPmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vYWxlcnRzL3YxO2FsZXJ0c3YxYgZwcm90bzM=\", [file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * ErrorDetail is attached to Price Alert API errors as an error detail of\n * type alerts.v1.ErrorDetail.\n *\n * @generated from message alerts.v1.ErrorDetail\n */\nexport type ErrorDetail = Message<\"alerts.v1.ErrorDetail\"> & {\n /**\n * Stable error code.\n *\n * @generated from field: alerts.v1.ErrorCode code = 1;\n */\n code: ErrorCode;\n};\n\n/**\n * Describes the message alerts.v1.ErrorDetail.\n * Use `create(ErrorDetailSchema)` to create a new message.\n */\nexport const ErrorDetailSchema: GenMessage<ErrorDetail> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 0);\n\n/**\n * PriceAlert is one price alert of the caller.\n *\n * An alert fires only on a crossing it observes: it records the price when it\n * is created or set again (reference_price_ticks), and an alert whose\n * condition already holds at that price first waits for the price to move to\n * the other side of the alert price. A BELOW alert created while the price is\n * already below the alert price therefore fires only after the price rises\n * above it and falls back to it. An alert fires at most once; prices that\n * arrive late, or a feed that stops updating, never fire it.\n *\n * @generated from message alerts.v1.PriceAlert\n */\nexport type PriceAlert = Message<\"alerts.v1.PriceAlert\"> & {\n /**\n * Public alert ID.\n *\n * @generated from field: fixed64 alert_id = 1;\n */\n alertId: bigint;\n\n /**\n * Numeric spot market identifier; resolve its symbol with GetSpotConfig.\n *\n * @generated from field: uint32 symbol_id = 2;\n */\n symbolId: number;\n\n /**\n * Price crossing the alert waits for.\n *\n * @generated from field: alerts.v1.AlertDirection direction = 3;\n */\n direction: AlertDirection;\n\n /**\n * Price the alert watches.\n *\n * @generated from field: alerts.v1.AlertPriceSource price_source = 4;\n */\n priceSource: AlertPriceSource;\n\n /**\n * Alert price in quote units scaled by 1e9.\n *\n * @generated from field: int64 price_ticks = 5;\n */\n priceTicks: bigint;\n\n /**\n * Price of price_source when the alert was created or last set again, in\n * quote units scaled by 1e9.\n *\n * @generated from field: int64 reference_price_ticks = 6;\n */\n referencePriceTicks: bigint;\n\n /**\n * True once the price has been seen on the far side of the alert price, so\n * the next crossing fires the alert. False while an alert created past its\n * alert price waits for the price to move back.\n *\n * @generated from field: bool armed = 7;\n */\n armed: boolean;\n\n /**\n * Current state of the alert.\n *\n * @generated from field: alerts.v1.AlertStatus status = 8;\n */\n status: AlertStatus;\n\n /**\n * Where the alert is delivered when it fires, in ascending enum order.\n *\n * @generated from field: repeated alerts.v1.AlertChannel channels = 9;\n */\n channels: AlertChannel[];\n\n /**\n * Revision of the alert, starting at 1. It increases with every change the\n * caller makes; pass it as expected_revision to UpdateAlert.\n *\n * @generated from field: uint64 revision = 10;\n */\n revision: bigint;\n\n /**\n * When the alert was created.\n *\n * @generated from field: google.protobuf.Timestamp created_at = 11;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * When the caller last changed the alert.\n *\n * @generated from field: google.protobuf.Timestamp updated_at = 12;\n */\n updatedAt?: Timestamp | undefined;\n\n /**\n * When the alert fired. Omitted unless status is TRIGGERED.\n *\n * @generated from field: google.protobuf.Timestamp triggered_at = 13;\n */\n triggeredAt?: Timestamp | undefined;\n\n /**\n * Price that fired the alert, in quote units scaled by 1e9. Zero unless\n * status is TRIGGERED.\n *\n * @generated from field: int64 triggered_price_ticks = 14;\n */\n triggeredPriceTicks: bigint;\n};\n\n/**\n * Describes the message alerts.v1.PriceAlert.\n * Use `create(PriceAlertSchema)` to create a new message.\n */\nexport const PriceAlertSchema: GenMessage<PriceAlert> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 1);\n\n/**\n * CreateAlertRequest creates a price alert for the caller.\n *\n * @generated from message alerts.v1.CreateAlertRequest\n */\nexport type CreateAlertRequest = Message<\"alerts.v1.CreateAlertRequest\"> & {\n /**\n * Numeric spot market identifier; resolve it with GetSpotConfig.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Price crossing to wait for.\n *\n * @generated from field: alerts.v1.AlertDirection direction = 2;\n */\n direction: AlertDirection;\n\n /**\n * Price to watch. Unspecified means INDEX_PRICE on a market that has an\n * index price, which is harder to move on a thin market, and LAST_PRICE\n * otherwise; the returned alert states the price it watches.\n *\n * @generated from field: alerts.v1.AlertPriceSource price_source = 3;\n */\n priceSource: AlertPriceSource;\n\n /**\n * Alert price in quote units scaled by 1e9, for example 90000000000000 for\n * 90,000.\n *\n * @generated from field: int64 price_ticks = 4;\n */\n priceTicks: bigint;\n\n /**\n * Where to deliver the alert when it fires: one to two distinct channels.\n *\n * @generated from field: repeated alerts.v1.AlertChannel channels = 5;\n */\n channels: AlertChannel[];\n\n /**\n * Optional client-chosen key, unique per caller, that makes creating\n * idempotent: the same key and request return the alert the first request\n * created, in its current state; another request with the same key is\n * IDEMPOTENCY_CONFLICT. A create key is kept as long as its alert.\n *\n * @generated from field: string idempotency_key = 6;\n */\n idempotencyKey: string;\n};\n\n/**\n * Describes the message alerts.v1.CreateAlertRequest.\n * Use `create(CreateAlertRequestSchema)` to create a new message.\n */\nexport const CreateAlertRequestSchema: GenMessage<CreateAlertRequest> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 2);\n\n/**\n * CreateAlertResponse returns the created alert.\n *\n * @generated from message alerts.v1.CreateAlertResponse\n */\nexport type CreateAlertResponse = Message<\"alerts.v1.CreateAlertResponse\"> & {\n /**\n * The alert.\n *\n * @generated from field: alerts.v1.PriceAlert alert = 1;\n */\n alert?: PriceAlert | undefined;\n};\n\n/**\n * Describes the message alerts.v1.CreateAlertResponse.\n * Use `create(CreateAlertResponseSchema)` to create a new message.\n */\nexport const CreateAlertResponseSchema: GenMessage<CreateAlertResponse> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 3);\n\n/**\n * ListAlertsRequest lists the caller's alerts.\n *\n * @generated from message alerts.v1.ListAlertsRequest\n */\nexport type ListAlertsRequest = Message<\"alerts.v1.ListAlertsRequest\"> & {\n /**\n * Return only alerts in these states. Empty returns every state.\n *\n * @generated from field: repeated alerts.v1.AlertStatus statuses = 1;\n */\n statuses: AlertStatus[];\n\n /**\n * Return only alerts on this market. Zero returns every market.\n *\n * @generated from field: uint32 symbol_id = 2;\n */\n symbolId: number;\n\n /**\n * Maximum number of alerts to return: default 50, max 200.\n *\n * @generated from field: uint32 limit = 3;\n */\n limit: number;\n\n /**\n * Opaque, keyset-backed and exclusive cursor from a previous response's\n * next_page_token. It is bound to the caller, statuses and symbol_id; reuse\n * it only with the same values.\n *\n * @generated from field: string page_token = 4;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message alerts.v1.ListAlertsRequest.\n * Use `create(ListAlertsRequestSchema)` to create a new message.\n */\nexport const ListAlertsRequestSchema: GenMessage<ListAlertsRequest> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 4);\n\n/**\n * ListAlertsResponse returns one page of the caller's alerts.\n *\n * @generated from message alerts.v1.ListAlertsResponse\n */\nexport type ListAlertsResponse = Message<\"alerts.v1.ListAlertsResponse\"> & {\n /**\n * Alerts, newest first.\n *\n * @generated from field: repeated alerts.v1.PriceAlert alerts = 1;\n */\n alerts: PriceAlert[];\n\n /**\n * Cursor for the next page. Empty when no more results exist.\n *\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n};\n\n/**\n * Describes the message alerts.v1.ListAlertsResponse.\n * Use `create(ListAlertsResponseSchema)` to create a new message.\n */\nexport const ListAlertsResponseSchema: GenMessage<ListAlertsResponse> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 5);\n\n/**\n * AlertUpdate holds the fields UpdateAlert can change.\n *\n * @generated from message alerts.v1.AlertUpdate\n */\nexport type AlertUpdate = Message<\"alerts.v1.AlertUpdate\"> & {\n /**\n * New price crossing to wait for.\n *\n * @generated from field: alerts.v1.AlertDirection direction = 1;\n */\n direction: AlertDirection;\n\n /**\n * New alert price in quote units scaled by 1e9.\n *\n * @generated from field: int64 price_ticks = 2;\n */\n priceTicks: bigint;\n\n /**\n * New delivery channels: one to two distinct channels. Replaces the whole\n * list.\n *\n * @generated from field: repeated alerts.v1.AlertChannel channels = 3;\n */\n channels: AlertChannel[];\n};\n\n/**\n * Describes the message alerts.v1.AlertUpdate.\n * Use `create(AlertUpdateSchema)` to create a new message.\n */\nexport const AlertUpdateSchema: GenMessage<AlertUpdate> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 6);\n\n/**\n * UpdateAlertRequest changes an active or triggered alert of the caller.\n *\n * @generated from message alerts.v1.UpdateAlertRequest\n */\nexport type UpdateAlertRequest = Message<\"alerts.v1.UpdateAlertRequest\"> & {\n /**\n * Public alert ID.\n *\n * @generated from field: fixed64 alert_id = 1;\n */\n alertId: bigint;\n\n /**\n * New values of the fields update_mask names.\n *\n * @generated from field: alerts.v1.AlertUpdate update = 2;\n */\n update?: AlertUpdate | undefined;\n\n /**\n * Fields of update to apply, by name: direction, price_ticks and channels.\n * Required. An empty mask changes no field: it sets a TRIGGERED alert again\n * and changes nothing on an ACTIVE one.\n *\n * @generated from field: google.protobuf.FieldMask update_mask = 3;\n */\n updateMask?: FieldMask | undefined;\n\n /**\n * The alert's current revision, from the last read.\n *\n * @generated from field: uint64 expected_revision = 4;\n */\n expectedRevision: bigint;\n\n /**\n * Optional client-chosen key, unique per caller, that makes the update\n * idempotent: the same key and request (alert, update and update_mask;\n * expected_revision aside) return the alert in its current state and apply\n * nothing again, even after it fired or changed since; another request with\n * the same key is IDEMPOTENCY_CONFLICT. A key is kept as long as its alert,\n * so a repeat is recognized however late it comes. An alert keeps at most\n * 1,000 keys: an update with a new key beyond that is\n * ALERT_UPDATE_LIMIT_REACHED.\n *\n * @generated from field: string idempotency_key = 5;\n */\n idempotencyKey: string;\n};\n\n/**\n * Describes the message alerts.v1.UpdateAlertRequest.\n * Use `create(UpdateAlertRequestSchema)` to create a new message.\n */\nexport const UpdateAlertRequestSchema: GenMessage<UpdateAlertRequest> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 7);\n\n/**\n * UpdateAlertResponse returns the alert after the update.\n *\n * @generated from message alerts.v1.UpdateAlertResponse\n */\nexport type UpdateAlertResponse = Message<\"alerts.v1.UpdateAlertResponse\"> & {\n /**\n * The alert. For REPLAYED, the alert as it is now.\n *\n * @generated from field: alerts.v1.PriceAlert alert = 1;\n */\n alert?: PriceAlert | undefined;\n\n /**\n * What this call did.\n *\n * @generated from field: alerts.v1.UpdateOutcome outcome = 2;\n */\n outcome: UpdateOutcome;\n};\n\n/**\n * Describes the message alerts.v1.UpdateAlertResponse.\n * Use `create(UpdateAlertResponseSchema)` to create a new message.\n */\nexport const UpdateAlertResponseSchema: GenMessage<UpdateAlertResponse> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 8);\n\n/**\n * CancelAlertRequest cancels an active alert of the caller.\n *\n * @generated from message alerts.v1.CancelAlertRequest\n */\nexport type CancelAlertRequest = Message<\"alerts.v1.CancelAlertRequest\"> & {\n /**\n * Public alert ID.\n *\n * @generated from field: fixed64 alert_id = 1;\n */\n alertId: bigint;\n};\n\n/**\n * Describes the message alerts.v1.CancelAlertRequest.\n * Use `create(CancelAlertRequestSchema)` to create a new message.\n */\nexport const CancelAlertRequestSchema: GenMessage<CancelAlertRequest> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 9);\n\n/**\n * CancelAlertResponse returns the cancelled alert.\n *\n * @generated from message alerts.v1.CancelAlertResponse\n */\nexport type CancelAlertResponse = Message<\"alerts.v1.CancelAlertResponse\"> & {\n /**\n * The alert.\n *\n * @generated from field: alerts.v1.PriceAlert alert = 1;\n */\n alert?: PriceAlert | undefined;\n};\n\n/**\n * Describes the message alerts.v1.CancelAlertResponse.\n * Use `create(CancelAlertResponseSchema)` to create a new message.\n */\nexport const CancelAlertResponseSchema: GenMessage<CancelAlertResponse> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 10);\n\n/**\n * ErrorCode identifies a Price Alert API error.\n *\n * @generated from enum alerts.v1.ErrorCode\n */\nexport enum ErrorCode {\n /**\n * No code.\n *\n * @generated from enum value: ERROR_UNSPECIFIED = 0;\n */\n ERROR_UNSPECIFIED = 0,\n\n /**\n * No alert of the caller has this ID. Another account's alert is reported\n * the same way.\n *\n * @generated from enum value: ALERT_NOT_FOUND = 1;\n */\n ALERT_NOT_FOUND = 1,\n\n /**\n * The market is not listed.\n *\n * @generated from enum value: UNKNOWN_SYMBOL = 2;\n */\n UNKNOWN_SYMBOL = 2,\n\n /**\n * The market has no current price of the requested price source, so the\n * alert cannot record the price it starts from. Retry shortly.\n *\n * @generated from enum value: PRICE_UNAVAILABLE = 3;\n */\n PRICE_UNAVAILABLE = 3,\n\n /**\n * The market has no index price; use LAST_PRICE.\n *\n * @generated from enum value: PRICE_SOURCE_UNSUPPORTED = 4;\n */\n PRICE_SOURCE_UNSUPPORTED = 4,\n\n /**\n * The caller already has the maximum number of active alerts. Cancel one\n * first.\n *\n * @generated from enum value: ALERT_LIMIT_REACHED = 5;\n */\n ALERT_LIMIT_REACHED = 5,\n\n /**\n * The alert changed after the caller read it: expected_revision is not its\n * current revision. Read it again and retry.\n *\n * @generated from enum value: REVISION_CONFLICT = 6;\n */\n REVISION_CONFLICT = 6,\n\n /**\n * The alert was cancelled; it can no longer change.\n *\n * @generated from enum value: ALERT_CANCELLED = 7;\n */\n ALERT_CANCELLED = 7,\n\n /**\n * The alert already fired, so there is nothing to cancel. Update it to set\n * it again.\n *\n * @generated from enum value: ALERT_TRIGGERED = 8;\n */\n ALERT_TRIGGERED = 8,\n\n /**\n * The idempotency key was already used with a different request. The\n * original alert, or the original update, stands.\n *\n * @generated from enum value: IDEMPOTENCY_CONFLICT = 9;\n */\n IDEMPOTENCY_CONFLICT = 9,\n\n /**\n * A required service is temporarily unavailable; retry the same request.\n *\n * @generated from enum value: SERVICE_UNAVAILABLE = 10;\n */\n SERVICE_UNAVAILABLE = 10,\n\n /**\n * The API key is scoped to a subaccount. Price alerts belong to the root\n * account: use a session or an API key of the root account.\n *\n * @generated from enum value: SUBACCOUNT_KEY_REFUSED = 11;\n */\n SUBACCOUNT_KEY_REFUSED = 11,\n\n /**\n * The alert already holds the maximum number of update idempotency keys\n * (1,000), so an update with a new key is refused. Updates without a key,\n * and repeats of a stored key, still work; or create a new alert.\n *\n * @generated from enum value: ALERT_UPDATE_LIMIT_REACHED = 12;\n */\n ALERT_UPDATE_LIMIT_REACHED = 12,\n}\n\n/**\n * Describes the enum alerts.v1.ErrorCode.\n */\nexport const ErrorCodeSchema: GenEnum<ErrorCode> = /*@__PURE__*/\n enumDesc(file_alerts_v1_price_alerts, 0);\n\n/**\n * AlertDirection is the price crossing an alert waits for. Both directions\n * include the alert price itself, as stop and take-profit triggers do.\n *\n * @generated from enum alerts.v1.AlertDirection\n */\nexport enum AlertDirection {\n /**\n * Not set. Rejected in requests.\n *\n * @generated from enum value: DIRECTION_UNSPECIFIED = 0;\n */\n DIRECTION_UNSPECIFIED = 0,\n\n /**\n * Fires when the price rises to or above the alert price.\n *\n * @generated from enum value: ABOVE = 1;\n */\n ABOVE = 1,\n\n /**\n * Fires when the price falls to or below the alert price.\n *\n * @generated from enum value: BELOW = 2;\n */\n BELOW = 2,\n}\n\n/**\n * Describes the enum alerts.v1.AlertDirection.\n */\nexport const AlertDirectionSchema: GenEnum<AlertDirection> = /*@__PURE__*/\n enumDesc(file_alerts_v1_price_alerts, 1);\n\n/**\n * AlertPriceSource is the price an alert watches.\n *\n * @generated from enum alerts.v1.AlertPriceSource\n */\nexport enum AlertPriceSource {\n /**\n * Not set. In requests it means INDEX_PRICE on a market that has an index\n * price, and LAST_PRICE otherwise. Never returned.\n *\n * @generated from enum value: PRICE_SOURCE_UNSPECIFIED = 0;\n */\n PRICE_SOURCE_UNSPECIFIED = 0,\n\n /**\n * The market's last traded price.\n *\n * @generated from enum value: LAST_PRICE = 1;\n */\n LAST_PRICE = 1,\n\n /**\n * The market's index price: a fair price computed from other venues.\n * Available only on markets that have one.\n *\n * @generated from enum value: INDEX_PRICE = 2;\n */\n INDEX_PRICE = 2,\n}\n\n/**\n * Describes the enum alerts.v1.AlertPriceSource.\n */\nexport const AlertPriceSourceSchema: GenEnum<AlertPriceSource> = /*@__PURE__*/\n enumDesc(file_alerts_v1_price_alerts, 2);\n\n/**\n * AlertStatus is the state of an alert.\n *\n * @generated from enum alerts.v1.AlertStatus\n */\nexport enum AlertStatus {\n /**\n * Not set. Never returned.\n *\n * @generated from enum value: STATUS_UNSPECIFIED = 0;\n */\n STATUS_UNSPECIFIED = 0,\n\n /**\n * Waiting for its price crossing.\n *\n * @generated from enum value: ACTIVE = 1;\n */\n ACTIVE = 1,\n\n /**\n * Fired once and stopped. UpdateAlert sets it again.\n *\n * @generated from enum value: TRIGGERED = 2;\n */\n TRIGGERED = 2,\n\n /**\n * Cancelled. It never fires again.\n *\n * @generated from enum value: CANCELLED = 3;\n */\n CANCELLED = 3,\n}\n\n/**\n * Describes the enum alerts.v1.AlertStatus.\n */\nexport const AlertStatusSchema: GenEnum<AlertStatus> = /*@__PURE__*/\n enumDesc(file_alerts_v1_price_alerts, 3);\n\n/**\n * UpdateOutcome is what an UpdateAlert call did, as decided in the\n * transaction that answered it.\n *\n * @generated from enum alerts.v1.UpdateOutcome\n */\nexport enum UpdateOutcome {\n /**\n * Not set. Never returned.\n *\n * @generated from enum value: UPDATE_OUTCOME_UNSPECIFIED = 0;\n */\n UPDATE_OUTCOME_UNSPECIFIED = 0,\n\n /**\n * This call changed the alert.\n *\n * @generated from enum value: APPLIED = 1;\n */\n APPLIED = 1,\n\n /**\n * This call was processed now and changed nothing: the alert already held\n * the requested values.\n *\n * @generated from enum value: UNCHANGED = 2;\n */\n UNCHANGED = 2,\n\n /**\n * idempotency_key was already used for this request: nothing was applied\n * now, and the alert is returned as it is now, which may have fired or\n * changed since.\n *\n * @generated from enum value: REPLAYED = 3;\n */\n REPLAYED = 3,\n}\n\n/**\n * Describes the enum alerts.v1.UpdateOutcome.\n */\nexport const UpdateOutcomeSchema: GenEnum<UpdateOutcome> = /*@__PURE__*/\n enumDesc(file_alerts_v1_price_alerts, 4);\n\n/**\n * AlertChannel is where a fired alert is delivered.\n *\n * @generated from enum alerts.v1.AlertChannel\n */\nexport enum AlertChannel {\n /**\n * Not set. Rejected in requests.\n *\n * @generated from enum value: CHANNEL_UNSPECIFIED = 0;\n */\n CHANNEL_UNSPECIFIED = 0,\n\n /**\n * The notification inbox on the website and in the app.\n *\n * @generated from enum value: IN_APP = 1;\n */\n IN_APP = 1,\n\n /**\n * A direct message from the Polyester Telegram bot to the Telegram account\n * linked to the caller's account.\n *\n * @generated from enum value: TELEGRAM = 2;\n */\n TELEGRAM = 2,\n}\n\n/**\n * Describes the enum alerts.v1.AlertChannel.\n */\nexport const AlertChannelSchema: GenEnum<AlertChannel> = /*@__PURE__*/\n enumDesc(file_alerts_v1_price_alerts, 5);\n\n/**\n * PriceAlertService manages the caller's price alerts. An alert belongs to\n * the caller's root account, the person, not to a trading account: a session\n * and the root account's API keys see the same alerts, and an API key scoped\n * to a subaccount is refused (PERMISSION_DENIED, SUBACCOUNT_KEY_REFUSED). An\n * API key also needs its policy to grant the call's permission: READ_PRICE_ALERTS\n * to list alerts, MANAGE_PRICE_ALERTS to create, update or cancel them. No\n * call changes balances, orders or account settings.\n *\n * @generated from service alerts.v1.PriceAlertService\n */\nexport const PriceAlertService: GenService<{\n /**\n * CreateAlert creates an active alert and records the current price of its\n * price source as its reference price. An alert whose condition already\n * holds at that price waits for the price to cross back first.\n *\n * Errors:\n * - INVALID_ARGUMENT: malformed request, or UNKNOWN_SYMBOL.\n * - FAILED_PRECONDITION: PRICE_SOURCE_UNSUPPORTED (INDEX_PRICE requested on\n * a market without one), or ALERT_LIMIT_REACHED.\n * - ALREADY_EXISTS: IDEMPOTENCY_CONFLICT; the original alert stands.\n * - UNAVAILABLE: PRICE_UNAVAILABLE or SERVICE_UNAVAILABLE; retry the same\n * request.\n * - PERMISSION_DENIED: SUBACCOUNT_KEY_REFUSED, or AUTH_API_KEY_ACCESS_DENIED\n * when the API key's policy does not grant MANAGE_PRICE_ALERTS.\n * - UNAUTHENTICATED: missing or invalid credentials.\n *\n * @generated from rpc alerts.v1.PriceAlertService.CreateAlert\n */\n createAlert: {\n methodKind: \"unary\";\n input: typeof CreateAlertRequestSchema;\n output: typeof CreateAlertResponseSchema;\n },\n /**\n * ListAlerts lists the caller's alerts, newest first.\n *\n * Errors:\n * - INVALID_ARGUMENT: malformed request or page token.\n * - UNAVAILABLE: SERVICE_UNAVAILABLE; retry.\n * - PERMISSION_DENIED: SUBACCOUNT_KEY_REFUSED, or AUTH_API_KEY_ACCESS_DENIED\n * when the API key's policy does not grant READ_PRICE_ALERTS.\n * - UNAUTHENTICATED: missing or invalid credentials.\n *\n * @generated from rpc alerts.v1.PriceAlertService.ListAlerts\n */\n listAlerts: {\n methodKind: \"unary\";\n input: typeof ListAlertsRequestSchema;\n output: typeof ListAlertsResponseSchema;\n },\n /**\n * UpdateAlert changes an alert's direction, price or channels. A change of\n * direction or price records a new reference price, as creating does.\n * Updating a TRIGGERED alert sets it again: it becomes ACTIVE with a new\n * reference price, even when no field changes; an empty update_mask does\n * only that. An update that changes nothing on an ACTIVE alert returns it\n * unchanged. With an idempotency_key\n * already used for the same request, it returns the alert as it is now and\n * changes nothing: a retried or replayed update never sets the alert again.\n *\n * Errors:\n * - INVALID_ARGUMENT: malformed request or update_mask.\n * - NOT_FOUND: ALERT_NOT_FOUND.\n * - ALREADY_EXISTS: IDEMPOTENCY_CONFLICT.\n * - ABORTED: REVISION_CONFLICT.\n * - FAILED_PRECONDITION: ALERT_CANCELLED, PRICE_SOURCE_UNSUPPORTED,\n * ALERT_LIMIT_REACHED or ALERT_UPDATE_LIMIT_REACHED.\n * - UNAVAILABLE: PRICE_UNAVAILABLE or SERVICE_UNAVAILABLE; retry.\n * - PERMISSION_DENIED: SUBACCOUNT_KEY_REFUSED, or AUTH_API_KEY_ACCESS_DENIED\n * when the API key's policy does not grant MANAGE_PRICE_ALERTS.\n * - UNAUTHENTICATED: missing or invalid credentials.\n *\n * @generated from rpc alerts.v1.PriceAlertService.UpdateAlert\n */\n updateAlert: {\n methodKind: \"unary\";\n input: typeof UpdateAlertRequestSchema;\n output: typeof UpdateAlertResponseSchema;\n },\n /**\n * CancelAlert cancels an active alert. Cancelling a cancelled alert returns\n * it unchanged.\n *\n * Errors:\n * - INVALID_ARGUMENT: malformed request.\n * - NOT_FOUND: ALERT_NOT_FOUND.\n * - FAILED_PRECONDITION: ALERT_TRIGGERED; the alert already fired.\n * - UNAVAILABLE: SERVICE_UNAVAILABLE; retry.\n * - PERMISSION_DENIED: SUBACCOUNT_KEY_REFUSED, or AUTH_API_KEY_ACCESS_DENIED\n * when the API key's policy does not grant MANAGE_PRICE_ALERTS.\n * - UNAUTHENTICATED: missing or invalid credentials.\n *\n * @generated from rpc alerts.v1.PriceAlertService.CancelAlert\n */\n cancelAlert: {\n methodKind: \"unary\";\n input: typeof CancelAlertRequestSchema;\n output: typeof CancelAlertResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_alerts_v1_price_alerts, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,8BACX,uBAAS,wmHAAwmH;CAAC;CAAiC;CAAgC;AAA0B,CAAC;;;;;AAqBhtH,MAAa,oBACX,0BAAY,6BAA6B,CAAC;;;;;AA4H5C,MAAa,mBACX,0BAAY,6BAA6B,CAAC;;;;;AA6D5C,MAAa,2BACX,0BAAY,6BAA6B,CAAC;;;;;AAoB5C,MAAa,4BACX,0BAAY,6BAA6B,CAAC;;;;;AA2C5C,MAAa,0BACX,0BAAY,6BAA6B,CAA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QA,iBAAA,iBAAA,iBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,yBACX,uBAAS,6BAA6B,CAAC;;;;;;AAOzC,IAAY,cAAL,yBAAA,aAAA;;;;;;CAML,YAAA,YAAA,wBAAA,KAAA;;;;;;CAOA,YAAA,YAAA,YAAA,KAAA;;;;;;CAOA,YAAA,YAAA,eAAA,KAAA;;;;;;CAOA,YAAA,YAAA,eAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,oBACX,uBAAS,6BAA6B,CAAC;;;;;;;AAQzC,IAAY,gBAAL,yBAAA,eAAA;;;;;;CAML,cAAA,cAAA,gCAAA,KAAA;;;;;;CAOA,cAAA,cAAA,aAAA,KAAA;;;;;;;CAQA,cAAA,cAAA,eAAA,KAAA;;;;;;;;CASA,cAAA,cAAA,cAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,sBACX,uBAAS,6BAA6B,CAAC;;;;;;AAOzC,IAAY,eAAL,yBAAA,cAAA;;;;;;CAML,aAAA,aAAA,yBAAA,KAAA;;;;;;CAOA,aAAA,aAAA,YAAA,KAAA;;;;;;;CAQA,aAAA,aAAA,cAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,qBACX,uBAAS,6BAA6B,CAAC;;;;;;;;;;;;AAazC,MAAa,oBA2FX,0BAAY,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"price_alerts_pb.js","names":[],"sources":["../../../../src/gen/alerts/v1/price_alerts_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file alerts/v1/price_alerts.proto (package alerts.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 { FieldMask, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_field_mask, 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 alerts/v1/price_alerts.proto.\n */\nexport const file_alerts_v1_price_alerts: GenFile = /*@__PURE__*/\n fileDesc(\"ChxhbGVydHMvdjEvcHJpY2VfYWxlcnRzLnByb3RvEglhbGVydHMudjEiMQoLRXJyb3JEZXRhaWwSIgoEY29kZRgBIAEoDjIULmFsZXJ0cy52MS5FcnJvckNvZGUi6wMKClByaWNlQWxlcnQSEAoIYWxlcnRfaWQYASABKAYSEQoJc3ltYm9sX2lkGAIgASgNEiwKCWRpcmVjdGlvbhgDIAEoDjIZLmFsZXJ0cy52MS5BbGVydERpcmVjdGlvbhIxCgxwcmljZV9zb3VyY2UYBCABKA4yGy5hbGVydHMudjEuQWxlcnRQcmljZVNvdXJjZRITCgtwcmljZV90aWNrcxgFIAEoAxIdChVyZWZlcmVuY2VfcHJpY2VfdGlja3MYBiABKAMSDQoFYXJtZWQYByABKAgSJgoGc3RhdHVzGAggASgOMhYuYWxlcnRzLnYxLkFsZXJ0U3RhdHVzEikKCGNoYW5uZWxzGAkgAygOMhcuYWxlcnRzLnYxLkFsZXJ0Q2hhbm5lbBIQCghyZXZpc2lvbhgKIAEoBBIuCgpjcmVhdGVkX2F0GAsgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAwgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIwCgx0cmlnZ2VyZWRfYXQYDSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEh0KFXRyaWdnZXJlZF9wcmljZV90aWNrcxgOIAEoAyLtAQoSQ3JlYXRlQWxlcnRSZXF1ZXN0EhMKCXN5bWJvbF9pZBgBIAEoDUIAEi4KCWRpcmVjdGlvbhg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RlT3V0Y29tZRIeChpVUERBVEVfT1VUQ09NRV9VTlNQRUNJRklFRBAAEgsKB0FQUExJRUQQARINCglVTkNIQU5HRUQQAhIMCghSRVBMQVlFRBADKkEKDEFsZXJ0Q2hhbm5lbBIXChNDSEFOTkVMX1VOU1BFQ0lGSUVEEAASCgoGSU5fQVBQEAESDAoIVEVMRUdSQU0QAjLYAgoRUHJpY2VBbGVydFNlcnZpY2USTgoLQ3JlYXRlQWxlcnQSHS5hbGVydHMudjEuQ3JlYXRlQWxlcnRSZXF1ZXN0Gh4uYWxlcnRzLnYxLkNyZWF0ZUFsZXJ0UmVzcG9uc2UiABJOCgpMaXN0QWxlcnRzEhwuYWxlcnRzLnYxLkxpc3RBbGVydHNSZXF1ZXN0Gh0uYWxlcnRzLnYxLkxpc3RBbGVydHNSZXNwb25zZSIDkAIBEk4KC1VwZGF0ZUFsZXJ0Eh0uYWxlcnRzLnYxLlVwZGF0ZUFsZXJ0UmVxdWVzdBoeLmFsZXJ0cy52MS5VcGRhdGVBbGVydFJlc3BvbnNlIgASUQoLQ2FuY2VsQWxlcnQSHS5hbGVydHMudjEuQ2FuY2VsQWxlcnRSZXF1ZXN0Gh4uYWxlcnRzLnYxLkNhbmNlbEFsZXJ0UmVzcG9uc2UiA5ACAhoAQkBaPmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vYWxlcnRzL3YxO2FsZXJ0c3YxYgZwcm90bzM=\", [file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * ErrorDetail is attached to Price Alert API errors as an error detail of\n * type alerts.v1.ErrorDetail.\n *\n * @generated from message alerts.v1.ErrorDetail\n */\nexport type ErrorDetail = Message<\"alerts.v1.ErrorDetail\"> & {\n /**\n * Stable error code.\n *\n * @generated from field: alerts.v1.ErrorCode code = 1;\n */\n code: ErrorCode;\n};\n\n/**\n * Describes the message alerts.v1.ErrorDetail.\n * Use `create(ErrorDetailSchema)` to create a new message.\n */\nexport const ErrorDetailSchema: GenMessage<ErrorDetail> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 0);\n\n/**\n * PriceAlert is one price alert of the caller.\n *\n * An alert fires only on a crossing it observes: it records the price when it\n * is created or set again (reference_price_ticks), and an alert whose\n * condition already holds at that price first waits for the price to move to\n * the other side of the alert price. A BELOW alert created while the price is\n * already below the alert price therefore fires only after the price rises\n * above it and falls back to it. An alert fires at most once; prices that\n * arrive late, or a feed that stops updating, never fire it.\n *\n * @generated from message alerts.v1.PriceAlert\n */\nexport type PriceAlert = Message<\"alerts.v1.PriceAlert\"> & {\n /**\n * Public alert ID.\n *\n * @generated from field: fixed64 alert_id = 1;\n */\n alertId: bigint;\n\n /**\n * Numeric spot market identifier; resolve its symbol with GetSpotConfig.\n *\n * @generated from field: uint32 symbol_id = 2;\n */\n symbolId: number;\n\n /**\n * Price crossing the alert waits for.\n *\n * @generated from field: alerts.v1.AlertDirection direction = 3;\n */\n direction: AlertDirection;\n\n /**\n * Price the alert watches.\n *\n * @generated from field: alerts.v1.AlertPriceSource price_source = 4;\n */\n priceSource: AlertPriceSource;\n\n /**\n * Alert price in quote units scaled by 1e9.\n *\n * @generated from field: int64 price_ticks = 5;\n */\n priceTicks: bigint;\n\n /**\n * Price of price_source when the alert was created or last set again, in\n * quote units scaled by 1e9.\n *\n * @generated from field: int64 reference_price_ticks = 6;\n */\n referencePriceTicks: bigint;\n\n /**\n * True once the price has been seen on the far side of the alert price, so\n * the next crossing fires the alert. False while an alert created past its\n * alert price waits for the price to move back.\n *\n * @generated from field: bool armed = 7;\n */\n armed: boolean;\n\n /**\n * Current state of the alert.\n *\n * @generated from field: alerts.v1.AlertStatus status = 8;\n */\n status: AlertStatus;\n\n /**\n * Where the alert is delivered when it fires, in ascending enum order.\n *\n * @generated from field: repeated alerts.v1.AlertChannel channels = 9;\n */\n channels: AlertChannel[];\n\n /**\n * Revision of the alert, starting at 1. It increases with every change the\n * caller makes; pass it as expected_revision to UpdateAlert.\n *\n * @generated from field: uint64 revision = 10;\n */\n revision: bigint;\n\n /**\n * When the alert was created.\n *\n * @generated from field: google.protobuf.Timestamp created_at = 11;\n */\n createdAt?: Timestamp | undefined;\n\n /**\n * When the caller last changed the alert.\n *\n * @generated from field: google.protobuf.Timestamp updated_at = 12;\n */\n updatedAt?: Timestamp | undefined;\n\n /**\n * When the alert fired. Omitted unless status is TRIGGERED.\n *\n * @generated from field: google.protobuf.Timestamp triggered_at = 13;\n */\n triggeredAt?: Timestamp | undefined;\n\n /**\n * Price that fired the alert, in quote units scaled by 1e9. Zero unless\n * status is TRIGGERED.\n *\n * @generated from field: int64 triggered_price_ticks = 14;\n */\n triggeredPriceTicks: bigint;\n};\n\n/**\n * Describes the message alerts.v1.PriceAlert.\n * Use `create(PriceAlertSchema)` to create a new message.\n */\nexport const PriceAlertSchema: GenMessage<PriceAlert> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 1);\n\n/**\n * CreateAlertRequest creates a price alert for the caller.\n *\n * @generated from message alerts.v1.CreateAlertRequest\n */\nexport type CreateAlertRequest = Message<\"alerts.v1.CreateAlertRequest\"> & {\n /**\n * Numeric spot market identifier; resolve it with GetSpotConfig.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Price crossing to wait for.\n *\n * @generated from field: alerts.v1.AlertDirection direction = 2;\n */\n direction: AlertDirection;\n\n /**\n * Price to watch. Unspecified means INDEX_PRICE on a market that has an\n * index price, which is harder to move on a thin market, and LAST_PRICE\n * otherwise; the returned alert states the price it watches.\n *\n * @generated from field: alerts.v1.AlertPriceSource price_source = 3;\n */\n priceSource: AlertPriceSource;\n\n /**\n * Alert price in quote units scaled by 1e9, for example 90000000000000 for\n * 90,000.\n *\n * @generated from field: int64 price_ticks = 4;\n */\n priceTicks: bigint;\n\n /**\n * Where to deliver the alert when it fires: one to two distinct channels.\n *\n * @generated from field: repeated alerts.v1.AlertChannel channels = 5;\n */\n channels: AlertChannel[];\n\n /**\n * Optional client-chosen key, unique per caller, that makes creating\n * idempotent: the same key and request return the alert the first request\n * created, in its current state; another request with the same key is\n * IDEMPOTENCY_CONFLICT. A create key is kept as long as its alert.\n *\n * @generated from field: string idempotency_key = 6;\n */\n idempotencyKey: string;\n};\n\n/**\n * Describes the message alerts.v1.CreateAlertRequest.\n * Use `create(CreateAlertRequestSchema)` to create a new message.\n */\nexport const CreateAlertRequestSchema: GenMessage<CreateAlertRequest> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 2);\n\n/**\n * CreateAlertResponse returns the created alert.\n *\n * @generated from message alerts.v1.CreateAlertResponse\n */\nexport type CreateAlertResponse = Message<\"alerts.v1.CreateAlertResponse\"> & {\n /**\n * The alert.\n *\n * @generated from field: alerts.v1.PriceAlert alert = 1;\n */\n alert?: PriceAlert | undefined;\n};\n\n/**\n * Describes the message alerts.v1.CreateAlertResponse.\n * Use `create(CreateAlertResponseSchema)` to create a new message.\n */\nexport const CreateAlertResponseSchema: GenMessage<CreateAlertResponse> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 3);\n\n/**\n * ListAlertsRequest lists the caller's alerts.\n *\n * @generated from message alerts.v1.ListAlertsRequest\n */\nexport type ListAlertsRequest = Message<\"alerts.v1.ListAlertsRequest\"> & {\n /**\n * Return only alerts in these states. Empty returns every state.\n *\n * @generated from field: repeated alerts.v1.AlertStatus statuses = 1;\n */\n statuses: AlertStatus[];\n\n /**\n * Return only alerts on this market. Zero returns every market.\n *\n * @generated from field: uint32 symbol_id = 2;\n */\n symbolId: number;\n\n /**\n * Maximum number of alerts to return: default 50, max 200.\n *\n * @generated from field: uint32 limit = 3;\n */\n limit: number;\n\n /**\n * Opaque, keyset-backed and exclusive cursor from a previous response's\n * next_page_token. It is bound to the caller, statuses and symbol_id; reuse\n * it only with the same values.\n *\n * @generated from field: string page_token = 4;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message alerts.v1.ListAlertsRequest.\n * Use `create(ListAlertsRequestSchema)` to create a new message.\n */\nexport const ListAlertsRequestSchema: GenMessage<ListAlertsRequest> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 4);\n\n/**\n * ListAlertsResponse returns one page of the caller's alerts.\n *\n * @generated from message alerts.v1.ListAlertsResponse\n */\nexport type ListAlertsResponse = Message<\"alerts.v1.ListAlertsResponse\"> & {\n /**\n * Alerts, newest first.\n *\n * @generated from field: repeated alerts.v1.PriceAlert alerts = 1;\n */\n alerts: PriceAlert[];\n\n /**\n * Cursor for the next page. Empty when no more results exist.\n *\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n};\n\n/**\n * Describes the message alerts.v1.ListAlertsResponse.\n * Use `create(ListAlertsResponseSchema)` to create a new message.\n */\nexport const ListAlertsResponseSchema: GenMessage<ListAlertsResponse> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 5);\n\n/**\n * AlertUpdate holds the fields UpdateAlert can change.\n *\n * @generated from message alerts.v1.AlertUpdate\n */\nexport type AlertUpdate = Message<\"alerts.v1.AlertUpdate\"> & {\n /**\n * New price crossing to wait for.\n *\n * @generated from field: alerts.v1.AlertDirection direction = 1;\n */\n direction: AlertDirection;\n\n /**\n * New alert price in quote units scaled by 1e9.\n *\n * @generated from field: int64 price_ticks = 2;\n */\n priceTicks: bigint;\n\n /**\n * New delivery channels: one to two distinct channels. Replaces the whole\n * list.\n *\n * @generated from field: repeated alerts.v1.AlertChannel channels = 3;\n */\n channels: AlertChannel[];\n};\n\n/**\n * Describes the message alerts.v1.AlertUpdate.\n * Use `create(AlertUpdateSchema)` to create a new message.\n */\nexport const AlertUpdateSchema: GenMessage<AlertUpdate> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 6);\n\n/**\n * UpdateAlertRequest changes an active or triggered alert of the caller.\n *\n * @generated from message alerts.v1.UpdateAlertRequest\n */\nexport type UpdateAlertRequest = Message<\"alerts.v1.UpdateAlertRequest\"> & {\n /**\n * Public alert ID.\n *\n * @generated from field: fixed64 alert_id = 1;\n */\n alertId: bigint;\n\n /**\n * New values of the fields update_mask names.\n *\n * @generated from field: alerts.v1.AlertUpdate update = 2;\n */\n update?: AlertUpdate | undefined;\n\n /**\n * Fields of update to apply, by name: direction, price_ticks and channels.\n * Required. An empty mask changes no field: it sets a TRIGGERED alert again\n * and changes nothing on an ACTIVE one.\n *\n * @generated from field: google.protobuf.FieldMask update_mask = 3;\n */\n updateMask?: FieldMask | undefined;\n\n /**\n * The alert's current revision, from the last read.\n *\n * @generated from field: uint64 expected_revision = 4;\n */\n expectedRevision: bigint;\n\n /**\n * Optional client-chosen key, unique per caller, that makes the update\n * idempotent: the same key and request (alert, update and update_mask;\n * expected_revision aside) return the alert in its current state and apply\n * nothing again, even after it fired or changed since; another request with\n * the same key is IDEMPOTENCY_CONFLICT. A key is kept as long as its alert,\n * so a repeat is recognized however late it comes. An alert keeps at most\n * 1,000 keys: an update with a new key beyond that is\n * ALERT_UPDATE_LIMIT_REACHED.\n *\n * @generated from field: string idempotency_key = 5;\n */\n idempotencyKey: string;\n};\n\n/**\n * Describes the message alerts.v1.UpdateAlertRequest.\n * Use `create(UpdateAlertRequestSchema)` to create a new message.\n */\nexport const UpdateAlertRequestSchema: GenMessage<UpdateAlertRequest> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 7);\n\n/**\n * UpdateAlertResponse returns the alert after the update.\n *\n * @generated from message alerts.v1.UpdateAlertResponse\n */\nexport type UpdateAlertResponse = Message<\"alerts.v1.UpdateAlertResponse\"> & {\n /**\n * The alert. For REPLAYED, the alert as it is now.\n *\n * @generated from field: alerts.v1.PriceAlert alert = 1;\n */\n alert?: PriceAlert | undefined;\n\n /**\n * What this call did.\n *\n * @generated from field: alerts.v1.UpdateOutcome outcome = 2;\n */\n outcome: UpdateOutcome;\n};\n\n/**\n * Describes the message alerts.v1.UpdateAlertResponse.\n * Use `create(UpdateAlertResponseSchema)` to create a new message.\n */\nexport const UpdateAlertResponseSchema: GenMessage<UpdateAlertResponse> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 8);\n\n/**\n * CancelAlertRequest cancels an active alert of the caller.\n *\n * @generated from message alerts.v1.CancelAlertRequest\n */\nexport type CancelAlertRequest = Message<\"alerts.v1.CancelAlertRequest\"> & {\n /**\n * Public alert ID.\n *\n * @generated from field: fixed64 alert_id = 1;\n */\n alertId: bigint;\n};\n\n/**\n * Describes the message alerts.v1.CancelAlertRequest.\n * Use `create(CancelAlertRequestSchema)` to create a new message.\n */\nexport const CancelAlertRequestSchema: GenMessage<CancelAlertRequest> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 9);\n\n/**\n * CancelAlertResponse returns the cancelled alert.\n *\n * @generated from message alerts.v1.CancelAlertResponse\n */\nexport type CancelAlertResponse = Message<\"alerts.v1.CancelAlertResponse\"> & {\n /**\n * The alert.\n *\n * @generated from field: alerts.v1.PriceAlert alert = 1;\n */\n alert?: PriceAlert | undefined;\n};\n\n/**\n * Describes the message alerts.v1.CancelAlertResponse.\n * Use `create(CancelAlertResponseSchema)` to create a new message.\n */\nexport const CancelAlertResponseSchema: GenMessage<CancelAlertResponse> = /*@__PURE__*/\n messageDesc(file_alerts_v1_price_alerts, 10);\n\n/**\n * ErrorCode identifies a Price Alert API error.\n *\n * @generated from enum alerts.v1.ErrorCode\n */\nexport enum ErrorCode {\n /**\n * No code.\n *\n * @generated from enum value: ERROR_UNSPECIFIED = 0;\n */\n ERROR_UNSPECIFIED = 0,\n\n /**\n * No alert of the caller has this ID. Another account's alert is reported\n * the same way.\n *\n * @generated from enum value: ALERT_NOT_FOUND = 1;\n */\n ALERT_NOT_FOUND = 1,\n\n /**\n * The market is not listed.\n *\n * @generated from enum value: UNKNOWN_SYMBOL = 2;\n */\n UNKNOWN_SYMBOL = 2,\n\n /**\n * The market has no current price of the requested price source, so the\n * alert cannot record the price it starts from. Retry shortly.\n *\n * @generated from enum value: PRICE_UNAVAILABLE = 3;\n */\n PRICE_UNAVAILABLE = 3,\n\n /**\n * The market has no index price; use LAST_PRICE.\n *\n * @generated from enum value: PRICE_SOURCE_UNSUPPORTED = 4;\n */\n PRICE_SOURCE_UNSUPPORTED = 4,\n\n /**\n * The caller already has the maximum number of active alerts. Cancel one\n * first.\n *\n * @generated from enum value: ALERT_LIMIT_REACHED = 5;\n */\n ALERT_LIMIT_REACHED = 5,\n\n /**\n * The alert changed after the caller read it: expected_revision is not its\n * current revision. Read it again and retry.\n *\n * @generated from enum value: REVISION_CONFLICT = 6;\n */\n REVISION_CONFLICT = 6,\n\n /**\n * The alert was cancelled; it can no longer change.\n *\n * @generated from enum value: ALERT_CANCELLED = 7;\n */\n ALERT_CANCELLED = 7,\n\n /**\n * The alert already fired, so there is nothing to cancel. Update it to set\n * it again.\n *\n * @generated from enum value: ALERT_TRIGGERED = 8;\n */\n ALERT_TRIGGERED = 8,\n\n /**\n * The idempotency key was already used with a different request. The\n * original alert, or the original update, stands.\n *\n * @generated from enum value: IDEMPOTENCY_CONFLICT = 9;\n */\n IDEMPOTENCY_CONFLICT = 9,\n\n /**\n * A required service is temporarily unavailable; retry the same request.\n *\n * @generated from enum value: SERVICE_UNAVAILABLE = 10;\n */\n SERVICE_UNAVAILABLE = 10,\n\n /**\n * The API key is scoped to a subaccount. Price alerts belong to the root\n * account: use a session or an API key of the root account.\n *\n * @generated from enum value: SUBACCOUNT_KEY_REFUSED = 11;\n */\n SUBACCOUNT_KEY_REFUSED = 11,\n\n /**\n * The alert already holds the maximum number of update idempotency keys\n * (1,000), so an update with a new key is refused. Updates without a key,\n * and repeats of a stored key, still work; or create a new alert.\n *\n * @generated from enum value: ALERT_UPDATE_LIMIT_REACHED = 12;\n */\n ALERT_UPDATE_LIMIT_REACHED = 12,\n\n /**\n * The alert asks for TELEGRAM, but no Telegram account is linked to the\n * caller's account. Link Telegram in the account settings first, or choose\n * IN_APP only.\n *\n * @generated from enum value: TELEGRAM_NOT_LINKED = 13;\n */\n TELEGRAM_NOT_LINKED = 13,\n\n /**\n * The alert asks for TELEGRAM, but Telegram delivery is not available in\n * this environment. Choose IN_APP only.\n *\n * @generated from enum value: TELEGRAM_UNAVAILABLE = 14;\n */\n TELEGRAM_UNAVAILABLE = 14,\n}\n\n/**\n * Describes the enum alerts.v1.ErrorCode.\n */\nexport const ErrorCodeSchema: GenEnum<ErrorCode> = /*@__PURE__*/\n enumDesc(file_alerts_v1_price_alerts, 0);\n\n/**\n * AlertDirection is the price crossing an alert waits for. Both directions\n * include the alert price itself, as stop and take-profit triggers do.\n *\n * @generated from enum alerts.v1.AlertDirection\n */\nexport enum AlertDirection {\n /**\n * Not set. Rejected in requests.\n *\n * @generated from enum value: DIRECTION_UNSPECIFIED = 0;\n */\n DIRECTION_UNSPECIFIED = 0,\n\n /**\n * Fires when the price rises to or above the alert price.\n *\n * @generated from enum value: ABOVE = 1;\n */\n ABOVE = 1,\n\n /**\n * Fires when the price falls to or below the alert price.\n *\n * @generated from enum value: BELOW = 2;\n */\n BELOW = 2,\n}\n\n/**\n * Describes the enum alerts.v1.AlertDirection.\n */\nexport const AlertDirectionSchema: GenEnum<AlertDirection> = /*@__PURE__*/\n enumDesc(file_alerts_v1_price_alerts, 1);\n\n/**\n * AlertPriceSource is the price an alert watches.\n *\n * @generated from enum alerts.v1.AlertPriceSource\n */\nexport enum AlertPriceSource {\n /**\n * Not set. In requests it means INDEX_PRICE on a market that has an index\n * price, and LAST_PRICE otherwise. Never returned.\n *\n * @generated from enum value: PRICE_SOURCE_UNSPECIFIED = 0;\n */\n PRICE_SOURCE_UNSPECIFIED = 0,\n\n /**\n * The market's last traded price.\n *\n * @generated from enum value: LAST_PRICE = 1;\n */\n LAST_PRICE = 1,\n\n /**\n * The market's index price: a fair price computed from other venues.\n * Available only on markets that have one.\n *\n * @generated from enum value: INDEX_PRICE = 2;\n */\n INDEX_PRICE = 2,\n}\n\n/**\n * Describes the enum alerts.v1.AlertPriceSource.\n */\nexport const AlertPriceSourceSchema: GenEnum<AlertPriceSource> = /*@__PURE__*/\n enumDesc(file_alerts_v1_price_alerts, 2);\n\n/**\n * AlertStatus is the state of an alert.\n *\n * @generated from enum alerts.v1.AlertStatus\n */\nexport enum AlertStatus {\n /**\n * Not set. Never returned.\n *\n * @generated from enum value: STATUS_UNSPECIFIED = 0;\n */\n STATUS_UNSPECIFIED = 0,\n\n /**\n * Waiting for its price crossing.\n *\n * @generated from enum value: ACTIVE = 1;\n */\n ACTIVE = 1,\n\n /**\n * Fired once and stopped. UpdateAlert sets it again.\n *\n * @generated from enum value: TRIGGERED = 2;\n */\n TRIGGERED = 2,\n\n /**\n * Cancelled. It never fires again.\n *\n * @generated from enum value: CANCELLED = 3;\n */\n CANCELLED = 3,\n}\n\n/**\n * Describes the enum alerts.v1.AlertStatus.\n */\nexport const AlertStatusSchema: GenEnum<AlertStatus> = /*@__PURE__*/\n enumDesc(file_alerts_v1_price_alerts, 3);\n\n/**\n * UpdateOutcome is what an UpdateAlert call did, as decided in the\n * transaction that answered it.\n *\n * @generated from enum alerts.v1.UpdateOutcome\n */\nexport enum UpdateOutcome {\n /**\n * Not set. Never returned.\n *\n * @generated from enum value: UPDATE_OUTCOME_UNSPECIFIED = 0;\n */\n UPDATE_OUTCOME_UNSPECIFIED = 0,\n\n /**\n * This call changed the alert.\n *\n * @generated from enum value: APPLIED = 1;\n */\n APPLIED = 1,\n\n /**\n * This call was processed now and changed nothing: the alert already held\n * the requested values.\n *\n * @generated from enum value: UNCHANGED = 2;\n */\n UNCHANGED = 2,\n\n /**\n * idempotency_key was already used for this request: nothing was applied\n * now, and the alert is returned as it is now, which may have fired or\n * changed since.\n *\n * @generated from enum value: REPLAYED = 3;\n */\n REPLAYED = 3,\n}\n\n/**\n * Describes the enum alerts.v1.UpdateOutcome.\n */\nexport const UpdateOutcomeSchema: GenEnum<UpdateOutcome> = /*@__PURE__*/\n enumDesc(file_alerts_v1_price_alerts, 4);\n\n/**\n * AlertChannel is where a fired alert is delivered.\n *\n * @generated from enum alerts.v1.AlertChannel\n */\nexport enum AlertChannel {\n /**\n * Not set. Rejected in requests.\n *\n * @generated from enum value: CHANNEL_UNSPECIFIED = 0;\n */\n CHANNEL_UNSPECIFIED = 0,\n\n /**\n * The notification inbox on the website and in the app.\n *\n * @generated from enum value: IN_APP = 1;\n */\n IN_APP = 1,\n\n /**\n * A direct message from the Polyester Telegram bot to the Telegram account\n * linked to the caller's account. Creating or changing an alert that asks\n * for it needs Telegram delivery to be available in the environment\n * (TELEGRAM_UNAVAILABLE otherwise) and a linked Telegram account\n * (TELEGRAM_NOT_LINKED otherwise).\n * When a Telegram message cannot be delivered, for example because Telegram\n * was unlinked after the alert was set, the fired alert is shown in the\n * notification inbox instead.\n *\n * @generated from enum value: TELEGRAM = 2;\n */\n TELEGRAM = 2,\n}\n\n/**\n * Describes the enum alerts.v1.AlertChannel.\n */\nexport const AlertChannelSchema: GenEnum<AlertChannel> = /*@__PURE__*/\n enumDesc(file_alerts_v1_price_alerts, 5);\n\n/**\n * PriceAlertService manages the caller's price alerts. An alert belongs to\n * the caller's root account, the person, not to a trading account: a session\n * and the root account's API keys see the same alerts, and an API key scoped\n * to a subaccount is refused (PERMISSION_DENIED, SUBACCOUNT_KEY_REFUSED). An\n * API key also needs its policy to grant the call's permission: READ_PRICE_ALERTS\n * to list alerts, MANAGE_PRICE_ALERTS to create, update or cancel them. No\n * call changes balances, orders or account settings.\n *\n * @generated from service alerts.v1.PriceAlertService\n */\nexport const PriceAlertService: GenService<{\n /**\n * CreateAlert creates an active alert and records the current price of its\n * price source as its reference price. An alert whose condition already\n * holds at that price waits for the price to cross back first.\n *\n * Errors:\n * - INVALID_ARGUMENT: malformed request, or UNKNOWN_SYMBOL.\n * - FAILED_PRECONDITION: PRICE_SOURCE_UNSUPPORTED (INDEX_PRICE requested on\n * a market without one), ALERT_LIMIT_REACHED, TELEGRAM_UNAVAILABLE\n * (TELEGRAM requested where Telegram delivery is not available), or\n * TELEGRAM_NOT_LINKED (TELEGRAM requested without a linked Telegram\n * account).\n * - ALREADY_EXISTS: IDEMPOTENCY_CONFLICT; the original alert stands.\n * - UNAVAILABLE: PRICE_UNAVAILABLE or SERVICE_UNAVAILABLE; retry the same\n * request.\n * - PERMISSION_DENIED: SUBACCOUNT_KEY_REFUSED, or AUTH_API_KEY_ACCESS_DENIED\n * when the API key's policy does not grant MANAGE_PRICE_ALERTS.\n * - UNAUTHENTICATED: missing or invalid credentials.\n *\n * @generated from rpc alerts.v1.PriceAlertService.CreateAlert\n */\n createAlert: {\n methodKind: \"unary\";\n input: typeof CreateAlertRequestSchema;\n output: typeof CreateAlertResponseSchema;\n },\n /**\n * ListAlerts lists the caller's alerts, newest first.\n *\n * Errors:\n * - INVALID_ARGUMENT: malformed request or page token.\n * - UNAVAILABLE: SERVICE_UNAVAILABLE; retry.\n * - PERMISSION_DENIED: SUBACCOUNT_KEY_REFUSED, or AUTH_API_KEY_ACCESS_DENIED\n * when the API key's policy does not grant READ_PRICE_ALERTS.\n * - UNAUTHENTICATED: missing or invalid credentials.\n *\n * @generated from rpc alerts.v1.PriceAlertService.ListAlerts\n */\n listAlerts: {\n methodKind: \"unary\";\n input: typeof ListAlertsRequestSchema;\n output: typeof ListAlertsResponseSchema;\n },\n /**\n * UpdateAlert changes an alert's direction, price or channels. A change of\n * direction or price records a new reference price, as creating does.\n * Updating a TRIGGERED alert sets it again: it becomes ACTIVE with a new\n * reference price, even when no field changes; an empty update_mask does\n * only that. An update that changes nothing on an ACTIVE alert returns it\n * unchanged. With an idempotency_key\n * already used for the same request, it returns the alert as it is now and\n * changes nothing: a retried or replayed update never sets the alert again.\n * An update that changes an alert whose channels then include TELEGRAM needs\n * Telegram delivery to be available and a linked Telegram account, so\n * without them, change such an alert's channels to IN_APP to change it\n * further.\n *\n * Errors:\n * - INVALID_ARGUMENT: malformed request or update_mask.\n * - NOT_FOUND: ALERT_NOT_FOUND.\n * - ALREADY_EXISTS: IDEMPOTENCY_CONFLICT.\n * - ABORTED: REVISION_CONFLICT.\n * - FAILED_PRECONDITION: ALERT_CANCELLED, PRICE_SOURCE_UNSUPPORTED,\n * ALERT_LIMIT_REACHED, ALERT_UPDATE_LIMIT_REACHED, TELEGRAM_UNAVAILABLE or\n * TELEGRAM_NOT_LINKED.\n * - UNAVAILABLE: PRICE_UNAVAILABLE or SERVICE_UNAVAILABLE; retry.\n * - PERMISSION_DENIED: SUBACCOUNT_KEY_REFUSED, or AUTH_API_KEY_ACCESS_DENIED\n * when the API key's policy does not grant MANAGE_PRICE_ALERTS.\n * - UNAUTHENTICATED: missing or invalid credentials.\n *\n * @generated from rpc alerts.v1.PriceAlertService.UpdateAlert\n */\n updateAlert: {\n methodKind: \"unary\";\n input: typeof UpdateAlertRequestSchema;\n output: typeof UpdateAlertResponseSchema;\n },\n /**\n * CancelAlert cancels an active alert. Cancelling a cancelled alert returns\n * it unchanged.\n *\n * Errors:\n * - INVALID_ARGUMENT: malformed request.\n * - NOT_FOUND: ALERT_NOT_FOUND.\n * - FAILED_PRECONDITION: ALERT_TRIGGERED; the alert already fired.\n * - UNAVAILABLE: SERVICE_UNAVAILABLE; retry.\n * - PERMISSION_DENIED: SUBACCOUNT_KEY_REFUSED, or AUTH_API_KEY_ACCESS_DENIED\n * when the API key's policy does not grant MANAGE_PRICE_ALERTS.\n * - UNAUTHENTICATED: missing or invalid credentials.\n *\n * @generated from rpc alerts.v1.PriceAlertService.CancelAlert\n */\n cancelAlert: {\n methodKind: \"unary\";\n input: typeof CancelAlertRequestSchema;\n output: typeof CancelAlertResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_alerts_v1_price_alerts, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,8BACX,uBAAS,4qHAA4qH;CAAC;CAAiC;CAAgC;AAA0B,CAAC;;;;;AAqBpxH,MAAa,oBACX,0BAAY,6BAA6B,CAAC;;;;;AA4H5C,MAAa,mBACX,0BAAY,6BAA6B,CAAC;;;;;AA6D5C,MAAa,2BACX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AAA,CAAA,CAAA;;;;AAKA,MAAa,uBACX,uBAAS,6BAA6B,CAAC;;;;;;AAOzC,IAAY,mBAAL,yBAAA,kBAAA;;;;;;;CAOL,iBAAA,iBAAA,8BAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,gBAAA,KAAA;;;;;;;CAQA,iBAAA,iBAAA,iBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,yBACX,uBAAS,6BAA6B,CAAC;;;;;;AAOzC,IAAY,cAAL,yBAAA,aAAA;;;;;;CAML,YAAA,YAAA,wBAAA,KAAA;;;;;;CAOA,YAAA,YAAA,YAAA,KAAA;;;;;;CAOA,YAAA,YAAA,eAAA,KAAA;;;;;;CAOA,YAAA,YAAA,eAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,oBACX,uBAAS,6BAA6B,CAAC;;;;;;;AAQzC,IAAY,gBAAL,yBAAA,eAAA;;;;;;CAML,cAAA,cAAA,gCAAA,KAAA;;;;;;CAOA,cAAA,cAAA,aAAA,KAAA;;;;;;;CAQA,cAAA,cAAA,eAAA,KAAA;;;;;;;;CASA,cAAA,cAAA,cAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,sBACX,uBAAS,6BAA6B,CAAC;;;;;;AAOzC,IAAY,eAAL,yBAAA,cAAA;;;;;;CAML,aAAA,aAAA,yBAAA,KAAA;;;;;;CAOA,aAAA,aAAA,YAAA,KAAA;;;;;;;;;;;;;CAcA,aAAA,aAAA,cAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,qBACX,uBAAS,6BAA6B,CAAC;;;;;;;;;;;;AAazC,MAAa,oBAmGX,0BAAY,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { ActivityEntityKind, ActivityEvent, ActivityEventAction, ActivityEventSource } from "./subaccounts_pb.js";
|
|
2
|
+
import { Message } from "@bufbuild/protobuf";
|
|
3
|
+
import { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
4
|
+
import { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
5
|
+
declare namespace activity_pb_d_exports {
|
|
6
|
+
export { AccountActivityService, ListAccountActivityRequest, ListAccountActivityRequestSchema, ListAccountActivityResponse, ListAccountActivityResponseSchema, file_auth_v1_activity };
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file auth/v1/activity.proto.
|
|
10
|
+
*/
|
|
11
|
+
declare const file_auth_v1_activity: GenFile;
|
|
12
|
+
/**
|
|
13
|
+
* Request to list the activity of the caller's main account and its
|
|
14
|
+
* sub-accounts. Every filter narrows the result; an omitted filter matches
|
|
15
|
+
* every event the caller may read.
|
|
16
|
+
*
|
|
17
|
+
* @generated from message auth.v1.ListAccountActivityRequest
|
|
18
|
+
*/
|
|
19
|
+
type ListAccountActivityRequest = Message<"auth.v1.ListAccountActivityRequest"> & {
|
|
20
|
+
/**
|
|
21
|
+
* Maximum number of events to return. Defaults to 50 when omitted; maximum is
|
|
22
|
+
* 200.
|
|
23
|
+
*
|
|
24
|
+
* @generated from field: uint32 limit = 1;
|
|
25
|
+
*/
|
|
26
|
+
limit: number;
|
|
27
|
+
/**
|
|
28
|
+
* Opaque keyset cursor from a previous response. The cursor is exclusive and
|
|
29
|
+
* bound to the authenticated main account, the API key when the caller is
|
|
30
|
+
* one, and every filter of the request: reuse it only with the same filters.
|
|
31
|
+
*
|
|
32
|
+
* @generated from field: string page_token = 2;
|
|
33
|
+
*/
|
|
34
|
+
pageToken: string;
|
|
35
|
+
/**
|
|
36
|
+
* Sub-accounts (opaque IDs) whose events to return. Together with
|
|
37
|
+
* include_main_account it selects the accounts the list covers. When neither
|
|
38
|
+
* selects an account, the list covers the main account and every
|
|
39
|
+
* sub-account the caller may read. At most 100 distinct IDs. A sub-account
|
|
40
|
+
* the caller may not read fails the request with NotFound.
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: repeated fixed64 subaccount_ids = 3;
|
|
43
|
+
*/
|
|
44
|
+
subaccountIds: bigint[];
|
|
45
|
+
/**
|
|
46
|
+
* Include the main account's own events, those that belong to no
|
|
47
|
+
* sub-account. Set it alone to list only the main account's events, or with
|
|
48
|
+
* subaccount_ids to add the main account to those sub-accounts. An API key
|
|
49
|
+
* scoped to a sub-account may not set it.
|
|
50
|
+
*
|
|
51
|
+
* @generated from field: bool include_main_account = 4;
|
|
52
|
+
*/
|
|
53
|
+
includeMainAccount: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Entity categories to return. Empty matches every category. At most 16
|
|
56
|
+
* distinct values.
|
|
57
|
+
*
|
|
58
|
+
* @generated from field: repeated auth.v1.ActivityEntityKind entity_kinds = 5;
|
|
59
|
+
*/
|
|
60
|
+
entityKinds: ActivityEntityKind[];
|
|
61
|
+
/**
|
|
62
|
+
* Actions to return. Empty matches every action. At most 32 distinct values.
|
|
63
|
+
*
|
|
64
|
+
* @generated from field: repeated auth.v1.ActivityEventAction event_actions = 6;
|
|
65
|
+
*/
|
|
66
|
+
eventActions: ActivityEventAction[];
|
|
67
|
+
/**
|
|
68
|
+
* Client channels to return. Empty matches every channel. At most 8 distinct
|
|
69
|
+
* values.
|
|
70
|
+
*
|
|
71
|
+
* @generated from field: repeated auth.v1.ActivityEventSource sources = 7;
|
|
72
|
+
*/
|
|
73
|
+
sources: ActivityEventSource[];
|
|
74
|
+
/**
|
|
75
|
+
* API key (opaque ID) whose actions to return: only events performed with
|
|
76
|
+
* that key. Omit it to match every actor.
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: fixed64 api_key_id = 8;
|
|
79
|
+
*/
|
|
80
|
+
apiKeyId: bigint;
|
|
81
|
+
/**
|
|
82
|
+
* Earliest event time to return, inclusive. Omit it for no lower bound.
|
|
83
|
+
*
|
|
84
|
+
* @generated from field: google.protobuf.Timestamp start_time = 9;
|
|
85
|
+
*/
|
|
86
|
+
startTime?: Timestamp | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Event time to return events before, exclusive. Omit it for no upper bound.
|
|
89
|
+
* When both bounds are set, end_time must be after start_time.
|
|
90
|
+
*
|
|
91
|
+
* @generated from field: google.protobuf.Timestamp end_time = 10;
|
|
92
|
+
*/
|
|
93
|
+
endTime?: Timestamp | undefined;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Describes the message auth.v1.ListAccountActivityRequest.
|
|
97
|
+
* Use `create(ListAccountActivityRequestSchema)` to create a new message.
|
|
98
|
+
*/
|
|
99
|
+
declare const ListAccountActivityRequestSchema: GenMessage<ListAccountActivityRequest>;
|
|
100
|
+
/**
|
|
101
|
+
* Response containing the activity of the main account and its sub-accounts.
|
|
102
|
+
*
|
|
103
|
+
* @generated from message auth.v1.ListAccountActivityResponse
|
|
104
|
+
*/
|
|
105
|
+
type ListAccountActivityResponse = Message<"auth.v1.ListAccountActivityResponse"> & {
|
|
106
|
+
/**
|
|
107
|
+
* Activity events ordered newest first. Each event names the sub-account it
|
|
108
|
+
* belongs to, or none for the main account.
|
|
109
|
+
*
|
|
110
|
+
* @generated from field: repeated auth.v1.ActivityEvent events = 1;
|
|
111
|
+
*/
|
|
112
|
+
events: ActivityEvent[];
|
|
113
|
+
/**
|
|
114
|
+
* Opaque cursor for the next page. Empty when no more results exist.
|
|
115
|
+
*
|
|
116
|
+
* @generated from field: string next_page_token = 2;
|
|
117
|
+
*/
|
|
118
|
+
nextPageToken: string;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Describes the message auth.v1.ListAccountActivityResponse.
|
|
122
|
+
* Use `create(ListAccountActivityResponseSchema)` to create a new message.
|
|
123
|
+
*/
|
|
124
|
+
declare const ListAccountActivityResponseSchema: GenMessage<ListAccountActivityResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* Read service for the activity of a whole account.
|
|
127
|
+
*
|
|
128
|
+
* @generated from service auth.v1.AccountActivityService
|
|
129
|
+
*/
|
|
130
|
+
declare const AccountActivityService: GenService<{
|
|
131
|
+
/**
|
|
132
|
+
* List the security and activity events of the caller's main account and
|
|
133
|
+
* all its sub-accounts in one feed, newest first: sign-ins, API key, MFA,
|
|
134
|
+
* policy, member, invite and saved-destination changes. Only the main
|
|
135
|
+
* account's own session, or an API key with READ_ACCOUNT_ACTIVITY, may call
|
|
136
|
+
* it. A key scoped to a sub-account reads only that sub-account's events.
|
|
137
|
+
*
|
|
138
|
+
* @generated from rpc auth.v1.AccountActivityService.ListAccountActivity
|
|
139
|
+
*/
|
|
140
|
+
listAccountActivity: {
|
|
141
|
+
methodKind: "unary";
|
|
142
|
+
input: typeof ListAccountActivityRequestSchema;
|
|
143
|
+
output: typeof ListAccountActivityResponseSchema;
|
|
144
|
+
};
|
|
145
|
+
}>;
|
|
146
|
+
//#endregion
|
|
147
|
+
export { AccountActivityService, ListAccountActivityRequest, ListAccountActivityRequestSchema, ListAccountActivityResponse, ListAccountActivityResponseSchema, activity_pb_d_exports, file_auth_v1_activity };
|
|
148
|
+
//# sourceMappingURL=activity_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/activity_pb.ts"],"mappings":";;;;;;;;;;cAgBa,uBAAuB;;;;;;;;KAUxB,6BAA6B;;;;;;;EAOvC;;;;;;;;EASA;;;;;;;;;;EAWA;;;;;;;;;EAUA;;;;;;;EAQA,aAAa;;;;;;EAOb,cAAc;;;;;;;EAQd,SAAS;;;;;;;EAQT;;;;;;EAOA,YAAY;;;;;;;EAQZ,UAAU;;;;;;cAOC,kCAAkC,WAAW;;;;;;KAQ9C,8BAA8B;;;;;;;EAOxC,QAAQ;;;;;;EAOR;;;;;;cAOW,mCAAmC,WAAW;;;;;;cAQ9C,wBAAwB;;;;;;;;;;EAUnC;IACE;IACA,cAAc;IACd,eAAe"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { file_polyester_api_options } from "../../polyester/api/options_pb.js";
|
|
3
|
+
import { file_auth_v1_subaccounts } from "./subaccounts_pb.js";
|
|
4
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
6
|
+
//#region src/gen/auth/v1/activity_pb.ts
|
|
7
|
+
var activity_pb_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
+
AccountActivityService: () => AccountActivityService,
|
|
9
|
+
ListAccountActivityRequestSchema: () => ListAccountActivityRequestSchema,
|
|
10
|
+
ListAccountActivityResponseSchema: () => ListAccountActivityResponseSchema,
|
|
11
|
+
file_auth_v1_activity: () => file_auth_v1_activity
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* Describes the file auth/v1/activity.proto.
|
|
15
|
+
*/
|
|
16
|
+
const file_auth_v1_activity = /*@__PURE__*/ fileDesc("ChZhdXRoL3YxL2FjdGl2aXR5LnByb3RvEgdhdXRoLnYxIowDChpMaXN0QWNjb3VudEFjdGl2aXR5UmVxdWVzdBIPCgVsaW1pdBgBIAEoDUIAEhQKCnBhZ2VfdG9rZW4YAiABKAlCABIYCg5zdWJhY2NvdW50X2lkcxgDIAMoBkIAEhwKFGluY2x1ZGVfbWFpbl9hY2NvdW50GAQgASgIEjMKDGVudGl0eV9raW5kcxgFIAMoDjIbLmF1dGgudjEuQWN0aXZpdHlFbnRpdHlLaW5kQgASNQoNZXZlbnRfYWN0aW9ucxgGIAMoDjIcLmF1dGgudjEuQWN0aXZpdHlFdmVudEFjdGlvbkIAEi8KB3NvdXJjZXMYByADKA4yHC5hdXRoLnYxLkFjdGl2aXR5RXZlbnRTb3VyY2VCABISCgphcGlfa2V5X2lkGAggASgGEi4KCnN0YXJ0X3RpbWUYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEiwKCGVuZF90aW1lGAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcDoAImAKG0xpc3RBY2NvdW50QWN0aXZpdHlSZXNwb25zZRImCgZldmVudHMYASADKAsyFi5hdXRoLnYxLkFjdGl2aXR5RXZlbnQSGQoPbmV4dF9wYWdlX3Rva2VuGAIgASgJQgAyfgoWQWNjb3VudEFjdGl2aXR5U2VydmljZRJiChNMaXN0QWNjb3VudEFjdGl2aXR5EiMuYXV0aC52MS5MaXN0QWNjb3VudEFjdGl2aXR5UmVxdWVzdBokLmF1dGgudjEuTGlzdEFjY291bnRBY3Rpdml0eVJlc3BvbnNlIgAaAEI8WjpnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2F1dGgvdjE7YXV0aHYxYgZwcm90bzM=", [
|
|
17
|
+
file_auth_v1_subaccounts,
|
|
18
|
+
file_google_protobuf_timestamp,
|
|
19
|
+
file_polyester_api_options
|
|
20
|
+
]);
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message auth.v1.ListAccountActivityRequest.
|
|
23
|
+
* Use `create(ListAccountActivityRequestSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
const ListAccountActivityRequestSchema = /*@__PURE__*/ messageDesc(file_auth_v1_activity, 0);
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message auth.v1.ListAccountActivityResponse.
|
|
28
|
+
* Use `create(ListAccountActivityResponseSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
const ListAccountActivityResponseSchema = /*@__PURE__*/ messageDesc(file_auth_v1_activity, 1);
|
|
31
|
+
/**
|
|
32
|
+
* Read service for the activity of a whole account.
|
|
33
|
+
*
|
|
34
|
+
* @generated from service auth.v1.AccountActivityService
|
|
35
|
+
*/
|
|
36
|
+
const AccountActivityService = /*@__PURE__*/ serviceDesc(file_auth_v1_activity, 0);
|
|
37
|
+
//#endregion
|
|
38
|
+
export { AccountActivityService, ListAccountActivityRequestSchema, ListAccountActivityResponseSchema, activity_pb_exports, file_auth_v1_activity };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=activity_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity_pb.js","names":[],"sources":["../../../../src/gen/auth/v1/activity_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file auth/v1/activity.proto (package auth.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { ActivityEntityKind, ActivityEvent, ActivityEventAction, ActivityEventSource } from \"./subaccounts_pb.js\";\nimport { file_auth_v1_subaccounts } from \"./subaccounts_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/activity.proto.\n */\nexport const file_auth_v1_activity: GenFile = /*@__PURE__*/\n fileDesc(\"ChZhdXRoL3YxL2FjdGl2aXR5LnByb3RvEgdhdXRoLnYxIowDChpMaXN0QWNjb3VudEFjdGl2aXR5UmVxdWVzdBIPCgVsaW1pdBgBIAEoDUIAEhQKCnBhZ2VfdG9rZW4YAiABKAlCABIYCg5zdWJhY2NvdW50X2lkcxgDIAMoBkIAEhwKFGluY2x1ZGVfbWFpbl9hY2NvdW50GAQgASgIEjMKDGVudGl0eV9raW5kcxgFIAMoDjIbLmF1dGgudjEuQWN0aXZpdHlFbnRpdHlLaW5kQgASNQoNZXZlbnRfYWN0aW9ucxgGIAMoDjIcLmF1dGgudjEuQWN0aXZpdHlFdmVudEFjdGlvbkIAEi8KB3NvdXJjZXMYByADKA4yHC5hdXRoLnYxLkFjdGl2aXR5RXZlbnRTb3VyY2VCABISCgphcGlfa2V5X2lkGAggASgGEi4KCnN0YXJ0X3RpbWUYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEiwKCGVuZF90aW1lGAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcDoAImAKG0xpc3RBY2NvdW50QWN0aXZpdHlSZXNwb25zZRImCgZldmVudHMYASADKAsyFi5hdXRoLnYxLkFjdGl2aXR5RXZlbnQSGQoPbmV4dF9wYWdlX3Rva2VuGAIgASgJQgAyfgoWQWNjb3VudEFjdGl2aXR5U2VydmljZRJiChNMaXN0QWNjb3VudEFjdGl2aXR5EiMuYXV0aC52MS5MaXN0QWNjb3VudEFjdGl2aXR5UmVxdWVzdBokLmF1dGgudjEuTGlzdEFjY291bnRBY3Rpdml0eVJlc3BvbnNlIgAaAEI8WjpnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL2F1dGgvdjE7YXV0aHYxYgZwcm90bzM=\", [file_auth_v1_subaccounts, file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * Request to list the activity of the caller's main account and its\n * sub-accounts. Every filter narrows the result; an omitted filter matches\n * every event the caller may read.\n *\n * @generated from message auth.v1.ListAccountActivityRequest\n */\nexport type ListAccountActivityRequest = Message<\"auth.v1.ListAccountActivityRequest\"> & {\n /**\n * Maximum number of events to return. Defaults to 50 when omitted; maximum is\n * 200.\n *\n * @generated from field: uint32 limit = 1;\n */\n limit: number;\n\n /**\n * Opaque keyset cursor from a previous response. The cursor is exclusive and\n * bound to the authenticated main account, the API key when the caller is\n * one, and every filter of the request: reuse it only with the same filters.\n *\n * @generated from field: string page_token = 2;\n */\n pageToken: string;\n\n /**\n * Sub-accounts (opaque IDs) whose events to return. Together with\n * include_main_account it selects the accounts the list covers. When neither\n * selects an account, the list covers the main account and every\n * sub-account the caller may read. At most 100 distinct IDs. A sub-account\n * the caller may not read fails the request with NotFound.\n *\n * @generated from field: repeated fixed64 subaccount_ids = 3;\n */\n subaccountIds: bigint[];\n\n /**\n * Include the main account's own events, those that belong to no\n * sub-account. Set it alone to list only the main account's events, or with\n * subaccount_ids to add the main account to those sub-accounts. An API key\n * scoped to a sub-account may not set it.\n *\n * @generated from field: bool include_main_account = 4;\n */\n includeMainAccount: boolean;\n\n /**\n * Entity categories to return. Empty matches every category. At most 16\n * distinct values.\n *\n * @generated from field: repeated auth.v1.ActivityEntityKind entity_kinds = 5;\n */\n entityKinds: ActivityEntityKind[];\n\n /**\n * Actions to return. Empty matches every action. At most 32 distinct values.\n *\n * @generated from field: repeated auth.v1.ActivityEventAction event_actions = 6;\n */\n eventActions: ActivityEventAction[];\n\n /**\n * Client channels to return. Empty matches every channel. At most 8 distinct\n * values.\n *\n * @generated from field: repeated auth.v1.ActivityEventSource sources = 7;\n */\n sources: ActivityEventSource[];\n\n /**\n * API key (opaque ID) whose actions to return: only events performed with\n * that key. Omit it to match every actor.\n *\n * @generated from field: fixed64 api_key_id = 8;\n */\n apiKeyId: bigint;\n\n /**\n * Earliest event time to return, inclusive. Omit it for no lower bound.\n *\n * @generated from field: google.protobuf.Timestamp start_time = 9;\n */\n startTime?: Timestamp | undefined;\n\n /**\n * Event time to return events before, exclusive. Omit it for no upper bound.\n * When both bounds are set, end_time must be after start_time.\n *\n * @generated from field: google.protobuf.Timestamp end_time = 10;\n */\n endTime?: Timestamp | undefined;\n};\n\n/**\n * Describes the message auth.v1.ListAccountActivityRequest.\n * Use `create(ListAccountActivityRequestSchema)` to create a new message.\n */\nexport const ListAccountActivityRequestSchema: GenMessage<ListAccountActivityRequest> = /*@__PURE__*/\n messageDesc(file_auth_v1_activity, 0);\n\n/**\n * Response containing the activity of the main account and its sub-accounts.\n *\n * @generated from message auth.v1.ListAccountActivityResponse\n */\nexport type ListAccountActivityResponse = Message<\"auth.v1.ListAccountActivityResponse\"> & {\n /**\n * Activity events ordered newest first. Each event names the sub-account it\n * belongs to, or none for the main account.\n *\n * @generated from field: repeated auth.v1.ActivityEvent events = 1;\n */\n events: ActivityEvent[];\n\n /**\n * Opaque cursor for the next page. Empty when no more results exist.\n *\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n};\n\n/**\n * Describes the message auth.v1.ListAccountActivityResponse.\n * Use `create(ListAccountActivityResponseSchema)` to create a new message.\n */\nexport const ListAccountActivityResponseSchema: GenMessage<ListAccountActivityResponse> = /*@__PURE__*/\n messageDesc(file_auth_v1_activity, 1);\n\n/**\n * Read service for the activity of a whole account.\n *\n * @generated from service auth.v1.AccountActivityService\n */\nexport const AccountActivityService: GenService<{\n /**\n * List the security and activity events of the caller's main account and\n * all its sub-accounts in one feed, newest first: sign-ins, API key, MFA,\n * policy, member, invite and saved-destination changes. Only the main\n * account's own session, or an API key with READ_ACCOUNT_ACTIVITY, may call\n * it. A key scoped to a sub-account reads only that sub-account's events.\n *\n * @generated from rpc auth.v1.AccountActivityService.ListAccountActivity\n */\n listAccountActivity: {\n methodKind: \"unary\";\n input: typeof ListAccountActivityRequestSchema;\n output: typeof ListAccountActivityResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_auth_v1_activity, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAa,wBACX,uBAAS,g9BAAg9B;CAAC;CAA0B;CAAgC;AAA0B,CAAC;;;;;AAmGjjC,MAAa,mCACX,0BAAY,uBAAuB,CAAC;;;;;AA4BtC,MAAa,oCACX,0BAAY,uBAAuB,CAAC;;;;;;AAOtC,MAAa,yBAgBX,0BAAY,uBAAuB,CAAC"}
|
|
@@ -658,7 +658,9 @@ declare enum AssistantKeyPreset {
|
|
|
658
658
|
* Read actions only: READ_BALANCES, READ_SPOT, READ_INTERNAL_TRANSFERS,
|
|
659
659
|
* READ_AUTO_WITHDRAW, READ_API_KEYS, READ_SUBACCOUNTS,
|
|
660
660
|
* READ_DEPOSIT_ADDRESSES, READ_STATEMENTS and READ_FUNDING_FLOWS. On the
|
|
661
|
-
* main account, also
|
|
661
|
+
* main account, also the main-account permissions READ_PRICE_ALERTS,
|
|
662
|
+
* READ_VIP_STATUS, READ_REWARDS, READ_DAILY_CLAIMS, READ_CHECKPOINTS,
|
|
663
|
+
* READ_PROFILE, READ_SOCIAL_VERIFICATION and READ_NOTIFICATIONS. Policy
|
|
662
664
|
* name "Polyester AI - Read only (main account)" on the main account,
|
|
663
665
|
* "Polyester AI - Read only (sub-account)" on a sub-account.
|
|
664
666
|
*
|
|
@@ -749,9 +751,13 @@ declare const ApiKeyService: GenService<{
|
|
|
749
751
|
/**
|
|
750
752
|
* Create or replace the caller's Polyester AI assistant key set: one
|
|
751
753
|
* ASSISTANT key per enabled account, each bounded by its API policy or by a
|
|
752
|
-
* permission preset. One
|
|
753
|
-
*
|
|
754
|
-
*
|
|
754
|
+
* permission preset. One step-up covers the whole set, including the
|
|
755
|
+
* policies its presets create, and the change is all or nothing. Send a
|
|
756
|
+
* fresh step-up proof in the X-Auth-Step-Up header, which the change
|
|
757
|
+
* consumes, or no proof while the session's recent-MFA window is open for
|
|
758
|
+
* RECENT_MFA_ACTION_ASSISTANT_ACCESS (GetRecentMFA). Without either,
|
|
759
|
+
* PermissionDenied with AUTH_STEP_UP_REQUIRED, or AUTH_RECENT_MFA_EXPIRED
|
|
760
|
+
* when the window has closed. An entry whose account already has an assistant key with the same
|
|
755
761
|
* public key keeps that key, with its status, and takes the requested
|
|
756
762
|
* policy; any other entry replaces the account's key. Accounts left out of
|
|
757
763
|
* the set have their assistant key revoked. A sub-account entry needs the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_keys_pb.d.ts","names":[],"sources":["../../../../src/gen/auth/v1/api_keys_pb.ts"],"mappings":";;;;;;;;;cAca,uBAAuB;;;;;;KAQxB,SAAS;;;;;;;EAOnB;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;;EAQA;;;;;;EAOA,QAAQ;;;;;;EAOR;;;;;;;EAQA;;;;;;EAOA,YAAY;;;;;;;;EASZ,aAAa;;;;;;;EAQb,kBAAkB;;;;;;;EAQlB,Y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AMV;;;;;;EAOA;;;;;;;;;;;EAYA;;;;;cAMW,qBAAqB,QAAQ;;;;;;;;;;;aAa9B;;;;;;EAMV;;;;;;;;;;;;;EAcA;;;;;;;;;;;;EAaA;;;;;cAMW,0BAA0B,QAAQ;;;;;;cAQlC,eAAe;;;;;;;;;EAS1B;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;EAQjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;;EAUjB;IACE;IACA,cAAc;IACd,eAAe"}
|
|
@@ -227,7 +227,9 @@ let AssistantKeyPreset = /* @__PURE__ */ function(AssistantKeyPreset) {
|
|
|
227
227
|
* Read actions only: READ_BALANCES, READ_SPOT, READ_INTERNAL_TRANSFERS,
|
|
228
228
|
* READ_AUTO_WITHDRAW, READ_API_KEYS, READ_SUBACCOUNTS,
|
|
229
229
|
* READ_DEPOSIT_ADDRESSES, READ_STATEMENTS and READ_FUNDING_FLOWS. On the
|
|
230
|
-
* main account, also
|
|
230
|
+
* main account, also the main-account permissions READ_PRICE_ALERTS,
|
|
231
|
+
* READ_VIP_STATUS, READ_REWARDS, READ_DAILY_CLAIMS, READ_CHECKPOINTS,
|
|
232
|
+
* READ_PROFILE, READ_SOCIAL_VERIFICATION and READ_NOTIFICATIONS. Policy
|
|
231
233
|
* name "Polyester AI - Read only (main account)" on the main account,
|
|
232
234
|
* "Polyester AI - Read only (sub-account)" on a sub-account.
|
|
233
235
|
*
|