pub(all) struct AddMemberRequest {
login : String
}pub(all) enum CodexActivityStatus {
NotLoaded
Idle
Active(Array[CodexActiveFlag])
SystemError
} derive(Eq, Debug)pub(all) struct CodexClientInfo {
name : String
title : String
version : String
}impl ToJson for CodexClientInfopub(all) enum CodexIncoming {
ThreadResult(CodexThreadResult)
ThreadListResult(Array[CodexThreadResult])
ThreadReadResult(CodexThreadResult, Array[CodexReadTurn])
OtherResponse(Json)
TurnStarted(CodexTurnId)
TurnCompleted(CodexTurnId, CodexStatus)
ItemStarted(CodexTurnId, CodexItemId, CodexItemKind, String, String)
ItemCompleted(CodexTurnId, CodexItemId, CodexStatus)
Delta(CodexTurnId, CodexItemId, String, CodexItemKind)
ThreadStatusChanged(CodexThreadId, CodexActivityStatus)
Approval(CodexRequestId, CodexThreadId, CodexTurnId, CodexItemId, CodexApproval)
}impl FromJson for CodexIncomingimpl ToJson for CodexItemIdimpl FromJson for CodexItemId#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn CodexItemId::inner(self : CodexItemId) -> Stringpub(all) enum CodexOutgoing {
Initialize(Int, CodexClientInfo)
ThreadStart(Int, String)
ThreadList(Int, String)
ThreadRead(Int, CodexThreadId, Bool)
ThreadResume(Int, CodexThreadId)
TurnStart(Int, CodexThreadId, String)
TurnInterrupt(Int, CodexThreadId, CodexTurnId)
Initialized
Approval(CodexRequestId, CodexApprovalDecision)
}impl ToJson for CodexOutgoingpub(all) struct CodexReadItem {
id : CodexItemId
kind : CodexItemKind
text : String
command : String
output : String
}impl ToJson for CodexRequestIdimpl FromJson for CodexRequestId#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn CodexRequestId::inner(self : CodexRequestId) -> Jsonimpl ToJson for CodexThreadIdimpl FromJson for CodexThreadId#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn CodexThreadId::inner(self : CodexThreadId) -> Stringpub(all) struct CodexThreadResult {
id : CodexThreadId
preview : String
status : CodexThreadStatus
activity : CodexActivityStatus
} derive(Eq, Debug)impl ToJson for CodexTurnIdimpl FromJson for CodexTurnId#deprecated("Use `struct T(A)` to declare a newtype and use `.0` access the underlying type instead.")
fn CodexTurnId::inner(self : CodexTurnId) -> Stringpub(all) struct CreateGroupRequest {
name : String
}pub(all) struct CreateMachineRequest {
name : String
}pub(all) struct CreateMachineResponse {
token : String
machine_id : Int
}pub(all) struct CreatedGroupResponse {
id : Int
}pub(all) struct DeviceApproveRequest {
code : String
}impl ToJson for DeviceApproveRequestimpl FromJson for DeviceApproveRequestpub(all) struct DeviceAuthorizationRequest {
hostname : String
}pub(all) struct DeviceAuthorizationResponse {
device_code : String
user_code : String
verification_uri : String
verification_uri_complete : String?
expires_in : Int
interval : Int
}pub(all) struct DeviceDenyRequest {
code : String
}impl ToJson for DeviceDenyRequestimpl FromJson for DeviceDenyRequestpub(all) struct DevicePendingResponse {
hostname : String
}impl ToJson for DevicePendingResponseimpl FromJson for DevicePendingResponsepub(all) enum DeviceTokenError {
AuthorizationPending
SlowDown
ExpiredToken
AccessDenied
InvalidRequest
UnsupportedGrantType
Unknown(String)
}impl ToJson for DeviceTokenErrorimpl FromJson for DeviceTokenErrorpub(all) struct DeviceTokenRequest {
grant_type : String
device_code : String
}impl ToJson for DeviceTokenResponseimpl FromJson for DeviceTokenResponsepub(all) enum FsMessage {
Stat(String, String, String)
StatResult(String, String, FileStat)
Readdir(String, String, String)
ReaddirResult(String, String, Array[(String, Int)])
ReadFile(String, String, String)
ReadFileResult(String, String, String)
WriteFile(String, String, String, String, Bool, Bool)
Mkdir(String, String, String)
FsDelete(String, String, String, Bool)
FsRename(String, String, String, String, Bool)
FsOk(String, String)
FsError(String, String, String, String)
} derive(Debug)pub(all) struct GrantAccessRequest {
group_id : Int
}pub(all) struct GroupInfo {
id : Int
name : String
owner_id : Int64
}pub(all) struct GroupMember {
github_id : Int64
login : String
avatar_url : String
}pub(all) struct MachineAccessGroup {
group_id : Int
name : String
}pub(all) enum Message {
Sys(SysMessage)
Fs(FsMessage)
Term(TermMessage)
Codex(String, String)
} derive(Debug)pub(all) enum SysMessage {
Register(UUID, String, String)
Registered(UUID)
RegisterRejected(RegisterRejectReason)
TaskExited(Int)
Connect(UUID)
Connected
NewClient(String)
ClientDisconnected(String)
Error(ErrorCode)
AuthError(String)
}impl ToJson for SysMessageimpl Debug for SysMessageimpl FromJson for SysMessagepub(all) struct TaskEntry {
task_uuid : UUID
machine_id : Int
hostname : String
cwd : String
owner : String
online : Bool
last_seen_at : Int64
}impl ToJson for TermMessageimpl FromJson for TermMessagepub(all) struct TransferGroupRequest {
new_owner_id : Int64
}impl FromJson for TransferGroupRequestpub(all) struct UserInfo {
github_id : Int64
login : String
avatar_url : String
status : UserStatus
is_admin : Bool
}