@polyester/sdk 0.35.0-devnet-20261111025029 → 0.35.0-devnet-20261111140253
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 +43 -1
- package/dist/catalogs/index.d.ts +2 -2
- package/dist/catalogs/snapshot-validation.js +7 -3
- package/dist/catalogs/snapshot-validation.js.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +4164 -0
- package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -0
- package/dist/gen/ai/v1/assistant_pb.js +1174 -0
- package/dist/gen/ai/v1/assistant_pb.js.map +1 -0
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts +776 -0
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts.map +1 -0
- package/dist/gen/alerts/v1/price_alerts_pb.js +378 -0
- package/dist/gen/alerts/v1/price_alerts_pb.js.map +1 -0
- package/dist/gen/auth/v1/address_book_pb.d.ts +6 -0
- package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/address_book_pb.js +6 -0
- package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts +247 -3
- package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.js +81 -2
- package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +55 -6
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +55 -6
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +186 -14
- package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +163 -6
- package/dist/gen/auth/v1/policies_pb.js.map +1 -1
- package/dist/gen/auth/v1/profile_pb.d.ts +4 -2
- package/dist/gen/auth/v1/profile_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/profile_pb.js.map +1 -1
- package/dist/gen/auth/v1/resolve_pb.d.ts +1 -0
- package/dist/gen/auth/v1/resolve_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/resolve_pb.js.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.d.ts +170 -11
- package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js +41 -3
- package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +25 -9
- package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +4 -2
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts.map +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +5 -0
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts.map +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.js.map +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +10 -0
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +32 -4
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts.map +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.js +32 -4
- package/dist/gen/chain/lifecycle/v1/types_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +391 -42
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js +103 -17
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +172 -4
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +63 -2
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +57 -3
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts.map +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.js +41 -3
- package/dist/gen/chain/zipper/v1/zipper_pb.js.map +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +2 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts.map +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.js.map +1 -1
- package/dist/gen/claims/v1/claims_pb.d.ts +20 -3
- package/dist/gen/claims/v1/claims_pb.d.ts.map +1 -1
- package/dist/gen/claims/v1/claims_pb.js +12 -3
- package/dist/gen/claims/v1/claims_pb.js.map +1 -1
- package/dist/gen/index.d.ts +9 -5
- package/dist/gen/index.js +5 -1
- package/dist/gen/ledger/v1/catalog_pb.d.ts +52 -1
- package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
- package/dist/gen/ledger/v1/catalog_pb.js +52 -1
- package/dist/gen/ledger/v1/catalog_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts +6 -0
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts +8 -0
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +29 -8
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +18 -5
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +20 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts.map +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.js +20 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.js.map +1 -1
- package/dist/gen/rewards/v1/rewards_pb.d.ts +74 -3
- package/dist/gen/rewards/v1/rewards_pb.d.ts.map +1 -1
- package/dist/gen/rewards/v1/rewards_pb.js +16 -4
- package/dist/gen/rewards/v1/rewards_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +1268 -67
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +306 -5
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +298 -54
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +183 -37
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +933 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +292 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -0
- package/dist/gen/system/v1/system_pb.d.ts +77 -0
- package/dist/gen/system/v1/system_pb.d.ts.map +1 -0
- package/dist/gen/system/v1/system_pb.js +34 -0
- package/dist/gen/system/v1/system_pb.js.map +1 -0
- package/dist/gen/tradews/v1/trade_ws_pb.d.ts +2 -2
- package/dist/gen/tradews/v1/trade_ws_pb.js.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +101 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js +14 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/vip/v1/vip_pb.d.ts +1 -0
- package/dist/gen/vip/v1/vip_pb.d.ts.map +1 -1
- package/dist/gen/vip/v1/vip_pb.js.map +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +2 -2
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/api-keys/api-keys.codecs.js +10 -1
- package/dist/services/api-keys/api-keys.codecs.js.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.d.ts +4 -0
- package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.js +3 -1
- package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +9 -2
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js +9 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.d.ts +15 -4
- package/dist/services/auto-withdraw/auto-withdraw.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.js +24 -8
- package/dist/services/auto-withdraw/auto-withdraw.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +375 -7
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +66 -11
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.types.d.ts +3 -3
- package/dist/services/changelog/changelog.schemas.d.ts +17 -17
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
- package/dist/services/claims/claims.d.ts +5 -2
- package/dist/services/claims/claims.d.ts.map +1 -1
- package/dist/services/claims/claims.js +5 -2
- package/dist/services/claims/claims.js.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.d.ts +13 -4
- package/dist/services/internal-transfers/internal-transfers.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.js +17 -3
- package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +59 -4
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.js +32 -2
- 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.codecs.d.ts +2 -2
- package/dist/services/lifecycle/lifecycle.codecs.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.codecs.js +3 -1
- package/dist/services/lifecycle/lifecycle.codecs.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +114 -90
- package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.js +7 -1
- package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
- package/dist/services/market-data/market-data.schemas.js +7 -2
- package/dist/services/market-data/market-data.schemas.js.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +2 -2
- package/dist/services/orders/orders-batch.schemas.d.ts +54 -54
- package/dist/services/orders/orders-input.schemas.d.ts +7 -7
- package/dist/services/orders/orders-output.schemas.d.ts +19 -19
- package/dist/services/orders/orders.d.ts +2 -0
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +2 -0
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +1 -1
- package/dist/services/policies/shared.codecs.js +85 -3
- package/dist/services/policies/shared.codecs.js.map +1 -1
- package/dist/services/policies/shared.d.ts +1 -1
- package/dist/services/policies/shared.d.ts.map +1 -1
- package/dist/services/policies/shared.js +5 -14
- package/dist/services/policies/shared.js.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +3 -3
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
- package/dist/services/rewards/rewards.d.ts +13 -3
- package/dist/services/rewards/rewards.d.ts.map +1 -1
- package/dist/services/rewards/rewards.js +17 -3
- package/dist/services/rewards/rewards.js.map +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +101 -4
- package/dist/services/rewards/rewards.schemas.d.ts.map +1 -1
- package/dist/services/rewards/rewards.schemas.js +12 -2
- package/dist/services/rewards/rewards.schemas.js.map +1 -1
- package/dist/services/rewards/rewards.types.d.ts +2 -2
- package/dist/services/social-verification/social-verification.codecs.js +13 -5
- package/dist/services/social-verification/social-verification.codecs.js.map +1 -1
- package/dist/services/social-verification/social-verification.d.ts +18 -3
- package/dist/services/social-verification/social-verification.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.js +26 -3
- package/dist/services/social-verification/social-verification.js.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.d.ts +33 -7
- package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +35 -10
- package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
- package/dist/services/social-verification/social-verification.types.d.ts +2 -2
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +17 -17
- package/dist/services/trades/trades.schemas.d.ts +2 -2
- package/dist/services/trading-withdraws/trading-withdraws.d.ts +7 -1
- package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +11 -1
- package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +42 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +19 -3
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +2 -2
- package/dist/services/transfers/transfers.schemas.d.ts +4 -4
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +30 -30
- package/dist/services/zipper/zipper.schemas.d.ts +2 -2
- package/dist/services/zipper/zipper.schemas.d.ts.map +1 -1
- package/dist/services/zipper/zipper.schemas.js +13 -2
- 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 +18 -1
- package/dist/shared/catalog-config.d.ts.map +1 -1
- package/dist/shared/catalog-config.js +7 -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 +5 -1
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/error-detail.d.ts +8 -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/claims.js +7 -2
- package/dist/shared/error-details/claims.js.map +1 -1
- package/dist/shared/error-details/withdraw.js +11 -2
- package/dist/shared/error-details/withdraw.js.map +1 -1
- package/dist/shared/errors.d.ts +20 -3
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +17 -1
- package/dist/shared/errors.js.map +1 -1
- package/dist/shared/ledger-codes.d.ts +7 -1
- package/dist/shared/ledger-codes.d.ts.map +1 -1
- package/dist/shared/ledger-codes.js +27 -3
- package/dist/shared/ledger-codes.js.map +1 -1
- package/dist/shared/rate-limit.schemas.d.ts +2 -2
- package/dist/shared/rate-limit.schemas.d.ts.map +1 -1
- package/dist/shared/rate-limit.schemas.js +4 -1
- package/dist/shared/rate-limit.schemas.js.map +1 -1
- package/dist/shared/transports.d.ts +2 -1
- package/dist/shared/transports.d.ts.map +1 -1
- package/dist/shared/transports.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,4164 @@
|
|
|
1
|
+
import { AssetBalance, GetBalanceHistoryResponse, GetEquityHistorySeriesResponse, TransferRow } from "../../ledger/read/v1/ledger_read_pb.js";
|
|
2
|
+
import { Side, TimeInForce, TriggerPriceSource } from "../../orders/v1/orders_pb.js";
|
|
3
|
+
import { PriceAlert } from "../../alerts/v1/price_alerts_pb.js";
|
|
4
|
+
import { DepositAddress } from "../../chain/deposit/v1/deposit_pb.js";
|
|
5
|
+
import { Candle, Timeframe } from "../../marketdata/v1/marketdata_pb.js";
|
|
6
|
+
import { Order } from "../../orders/v1/orders_read_pb.js";
|
|
7
|
+
import { Trigger, TriggerStatus, TriggerType } from "../../triggers/v1/triggers_pb.js";
|
|
8
|
+
import { JsonObject, Message as Message$1 } from "@bufbuild/protobuf";
|
|
9
|
+
import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
10
|
+
import { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
11
|
+
declare namespace assistant_pb_d_exports {
|
|
12
|
+
export { ApprovalDecision, ApprovalDecisionSchema, ApprovalParameter, ApprovalParameterSchema, ApprovalRequested, ApprovalRequestedSchema, ApprovalResolved, ApprovalResolvedSchema, ApprovalStatus, ApprovalStatusSchema, AssistantKey, AssistantKeyAccount, AssistantKeyAccountSchema, AssistantKeySchema, AssistantKeyState, AssistantKeyStateSchema, AssistantService, AttachedExit, AttachedExitSchema, AttachedExits, AttachedExitsSchema, AttachedTrailingStop, AttachedTrailingStopSchema, BalanceHistoryChart, BalanceHistoryChartSchema, BalancesTable, BalancesTableSchema, CancelOrdersPreview, CancelOrdersPreviewSchema, CancelRunRequest, CancelRunRequestSchema, CancelRunResponse, CancelRunResponseSchema, CancelTriggerPreview, CancelTriggerPreviewSchema, CompleteAssistantKeysRequest, CompleteAssistantKeysRequestSchema, CompleteAssistantKeysResponse, CompleteAssistantKeysResponseSchema, Conversation, ConversationSchema, DecideApprovalRequest, DecideApprovalRequestSchema, DecideApprovalResponse, DecideApprovalResponseSchema, DeleteMemoryRequest, DeleteMemoryRequestSchema, DeleteMemoryResponse, DeleteMemoryResponseSchema, DepositAddressCard, DepositAddressCardSchema, Destination, DestinationSchema, DestinationsSuggested, DestinationsSuggestedSchema, DiscardPartial, DiscardPartialSchema, EquityHistoryChart, EquityHistoryChartSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, FailureCategory, FailureCategorySchema, LadderLevel, LadderLevelSchema, LadderPreview, LadderPreviewSchema, LimitOrderPreview, LimitOrderPreviewSchema, ListAssistantKeysRequest, ListAssistantKeysRequestSchema, ListAssistantKeysResponse, ListAssistantKeysResponseSchema, ListConversationsRequest, ListConversationsRequestSchema, ListConversationsResponse, ListConversationsResponseSchema, ListMemoriesRequest, ListMemoriesRequestSchema, ListMemoriesResponse, ListMemoriesResponseSchema, ListMessagesRequest, ListMessagesRequestSchema, ListMessagesResponse, ListMessagesResponseSchema, MarkdownTable, MarkdownTableRow, MarkdownTableRowSchema, MarkdownTableSchema, MarketOrderPreview, MarketOrderPreviewSchema, MemoriesRecalled, MemoriesRecalledSchema, Memory, MemoryKind, MemoryKindSchema, MemorySchema, Message, MessageRole, MessageRoleSchema, MessageSchema, OrderChange, OrderChangePreview, OrderChangePreviewSchema, OrderChangeSchema, OrderPreview, OrderPreviewSchema, OrderPriceField, OrderPriceFieldSchema, OrderToCancel, OrderToCancelSchema, OrdersTable, OrdersTableSchema, PlaceOrdersPreview, PlaceOrdersPreviewSchema, PrepareAssistantKeysRequest, PrepareAssistantKeysRequestSchema, PrepareAssistantKeysResponse, PrepareAssistantKeysResponseSchema, PreparedAssistantKey, PreparedAssistantKeySchema, PriceChart, PriceChartSchema, PriceOffsetDirection, PriceOffsetDirectionSchema, PriceRounding, PriceRoundingSchema, QuoteValue, QuoteValueSchema, RecalledMemory, RecalledMemorySchema, ReferencePrice, ReferencePriceSchema, ReferencePriceSource, ReferencePriceSourceSchema, RelativePrice, RelativePriceSchema, RunCompleted, RunCompletedSchema, RunEvent, RunEventSchema, RunFailed, RunFailedSchema, SendMessageRequest, SendMessageRequestSchema, SendMessageResponse, SendMessageResponseSchema, SkillLoaded, SkillLoadedSchema, StopOrderPreview, StopOrderPreviewSchema, SubagentFinished, SubagentFinishedSchema, SubagentStarted, SubagentStartedSchema, SwapLegPreview, SwapLegPreviewSchema, SwapPreview, SwapPreviewSchema, TextDelta, TextDeltaSchema, ToolFinished, ToolFinishedSchema, ToolStarted, ToolStartedSchema, TrailingStopPreview, TrailingStopPreviewSchema, TransfersTable, TransfersTableSchema, TriggerChangeAction, TriggerChangeActionSchema, TriggerChangePreview, TriggerChangePreviewSchema, TriggerDirection, TriggerDirectionSchema, TriggerSettings, TriggerSettingsSchema, TriggersTable, TriggersTableSchema, TwapPreview, TwapPreviewSchema, UnfilledSlicePolicy, UnfilledSlicePolicySchema, Usage, UsageSchema, View, ViewSchema, WatchRunRequest, WatchRunRequestSchema, WatchRunResponse, WatchRunResponseSchema, file_ai_v1_assistant };
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Describes the file ai/v1/assistant.proto.
|
|
16
|
+
*/
|
|
17
|
+
declare const file_ai_v1_assistant: GenFile;
|
|
18
|
+
/**
|
|
19
|
+
* ErrorDetail is attached to Assistant API errors as an error detail of type
|
|
20
|
+
* ai.v1.ErrorDetail.
|
|
21
|
+
*
|
|
22
|
+
* @generated from message ai.v1.ErrorDetail
|
|
23
|
+
*/
|
|
24
|
+
type ErrorDetail = Message$1<"ai.v1.ErrorDetail"> & {
|
|
25
|
+
/**
|
|
26
|
+
* Stable error code.
|
|
27
|
+
*
|
|
28
|
+
* @generated from field: ai.v1.ErrorCode code = 1;
|
|
29
|
+
*/
|
|
30
|
+
code: ErrorCode;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message ai.v1.ErrorDetail.
|
|
34
|
+
* Use `create(ErrorDetailSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
declare const ErrorDetailSchema: GenMessage<ErrorDetail>;
|
|
37
|
+
/**
|
|
38
|
+
* Conversation is one conversation of the caller with the assistant.
|
|
39
|
+
*
|
|
40
|
+
* @generated from message ai.v1.Conversation
|
|
41
|
+
*/
|
|
42
|
+
type Conversation = Message$1<"ai.v1.Conversation"> & {
|
|
43
|
+
/**
|
|
44
|
+
* Public conversation ID.
|
|
45
|
+
*
|
|
46
|
+
* @generated from field: fixed64 conversation_id = 1;
|
|
47
|
+
*/
|
|
48
|
+
conversationId: bigint;
|
|
49
|
+
/**
|
|
50
|
+
* Short title, derived from the conversation's first messages. Empty until
|
|
51
|
+
* one is available.
|
|
52
|
+
*
|
|
53
|
+
* @generated from field: string title = 2;
|
|
54
|
+
*/
|
|
55
|
+
title: string;
|
|
56
|
+
/**
|
|
57
|
+
* When the conversation was started.
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: google.protobuf.Timestamp created_at = 3;
|
|
60
|
+
*/
|
|
61
|
+
createdAt?: Timestamp | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* When the latest message of the conversation was recorded.
|
|
64
|
+
*
|
|
65
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 4;
|
|
66
|
+
*/
|
|
67
|
+
updatedAt?: Timestamp | undefined;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Describes the message ai.v1.Conversation.
|
|
71
|
+
* Use `create(ConversationSchema)` to create a new message.
|
|
72
|
+
*/
|
|
73
|
+
declare const ConversationSchema: GenMessage<Conversation>;
|
|
74
|
+
/**
|
|
75
|
+
* Message is one message of a conversation.
|
|
76
|
+
*
|
|
77
|
+
* @generated from message ai.v1.Message
|
|
78
|
+
*/
|
|
79
|
+
type Message = Message$1<"ai.v1.Message"> & {
|
|
80
|
+
/**
|
|
81
|
+
* Public message ID.
|
|
82
|
+
*
|
|
83
|
+
* @generated from field: fixed64 message_id = 1;
|
|
84
|
+
*/
|
|
85
|
+
messageId: bigint;
|
|
86
|
+
/**
|
|
87
|
+
* Author of the message.
|
|
88
|
+
*
|
|
89
|
+
* @generated from field: ai.v1.MessageRole role = 2;
|
|
90
|
+
*/
|
|
91
|
+
role: MessageRole;
|
|
92
|
+
/**
|
|
93
|
+
* Message text in Markdown. For an assistant message, the final text of its
|
|
94
|
+
* run; tool activity and views are not part of it.
|
|
95
|
+
*
|
|
96
|
+
* @generated from field: string text = 3;
|
|
97
|
+
*/
|
|
98
|
+
text: string;
|
|
99
|
+
/**
|
|
100
|
+
* When the message was recorded.
|
|
101
|
+
*
|
|
102
|
+
* @generated from field: google.protobuf.Timestamp created_at = 4;
|
|
103
|
+
*/
|
|
104
|
+
createdAt?: Timestamp | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* The run the message started (user) or the run that wrote it (assistant).
|
|
107
|
+
* Replay that run with WatchRun from after_seq 0 to show its tool activity
|
|
108
|
+
* and views.
|
|
109
|
+
*
|
|
110
|
+
* @generated from field: fixed64 run_id = 5;
|
|
111
|
+
*/
|
|
112
|
+
runId: bigint;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Describes the message ai.v1.Message.
|
|
116
|
+
* Use `create(MessageSchema)` to create a new message.
|
|
117
|
+
*/
|
|
118
|
+
declare const MessageSchema: GenMessage<Message>;
|
|
119
|
+
/**
|
|
120
|
+
* Memory is one fact the assistant remembers about the caller across
|
|
121
|
+
* conversations, such as a stated preference. A corrected fact replaces the
|
|
122
|
+
* earlier one, which is no longer listed.
|
|
123
|
+
*
|
|
124
|
+
* @generated from message ai.v1.Memory
|
|
125
|
+
*/
|
|
126
|
+
type Memory = Message$1<"ai.v1.Memory"> & {
|
|
127
|
+
/**
|
|
128
|
+
* Public memory ID.
|
|
129
|
+
*
|
|
130
|
+
* @generated from field: fixed64 memory_id = 1;
|
|
131
|
+
*/
|
|
132
|
+
memoryId: bigint;
|
|
133
|
+
/**
|
|
134
|
+
* The remembered fact, in plain text.
|
|
135
|
+
*
|
|
136
|
+
* @generated from field: string text = 2;
|
|
137
|
+
*/
|
|
138
|
+
text: string;
|
|
139
|
+
/**
|
|
140
|
+
* When the fact was remembered.
|
|
141
|
+
*
|
|
142
|
+
* @generated from field: google.protobuf.Timestamp created_at = 3;
|
|
143
|
+
*/
|
|
144
|
+
createdAt?: Timestamp | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* The conversation the fact was learned in. Omitted when that conversation
|
|
147
|
+
* is unknown.
|
|
148
|
+
*
|
|
149
|
+
* @generated from field: optional fixed64 conversation_id = 4;
|
|
150
|
+
*/
|
|
151
|
+
conversationId?: bigint | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* What kind of fact the memory holds.
|
|
154
|
+
*
|
|
155
|
+
* @generated from field: ai.v1.MemoryKind kind = 5;
|
|
156
|
+
*/
|
|
157
|
+
kind: MemoryKind;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Describes the message ai.v1.Memory.
|
|
161
|
+
* Use `create(MemorySchema)` to create a new message.
|
|
162
|
+
*/
|
|
163
|
+
declare const MemorySchema: GenMessage<Memory>;
|
|
164
|
+
/**
|
|
165
|
+
* Usage is the language-model usage of one run, subagents included.
|
|
166
|
+
*
|
|
167
|
+
* @generated from message ai.v1.Usage
|
|
168
|
+
*/
|
|
169
|
+
type Usage = Message$1<"ai.v1.Usage"> & {
|
|
170
|
+
/**
|
|
171
|
+
* Input tokens processed, cached input included.
|
|
172
|
+
*
|
|
173
|
+
* @generated from field: uint64 input_tokens = 1;
|
|
174
|
+
*/
|
|
175
|
+
inputTokens: bigint;
|
|
176
|
+
/**
|
|
177
|
+
* Output tokens generated.
|
|
178
|
+
*
|
|
179
|
+
* @generated from field: uint64 output_tokens = 2;
|
|
180
|
+
*/
|
|
181
|
+
outputTokens: bigint;
|
|
182
|
+
/**
|
|
183
|
+
* Input tokens served from the prompt cache; a subset of input_tokens.
|
|
184
|
+
*
|
|
185
|
+
* @generated from field: uint64 cached_input_tokens = 3;
|
|
186
|
+
*/
|
|
187
|
+
cachedInputTokens: bigint;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* Describes the message ai.v1.Usage.
|
|
191
|
+
* Use `create(UsageSchema)` to create a new message.
|
|
192
|
+
*/
|
|
193
|
+
declare const UsageSchema: GenMessage<Usage>;
|
|
194
|
+
/**
|
|
195
|
+
* OrdersTable shows the caller's orders.
|
|
196
|
+
*
|
|
197
|
+
* @generated from message ai.v1.OrdersTable
|
|
198
|
+
*/
|
|
199
|
+
type OrdersTable = Message$1<"ai.v1.OrdersTable"> & {
|
|
200
|
+
/**
|
|
201
|
+
* Orders in the order the assistant fetched them, usually newest first.
|
|
202
|
+
*
|
|
203
|
+
* @generated from field: repeated orders.v1.Order orders = 1;
|
|
204
|
+
*/
|
|
205
|
+
orders: Order[];
|
|
206
|
+
/**
|
|
207
|
+
* True when more orders matched than the table shows.
|
|
208
|
+
*
|
|
209
|
+
* @generated from field: bool truncated = 2;
|
|
210
|
+
*/
|
|
211
|
+
truncated: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Trading account (subaccount) the orders were read from: the run's account, as
|
|
214
|
+
* SendMessageRequest.subaccount_id named it.
|
|
215
|
+
*
|
|
216
|
+
* @generated from field: fixed64 account_id = 3;
|
|
217
|
+
*/
|
|
218
|
+
accountId: bigint;
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* Describes the message ai.v1.OrdersTable.
|
|
222
|
+
* Use `create(OrdersTableSchema)` to create a new message.
|
|
223
|
+
*/
|
|
224
|
+
declare const OrdersTableSchema: GenMessage<OrdersTable>;
|
|
225
|
+
/**
|
|
226
|
+
* TriggersTable shows the caller's triggers: stop-losses, take-profits and
|
|
227
|
+
* trailing stops (standalone or attached to an order), TWAPs and ladders,
|
|
228
|
+
* with their configuration, status and progress.
|
|
229
|
+
*
|
|
230
|
+
* @generated from message ai.v1.TriggersTable
|
|
231
|
+
*/
|
|
232
|
+
type TriggersTable = Message$1<"ai.v1.TriggersTable"> & {
|
|
233
|
+
/**
|
|
234
|
+
* Triggers in the order the assistant fetched them, usually newest first.
|
|
235
|
+
* Each carries the fields the assistant read: its configuration, status,
|
|
236
|
+
* terminal reason, progress and times. subaccount_id, fee_asset,
|
|
237
|
+
* self_trade_prevention_mode, updated_at, armed_at and version are not
|
|
238
|
+
* set.
|
|
239
|
+
*
|
|
240
|
+
* @generated from field: repeated triggers.v1.Trigger triggers = 1;
|
|
241
|
+
*/
|
|
242
|
+
triggers: Trigger[];
|
|
243
|
+
/**
|
|
244
|
+
* True when more triggers matched than the table shows.
|
|
245
|
+
*
|
|
246
|
+
* @generated from field: bool truncated = 2;
|
|
247
|
+
*/
|
|
248
|
+
truncated: boolean;
|
|
249
|
+
/**
|
|
250
|
+
* Trading account (subaccount) the triggers were read from: the run's account, as
|
|
251
|
+
* SendMessageRequest.subaccount_id named it.
|
|
252
|
+
*
|
|
253
|
+
* @generated from field: fixed64 account_id = 3;
|
|
254
|
+
*/
|
|
255
|
+
accountId: bigint;
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* Describes the message ai.v1.TriggersTable.
|
|
259
|
+
* Use `create(TriggersTableSchema)` to create a new message.
|
|
260
|
+
*/
|
|
261
|
+
declare const TriggersTableSchema: GenMessage<TriggersTable>;
|
|
262
|
+
/**
|
|
263
|
+
* BalancesTable shows the caller's balances.
|
|
264
|
+
*
|
|
265
|
+
* @generated from message ai.v1.BalancesTable
|
|
266
|
+
*/
|
|
267
|
+
type BalancesTable = Message$1<"ai.v1.BalancesTable"> & {
|
|
268
|
+
/**
|
|
269
|
+
* Balances, one per asset, highest available trading amount first.
|
|
270
|
+
*
|
|
271
|
+
* @generated from field: repeated ledger.read.v1.AssetBalance balances = 1;
|
|
272
|
+
*/
|
|
273
|
+
balances: AssetBalance[];
|
|
274
|
+
/**
|
|
275
|
+
* Trading account (subaccount) the balances were read from: the run's account, as
|
|
276
|
+
* SendMessageRequest.subaccount_id named it.
|
|
277
|
+
*
|
|
278
|
+
* @generated from field: fixed64 account_id = 2;
|
|
279
|
+
*/
|
|
280
|
+
accountId: bigint;
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* Describes the message ai.v1.BalancesTable.
|
|
284
|
+
* Use `create(BalancesTableSchema)` to create a new message.
|
|
285
|
+
*/
|
|
286
|
+
declare const BalancesTableSchema: GenMessage<BalancesTable>;
|
|
287
|
+
/**
|
|
288
|
+
* PriceChart shows candles of one spot market.
|
|
289
|
+
*
|
|
290
|
+
* @generated from message ai.v1.PriceChart
|
|
291
|
+
*/
|
|
292
|
+
type PriceChart = Message$1<"ai.v1.PriceChart"> & {
|
|
293
|
+
/**
|
|
294
|
+
* Numeric spot market identifier; resolve its symbol with GetSpotConfig.
|
|
295
|
+
*
|
|
296
|
+
* @generated from field: uint32 symbol_id = 1;
|
|
297
|
+
*/
|
|
298
|
+
symbolId: number;
|
|
299
|
+
/**
|
|
300
|
+
* Timeframe of every candle.
|
|
301
|
+
*
|
|
302
|
+
* @generated from field: marketdata.v1.Timeframe timeframe = 2;
|
|
303
|
+
*/
|
|
304
|
+
timeframe: Timeframe;
|
|
305
|
+
/**
|
|
306
|
+
* Candles oldest first.
|
|
307
|
+
*
|
|
308
|
+
* @generated from field: repeated marketdata.v1.Candle candles = 3;
|
|
309
|
+
*/
|
|
310
|
+
candles: Candle[];
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* Describes the message ai.v1.PriceChart.
|
|
314
|
+
* Use `create(PriceChartSchema)` to create a new message.
|
|
315
|
+
*/
|
|
316
|
+
declare const PriceChartSchema: GenMessage<PriceChart>;
|
|
317
|
+
/**
|
|
318
|
+
* MarkdownTableRow is one row of a MarkdownTable.
|
|
319
|
+
*
|
|
320
|
+
* @generated from message ai.v1.MarkdownTableRow
|
|
321
|
+
*/
|
|
322
|
+
type MarkdownTableRow = Message$1<"ai.v1.MarkdownTableRow"> & {
|
|
323
|
+
/**
|
|
324
|
+
* Cells in column order, each inline Markdown.
|
|
325
|
+
*
|
|
326
|
+
* @generated from field: repeated string cells = 1;
|
|
327
|
+
*/
|
|
328
|
+
cells: string[];
|
|
329
|
+
};
|
|
330
|
+
/**
|
|
331
|
+
* Describes the message ai.v1.MarkdownTableRow.
|
|
332
|
+
* Use `create(MarkdownTableRowSchema)` to create a new message.
|
|
333
|
+
*/
|
|
334
|
+
declare const MarkdownTableRowSchema: GenMessage<MarkdownTableRow>;
|
|
335
|
+
/**
|
|
336
|
+
* MarkdownTable is a generic table, for example a comparison of markets.
|
|
337
|
+
*
|
|
338
|
+
* @generated from message ai.v1.MarkdownTable
|
|
339
|
+
*/
|
|
340
|
+
type MarkdownTable = Message$1<"ai.v1.MarkdownTable"> & {
|
|
341
|
+
/**
|
|
342
|
+
* Column headings, each inline Markdown.
|
|
343
|
+
*
|
|
344
|
+
* @generated from field: repeated string columns = 1;
|
|
345
|
+
*/
|
|
346
|
+
columns: string[];
|
|
347
|
+
/**
|
|
348
|
+
* Rows in display order. A row has at most as many cells as there are
|
|
349
|
+
* columns; missing cells are empty.
|
|
350
|
+
*
|
|
351
|
+
* @generated from field: repeated ai.v1.MarkdownTableRow rows = 2;
|
|
352
|
+
*/
|
|
353
|
+
rows: MarkdownTableRow[];
|
|
354
|
+
/**
|
|
355
|
+
* True when the source had more rows than the table shows.
|
|
356
|
+
*
|
|
357
|
+
* @generated from field: bool truncated = 3;
|
|
358
|
+
*/
|
|
359
|
+
truncated: boolean;
|
|
360
|
+
};
|
|
361
|
+
/**
|
|
362
|
+
* Describes the message ai.v1.MarkdownTable.
|
|
363
|
+
* Use `create(MarkdownTableSchema)` to create a new message.
|
|
364
|
+
*/
|
|
365
|
+
declare const MarkdownTableSchema: GenMessage<MarkdownTable>;
|
|
366
|
+
/**
|
|
367
|
+
* DepositAddressCard shows one of the caller's deposit addresses, to copy. An
|
|
368
|
+
* address takes deposits only on its own chain: show that chain's name next to
|
|
369
|
+
* the address, and warn that sending another asset, or using another chain,
|
|
370
|
+
* can lose the funds.
|
|
371
|
+
*
|
|
372
|
+
* @generated from message ai.v1.DepositAddressCard
|
|
373
|
+
*/
|
|
374
|
+
type DepositAddressCard = Message$1<"ai.v1.DepositAddressCard"> & {
|
|
375
|
+
/**
|
|
376
|
+
* The address and the chain it is assigned on. Resolve the chain's name, and
|
|
377
|
+
* the assets it carries, with GetDepositWithdrawConfig.
|
|
378
|
+
*
|
|
379
|
+
* @generated from field: chain.deposit.v1.DepositAddress deposit_address = 1;
|
|
380
|
+
*/
|
|
381
|
+
depositAddress?: DepositAddress | undefined;
|
|
382
|
+
/**
|
|
383
|
+
* Public unified asset ID (AssetConfig.ledger_id) the caller asked to
|
|
384
|
+
* deposit to this address. Omitted when the card shows the address without
|
|
385
|
+
* one asset, for example in a list of the caller's addresses.
|
|
386
|
+
*
|
|
387
|
+
* @generated from field: optional uint32 asset_id = 2;
|
|
388
|
+
*/
|
|
389
|
+
assetId?: number | undefined;
|
|
390
|
+
/**
|
|
391
|
+
* Trading account (subaccount) the address belongs to: the run's account, as
|
|
392
|
+
* SendMessageRequest.subaccount_id named it.
|
|
393
|
+
*
|
|
394
|
+
* @generated from field: fixed64 account_id = 3;
|
|
395
|
+
*/
|
|
396
|
+
accountId: bigint;
|
|
397
|
+
};
|
|
398
|
+
/**
|
|
399
|
+
* Describes the message ai.v1.DepositAddressCard.
|
|
400
|
+
* Use `create(DepositAddressCardSchema)` to create a new message.
|
|
401
|
+
*/
|
|
402
|
+
declare const DepositAddressCardSchema: GenMessage<DepositAddressCard>;
|
|
403
|
+
/**
|
|
404
|
+
* BalanceHistoryChart shows how the caller's balance of each asset changed
|
|
405
|
+
* over a window ending at the time of the run.
|
|
406
|
+
*
|
|
407
|
+
* @generated from message ai.v1.BalanceHistoryChart
|
|
408
|
+
*/
|
|
409
|
+
type BalanceHistoryChart = Message$1<"ai.v1.BalanceHistoryChart"> & {
|
|
410
|
+
/**
|
|
411
|
+
* The window and its series, as GetBalanceHistory returns them for the
|
|
412
|
+
* caller's trading account. A series whose every point is zero is left out,
|
|
413
|
+
* so an account that held nothing in the window has no series.
|
|
414
|
+
*
|
|
415
|
+
* @generated from field: ledger.read.v1.GetBalanceHistoryResponse history = 1;
|
|
416
|
+
*/
|
|
417
|
+
history?: GetBalanceHistoryResponse | undefined;
|
|
418
|
+
/**
|
|
419
|
+
* Trading account (subaccount) the history was read from: the run's account, as
|
|
420
|
+
* SendMessageRequest.subaccount_id named it.
|
|
421
|
+
*
|
|
422
|
+
* @generated from field: fixed64 account_id = 2;
|
|
423
|
+
*/
|
|
424
|
+
accountId: bigint;
|
|
425
|
+
};
|
|
426
|
+
/**
|
|
427
|
+
* Describes the message ai.v1.BalanceHistoryChart.
|
|
428
|
+
* Use `create(BalanceHistoryChartSchema)` to create a new message.
|
|
429
|
+
*/
|
|
430
|
+
declare const BalanceHistoryChartSchema: GenMessage<BalanceHistoryChart>;
|
|
431
|
+
/**
|
|
432
|
+
* EquityHistoryChart shows the value of the caller's holdings over a window
|
|
433
|
+
* ending at the time of the run.
|
|
434
|
+
*
|
|
435
|
+
* @generated from message ai.v1.EquityHistoryChart
|
|
436
|
+
*/
|
|
437
|
+
type EquityHistoryChart = Message$1<"ai.v1.EquityHistoryChart"> & {
|
|
438
|
+
/**
|
|
439
|
+
* The window and its series, as GetEquityHistorySeries returns them for the
|
|
440
|
+
* caller's trading account, grouped by account bucket or by asset.
|
|
441
|
+
* btc_prices_q is not set. The account's total equity at a point is the sum
|
|
442
|
+
* of every series at that point.
|
|
443
|
+
*
|
|
444
|
+
* @generated from field: ledger.read.v1.GetEquityHistorySeriesResponse history = 1;
|
|
445
|
+
*/
|
|
446
|
+
history?: GetEquityHistorySeriesResponse | undefined;
|
|
447
|
+
/**
|
|
448
|
+
* Trading account (subaccount) the history was read from: the run's account, as
|
|
449
|
+
* SendMessageRequest.subaccount_id named it.
|
|
450
|
+
*
|
|
451
|
+
* @generated from field: fixed64 account_id = 2;
|
|
452
|
+
*/
|
|
453
|
+
accountId: bigint;
|
|
454
|
+
};
|
|
455
|
+
/**
|
|
456
|
+
* Describes the message ai.v1.EquityHistoryChart.
|
|
457
|
+
* Use `create(EquityHistoryChartSchema)` to create a new message.
|
|
458
|
+
*/
|
|
459
|
+
declare const EquityHistoryChartSchema: GenMessage<EquityHistoryChart>;
|
|
460
|
+
/**
|
|
461
|
+
* TransfersTable shows the caller's settled transfers, one row per leg.
|
|
462
|
+
*
|
|
463
|
+
* @generated from message ai.v1.TransfersTable
|
|
464
|
+
*/
|
|
465
|
+
type TransfersTable = Message$1<"ai.v1.TransfersTable"> & {
|
|
466
|
+
/**
|
|
467
|
+
* Transfer legs newest first, as ListTransfers returns them for the
|
|
468
|
+
* caller's trading account. ts_us has millisecond precision.
|
|
469
|
+
*
|
|
470
|
+
* @generated from field: repeated ledger.read.v1.TransferRow transfers = 1;
|
|
471
|
+
*/
|
|
472
|
+
transfers: TransferRow[];
|
|
473
|
+
/**
|
|
474
|
+
* True when more transfers matched than the table shows.
|
|
475
|
+
*
|
|
476
|
+
* @generated from field: bool truncated = 2;
|
|
477
|
+
*/
|
|
478
|
+
truncated: boolean;
|
|
479
|
+
/**
|
|
480
|
+
* Trading account (subaccount) the transfers were read from: the run's account, as
|
|
481
|
+
* SendMessageRequest.subaccount_id named it.
|
|
482
|
+
*
|
|
483
|
+
* @generated from field: fixed64 account_id = 3;
|
|
484
|
+
*/
|
|
485
|
+
accountId: bigint;
|
|
486
|
+
};
|
|
487
|
+
/**
|
|
488
|
+
* Describes the message ai.v1.TransfersTable.
|
|
489
|
+
* Use `create(TransfersTableSchema)` to create a new message.
|
|
490
|
+
*/
|
|
491
|
+
declare const TransfersTableSchema: GenMessage<TransfersTable>;
|
|
492
|
+
/**
|
|
493
|
+
* View is structured content to render in the conversation, built from the
|
|
494
|
+
* result of a tool the assistant called, never from model-written text.
|
|
495
|
+
*
|
|
496
|
+
* @generated from message ai.v1.View
|
|
497
|
+
*/
|
|
498
|
+
type View = Message$1<"ai.v1.View"> & {
|
|
499
|
+
/**
|
|
500
|
+
* Exactly one kind of view. A client that does not recognize the kind, for
|
|
501
|
+
* example one added after it was built, skips the view.
|
|
502
|
+
*
|
|
503
|
+
* @generated from oneof ai.v1.View.kind
|
|
504
|
+
*/
|
|
505
|
+
kind: {
|
|
506
|
+
/**
|
|
507
|
+
* The caller's orders.
|
|
508
|
+
*
|
|
509
|
+
* @generated from field: ai.v1.OrdersTable orders_table = 1;
|
|
510
|
+
*/
|
|
511
|
+
value: OrdersTable;
|
|
512
|
+
case: "ordersTable";
|
|
513
|
+
} | {
|
|
514
|
+
/**
|
|
515
|
+
* The caller's balances.
|
|
516
|
+
*
|
|
517
|
+
* @generated from field: ai.v1.BalancesTable balances_table = 2;
|
|
518
|
+
*/
|
|
519
|
+
value: BalancesTable;
|
|
520
|
+
case: "balancesTable";
|
|
521
|
+
} | {
|
|
522
|
+
/**
|
|
523
|
+
* Candles of one spot market.
|
|
524
|
+
*
|
|
525
|
+
* @generated from field: ai.v1.PriceChart price_chart = 3;
|
|
526
|
+
*/
|
|
527
|
+
value: PriceChart;
|
|
528
|
+
case: "priceChart";
|
|
529
|
+
} | {
|
|
530
|
+
/**
|
|
531
|
+
* A generic table.
|
|
532
|
+
*
|
|
533
|
+
* @generated from field: ai.v1.MarkdownTable markdown_table = 5;
|
|
534
|
+
*/
|
|
535
|
+
value: MarkdownTable;
|
|
536
|
+
case: "markdownTable";
|
|
537
|
+
} | {
|
|
538
|
+
/**
|
|
539
|
+
* One price alert of the caller, as the Price Alert API returns it.
|
|
540
|
+
*
|
|
541
|
+
* @generated from field: alerts.v1.PriceAlert price_alert = 6;
|
|
542
|
+
*/
|
|
543
|
+
value: PriceAlert;
|
|
544
|
+
case: "priceAlert";
|
|
545
|
+
} | {
|
|
546
|
+
/**
|
|
547
|
+
* The caller's triggers.
|
|
548
|
+
*
|
|
549
|
+
* @generated from field: ai.v1.TriggersTable triggers_table = 7;
|
|
550
|
+
*/
|
|
551
|
+
value: TriggersTable;
|
|
552
|
+
case: "triggersTable";
|
|
553
|
+
} | {
|
|
554
|
+
/**
|
|
555
|
+
* One deposit address of the caller.
|
|
556
|
+
*
|
|
557
|
+
* @generated from field: ai.v1.DepositAddressCard deposit_address = 8;
|
|
558
|
+
*/
|
|
559
|
+
value: DepositAddressCard;
|
|
560
|
+
case: "depositAddress";
|
|
561
|
+
} | {
|
|
562
|
+
/**
|
|
563
|
+
* How the caller's balances changed over a window.
|
|
564
|
+
*
|
|
565
|
+
* @generated from field: ai.v1.BalanceHistoryChart balance_history_chart = 9;
|
|
566
|
+
*/
|
|
567
|
+
value: BalanceHistoryChart;
|
|
568
|
+
case: "balanceHistoryChart";
|
|
569
|
+
} | {
|
|
570
|
+
/**
|
|
571
|
+
* The value of the caller's holdings over a window.
|
|
572
|
+
*
|
|
573
|
+
* @generated from field: ai.v1.EquityHistoryChart equity_history_chart = 10;
|
|
574
|
+
*/
|
|
575
|
+
value: EquityHistoryChart;
|
|
576
|
+
case: "equityHistoryChart";
|
|
577
|
+
} | {
|
|
578
|
+
/**
|
|
579
|
+
* The caller's settled transfers.
|
|
580
|
+
*
|
|
581
|
+
* @generated from field: ai.v1.TransfersTable transfers_table = 11;
|
|
582
|
+
*/
|
|
583
|
+
value: TransfersTable;
|
|
584
|
+
case: "transfersTable";
|
|
585
|
+
} | {
|
|
586
|
+
case: undefined;
|
|
587
|
+
value?: undefined;
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
/**
|
|
591
|
+
* Describes the message ai.v1.View.
|
|
592
|
+
* Use `create(ViewSchema)` to create a new message.
|
|
593
|
+
*/
|
|
594
|
+
declare const ViewSchema: GenMessage<View>;
|
|
595
|
+
/**
|
|
596
|
+
* TextDelta appends text to the assistant's answer.
|
|
597
|
+
*
|
|
598
|
+
* @generated from message ai.v1.TextDelta
|
|
599
|
+
*/
|
|
600
|
+
type TextDelta = Message$1<"ai.v1.TextDelta"> & {
|
|
601
|
+
/**
|
|
602
|
+
* Markdown text to append, in order, to the text received so far.
|
|
603
|
+
*
|
|
604
|
+
* @generated from field: string text = 1;
|
|
605
|
+
*/
|
|
606
|
+
text: string;
|
|
607
|
+
};
|
|
608
|
+
/**
|
|
609
|
+
* Describes the message ai.v1.TextDelta.
|
|
610
|
+
* Use `create(TextDeltaSchema)` to create a new message.
|
|
611
|
+
*/
|
|
612
|
+
declare const TextDeltaSchema: GenMessage<TextDelta>;
|
|
613
|
+
/**
|
|
614
|
+
* DiscardPartial withdraws answer text that is about to be written again. The
|
|
615
|
+
* assistant was interrupted while writing and regenerates its answer from an
|
|
616
|
+
* earlier point; the regenerated text follows in later TextDelta events.
|
|
617
|
+
*
|
|
618
|
+
* @generated from message ai.v1.DiscardPartial
|
|
619
|
+
*/
|
|
620
|
+
type DiscardPartial = Message$1<"ai.v1.DiscardPartial"> & {
|
|
621
|
+
/**
|
|
622
|
+
* Drop the text of every TextDelta of this run whose seq is equal to or
|
|
623
|
+
* greater than this value, and received before this event. Tool, view and
|
|
624
|
+
* other events stay.
|
|
625
|
+
*
|
|
626
|
+
* @generated from field: uint64 from_seq = 1;
|
|
627
|
+
*/
|
|
628
|
+
fromSeq: bigint;
|
|
629
|
+
};
|
|
630
|
+
/**
|
|
631
|
+
* Describes the message ai.v1.DiscardPartial.
|
|
632
|
+
* Use `create(DiscardPartialSchema)` to create a new message.
|
|
633
|
+
*/
|
|
634
|
+
declare const DiscardPartialSchema: GenMessage<DiscardPartial>;
|
|
635
|
+
/**
|
|
636
|
+
* ToolStarted reports that the assistant started a tool call.
|
|
637
|
+
*
|
|
638
|
+
* @generated from message ai.v1.ToolStarted
|
|
639
|
+
*/
|
|
640
|
+
type ToolStarted = Message$1<"ai.v1.ToolStarted"> & {
|
|
641
|
+
/**
|
|
642
|
+
* Identifier of the call, unique within the run.
|
|
643
|
+
*
|
|
644
|
+
* @generated from field: string tool_call_id = 1;
|
|
645
|
+
*/
|
|
646
|
+
toolCallId: string;
|
|
647
|
+
/**
|
|
648
|
+
* Tool name, for example "get_candles".
|
|
649
|
+
*
|
|
650
|
+
* @generated from field: string name = 2;
|
|
651
|
+
*/
|
|
652
|
+
name: string;
|
|
653
|
+
/**
|
|
654
|
+
* Arguments the tool was called with.
|
|
655
|
+
*
|
|
656
|
+
* @generated from field: google.protobuf.Struct input = 3;
|
|
657
|
+
*/
|
|
658
|
+
input?: JsonObject | undefined;
|
|
659
|
+
};
|
|
660
|
+
/**
|
|
661
|
+
* Describes the message ai.v1.ToolStarted.
|
|
662
|
+
* Use `create(ToolStartedSchema)` to create a new message.
|
|
663
|
+
*/
|
|
664
|
+
declare const ToolStartedSchema: GenMessage<ToolStarted>;
|
|
665
|
+
/**
|
|
666
|
+
* ToolFinished reports the end of a tool call. Results to show arrive as View
|
|
667
|
+
* and MemoriesRecalled events.
|
|
668
|
+
*
|
|
669
|
+
* @generated from message ai.v1.ToolFinished
|
|
670
|
+
*/
|
|
671
|
+
type ToolFinished = Message$1<"ai.v1.ToolFinished"> & {
|
|
672
|
+
/**
|
|
673
|
+
* Identifier of the call, as in its ToolStarted event.
|
|
674
|
+
*
|
|
675
|
+
* @generated from field: string tool_call_id = 1;
|
|
676
|
+
*/
|
|
677
|
+
toolCallId: string;
|
|
678
|
+
/**
|
|
679
|
+
* Tool name.
|
|
680
|
+
*
|
|
681
|
+
* @generated from field: string name = 2;
|
|
682
|
+
*/
|
|
683
|
+
name: string;
|
|
684
|
+
/**
|
|
685
|
+
* True when the tool succeeded.
|
|
686
|
+
*
|
|
687
|
+
* @generated from field: bool ok = 3;
|
|
688
|
+
*/
|
|
689
|
+
ok: boolean;
|
|
690
|
+
/**
|
|
691
|
+
* Short explanation of the failure. Omitted when ok is true.
|
|
692
|
+
*
|
|
693
|
+
* @generated from field: optional string error_message = 4;
|
|
694
|
+
*/
|
|
695
|
+
errorMessage?: string | undefined;
|
|
696
|
+
};
|
|
697
|
+
/**
|
|
698
|
+
* Describes the message ai.v1.ToolFinished.
|
|
699
|
+
* Use `create(ToolFinishedSchema)` to create a new message.
|
|
700
|
+
*/
|
|
701
|
+
declare const ToolFinishedSchema: GenMessage<ToolFinished>;
|
|
702
|
+
/**
|
|
703
|
+
* RecalledMemory is one memory the assistant recalled during a run.
|
|
704
|
+
*
|
|
705
|
+
* @generated from message ai.v1.RecalledMemory
|
|
706
|
+
*/
|
|
707
|
+
type RecalledMemory = Message$1<"ai.v1.RecalledMemory"> & {
|
|
708
|
+
/**
|
|
709
|
+
* Public memory ID, as ListMemories returns it and DeleteMemory accepts it.
|
|
710
|
+
*
|
|
711
|
+
* @generated from field: fixed64 memory_id = 1;
|
|
712
|
+
*/
|
|
713
|
+
memoryId: bigint;
|
|
714
|
+
/**
|
|
715
|
+
* The remembered fact, in plain text.
|
|
716
|
+
*
|
|
717
|
+
* @generated from field: string text = 2;
|
|
718
|
+
*/
|
|
719
|
+
text: string;
|
|
720
|
+
/**
|
|
721
|
+
* What kind of fact the memory holds.
|
|
722
|
+
*
|
|
723
|
+
* @generated from field: ai.v1.MemoryKind kind = 3;
|
|
724
|
+
*/
|
|
725
|
+
kind: MemoryKind;
|
|
726
|
+
};
|
|
727
|
+
/**
|
|
728
|
+
* Describes the message ai.v1.RecalledMemory.
|
|
729
|
+
* Use `create(RecalledMemorySchema)` to create a new message.
|
|
730
|
+
*/
|
|
731
|
+
declare const RecalledMemorySchema: GenMessage<RecalledMemory>;
|
|
732
|
+
/**
|
|
733
|
+
* MemoriesRecalled reports the memories one memory search of the run
|
|
734
|
+
* returned. The assistant searches the user's memories for their message
|
|
735
|
+
* before it answers, and may search again while answering, each time as a
|
|
736
|
+
* recall_memories tool call. A search returns only the memories relevant to
|
|
737
|
+
* what it searched for, so a message unrelated to every saved memory recalls
|
|
738
|
+
* none. Profile memories are never searched: the assistant applies them to
|
|
739
|
+
* every answer, and they are not reported here. The event follows that call's
|
|
740
|
+
* ToolFinished event with ok true; a failed search has a ToolFinished event
|
|
741
|
+
* with ok false and no MemoriesRecalled event.
|
|
742
|
+
*
|
|
743
|
+
* @generated from message ai.v1.MemoriesRecalled
|
|
744
|
+
*/
|
|
745
|
+
type MemoriesRecalled = Message$1<"ai.v1.MemoriesRecalled"> & {
|
|
746
|
+
/**
|
|
747
|
+
* Identifier of the search's tool call, as in its ToolStarted and
|
|
748
|
+
* ToolFinished events.
|
|
749
|
+
*
|
|
750
|
+
* @generated from field: string tool_call_id = 1;
|
|
751
|
+
*/
|
|
752
|
+
toolCallId: string;
|
|
753
|
+
/**
|
|
754
|
+
* The relevant memories found, at most 8, most relevant first; never a
|
|
755
|
+
* profile memory. Empty when none is relevant.
|
|
756
|
+
*
|
|
757
|
+
* @generated from field: repeated ai.v1.RecalledMemory memories = 2;
|
|
758
|
+
*/
|
|
759
|
+
memories: RecalledMemory[];
|
|
760
|
+
};
|
|
761
|
+
/**
|
|
762
|
+
* Describes the message ai.v1.MemoriesRecalled.
|
|
763
|
+
* Use `create(MemoriesRecalledSchema)` to create a new message.
|
|
764
|
+
*/
|
|
765
|
+
declare const MemoriesRecalledSchema: GenMessage<MemoriesRecalled>;
|
|
766
|
+
/**
|
|
767
|
+
* DestinationsSuggested reports the places in the client the assistant
|
|
768
|
+
* offers the user to go to, for example to create a subaccount or change a
|
|
769
|
+
* setting: show each as a button. The ids are those the run's SendMessage
|
|
770
|
+
* declared in destinations; the client maps each to its own page or dialog.
|
|
771
|
+
* The event follows the ToolFinished event, with ok true, of the
|
|
772
|
+
* suggest_destinations call that chose them.
|
|
773
|
+
*
|
|
774
|
+
* @generated from message ai.v1.DestinationsSuggested
|
|
775
|
+
*/
|
|
776
|
+
type DestinationsSuggested = Message$1<"ai.v1.DestinationsSuggested"> & {
|
|
777
|
+
/**
|
|
778
|
+
* Identifier of the tool call, as in its ToolStarted and ToolFinished
|
|
779
|
+
* events.
|
|
780
|
+
*
|
|
781
|
+
* @generated from field: string tool_call_id = 1;
|
|
782
|
+
*/
|
|
783
|
+
toolCallId: string;
|
|
784
|
+
/**
|
|
785
|
+
* 1 to 3 destination ids, most relevant first, each declared in the run's
|
|
786
|
+
* SendMessage destinations. A client that no longer knows an id skips it.
|
|
787
|
+
*
|
|
788
|
+
* @generated from field: repeated string destination_ids = 2;
|
|
789
|
+
*/
|
|
790
|
+
destinationIds: string[];
|
|
791
|
+
};
|
|
792
|
+
/**
|
|
793
|
+
* Describes the message ai.v1.DestinationsSuggested.
|
|
794
|
+
* Use `create(DestinationsSuggestedSchema)` to create a new message.
|
|
795
|
+
*/
|
|
796
|
+
declare const DestinationsSuggestedSchema: GenMessage<DestinationsSuggested>;
|
|
797
|
+
/**
|
|
798
|
+
* SkillLoaded reports that the assistant loaded a skill: instructions for one
|
|
799
|
+
* kind of task. A skill grants no extra tools or permissions.
|
|
800
|
+
*
|
|
801
|
+
* @generated from message ai.v1.SkillLoaded
|
|
802
|
+
*/
|
|
803
|
+
type SkillLoaded = Message$1<"ai.v1.SkillLoaded"> & {
|
|
804
|
+
/**
|
|
805
|
+
* Skill name, for example "market-analysis".
|
|
806
|
+
*
|
|
807
|
+
* @generated from field: string name = 1;
|
|
808
|
+
*/
|
|
809
|
+
name: string;
|
|
810
|
+
};
|
|
811
|
+
/**
|
|
812
|
+
* Describes the message ai.v1.SkillLoaded.
|
|
813
|
+
* Use `create(SkillLoadedSchema)` to create a new message.
|
|
814
|
+
*/
|
|
815
|
+
declare const SkillLoadedSchema: GenMessage<SkillLoaded>;
|
|
816
|
+
/**
|
|
817
|
+
* SubagentStarted reports that the assistant delegated a task to a subagent,
|
|
818
|
+
* a helper with its own instructions, tools and budget.
|
|
819
|
+
*
|
|
820
|
+
* @generated from message ai.v1.SubagentStarted
|
|
821
|
+
*/
|
|
822
|
+
type SubagentStarted = Message$1<"ai.v1.SubagentStarted"> & {
|
|
823
|
+
/**
|
|
824
|
+
* Identifier of the delegation, unique within the run.
|
|
825
|
+
*
|
|
826
|
+
* @generated from field: string subagent_id = 1;
|
|
827
|
+
*/
|
|
828
|
+
subagentId: string;
|
|
829
|
+
/**
|
|
830
|
+
* Subagent name, for example "strategy-researcher".
|
|
831
|
+
*
|
|
832
|
+
* @generated from field: string name = 2;
|
|
833
|
+
*/
|
|
834
|
+
name: string;
|
|
835
|
+
};
|
|
836
|
+
/**
|
|
837
|
+
* Describes the message ai.v1.SubagentStarted.
|
|
838
|
+
* Use `create(SubagentStartedSchema)` to create a new message.
|
|
839
|
+
*/
|
|
840
|
+
declare const SubagentStartedSchema: GenMessage<SubagentStarted>;
|
|
841
|
+
/**
|
|
842
|
+
* SubagentFinished reports the end of a delegated task.
|
|
843
|
+
*
|
|
844
|
+
* @generated from message ai.v1.SubagentFinished
|
|
845
|
+
*/
|
|
846
|
+
type SubagentFinished = Message$1<"ai.v1.SubagentFinished"> & {
|
|
847
|
+
/**
|
|
848
|
+
* Identifier of the delegation, as in its SubagentStarted event.
|
|
849
|
+
*
|
|
850
|
+
* @generated from field: string subagent_id = 1;
|
|
851
|
+
*/
|
|
852
|
+
subagentId: string;
|
|
853
|
+
/**
|
|
854
|
+
* Subagent name.
|
|
855
|
+
*
|
|
856
|
+
* @generated from field: string name = 2;
|
|
857
|
+
*/
|
|
858
|
+
name: string;
|
|
859
|
+
/**
|
|
860
|
+
* True when the subagent completed its task.
|
|
861
|
+
*
|
|
862
|
+
* @generated from field: bool ok = 3;
|
|
863
|
+
*/
|
|
864
|
+
ok: boolean;
|
|
865
|
+
/**
|
|
866
|
+
* Short summary of the subagent's result. Omitted when it has none.
|
|
867
|
+
*
|
|
868
|
+
* @generated from field: optional string summary = 4;
|
|
869
|
+
*/
|
|
870
|
+
summary?: string | undefined;
|
|
871
|
+
};
|
|
872
|
+
/**
|
|
873
|
+
* Describes the message ai.v1.SubagentFinished.
|
|
874
|
+
* Use `create(SubagentFinishedSchema)` to create a new message.
|
|
875
|
+
*/
|
|
876
|
+
declare const SubagentFinishedSchema: GenMessage<SubagentFinished>;
|
|
877
|
+
/**
|
|
878
|
+
* ApprovalParameter is one key parameter of the action an approval approves,
|
|
879
|
+
* for example "Slice interval" and "5 s".
|
|
880
|
+
*
|
|
881
|
+
* @generated from message ai.v1.ApprovalParameter
|
|
882
|
+
*/
|
|
883
|
+
type ApprovalParameter = Message$1<"ai.v1.ApprovalParameter"> & {
|
|
884
|
+
/**
|
|
885
|
+
* Short label, in plain words.
|
|
886
|
+
*
|
|
887
|
+
* @generated from field: string label = 1;
|
|
888
|
+
*/
|
|
889
|
+
label: string;
|
|
890
|
+
/**
|
|
891
|
+
* The value, in plain words, with its unit or asset when it has one.
|
|
892
|
+
*
|
|
893
|
+
* @generated from field: string value = 2;
|
|
894
|
+
*/
|
|
895
|
+
value: string;
|
|
896
|
+
};
|
|
897
|
+
/**
|
|
898
|
+
* Describes the message ai.v1.ApprovalParameter.
|
|
899
|
+
* Use `create(ApprovalParameterSchema)` to create a new message.
|
|
900
|
+
*/
|
|
901
|
+
declare const ApprovalParameterSchema: GenMessage<ApprovalParameter>;
|
|
902
|
+
/**
|
|
903
|
+
* ReferencePrice is one current market price the order preview read, to
|
|
904
|
+
* draw the order against.
|
|
905
|
+
*
|
|
906
|
+
* @generated from message ai.v1.ReferencePrice
|
|
907
|
+
*/
|
|
908
|
+
type ReferencePrice = Message$1<"ai.v1.ReferencePrice"> & {
|
|
909
|
+
/**
|
|
910
|
+
* The price, an exact decimal string in the quote asset.
|
|
911
|
+
*
|
|
912
|
+
* @generated from field: string price = 1;
|
|
913
|
+
*/
|
|
914
|
+
price: string;
|
|
915
|
+
/**
|
|
916
|
+
* Which market price it is.
|
|
917
|
+
*
|
|
918
|
+
* @generated from field: ai.v1.ReferencePriceSource source = 2;
|
|
919
|
+
*/
|
|
920
|
+
source: ReferencePriceSource;
|
|
921
|
+
/**
|
|
922
|
+
* When the price was set: for LAST_PRICE the time of the market's last
|
|
923
|
+
* trade, for the others when the assistant read it.
|
|
924
|
+
*
|
|
925
|
+
* @generated from field: google.protobuf.Timestamp observed_at = 3;
|
|
926
|
+
*/
|
|
927
|
+
observedAt?: Timestamp | undefined;
|
|
928
|
+
};
|
|
929
|
+
/**
|
|
930
|
+
* Describes the message ai.v1.ReferencePrice.
|
|
931
|
+
* Use `create(ReferencePriceSchema)` to create a new message.
|
|
932
|
+
*/
|
|
933
|
+
declare const ReferencePriceSchema: GenMessage<ReferencePrice>;
|
|
934
|
+
/**
|
|
935
|
+
* RelativePrice is a price of the order that the user gave relative to
|
|
936
|
+
* another price, for example "10% below the current price", and that the
|
|
937
|
+
* assistant resolved to the absolute price the order carries. The order is
|
|
938
|
+
* placed at that absolute price, as approved, even when the reference moves
|
|
939
|
+
* afterwards.
|
|
940
|
+
*
|
|
941
|
+
* @generated from message ai.v1.RelativePrice
|
|
942
|
+
*/
|
|
943
|
+
type RelativePrice = Message$1<"ai.v1.RelativePrice"> & {
|
|
944
|
+
/**
|
|
945
|
+
* Which price of the order it is.
|
|
946
|
+
*
|
|
947
|
+
* @generated from field: ai.v1.OrderPriceField field = 1;
|
|
948
|
+
*/
|
|
949
|
+
field: OrderPriceField;
|
|
950
|
+
/**
|
|
951
|
+
* The resolved price, an exact decimal string in the quote asset, as the
|
|
952
|
+
* order carries it: the reference moved by offset_bps, then rounded onto
|
|
953
|
+
* the market's tick size in the direction never worse for the order that
|
|
954
|
+
* trades at it: down for a buy, up for a sell. An attached exit trades
|
|
955
|
+
* the other way from its order.
|
|
956
|
+
*
|
|
957
|
+
* @generated from field: string price = 2;
|
|
958
|
+
*/
|
|
959
|
+
price: string;
|
|
960
|
+
/**
|
|
961
|
+
* Whether the price is above or below the reference.
|
|
962
|
+
*
|
|
963
|
+
* @generated from field: ai.v1.PriceOffsetDirection direction = 3;
|
|
964
|
+
*/
|
|
965
|
+
direction: PriceOffsetDirection;
|
|
966
|
+
/**
|
|
967
|
+
* The offset from the reference in basis points: 1000 is 10%. From 0 to
|
|
968
|
+
* 10000 above the reference, from 0 to 9999 below it. Zero is the
|
|
969
|
+
* reference itself, rounded onto the tick size as price says. A positive
|
|
970
|
+
* offset always resolves strictly above or below the reference, as
|
|
971
|
+
* direction says: one smaller than one tick size step is refused, never
|
|
972
|
+
* resolved to the reference or past it.
|
|
973
|
+
*
|
|
974
|
+
* @generated from field: uint32 offset_bps = 4;
|
|
975
|
+
*/
|
|
976
|
+
offsetBps: number;
|
|
977
|
+
/**
|
|
978
|
+
* The price it is relative to.
|
|
979
|
+
*
|
|
980
|
+
* @generated from oneof ai.v1.RelativePrice.reference
|
|
981
|
+
*/
|
|
982
|
+
reference: {
|
|
983
|
+
/**
|
|
984
|
+
* A market price the assistant read: for a stop-loss, take-profit or
|
|
985
|
+
* trailing stop the price it watches (last or index), for the others the
|
|
986
|
+
* best ask for a buy or the best bid for a sell; for an attached exit of
|
|
987
|
+
* a market order, that order's best ask or best bid. A reference set more
|
|
988
|
+
* than the approval's 10-minute lifetime before the approval was
|
|
989
|
+
* requested (a last price by its last trade) is refused.
|
|
990
|
+
*
|
|
991
|
+
* @generated from field: ai.v1.ReferencePrice market = 5;
|
|
992
|
+
*/
|
|
993
|
+
value: ReferencePrice;
|
|
994
|
+
case: "market";
|
|
995
|
+
} | {
|
|
996
|
+
/**
|
|
997
|
+
* The order's own limit price, an exact decimal string in the quote
|
|
998
|
+
* asset: the reference of an attached exit of a limit order.
|
|
999
|
+
*
|
|
1000
|
+
* @generated from field: string limit_price = 6;
|
|
1001
|
+
*/
|
|
1002
|
+
value: string;
|
|
1003
|
+
case: "limitPrice";
|
|
1004
|
+
} | {
|
|
1005
|
+
case: undefined;
|
|
1006
|
+
value?: undefined;
|
|
1007
|
+
};
|
|
1008
|
+
/**
|
|
1009
|
+
* Which way the moved reference was rounded onto tick_size: DOWN for a
|
|
1010
|
+
* price a buy trades at, UP for a sell.
|
|
1011
|
+
*
|
|
1012
|
+
* @generated from field: ai.v1.PriceRounding rounding = 7;
|
|
1013
|
+
*/
|
|
1014
|
+
rounding: PriceRounding;
|
|
1015
|
+
/**
|
|
1016
|
+
* The market's tick size the price was rounded onto, an exact decimal
|
|
1017
|
+
* string in the quote asset.
|
|
1018
|
+
*
|
|
1019
|
+
* @generated from field: string tick_size = 8;
|
|
1020
|
+
*/
|
|
1021
|
+
tickSize: string;
|
|
1022
|
+
};
|
|
1023
|
+
/**
|
|
1024
|
+
* Describes the message ai.v1.RelativePrice.
|
|
1025
|
+
* Use `create(RelativePriceSchema)` to create a new message.
|
|
1026
|
+
*/
|
|
1027
|
+
declare const RelativePriceSchema: GenMessage<RelativePrice>;
|
|
1028
|
+
/**
|
|
1029
|
+
* AttachedExit is an attached take-profit or stop-loss.
|
|
1030
|
+
*
|
|
1031
|
+
* @generated from message ai.v1.AttachedExit
|
|
1032
|
+
*/
|
|
1033
|
+
type AttachedExit = Message$1<"ai.v1.AttachedExit"> & {
|
|
1034
|
+
/**
|
|
1035
|
+
* The price that fires the exit, an exact decimal string in the quote
|
|
1036
|
+
* asset.
|
|
1037
|
+
*
|
|
1038
|
+
* @generated from field: string trigger_price = 1;
|
|
1039
|
+
*/
|
|
1040
|
+
triggerPrice: string;
|
|
1041
|
+
/**
|
|
1042
|
+
* The exit's limit price, an exact decimal string in the quote asset.
|
|
1043
|
+
* Omitted when the exit is a market order.
|
|
1044
|
+
*
|
|
1045
|
+
* @generated from field: optional string limit_price = 2;
|
|
1046
|
+
*/
|
|
1047
|
+
limitPrice?: string | undefined;
|
|
1048
|
+
};
|
|
1049
|
+
/**
|
|
1050
|
+
* Describes the message ai.v1.AttachedExit.
|
|
1051
|
+
* Use `create(AttachedExitSchema)` to create a new message.
|
|
1052
|
+
*/
|
|
1053
|
+
declare const AttachedExitSchema: GenMessage<AttachedExit>;
|
|
1054
|
+
/**
|
|
1055
|
+
* AttachedTrailingStop is an attached trailing stop.
|
|
1056
|
+
*
|
|
1057
|
+
* @generated from message ai.v1.AttachedTrailingStop
|
|
1058
|
+
*/
|
|
1059
|
+
type AttachedTrailingStop = Message$1<"ai.v1.AttachedTrailingStop"> & {
|
|
1060
|
+
/**
|
|
1061
|
+
* How far the stop trails the price.
|
|
1062
|
+
*
|
|
1063
|
+
* @generated from oneof ai.v1.AttachedTrailingStop.trailing_distance
|
|
1064
|
+
*/
|
|
1065
|
+
trailingDistance: {
|
|
1066
|
+
/**
|
|
1067
|
+
* A price distance, an exact decimal string in the quote asset.
|
|
1068
|
+
*
|
|
1069
|
+
* @generated from field: string distance = 1;
|
|
1070
|
+
*/
|
|
1071
|
+
value: string;
|
|
1072
|
+
case: "distance";
|
|
1073
|
+
} | {
|
|
1074
|
+
/**
|
|
1075
|
+
* A distance in basis points of the price: 50 is 0.5%.
|
|
1076
|
+
*
|
|
1077
|
+
* @generated from field: uint32 distance_bps = 2;
|
|
1078
|
+
*/
|
|
1079
|
+
value: number;
|
|
1080
|
+
case: "distanceBps";
|
|
1081
|
+
} | {
|
|
1082
|
+
case: undefined;
|
|
1083
|
+
value?: undefined;
|
|
1084
|
+
};
|
|
1085
|
+
/**
|
|
1086
|
+
* Tracking starts once the price reaches it, an exact decimal string in
|
|
1087
|
+
* the quote asset. Omitted when tracking starts at once.
|
|
1088
|
+
*
|
|
1089
|
+
* @generated from field: optional string activation_price = 3;
|
|
1090
|
+
*/
|
|
1091
|
+
activationPrice?: string | undefined;
|
|
1092
|
+
/**
|
|
1093
|
+
* The most the buy-back pays, an exact decimal string in the quote asset.
|
|
1094
|
+
* Set only when the order sells.
|
|
1095
|
+
*
|
|
1096
|
+
* @generated from field: optional string limit_price = 4;
|
|
1097
|
+
*/
|
|
1098
|
+
limitPrice?: string | undefined;
|
|
1099
|
+
};
|
|
1100
|
+
/**
|
|
1101
|
+
* Describes the message ai.v1.AttachedTrailingStop.
|
|
1102
|
+
* Use `create(AttachedTrailingStopSchema)` to create a new message.
|
|
1103
|
+
*/
|
|
1104
|
+
declare const AttachedTrailingStopSchema: GenMessage<AttachedTrailingStop>;
|
|
1105
|
+
/**
|
|
1106
|
+
* AttachedExits are exits that protect what a market or limit order fills,
|
|
1107
|
+
* armed as it fills. They close the order's position: they sell what a buy
|
|
1108
|
+
* order bought, so a take-profit fires above and a stop-loss below the entry,
|
|
1109
|
+
* and they buy back what a sell order sold, the other way round.
|
|
1110
|
+
*
|
|
1111
|
+
* @generated from message ai.v1.AttachedExits
|
|
1112
|
+
*/
|
|
1113
|
+
type AttachedExits = Message$1<"ai.v1.AttachedExits"> & {
|
|
1114
|
+
/**
|
|
1115
|
+
* The take-profit. Omitted when there is none.
|
|
1116
|
+
*
|
|
1117
|
+
* @generated from field: ai.v1.AttachedExit take_profit = 1;
|
|
1118
|
+
*/
|
|
1119
|
+
takeProfit?: AttachedExit | undefined;
|
|
1120
|
+
/**
|
|
1121
|
+
* The stop-loss. Omitted when there is none. Never set together with
|
|
1122
|
+
* trailing_stop.
|
|
1123
|
+
*
|
|
1124
|
+
* @generated from field: ai.v1.AttachedExit stop_loss = 2;
|
|
1125
|
+
*/
|
|
1126
|
+
stopLoss?: AttachedExit | undefined;
|
|
1127
|
+
/**
|
|
1128
|
+
* The trailing stop. Omitted when there is none.
|
|
1129
|
+
*
|
|
1130
|
+
* @generated from field: ai.v1.AttachedTrailingStop trailing_stop = 3;
|
|
1131
|
+
*/
|
|
1132
|
+
trailingStop?: AttachedTrailingStop | undefined;
|
|
1133
|
+
/**
|
|
1134
|
+
* True when cancelling one exit ends the other.
|
|
1135
|
+
*
|
|
1136
|
+
* @generated from field: bool oco = 4;
|
|
1137
|
+
*/
|
|
1138
|
+
oco: boolean;
|
|
1139
|
+
};
|
|
1140
|
+
/**
|
|
1141
|
+
* Describes the message ai.v1.AttachedExits.
|
|
1142
|
+
* Use `create(AttachedExitsSchema)` to create a new message.
|
|
1143
|
+
*/
|
|
1144
|
+
declare const AttachedExitsSchema: GenMessage<AttachedExits>;
|
|
1145
|
+
/**
|
|
1146
|
+
* MarketOrderPreview is a market order: it fills at once against the book.
|
|
1147
|
+
*
|
|
1148
|
+
* @generated from message ai.v1.MarketOrderPreview
|
|
1149
|
+
*/
|
|
1150
|
+
type MarketOrderPreview = Message$1<"ai.v1.MarketOrderPreview"> & {
|
|
1151
|
+
/**
|
|
1152
|
+
* The most the price may move against the order, in basis points: 50 is
|
|
1153
|
+
* 0.5%. Omitted when the market's default cap applies.
|
|
1154
|
+
*
|
|
1155
|
+
* @generated from field: optional uint32 max_slippage_bps = 1;
|
|
1156
|
+
*/
|
|
1157
|
+
maxSlippageBps?: number | undefined;
|
|
1158
|
+
/**
|
|
1159
|
+
* Exits attached to the order. Omitted when it has none.
|
|
1160
|
+
*
|
|
1161
|
+
* @generated from field: ai.v1.AttachedExits attached = 2;
|
|
1162
|
+
*/
|
|
1163
|
+
attached?: AttachedExits | undefined;
|
|
1164
|
+
};
|
|
1165
|
+
/**
|
|
1166
|
+
* Describes the message ai.v1.MarketOrderPreview.
|
|
1167
|
+
* Use `create(MarketOrderPreviewSchema)` to create a new message.
|
|
1168
|
+
*/
|
|
1169
|
+
declare const MarketOrderPreviewSchema: GenMessage<MarketOrderPreview>;
|
|
1170
|
+
/**
|
|
1171
|
+
* LimitOrderPreview is a limit order: it trades at its price or better.
|
|
1172
|
+
*
|
|
1173
|
+
* @generated from message ai.v1.LimitOrderPreview
|
|
1174
|
+
*/
|
|
1175
|
+
type LimitOrderPreview = Message$1<"ai.v1.LimitOrderPreview"> & {
|
|
1176
|
+
/**
|
|
1177
|
+
* The limit price, an exact decimal string in the quote asset.
|
|
1178
|
+
*
|
|
1179
|
+
* @generated from field: string price = 1;
|
|
1180
|
+
*/
|
|
1181
|
+
price: string;
|
|
1182
|
+
/**
|
|
1183
|
+
* GTC, GTD, IOC or FOK.
|
|
1184
|
+
*
|
|
1185
|
+
* @generated from field: orders.v1.TimeInForce time_in_force = 2;
|
|
1186
|
+
*/
|
|
1187
|
+
timeInForce: TimeInForce;
|
|
1188
|
+
/**
|
|
1189
|
+
* When a GTD order expires. Omitted for other times in force.
|
|
1190
|
+
*
|
|
1191
|
+
* @generated from field: google.protobuf.Timestamp expire_at = 3;
|
|
1192
|
+
*/
|
|
1193
|
+
expireAt?: Timestamp | undefined;
|
|
1194
|
+
/**
|
|
1195
|
+
* True when the order is refused instead of trading at once.
|
|
1196
|
+
*
|
|
1197
|
+
* @generated from field: bool post_only = 4;
|
|
1198
|
+
*/
|
|
1199
|
+
postOnly: boolean;
|
|
1200
|
+
/**
|
|
1201
|
+
* Exits attached to the order. Omitted when it has none.
|
|
1202
|
+
*
|
|
1203
|
+
* @generated from field: ai.v1.AttachedExits attached = 5;
|
|
1204
|
+
*/
|
|
1205
|
+
attached?: AttachedExits | undefined;
|
|
1206
|
+
};
|
|
1207
|
+
/**
|
|
1208
|
+
* Describes the message ai.v1.LimitOrderPreview.
|
|
1209
|
+
* Use `create(LimitOrderPreviewSchema)` to create a new message.
|
|
1210
|
+
*/
|
|
1211
|
+
declare const LimitOrderPreviewSchema: GenMessage<LimitOrderPreview>;
|
|
1212
|
+
/**
|
|
1213
|
+
* StopOrderPreview is a stop-loss or take-profit: it places a market or limit
|
|
1214
|
+
* order once the watched price reaches the trigger price.
|
|
1215
|
+
*
|
|
1216
|
+
* @generated from message ai.v1.StopOrderPreview
|
|
1217
|
+
*/
|
|
1218
|
+
type StopOrderPreview = Message$1<"ai.v1.StopOrderPreview"> & {
|
|
1219
|
+
/**
|
|
1220
|
+
* The price that fires it, an exact decimal string in the quote asset.
|
|
1221
|
+
*
|
|
1222
|
+
* @generated from field: string trigger_price = 1;
|
|
1223
|
+
*/
|
|
1224
|
+
triggerPrice: string;
|
|
1225
|
+
/**
|
|
1226
|
+
* The price it watches: LAST_PRICE or INDEX_PRICE.
|
|
1227
|
+
*
|
|
1228
|
+
* @generated from field: orders.v1.TriggerPriceSource trigger_price_source = 2;
|
|
1229
|
+
*/
|
|
1230
|
+
triggerPriceSource: TriggerPriceSource;
|
|
1231
|
+
/**
|
|
1232
|
+
* Which way the watched price must move to reach trigger_price.
|
|
1233
|
+
*
|
|
1234
|
+
* @generated from field: ai.v1.TriggerDirection direction = 3;
|
|
1235
|
+
*/
|
|
1236
|
+
direction: TriggerDirection;
|
|
1237
|
+
/**
|
|
1238
|
+
* The limit price of the order it places, an exact decimal string in the
|
|
1239
|
+
* quote asset. Omitted when it places a market order.
|
|
1240
|
+
*
|
|
1241
|
+
* @generated from field: optional string limit_price = 4;
|
|
1242
|
+
*/
|
|
1243
|
+
limitPrice?: string | undefined;
|
|
1244
|
+
/**
|
|
1245
|
+
* GTC, IOC or FOK for a limit order. Unspecified for a market order.
|
|
1246
|
+
*
|
|
1247
|
+
* @generated from field: orders.v1.TimeInForce time_in_force = 5;
|
|
1248
|
+
*/
|
|
1249
|
+
timeInForce: TimeInForce;
|
|
1250
|
+
/**
|
|
1251
|
+
* True when its limit order is refused instead of trading at once.
|
|
1252
|
+
*
|
|
1253
|
+
* @generated from field: bool post_only = 6;
|
|
1254
|
+
*/
|
|
1255
|
+
postOnly: boolean;
|
|
1256
|
+
/**
|
|
1257
|
+
* For a market order: the most the price may move against it, in basis
|
|
1258
|
+
* points. Omitted for a limit order, or when the market's default cap
|
|
1259
|
+
* applies.
|
|
1260
|
+
*
|
|
1261
|
+
* @generated from field: optional uint32 max_slippage_bps = 7;
|
|
1262
|
+
*/
|
|
1263
|
+
maxSlippageBps?: number | undefined;
|
|
1264
|
+
/**
|
|
1265
|
+
* True when the exchange reserves its funds when it creates it, before it
|
|
1266
|
+
* fires. OrderPreview.reserved_amount states the amount when it is set.
|
|
1267
|
+
*
|
|
1268
|
+
* @generated from field: bool funds_reserved = 8;
|
|
1269
|
+
*/
|
|
1270
|
+
fundsReserved: boolean;
|
|
1271
|
+
};
|
|
1272
|
+
/**
|
|
1273
|
+
* Describes the message ai.v1.StopOrderPreview.
|
|
1274
|
+
* Use `create(StopOrderPreviewSchema)` to create a new message.
|
|
1275
|
+
*/
|
|
1276
|
+
declare const StopOrderPreviewSchema: GenMessage<StopOrderPreview>;
|
|
1277
|
+
/**
|
|
1278
|
+
* TrailingStopPreview is a trailing stop: it follows the watched price by a
|
|
1279
|
+
* distance and fires when the price reverses by that distance. A sell
|
|
1280
|
+
* tracks the highest price and sells at market; a buy tracks the lowest
|
|
1281
|
+
* price and buys with an immediate-or-cancel limit order.
|
|
1282
|
+
*
|
|
1283
|
+
* @generated from message ai.v1.TrailingStopPreview
|
|
1284
|
+
*/
|
|
1285
|
+
type TrailingStopPreview = Message$1<"ai.v1.TrailingStopPreview"> & {
|
|
1286
|
+
/**
|
|
1287
|
+
* How far the stop trails the price.
|
|
1288
|
+
*
|
|
1289
|
+
* @generated from oneof ai.v1.TrailingStopPreview.trailing_distance
|
|
1290
|
+
*/
|
|
1291
|
+
trailingDistance: {
|
|
1292
|
+
/**
|
|
1293
|
+
* A price distance, an exact decimal string in the quote asset.
|
|
1294
|
+
*
|
|
1295
|
+
* @generated from field: string distance = 1;
|
|
1296
|
+
*/
|
|
1297
|
+
value: string;
|
|
1298
|
+
case: "distance";
|
|
1299
|
+
} | {
|
|
1300
|
+
/**
|
|
1301
|
+
* A distance in basis points of the price: 50 is 0.5%.
|
|
1302
|
+
*
|
|
1303
|
+
* @generated from field: uint32 distance_bps = 2;
|
|
1304
|
+
*/
|
|
1305
|
+
value: number;
|
|
1306
|
+
case: "distanceBps";
|
|
1307
|
+
} | {
|
|
1308
|
+
case: undefined;
|
|
1309
|
+
value?: undefined;
|
|
1310
|
+
};
|
|
1311
|
+
/**
|
|
1312
|
+
* Tracking starts once the price reaches it, an exact decimal string in
|
|
1313
|
+
* the quote asset. Omitted when tracking starts at once.
|
|
1314
|
+
*
|
|
1315
|
+
* @generated from field: optional string activation_price = 3;
|
|
1316
|
+
*/
|
|
1317
|
+
activationPrice?: string | undefined;
|
|
1318
|
+
/**
|
|
1319
|
+
* The price it watches: LAST_PRICE or INDEX_PRICE.
|
|
1320
|
+
*
|
|
1321
|
+
* @generated from field: orders.v1.TriggerPriceSource trigger_price_source = 4;
|
|
1322
|
+
*/
|
|
1323
|
+
triggerPriceSource: TriggerPriceSource;
|
|
1324
|
+
/**
|
|
1325
|
+
* The most a buy pays, an exact decimal string in the quote asset. Set only
|
|
1326
|
+
* for a buy.
|
|
1327
|
+
*
|
|
1328
|
+
* @generated from field: optional string limit_price = 5;
|
|
1329
|
+
*/
|
|
1330
|
+
limitPrice?: string | undefined;
|
|
1331
|
+
/**
|
|
1332
|
+
* For a sell: the most the price may move against its market order, in
|
|
1333
|
+
* basis points. Omitted when the market's default cap applies.
|
|
1334
|
+
*
|
|
1335
|
+
* @generated from field: optional uint32 max_slippage_bps = 6;
|
|
1336
|
+
*/
|
|
1337
|
+
maxSlippageBps?: number | undefined;
|
|
1338
|
+
/**
|
|
1339
|
+
* True when the exchange reserves its funds when it creates it, before it
|
|
1340
|
+
* fires. OrderPreview.reserved_amount states the amount when it is set.
|
|
1341
|
+
*
|
|
1342
|
+
* @generated from field: bool funds_reserved = 7;
|
|
1343
|
+
*/
|
|
1344
|
+
fundsReserved: boolean;
|
|
1345
|
+
};
|
|
1346
|
+
/**
|
|
1347
|
+
* Describes the message ai.v1.TrailingStopPreview.
|
|
1348
|
+
* Use `create(TrailingStopPreviewSchema)` to create a new message.
|
|
1349
|
+
*/
|
|
1350
|
+
declare const TrailingStopPreviewSchema: GenMessage<TrailingStopPreview>;
|
|
1351
|
+
/**
|
|
1352
|
+
* TwapPreview is a TWAP: the quantity split into slices placed at a fixed
|
|
1353
|
+
* interval. The first slice is placed at once, slice i (from 0) at
|
|
1354
|
+
* i × slice_interval_ms after it.
|
|
1355
|
+
*
|
|
1356
|
+
* @generated from message ai.v1.TwapPreview
|
|
1357
|
+
*/
|
|
1358
|
+
type TwapPreview = Message$1<"ai.v1.TwapPreview"> & {
|
|
1359
|
+
/**
|
|
1360
|
+
* Total duration in milliseconds.
|
|
1361
|
+
*
|
|
1362
|
+
* @generated from field: uint64 duration_ms = 1;
|
|
1363
|
+
*/
|
|
1364
|
+
durationMs: bigint;
|
|
1365
|
+
/**
|
|
1366
|
+
* Milliseconds between two slices.
|
|
1367
|
+
*
|
|
1368
|
+
* @generated from field: uint64 slice_interval_ms = 2;
|
|
1369
|
+
*/
|
|
1370
|
+
sliceIntervalMs: bigint;
|
|
1371
|
+
/**
|
|
1372
|
+
* Number of slices.
|
|
1373
|
+
*
|
|
1374
|
+
* @generated from field: uint32 slice_count = 3;
|
|
1375
|
+
*/
|
|
1376
|
+
sliceCount: number;
|
|
1377
|
+
/**
|
|
1378
|
+
* The first slice's quantity, an exact decimal string in the base asset:
|
|
1379
|
+
* quantity divided by slice_count, rounded down to the step size. Each
|
|
1380
|
+
* later slice is the remaining quantity divided by the remaining slices,
|
|
1381
|
+
* rounded down to the step size, so later slices may be slightly larger
|
|
1382
|
+
* and the slices add up to quantity.
|
|
1383
|
+
*
|
|
1384
|
+
* @generated from field: string slice_quantity = 4;
|
|
1385
|
+
*/
|
|
1386
|
+
sliceQuantity: string;
|
|
1387
|
+
/**
|
|
1388
|
+
* Every slice's limit price, an exact decimal string in the quote asset.
|
|
1389
|
+
* Omitted when slices are market orders.
|
|
1390
|
+
*
|
|
1391
|
+
* @generated from field: optional string limit_price = 5;
|
|
1392
|
+
*/
|
|
1393
|
+
limitPrice?: string | undefined;
|
|
1394
|
+
/**
|
|
1395
|
+
* For market slices: the most the price may move against each slice, in
|
|
1396
|
+
* basis points. Omitted for limit slices, or when the market's default cap
|
|
1397
|
+
* applies.
|
|
1398
|
+
*
|
|
1399
|
+
* @generated from field: optional uint32 max_slippage_bps = 6;
|
|
1400
|
+
*/
|
|
1401
|
+
maxSlippageBps?: number | undefined;
|
|
1402
|
+
/**
|
|
1403
|
+
* What happens to a limit slice that has not filled when the next slice is
|
|
1404
|
+
* due: CANCEL_BEFORE_NEXT. Unspecified for market slices.
|
|
1405
|
+
*
|
|
1406
|
+
* @generated from field: ai.v1.UnfilledSlicePolicy unfilled_slice_policy = 7;
|
|
1407
|
+
*/
|
|
1408
|
+
unfilledSlicePolicy: UnfilledSlicePolicy;
|
|
1409
|
+
/**
|
|
1410
|
+
* True when the first slice is placed at once, when the TWAP is created;
|
|
1411
|
+
* the later slices follow every slice_interval_ms.
|
|
1412
|
+
*
|
|
1413
|
+
* @generated from field: bool first_slice_immediate = 8;
|
|
1414
|
+
*/
|
|
1415
|
+
firstSliceImmediate: boolean;
|
|
1416
|
+
};
|
|
1417
|
+
/**
|
|
1418
|
+
* Describes the message ai.v1.TwapPreview.
|
|
1419
|
+
* Use `create(TwapPreviewSchema)` to create a new message.
|
|
1420
|
+
*/
|
|
1421
|
+
declare const TwapPreviewSchema: GenMessage<TwapPreview>;
|
|
1422
|
+
/**
|
|
1423
|
+
* LadderLevel is one limit order of a ladder.
|
|
1424
|
+
*
|
|
1425
|
+
* @generated from message ai.v1.LadderLevel
|
|
1426
|
+
*/
|
|
1427
|
+
type LadderLevel = Message$1<"ai.v1.LadderLevel"> & {
|
|
1428
|
+
/**
|
|
1429
|
+
* Its price, an exact decimal string in the quote asset.
|
|
1430
|
+
*
|
|
1431
|
+
* @generated from field: string price = 1;
|
|
1432
|
+
*/
|
|
1433
|
+
price: string;
|
|
1434
|
+
/**
|
|
1435
|
+
* Its quantity, an exact decimal string in the base asset.
|
|
1436
|
+
*
|
|
1437
|
+
* @generated from field: string quantity = 2;
|
|
1438
|
+
*/
|
|
1439
|
+
quantity: string;
|
|
1440
|
+
};
|
|
1441
|
+
/**
|
|
1442
|
+
* Describes the message ai.v1.LadderLevel.
|
|
1443
|
+
* Use `create(LadderLevelSchema)` to create a new message.
|
|
1444
|
+
*/
|
|
1445
|
+
declare const LadderLevelSchema: GenMessage<LadderLevel>;
|
|
1446
|
+
/**
|
|
1447
|
+
* LadderPreview is a ladder: good-till-canceled limit orders spread evenly
|
|
1448
|
+
* across a price range, all placed at once.
|
|
1449
|
+
*
|
|
1450
|
+
* @generated from message ai.v1.LadderPreview
|
|
1451
|
+
*/
|
|
1452
|
+
type LadderPreview = Message$1<"ai.v1.LadderPreview"> & {
|
|
1453
|
+
/**
|
|
1454
|
+
* The lowest level's price, an exact decimal string in the quote asset.
|
|
1455
|
+
*
|
|
1456
|
+
* @generated from field: string low_price = 1;
|
|
1457
|
+
*/
|
|
1458
|
+
lowPrice: string;
|
|
1459
|
+
/**
|
|
1460
|
+
* The highest level's price, an exact decimal string in the quote asset.
|
|
1461
|
+
*
|
|
1462
|
+
* @generated from field: string high_price = 2;
|
|
1463
|
+
*/
|
|
1464
|
+
highPrice: string;
|
|
1465
|
+
/**
|
|
1466
|
+
* Every level, lowest price first: 2 to 100. The quantity is split
|
|
1467
|
+
* equally, rounded down to the step size; the highest level gets the rest.
|
|
1468
|
+
*
|
|
1469
|
+
* @generated from field: repeated ai.v1.LadderLevel levels = 3;
|
|
1470
|
+
*/
|
|
1471
|
+
levels: LadderLevel[];
|
|
1472
|
+
/**
|
|
1473
|
+
* True when every level is refused instead of trading at once.
|
|
1474
|
+
*
|
|
1475
|
+
* @generated from field: bool post_only = 4;
|
|
1476
|
+
*/
|
|
1477
|
+
postOnly: boolean;
|
|
1478
|
+
/**
|
|
1479
|
+
* Every level's time in force: GTC.
|
|
1480
|
+
*
|
|
1481
|
+
* @generated from field: orders.v1.TimeInForce time_in_force = 5;
|
|
1482
|
+
*/
|
|
1483
|
+
timeInForce: TimeInForce;
|
|
1484
|
+
/**
|
|
1485
|
+
* True when every level is placed at once, when the ladder is created.
|
|
1486
|
+
*
|
|
1487
|
+
* @generated from field: bool all_levels_at_once = 6;
|
|
1488
|
+
*/
|
|
1489
|
+
allLevelsAtOnce: boolean;
|
|
1490
|
+
};
|
|
1491
|
+
/**
|
|
1492
|
+
* Describes the message ai.v1.LadderPreview.
|
|
1493
|
+
* Use `create(LadderPreviewSchema)` to create a new message.
|
|
1494
|
+
*/
|
|
1495
|
+
declare const LadderPreviewSchema: GenMessage<LadderPreview>;
|
|
1496
|
+
/**
|
|
1497
|
+
* OrderPreview is the exact order an approval places, as typed values to
|
|
1498
|
+
* draw it: a TWAP's slices on a timeline, a ladder's levels on a price axis,
|
|
1499
|
+
* a stop's trigger price against the current price. It is computed from the
|
|
1500
|
+
* exact order by the assistant's order checks, never written by the model,
|
|
1501
|
+
* and states the same order as the approval's summary and parameters.
|
|
1502
|
+
* Prices are exact decimal strings in the quote asset, quantities in the
|
|
1503
|
+
* base asset.
|
|
1504
|
+
*
|
|
1505
|
+
* @generated from message ai.v1.OrderPreview
|
|
1506
|
+
*/
|
|
1507
|
+
type OrderPreview = Message$1<"ai.v1.OrderPreview"> & {
|
|
1508
|
+
/**
|
|
1509
|
+
* Numeric spot market identifier.
|
|
1510
|
+
*
|
|
1511
|
+
* @generated from field: uint32 symbol_id = 1;
|
|
1512
|
+
*/
|
|
1513
|
+
symbolId: number;
|
|
1514
|
+
/**
|
|
1515
|
+
* Market symbol, for example "SOL-USDT".
|
|
1516
|
+
*
|
|
1517
|
+
* @generated from field: string symbol = 2;
|
|
1518
|
+
*/
|
|
1519
|
+
symbol: string;
|
|
1520
|
+
/**
|
|
1521
|
+
* Base asset, for example "SOL".
|
|
1522
|
+
*
|
|
1523
|
+
* @generated from field: string base_asset = 3;
|
|
1524
|
+
*/
|
|
1525
|
+
baseAsset: string;
|
|
1526
|
+
/**
|
|
1527
|
+
* Quote asset, for example "USDT".
|
|
1528
|
+
*
|
|
1529
|
+
* @generated from field: string quote_asset = 4;
|
|
1530
|
+
*/
|
|
1531
|
+
quoteAsset: string;
|
|
1532
|
+
/**
|
|
1533
|
+
* BUY or SELL.
|
|
1534
|
+
*
|
|
1535
|
+
* @generated from field: orders.v1.Side side = 5;
|
|
1536
|
+
*/
|
|
1537
|
+
side: Side;
|
|
1538
|
+
/**
|
|
1539
|
+
* Total quantity, an exact decimal string in the base asset. Omitted only
|
|
1540
|
+
* for a buy sized by quote_amount.
|
|
1541
|
+
*
|
|
1542
|
+
* @generated from field: optional string quantity = 6;
|
|
1543
|
+
*/
|
|
1544
|
+
quantity?: string | undefined;
|
|
1545
|
+
/**
|
|
1546
|
+
* A buy market order, or buy immediate-or-cancel limit order, sized by
|
|
1547
|
+
* spend: the most quote asset it spends, an exact decimal string. Omitted
|
|
1548
|
+
* when quantity is set.
|
|
1549
|
+
*
|
|
1550
|
+
* @generated from field: optional string quote_amount = 7;
|
|
1551
|
+
*/
|
|
1552
|
+
quoteAmount?: string | undefined;
|
|
1553
|
+
/**
|
|
1554
|
+
* Estimated order value in the quote asset, a decimal string rounded to at
|
|
1555
|
+
* most 2 decimals. Valued at: quote_amount when set; a market order or TWAP
|
|
1556
|
+
* of market slices at reference_price; a limit order, ladder level or limit
|
|
1557
|
+
* slice at its price; a stop at its limit price, else its trigger price; a
|
|
1558
|
+
* trailing stop at its limit price, else its activation price, else the last
|
|
1559
|
+
* price. Omitted when it cannot be estimated.
|
|
1560
|
+
*
|
|
1561
|
+
* @generated from field: optional string estimated_value = 8;
|
|
1562
|
+
*/
|
|
1563
|
+
estimatedValue?: string | undefined;
|
|
1564
|
+
/**
|
|
1565
|
+
* What the exchange reserves on the trading account when it creates a
|
|
1566
|
+
* stop-loss, take-profit, trailing stop or ladder: an exact decimal string,
|
|
1567
|
+
* in the base asset for a sell, in the quote asset (fee reserve included)
|
|
1568
|
+
* for a buy. Omitted for market and limit orders, which reserve as they
|
|
1569
|
+
* are placed, and for a TWAP, whose slices each use what is available when
|
|
1570
|
+
* they are due.
|
|
1571
|
+
*
|
|
1572
|
+
* @generated from field: optional string reserved_amount = 9;
|
|
1573
|
+
*/
|
|
1574
|
+
reservedAmount?: string | undefined;
|
|
1575
|
+
/**
|
|
1576
|
+
* The current market price to draw the order against: for a stop-loss,
|
|
1577
|
+
* take-profit or trailing stop the price it watches (last or index), for
|
|
1578
|
+
* the others the best ask for a buy or the best bid for a sell. Omitted
|
|
1579
|
+
* when the market has no such price.
|
|
1580
|
+
*
|
|
1581
|
+
* @generated from field: ai.v1.ReferencePrice reference_price = 10;
|
|
1582
|
+
*/
|
|
1583
|
+
referencePrice?: ReferencePrice | undefined;
|
|
1584
|
+
/**
|
|
1585
|
+
* The order type and its own values. A client that does not recognize the
|
|
1586
|
+
* kind, for example one added after it was built, shows the approval's
|
|
1587
|
+
* summary and parameters only.
|
|
1588
|
+
*
|
|
1589
|
+
* @generated from oneof ai.v1.OrderPreview.kind
|
|
1590
|
+
*/
|
|
1591
|
+
kind: {
|
|
1592
|
+
/**
|
|
1593
|
+
* A market order.
|
|
1594
|
+
*
|
|
1595
|
+
* @generated from field: ai.v1.MarketOrderPreview market = 11;
|
|
1596
|
+
*/
|
|
1597
|
+
value: MarketOrderPreview;
|
|
1598
|
+
case: "market";
|
|
1599
|
+
} | {
|
|
1600
|
+
/**
|
|
1601
|
+
* A limit order.
|
|
1602
|
+
*
|
|
1603
|
+
* @generated from field: ai.v1.LimitOrderPreview limit = 12;
|
|
1604
|
+
*/
|
|
1605
|
+
value: LimitOrderPreview;
|
|
1606
|
+
case: "limit";
|
|
1607
|
+
} | {
|
|
1608
|
+
/**
|
|
1609
|
+
* A stop-loss.
|
|
1610
|
+
*
|
|
1611
|
+
* @generated from field: ai.v1.StopOrderPreview stop_loss = 13;
|
|
1612
|
+
*/
|
|
1613
|
+
value: StopOrderPreview;
|
|
1614
|
+
case: "stopLoss";
|
|
1615
|
+
} | {
|
|
1616
|
+
/**
|
|
1617
|
+
* A take-profit.
|
|
1618
|
+
*
|
|
1619
|
+
* @generated from field: ai.v1.StopOrderPreview take_profit = 14;
|
|
1620
|
+
*/
|
|
1621
|
+
value: StopOrderPreview;
|
|
1622
|
+
case: "takeProfit";
|
|
1623
|
+
} | {
|
|
1624
|
+
/**
|
|
1625
|
+
* A trailing stop.
|
|
1626
|
+
*
|
|
1627
|
+
* @generated from field: ai.v1.TrailingStopPreview trailing_stop = 15;
|
|
1628
|
+
*/
|
|
1629
|
+
value: TrailingStopPreview;
|
|
1630
|
+
case: "trailingStop";
|
|
1631
|
+
} | {
|
|
1632
|
+
/**
|
|
1633
|
+
* A TWAP.
|
|
1634
|
+
*
|
|
1635
|
+
* @generated from field: ai.v1.TwapPreview twap = 16;
|
|
1636
|
+
*/
|
|
1637
|
+
value: TwapPreview;
|
|
1638
|
+
case: "twap";
|
|
1639
|
+
} | {
|
|
1640
|
+
/**
|
|
1641
|
+
* A ladder.
|
|
1642
|
+
*
|
|
1643
|
+
* @generated from field: ai.v1.LadderPreview ladder = 17;
|
|
1644
|
+
*/
|
|
1645
|
+
value: LadderPreview;
|
|
1646
|
+
case: "ladder";
|
|
1647
|
+
} | {
|
|
1648
|
+
case: undefined;
|
|
1649
|
+
value?: undefined;
|
|
1650
|
+
};
|
|
1651
|
+
/**
|
|
1652
|
+
* The prices the user gave relative to another price, as resolved, in the
|
|
1653
|
+
* order they appear in the order. Empty when every price was given as an
|
|
1654
|
+
* absolute price.
|
|
1655
|
+
*
|
|
1656
|
+
* @generated from field: repeated ai.v1.RelativePrice relative_prices = 18;
|
|
1657
|
+
*/
|
|
1658
|
+
relativePrices: RelativePrice[];
|
|
1659
|
+
};
|
|
1660
|
+
/**
|
|
1661
|
+
* Describes the message ai.v1.OrderPreview.
|
|
1662
|
+
* Use `create(OrderPreviewSchema)` to create a new message.
|
|
1663
|
+
*/
|
|
1664
|
+
declare const OrderPreviewSchema: GenMessage<OrderPreview>;
|
|
1665
|
+
/**
|
|
1666
|
+
* QuoteValue is a value in one quote asset.
|
|
1667
|
+
*
|
|
1668
|
+
* @generated from message ai.v1.QuoteValue
|
|
1669
|
+
*/
|
|
1670
|
+
type QuoteValue = Message$1<"ai.v1.QuoteValue"> & {
|
|
1671
|
+
/**
|
|
1672
|
+
* Quote asset, for example "USDT".
|
|
1673
|
+
*
|
|
1674
|
+
* @generated from field: string quote_asset = 1;
|
|
1675
|
+
*/
|
|
1676
|
+
quoteAsset: string;
|
|
1677
|
+
/**
|
|
1678
|
+
* The value, a decimal string in quote_asset rounded to at most 2
|
|
1679
|
+
* decimals.
|
|
1680
|
+
*
|
|
1681
|
+
* @generated from field: string value = 2;
|
|
1682
|
+
*/
|
|
1683
|
+
value: string;
|
|
1684
|
+
};
|
|
1685
|
+
/**
|
|
1686
|
+
* Describes the message ai.v1.QuoteValue.
|
|
1687
|
+
* Use `create(QuoteValueSchema)` to create a new message.
|
|
1688
|
+
*/
|
|
1689
|
+
declare const QuoteValueSchema: GenMessage<QuoteValue>;
|
|
1690
|
+
/**
|
|
1691
|
+
* PlaceOrdersPreview is the exact set of limit orders an approval places
|
|
1692
|
+
* together. The exchange may refuse some of them and accept the others.
|
|
1693
|
+
*
|
|
1694
|
+
* @generated from message ai.v1.PlaceOrdersPreview
|
|
1695
|
+
*/
|
|
1696
|
+
type PlaceOrdersPreview = Message$1<"ai.v1.PlaceOrdersPreview"> & {
|
|
1697
|
+
/**
|
|
1698
|
+
* Every order, in the order the user gave them, each as typed values with
|
|
1699
|
+
* its own estimated value and reference price.
|
|
1700
|
+
*
|
|
1701
|
+
* @generated from field: repeated ai.v1.OrderPreview orders = 1;
|
|
1702
|
+
*/
|
|
1703
|
+
orders: OrderPreview[];
|
|
1704
|
+
/**
|
|
1705
|
+
* The estimated value of the whole set, one per quote asset, in the order
|
|
1706
|
+
* the assets first appear in orders: the exact sum of its orders' values in
|
|
1707
|
+
* that asset, then rounded.
|
|
1708
|
+
*
|
|
1709
|
+
* @generated from field: repeated ai.v1.QuoteValue total_values = 2;
|
|
1710
|
+
*/
|
|
1711
|
+
totalValues: QuoteValue[];
|
|
1712
|
+
};
|
|
1713
|
+
/**
|
|
1714
|
+
* Describes the message ai.v1.PlaceOrdersPreview.
|
|
1715
|
+
* Use `create(PlaceOrdersPreviewSchema)` to create a new message.
|
|
1716
|
+
*/
|
|
1717
|
+
declare const PlaceOrdersPreviewSchema: GenMessage<PlaceOrdersPreview>;
|
|
1718
|
+
/**
|
|
1719
|
+
* SwapLegPreview is one spot market a swap's quote trades on.
|
|
1720
|
+
*
|
|
1721
|
+
* @generated from message ai.v1.SwapLegPreview
|
|
1722
|
+
*/
|
|
1723
|
+
type SwapLegPreview = Message$1<"ai.v1.SwapLegPreview"> & {
|
|
1724
|
+
/**
|
|
1725
|
+
* Market symbol, for example "BTC-USDT".
|
|
1726
|
+
*
|
|
1727
|
+
* @generated from field: string symbol = 1;
|
|
1728
|
+
*/
|
|
1729
|
+
symbol: string;
|
|
1730
|
+
/**
|
|
1731
|
+
* BUY or SELL: the side of the swap's order on the market.
|
|
1732
|
+
*
|
|
1733
|
+
* @generated from field: orders.v1.Side side = 2;
|
|
1734
|
+
*/
|
|
1735
|
+
side: Side;
|
|
1736
|
+
/**
|
|
1737
|
+
* Estimated average fill price, in the quote asset per base asset, as a
|
|
1738
|
+
* decimal string. Indicative: it comes from the quote's order-book depth.
|
|
1739
|
+
*
|
|
1740
|
+
* @generated from field: string average_price = 3;
|
|
1741
|
+
*/
|
|
1742
|
+
averagePrice: string;
|
|
1743
|
+
/**
|
|
1744
|
+
* Distance of average_price from the best price of the book, in basis
|
|
1745
|
+
* points: the cost of the order's size against the depth.
|
|
1746
|
+
*
|
|
1747
|
+
* @generated from field: uint32 price_impact_bps = 4;
|
|
1748
|
+
*/
|
|
1749
|
+
priceImpactBps: number;
|
|
1750
|
+
/**
|
|
1751
|
+
* The account's spot taker fee rate on the market, in percent (for example
|
|
1752
|
+
* "0.1" for 0.1%), as a decimal string.
|
|
1753
|
+
*
|
|
1754
|
+
* @generated from field: string taker_fee_rate_percent = 5;
|
|
1755
|
+
*/
|
|
1756
|
+
takerFeeRatePercent: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* Estimated fee, an exact decimal string in fee_asset.
|
|
1759
|
+
*
|
|
1760
|
+
* @generated from field: string fee = 6;
|
|
1761
|
+
*/
|
|
1762
|
+
fee: string;
|
|
1763
|
+
/**
|
|
1764
|
+
* Asset the fee is charged in: the asset the leg receives.
|
|
1765
|
+
*
|
|
1766
|
+
* @generated from field: string fee_asset = 7;
|
|
1767
|
+
*/
|
|
1768
|
+
feeAsset: string;
|
|
1769
|
+
};
|
|
1770
|
+
/**
|
|
1771
|
+
* Describes the message ai.v1.SwapLegPreview.
|
|
1772
|
+
* Use `create(SwapLegPreviewSchema)` to create a new message.
|
|
1773
|
+
*/
|
|
1774
|
+
declare const SwapLegPreviewSchema: GenMessage<SwapLegPreview>;
|
|
1775
|
+
/**
|
|
1776
|
+
* SwapPreview is the swap an approval executes: spend amount of source_asset
|
|
1777
|
+
* from the trading account's Trading balance and receive destination_asset
|
|
1778
|
+
* there, through the spot order books at the account's taker fee. Nothing
|
|
1779
|
+
* leaves the account. Only min_amount_out binds: what cannot trade at that
|
|
1780
|
+
* rate, and any rest smaller than one order step, stays on the account.
|
|
1781
|
+
*
|
|
1782
|
+
* @generated from message ai.v1.SwapPreview
|
|
1783
|
+
*/
|
|
1784
|
+
type SwapPreview = Message$1<"ai.v1.SwapPreview"> & {
|
|
1785
|
+
/**
|
|
1786
|
+
* Asset spent, for example "USDT".
|
|
1787
|
+
*
|
|
1788
|
+
* @generated from field: string source_asset = 1;
|
|
1789
|
+
*/
|
|
1790
|
+
sourceAsset: string;
|
|
1791
|
+
/**
|
|
1792
|
+
* Asset received, for example "BTC".
|
|
1793
|
+
*
|
|
1794
|
+
* @generated from field: string destination_asset = 2;
|
|
1795
|
+
*/
|
|
1796
|
+
destinationAsset: string;
|
|
1797
|
+
/**
|
|
1798
|
+
* Amount spent, an exact decimal string in source_asset.
|
|
1799
|
+
*
|
|
1800
|
+
* @generated from field: string amount = 3;
|
|
1801
|
+
*/
|
|
1802
|
+
amount: string;
|
|
1803
|
+
/**
|
|
1804
|
+
* Estimated amount received after fees at the quote's order-book depth, an
|
|
1805
|
+
* exact decimal string in destination_asset. Indicative.
|
|
1806
|
+
*
|
|
1807
|
+
* @generated from field: string expected_amount_out = 4;
|
|
1808
|
+
*/
|
|
1809
|
+
expectedAmountOut: string;
|
|
1810
|
+
/**
|
|
1811
|
+
* The least the swap receives after fees for the whole amount, an exact
|
|
1812
|
+
* decimal string in destination_asset. Every traded part nets at least
|
|
1813
|
+
* this rate.
|
|
1814
|
+
*
|
|
1815
|
+
* @generated from field: string min_amount_out = 5;
|
|
1816
|
+
*/
|
|
1817
|
+
minAmountOut: string;
|
|
1818
|
+
/**
|
|
1819
|
+
* The accepted shortfall of min_amount_out from expected_amount_out, in
|
|
1820
|
+
* basis points.
|
|
1821
|
+
*
|
|
1822
|
+
* @generated from field: uint32 max_slippage_bps = 6;
|
|
1823
|
+
*/
|
|
1824
|
+
maxSlippageBps: number;
|
|
1825
|
+
/**
|
|
1826
|
+
* The markets the swap trades on, in order. A direct swap has one.
|
|
1827
|
+
*
|
|
1828
|
+
* @generated from field: repeated ai.v1.SwapLegPreview legs = 7;
|
|
1829
|
+
*/
|
|
1830
|
+
legs: SwapLegPreview[];
|
|
1831
|
+
/**
|
|
1832
|
+
* When the quote was priced.
|
|
1833
|
+
*
|
|
1834
|
+
* @generated from field: google.protobuf.Timestamp quoted_at = 8;
|
|
1835
|
+
*/
|
|
1836
|
+
quotedAt?: Timestamp | undefined;
|
|
1837
|
+
/**
|
|
1838
|
+
* The quote's expiry, 30 seconds after quoted_at. Approving after it
|
|
1839
|
+
* executes nothing: the swap is requested again for a new quote.
|
|
1840
|
+
*
|
|
1841
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 9;
|
|
1842
|
+
*/
|
|
1843
|
+
expiresAt?: Timestamp | undefined;
|
|
1844
|
+
};
|
|
1845
|
+
/**
|
|
1846
|
+
* Describes the message ai.v1.SwapPreview.
|
|
1847
|
+
* Use `create(SwapPreviewSchema)` to create a new message.
|
|
1848
|
+
*/
|
|
1849
|
+
declare const SwapPreviewSchema: GenMessage<SwapPreview>;
|
|
1850
|
+
/**
|
|
1851
|
+
* OrderToCancel is one open order a cancellation cancels, as it was when the
|
|
1852
|
+
* cancellation was requested.
|
|
1853
|
+
*
|
|
1854
|
+
* @generated from message ai.v1.OrderToCancel
|
|
1855
|
+
*/
|
|
1856
|
+
type OrderToCancel = Message$1<"ai.v1.OrderToCancel"> & {
|
|
1857
|
+
/**
|
|
1858
|
+
* Order ID.
|
|
1859
|
+
*
|
|
1860
|
+
* @generated from field: fixed64 order_id = 1;
|
|
1861
|
+
*/
|
|
1862
|
+
orderId: bigint;
|
|
1863
|
+
/**
|
|
1864
|
+
* Market symbol, for example "BTC-USDT".
|
|
1865
|
+
*
|
|
1866
|
+
* @generated from field: string symbol = 2;
|
|
1867
|
+
*/
|
|
1868
|
+
symbol: string;
|
|
1869
|
+
/**
|
|
1870
|
+
* BUY or SELL.
|
|
1871
|
+
*
|
|
1872
|
+
* @generated from field: orders.v1.Side side = 3;
|
|
1873
|
+
*/
|
|
1874
|
+
side: Side;
|
|
1875
|
+
/**
|
|
1876
|
+
* The limit price, an exact decimal string in the quote asset. Omitted for
|
|
1877
|
+
* a market order.
|
|
1878
|
+
*
|
|
1879
|
+
* @generated from field: optional string price = 4;
|
|
1880
|
+
*/
|
|
1881
|
+
price?: string | undefined;
|
|
1882
|
+
/**
|
|
1883
|
+
* Total quantity, an exact decimal string in the base asset.
|
|
1884
|
+
*
|
|
1885
|
+
* @generated from field: string quantity = 5;
|
|
1886
|
+
*/
|
|
1887
|
+
quantity: string;
|
|
1888
|
+
/**
|
|
1889
|
+
* Quantity filled so far, an exact decimal string in the base asset.
|
|
1890
|
+
*
|
|
1891
|
+
* @generated from field: string filled_quantity = 6;
|
|
1892
|
+
*/
|
|
1893
|
+
filledQuantity: string;
|
|
1894
|
+
};
|
|
1895
|
+
/**
|
|
1896
|
+
* Describes the message ai.v1.OrderToCancel.
|
|
1897
|
+
* Use `create(OrderToCancelSchema)` to create a new message.
|
|
1898
|
+
*/
|
|
1899
|
+
declare const OrderToCancelSchema: GenMessage<OrderToCancel>;
|
|
1900
|
+
/**
|
|
1901
|
+
* CancelOrdersPreview is the exact set of open orders an approval cancels:
|
|
1902
|
+
* orders named one by one, or every open order a cancel-all matches. It
|
|
1903
|
+
* cancels orders only; triggers stay active.
|
|
1904
|
+
*
|
|
1905
|
+
* @generated from message ai.v1.CancelOrdersPreview
|
|
1906
|
+
*/
|
|
1907
|
+
type CancelOrdersPreview = Message$1<"ai.v1.CancelOrdersPreview"> & {
|
|
1908
|
+
/**
|
|
1909
|
+
* Every order it cancels: a cancel-all's oldest first, otherwise in the
|
|
1910
|
+
* order the user named them. Approving cancels exactly these; an order that
|
|
1911
|
+
* matches a cancel-all after the approval is not cancelled under it.
|
|
1912
|
+
*
|
|
1913
|
+
* @generated from field: repeated ai.v1.OrderToCancel orders = 1;
|
|
1914
|
+
*/
|
|
1915
|
+
orders: OrderToCancel[];
|
|
1916
|
+
/**
|
|
1917
|
+
* True for a cancel-all: every open order on symbols and side.
|
|
1918
|
+
*
|
|
1919
|
+
* @generated from field: bool cancel_all = 2;
|
|
1920
|
+
*/
|
|
1921
|
+
cancelAll: boolean;
|
|
1922
|
+
/**
|
|
1923
|
+
* A cancel-all's markets, for example "BTC-USDT". Empty for every market,
|
|
1924
|
+
* and for orders named one by one.
|
|
1925
|
+
*
|
|
1926
|
+
* @generated from field: repeated string symbols = 3;
|
|
1927
|
+
*/
|
|
1928
|
+
symbols: string[];
|
|
1929
|
+
/**
|
|
1930
|
+
* A cancel-all's side, BUY or SELL. Unspecified for both sides, and for
|
|
1931
|
+
* orders named one by one.
|
|
1932
|
+
*
|
|
1933
|
+
* @generated from field: orders.v1.Side side = 4;
|
|
1934
|
+
*/
|
|
1935
|
+
side: Side;
|
|
1936
|
+
/**
|
|
1937
|
+
* A cancel-all's live triggers on its markets that stay active, as
|
|
1938
|
+
* counted when it was requested. A lower bound when
|
|
1939
|
+
* live_triggers_kept_lower_bound is true.
|
|
1940
|
+
*
|
|
1941
|
+
* @generated from field: uint32 live_triggers_kept = 5;
|
|
1942
|
+
*/
|
|
1943
|
+
liveTriggersKept: number;
|
|
1944
|
+
/**
|
|
1945
|
+
* True when live_triggers_kept counts only the live triggers read, and
|
|
1946
|
+
* more may stay active.
|
|
1947
|
+
*
|
|
1948
|
+
* @generated from field: bool live_triggers_kept_lower_bound = 6;
|
|
1949
|
+
*/
|
|
1950
|
+
liveTriggersKeptLowerBound: boolean;
|
|
1951
|
+
};
|
|
1952
|
+
/**
|
|
1953
|
+
* Describes the message ai.v1.CancelOrdersPreview.
|
|
1954
|
+
* Use `create(CancelOrdersPreviewSchema)` to create a new message.
|
|
1955
|
+
*/
|
|
1956
|
+
declare const CancelOrdersPreviewSchema: GenMessage<CancelOrdersPreview>;
|
|
1957
|
+
/**
|
|
1958
|
+
* CancelTriggerPreview is the exact trigger an approval cancels, as it was
|
|
1959
|
+
* when the cancellation was requested.
|
|
1960
|
+
*
|
|
1961
|
+
* @generated from message ai.v1.CancelTriggerPreview
|
|
1962
|
+
*/
|
|
1963
|
+
type CancelTriggerPreview = Message$1<"ai.v1.CancelTriggerPreview"> & {
|
|
1964
|
+
/**
|
|
1965
|
+
* Trigger ID.
|
|
1966
|
+
*
|
|
1967
|
+
* @generated from field: fixed64 trigger_id = 1;
|
|
1968
|
+
*/
|
|
1969
|
+
triggerId: bigint;
|
|
1970
|
+
/**
|
|
1971
|
+
* Numeric spot market identifier.
|
|
1972
|
+
*
|
|
1973
|
+
* @generated from field: uint32 symbol_id = 2;
|
|
1974
|
+
*/
|
|
1975
|
+
symbolId: number;
|
|
1976
|
+
/**
|
|
1977
|
+
* Market symbol, for example "BTC-USDT".
|
|
1978
|
+
*
|
|
1979
|
+
* @generated from field: string symbol = 3;
|
|
1980
|
+
*/
|
|
1981
|
+
symbol: string;
|
|
1982
|
+
/**
|
|
1983
|
+
* STOP_LOSS, TAKE_PROFIT, TRAILING_STOP, TWAP or LADDER.
|
|
1984
|
+
*
|
|
1985
|
+
* @generated from field: triggers.v1.TriggerType type = 4;
|
|
1986
|
+
*/
|
|
1987
|
+
type: TriggerType;
|
|
1988
|
+
/**
|
|
1989
|
+
* BUY or SELL.
|
|
1990
|
+
*
|
|
1991
|
+
* @generated from field: orders.v1.Side side = 5;
|
|
1992
|
+
*/
|
|
1993
|
+
side: Side;
|
|
1994
|
+
/**
|
|
1995
|
+
* Its total quantity, an exact decimal string in the base asset.
|
|
1996
|
+
*
|
|
1997
|
+
* @generated from field: string quantity = 6;
|
|
1998
|
+
*/
|
|
1999
|
+
quantity: string;
|
|
2000
|
+
/**
|
|
2001
|
+
* A stop-loss's or take-profit's trigger price, or a trailing stop's
|
|
2002
|
+
* current trigger price, an exact decimal string in the quote asset.
|
|
2003
|
+
* Omitted for a TWAP or ladder, and when it has none yet.
|
|
2004
|
+
*
|
|
2005
|
+
* @generated from field: optional string trigger_price = 7;
|
|
2006
|
+
*/
|
|
2007
|
+
triggerPrice?: string | undefined;
|
|
2008
|
+
/**
|
|
2009
|
+
* A TWAP's or ladder's quantity filled so far, an exact decimal string in
|
|
2010
|
+
* the base asset. Omitted for other types.
|
|
2011
|
+
*
|
|
2012
|
+
* @generated from field: optional string filled_quantity = 8;
|
|
2013
|
+
*/
|
|
2014
|
+
filledQuantity?: string | undefined;
|
|
2015
|
+
/**
|
|
2016
|
+
* A TWAP's slices done so far. Omitted for other types.
|
|
2017
|
+
*
|
|
2018
|
+
* @generated from field: optional uint32 slices_done = 9;
|
|
2019
|
+
*/
|
|
2020
|
+
slicesDone?: number | undefined;
|
|
2021
|
+
/**
|
|
2022
|
+
* A TWAP's number of slices. Omitted for other types.
|
|
2023
|
+
*
|
|
2024
|
+
* @generated from field: optional uint32 slice_count = 10;
|
|
2025
|
+
*/
|
|
2026
|
+
sliceCount?: number | undefined;
|
|
2027
|
+
/**
|
|
2028
|
+
* A ladder's levels with at least one fill. Omitted for other types.
|
|
2029
|
+
*
|
|
2030
|
+
* @generated from field: optional uint32 levels_filled = 11;
|
|
2031
|
+
*/
|
|
2032
|
+
levelsFilled?: number | undefined;
|
|
2033
|
+
/**
|
|
2034
|
+
* A ladder's number of levels. Omitted for other types.
|
|
2035
|
+
*
|
|
2036
|
+
* @generated from field: optional uint32 level_count = 12;
|
|
2037
|
+
*/
|
|
2038
|
+
levelCount?: number | undefined;
|
|
2039
|
+
/**
|
|
2040
|
+
* True when cancelling it also cancels its open orders: a TWAP's or a
|
|
2041
|
+
* ladder's.
|
|
2042
|
+
*
|
|
2043
|
+
* @generated from field: bool cancels_open_orders = 13;
|
|
2044
|
+
*/
|
|
2045
|
+
cancelsOpenOrders: boolean;
|
|
2046
|
+
};
|
|
2047
|
+
/**
|
|
2048
|
+
* Describes the message ai.v1.CancelTriggerPreview.
|
|
2049
|
+
* Use `create(CancelTriggerPreviewSchema)` to create a new message.
|
|
2050
|
+
*/
|
|
2051
|
+
declare const CancelTriggerPreviewSchema: GenMessage<CancelTriggerPreview>;
|
|
2052
|
+
/**
|
|
2053
|
+
* OrderChange is one open limit order a modification changes, before and
|
|
2054
|
+
* after.
|
|
2055
|
+
*
|
|
2056
|
+
* @generated from message ai.v1.OrderChange
|
|
2057
|
+
*/
|
|
2058
|
+
type OrderChange = Message$1<"ai.v1.OrderChange"> & {
|
|
2059
|
+
/**
|
|
2060
|
+
* Order ID.
|
|
2061
|
+
*
|
|
2062
|
+
* @generated from field: fixed64 order_id = 1;
|
|
2063
|
+
*/
|
|
2064
|
+
orderId: bigint;
|
|
2065
|
+
/**
|
|
2066
|
+
* BUY or SELL.
|
|
2067
|
+
*
|
|
2068
|
+
* @generated from field: orders.v1.Side side = 2;
|
|
2069
|
+
*/
|
|
2070
|
+
side: Side;
|
|
2071
|
+
/**
|
|
2072
|
+
* The limit price now, an exact decimal string in the quote asset.
|
|
2073
|
+
*
|
|
2074
|
+
* @generated from field: string price = 3;
|
|
2075
|
+
*/
|
|
2076
|
+
price: string;
|
|
2077
|
+
/**
|
|
2078
|
+
* The new limit price, an exact decimal string in the quote asset. Omitted
|
|
2079
|
+
* when the price does not change.
|
|
2080
|
+
*
|
|
2081
|
+
* @generated from field: optional string new_price = 4;
|
|
2082
|
+
*/
|
|
2083
|
+
newPrice?: string | undefined;
|
|
2084
|
+
/**
|
|
2085
|
+
* The total quantity now, filled part included, an exact decimal string in
|
|
2086
|
+
* the base asset.
|
|
2087
|
+
*
|
|
2088
|
+
* @generated from field: string quantity = 5;
|
|
2089
|
+
*/
|
|
2090
|
+
quantity: string;
|
|
2091
|
+
/**
|
|
2092
|
+
* The new total quantity, filled part included, an exact decimal string in
|
|
2093
|
+
* the base asset. Omitted when the quantity does not change.
|
|
2094
|
+
*
|
|
2095
|
+
* @generated from field: optional string new_quantity = 6;
|
|
2096
|
+
*/
|
|
2097
|
+
newQuantity?: string | undefined;
|
|
2098
|
+
/**
|
|
2099
|
+
* Quantity filled so far, an exact decimal string in the base asset.
|
|
2100
|
+
*
|
|
2101
|
+
* @generated from field: string filled_quantity = 7;
|
|
2102
|
+
*/
|
|
2103
|
+
filledQuantity: string;
|
|
2104
|
+
/**
|
|
2105
|
+
* True when the change replaces the order with a new order under a new
|
|
2106
|
+
* order ID, at the back of the queue: a new price or a larger quantity.
|
|
2107
|
+
* False when it amends the order in place, keeping its queue position.
|
|
2108
|
+
*
|
|
2109
|
+
* @generated from field: bool replaced = 8;
|
|
2110
|
+
*/
|
|
2111
|
+
replaced: boolean;
|
|
2112
|
+
};
|
|
2113
|
+
/**
|
|
2114
|
+
* Describes the message ai.v1.OrderChange.
|
|
2115
|
+
* Use `create(OrderChangeSchema)` to create a new message.
|
|
2116
|
+
*/
|
|
2117
|
+
declare const OrderChangeSchema: GenMessage<OrderChange>;
|
|
2118
|
+
/**
|
|
2119
|
+
* OrderChangePreview is the exact change an approval makes to open limit
|
|
2120
|
+
* orders of one market: their price or total quantity, before and after.
|
|
2121
|
+
*
|
|
2122
|
+
* @generated from message ai.v1.OrderChangePreview
|
|
2123
|
+
*/
|
|
2124
|
+
type OrderChangePreview = Message$1<"ai.v1.OrderChangePreview"> & {
|
|
2125
|
+
/**
|
|
2126
|
+
* Numeric spot market identifier.
|
|
2127
|
+
*
|
|
2128
|
+
* @generated from field: uint32 symbol_id = 1;
|
|
2129
|
+
*/
|
|
2130
|
+
symbolId: number;
|
|
2131
|
+
/**
|
|
2132
|
+
* Market symbol, for example "BTC-USDT".
|
|
2133
|
+
*
|
|
2134
|
+
* @generated from field: string symbol = 2;
|
|
2135
|
+
*/
|
|
2136
|
+
symbol: string;
|
|
2137
|
+
/**
|
|
2138
|
+
* Base asset, for example "BTC".
|
|
2139
|
+
*
|
|
2140
|
+
* @generated from field: string base_asset = 3;
|
|
2141
|
+
*/
|
|
2142
|
+
baseAsset: string;
|
|
2143
|
+
/**
|
|
2144
|
+
* Quote asset, for example "USDT".
|
|
2145
|
+
*
|
|
2146
|
+
* @generated from field: string quote_asset = 4;
|
|
2147
|
+
*/
|
|
2148
|
+
quoteAsset: string;
|
|
2149
|
+
/**
|
|
2150
|
+
* Every order it changes, in the order the user named them.
|
|
2151
|
+
*
|
|
2152
|
+
* @generated from field: repeated ai.v1.OrderChange orders = 5;
|
|
2153
|
+
*/
|
|
2154
|
+
orders: OrderChange[];
|
|
2155
|
+
};
|
|
2156
|
+
/**
|
|
2157
|
+
* Describes the message ai.v1.OrderChangePreview.
|
|
2158
|
+
* Use `create(OrderChangePreviewSchema)` to create a new message.
|
|
2159
|
+
*/
|
|
2160
|
+
declare const OrderChangePreviewSchema: GenMessage<OrderChangePreview>;
|
|
2161
|
+
/**
|
|
2162
|
+
* TriggerSettings are the settings of a stop-loss, take-profit or trailing
|
|
2163
|
+
* stop that a change can touch, with its status.
|
|
2164
|
+
*
|
|
2165
|
+
* @generated from message ai.v1.TriggerSettings
|
|
2166
|
+
*/
|
|
2167
|
+
type TriggerSettings = Message$1<"ai.v1.TriggerSettings"> & {
|
|
2168
|
+
/**
|
|
2169
|
+
* The trigger's status: PAUSED after a pause; ARMED after a resume.
|
|
2170
|
+
*
|
|
2171
|
+
* @generated from field: triggers.v1.TriggerStatus status = 1;
|
|
2172
|
+
*/
|
|
2173
|
+
status: TriggerStatus;
|
|
2174
|
+
/**
|
|
2175
|
+
* A stop-loss's or take-profit's trigger price, an exact decimal string in
|
|
2176
|
+
* the quote asset. Omitted for a trailing stop.
|
|
2177
|
+
*
|
|
2178
|
+
* @generated from field: optional string trigger_price = 2;
|
|
2179
|
+
*/
|
|
2180
|
+
triggerPrice?: string | undefined;
|
|
2181
|
+
/**
|
|
2182
|
+
* A trailing stop's distance. Unset for a stop-loss or take-profit.
|
|
2183
|
+
*
|
|
2184
|
+
* @generated from oneof ai.v1.TriggerSettings.trailing_distance
|
|
2185
|
+
*/
|
|
2186
|
+
trailingDistance: {
|
|
2187
|
+
/**
|
|
2188
|
+
* A price distance, an exact decimal string in the quote asset.
|
|
2189
|
+
*
|
|
2190
|
+
* @generated from field: string trailing_distance_price = 3;
|
|
2191
|
+
*/
|
|
2192
|
+
value: string;
|
|
2193
|
+
case: "trailingDistancePrice";
|
|
2194
|
+
} | {
|
|
2195
|
+
/**
|
|
2196
|
+
* A distance in basis points of the price: 50 is 0.5%.
|
|
2197
|
+
*
|
|
2198
|
+
* @generated from field: uint32 trailing_distance_bps = 4;
|
|
2199
|
+
*/
|
|
2200
|
+
value: number;
|
|
2201
|
+
case: "trailingDistanceBps";
|
|
2202
|
+
} | {
|
|
2203
|
+
case: undefined;
|
|
2204
|
+
value?: undefined;
|
|
2205
|
+
};
|
|
2206
|
+
/**
|
|
2207
|
+
* A trailing stop's activation price, an exact decimal string in the quote
|
|
2208
|
+
* asset. Omitted when tracking starts at once.
|
|
2209
|
+
*
|
|
2210
|
+
* @generated from field: optional string activation_price = 5;
|
|
2211
|
+
*/
|
|
2212
|
+
activationPrice?: string | undefined;
|
|
2213
|
+
/**
|
|
2214
|
+
* The slippage cap of the market order it places. Unset when the market's
|
|
2215
|
+
* default cap applies, or for a limit order.
|
|
2216
|
+
*
|
|
2217
|
+
* @generated from oneof ai.v1.TriggerSettings.max_slippage
|
|
2218
|
+
*/
|
|
2219
|
+
maxSlippage: {
|
|
2220
|
+
/**
|
|
2221
|
+
* In basis points of the price: 50 is 0.5%.
|
|
2222
|
+
*
|
|
2223
|
+
* @generated from field: uint32 max_slippage_bps = 6;
|
|
2224
|
+
*/
|
|
2225
|
+
value: number;
|
|
2226
|
+
case: "maxSlippageBps";
|
|
2227
|
+
} | {
|
|
2228
|
+
/**
|
|
2229
|
+
* A price distance, an exact decimal string in the quote asset.
|
|
2230
|
+
*
|
|
2231
|
+
* @generated from field: string max_slippage_price = 8;
|
|
2232
|
+
*/
|
|
2233
|
+
value: string;
|
|
2234
|
+
case: "maxSlippagePrice";
|
|
2235
|
+
} | {
|
|
2236
|
+
case: undefined;
|
|
2237
|
+
value?: undefined;
|
|
2238
|
+
};
|
|
2239
|
+
/**
|
|
2240
|
+
* The limit price of the order it places, or a buy trailing stop's most it
|
|
2241
|
+
* pays, an exact decimal string in the quote asset. Never changes. Omitted
|
|
2242
|
+
* when it places a market order.
|
|
2243
|
+
*
|
|
2244
|
+
* @generated from field: optional string limit_price = 7;
|
|
2245
|
+
*/
|
|
2246
|
+
limitPrice?: string | undefined;
|
|
2247
|
+
};
|
|
2248
|
+
/**
|
|
2249
|
+
* Describes the message ai.v1.TriggerSettings.
|
|
2250
|
+
* Use `create(TriggerSettingsSchema)` to create a new message.
|
|
2251
|
+
*/
|
|
2252
|
+
declare const TriggerSettingsSchema: GenMessage<TriggerSettings>;
|
|
2253
|
+
/**
|
|
2254
|
+
* TriggerChangePreview is the exact change an approval makes to one
|
|
2255
|
+
* stop-loss, take-profit or trailing stop: its settings before and after.
|
|
2256
|
+
*
|
|
2257
|
+
* @generated from message ai.v1.TriggerChangePreview
|
|
2258
|
+
*/
|
|
2259
|
+
type TriggerChangePreview = Message$1<"ai.v1.TriggerChangePreview"> & {
|
|
2260
|
+
/**
|
|
2261
|
+
* Trigger ID.
|
|
2262
|
+
*
|
|
2263
|
+
* @generated from field: fixed64 trigger_id = 1;
|
|
2264
|
+
*/
|
|
2265
|
+
triggerId: bigint;
|
|
2266
|
+
/**
|
|
2267
|
+
* Numeric spot market identifier.
|
|
2268
|
+
*
|
|
2269
|
+
* @generated from field: uint32 symbol_id = 2;
|
|
2270
|
+
*/
|
|
2271
|
+
symbolId: number;
|
|
2272
|
+
/**
|
|
2273
|
+
* Market symbol, for example "BTC-USDT".
|
|
2274
|
+
*
|
|
2275
|
+
* @generated from field: string symbol = 3;
|
|
2276
|
+
*/
|
|
2277
|
+
symbol: string;
|
|
2278
|
+
/**
|
|
2279
|
+
* Base asset, for example "BTC".
|
|
2280
|
+
*
|
|
2281
|
+
* @generated from field: string base_asset = 4;
|
|
2282
|
+
*/
|
|
2283
|
+
baseAsset: string;
|
|
2284
|
+
/**
|
|
2285
|
+
* Quote asset, for example "USDT".
|
|
2286
|
+
*
|
|
2287
|
+
* @generated from field: string quote_asset = 5;
|
|
2288
|
+
*/
|
|
2289
|
+
quoteAsset: string;
|
|
2290
|
+
/**
|
|
2291
|
+
* STOP_LOSS, TAKE_PROFIT or TRAILING_STOP.
|
|
2292
|
+
*
|
|
2293
|
+
* @generated from field: triggers.v1.TriggerType type = 6;
|
|
2294
|
+
*/
|
|
2295
|
+
type: TriggerType;
|
|
2296
|
+
/**
|
|
2297
|
+
* BUY or SELL.
|
|
2298
|
+
*
|
|
2299
|
+
* @generated from field: orders.v1.Side side = 7;
|
|
2300
|
+
*/
|
|
2301
|
+
side: Side;
|
|
2302
|
+
/**
|
|
2303
|
+
* Its quantity, an exact decimal string in the base asset. Never changes.
|
|
2304
|
+
*
|
|
2305
|
+
* @generated from field: string quantity = 8;
|
|
2306
|
+
*/
|
|
2307
|
+
quantity: string;
|
|
2308
|
+
/**
|
|
2309
|
+
* MODIFY, PAUSE or RESUME.
|
|
2310
|
+
*
|
|
2311
|
+
* @generated from field: ai.v1.TriggerChangeAction action = 9;
|
|
2312
|
+
*/
|
|
2313
|
+
action: TriggerChangeAction;
|
|
2314
|
+
/**
|
|
2315
|
+
* The settings now.
|
|
2316
|
+
*
|
|
2317
|
+
* @generated from field: ai.v1.TriggerSettings before = 10;
|
|
2318
|
+
*/
|
|
2319
|
+
before?: TriggerSettings | undefined;
|
|
2320
|
+
/**
|
|
2321
|
+
* The settings once the change applies.
|
|
2322
|
+
*
|
|
2323
|
+
* @generated from field: ai.v1.TriggerSettings after = 11;
|
|
2324
|
+
*/
|
|
2325
|
+
after?: TriggerSettings | undefined;
|
|
2326
|
+
/**
|
|
2327
|
+
* The price it watches, to draw its trigger price against. Omitted for a
|
|
2328
|
+
* pause, and when the market has no such price.
|
|
2329
|
+
*
|
|
2330
|
+
* @generated from field: ai.v1.ReferencePrice reference_price = 12;
|
|
2331
|
+
*/
|
|
2332
|
+
referencePrice?: ReferencePrice | undefined;
|
|
2333
|
+
/**
|
|
2334
|
+
* Which way the watched price must move to reach the trigger price.
|
|
2335
|
+
* Unspecified for a trailing stop.
|
|
2336
|
+
*
|
|
2337
|
+
* @generated from field: ai.v1.TriggerDirection direction = 13;
|
|
2338
|
+
*/
|
|
2339
|
+
direction: TriggerDirection;
|
|
2340
|
+
/**
|
|
2341
|
+
* How the change moves what the trigger reserves, an exact decimal string
|
|
2342
|
+
* in the quote asset, fee reserve included. Only a buy that places a
|
|
2343
|
+
* market order reserves at its trigger price and slippage cap, so only its
|
|
2344
|
+
* modification can move it. Unset when the reserve does not change.
|
|
2345
|
+
*
|
|
2346
|
+
* @generated from oneof ai.v1.TriggerChangePreview.reserve_change
|
|
2347
|
+
*/
|
|
2348
|
+
reserveChange: {
|
|
2349
|
+
/**
|
|
2350
|
+
* What the change reserves in addition.
|
|
2351
|
+
*
|
|
2352
|
+
* @generated from field: string reserve_increase = 14;
|
|
2353
|
+
*/
|
|
2354
|
+
value: string;
|
|
2355
|
+
case: "reserveIncrease";
|
|
2356
|
+
} | {
|
|
2357
|
+
/**
|
|
2358
|
+
* What the change releases.
|
|
2359
|
+
*
|
|
2360
|
+
* @generated from field: string reserve_release = 15;
|
|
2361
|
+
*/
|
|
2362
|
+
value: string;
|
|
2363
|
+
case: "reserveRelease";
|
|
2364
|
+
} | {
|
|
2365
|
+
case: undefined;
|
|
2366
|
+
value?: undefined;
|
|
2367
|
+
};
|
|
2368
|
+
/**
|
|
2369
|
+
* True for a resume when the watched price is already past the trigger
|
|
2370
|
+
* price: the trigger fires as soon as it resumes.
|
|
2371
|
+
*
|
|
2372
|
+
* @generated from field: bool fires_on_resume = 16;
|
|
2373
|
+
*/
|
|
2374
|
+
firesOnResume: boolean;
|
|
2375
|
+
};
|
|
2376
|
+
/**
|
|
2377
|
+
* Describes the message ai.v1.TriggerChangePreview.
|
|
2378
|
+
* Use `create(TriggerChangePreviewSchema)` to create a new message.
|
|
2379
|
+
*/
|
|
2380
|
+
declare const TriggerChangePreviewSchema: GenMessage<TriggerChangePreview>;
|
|
2381
|
+
/**
|
|
2382
|
+
* ApprovalRequested reports that the run waits for the user to approve an
|
|
2383
|
+
* action, such as placing an order. The run continues once DecideApproval
|
|
2384
|
+
* answers it, or the approval expires. Nothing runs without an approval.
|
|
2385
|
+
*
|
|
2386
|
+
* @generated from message ai.v1.ApprovalRequested
|
|
2387
|
+
*/
|
|
2388
|
+
type ApprovalRequested = Message$1<"ai.v1.ApprovalRequested"> & {
|
|
2389
|
+
/**
|
|
2390
|
+
* Public approval ID, the argument of DecideApproval.
|
|
2391
|
+
*
|
|
2392
|
+
* @generated from field: fixed64 approval_id = 1;
|
|
2393
|
+
*/
|
|
2394
|
+
approvalId: bigint;
|
|
2395
|
+
/**
|
|
2396
|
+
* What approving does, written from the exact action, never by the model.
|
|
2397
|
+
*
|
|
2398
|
+
* @generated from field: string summary = 2;
|
|
2399
|
+
*/
|
|
2400
|
+
summary: string;
|
|
2401
|
+
/**
|
|
2402
|
+
* When the approval expires if undecided.
|
|
2403
|
+
*
|
|
2404
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 3;
|
|
2405
|
+
*/
|
|
2406
|
+
expiresAt?: Timestamp | undefined;
|
|
2407
|
+
/**
|
|
2408
|
+
* The action's key parameters in display order, such as the market, side,
|
|
2409
|
+
* quantity, prices, a TWAP's duration and slices or a ladder's range,
|
|
2410
|
+
* written from the same exact action as the summary. Show them with the
|
|
2411
|
+
* summary.
|
|
2412
|
+
*
|
|
2413
|
+
* @generated from field: repeated ai.v1.ApprovalParameter parameters = 4;
|
|
2414
|
+
*/
|
|
2415
|
+
parameters: ApprovalParameter[];
|
|
2416
|
+
/**
|
|
2417
|
+
* Trading account (subaccount) the action acts on: the run's account, as
|
|
2418
|
+
* SendMessageRequest.subaccount_id named it.
|
|
2419
|
+
*
|
|
2420
|
+
* @generated from field: fixed64 account_id = 11;
|
|
2421
|
+
*/
|
|
2422
|
+
accountId: bigint;
|
|
2423
|
+
/**
|
|
2424
|
+
* The action as typed values to draw it, from the same exact action as the
|
|
2425
|
+
* summary; approving approves exactly it. At most one is set. Omitted when
|
|
2426
|
+
* the action has no typed preview; a client that does not recognize the
|
|
2427
|
+
* preview, for example one added after it was built, shows the summary and
|
|
2428
|
+
* parameters only.
|
|
2429
|
+
*
|
|
2430
|
+
* @generated from oneof ai.v1.ApprovalRequested.preview
|
|
2431
|
+
*/
|
|
2432
|
+
preview: {
|
|
2433
|
+
/**
|
|
2434
|
+
* The order the approval places.
|
|
2435
|
+
*
|
|
2436
|
+
* @generated from field: ai.v1.OrderPreview order_preview = 5;
|
|
2437
|
+
*/
|
|
2438
|
+
value: OrderPreview;
|
|
2439
|
+
case: "orderPreview";
|
|
2440
|
+
} | {
|
|
2441
|
+
/**
|
|
2442
|
+
* The open orders the approval cancels.
|
|
2443
|
+
*
|
|
2444
|
+
* @generated from field: ai.v1.CancelOrdersPreview cancel_orders = 6;
|
|
2445
|
+
*/
|
|
2446
|
+
value: CancelOrdersPreview;
|
|
2447
|
+
case: "cancelOrders";
|
|
2448
|
+
} | {
|
|
2449
|
+
/**
|
|
2450
|
+
* The change the approval makes to open limit orders.
|
|
2451
|
+
*
|
|
2452
|
+
* @generated from field: ai.v1.OrderChangePreview order_change = 7;
|
|
2453
|
+
*/
|
|
2454
|
+
value: OrderChangePreview;
|
|
2455
|
+
case: "orderChange";
|
|
2456
|
+
} | {
|
|
2457
|
+
/**
|
|
2458
|
+
* The change the approval makes to a trigger.
|
|
2459
|
+
*
|
|
2460
|
+
* @generated from field: ai.v1.TriggerChangePreview trigger_change = 8;
|
|
2461
|
+
*/
|
|
2462
|
+
value: TriggerChangePreview;
|
|
2463
|
+
case: "triggerChange";
|
|
2464
|
+
} | {
|
|
2465
|
+
/**
|
|
2466
|
+
* The limit orders the approval places together.
|
|
2467
|
+
*
|
|
2468
|
+
* @generated from field: ai.v1.PlaceOrdersPreview place_orders = 9;
|
|
2469
|
+
*/
|
|
2470
|
+
value: PlaceOrdersPreview;
|
|
2471
|
+
case: "placeOrders";
|
|
2472
|
+
} | {
|
|
2473
|
+
/**
|
|
2474
|
+
* The swap the approval executes within the trading account.
|
|
2475
|
+
*
|
|
2476
|
+
* @generated from field: ai.v1.SwapPreview swap = 10;
|
|
2477
|
+
*/
|
|
2478
|
+
value: SwapPreview;
|
|
2479
|
+
case: "swap";
|
|
2480
|
+
} | {
|
|
2481
|
+
/**
|
|
2482
|
+
* The trigger the approval cancels.
|
|
2483
|
+
*
|
|
2484
|
+
* @generated from field: ai.v1.CancelTriggerPreview cancel_trigger = 12;
|
|
2485
|
+
*/
|
|
2486
|
+
value: CancelTriggerPreview;
|
|
2487
|
+
case: "cancelTrigger";
|
|
2488
|
+
} | {
|
|
2489
|
+
case: undefined;
|
|
2490
|
+
value?: undefined;
|
|
2491
|
+
};
|
|
2492
|
+
};
|
|
2493
|
+
/**
|
|
2494
|
+
* Describes the message ai.v1.ApprovalRequested.
|
|
2495
|
+
* Use `create(ApprovalRequestedSchema)` to create a new message.
|
|
2496
|
+
*/
|
|
2497
|
+
declare const ApprovalRequestedSchema: GenMessage<ApprovalRequested>;
|
|
2498
|
+
/**
|
|
2499
|
+
* ApprovalResolved reports the final state of an approval request.
|
|
2500
|
+
*
|
|
2501
|
+
* @generated from message ai.v1.ApprovalResolved
|
|
2502
|
+
*/
|
|
2503
|
+
type ApprovalResolved = Message$1<"ai.v1.ApprovalResolved"> & {
|
|
2504
|
+
/**
|
|
2505
|
+
* Public approval ID, as in its ApprovalRequested event.
|
|
2506
|
+
*
|
|
2507
|
+
* @generated from field: fixed64 approval_id = 1;
|
|
2508
|
+
*/
|
|
2509
|
+
approvalId: bigint;
|
|
2510
|
+
/**
|
|
2511
|
+
* APPROVED, REJECTED or EXPIRED.
|
|
2512
|
+
*
|
|
2513
|
+
* @generated from field: ai.v1.ApprovalStatus status = 2;
|
|
2514
|
+
*/
|
|
2515
|
+
status: ApprovalStatus;
|
|
2516
|
+
};
|
|
2517
|
+
/**
|
|
2518
|
+
* Describes the message ai.v1.ApprovalResolved.
|
|
2519
|
+
* Use `create(ApprovalResolvedSchema)` to create a new message.
|
|
2520
|
+
*/
|
|
2521
|
+
declare const ApprovalResolvedSchema: GenMessage<ApprovalResolved>;
|
|
2522
|
+
/**
|
|
2523
|
+
* RunCompleted is the last event of a run that finished its answer.
|
|
2524
|
+
*
|
|
2525
|
+
* @generated from message ai.v1.RunCompleted
|
|
2526
|
+
*/
|
|
2527
|
+
type RunCompleted = Message$1<"ai.v1.RunCompleted"> & {
|
|
2528
|
+
/**
|
|
2529
|
+
* Language-model usage of the run.
|
|
2530
|
+
*
|
|
2531
|
+
* @generated from field: ai.v1.Usage usage = 1;
|
|
2532
|
+
*/
|
|
2533
|
+
usage?: Usage | undefined;
|
|
2534
|
+
};
|
|
2535
|
+
/**
|
|
2536
|
+
* Describes the message ai.v1.RunCompleted.
|
|
2537
|
+
* Use `create(RunCompletedSchema)` to create a new message.
|
|
2538
|
+
*/
|
|
2539
|
+
declare const RunCompletedSchema: GenMessage<RunCompleted>;
|
|
2540
|
+
/**
|
|
2541
|
+
* RunFailed is the last event of a run that ended without finishing its
|
|
2542
|
+
* answer.
|
|
2543
|
+
*
|
|
2544
|
+
* @generated from message ai.v1.RunFailed
|
|
2545
|
+
*/
|
|
2546
|
+
type RunFailed = Message$1<"ai.v1.RunFailed"> & {
|
|
2547
|
+
/**
|
|
2548
|
+
* Why the run failed.
|
|
2549
|
+
*
|
|
2550
|
+
* @generated from field: ai.v1.FailureCategory category = 1;
|
|
2551
|
+
*/
|
|
2552
|
+
category: FailureCategory;
|
|
2553
|
+
/**
|
|
2554
|
+
* Short explanation to show the user.
|
|
2555
|
+
*
|
|
2556
|
+
* @generated from field: string message = 2;
|
|
2557
|
+
*/
|
|
2558
|
+
message: string;
|
|
2559
|
+
/**
|
|
2560
|
+
* Language-model usage of the run until it failed.
|
|
2561
|
+
*
|
|
2562
|
+
* @generated from field: ai.v1.Usage usage = 3;
|
|
2563
|
+
*/
|
|
2564
|
+
usage?: Usage | undefined;
|
|
2565
|
+
};
|
|
2566
|
+
/**
|
|
2567
|
+
* Describes the message ai.v1.RunFailed.
|
|
2568
|
+
* Use `create(RunFailedSchema)` to create a new message.
|
|
2569
|
+
*/
|
|
2570
|
+
declare const RunFailedSchema: GenMessage<RunFailed>;
|
|
2571
|
+
/**
|
|
2572
|
+
* RunEvent is one recorded event of a run. Events are recorded before they are
|
|
2573
|
+
* sent, so a stream resumed from the last seq a client received misses and
|
|
2574
|
+
* repeats nothing.
|
|
2575
|
+
*
|
|
2576
|
+
* @generated from message ai.v1.RunEvent
|
|
2577
|
+
*/
|
|
2578
|
+
type RunEvent = Message$1<"ai.v1.RunEvent"> & {
|
|
2579
|
+
/**
|
|
2580
|
+
* Position of the event in its run: 1 for the first event, then increasing
|
|
2581
|
+
* by exactly one.
|
|
2582
|
+
*
|
|
2583
|
+
* @generated from field: uint64 seq = 1;
|
|
2584
|
+
*/
|
|
2585
|
+
seq: bigint;
|
|
2586
|
+
/**
|
|
2587
|
+
* When the event was recorded.
|
|
2588
|
+
*
|
|
2589
|
+
* @generated from field: google.protobuf.Timestamp created_at = 2;
|
|
2590
|
+
*/
|
|
2591
|
+
createdAt?: Timestamp | undefined;
|
|
2592
|
+
/**
|
|
2593
|
+
* Exactly one event. A client that does not recognize the event, for example
|
|
2594
|
+
* one added after it was built, skips it.
|
|
2595
|
+
*
|
|
2596
|
+
* @generated from oneof ai.v1.RunEvent.event
|
|
2597
|
+
*/
|
|
2598
|
+
event: {
|
|
2599
|
+
/**
|
|
2600
|
+
* Answer text to append.
|
|
2601
|
+
*
|
|
2602
|
+
* @generated from field: ai.v1.TextDelta text_delta = 3;
|
|
2603
|
+
*/
|
|
2604
|
+
value: TextDelta;
|
|
2605
|
+
case: "textDelta";
|
|
2606
|
+
} | {
|
|
2607
|
+
/**
|
|
2608
|
+
* Answer text to withdraw before it is written again.
|
|
2609
|
+
*
|
|
2610
|
+
* @generated from field: ai.v1.DiscardPartial discard_partial = 4;
|
|
2611
|
+
*/
|
|
2612
|
+
value: DiscardPartial;
|
|
2613
|
+
case: "discardPartial";
|
|
2614
|
+
} | {
|
|
2615
|
+
/**
|
|
2616
|
+
* A tool call started.
|
|
2617
|
+
*
|
|
2618
|
+
* @generated from field: ai.v1.ToolStarted tool_started = 5;
|
|
2619
|
+
*/
|
|
2620
|
+
value: ToolStarted;
|
|
2621
|
+
case: "toolStarted";
|
|
2622
|
+
} | {
|
|
2623
|
+
/**
|
|
2624
|
+
* A tool call finished.
|
|
2625
|
+
*
|
|
2626
|
+
* @generated from field: ai.v1.ToolFinished tool_finished = 6;
|
|
2627
|
+
*/
|
|
2628
|
+
value: ToolFinished;
|
|
2629
|
+
case: "toolFinished";
|
|
2630
|
+
} | {
|
|
2631
|
+
/**
|
|
2632
|
+
* A skill was loaded.
|
|
2633
|
+
*
|
|
2634
|
+
* @generated from field: ai.v1.SkillLoaded skill_loaded = 7;
|
|
2635
|
+
*/
|
|
2636
|
+
value: SkillLoaded;
|
|
2637
|
+
case: "skillLoaded";
|
|
2638
|
+
} | {
|
|
2639
|
+
/**
|
|
2640
|
+
* A subagent started a delegated task.
|
|
2641
|
+
*
|
|
2642
|
+
* @generated from field: ai.v1.SubagentStarted subagent_started = 8;
|
|
2643
|
+
*/
|
|
2644
|
+
value: SubagentStarted;
|
|
2645
|
+
case: "subagentStarted";
|
|
2646
|
+
} | {
|
|
2647
|
+
/**
|
|
2648
|
+
* A subagent finished its task.
|
|
2649
|
+
*
|
|
2650
|
+
* @generated from field: ai.v1.SubagentFinished subagent_finished = 9;
|
|
2651
|
+
*/
|
|
2652
|
+
value: SubagentFinished;
|
|
2653
|
+
case: "subagentFinished";
|
|
2654
|
+
} | {
|
|
2655
|
+
/**
|
|
2656
|
+
* The run waits for an approval.
|
|
2657
|
+
*
|
|
2658
|
+
* @generated from field: ai.v1.ApprovalRequested approval_requested = 10;
|
|
2659
|
+
*/
|
|
2660
|
+
value: ApprovalRequested;
|
|
2661
|
+
case: "approvalRequested";
|
|
2662
|
+
} | {
|
|
2663
|
+
/**
|
|
2664
|
+
* An approval was decided or expired.
|
|
2665
|
+
*
|
|
2666
|
+
* @generated from field: ai.v1.ApprovalResolved approval_resolved = 11;
|
|
2667
|
+
*/
|
|
2668
|
+
value: ApprovalResolved;
|
|
2669
|
+
case: "approvalResolved";
|
|
2670
|
+
} | {
|
|
2671
|
+
/**
|
|
2672
|
+
* Structured content to render.
|
|
2673
|
+
*
|
|
2674
|
+
* @generated from field: ai.v1.View view = 12;
|
|
2675
|
+
*/
|
|
2676
|
+
value: View;
|
|
2677
|
+
case: "view";
|
|
2678
|
+
} | {
|
|
2679
|
+
/**
|
|
2680
|
+
* The run finished its answer. Last event of the run.
|
|
2681
|
+
*
|
|
2682
|
+
* @generated from field: ai.v1.RunCompleted run_completed = 13;
|
|
2683
|
+
*/
|
|
2684
|
+
value: RunCompleted;
|
|
2685
|
+
case: "runCompleted";
|
|
2686
|
+
} | {
|
|
2687
|
+
/**
|
|
2688
|
+
* The run ended without finishing its answer. Last event of the run.
|
|
2689
|
+
*
|
|
2690
|
+
* @generated from field: ai.v1.RunFailed run_failed = 14;
|
|
2691
|
+
*/
|
|
2692
|
+
value: RunFailed;
|
|
2693
|
+
case: "runFailed";
|
|
2694
|
+
} | {
|
|
2695
|
+
/**
|
|
2696
|
+
* The memories a memory search returned.
|
|
2697
|
+
*
|
|
2698
|
+
* @generated from field: ai.v1.MemoriesRecalled memories_recalled = 15;
|
|
2699
|
+
*/
|
|
2700
|
+
value: MemoriesRecalled;
|
|
2701
|
+
case: "memoriesRecalled";
|
|
2702
|
+
} | {
|
|
2703
|
+
/**
|
|
2704
|
+
* Places in the client the assistant offers the user to go to.
|
|
2705
|
+
*
|
|
2706
|
+
* @generated from field: ai.v1.DestinationsSuggested destinations_suggested = 16;
|
|
2707
|
+
*/
|
|
2708
|
+
value: DestinationsSuggested;
|
|
2709
|
+
case: "destinationsSuggested";
|
|
2710
|
+
} | {
|
|
2711
|
+
case: undefined;
|
|
2712
|
+
value?: undefined;
|
|
2713
|
+
};
|
|
2714
|
+
};
|
|
2715
|
+
/**
|
|
2716
|
+
* Describes the message ai.v1.RunEvent.
|
|
2717
|
+
* Use `create(RunEventSchema)` to create a new message.
|
|
2718
|
+
*/
|
|
2719
|
+
declare const RunEventSchema: GenMessage<RunEvent>;
|
|
2720
|
+
/**
|
|
2721
|
+
* AssistantKey is the assistant's key for one of the caller's accounts. The
|
|
2722
|
+
* assistant holds its private key; the API key it belongs to is listed and
|
|
2723
|
+
* revoked with the caller's other API keys.
|
|
2724
|
+
*
|
|
2725
|
+
* @generated from message ai.v1.AssistantKey
|
|
2726
|
+
*/
|
|
2727
|
+
type AssistantKey = Message$1<"ai.v1.AssistantKey"> & {
|
|
2728
|
+
/**
|
|
2729
|
+
* Subaccount the key acts on. Omitted for the main account.
|
|
2730
|
+
*
|
|
2731
|
+
* @generated from field: optional fixed64 subaccount_id = 1;
|
|
2732
|
+
*/
|
|
2733
|
+
subaccountId?: bigint | undefined;
|
|
2734
|
+
/**
|
|
2735
|
+
* Opaque identifier of the API key.
|
|
2736
|
+
*
|
|
2737
|
+
* @generated from field: string key_id = 2;
|
|
2738
|
+
*/
|
|
2739
|
+
keyId: string;
|
|
2740
|
+
/**
|
|
2741
|
+
* Ed25519 public key, 32 bytes.
|
|
2742
|
+
*
|
|
2743
|
+
* @generated from field: bytes public_key_ed25519 = 3;
|
|
2744
|
+
*/
|
|
2745
|
+
publicKeyEd25519: Uint8Array;
|
|
2746
|
+
/**
|
|
2747
|
+
* ACTIVE or DISABLED.
|
|
2748
|
+
*
|
|
2749
|
+
* @generated from field: ai.v1.AssistantKeyState state = 4;
|
|
2750
|
+
*/
|
|
2751
|
+
state: AssistantKeyState;
|
|
2752
|
+
};
|
|
2753
|
+
/**
|
|
2754
|
+
* Describes the message ai.v1.AssistantKey.
|
|
2755
|
+
* Use `create(AssistantKeySchema)` to create a new message.
|
|
2756
|
+
*/
|
|
2757
|
+
declare const AssistantKeySchema: GenMessage<AssistantKey>;
|
|
2758
|
+
/**
|
|
2759
|
+
* AssistantKeyAccount names one account to give the assistant a key for.
|
|
2760
|
+
*
|
|
2761
|
+
* @generated from message ai.v1.AssistantKeyAccount
|
|
2762
|
+
*/
|
|
2763
|
+
type AssistantKeyAccount = Message$1<"ai.v1.AssistantKeyAccount"> & {
|
|
2764
|
+
/**
|
|
2765
|
+
* Subaccount. Omit for the main account.
|
|
2766
|
+
*
|
|
2767
|
+
* @generated from field: optional fixed64 subaccount_id = 1;
|
|
2768
|
+
*/
|
|
2769
|
+
subaccountId?: bigint | undefined;
|
|
2770
|
+
};
|
|
2771
|
+
/**
|
|
2772
|
+
* Describes the message ai.v1.AssistantKeyAccount.
|
|
2773
|
+
* Use `create(AssistantKeyAccountSchema)` to create a new message.
|
|
2774
|
+
*/
|
|
2775
|
+
declare const AssistantKeyAccountSchema: GenMessage<AssistantKeyAccount>;
|
|
2776
|
+
/**
|
|
2777
|
+
* PreparedAssistantKey is a key pair the assistant generated for one account.
|
|
2778
|
+
*
|
|
2779
|
+
* @generated from message ai.v1.PreparedAssistantKey
|
|
2780
|
+
*/
|
|
2781
|
+
type PreparedAssistantKey = Message$1<"ai.v1.PreparedAssistantKey"> & {
|
|
2782
|
+
/**
|
|
2783
|
+
* Subaccount the key is for. Omitted for the main account.
|
|
2784
|
+
*
|
|
2785
|
+
* @generated from field: optional fixed64 subaccount_id = 1;
|
|
2786
|
+
*/
|
|
2787
|
+
subaccountId?: bigint | undefined;
|
|
2788
|
+
/**
|
|
2789
|
+
* Ed25519 public key, 32 bytes. Register it as the account's assistant key
|
|
2790
|
+
* with SetAssistantKeys.
|
|
2791
|
+
*
|
|
2792
|
+
* @generated from field: bytes public_key_ed25519 = 2;
|
|
2793
|
+
*/
|
|
2794
|
+
publicKeyEd25519: Uint8Array;
|
|
2795
|
+
/**
|
|
2796
|
+
* The key's registration proof (64 bytes). Pass it unchanged as the key's
|
|
2797
|
+
* registration_proof in SetAssistantKeys.
|
|
2798
|
+
*
|
|
2799
|
+
* @generated from field: bytes registration_proof = 3;
|
|
2800
|
+
*/
|
|
2801
|
+
registrationProof: Uint8Array;
|
|
2802
|
+
/**
|
|
2803
|
+
* The key's registration deadline. Pass it unchanged as the key's
|
|
2804
|
+
* registration_deadline in SetAssistantKeys; the key cannot be registered
|
|
2805
|
+
* after it.
|
|
2806
|
+
*
|
|
2807
|
+
* @generated from field: google.protobuf.Timestamp registration_deadline = 4;
|
|
2808
|
+
*/
|
|
2809
|
+
registrationDeadline?: Timestamp | undefined;
|
|
2810
|
+
};
|
|
2811
|
+
/**
|
|
2812
|
+
* Describes the message ai.v1.PreparedAssistantKey.
|
|
2813
|
+
* Use `create(PreparedAssistantKeySchema)` to create a new message.
|
|
2814
|
+
*/
|
|
2815
|
+
declare const PreparedAssistantKeySchema: GenMessage<PreparedAssistantKey>;
|
|
2816
|
+
/**
|
|
2817
|
+
* Destination is one place in the client the assistant may offer the user to
|
|
2818
|
+
* go to: a page, or a dialog such as deposit or transfer. The client declares
|
|
2819
|
+
* the destinations it has with each message; the assistant suggests them by
|
|
2820
|
+
* id, and the client maps each id to its own page or dialog.
|
|
2821
|
+
*
|
|
2822
|
+
* @generated from message ai.v1.Destination
|
|
2823
|
+
*/
|
|
2824
|
+
type Destination = Message$1<"ai.v1.Destination"> & {
|
|
2825
|
+
/**
|
|
2826
|
+
* The client's id of the destination, for example "page-subaccounts":
|
|
2827
|
+
* lowercase letters, digits and hyphens, 1 to 64 characters.
|
|
2828
|
+
*
|
|
2829
|
+
* @generated from field: string id = 1;
|
|
2830
|
+
*/
|
|
2831
|
+
id: string;
|
|
2832
|
+
/**
|
|
2833
|
+
* Its name as the client shows it, for example "Subaccounts", 1 to 80
|
|
2834
|
+
* characters.
|
|
2835
|
+
*
|
|
2836
|
+
* @generated from field: string title = 2;
|
|
2837
|
+
*/
|
|
2838
|
+
title: string;
|
|
2839
|
+
/**
|
|
2840
|
+
* What the user does there, in a few words or keywords, at most 200
|
|
2841
|
+
* characters, for example "sub accounts, account management". The assistant
|
|
2842
|
+
* reads it to choose a destination.
|
|
2843
|
+
*
|
|
2844
|
+
* @generated from field: string description = 3;
|
|
2845
|
+
*/
|
|
2846
|
+
description: string;
|
|
2847
|
+
};
|
|
2848
|
+
/**
|
|
2849
|
+
* Describes the message ai.v1.Destination.
|
|
2850
|
+
* Use `create(DestinationSchema)` to create a new message.
|
|
2851
|
+
*/
|
|
2852
|
+
declare const DestinationSchema: GenMessage<Destination>;
|
|
2853
|
+
/**
|
|
2854
|
+
* SendMessageRequest sends the caller's message and starts a run that answers
|
|
2855
|
+
* it.
|
|
2856
|
+
*
|
|
2857
|
+
* @generated from message ai.v1.SendMessageRequest
|
|
2858
|
+
*/
|
|
2859
|
+
type SendMessageRequest = Message$1<"ai.v1.SendMessageRequest"> & {
|
|
2860
|
+
/**
|
|
2861
|
+
* Conversation to continue. Omit to start a new conversation.
|
|
2862
|
+
*
|
|
2863
|
+
* @generated from field: optional fixed64 conversation_id = 1;
|
|
2864
|
+
*/
|
|
2865
|
+
conversationId?: bigint | undefined;
|
|
2866
|
+
/**
|
|
2867
|
+
* Message text, plain text or Markdown, 1 to 16000 characters.
|
|
2868
|
+
*
|
|
2869
|
+
* @generated from field: string text = 2;
|
|
2870
|
+
*/
|
|
2871
|
+
text: string;
|
|
2872
|
+
/**
|
|
2873
|
+
* Client-chosen key, unique per caller, that makes sending idempotent: the
|
|
2874
|
+
* same key and request return the same run and conversation, also for a new
|
|
2875
|
+
* conversation; another request with the same key is IDEMPOTENCY_CONFLICT.
|
|
2876
|
+
*
|
|
2877
|
+
* @generated from field: string idempotency_key = 3;
|
|
2878
|
+
*/
|
|
2879
|
+
idempotencyKey: string;
|
|
2880
|
+
/**
|
|
2881
|
+
* Trading account (subaccount) the run reads and acts on. It must be one
|
|
2882
|
+
* the caller's account owns; any other value, also one that does not
|
|
2883
|
+
* exist, is INVALID_ARGUMENT. Omit it to answer without account data: the
|
|
2884
|
+
* run then has no account tools. It is part of the request the idempotency
|
|
2885
|
+
* key covers.
|
|
2886
|
+
*
|
|
2887
|
+
* @generated from field: optional fixed64 subaccount_id = 4;
|
|
2888
|
+
*/
|
|
2889
|
+
subaccountId?: bigint | undefined;
|
|
2890
|
+
/**
|
|
2891
|
+
* The places in the client the run may suggest to the user, at most 100,
|
|
2892
|
+
* each id at most once; their order does not matter. Omit them for a client
|
|
2893
|
+
* that cannot take the user anywhere: the run then suggests nothing. They
|
|
2894
|
+
* are part of the request the idempotency key covers.
|
|
2895
|
+
*
|
|
2896
|
+
* @generated from field: repeated ai.v1.Destination destinations = 5;
|
|
2897
|
+
*/
|
|
2898
|
+
destinations: Destination[];
|
|
2899
|
+
};
|
|
2900
|
+
/**
|
|
2901
|
+
* Describes the message ai.v1.SendMessageRequest.
|
|
2902
|
+
* Use `create(SendMessageRequestSchema)` to create a new message.
|
|
2903
|
+
*/
|
|
2904
|
+
declare const SendMessageRequestSchema: GenMessage<SendMessageRequest>;
|
|
2905
|
+
/**
|
|
2906
|
+
* SendMessageResponse identifies the started run.
|
|
2907
|
+
*
|
|
2908
|
+
* @generated from message ai.v1.SendMessageResponse
|
|
2909
|
+
*/
|
|
2910
|
+
type SendMessageResponse = Message$1<"ai.v1.SendMessageResponse"> & {
|
|
2911
|
+
/**
|
|
2912
|
+
* The run that answers the message. Follow it with WatchRun.
|
|
2913
|
+
*
|
|
2914
|
+
* @generated from field: fixed64 run_id = 1;
|
|
2915
|
+
*/
|
|
2916
|
+
runId: bigint;
|
|
2917
|
+
/**
|
|
2918
|
+
* The conversation of the message: the requested one, or the new one.
|
|
2919
|
+
*
|
|
2920
|
+
* @generated from field: fixed64 conversation_id = 2;
|
|
2921
|
+
*/
|
|
2922
|
+
conversationId: bigint;
|
|
2923
|
+
};
|
|
2924
|
+
/**
|
|
2925
|
+
* Describes the message ai.v1.SendMessageResponse.
|
|
2926
|
+
* Use `create(SendMessageResponseSchema)` to create a new message.
|
|
2927
|
+
*/
|
|
2928
|
+
declare const SendMessageResponseSchema: GenMessage<SendMessageResponse>;
|
|
2929
|
+
/**
|
|
2930
|
+
* WatchRunRequest selects a run and where to resume its events.
|
|
2931
|
+
*
|
|
2932
|
+
* @generated from message ai.v1.WatchRunRequest
|
|
2933
|
+
*/
|
|
2934
|
+
type WatchRunRequest = Message$1<"ai.v1.WatchRunRequest"> & {
|
|
2935
|
+
/**
|
|
2936
|
+
* Run to watch.
|
|
2937
|
+
*
|
|
2938
|
+
* @generated from field: fixed64 run_id = 1;
|
|
2939
|
+
*/
|
|
2940
|
+
runId: bigint;
|
|
2941
|
+
/**
|
|
2942
|
+
* Return events with seq greater than this value. 0 replays the run from
|
|
2943
|
+
* its first event; to resume, pass the seq of the last event received.
|
|
2944
|
+
*
|
|
2945
|
+
* @generated from field: uint64 after_seq = 2;
|
|
2946
|
+
*/
|
|
2947
|
+
afterSeq: bigint;
|
|
2948
|
+
};
|
|
2949
|
+
/**
|
|
2950
|
+
* Describes the message ai.v1.WatchRunRequest.
|
|
2951
|
+
* Use `create(WatchRunRequestSchema)` to create a new message.
|
|
2952
|
+
*/
|
|
2953
|
+
declare const WatchRunRequestSchema: GenMessage<WatchRunRequest>;
|
|
2954
|
+
/**
|
|
2955
|
+
* WatchRunResponse carries one run event.
|
|
2956
|
+
*
|
|
2957
|
+
* @generated from message ai.v1.WatchRunResponse
|
|
2958
|
+
*/
|
|
2959
|
+
type WatchRunResponse = Message$1<"ai.v1.WatchRunResponse"> & {
|
|
2960
|
+
/**
|
|
2961
|
+
* The event.
|
|
2962
|
+
*
|
|
2963
|
+
* @generated from field: ai.v1.RunEvent event = 1;
|
|
2964
|
+
*/
|
|
2965
|
+
event?: RunEvent | undefined;
|
|
2966
|
+
};
|
|
2967
|
+
/**
|
|
2968
|
+
* Describes the message ai.v1.WatchRunResponse.
|
|
2969
|
+
* Use `create(WatchRunResponseSchema)` to create a new message.
|
|
2970
|
+
*/
|
|
2971
|
+
declare const WatchRunResponseSchema: GenMessage<WatchRunResponse>;
|
|
2972
|
+
/**
|
|
2973
|
+
* CancelRunRequest selects the run to cancel.
|
|
2974
|
+
*
|
|
2975
|
+
* @generated from message ai.v1.CancelRunRequest
|
|
2976
|
+
*/
|
|
2977
|
+
type CancelRunRequest = Message$1<"ai.v1.CancelRunRequest"> & {
|
|
2978
|
+
/**
|
|
2979
|
+
* Run to cancel.
|
|
2980
|
+
*
|
|
2981
|
+
* @generated from field: fixed64 run_id = 1;
|
|
2982
|
+
*/
|
|
2983
|
+
runId: bigint;
|
|
2984
|
+
};
|
|
2985
|
+
/**
|
|
2986
|
+
* Describes the message ai.v1.CancelRunRequest.
|
|
2987
|
+
* Use `create(CancelRunRequestSchema)` to create a new message.
|
|
2988
|
+
*/
|
|
2989
|
+
declare const CancelRunRequestSchema: GenMessage<CancelRunRequest>;
|
|
2990
|
+
/**
|
|
2991
|
+
* CancelRunResponse confirms that the cancellation was recorded.
|
|
2992
|
+
*
|
|
2993
|
+
* @generated from message ai.v1.CancelRunResponse
|
|
2994
|
+
*/
|
|
2995
|
+
type CancelRunResponse = Message$1<"ai.v1.CancelRunResponse"> & {};
|
|
2996
|
+
/**
|
|
2997
|
+
* Describes the message ai.v1.CancelRunResponse.
|
|
2998
|
+
* Use `create(CancelRunResponseSchema)` to create a new message.
|
|
2999
|
+
*/
|
|
3000
|
+
declare const CancelRunResponseSchema: GenMessage<CancelRunResponse>;
|
|
3001
|
+
/**
|
|
3002
|
+
* DecideApprovalRequest answers one approval request.
|
|
3003
|
+
*
|
|
3004
|
+
* @generated from message ai.v1.DecideApprovalRequest
|
|
3005
|
+
*/
|
|
3006
|
+
type DecideApprovalRequest = Message$1<"ai.v1.DecideApprovalRequest"> & {
|
|
3007
|
+
/**
|
|
3008
|
+
* Approval to decide, from an ApprovalRequested event.
|
|
3009
|
+
*
|
|
3010
|
+
* @generated from field: fixed64 approval_id = 1;
|
|
3011
|
+
*/
|
|
3012
|
+
approvalId: bigint;
|
|
3013
|
+
/**
|
|
3014
|
+
* The decision.
|
|
3015
|
+
*
|
|
3016
|
+
* @generated from field: ai.v1.ApprovalDecision decision = 2;
|
|
3017
|
+
*/
|
|
3018
|
+
decision: ApprovalDecision;
|
|
3019
|
+
};
|
|
3020
|
+
/**
|
|
3021
|
+
* Describes the message ai.v1.DecideApprovalRequest.
|
|
3022
|
+
* Use `create(DecideApprovalRequestSchema)` to create a new message.
|
|
3023
|
+
*/
|
|
3024
|
+
declare const DecideApprovalRequestSchema: GenMessage<DecideApprovalRequest>;
|
|
3025
|
+
/**
|
|
3026
|
+
* DecideApprovalResponse returns the recorded state of the approval.
|
|
3027
|
+
*
|
|
3028
|
+
* @generated from message ai.v1.DecideApprovalResponse
|
|
3029
|
+
*/
|
|
3030
|
+
type DecideApprovalResponse = Message$1<"ai.v1.DecideApprovalResponse"> & {
|
|
3031
|
+
/**
|
|
3032
|
+
* APPROVED or REJECTED.
|
|
3033
|
+
*
|
|
3034
|
+
* @generated from field: ai.v1.ApprovalStatus status = 1;
|
|
3035
|
+
*/
|
|
3036
|
+
status: ApprovalStatus;
|
|
3037
|
+
};
|
|
3038
|
+
/**
|
|
3039
|
+
* Describes the message ai.v1.DecideApprovalResponse.
|
|
3040
|
+
* Use `create(DecideApprovalResponseSchema)` to create a new message.
|
|
3041
|
+
*/
|
|
3042
|
+
declare const DecideApprovalResponseSchema: GenMessage<DecideApprovalResponse>;
|
|
3043
|
+
/**
|
|
3044
|
+
* ListConversationsRequest pages through the caller's conversations, most
|
|
3045
|
+
* recently updated first.
|
|
3046
|
+
*
|
|
3047
|
+
* @generated from message ai.v1.ListConversationsRequest
|
|
3048
|
+
*/
|
|
3049
|
+
type ListConversationsRequest = Message$1<"ai.v1.ListConversationsRequest"> & {
|
|
3050
|
+
/**
|
|
3051
|
+
* Maximum conversations to return. 0 means the default of 20; maximum 100.
|
|
3052
|
+
*
|
|
3053
|
+
* @generated from field: uint32 limit = 1;
|
|
3054
|
+
*/
|
|
3055
|
+
limit: number;
|
|
3056
|
+
/**
|
|
3057
|
+
* Opaque, keyset-backed, exclusive cursor from a previous response. Bound to
|
|
3058
|
+
* the caller, updated_at and conversation_id.
|
|
3059
|
+
*
|
|
3060
|
+
* @generated from field: string page_token = 2;
|
|
3061
|
+
*/
|
|
3062
|
+
pageToken: string;
|
|
3063
|
+
};
|
|
3064
|
+
/**
|
|
3065
|
+
* Describes the message ai.v1.ListConversationsRequest.
|
|
3066
|
+
* Use `create(ListConversationsRequestSchema)` to create a new message.
|
|
3067
|
+
*/
|
|
3068
|
+
declare const ListConversationsRequestSchema: GenMessage<ListConversationsRequest>;
|
|
3069
|
+
/**
|
|
3070
|
+
* ListConversationsResponse returns conversations.
|
|
3071
|
+
*
|
|
3072
|
+
* @generated from message ai.v1.ListConversationsResponse
|
|
3073
|
+
*/
|
|
3074
|
+
type ListConversationsResponse = Message$1<"ai.v1.ListConversationsResponse"> & {
|
|
3075
|
+
/**
|
|
3076
|
+
* Conversations ordered by updated_at descending, then conversation_id
|
|
3077
|
+
* descending. A conversation updated while paging moves to the front, so a
|
|
3078
|
+
* chain of pages started earlier does not return it again.
|
|
3079
|
+
*
|
|
3080
|
+
* @generated from field: repeated ai.v1.Conversation conversations = 1;
|
|
3081
|
+
*/
|
|
3082
|
+
conversations: Conversation[];
|
|
3083
|
+
/**
|
|
3084
|
+
* Cursor for the next page. Empty when no more results exist.
|
|
3085
|
+
*
|
|
3086
|
+
* @generated from field: string next_page_token = 2;
|
|
3087
|
+
*/
|
|
3088
|
+
nextPageToken: string;
|
|
3089
|
+
};
|
|
3090
|
+
/**
|
|
3091
|
+
* Describes the message ai.v1.ListConversationsResponse.
|
|
3092
|
+
* Use `create(ListConversationsResponseSchema)` to create a new message.
|
|
3093
|
+
*/
|
|
3094
|
+
declare const ListConversationsResponseSchema: GenMessage<ListConversationsResponse>;
|
|
3095
|
+
/**
|
|
3096
|
+
* ListMessagesRequest pages through one conversation's messages, newest first.
|
|
3097
|
+
*
|
|
3098
|
+
* @generated from message ai.v1.ListMessagesRequest
|
|
3099
|
+
*/
|
|
3100
|
+
type ListMessagesRequest = Message$1<"ai.v1.ListMessagesRequest"> & {
|
|
3101
|
+
/**
|
|
3102
|
+
* Conversation to read.
|
|
3103
|
+
*
|
|
3104
|
+
* @generated from field: fixed64 conversation_id = 1;
|
|
3105
|
+
*/
|
|
3106
|
+
conversationId: bigint;
|
|
3107
|
+
/**
|
|
3108
|
+
* Maximum messages to return. 0 means the default of 50; maximum 200.
|
|
3109
|
+
*
|
|
3110
|
+
* @generated from field: uint32 limit = 2;
|
|
3111
|
+
*/
|
|
3112
|
+
limit: number;
|
|
3113
|
+
/**
|
|
3114
|
+
* Opaque, keyset-backed, exclusive cursor from a previous response. Bound to
|
|
3115
|
+
* the caller, the conversation, created_at and message_id.
|
|
3116
|
+
*
|
|
3117
|
+
* @generated from field: string page_token = 3;
|
|
3118
|
+
*/
|
|
3119
|
+
pageToken: string;
|
|
3120
|
+
};
|
|
3121
|
+
/**
|
|
3122
|
+
* Describes the message ai.v1.ListMessagesRequest.
|
|
3123
|
+
* Use `create(ListMessagesRequestSchema)` to create a new message.
|
|
3124
|
+
*/
|
|
3125
|
+
declare const ListMessagesRequestSchema: GenMessage<ListMessagesRequest>;
|
|
3126
|
+
/**
|
|
3127
|
+
* ListMessagesResponse returns messages.
|
|
3128
|
+
*
|
|
3129
|
+
* @generated from message ai.v1.ListMessagesResponse
|
|
3130
|
+
*/
|
|
3131
|
+
type ListMessagesResponse = Message$1<"ai.v1.ListMessagesResponse"> & {
|
|
3132
|
+
/**
|
|
3133
|
+
* Messages ordered by created_at descending, then message_id descending.
|
|
3134
|
+
*
|
|
3135
|
+
* @generated from field: repeated ai.v1.Message messages = 1;
|
|
3136
|
+
*/
|
|
3137
|
+
messages: Message[];
|
|
3138
|
+
/**
|
|
3139
|
+
* Cursor for the next page. Empty when no more results exist.
|
|
3140
|
+
*
|
|
3141
|
+
* @generated from field: string next_page_token = 2;
|
|
3142
|
+
*/
|
|
3143
|
+
nextPageToken: string;
|
|
3144
|
+
};
|
|
3145
|
+
/**
|
|
3146
|
+
* Describes the message ai.v1.ListMessagesResponse.
|
|
3147
|
+
* Use `create(ListMessagesResponseSchema)` to create a new message.
|
|
3148
|
+
*/
|
|
3149
|
+
declare const ListMessagesResponseSchema: GenMessage<ListMessagesResponse>;
|
|
3150
|
+
/**
|
|
3151
|
+
* ListMemoriesRequest pages through the caller's memories, newest first.
|
|
3152
|
+
*
|
|
3153
|
+
* @generated from message ai.v1.ListMemoriesRequest
|
|
3154
|
+
*/
|
|
3155
|
+
type ListMemoriesRequest = Message$1<"ai.v1.ListMemoriesRequest"> & {
|
|
3156
|
+
/**
|
|
3157
|
+
* Maximum memories to return. 0 means the default of 50; maximum 200.
|
|
3158
|
+
*
|
|
3159
|
+
* @generated from field: uint32 limit = 1;
|
|
3160
|
+
*/
|
|
3161
|
+
limit: number;
|
|
3162
|
+
/**
|
|
3163
|
+
* Opaque, keyset-backed, exclusive cursor from a previous response. Bound to
|
|
3164
|
+
* the caller, created_at and memory_id.
|
|
3165
|
+
*
|
|
3166
|
+
* @generated from field: string page_token = 2;
|
|
3167
|
+
*/
|
|
3168
|
+
pageToken: string;
|
|
3169
|
+
};
|
|
3170
|
+
/**
|
|
3171
|
+
* Describes the message ai.v1.ListMemoriesRequest.
|
|
3172
|
+
* Use `create(ListMemoriesRequestSchema)` to create a new message.
|
|
3173
|
+
*/
|
|
3174
|
+
declare const ListMemoriesRequestSchema: GenMessage<ListMemoriesRequest>;
|
|
3175
|
+
/**
|
|
3176
|
+
* ListMemoriesResponse returns memories.
|
|
3177
|
+
*
|
|
3178
|
+
* @generated from message ai.v1.ListMemoriesResponse
|
|
3179
|
+
*/
|
|
3180
|
+
type ListMemoriesResponse = Message$1<"ai.v1.ListMemoriesResponse"> & {
|
|
3181
|
+
/**
|
|
3182
|
+
* Memories ordered by created_at descending, then memory_id descending.
|
|
3183
|
+
*
|
|
3184
|
+
* @generated from field: repeated ai.v1.Memory memories = 1;
|
|
3185
|
+
*/
|
|
3186
|
+
memories: Memory[];
|
|
3187
|
+
/**
|
|
3188
|
+
* Cursor for the next page. Empty when no more results exist.
|
|
3189
|
+
*
|
|
3190
|
+
* @generated from field: string next_page_token = 2;
|
|
3191
|
+
*/
|
|
3192
|
+
nextPageToken: string;
|
|
3193
|
+
};
|
|
3194
|
+
/**
|
|
3195
|
+
* Describes the message ai.v1.ListMemoriesResponse.
|
|
3196
|
+
* Use `create(ListMemoriesResponseSchema)` to create a new message.
|
|
3197
|
+
*/
|
|
3198
|
+
declare const ListMemoriesResponseSchema: GenMessage<ListMemoriesResponse>;
|
|
3199
|
+
/**
|
|
3200
|
+
* DeleteMemoryRequest selects the memory to forget.
|
|
3201
|
+
*
|
|
3202
|
+
* @generated from message ai.v1.DeleteMemoryRequest
|
|
3203
|
+
*/
|
|
3204
|
+
type DeleteMemoryRequest = Message$1<"ai.v1.DeleteMemoryRequest"> & {
|
|
3205
|
+
/**
|
|
3206
|
+
* Memory to delete.
|
|
3207
|
+
*
|
|
3208
|
+
* @generated from field: fixed64 memory_id = 1;
|
|
3209
|
+
*/
|
|
3210
|
+
memoryId: bigint;
|
|
3211
|
+
};
|
|
3212
|
+
/**
|
|
3213
|
+
* Describes the message ai.v1.DeleteMemoryRequest.
|
|
3214
|
+
* Use `create(DeleteMemoryRequestSchema)` to create a new message.
|
|
3215
|
+
*/
|
|
3216
|
+
declare const DeleteMemoryRequestSchema: GenMessage<DeleteMemoryRequest>;
|
|
3217
|
+
/**
|
|
3218
|
+
* DeleteMemoryResponse confirms the deletion.
|
|
3219
|
+
*
|
|
3220
|
+
* @generated from message ai.v1.DeleteMemoryResponse
|
|
3221
|
+
*/
|
|
3222
|
+
type DeleteMemoryResponse = Message$1<"ai.v1.DeleteMemoryResponse"> & {};
|
|
3223
|
+
/**
|
|
3224
|
+
* Describes the message ai.v1.DeleteMemoryResponse.
|
|
3225
|
+
* Use `create(DeleteMemoryResponseSchema)` to create a new message.
|
|
3226
|
+
*/
|
|
3227
|
+
declare const DeleteMemoryResponseSchema: GenMessage<DeleteMemoryResponse>;
|
|
3228
|
+
/**
|
|
3229
|
+
* PrepareAssistantKeysRequest names the accounts to give the assistant keys
|
|
3230
|
+
* for.
|
|
3231
|
+
*
|
|
3232
|
+
* @generated from message ai.v1.PrepareAssistantKeysRequest
|
|
3233
|
+
*/
|
|
3234
|
+
type PrepareAssistantKeysRequest = Message$1<"ai.v1.PrepareAssistantKeysRequest"> & {
|
|
3235
|
+
/**
|
|
3236
|
+
* 1 to 64 accounts, each at most once.
|
|
3237
|
+
*
|
|
3238
|
+
* @generated from field: repeated ai.v1.AssistantKeyAccount accounts = 1;
|
|
3239
|
+
*/
|
|
3240
|
+
accounts: AssistantKeyAccount[];
|
|
3241
|
+
};
|
|
3242
|
+
/**
|
|
3243
|
+
* Describes the message ai.v1.PrepareAssistantKeysRequest.
|
|
3244
|
+
* Use `create(PrepareAssistantKeysRequestSchema)` to create a new message.
|
|
3245
|
+
*/
|
|
3246
|
+
declare const PrepareAssistantKeysRequestSchema: GenMessage<PrepareAssistantKeysRequest>;
|
|
3247
|
+
/**
|
|
3248
|
+
* PrepareAssistantKeysResponse returns the public keys to register.
|
|
3249
|
+
*
|
|
3250
|
+
* @generated from message ai.v1.PrepareAssistantKeysResponse
|
|
3251
|
+
*/
|
|
3252
|
+
type PrepareAssistantKeysResponse = Message$1<"ai.v1.PrepareAssistantKeysResponse"> & {
|
|
3253
|
+
/**
|
|
3254
|
+
* The setup, the argument of CompleteAssistantKeys.
|
|
3255
|
+
*
|
|
3256
|
+
* @generated from field: fixed64 setup_id = 1;
|
|
3257
|
+
*/
|
|
3258
|
+
setupId: bigint;
|
|
3259
|
+
/**
|
|
3260
|
+
* One key per requested account, in request order.
|
|
3261
|
+
*
|
|
3262
|
+
* @generated from field: repeated ai.v1.PreparedAssistantKey keys = 2;
|
|
3263
|
+
*/
|
|
3264
|
+
keys: PreparedAssistantKey[];
|
|
3265
|
+
/**
|
|
3266
|
+
* The keys' registration deadline: register them with SetAssistantKeys
|
|
3267
|
+
* before this time. After it, they cannot be registered.
|
|
3268
|
+
*
|
|
3269
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 3;
|
|
3270
|
+
*/
|
|
3271
|
+
expiresAt?: Timestamp | undefined;
|
|
3272
|
+
};
|
|
3273
|
+
/**
|
|
3274
|
+
* Describes the message ai.v1.PrepareAssistantKeysResponse.
|
|
3275
|
+
* Use `create(PrepareAssistantKeysResponseSchema)` to create a new message.
|
|
3276
|
+
*/
|
|
3277
|
+
declare const PrepareAssistantKeysResponseSchema: GenMessage<PrepareAssistantKeysResponse>;
|
|
3278
|
+
/**
|
|
3279
|
+
* CompleteAssistantKeysRequest selects the setup whose keys were registered.
|
|
3280
|
+
*
|
|
3281
|
+
* @generated from message ai.v1.CompleteAssistantKeysRequest
|
|
3282
|
+
*/
|
|
3283
|
+
type CompleteAssistantKeysRequest = Message$1<"ai.v1.CompleteAssistantKeysRequest"> & {
|
|
3284
|
+
/**
|
|
3285
|
+
* Setup from PrepareAssistantKeysResponse.
|
|
3286
|
+
*
|
|
3287
|
+
* @generated from field: fixed64 setup_id = 1;
|
|
3288
|
+
*/
|
|
3289
|
+
setupId: bigint;
|
|
3290
|
+
};
|
|
3291
|
+
/**
|
|
3292
|
+
* Describes the message ai.v1.CompleteAssistantKeysRequest.
|
|
3293
|
+
* Use `create(CompleteAssistantKeysRequestSchema)` to create a new message.
|
|
3294
|
+
*/
|
|
3295
|
+
declare const CompleteAssistantKeysRequestSchema: GenMessage<CompleteAssistantKeysRequest>;
|
|
3296
|
+
/**
|
|
3297
|
+
* CompleteAssistantKeysResponse returns the keys the assistant now uses.
|
|
3298
|
+
*
|
|
3299
|
+
* @generated from message ai.v1.CompleteAssistantKeysResponse
|
|
3300
|
+
*/
|
|
3301
|
+
type CompleteAssistantKeysResponse = Message$1<"ai.v1.CompleteAssistantKeysResponse"> & {
|
|
3302
|
+
/**
|
|
3303
|
+
* The caller's assistant keys the assistant holds, oldest first.
|
|
3304
|
+
*
|
|
3305
|
+
* @generated from field: repeated ai.v1.AssistantKey keys = 1;
|
|
3306
|
+
*/
|
|
3307
|
+
keys: AssistantKey[];
|
|
3308
|
+
};
|
|
3309
|
+
/**
|
|
3310
|
+
* Describes the message ai.v1.CompleteAssistantKeysResponse.
|
|
3311
|
+
* Use `create(CompleteAssistantKeysResponseSchema)` to create a new message.
|
|
3312
|
+
*/
|
|
3313
|
+
declare const CompleteAssistantKeysResponseSchema: GenMessage<CompleteAssistantKeysResponse>;
|
|
3314
|
+
/**
|
|
3315
|
+
* ListAssistantKeysRequest lists the assistant keys the assistant holds.
|
|
3316
|
+
*
|
|
3317
|
+
* @generated from message ai.v1.ListAssistantKeysRequest
|
|
3318
|
+
*/
|
|
3319
|
+
type ListAssistantKeysRequest = Message$1<"ai.v1.ListAssistantKeysRequest"> & {};
|
|
3320
|
+
/**
|
|
3321
|
+
* Describes the message ai.v1.ListAssistantKeysRequest.
|
|
3322
|
+
* Use `create(ListAssistantKeysRequestSchema)` to create a new message.
|
|
3323
|
+
*/
|
|
3324
|
+
declare const ListAssistantKeysRequestSchema: GenMessage<ListAssistantKeysRequest>;
|
|
3325
|
+
/**
|
|
3326
|
+
* ListAssistantKeysResponse returns the assistant keys the assistant holds.
|
|
3327
|
+
*
|
|
3328
|
+
* @generated from message ai.v1.ListAssistantKeysResponse
|
|
3329
|
+
*/
|
|
3330
|
+
type ListAssistantKeysResponse = Message$1<"ai.v1.ListAssistantKeysResponse"> & {
|
|
3331
|
+
/**
|
|
3332
|
+
* The caller's assistant keys the assistant holds, oldest first, at most
|
|
3333
|
+
* one per account.
|
|
3334
|
+
*
|
|
3335
|
+
* @generated from field: repeated ai.v1.AssistantKey keys = 1;
|
|
3336
|
+
*/
|
|
3337
|
+
keys: AssistantKey[];
|
|
3338
|
+
};
|
|
3339
|
+
/**
|
|
3340
|
+
* Describes the message ai.v1.ListAssistantKeysResponse.
|
|
3341
|
+
* Use `create(ListAssistantKeysResponseSchema)` to create a new message.
|
|
3342
|
+
*/
|
|
3343
|
+
declare const ListAssistantKeysResponseSchema: GenMessage<ListAssistantKeysResponse>;
|
|
3344
|
+
/**
|
|
3345
|
+
* ErrorCode identifies an Assistant API error.
|
|
3346
|
+
*
|
|
3347
|
+
* @generated from enum ai.v1.ErrorCode
|
|
3348
|
+
*/
|
|
3349
|
+
declare enum ErrorCode {
|
|
3350
|
+
/**
|
|
3351
|
+
* No code.
|
|
3352
|
+
*
|
|
3353
|
+
* @generated from enum value: ERROR_UNSPECIFIED = 0;
|
|
3354
|
+
*/
|
|
3355
|
+
ERROR_UNSPECIFIED = 0,
|
|
3356
|
+
/**
|
|
3357
|
+
* No conversation of the caller has this ID.
|
|
3358
|
+
*
|
|
3359
|
+
* @generated from enum value: CONVERSATION_NOT_FOUND = 1;
|
|
3360
|
+
*/
|
|
3361
|
+
CONVERSATION_NOT_FOUND = 1,
|
|
3362
|
+
/**
|
|
3363
|
+
* No run of the caller has this ID.
|
|
3364
|
+
*
|
|
3365
|
+
* @generated from enum value: RUN_NOT_FOUND = 2;
|
|
3366
|
+
*/
|
|
3367
|
+
RUN_NOT_FOUND = 2,
|
|
3368
|
+
/**
|
|
3369
|
+
* No approval of the caller has this ID.
|
|
3370
|
+
*
|
|
3371
|
+
* @generated from enum value: APPROVAL_NOT_FOUND = 3;
|
|
3372
|
+
*/
|
|
3373
|
+
APPROVAL_NOT_FOUND = 3,
|
|
3374
|
+
/**
|
|
3375
|
+
* No memory of the caller has this ID.
|
|
3376
|
+
*
|
|
3377
|
+
* @generated from enum value: MEMORY_NOT_FOUND = 4;
|
|
3378
|
+
*/
|
|
3379
|
+
MEMORY_NOT_FOUND = 4,
|
|
3380
|
+
/**
|
|
3381
|
+
* The conversation already has an active run. Wait for it to end, or cancel
|
|
3382
|
+
* it, before sending another message.
|
|
3383
|
+
*
|
|
3384
|
+
* @generated from enum value: RUN_ACTIVE = 5;
|
|
3385
|
+
*/
|
|
3386
|
+
RUN_ACTIVE = 5,
|
|
3387
|
+
/**
|
|
3388
|
+
* The idempotency key was already used with a different request. The
|
|
3389
|
+
* original run stands.
|
|
3390
|
+
*
|
|
3391
|
+
* @generated from enum value: IDEMPOTENCY_CONFLICT = 6;
|
|
3392
|
+
*/
|
|
3393
|
+
IDEMPOTENCY_CONFLICT = 6,
|
|
3394
|
+
/**
|
|
3395
|
+
* The approval was already decided the other way. The first decision
|
|
3396
|
+
* stands.
|
|
3397
|
+
*
|
|
3398
|
+
* @generated from enum value: APPROVAL_ALREADY_DECIDED = 7;
|
|
3399
|
+
*/
|
|
3400
|
+
APPROVAL_ALREADY_DECIDED = 7,
|
|
3401
|
+
/**
|
|
3402
|
+
* The approval expired before it was decided. Nothing was executed.
|
|
3403
|
+
*
|
|
3404
|
+
* @generated from enum value: APPROVAL_EXPIRED = 8;
|
|
3405
|
+
*/
|
|
3406
|
+
APPROVAL_EXPIRED = 8,
|
|
3407
|
+
/**
|
|
3408
|
+
* The caller sent too many messages or used up their assistant allowance;
|
|
3409
|
+
* retry later.
|
|
3410
|
+
*
|
|
3411
|
+
* @generated from enum value: USAGE_LIMIT_REACHED = 9;
|
|
3412
|
+
*/
|
|
3413
|
+
USAGE_LIMIT_REACHED = 9,
|
|
3414
|
+
/**
|
|
3415
|
+
* A required service is temporarily unavailable; retry the same request.
|
|
3416
|
+
*
|
|
3417
|
+
* @generated from enum value: SERVICE_UNAVAILABLE = 10;
|
|
3418
|
+
*/
|
|
3419
|
+
SERVICE_UNAVAILABLE = 10,
|
|
3420
|
+
/**
|
|
3421
|
+
* No pending key setup of the caller has this ID: it was never prepared,
|
|
3422
|
+
* it expired without being registered, or a later setup replaced it.
|
|
3423
|
+
* Prepare the keys again.
|
|
3424
|
+
*
|
|
3425
|
+
* @generated from enum value: KEY_SETUP_NOT_FOUND = 11;
|
|
3426
|
+
*/
|
|
3427
|
+
KEY_SETUP_NOT_FOUND = 11,
|
|
3428
|
+
/**
|
|
3429
|
+
* The setup's public keys are not registered as the caller's assistant
|
|
3430
|
+
* keys: they were not submitted yet, or their registration was refused.
|
|
3431
|
+
* Nothing changed.
|
|
3432
|
+
*
|
|
3433
|
+
* @generated from enum value: KEY_SETUP_NOT_REGISTERED = 12;
|
|
3434
|
+
*/
|
|
3435
|
+
KEY_SETUP_NOT_REGISTERED = 12
|
|
3436
|
+
}
|
|
3437
|
+
/**
|
|
3438
|
+
* Describes the enum ai.v1.ErrorCode.
|
|
3439
|
+
*/
|
|
3440
|
+
declare const ErrorCodeSchema: GenEnum<ErrorCode>;
|
|
3441
|
+
/**
|
|
3442
|
+
* MessageRole is the author of a conversation message.
|
|
3443
|
+
*
|
|
3444
|
+
* @generated from enum ai.v1.MessageRole
|
|
3445
|
+
*/
|
|
3446
|
+
declare enum MessageRole {
|
|
3447
|
+
/**
|
|
3448
|
+
* Not set. Never returned.
|
|
3449
|
+
*
|
|
3450
|
+
* @generated from enum value: ROLE_UNSPECIFIED = 0;
|
|
3451
|
+
*/
|
|
3452
|
+
ROLE_UNSPECIFIED = 0,
|
|
3453
|
+
/**
|
|
3454
|
+
* The user.
|
|
3455
|
+
*
|
|
3456
|
+
* @generated from enum value: USER = 1;
|
|
3457
|
+
*/
|
|
3458
|
+
USER = 1,
|
|
3459
|
+
/**
|
|
3460
|
+
* The assistant.
|
|
3461
|
+
*
|
|
3462
|
+
* @generated from enum value: ASSISTANT = 2;
|
|
3463
|
+
*/
|
|
3464
|
+
ASSISTANT = 2
|
|
3465
|
+
}
|
|
3466
|
+
/**
|
|
3467
|
+
* Describes the enum ai.v1.MessageRole.
|
|
3468
|
+
*/
|
|
3469
|
+
declare const MessageRoleSchema: GenEnum<MessageRole>;
|
|
3470
|
+
/**
|
|
3471
|
+
* FailureCategory classifies why a run failed.
|
|
3472
|
+
*
|
|
3473
|
+
* @generated from enum ai.v1.FailureCategory
|
|
3474
|
+
*/
|
|
3475
|
+
declare enum FailureCategory {
|
|
3476
|
+
/**
|
|
3477
|
+
* Not set. Never returned.
|
|
3478
|
+
*
|
|
3479
|
+
* @generated from enum value: FAILURE_UNSPECIFIED = 0;
|
|
3480
|
+
*/
|
|
3481
|
+
FAILURE_UNSPECIFIED = 0,
|
|
3482
|
+
/**
|
|
3483
|
+
* The run was cancelled with CancelRun.
|
|
3484
|
+
*
|
|
3485
|
+
* @generated from enum value: CANCELLED = 1;
|
|
3486
|
+
*/
|
|
3487
|
+
CANCELLED = 1,
|
|
3488
|
+
/**
|
|
3489
|
+
* The run reached its step or usage budget before it could finish.
|
|
3490
|
+
*
|
|
3491
|
+
* @generated from enum value: BUDGET_EXCEEDED = 2;
|
|
3492
|
+
*/
|
|
3493
|
+
BUDGET_EXCEEDED = 2,
|
|
3494
|
+
/**
|
|
3495
|
+
* The run needed an action the caller is not permitted to take.
|
|
3496
|
+
*
|
|
3497
|
+
* @generated from enum value: PERMISSION_DENIED = 3;
|
|
3498
|
+
*/
|
|
3499
|
+
PERMISSION_DENIED = 3,
|
|
3500
|
+
/**
|
|
3501
|
+
* The language model was unavailable and the run could not continue; send
|
|
3502
|
+
* the message again later.
|
|
3503
|
+
*
|
|
3504
|
+
* @generated from enum value: MODEL_UNAVAILABLE = 4;
|
|
3505
|
+
*/
|
|
3506
|
+
MODEL_UNAVAILABLE = 4,
|
|
3507
|
+
/**
|
|
3508
|
+
* The run could not continue because of an unexpected error.
|
|
3509
|
+
*
|
|
3510
|
+
* @generated from enum value: UNEXPECTED_ERROR = 5;
|
|
3511
|
+
*/
|
|
3512
|
+
UNEXPECTED_ERROR = 5
|
|
3513
|
+
}
|
|
3514
|
+
/**
|
|
3515
|
+
* Describes the enum ai.v1.FailureCategory.
|
|
3516
|
+
*/
|
|
3517
|
+
declare const FailureCategorySchema: GenEnum<FailureCategory>;
|
|
3518
|
+
/**
|
|
3519
|
+
* ApprovalDecision is the user's answer to an approval request.
|
|
3520
|
+
*
|
|
3521
|
+
* @generated from enum ai.v1.ApprovalDecision
|
|
3522
|
+
*/
|
|
3523
|
+
declare enum ApprovalDecision {
|
|
3524
|
+
/**
|
|
3525
|
+
* Not set. Rejected in requests.
|
|
3526
|
+
*
|
|
3527
|
+
* @generated from enum value: DECISION_UNSPECIFIED = 0;
|
|
3528
|
+
*/
|
|
3529
|
+
DECISION_UNSPECIFIED = 0,
|
|
3530
|
+
/**
|
|
3531
|
+
* Approve: the action runs exactly as summarized.
|
|
3532
|
+
*
|
|
3533
|
+
* @generated from enum value: APPROVE = 1;
|
|
3534
|
+
*/
|
|
3535
|
+
APPROVE = 1,
|
|
3536
|
+
/**
|
|
3537
|
+
* Reject: the action does not run.
|
|
3538
|
+
*
|
|
3539
|
+
* @generated from enum value: REJECT = 2;
|
|
3540
|
+
*/
|
|
3541
|
+
REJECT = 2
|
|
3542
|
+
}
|
|
3543
|
+
/**
|
|
3544
|
+
* Describes the enum ai.v1.ApprovalDecision.
|
|
3545
|
+
*/
|
|
3546
|
+
declare const ApprovalDecisionSchema: GenEnum<ApprovalDecision>;
|
|
3547
|
+
/**
|
|
3548
|
+
* ApprovalStatus is the state of an approval request.
|
|
3549
|
+
*
|
|
3550
|
+
* @generated from enum ai.v1.ApprovalStatus
|
|
3551
|
+
*/
|
|
3552
|
+
declare enum ApprovalStatus {
|
|
3553
|
+
/**
|
|
3554
|
+
* Not set. Never returned.
|
|
3555
|
+
*
|
|
3556
|
+
* @generated from enum value: APPROVAL_UNSPECIFIED = 0;
|
|
3557
|
+
*/
|
|
3558
|
+
APPROVAL_UNSPECIFIED = 0,
|
|
3559
|
+
/**
|
|
3560
|
+
* Waiting for a decision.
|
|
3561
|
+
*
|
|
3562
|
+
* @generated from enum value: PENDING = 1;
|
|
3563
|
+
*/
|
|
3564
|
+
PENDING = 1,
|
|
3565
|
+
/**
|
|
3566
|
+
* Approved by the user.
|
|
3567
|
+
*
|
|
3568
|
+
* @generated from enum value: APPROVED = 2;
|
|
3569
|
+
*/
|
|
3570
|
+
APPROVED = 2,
|
|
3571
|
+
/**
|
|
3572
|
+
* Rejected by the user.
|
|
3573
|
+
*
|
|
3574
|
+
* @generated from enum value: REJECTED = 3;
|
|
3575
|
+
*/
|
|
3576
|
+
REJECTED = 3,
|
|
3577
|
+
/**
|
|
3578
|
+
* Expired before a decision; the action did not run.
|
|
3579
|
+
*
|
|
3580
|
+
* @generated from enum value: EXPIRED = 4;
|
|
3581
|
+
*/
|
|
3582
|
+
EXPIRED = 4
|
|
3583
|
+
}
|
|
3584
|
+
/**
|
|
3585
|
+
* Describes the enum ai.v1.ApprovalStatus.
|
|
3586
|
+
*/
|
|
3587
|
+
declare const ApprovalStatusSchema: GenEnum<ApprovalStatus>;
|
|
3588
|
+
/**
|
|
3589
|
+
* MemoryKind is what kind of fact a memory holds.
|
|
3590
|
+
*
|
|
3591
|
+
* @generated from enum ai.v1.MemoryKind
|
|
3592
|
+
*/
|
|
3593
|
+
declare enum MemoryKind {
|
|
3594
|
+
/**
|
|
3595
|
+
* Not set. Never returned.
|
|
3596
|
+
*
|
|
3597
|
+
* @generated from enum value: KIND_UNSPECIFIED = 0;
|
|
3598
|
+
*/
|
|
3599
|
+
KIND_UNSPECIFIED = 0,
|
|
3600
|
+
/**
|
|
3601
|
+
* A lasting fact or preference the user stated about themselves.
|
|
3602
|
+
*
|
|
3603
|
+
* @generated from enum value: FACT = 1;
|
|
3604
|
+
*/
|
|
3605
|
+
FACT = 1,
|
|
3606
|
+
/**
|
|
3607
|
+
* A figure the user stated for their own planning, such as the account size
|
|
3608
|
+
* they plan risk against. It is never a balance.
|
|
3609
|
+
*
|
|
3610
|
+
* @generated from enum value: PLANNING_FIGURE = 2;
|
|
3611
|
+
*/
|
|
3612
|
+
PLANNING_FIGURE = 2,
|
|
3613
|
+
/**
|
|
3614
|
+
* A standing preference for how the assistant addresses and talks to the
|
|
3615
|
+
* user, such as the name to use, the language, the tone and length of
|
|
3616
|
+
* answers, or how risks are explained. The assistant applies every profile
|
|
3617
|
+
* memory to every answer, so it is never searched and never appears in a
|
|
3618
|
+
* MemoriesRecalled event. A user holds at most 10 profile memories.
|
|
3619
|
+
*
|
|
3620
|
+
* @generated from enum value: PROFILE = 3;
|
|
3621
|
+
*/
|
|
3622
|
+
PROFILE = 3
|
|
3623
|
+
}
|
|
3624
|
+
/**
|
|
3625
|
+
* Describes the enum ai.v1.MemoryKind.
|
|
3626
|
+
*/
|
|
3627
|
+
declare const MemoryKindSchema: GenEnum<MemoryKind>;
|
|
3628
|
+
/**
|
|
3629
|
+
* AssistantKeyState is the state of an assistant key the assistant holds.
|
|
3630
|
+
*
|
|
3631
|
+
* @generated from enum ai.v1.AssistantKeyState
|
|
3632
|
+
*/
|
|
3633
|
+
declare enum AssistantKeyState {
|
|
3634
|
+
/**
|
|
3635
|
+
* Not set. Never returned.
|
|
3636
|
+
*
|
|
3637
|
+
* @generated from enum value: KEY_STATE_UNSPECIFIED = 0;
|
|
3638
|
+
*/
|
|
3639
|
+
KEY_STATE_UNSPECIFIED = 0,
|
|
3640
|
+
/**
|
|
3641
|
+
* The assistant uses the key for its account.
|
|
3642
|
+
*
|
|
3643
|
+
* @generated from enum value: ACTIVE = 1;
|
|
3644
|
+
*/
|
|
3645
|
+
ACTIVE = 1,
|
|
3646
|
+
/**
|
|
3647
|
+
* The key was disabled when the assistant last checked it. The assistant
|
|
3648
|
+
* keeps it and uses it again once it is enabled.
|
|
3649
|
+
*
|
|
3650
|
+
* @generated from enum value: DISABLED = 2;
|
|
3651
|
+
*/
|
|
3652
|
+
DISABLED = 2
|
|
3653
|
+
}
|
|
3654
|
+
/**
|
|
3655
|
+
* Describes the enum ai.v1.AssistantKeyState.
|
|
3656
|
+
*/
|
|
3657
|
+
declare const AssistantKeyStateSchema: GenEnum<AssistantKeyState>;
|
|
3658
|
+
/**
|
|
3659
|
+
* ReferencePriceSource names the market price a ReferencePrice is.
|
|
3660
|
+
*
|
|
3661
|
+
* @generated from enum ai.v1.ReferencePriceSource
|
|
3662
|
+
*/
|
|
3663
|
+
declare enum ReferencePriceSource {
|
|
3664
|
+
/**
|
|
3665
|
+
* Not set. Never returned.
|
|
3666
|
+
*
|
|
3667
|
+
* @generated from enum value: PRICE_SOURCE_UNSPECIFIED = 0;
|
|
3668
|
+
*/
|
|
3669
|
+
PRICE_SOURCE_UNSPECIFIED = 0,
|
|
3670
|
+
/**
|
|
3671
|
+
* The best bid: the highest price a resting buy order offers.
|
|
3672
|
+
*
|
|
3673
|
+
* @generated from enum value: BEST_BID = 1;
|
|
3674
|
+
*/
|
|
3675
|
+
BEST_BID = 1,
|
|
3676
|
+
/**
|
|
3677
|
+
* The best ask: the lowest price a resting sell order offers.
|
|
3678
|
+
*
|
|
3679
|
+
* @generated from enum value: BEST_ASK = 2;
|
|
3680
|
+
*/
|
|
3681
|
+
BEST_ASK = 2,
|
|
3682
|
+
/**
|
|
3683
|
+
* The price of the market's last trade.
|
|
3684
|
+
*
|
|
3685
|
+
* @generated from enum value: LAST_PRICE = 3;
|
|
3686
|
+
*/
|
|
3687
|
+
LAST_PRICE = 3,
|
|
3688
|
+
/**
|
|
3689
|
+
* The market's index price, aggregated from external exchanges.
|
|
3690
|
+
*
|
|
3691
|
+
* @generated from enum value: INDEX_PRICE = 4;
|
|
3692
|
+
*/
|
|
3693
|
+
INDEX_PRICE = 4
|
|
3694
|
+
}
|
|
3695
|
+
/**
|
|
3696
|
+
* Describes the enum ai.v1.ReferencePriceSource.
|
|
3697
|
+
*/
|
|
3698
|
+
declare const ReferencePriceSourceSchema: GenEnum<ReferencePriceSource>;
|
|
3699
|
+
/**
|
|
3700
|
+
* TriggerDirection is which way the watched price must move to fire a
|
|
3701
|
+
* trigger.
|
|
3702
|
+
*
|
|
3703
|
+
* @generated from enum ai.v1.TriggerDirection
|
|
3704
|
+
*/
|
|
3705
|
+
declare enum TriggerDirection {
|
|
3706
|
+
/**
|
|
3707
|
+
* Not set. Never returned.
|
|
3708
|
+
*
|
|
3709
|
+
* @generated from enum value: DIRECTION_UNSPECIFIED = 0;
|
|
3710
|
+
*/
|
|
3711
|
+
DIRECTION_UNSPECIFIED = 0,
|
|
3712
|
+
/**
|
|
3713
|
+
* Fires when the watched price rises to or above the trigger price.
|
|
3714
|
+
*
|
|
3715
|
+
* @generated from enum value: AT_OR_ABOVE = 1;
|
|
3716
|
+
*/
|
|
3717
|
+
AT_OR_ABOVE = 1,
|
|
3718
|
+
/**
|
|
3719
|
+
* Fires when the watched price falls to or below the trigger price.
|
|
3720
|
+
*
|
|
3721
|
+
* @generated from enum value: AT_OR_BELOW = 2;
|
|
3722
|
+
*/
|
|
3723
|
+
AT_OR_BELOW = 2
|
|
3724
|
+
}
|
|
3725
|
+
/**
|
|
3726
|
+
* Describes the enum ai.v1.TriggerDirection.
|
|
3727
|
+
*/
|
|
3728
|
+
declare const TriggerDirectionSchema: GenEnum<TriggerDirection>;
|
|
3729
|
+
/**
|
|
3730
|
+
* OrderPriceField names one price of an order.
|
|
3731
|
+
*
|
|
3732
|
+
* @generated from enum ai.v1.OrderPriceField
|
|
3733
|
+
*/
|
|
3734
|
+
declare enum OrderPriceField {
|
|
3735
|
+
/**
|
|
3736
|
+
* Not set. Never returned.
|
|
3737
|
+
*
|
|
3738
|
+
* @generated from enum value: PRICE_FIELD_UNSPECIFIED = 0;
|
|
3739
|
+
*/
|
|
3740
|
+
PRICE_FIELD_UNSPECIFIED = 0,
|
|
3741
|
+
/**
|
|
3742
|
+
* The limit price: of a limit order, of a stop-loss or take-profit's limit
|
|
3743
|
+
* order, of a TWAP's limit slices; the most a buying trailing stop pays.
|
|
3744
|
+
*
|
|
3745
|
+
* @generated from enum value: LIMIT_PRICE = 1;
|
|
3746
|
+
*/
|
|
3747
|
+
LIMIT_PRICE = 1,
|
|
3748
|
+
/**
|
|
3749
|
+
* A stop-loss or take-profit's trigger price.
|
|
3750
|
+
*
|
|
3751
|
+
* @generated from enum value: TRIGGER_PRICE = 2;
|
|
3752
|
+
*/
|
|
3753
|
+
TRIGGER_PRICE = 2,
|
|
3754
|
+
/**
|
|
3755
|
+
* A trailing stop's activation price.
|
|
3756
|
+
*
|
|
3757
|
+
* @generated from enum value: ACTIVATION_PRICE = 3;
|
|
3758
|
+
*/
|
|
3759
|
+
ACTIVATION_PRICE = 3,
|
|
3760
|
+
/**
|
|
3761
|
+
* A ladder's lowest level price.
|
|
3762
|
+
*
|
|
3763
|
+
* @generated from enum value: LADDER_LOW_PRICE = 4;
|
|
3764
|
+
*/
|
|
3765
|
+
LADDER_LOW_PRICE = 4,
|
|
3766
|
+
/**
|
|
3767
|
+
* A ladder's highest level price.
|
|
3768
|
+
*
|
|
3769
|
+
* @generated from enum value: LADDER_HIGH_PRICE = 5;
|
|
3770
|
+
*/
|
|
3771
|
+
LADDER_HIGH_PRICE = 5,
|
|
3772
|
+
/**
|
|
3773
|
+
* An attached take-profit's trigger price.
|
|
3774
|
+
*
|
|
3775
|
+
* @generated from enum value: TAKE_PROFIT_TRIGGER_PRICE = 6;
|
|
3776
|
+
*/
|
|
3777
|
+
TAKE_PROFIT_TRIGGER_PRICE = 6,
|
|
3778
|
+
/**
|
|
3779
|
+
* An attached take-profit's limit exit price.
|
|
3780
|
+
*
|
|
3781
|
+
* @generated from enum value: TAKE_PROFIT_LIMIT_PRICE = 7;
|
|
3782
|
+
*/
|
|
3783
|
+
TAKE_PROFIT_LIMIT_PRICE = 7,
|
|
3784
|
+
/**
|
|
3785
|
+
* An attached stop-loss's trigger price.
|
|
3786
|
+
*
|
|
3787
|
+
* @generated from enum value: STOP_LOSS_TRIGGER_PRICE = 8;
|
|
3788
|
+
*/
|
|
3789
|
+
STOP_LOSS_TRIGGER_PRICE = 8,
|
|
3790
|
+
/**
|
|
3791
|
+
* An attached stop-loss's limit exit price.
|
|
3792
|
+
*
|
|
3793
|
+
* @generated from enum value: STOP_LOSS_LIMIT_PRICE = 9;
|
|
3794
|
+
*/
|
|
3795
|
+
STOP_LOSS_LIMIT_PRICE = 9,
|
|
3796
|
+
/**
|
|
3797
|
+
* An attached trailing stop's activation price.
|
|
3798
|
+
*
|
|
3799
|
+
* @generated from enum value: TRAILING_STOP_ACTIVATION_PRICE = 10;
|
|
3800
|
+
*/
|
|
3801
|
+
TRAILING_STOP_ACTIVATION_PRICE = 10,
|
|
3802
|
+
/**
|
|
3803
|
+
* The most an attached trailing stop's buy-back pays.
|
|
3804
|
+
*
|
|
3805
|
+
* @generated from enum value: TRAILING_STOP_LIMIT_PRICE = 11;
|
|
3806
|
+
*/
|
|
3807
|
+
TRAILING_STOP_LIMIT_PRICE = 11
|
|
3808
|
+
}
|
|
3809
|
+
/**
|
|
3810
|
+
* Describes the enum ai.v1.OrderPriceField.
|
|
3811
|
+
*/
|
|
3812
|
+
declare const OrderPriceFieldSchema: GenEnum<OrderPriceField>;
|
|
3813
|
+
/**
|
|
3814
|
+
* PriceOffsetDirection is which side of its reference a relative price is.
|
|
3815
|
+
*
|
|
3816
|
+
* @generated from enum ai.v1.PriceOffsetDirection
|
|
3817
|
+
*/
|
|
3818
|
+
declare enum PriceOffsetDirection {
|
|
3819
|
+
/**
|
|
3820
|
+
* Not set. Never returned.
|
|
3821
|
+
*
|
|
3822
|
+
* @generated from enum value: OFFSET_DIRECTION_UNSPECIFIED = 0;
|
|
3823
|
+
*/
|
|
3824
|
+
OFFSET_DIRECTION_UNSPECIFIED = 0,
|
|
3825
|
+
/**
|
|
3826
|
+
* Above the reference.
|
|
3827
|
+
*
|
|
3828
|
+
* @generated from enum value: ABOVE = 1;
|
|
3829
|
+
*/
|
|
3830
|
+
ABOVE = 1,
|
|
3831
|
+
/**
|
|
3832
|
+
* Below the reference.
|
|
3833
|
+
*
|
|
3834
|
+
* @generated from enum value: BELOW = 2;
|
|
3835
|
+
*/
|
|
3836
|
+
BELOW = 2
|
|
3837
|
+
}
|
|
3838
|
+
/**
|
|
3839
|
+
* Describes the enum ai.v1.PriceOffsetDirection.
|
|
3840
|
+
*/
|
|
3841
|
+
declare const PriceOffsetDirectionSchema: GenEnum<PriceOffsetDirection>;
|
|
3842
|
+
/**
|
|
3843
|
+
* PriceRounding is which way a resolved price was rounded onto the market's
|
|
3844
|
+
* tick size.
|
|
3845
|
+
*
|
|
3846
|
+
* @generated from enum ai.v1.PriceRounding
|
|
3847
|
+
*/
|
|
3848
|
+
declare enum PriceRounding {
|
|
3849
|
+
/**
|
|
3850
|
+
* Not set. Never returned.
|
|
3851
|
+
*
|
|
3852
|
+
* @generated from enum value: ROUNDING_UNSPECIFIED = 0;
|
|
3853
|
+
*/
|
|
3854
|
+
ROUNDING_UNSPECIFIED = 0,
|
|
3855
|
+
/**
|
|
3856
|
+
* Down to the tick below: a price a buy trades at.
|
|
3857
|
+
*
|
|
3858
|
+
* @generated from enum value: DOWN = 1;
|
|
3859
|
+
*/
|
|
3860
|
+
DOWN = 1,
|
|
3861
|
+
/**
|
|
3862
|
+
* Up to the tick above: a price a sell trades at.
|
|
3863
|
+
*
|
|
3864
|
+
* @generated from enum value: UP = 2;
|
|
3865
|
+
*/
|
|
3866
|
+
UP = 2
|
|
3867
|
+
}
|
|
3868
|
+
/**
|
|
3869
|
+
* Describes the enum ai.v1.PriceRounding.
|
|
3870
|
+
*/
|
|
3871
|
+
declare const PriceRoundingSchema: GenEnum<PriceRounding>;
|
|
3872
|
+
/**
|
|
3873
|
+
* UnfilledSlicePolicy is what a TWAP does with a slice that has not filled
|
|
3874
|
+
* when the next slice is due.
|
|
3875
|
+
*
|
|
3876
|
+
* @generated from enum ai.v1.UnfilledSlicePolicy
|
|
3877
|
+
*/
|
|
3878
|
+
declare enum UnfilledSlicePolicy {
|
|
3879
|
+
/**
|
|
3880
|
+
* Not set: the slices are market orders, immediate or cancel.
|
|
3881
|
+
*
|
|
3882
|
+
* @generated from enum value: UNFILLED_SLICE_UNSPECIFIED = 0;
|
|
3883
|
+
*/
|
|
3884
|
+
UNFILLED_SLICE_UNSPECIFIED = 0,
|
|
3885
|
+
/**
|
|
3886
|
+
* What is left of the slice is canceled before the next slice is placed.
|
|
3887
|
+
*
|
|
3888
|
+
* @generated from enum value: CANCEL_BEFORE_NEXT = 1;
|
|
3889
|
+
*/
|
|
3890
|
+
CANCEL_BEFORE_NEXT = 1
|
|
3891
|
+
}
|
|
3892
|
+
/**
|
|
3893
|
+
* Describes the enum ai.v1.UnfilledSlicePolicy.
|
|
3894
|
+
*/
|
|
3895
|
+
declare const UnfilledSlicePolicySchema: GenEnum<UnfilledSlicePolicy>;
|
|
3896
|
+
/**
|
|
3897
|
+
* TriggerChangeAction is what an approval does to a trigger.
|
|
3898
|
+
*
|
|
3899
|
+
* @generated from enum ai.v1.TriggerChangeAction
|
|
3900
|
+
*/
|
|
3901
|
+
declare enum TriggerChangeAction {
|
|
3902
|
+
/**
|
|
3903
|
+
* Not set. Never returned.
|
|
3904
|
+
*
|
|
3905
|
+
* @generated from enum value: TRIGGER_CHANGE_UNSPECIFIED = 0;
|
|
3906
|
+
*/
|
|
3907
|
+
TRIGGER_CHANGE_UNSPECIFIED = 0,
|
|
3908
|
+
/**
|
|
3909
|
+
* Changes its trigger price, trailing distance, activation price or
|
|
3910
|
+
* slippage cap.
|
|
3911
|
+
*
|
|
3912
|
+
* @generated from enum value: MODIFY = 1;
|
|
3913
|
+
*/
|
|
3914
|
+
MODIFY = 1,
|
|
3915
|
+
/**
|
|
3916
|
+
* Pauses it: it keeps its settings and reserve but does not fire.
|
|
3917
|
+
*
|
|
3918
|
+
* @generated from enum value: PAUSE = 2;
|
|
3919
|
+
*/
|
|
3920
|
+
PAUSE = 2,
|
|
3921
|
+
/**
|
|
3922
|
+
* Resumes a paused trigger.
|
|
3923
|
+
*
|
|
3924
|
+
* @generated from enum value: RESUME = 3;
|
|
3925
|
+
*/
|
|
3926
|
+
RESUME = 3
|
|
3927
|
+
}
|
|
3928
|
+
/**
|
|
3929
|
+
* Describes the enum ai.v1.TriggerChangeAction.
|
|
3930
|
+
*/
|
|
3931
|
+
declare const TriggerChangeActionSchema: GenEnum<TriggerChangeAction>;
|
|
3932
|
+
/**
|
|
3933
|
+
* AssistantService is the Polyester trading assistant. A user sends a
|
|
3934
|
+
* message, which starts a run: the assistant's answer, with the tools,
|
|
3935
|
+
* skills and subagents it uses. The run continues on the server when no
|
|
3936
|
+
* client watches it, and its events can be replayed and resumed with
|
|
3937
|
+
* WatchRun.
|
|
3938
|
+
*
|
|
3939
|
+
* Requests are authenticated with a session token. Every conversation, run,
|
|
3940
|
+
* approval and memory belongs to the authenticated user; another user's
|
|
3941
|
+
* resource is reported exactly as a missing one. The assistant reads the
|
|
3942
|
+
* user's account data with the user's own permissions, and an action that
|
|
3943
|
+
* changes the account, such as placing an order, runs only after the user
|
|
3944
|
+
* approves it with DecideApproval.
|
|
3945
|
+
*
|
|
3946
|
+
* @generated from service ai.v1.AssistantService
|
|
3947
|
+
*/
|
|
3948
|
+
declare const AssistantService: GenService<{
|
|
3949
|
+
/**
|
|
3950
|
+
* SendMessage records the caller's message and starts a run that answers
|
|
3951
|
+
* it. It returns once the run is recorded; follow the run with WatchRun. A
|
|
3952
|
+
* conversation runs one run at a time. It is idempotent per caller and key:
|
|
3953
|
+
* repeat the request unchanged to resolve an unknown outcome.
|
|
3954
|
+
*
|
|
3955
|
+
* Errors:
|
|
3956
|
+
* - INVALID_ARGUMENT: malformed request.
|
|
3957
|
+
* - NOT_FOUND: CONVERSATION_NOT_FOUND.
|
|
3958
|
+
* - FAILED_PRECONDITION: RUN_ACTIVE; nothing is recorded.
|
|
3959
|
+
* - ALREADY_EXISTS: IDEMPOTENCY_CONFLICT; the original run stands.
|
|
3960
|
+
* - RESOURCE_EXHAUSTED: USAGE_LIMIT_REACHED; retry later.
|
|
3961
|
+
* - UNAVAILABLE, DEADLINE_EXCEEDED: SERVICE_UNAVAILABLE or an unknown
|
|
3962
|
+
* outcome; retry the same request.
|
|
3963
|
+
* - UNAUTHENTICATED: missing or invalid credentials.
|
|
3964
|
+
*
|
|
3965
|
+
* @generated from rpc ai.v1.AssistantService.SendMessage
|
|
3966
|
+
*/
|
|
3967
|
+
sendMessage: {
|
|
3968
|
+
methodKind: "unary";
|
|
3969
|
+
input: typeof SendMessageRequestSchema;
|
|
3970
|
+
output: typeof SendMessageResponseSchema;
|
|
3971
|
+
};
|
|
3972
|
+
/**
|
|
3973
|
+
* WatchRun streams a run's events in seq order: first the recorded events
|
|
3974
|
+
* after after_seq, then new events as they are recorded. The stream ends
|
|
3975
|
+
* after the run's last event, RunCompleted or RunFailed; watching an ended
|
|
3976
|
+
* run replays its events and ends. The server may also end the stream
|
|
3977
|
+
* early, for example during maintenance: reconnect with the seq of the last
|
|
3978
|
+
* event received to continue without gaps or repeats. Watching does not
|
|
3979
|
+
* keep a run alive, and a run continues when nobody watches it.
|
|
3980
|
+
*
|
|
3981
|
+
* Errors:
|
|
3982
|
+
* - INVALID_ARGUMENT: malformed request.
|
|
3983
|
+
* - NOT_FOUND: RUN_NOT_FOUND.
|
|
3984
|
+
* - UNAVAILABLE: SERVICE_UNAVAILABLE; reconnect with the last seq.
|
|
3985
|
+
* - UNAUTHENTICATED: missing or invalid credentials.
|
|
3986
|
+
*
|
|
3987
|
+
* @generated from rpc ai.v1.AssistantService.WatchRun
|
|
3988
|
+
*/
|
|
3989
|
+
watchRun: {
|
|
3990
|
+
methodKind: "server_streaming";
|
|
3991
|
+
input: typeof WatchRunRequestSchema;
|
|
3992
|
+
output: typeof WatchRunResponseSchema;
|
|
3993
|
+
};
|
|
3994
|
+
/**
|
|
3995
|
+
* CancelRun asks an active run to stop. It returns once the request is
|
|
3996
|
+
* recorded; the run then ends with RunFailed and category CANCELLED, and its
|
|
3997
|
+
* subagents stop too. A pending approval of the run expires. Cancelling a
|
|
3998
|
+
* run that already ended changes nothing and succeeds.
|
|
3999
|
+
*
|
|
4000
|
+
* Errors:
|
|
4001
|
+
* - INVALID_ARGUMENT: malformed request.
|
|
4002
|
+
* - NOT_FOUND: RUN_NOT_FOUND.
|
|
4003
|
+
* - UNAVAILABLE: SERVICE_UNAVAILABLE; retry the same request.
|
|
4004
|
+
* - UNAUTHENTICATED: missing or invalid credentials.
|
|
4005
|
+
*
|
|
4006
|
+
* @generated from rpc ai.v1.AssistantService.CancelRun
|
|
4007
|
+
*/
|
|
4008
|
+
cancelRun: {
|
|
4009
|
+
methodKind: "unary";
|
|
4010
|
+
input: typeof CancelRunRequestSchema;
|
|
4011
|
+
output: typeof CancelRunResponseSchema;
|
|
4012
|
+
};
|
|
4013
|
+
/**
|
|
4014
|
+
* DecideApproval approves or rejects a pending approval request of one of
|
|
4015
|
+
* the caller's runs. An approved action runs exactly as its summary says,
|
|
4016
|
+
* at most once. Repeating the same decision returns the recorded state.
|
|
4017
|
+
*
|
|
4018
|
+
* Errors:
|
|
4019
|
+
* - INVALID_ARGUMENT: malformed request.
|
|
4020
|
+
* - NOT_FOUND: APPROVAL_NOT_FOUND.
|
|
4021
|
+
* - FAILED_PRECONDITION: APPROVAL_ALREADY_DECIDED or APPROVAL_EXPIRED.
|
|
4022
|
+
* - UNAVAILABLE, DEADLINE_EXCEEDED: SERVICE_UNAVAILABLE or an unknown
|
|
4023
|
+
* outcome; retry the same request.
|
|
4024
|
+
* - UNAUTHENTICATED: missing or invalid credentials.
|
|
4025
|
+
*
|
|
4026
|
+
* @generated from rpc ai.v1.AssistantService.DecideApproval
|
|
4027
|
+
*/
|
|
4028
|
+
decideApproval: {
|
|
4029
|
+
methodKind: "unary";
|
|
4030
|
+
input: typeof DecideApprovalRequestSchema;
|
|
4031
|
+
output: typeof DecideApprovalResponseSchema;
|
|
4032
|
+
};
|
|
4033
|
+
/**
|
|
4034
|
+
* ListConversations lists the caller's conversations, most recently updated
|
|
4035
|
+
* first.
|
|
4036
|
+
*
|
|
4037
|
+
* Errors:
|
|
4038
|
+
* - INVALID_ARGUMENT: malformed request or page token.
|
|
4039
|
+
* - UNAVAILABLE: SERVICE_UNAVAILABLE; retry later.
|
|
4040
|
+
* - UNAUTHENTICATED: missing or invalid credentials.
|
|
4041
|
+
*
|
|
4042
|
+
* @generated from rpc ai.v1.AssistantService.ListConversations
|
|
4043
|
+
*/
|
|
4044
|
+
listConversations: {
|
|
4045
|
+
methodKind: "unary";
|
|
4046
|
+
input: typeof ListConversationsRequestSchema;
|
|
4047
|
+
output: typeof ListConversationsResponseSchema;
|
|
4048
|
+
};
|
|
4049
|
+
/**
|
|
4050
|
+
* ListMessages lists the messages of one of the caller's conversations,
|
|
4051
|
+
* newest first.
|
|
4052
|
+
*
|
|
4053
|
+
* Errors:
|
|
4054
|
+
* - INVALID_ARGUMENT: malformed request or page token.
|
|
4055
|
+
* - NOT_FOUND: CONVERSATION_NOT_FOUND.
|
|
4056
|
+
* - UNAVAILABLE: SERVICE_UNAVAILABLE; retry later.
|
|
4057
|
+
* - UNAUTHENTICATED: missing or invalid credentials.
|
|
4058
|
+
*
|
|
4059
|
+
* @generated from rpc ai.v1.AssistantService.ListMessages
|
|
4060
|
+
*/
|
|
4061
|
+
listMessages: {
|
|
4062
|
+
methodKind: "unary";
|
|
4063
|
+
input: typeof ListMessagesRequestSchema;
|
|
4064
|
+
output: typeof ListMessagesResponseSchema;
|
|
4065
|
+
};
|
|
4066
|
+
/**
|
|
4067
|
+
* ListMemories lists what the assistant remembers about the caller, newest
|
|
4068
|
+
* first. Each memory carries its kind: a PROFILE memory applies to every
|
|
4069
|
+
* answer, the others are used when relevant to a message.
|
|
4070
|
+
*
|
|
4071
|
+
* Errors:
|
|
4072
|
+
* - INVALID_ARGUMENT: malformed request or page token.
|
|
4073
|
+
* - UNAVAILABLE: SERVICE_UNAVAILABLE; retry later.
|
|
4074
|
+
* - UNAUTHENTICATED: missing or invalid credentials.
|
|
4075
|
+
*
|
|
4076
|
+
* @generated from rpc ai.v1.AssistantService.ListMemories
|
|
4077
|
+
*/
|
|
4078
|
+
listMemories: {
|
|
4079
|
+
methodKind: "unary";
|
|
4080
|
+
input: typeof ListMemoriesRequestSchema;
|
|
4081
|
+
output: typeof ListMemoriesResponseSchema;
|
|
4082
|
+
};
|
|
4083
|
+
/**
|
|
4084
|
+
* DeleteMemory makes the assistant forget one memory. Later runs no longer
|
|
4085
|
+
* use it. Deleting a memory that is already deleted succeeds.
|
|
4086
|
+
*
|
|
4087
|
+
* Errors:
|
|
4088
|
+
* - INVALID_ARGUMENT: malformed request.
|
|
4089
|
+
* - NOT_FOUND: MEMORY_NOT_FOUND.
|
|
4090
|
+
* - UNAVAILABLE: SERVICE_UNAVAILABLE; retry the same request.
|
|
4091
|
+
* - UNAUTHENTICATED: missing or invalid credentials.
|
|
4092
|
+
*
|
|
4093
|
+
* @generated from rpc ai.v1.AssistantService.DeleteMemory
|
|
4094
|
+
*/
|
|
4095
|
+
deleteMemory: {
|
|
4096
|
+
methodKind: "unary";
|
|
4097
|
+
input: typeof DeleteMemoryRequestSchema;
|
|
4098
|
+
output: typeof DeleteMemoryResponseSchema;
|
|
4099
|
+
};
|
|
4100
|
+
/**
|
|
4101
|
+
* PrepareAssistantKeys starts setting up the keys the assistant acts with:
|
|
4102
|
+
* it generates one Ed25519 key pair per account, keeps the private keys,
|
|
4103
|
+
* and returns the public keys with their registration proofs and deadline.
|
|
4104
|
+
* Then register them, with the policy of each account, in one
|
|
4105
|
+
* SetAssistantKeys request with a fresh step-up proof before the deadline,
|
|
4106
|
+
* and call CompleteAssistantKeys. The step-up proof goes to
|
|
4107
|
+
* SetAssistantKeys only, never to the assistant. A setup replaces no key
|
|
4108
|
+
* until it is registered.
|
|
4109
|
+
*
|
|
4110
|
+
* Errors:
|
|
4111
|
+
* - INVALID_ARGUMENT: malformed request, or an account named twice.
|
|
4112
|
+
* - RESOURCE_EXHAUSTED: USAGE_LIMIT_REACHED; too many setups are pending.
|
|
4113
|
+
* Complete one or wait until it expires.
|
|
4114
|
+
* - UNAVAILABLE: SERVICE_UNAVAILABLE; retry the request.
|
|
4115
|
+
* - UNAUTHENTICATED: missing or invalid credentials.
|
|
4116
|
+
*
|
|
4117
|
+
* @generated from rpc ai.v1.AssistantService.PrepareAssistantKeys
|
|
4118
|
+
*/
|
|
4119
|
+
prepareAssistantKeys: {
|
|
4120
|
+
methodKind: "unary";
|
|
4121
|
+
input: typeof PrepareAssistantKeysRequestSchema;
|
|
4122
|
+
output: typeof PrepareAssistantKeysResponseSchema;
|
|
4123
|
+
};
|
|
4124
|
+
/**
|
|
4125
|
+
* CompleteAssistantKeys finishes a setup once SetAssistantKeys registered
|
|
4126
|
+
* its public keys: the assistant starts using them, and drops the keys the
|
|
4127
|
+
* registration replaced or left out. Completing a completed setup returns
|
|
4128
|
+
* the keys again.
|
|
4129
|
+
*
|
|
4130
|
+
* Errors:
|
|
4131
|
+
* - INVALID_ARGUMENT: malformed request.
|
|
4132
|
+
* - NOT_FOUND: KEY_SETUP_NOT_FOUND.
|
|
4133
|
+
* - FAILED_PRECONDITION: KEY_SETUP_NOT_REGISTERED; nothing changed.
|
|
4134
|
+
* - UNAVAILABLE: SERVICE_UNAVAILABLE; retry the same request.
|
|
4135
|
+
* - UNAUTHENTICATED: missing or invalid credentials.
|
|
4136
|
+
*
|
|
4137
|
+
* @generated from rpc ai.v1.AssistantService.CompleteAssistantKeys
|
|
4138
|
+
*/
|
|
4139
|
+
completeAssistantKeys: {
|
|
4140
|
+
methodKind: "unary";
|
|
4141
|
+
input: typeof CompleteAssistantKeysRequestSchema;
|
|
4142
|
+
output: typeof CompleteAssistantKeysResponseSchema;
|
|
4143
|
+
};
|
|
4144
|
+
/**
|
|
4145
|
+
* ListAssistantKeys lists the assistant keys the assistant holds for the
|
|
4146
|
+
* caller, at most one per account. An account without one has no account
|
|
4147
|
+
* tools in a conversation. To turn the assistant's access off, revoke the
|
|
4148
|
+
* keys with DeleteAssistantKeys; the assistant then stops using them.
|
|
4149
|
+
*
|
|
4150
|
+
* Errors:
|
|
4151
|
+
* - UNAVAILABLE: SERVICE_UNAVAILABLE; retry later.
|
|
4152
|
+
* - UNAUTHENTICATED: missing or invalid credentials.
|
|
4153
|
+
*
|
|
4154
|
+
* @generated from rpc ai.v1.AssistantService.ListAssistantKeys
|
|
4155
|
+
*/
|
|
4156
|
+
listAssistantKeys: {
|
|
4157
|
+
methodKind: "unary";
|
|
4158
|
+
input: typeof ListAssistantKeysRequestSchema;
|
|
4159
|
+
output: typeof ListAssistantKeysResponseSchema;
|
|
4160
|
+
};
|
|
4161
|
+
}>;
|
|
4162
|
+
//#endregion
|
|
4163
|
+
export { ApprovalDecision, ApprovalDecisionSchema, ApprovalParameter, ApprovalParameterSchema, ApprovalRequested, ApprovalRequestedSchema, ApprovalResolved, ApprovalResolvedSchema, ApprovalStatus, ApprovalStatusSchema, AssistantKey, AssistantKeyAccount, AssistantKeyAccountSchema, AssistantKeySchema, AssistantKeyState, AssistantKeyStateSchema, AssistantService, AttachedExit, AttachedExitSchema, AttachedExits, AttachedExitsSchema, AttachedTrailingStop, AttachedTrailingStopSchema, BalanceHistoryChart, BalanceHistoryChartSchema, BalancesTable, BalancesTableSchema, CancelOrdersPreview, CancelOrdersPreviewSchema, CancelRunRequest, CancelRunRequestSchema, CancelRunResponse, CancelRunResponseSchema, CancelTriggerPreview, CancelTriggerPreviewSchema, CompleteAssistantKeysRequest, CompleteAssistantKeysRequestSchema, CompleteAssistantKeysResponse, CompleteAssistantKeysResponseSchema, Conversation, ConversationSchema, DecideApprovalRequest, DecideApprovalRequestSchema, DecideApprovalResponse, DecideApprovalResponseSchema, DeleteMemoryRequest, DeleteMemoryRequestSchema, DeleteMemoryResponse, DeleteMemoryResponseSchema, DepositAddressCard, DepositAddressCardSchema, Destination, DestinationSchema, DestinationsSuggested, DestinationsSuggestedSchema, DiscardPartial, DiscardPartialSchema, EquityHistoryChart, EquityHistoryChartSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, FailureCategory, FailureCategorySchema, LadderLevel, LadderLevelSchema, LadderPreview, LadderPreviewSchema, LimitOrderPreview, LimitOrderPreviewSchema, ListAssistantKeysRequest, ListAssistantKeysRequestSchema, ListAssistantKeysResponse, ListAssistantKeysResponseSchema, ListConversationsRequest, ListConversationsRequestSchema, ListConversationsResponse, ListConversationsResponseSchema, ListMemoriesRequest, ListMemoriesRequestSchema, ListMemoriesResponse, ListMemoriesResponseSchema, ListMessagesRequest, ListMessagesRequestSchema, ListMessagesResponse, ListMessagesResponseSchema, MarkdownTable, MarkdownTableRow, MarkdownTableRowSchema, MarkdownTableSchema, MarketOrderPreview, MarketOrderPreviewSchema, MemoriesRecalled, MemoriesRecalledSchema, Memory, MemoryKind, MemoryKindSchema, MemorySchema, Message, MessageRole, MessageRoleSchema, MessageSchema, OrderChange, OrderChangePreview, OrderChangePreviewSchema, OrderChangeSchema, OrderPreview, OrderPreviewSchema, OrderPriceField, OrderPriceFieldSchema, OrderToCancel, OrderToCancelSchema, OrdersTable, OrdersTableSchema, PlaceOrdersPreview, PlaceOrdersPreviewSchema, PrepareAssistantKeysRequest, PrepareAssistantKeysRequestSchema, PrepareAssistantKeysResponse, PrepareAssistantKeysResponseSchema, PreparedAssistantKey, PreparedAssistantKeySchema, PriceChart, PriceChartSchema, PriceOffsetDirection, PriceOffsetDirectionSchema, PriceRounding, PriceRoundingSchema, QuoteValue, QuoteValueSchema, RecalledMemory, RecalledMemorySchema, ReferencePrice, ReferencePriceSchema, ReferencePriceSource, ReferencePriceSourceSchema, RelativePrice, RelativePriceSchema, RunCompleted, RunCompletedSchema, RunEvent, RunEventSchema, RunFailed, RunFailedSchema, SendMessageRequest, SendMessageRequestSchema, SendMessageResponse, SendMessageResponseSchema, SkillLoaded, SkillLoadedSchema, StopOrderPreview, StopOrderPreviewSchema, SubagentFinished, SubagentFinishedSchema, SubagentStarted, SubagentStartedSchema, SwapLegPreview, SwapLegPreviewSchema, SwapPreview, SwapPreviewSchema, TextDelta, TextDeltaSchema, ToolFinished, ToolFinishedSchema, ToolStarted, ToolStartedSchema, TrailingStopPreview, TrailingStopPreviewSchema, TransfersTable, TransfersTableSchema, TriggerChangeAction, TriggerChangeActionSchema, TriggerChangePreview, TriggerChangePreviewSchema, TriggerDirection, TriggerDirectionSchema, TriggerSettings, TriggerSettingsSchema, TriggersTable, TriggersTableSchema, TwapPreview, TwapPreviewSchema, UnfilledSlicePolicy, UnfilledSlicePolicySchema, Usage, UsageSchema, View, ViewSchema, WatchRunRequest, WatchRunRequestSchema, WatchRunResponse, WatchRunResponseSchema, assistant_pb_d_exports, file_ai_v1_assistant };
|
|
4164
|
+
//# sourceMappingURL=assistant_pb.d.ts.map
|