Skip to main content

ClientMessage

Enum ClientMessage 

Source
#[non_exhaustive]
pub enum ClientMessage {
Show 65 variants Pair { code: String, client_label: String, client_kind: ClientKind, }, Authenticate { token: String, client_kind: ClientKind, }, ListClients { request_id: String, }, UnpairClient { request_id: String, client_id: String, }, ListSessions { request_id: String, }, ListBotSessions { request_id: String, bot_id: String, }, CreateSession { request_id: String, workspace: PathBuf, bot_id: String, }, CreateWorkspaceDirectory { request_id: String, parent: PathBuf, name: String, }, OpenSession { request_id: String, session_id: String, last_sequence: Option<u64>, }, GetSessionHistory { request_id: String, session_id: String, before_sequence: Option<u64>, }, RenameSession { request_id: String, session_id: String, title: String, }, SetSessionPinned { request_id: String, session_id: String, pinned: bool, }, DeleteSessions { request_id: String, session_ids: Vec<String>, }, CreateSwarm { request_id: String, title: String, leader_bot_id: String, member_bot_ids: Vec<String>, }, AddSwarmMember { request_id: String, swarm_id: String, bot_id: String, }, LeaveSwarm { request_id: String, swarm_id: String, bot_id: String, }, RenameSwarm { request_id: String, swarm_id: String, title: String, }, DisbandSwarm { request_id: String, swarm_id: String, }, PostSwarmMessage { request_id: String, swarm_id: String, text: String, }, Submit { session_id: String, submission: Submission, }, StartRealtimeVoice { request_id: String, session_id: String, offer_sdp: String, }, EndRealtimeVoice { session_id: String, voice_id: String, }, GetContributions { request_id: String, scope: ContributionScope, }, SubmitContribution { request_id: String, scope: ContributionScope, operation: Op, }, BeginSessionFileUpload { request_id: String, session_id: String, name: String, size: u64, media_type: String, }, UploadSessionFileChunk { request_id: String, session_id: String, upload_id: String, offset: u64, data: Vec<u8>, }, FinishSessionFileUpload { request_id: String, session_id: String, upload_id: String, }, DeleteSessionFile { request_id: String, session_id: String, file_id: String, }, ListSessionFiles { request_id: String, session_id: String, }, ReadSessionFile { request_id: String, session_id: String, file_id: String, offset: u64, max_bytes: usize, }, CreateBot { request_id: String, name: String, description: String, }, ListBots { request_id: String, }, UpdateBot { request_id: String, id: String, expected_revision: u64, name: String, description: String, tint: ProviderTint, config: AgentComposition, }, DeleteBot { request_id: String, id: String, expected_revision: u64, }, ConfigureBotDefaults { request_id: String, expected_revision: u64, config: AgentComposition, }, InstallExtension { request_id: String, source: String, reference: Option<String>, subdirectory: Option<String>, }, UpdateExtension { request_id: String, id: String, }, UninstallExtension { request_id: String, id: String, }, TrustExtensionHooks { request_id: String, id: String, expected_digest: String, }, RevokeExtensionHooksTrust { request_id: String, id: String, expected_digest: String, }, ProbeGitCredential { request_id: String, target: String, }, ApproveGitCredential { request_id: String, target: String, username: String, token: String, }, ListSshIdentities { request_id: String, }, GenerateSshIdentity { request_id: String, }, GetGitDiff { request_id: String, session_id: String, scope: GitDiffScope, }, SwitchGitBranch { request_id: String, session_id: String, branch: String, }, ListDirectories { request_id: String, path: PathBuf, include_files: bool, }, ListWorkspaceFiles { request_id: String, session_id: String, scope: WorkspaceFileScope, }, ReadWorkspaceFile { request_id: String, session_id: String, path: String, offset: u64, max_bytes: usize, }, WriteWorkspaceFile { request_id: String, session_id: String, path: String, content: String, }, SetProviderCredential { request_id: String, instance: String, provider: String, api_key: String, }, SetProviderEndpointCredential { request_id: String, instance: String, provider: String, base_url: String, api_key: String, }, RegisterProvider { request_id: String, config: ProviderConfig, label: String, tint: ProviderTint, model_ids: Vec<String>, reasoning_efforts: Vec<String>, }, RemoveProvider { request_id: String, instance: String, }, CreatePairingCode { request_id: String, }, StartProviderLogin { request_id: String, provider: String, }, GetProfile { request_id: String, }, CreateRoutine { request_id: String, bot_id: String, workspace: PathBuf, instructions: String, schedule: RoutineSchedule, ends_at: Option<i64>, }, ListRoutines { request_id: String, bot_id: Option<String>, }, UpdateRoutine { request_id: String, id: String, bot_id: String, workspace: PathBuf, instructions: String, schedule: RoutineSchedule, ends_at: Option<i64>, enabled: bool, }, DeleteRoutine { request_id: String, id: String, }, RunRoutine { request_id: String, id: String, }, ListRoutineHistory { request_id: String, id: Option<String>, }, DeleteRoutineRun { request_id: String, id: String, }, GetRoutineRunPreview { request_id: String, id: String, before_sequence: Option<u64>, },
}
Expand description

Authenticated operations accepted by the gateway.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Pair

Fields

§code: String
§client_label: String
§client_kind: ClientKind
§

Authenticate

Fields

§token: String
§client_kind: ClientKind
§

ListClients

Fields

§request_id: String
§

UnpairClient

Fields

§request_id: String
§client_id: String
§

ListSessions

Fields

§request_id: String
§

ListBotSessions

Fields

