import { ApprovalDecision, AssistantKey as AssistantKey$1, Conversation, Memory, Message, PrepareAssistantKeysResponse, PreparedAssistantKey as PreparedAssistantKey$1 } from "../../gen/ai/v1/assistant_pb.js"; import * as v from "valibot"; //#region src/services/assistant/assistant.schemas.d.ts declare const SendAssistantMessageInputSchema: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction, v.TransformAction]>, undefined>; /** Message text, plain text or Markdown, 1 to 16000 characters. */ readonly text: v.SchemaWithPipe, v.MinLengthAction, v.MaxLengthAction]>; /** Client-chosen key, unique per caller. Repeat the request unchanged to resolve an unknown outcome. */ readonly idempotencyKey: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; /** * Trading account the run reads and acts on. Omit to answer without account data: the * run then has no account tools. */ readonly subaccountId: v.SchemaWithPipe, v.TrimAction]>, undefined>, v.TransformAction]>; /** Places in the client the run may suggest, at most 100, each id once. */ readonly destinations: v.OptionalSchema, v.RegexAction]>; /** Its name as the client shows it, 1 to 80 characters. */ readonly title: v.SchemaWithPipe, v.MinLengthAction, v.MaxLengthAction]>; /** What the user does there, at most 200 characters. */ readonly description: v.OptionalSchema, v.MaxLengthAction]>, "">; }, undefined>, undefined>, v.MaxLengthAction<{ id: string; title: string; description: string; }[], 100, "At most 100 destinations are allowed.">, v.CheckAction<{ id: string; title: string; description: string; }[], "Destination ids must be distinct.">]>, undefined>; }, undefined>]>; type SendAssistantMessageInput = v.InferInput; declare const AssistantRunIdInputSchema: v.StrictObjectSchema<{ readonly runId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction, v.TransformAction]>; }, undefined>; type AssistantRunIdInput = v.InferInput; declare const WatchAssistantRunInputSchema: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction, v.TransformAction]>; /** Return events after this seq. 0 (default) replays the run; pass the last seq received to resume. */ readonly afterSeq: v.OptionalSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>, 0>; }, undefined>, v.TransformAction<{ runId: bigint; afterSeq: number; }, { runId: bigint; afterSeq: bigint; }>]>; type WatchAssistantRunInput = v.InferInput; declare const DecideAssistantApprovalInputSchema: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction, v.TransformAction]>; readonly decision: v.PicklistSchema; }, undefined>, v.TransformAction<{ approvalId: bigint; decision: "approve" | "reject"; }, { approvalId: bigint; decision: ApprovalDecision.APPROVE | ApprovalDecision.REJECT; }>]>; type DecideAssistantApprovalInput = v.InferInput; declare const ListAssistantConversationsInputSchema: v.StrictObjectSchema<{ /** Page size; omit for the server default. */ limit: v.OptionalSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>, undefined>; /** The previous page's `nextPageToken`. */ pageToken: v.OptionalSchema, v.TrimAction]>, undefined>; }, undefined>; type ListAssistantConversationsInput = v.InferInput; declare const ListAssistantMessagesInputSchema: v.StrictObjectSchema<{ readonly limit: v.OptionalSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>, undefined>; readonly pageToken: v.OptionalSchema, v.TrimAction]>, undefined>; readonly conversationId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction, v.TransformAction]>; }, undefined>; type ListAssistantMessagesInput = v.InferInput; declare const ListAssistantMemoriesInputSchema: v.StrictObjectSchema<{ /** Page size; omit for the server default. */ limit: v.OptionalSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>, undefined>; /** The previous page's `nextPageToken`. */ pageToken: v.OptionalSchema, v.TrimAction]>, undefined>; }, undefined>; type ListAssistantMemoriesInput = v.InferInput; declare const DeleteAssistantMemoryInputSchema: v.StrictObjectSchema<{ readonly memoryId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction, v.TransformAction]>; }, undefined>; type DeleteAssistantMemoryInput = v.InferInput; declare const PrepareAssistantKeysInputSchema: v.SchemaWithPipe, v.TrimAction]>, undefined>, v.TransformAction]>; }, undefined>, undefined>, v.MinLengthAction<{ subaccountId?: bigint | undefined; }[], 1, "At least one account is required.">, v.MaxLengthAction<{ subaccountId?: bigint | undefined; }[], 64, "At most 64 accounts are allowed.">]>; }, undefined>, v.CheckAction<{ accounts: { subaccountId?: bigint | undefined; }[]; }, "Each account may be named only once.">]>; type PrepareAssistantKeysInput = v.InferInput; declare const CompleteAssistantKeysInputSchema: v.StrictObjectSchema<{ readonly setupId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction, v.TransformAction]>; }, undefined>; type CompleteAssistantKeysInput = v.InferInput; declare function formatConversation(c: Conversation): { conversationId: string; /** Empty until a title is available. */ title: string; createdAt: number | undefined; updatedAt: number | undefined; }; type AssistantConversation = ReturnType; declare function formatMessage(m: Message): { messageId: string; role: "unspecified" | "assistant" | "user"; /** Markdown. For an assistant message, its run's final text. */ text: string; createdAt: number | undefined; /** Replay this run with `watchRun` from `afterSeq: 0` to show its tool activity and views. */ runId: string; }; type AssistantMessage = ReturnType; declare function formatMemory(m: Memory): { memoryId: string; text: string; createdAt: number | undefined; /** Omitted when the conversation it was learned in is unknown. */ conversationId: string | undefined; kind: "unspecified" | "fact" | "planning_figure" | "profile"; }; type AssistantMemory = ReturnType; declare function formatAssistantKey(k: AssistantKey$1): { /** Omitted for the main account. */ subaccountId: string | undefined; keyId: string; publicKeyEd25519: Uint8Array; publicKeyHex: string; state: "unspecified" | "active" | "disabled"; }; type AssistantKey = ReturnType; declare function formatPreparedAssistantKey(k: PreparedAssistantKey$1): { /** Omitted for the main account. */ subaccountId: string | undefined; publicKeyEd25519: Uint8Array; publicKeyHex: string; /** Pass unchanged to `apiKeys.setAssistantKeys`. */ registrationProof: Uint8Array; /** Epoch ms; pass unchanged to `apiKeys.setAssistantKeys`. */ registrationDeadline: number | undefined; }; type PreparedAssistantKey = ReturnType; declare function formatPrepareAssistantKeysResult(r: PrepareAssistantKeysResponse): { setupId: string; /** One key per requested account, in request order. */ keys: { /** Omitted for the main account. */ subaccountId: string | undefined; publicKeyEd25519: Uint8Array; publicKeyHex: string; /** Pass unchanged to `apiKeys.setAssistantKeys`. */ registrationProof: Uint8Array; /** Epoch ms; pass unchanged to `apiKeys.setAssistantKeys`. */ registrationDeadline: number | undefined; }[]; /** Epoch ms after which the keys can no longer be registered. */ expiresAt: number | undefined; }; type PrepareAssistantKeysResult = ReturnType; /** `nextPageToken` is empty when no more results exist. */ type ListAssistantConversationsResult = { conversations: AssistantConversation[]; nextPageToken: string; }; type ListAssistantMessagesResult = { messages: AssistantMessage[]; nextPageToken: string; }; type ListAssistantMemoriesResult = { memories: AssistantMemory[]; nextPageToken: string; }; //#endregion export { AssistantConversation, AssistantKey, AssistantMemory, AssistantMessage, AssistantRunIdInput, AssistantRunIdInputSchema, CompleteAssistantKeysInput, CompleteAssistantKeysInputSchema, DecideAssistantApprovalInput, DecideAssistantApprovalInputSchema, DeleteAssistantMemoryInput, DeleteAssistantMemoryInputSchema, ListAssistantConversationsInput, ListAssistantConversationsInputSchema, ListAssistantConversationsResult, ListAssistantMemoriesInput, ListAssistantMemoriesInputSchema, ListAssistantMemoriesResult, ListAssistantMessagesInput, ListAssistantMessagesInputSchema, ListAssistantMessagesResult, PrepareAssistantKeysInput, PrepareAssistantKeysInputSchema, PrepareAssistantKeysResult, PreparedAssistantKey, SendAssistantMessageInput, SendAssistantMessageInputSchema, WatchAssistantRunInput, WatchAssistantRunInputSchema, formatAssistantKey, formatConversation, formatMemory, formatMessage, formatPrepareAssistantKeysResult, formatPreparedAssistantKey }; //# sourceMappingURL=assistant.schemas.d.ts.map