§request_id: String
§bot_id: String
§

CreateSession

Fields

§request_id: String
§workspace: PathBuf
§bot_id: String
§

CreateWorkspaceDirectory

Fields

§request_id: String
§parent: PathBuf
§name: String
§

OpenSession

Fields

§request_id: String
§session_id: String
§last_sequence: Option<u64>
§

GetSessionHistory

Fields

§request_id: String
§session_id: String
§before_sequence: Option<u64>
§

RenameSession

Fields

§request_id: String
§session_id: String
§title: String
§

SetSessionPinned

Fields

§request_id: String
§session_id: String
§pinned: bool
§

DeleteSessions

Fields

§request_id: String
§session_ids: Vec<String>
§

CreateSwarm

Fields

§request_id: String
§title: String
§leader_bot_id: String
§member_bot_ids: Vec<String>
§

AddSwarmMember

Fields

§request_id: String
§swarm_id: String
§bot_id: String
§

LeaveSwarm

Fields

§request_id: String
§swarm_id: String
§bot_id: String
§

RenameSwarm

Fields

§request_id: String
§swarm_id: String
§title: String
§

DisbandSwarm

Fields

§request_id: String
§swarm_id: String
§

PostSwarmMessage

Fields

§request_id: String
§swarm_id: String
§text: String
§

Submit

Fields

§session_id: String
§submission: Submission
§

StartRealtimeVoice

Fields

§request_id: String
§session_id: String
§offer_sdp: String
§

EndRealtimeVoice

Fields

§session_id: String
§voice_id: String
§

GetContributions

Fields

§request_id: String
§

SubmitContribution

Fields

§request_id: String
§operation: Op
§

BeginSessionFileUpload

Fields

§request_id: String
§session_id: String
§name: String
§size: u64
§media_type: String
§

UploadSessionFileChunk

Fields

§request_id: String
§session_id: String
§upload_id: String
§offset: u64
§data: Vec<u8>
§

FinishSessionFileUpload

Fields

§request_id: String
§session_id: String
§upload_id: String
§

DeleteSessionFile

Fields

§request_id: String
§session_id: String
§file_id: String
§

ListSessionFiles

Fields

§request_id: String
§session_id: String
§

ReadSessionFile

Fields

§request_id: String
§session_id: String
§file_id: String
§offset: u64
§max_bytes: usize
§

CreateBot

Fields

§request_id: String
§name: String
§description: String
§

ListBots

Fields

§request_id: String
§

UpdateBot

Fields

§request_id: String
§expected_revision: u64
§name: String
§description: String
§

DeleteBot

Fields

§request_id: String
§expected_revision: u64
§

ConfigureBotDefaults

Fields

§request_id: String
§expected_revision: u64
§

InstallExtension

Fields

§request_id: String
§source: String
§reference: Option<String>
§subdirectory: Option<String>
§

UpdateExtension

Fields

§request_id: String
§

UninstallExtension

Fields

§request_id: String
§

TrustExtensionHooks

Fields

§request_id: String
§expected_digest: String
§

RevokeExtensionHooksTrust

Fields

§request_id: String
§expected_digest: String
§

ProbeGitCredential

Fields

§request_id: String
§target: String
§

ApproveGitCredential

Fields

§request_id: String
§target: String
§username: String
§token: String
§

ListSshIdentities

Fields

§request_id: String
§

GenerateSshIdentity

Fields

§request_id: String
§

GetGitDiff

Fields

§request_id: String
§session_id: String
§

SwitchGitBranch

Fields

§request_id: String
§session_id: String
§branch: String
§

ListDirectories

Fields

§request_id: String
§path: PathBuf
§include_files: bool
§

ListWorkspaceFiles

Fields

§request_id: String
§session_id: String
§

ReadWorkspaceFile

Fields

§request_id: String
§session_id: String
§path: String
§offset: u64
§max_bytes: usize
§

WriteWorkspaceFile

Fields

§request_id: String
§session_id: String
§path: String
§content: String
§

SetProviderCredential

Fields

§request_id: String
§instance: String
§provider: String
§api_key: String
§

SetProviderEndpointCredential

Fields

§request_id: String
§instance: String
§provider: String
§base_url: String
§api_key: String
§

RegisterProvider

Fields

§request_id: String
§label: String
§model_ids: Vec<String>
§reasoning_efforts: Vec<String>
§

RemoveProvider

Fields

§request_id: String
§instance: String
§

CreatePairingCode

Fields

§request_id: String
§

StartProviderLogin

Fields

§request_id: String
§provider: String
§

GetProfile

Fields

§request_id: String
§

CreateRoutine

Fields

§request_id: String
§bot_id: String
§workspace: PathBuf
§instructions: String
§ends_at: Option<i64>
§

ListRoutines

Fields

§request_id: String
§bot_id: Option<String>
§

UpdateRoutine

Fields

§request_id: String
§bot_id: String
§workspace: PathBuf
§instructions: String
§ends_at: Option<i64>
§enabled: bool
§

DeleteRoutine

Fields

§request_id: String
§

RunRoutine

Fields

§request_id: String
§

ListRoutineHistory

Fields

§request_id: String
§

DeleteRoutineRun

Fields

§request_id: String
§

GetRoutineRunPreview

Fields

§request_id: String
§before_sequence: Option<u64>

Trait Implementations§

Source§

impl Clone for ClientMessage

Source§

fn clone(&self) -> ClientMessage

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ClientMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ClientMessage

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for ClientMessage

Source§

fn eq(&self, other: &ClientMessage) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ClientMessage

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ClientMessage

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more