protocol

package
v0.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 26 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	MaxThumbnailEdge  = 512
	MaxThumbnailBytes = 2 << 20
)
View Source
const (
	KnowledgeVisibilityPrivate = ProjectVisibilityPrivate
	KnowledgeVisibilityShared  = ProjectVisibilityShared
)
View Source
const (
	VERSION                   = 2
	MAX_FRAME_BYTES           = 16 * 1024 * 1024
	MAX_FILE_BYTES            = 128 * 1024
	MAX_EDIT_BYTES            = 64 * 1024 * 1024
	MAX_WRITE_BYTES           = 1024 * 1024
	MAX_FILE_LINES            = 2000
	MAX_FIND_MATCHES          = 500
	MAX_DIRECTORY_ENTRIES     = 500
	MAX_SEARCH_MATCHES        = 200
	FILE_TRANSFER_CHUNK_BYTES = 64 * 1024
	FILE_UPLOAD_READY         = 1
	MAX_IMAGE_BYTES           = 5 * 1024 * 1024
	MAX_IMAGE_SIDE            = 1568
	MAX_CHANGES               = 16
	MAX_CHANGE_BYTES          = 2 * MAX_EDIT_BYTES
	MAX_PREVIEW_BYTES         = 32 * 1024
	MAX_GIT_ENTRIES           = 500
	MAX_DIFF_BYTES            = 48 * 1024
	MAX_GIT_COMMITS           = 100
	MAX_GIT_WORKTREES         = 100
	MAX_GIT_LINES             = 500
	MAX_GIT_SHOW_LINES        = 2000
	MAX_GIT_FILE_BYTES        = 32 * 1024 * 1024
)
View Source
const (
	PluginUiMaxEntries    = 32
	PluginUiMaxChoices    = 256
	PluginUiMaxStateBytes = 64 * 1024
)
View Source
const ConfigurationPageBytes = MAX_FRAME_BYTES / 16

ConfigurationPageBytes leaves room for base64 encoding and the command envelope within a normal frame. The snapshot bound accommodates all 4,096 one-MiB record bodies, their metadata and execution credentials.

View Source
const DefaultBillingRateBps uint32 = 10_000

DefaultBillingRateBps is the unadjusted API cost estimate (100%).

View Source
const MaxConfigurationSnapshotBytes = uint64(2 * 4096 * ConfigurationPageBytes)
View Source
const NotificationLimit = 200

NotificationLimit bounds each Node's durable notification inbox.

View Source
const PersonalKVAcknowledgementCategory = "personal_kv_ack"

PersonalKVAcknowledgementCategory uses the configuration page transport and its durable completion receipt without entering the business-effect ledger.

View Source
const PluginDesktopMaxBytes = 256 * 1024
View Source
const PluginDesktopMaxFiles = 128
View Source
const PluginDesktopMaxImageBytes = 8 * 1024 * 1024
View Source
const RequestRetention = 7 * 24 * time.Hour
View Source
const RoleAvatarPrefix = "avatar-"

RoleAvatarPrefix starts a role's or a team's icon that names a generated avatar: the prefix and the seed the Desktop draws the picture from, "avatar-k3f9x2a1". Icons stored before the pictures were generated, such as "avatar-fox", are seeds as well.

View Source
const SSHWindowsDesktopRequired = "" /* 137-byte string literal not displayed */

SSHWindowsDesktopRequired is the unavailable installation fault that controllers present as localized Windows pairing guidance.

Variables

This section is empty.

Functions

func AddUsageGeneration added in v0.2.7

func AddUsageGeneration(total **UsageGeneration, value *UsageGeneration) bool

AddUsageGeneration merges matched samples and reports whether their counters fit.

func CommandKinds

func CommandKinds() []string

func ConnectionSharingPermits added in v0.2.7

func ConnectionSharingPermits(project *ProjectID, sharing *ConnectionSharing) bool

ConnectionSharingPermits checks the explicit sharing of an unbound connection.

func Decode

func Decode(data []byte, target interface{ DecodeJSON(*Decoder) error }) error

Decode decodes data, which must hold exactly one JSON value, into a target whose JSON form is an object.

func DecodeAs

func DecodeAs(tolerance Tolerance, data []byte, target any) error

DecodeAs decodes data, which must hold exactly one JSON value, into what target points to with the given tolerance. The tolerance reaches every nested value of this module's types.

func DecodeObject

func DecodeObject(data []byte, target any, required []string, denyUnknown bool) error

DecodeObject decodes one JSON object into the struct target points to.

func DecodeValue

func DecodeValue(data []byte, target interface{ DecodeJSON(*Decoder) error }) error

DecodeValue is Decode for a target whose JSON form is not an object.

func KnowledgeCommand

func KnowledgeCommand(kind string) bool

KnowledgeCommand identifies the commands served by a Node's knowledge service. It does not include the separate resource directory.

func KnowledgeQueryLocal

func KnowledgeQueryLocal(query KnowledgeQuery, node NodeID) bool

KnowledgeQueryLocal reports whether an explicit query selection is entirely on one Node.

func MarshalUnion

func MarshalUnion(tag, content, kind string, value any, variants map[string]func() any) ([]byte, error)

func QuestionLinkAllowed

func QuestionLinkAllowed(value string) bool

QuestionLinkAllowed reports whether an MCP question may ask the user to open the address: HTTPS, or HTTP to this machine, with a host and no user information. The Node refuses any other link and a controller opens none.

func ResourceCommand

func ResourceCommand(kind string) bool

ResourceCommand identifies knowledge and declared host handler operations supported by the resource channel.

func RoleAvatarSeed

func RoleAvatarSeed(icon string) (string, bool)

RoleAvatarSeed is the seed of a role icon that names a generated avatar: 1 to 32 lowercase ASCII letters and digits after RoleAvatarPrefix.

func ToolContextAvailable added in v0.2.7

func ToolContextAvailable(contexts []PluginConversationResource, project *ProjectID, config SessionConfig) bool

ToolContextAvailable reports whether a declaration matches the conversation's tool contexts. An ordinary conversation has a worktree even without a project.

func ToolErrorMessage added in v0.2.4

func ToolErrorMessage(raw json.RawMessage) string

ToolErrorMessage extracts the readable message of a known tool failure. Callers must establish failure independently of the payload's contents. An empty result leaves the original payload available as the fallback.

func UnmarshalUnion

func UnmarshalUnion(data []byte, tag, content string, variants map[string]func() any, denyUnknown bool) (string, any, error)

UnmarshalUnion decodes one tagged union. An empty tag selects the external representation, a tag with content the adjacent one and a tag alone the internal one. A nil factory marks a unit variant.

func ValidModelInput added in v0.2.4

func ValidModelInput(kind string) bool

ValidModelInput reports whether kind is a models.dev v1 input modality.

func ValidModelOutput added in v0.2.4

func ValidModelOutput(kind string) bool

ValidModelOutput reports whether kind is a supported catalog output modality.

func ValidPluginUiContributions

func ValidPluginUiContributions(declarations []PluginUiContribution) bool

func ValidPluginUiStatusState

func ValidPluginUiStatusState(state PluginUiState, declaration PluginUiContribution) bool

func ValidateKnowledgeExecution

func ValidateKnowledgeExecution(request Request, execution NodeID) error

ValidateKnowledgeExecution confines a scoped operation and all of its explicitly selected collections to the Node that owns the execution.

func ValidatePluginDesktopBundle

func ValidatePluginDesktopBundle(bundle PluginDesktopBundle) error

func ValidatePluginDesktopManifest

func ValidatePluginDesktopManifest(manifest PluginDesktopManifest) error

func ValidateVariantPayload

func ValidateVariantPayload(kind string, value any, factory func() any) error

Types

type ActivityAttention

type ActivityAttention struct {
	Revision uint64 `json:"revision"`
	Unread   bool   `json:"unread"`
}

func DefaultActivityAttention

func DefaultActivityAttention() ActivityAttention

func (*ActivityAttention) DecodeJSON

func (value *ActivityAttention) DecodeJSON(decoder *Decoder) error

func (ActivityAttention) MarshalJSON

func (value ActivityAttention) MarshalJSON() ([]byte, error)

func (*ActivityAttention) UnmarshalJSON

func (value *ActivityAttention) UnmarshalJSON(data []byte) error

type ActivityCatalog

type ActivityCatalog struct {
	Node      NodeID         `json:"node"`
	Cursor    uint64         `json:"cursor"`
	Projects  []Project      `json:"projects"`
	Worktrees []Worktree     `json:"worktrees"`
	Sessions  []Session      `json:"sessions"`
	Terminals []TerminalInfo `json:"terminals"`
}

func DefaultActivityCatalog

func DefaultActivityCatalog() ActivityCatalog

func (ActivityCatalog) MarshalJSON

func (value ActivityCatalog) MarshalJSON() ([]byte, error)

func (*ActivityCatalog) UnmarshalJSON

func (value *ActivityCatalog) UnmarshalJSON(data []byte) error

type ActivityPreview

type ActivityPreview struct {
	Session SessionID `json:"session"`
	Turn    *TurnID   `json:"turn"`
	Text    *string   `json:"text"`
}

func DefaultActivityPreview

func DefaultActivityPreview() ActivityPreview

func (ActivityPreview) MarshalJSON

func (value ActivityPreview) MarshalJSON() ([]byte, error)

func (*ActivityPreview) UnmarshalJSON

func (value *ActivityPreview) UnmarshalJSON(data []byte) error

type ActivitySummary

type ActivitySummary struct {
	Title     string            `json:"title"`
	Attention ActivityAttention `json:"attention"`
	Run       *ConversationRun  `json:"run"`
	Waiting   *ActivityWaiting  `json:"waiting"`
	Queued    uint32            `json:"queued"`
	// Background counts active follow-up work and completions awaiting automatic delivery.
	Background uint32 `json:"background,omitempty"`
}

func DefaultActivitySummary

func DefaultActivitySummary() ActivitySummary

func (*ActivitySummary) DecodeJSON

func (value *ActivitySummary) DecodeJSON(decoder *Decoder) error

func (ActivitySummary) MarshalJSON

func (value ActivitySummary) MarshalJSON() ([]byte, error)

func (*ActivitySummary) UnmarshalJSON

func (value *ActivitySummary) UnmarshalJSON(data []byte) error

type ActivityWaiting

type ActivityWaiting string
const (
	ActivityWaitingApproval ActivityWaiting = "approval"
	ActivityWaitingInput    ActivityWaiting = "input"
)

func (*ActivityWaiting) DecodeJSON

func (value *ActivityWaiting) DecodeJSON(decoder *Decoder) error

func (ActivityWaiting) MarshalJSON

func (value ActivityWaiting) MarshalJSON() ([]byte, error)

func (ActivityWaiting) MarshalText

func (value ActivityWaiting) MarshalText() ([]byte, error)

func (*ActivityWaiting) UnmarshalJSON

func (value *ActivityWaiting) UnmarshalJSON(data []byte) error

func (*ActivityWaiting) UnmarshalText

func (value *ActivityWaiting) UnmarshalText(data []byte) error

type ApprovalID

type ApprovalID [16]byte

func NewApprovalID

func NewApprovalID() ApprovalID

func ParseApprovalID

func ParseApprovalID(value string) (ApprovalID, error)

func (*ApprovalID) DecodeJSON

func (identity *ApprovalID) DecodeJSON(decoder *Decoder) error

func (ApprovalID) MarshalJSON

func (identity ApprovalID) MarshalJSON() ([]byte, error)

func (ApprovalID) MarshalText

func (identity ApprovalID) MarshalText() ([]byte, error)

func (ApprovalID) String

func (identity ApprovalID) String() string

func (*ApprovalID) UnmarshalJSON

func (identity *ApprovalID) UnmarshalJSON(data []byte) error

func (*ApprovalID) UnmarshalText

func (identity *ApprovalID) UnmarshalText(data []byte) error

type ArtifactContent

type ArtifactContent struct {
	Artifact       ArtifactSummary      `json:"artifact"`
	LatestRevision uint32               `json:"latest_revision"`
	Html           string               `json:"html"`
	Warnings       []string             `json:"warnings"`
	View           *ArtifactViewContent `json:"view"`
}

func DefaultArtifactContent

func DefaultArtifactContent() ArtifactContent

func (ArtifactContent) MarshalJSON

func (value ArtifactContent) MarshalJSON() ([]byte, error)

func (*ArtifactContent) UnmarshalJSON

func (value *ArtifactContent) UnmarshalJSON(data []byte) error

type ArtifactID

type ArtifactID [16]byte

func NewArtifactID

func NewArtifactID() ArtifactID

func (*ArtifactID) DecodeJSON

func (identity *ArtifactID) DecodeJSON(decoder *Decoder) error

func (ArtifactID) MarshalJSON

func (identity ArtifactID) MarshalJSON() ([]byte, error)

func (ArtifactID) MarshalText

func (identity ArtifactID) MarshalText() ([]byte, error)

func (ArtifactID) String

func (identity ArtifactID) String() string

func (*ArtifactID) UnmarshalJSON

func (identity *ArtifactID) UnmarshalJSON(data []byte) error

func (*ArtifactID) UnmarshalText

func (identity *ArtifactID) UnmarshalText(data []byte) error

type ArtifactKind

type ArtifactKind string
const (
	ArtifactKindDocument ArtifactKind = "document"
	ArtifactKindPreview  ArtifactKind = "preview"
)

func (ArtifactKind) MarshalJSON

func (value ArtifactKind) MarshalJSON() ([]byte, error)

func (ArtifactKind) MarshalText

func (value ArtifactKind) MarshalText() ([]byte, error)

func (*ArtifactKind) UnmarshalJSON

func (value *ArtifactKind) UnmarshalJSON(data []byte) error

func (*ArtifactKind) UnmarshalText

func (value *ArtifactKind) UnmarshalText(data []byte) error

type ArtifactLibrary

type ArtifactLibrary string
const (
	ArtifactLibraryMermaid ArtifactLibrary = "mermaid"
	ArtifactLibraryEcharts ArtifactLibrary = "echarts"
	ArtifactLibraryMathjax ArtifactLibrary = "mathjax"
)

func (ArtifactLibrary) MarshalJSON

func (value ArtifactLibrary) MarshalJSON() ([]byte, error)

func (ArtifactLibrary) MarshalText

func (value ArtifactLibrary) MarshalText() ([]byte, error)

func (*ArtifactLibrary) UnmarshalJSON

func (value *ArtifactLibrary) UnmarshalJSON(data []byte) error

func (*ArtifactLibrary) UnmarshalText

func (value *ArtifactLibrary) UnmarshalText(data []byte) error

type ArtifactPage

type ArtifactPage struct {
	Items     []ArtifactSummary `json:"items"`
	NextAfter *ArtifactID       `json:"next_after"`
}

func DefaultArtifactPage

func DefaultArtifactPage() ArtifactPage

func (ArtifactPage) MarshalJSON

func (value ArtifactPage) MarshalJSON() ([]byte, error)

func (*ArtifactPage) UnmarshalJSON

func (value *ArtifactPage) UnmarshalJSON(data []byte) error

type ArtifactRevision

type ArtifactRevision struct {
	ID        ArtifactID   `json:"id"`
	Kind      ArtifactKind `json:"kind"`
	Revision  uint32       `json:"revision"`
	Turn      TurnID       `json:"turn"`
	Title     string       `json:"title"`
	Summary   string       `json:"summary"`
	Size      uint64       `json:"size"`
	CreatedAt int64        `json:"created_at"`
}

func DefaultArtifactRevision

func DefaultArtifactRevision() ArtifactRevision

func (ArtifactRevision) MarshalJSON

func (value ArtifactRevision) MarshalJSON() ([]byte, error)

func (*ArtifactRevision) UnmarshalJSON

func (value *ArtifactRevision) UnmarshalJSON(data []byte) error

type ArtifactRevisionPage

type ArtifactRevisionPage struct {
	Items      []ArtifactRevision `json:"items"`
	NextBefore *uint32            `json:"next_before"`
}

func DefaultArtifactRevisionPage

func DefaultArtifactRevisionPage() ArtifactRevisionPage

func (ArtifactRevisionPage) MarshalJSON

func (value ArtifactRevisionPage) MarshalJSON() ([]byte, error)

func (*ArtifactRevisionPage) UnmarshalJSON

func (value *ArtifactRevisionPage) UnmarshalJSON(data []byte) error

type ArtifactSummary

type ArtifactSummary struct {
	ID        ArtifactID      `json:"id"`
	Kind      ArtifactKind    `json:"kind"`
	Session   SessionID       `json:"session"`
	Turn      TurnID          `json:"turn"`
	Package   PluginReference `json:"package"`
	Title     string          `json:"title"`
	Summary   string          `json:"summary"`
	Revision  uint32          `json:"revision"`
	Size      uint64          `json:"size"`
	CreatedAt int64           `json:"created_at"`
	UpdatedAt int64           `json:"updated_at"`
}

func DefaultArtifactSummary

func DefaultArtifactSummary() ArtifactSummary

func (ArtifactSummary) MarshalJSON

func (value ArtifactSummary) MarshalJSON() ([]byte, error)

func (*ArtifactSummary) UnmarshalJSON

func (value *ArtifactSummary) UnmarshalJSON(data []byte) error

type ArtifactView

type ArtifactView struct {
	Template       string            `json:"template"`
	Styles         []string          `json:"styles"`
	Scripts        []string          `json:"scripts"`
	Libraries      []ArtifactLibrary `json:"libraries"`
	AllowedClasses []string          `json:"allowed_classes"`
}

func DefaultArtifactView

func DefaultArtifactView() ArtifactView

func (ArtifactView) MarshalJSON

func (value ArtifactView) MarshalJSON() ([]byte, error)

func (*ArtifactView) UnmarshalJSON

func (value *ArtifactView) UnmarshalJSON(data []byte) error

type ArtifactViewContent

type ArtifactViewContent struct {
	Template  string            `json:"template"`
	Styles    []string          `json:"styles"`
	Scripts   []string          `json:"scripts"`
	Libraries []ArtifactLibrary `json:"libraries"`
}

func DefaultArtifactViewContent

func DefaultArtifactViewContent() ArtifactViewContent

func (ArtifactViewContent) MarshalJSON

func (value ArtifactViewContent) MarshalJSON() ([]byte, error)

func (*ArtifactViewContent) UnmarshalJSON

func (value *ArtifactViewContent) UnmarshalJSON(data []byte) error

type ArtifactWrite

type ArtifactWrite struct {
	ID               *ArtifactID  `json:"id"`
	Kind             ArtifactKind `json:"kind"`
	ExpectedRevision *uint32      `json:"expected_revision"`
	Title            string       `json:"title"`
	Summary          string       `json:"summary"`
	Html             string       `json:"html"`
}

func DefaultArtifactWrite

func DefaultArtifactWrite() ArtifactWrite

func (ArtifactWrite) MarshalJSON

func (value ArtifactWrite) MarshalJSON() ([]byte, error)

func (*ArtifactWrite) UnmarshalJSON

func (value *ArtifactWrite) UnmarshalJSON(data []byte) error

type AssignOrphanUser

type AssignOrphanUser struct {
	Source UserID `json:"source"`
	Target UserID `json:"target"`
}

func (*AssignOrphanUser) UnmarshalJSON

func (value *AssignOrphanUser) UnmarshalJSON(data []byte) error

type Attachment

type Attachment struct {
	ID   AttachmentID   `json:"id"`
	Spec AttachmentSpec `json:"spec"`
}

func DefaultAttachment

func DefaultAttachment() Attachment

func (*Attachment) DecodeJSON

func (value *Attachment) DecodeJSON(decoder *Decoder) error

func (Attachment) MarshalJSON

func (value Attachment) MarshalJSON() ([]byte, error)

func (*Attachment) UnmarshalJSON

func (value *Attachment) UnmarshalJSON(data []byte) error

type AttachmentDownload

type AttachmentDownload struct {
	Stream     StreamID           `json:"stream"`
	Attachment Attachment         `json:"attachment"`
	Thumbnail  *ThumbnailTransfer `json:"thumbnail,omitempty"`
}

func DefaultAttachmentDownload

func DefaultAttachmentDownload() AttachmentDownload

func (AttachmentDownload) MarshalJSON

func (value AttachmentDownload) MarshalJSON() ([]byte, error)

func (*AttachmentDownload) UnmarshalJSON

func (value *AttachmentDownload) UnmarshalJSON(data []byte) error

type AttachmentID

type AttachmentID [16]byte

func NewAttachmentID

func NewAttachmentID() AttachmentID

func ParseAttachmentID

func ParseAttachmentID(value string) (AttachmentID, error)

func (*AttachmentID) DecodeJSON

func (identity *AttachmentID) DecodeJSON(decoder *Decoder) error

func (AttachmentID) MarshalJSON

func (identity AttachmentID) MarshalJSON() ([]byte, error)

func (AttachmentID) MarshalText

func (identity AttachmentID) MarshalText() ([]byte, error)

func (AttachmentID) String

func (identity AttachmentID) String() string

func (*AttachmentID) UnmarshalJSON

func (identity *AttachmentID) UnmarshalJSON(data []byte) error

func (*AttachmentID) UnmarshalText

func (identity *AttachmentID) UnmarshalText(data []byte) error

type AttachmentSpec

type AttachmentSpec struct {
	// A zero Worktree stages a private controller attachment before the first turn.
	Worktree  WorktreeID `json:"worktree"`
	Name      string     `json:"name"`
	MediaType string     `json:"media_type"`
	Size      uint64     `json:"size"`
	Revision  string     `json:"revision"`
}

func DefaultAttachmentSpec

func DefaultAttachmentSpec() AttachmentSpec

func (AttachmentSpec) MarshalJSON

func (value AttachmentSpec) MarshalJSON() ([]byte, error)

func (*AttachmentSpec) UnmarshalJSON

func (value *AttachmentSpec) UnmarshalJSON(data []byte) error

type AttachmentUpload

type AttachmentUpload struct {
	Stream StreamID       `json:"stream"`
	Spec   AttachmentSpec `json:"spec"`
}

func DefaultAttachmentUpload

func DefaultAttachmentUpload() AttachmentUpload

func (AttachmentUpload) MarshalJSON

func (value AttachmentUpload) MarshalJSON() ([]byte, error)

func (*AttachmentUpload) UnmarshalJSON

func (value *AttachmentUpload) UnmarshalJSON(data []byte) error

type Authentication

type Authentication string
const (
	AuthenticationApiKey       Authentication = "api_key"
	AuthenticationChatGpt      Authentication = "chat_gpt"
	AuthenticationChatGptOAuth Authentication = "chat_gpt_oauth"
	AuthenticationClaudeOAuth  Authentication = "claude_oauth"
	AuthenticationCopilot      Authentication = "copilot"
	AuthenticationPlugin       Authentication = "plugin"
)

func (Authentication) MarshalJSON

func (value Authentication) MarshalJSON() ([]byte, error)

func (Authentication) MarshalText

func (value Authentication) MarshalText() ([]byte, error)

func (*Authentication) UnmarshalJSON

func (value *Authentication) UnmarshalJSON(data []byte) error

func (*Authentication) UnmarshalText

func (value *Authentication) UnmarshalText(data []byte) error

type BackupDestination

type BackupDestination struct {
	Kind     BackupKind `json:"kind"`
	Endpoint string     `json:"endpoint"`
	Root     string     `json:"root"`
	Bucket   string     `json:"bucket"`
	Region   string     `json:"region"`
}

func DefaultBackupDestination

func DefaultBackupDestination() BackupDestination

func (BackupDestination) MarshalJSON

func (value BackupDestination) MarshalJSON() ([]byte, error)

func (*BackupDestination) UnmarshalJSON

func (value *BackupDestination) UnmarshalJSON(data []byte) error

type BackupDownload

type BackupDownload struct {
	Stream   StreamID     `json:"stream"`
	Record   BackupRecord `json:"record"`
	Size     uint64       `json:"size"`
	Revision string       `json:"revision"`
}

func DefaultBackupDownload

func DefaultBackupDownload() BackupDownload

func (BackupDownload) MarshalJSON

func (value BackupDownload) MarshalJSON() ([]byte, error)

func (*BackupDownload) UnmarshalJSON

func (value *BackupDownload) UnmarshalJSON(data []byte) error

type BackupKind

type BackupKind string
const (
	BackupKindWebdav BackupKind = "webdav"
	BackupKindS3     BackupKind = "s3"
)

func (BackupKind) MarshalJSON

func (value BackupKind) MarshalJSON() ([]byte, error)

func (BackupKind) MarshalText

func (value BackupKind) MarshalText() ([]byte, error)

func (*BackupKind) UnmarshalJSON

func (value *BackupKind) UnmarshalJSON(data []byte) error

func (*BackupKind) UnmarshalText

func (value *BackupKind) UnmarshalText(data []byte) error

type BackupLocal

type BackupLocal struct {
	Directory string `json:"directory"`
	Enabled   bool   `json:"enabled"`
}

func DefaultBackupLocal

func DefaultBackupLocal() BackupLocal

func (BackupLocal) MarshalJSON

func (value BackupLocal) MarshalJSON() ([]byte, error)

func (*BackupLocal) UnmarshalJSON

func (value *BackupLocal) UnmarshalJSON(data []byte) error

type BackupLocation

type BackupLocation string
const (
	BackupLocationLocal  BackupLocation = "local"
	BackupLocationOnline BackupLocation = "online"
)

func (BackupLocation) MarshalJSON

func (value BackupLocation) MarshalJSON() ([]byte, error)

func (BackupLocation) MarshalText

func (value BackupLocation) MarshalText() ([]byte, error)

func (*BackupLocation) UnmarshalJSON

func (value *BackupLocation) UnmarshalJSON(data []byte) error

func (*BackupLocation) UnmarshalText

func (value *BackupLocation) UnmarshalText(data []byte) error

type BackupLocations

type BackupLocations struct {
	Local  bool `json:"local"`
	Online bool `json:"online"`
}

func DefaultBackupLocations

func DefaultBackupLocations() BackupLocations

func (BackupLocations) MarshalJSON

func (value BackupLocations) MarshalJSON() ([]byte, error)

func (*BackupLocations) UnmarshalJSON

func (value *BackupLocations) UnmarshalJSON(data []byte) error

type BackupOutcome

type BackupOutcome struct {
	FinishedMs uint64        `json:"finished_ms"`
	Error      *ErrorCode    `json:"error,omitempty"`
	Reason     string        `json:"reason,omitempty"`
	Skipped    uint32        `json:"skipped,omitempty"`
	Details    *FaultDetails `json:"details,omitempty"`
}

BackupOutcome is how one backup ended. Error is absent after a success; Reason is the failure's message; Skipped counts the content left out.

func DefaultBackupOutcome

func DefaultBackupOutcome() BackupOutcome

func (BackupOutcome) MarshalJSON

func (value BackupOutcome) MarshalJSON() ([]byte, error)

func (*BackupOutcome) UnmarshalJSON

func (value *BackupOutcome) UnmarshalJSON(data []byte) error

type BackupPage

type BackupPage struct {
	Records   []BackupRecord             `json:"records"`
	Partial   bool                       `json:"partial"`
	Locations map[string]BackupLocations `json:"locations,omitempty"`
}

func DefaultBackupPage

func DefaultBackupPage() BackupPage

func (BackupPage) MarshalJSON

func (value BackupPage) MarshalJSON() ([]byte, error)

func (*BackupPage) UnmarshalJSON

func (value *BackupPage) UnmarshalJSON(data []byte) error

type BackupRecord

type BackupRecord struct {
	ID        string `json:"id"`
	Node      NodeID `json:"node"`
	CreatedMs uint64 `json:"created_ms"`
	SizeBytes uint64 `json:"size_bytes"`
	Files     uint32 `json:"files"`
	Sha256    string `json:"sha256"`
	// Skipped counts the content the backup left out.
	Skipped uint32 `json:"skipped,omitempty"`
}

func DefaultBackupRecord

func DefaultBackupRecord() BackupRecord

func (BackupRecord) MarshalJSON

func (value BackupRecord) MarshalJSON() ([]byte, error)

func (*BackupRecord) UnmarshalJSON

func (value *BackupRecord) UnmarshalJSON(data []byte) error

type BackupSchedule

type BackupSchedule struct {
	Enabled  bool   `json:"enabled"`
	Timezone string `json:"timezone"`
	Hour     uint8  `json:"hour"`
	Minute   uint8  `json:"minute"`
}

func DefaultBackupSchedule

func DefaultBackupSchedule() BackupSchedule

func (BackupSchedule) MarshalJSON

func (value BackupSchedule) MarshalJSON() ([]byte, error)

func (*BackupSchedule) UnmarshalJSON

func (value *BackupSchedule) UnmarshalJSON(data []byte) error

type BackupSettings

type BackupSettings struct {
	Revision              uint64             `json:"revision"`
	Destination           *BackupDestination `json:"destination"`
	CredentialsConfigured bool               `json:"credentials_configured"`
	PassphraseConfigured  bool               `json:"passphrase_configured"`
	Local                 *BackupLocal       `json:"local,omitempty"`
	OnlineEnabled         bool               `json:"online_enabled"`
	Schedule              *BackupSchedule    `json:"schedule,omitempty"`
	// Keep is how many of this Node's newest backups each location retains
	// after a backup; zero keeps all.
	Keep uint32 `json:"keep,omitempty"`
	// Last is the outcome of the most recent backup. The Node owns it: a
	// saved value is ignored.
	Last *BackupOutcome `json:"last,omitempty"`
}

func DefaultBackupSettings

func DefaultBackupSettings() BackupSettings

func (BackupSettings) MarshalJSON

func (value BackupSettings) MarshalJSON() ([]byte, error)

func (*BackupSettings) UnmarshalJSON

func (value *BackupSettings) UnmarshalJSON(data []byte) error

type BackupUpdate

type BackupUpdate struct {
	Settings     BackupSettings             `json:"settings"`
	Identity     PluginSettingsSecretUpdate `json:"identity"`
	Secret       PluginSettingsSecretUpdate `json:"secret"`
	SessionToken PluginSettingsSecretUpdate `json:"session_token"`
	Passphrase   PluginSettingsSecretUpdate `json:"passphrase"`
}

func DefaultBackupUpdate

func DefaultBackupUpdate() BackupUpdate

func (BackupUpdate) MarshalJSON

func (value BackupUpdate) MarshalJSON() ([]byte, error)

func (*BackupUpdate) UnmarshalJSON

func (value *BackupUpdate) UnmarshalJSON(data []byte) error

type BackupUpload

type BackupUpload struct {
	Stream   StreamID `json:"stream"`
	Size     uint64   `json:"size"`
	Revision string   `json:"revision"`
}

func DefaultBackupUpload

func DefaultBackupUpload() BackupUpload

func (BackupUpload) MarshalJSON

func (value BackupUpload) MarshalJSON() ([]byte, error)

func (*BackupUpload) UnmarshalJSON

func (value *BackupUpload) UnmarshalJSON(data []byte) error

type BrowserAction

type BrowserAction struct {
	Kind string
	Data any
}

func (BrowserAction) MarshalJSON

func (value BrowserAction) MarshalJSON() ([]byte, error)

func (*BrowserAction) UnmarshalJSON

func (value *BrowserAction) UnmarshalJSON(data []byte) error

type BrowserActionBackPayload

type BrowserActionBackPayload struct {
	Tab uint64 `json:"tab"`
}

func DefaultBrowserActionBackPayload

func DefaultBrowserActionBackPayload() BrowserActionBackPayload

func (BrowserActionBackPayload) MarshalJSON

func (value BrowserActionBackPayload) MarshalJSON() ([]byte, error)

func (*BrowserActionBackPayload) UnmarshalJSON

func (value *BrowserActionBackPayload) UnmarshalJSON(data []byte) error

type BrowserActionClickPayload

type BrowserActionClickPayload struct {
	Tab      uint64 `json:"tab"`
	Snapshot string `json:"snapshot"`
	Element  uint64 `json:"element"`
}

func DefaultBrowserActionClickPayload

func DefaultBrowserActionClickPayload() BrowserActionClickPayload

func (BrowserActionClickPayload) MarshalJSON

func (value BrowserActionClickPayload) MarshalJSON() ([]byte, error)

func (*BrowserActionClickPayload) UnmarshalJSON

func (value *BrowserActionClickPayload) UnmarshalJSON(data []byte) error

type BrowserActionClosePayload

type BrowserActionClosePayload struct {
	Tab uint64 `json:"tab"`
}

func DefaultBrowserActionClosePayload

func DefaultBrowserActionClosePayload() BrowserActionClosePayload

func (BrowserActionClosePayload) MarshalJSON

func (value BrowserActionClosePayload) MarshalJSON() ([]byte, error)

func (*BrowserActionClosePayload) UnmarshalJSON

func (value *BrowserActionClosePayload) UnmarshalJSON(data []byte) error

type BrowserActionFocusPayload

type BrowserActionFocusPayload struct {
	Tab uint64 `json:"tab"`
}

func DefaultBrowserActionFocusPayload

func DefaultBrowserActionFocusPayload() BrowserActionFocusPayload

func (BrowserActionFocusPayload) MarshalJSON

func (value BrowserActionFocusPayload) MarshalJSON() ([]byte, error)

func (*BrowserActionFocusPayload) UnmarshalJSON

func (value *BrowserActionFocusPayload) UnmarshalJSON(data []byte) error

type BrowserActionForwardPayload

type BrowserActionForwardPayload struct {
	Tab uint64 `json:"tab"`
}

func DefaultBrowserActionForwardPayload

func DefaultBrowserActionForwardPayload() BrowserActionForwardPayload

func (BrowserActionForwardPayload) MarshalJSON

func (value BrowserActionForwardPayload) MarshalJSON() ([]byte, error)

func (*BrowserActionForwardPayload) UnmarshalJSON

func (value *BrowserActionForwardPayload) UnmarshalJSON(data []byte) error

type BrowserActionFramePayload

type BrowserActionFramePayload struct {
	Tab      uint64  `json:"tab"`
	Snapshot string  `json:"snapshot"`
	Element  *uint64 `json:"element"`
}

func DefaultBrowserActionFramePayload

func DefaultBrowserActionFramePayload() BrowserActionFramePayload

func (BrowserActionFramePayload) MarshalJSON

func (value BrowserActionFramePayload) MarshalJSON() ([]byte, error)

func (*BrowserActionFramePayload) UnmarshalJSON

func (value *BrowserActionFramePayload) UnmarshalJSON(data []byte) error

type BrowserActionHoverPayload

type BrowserActionHoverPayload struct {
	Tab      uint64 `json:"tab"`
	Snapshot string `json:"snapshot"`
	Element  uint64 `json:"element"`
}

func DefaultBrowserActionHoverPayload

func DefaultBrowserActionHoverPayload() BrowserActionHoverPayload

func (BrowserActionHoverPayload) MarshalJSON

func (value BrowserActionHoverPayload) MarshalJSON() ([]byte, error)

func (*BrowserActionHoverPayload) UnmarshalJSON

func (value *BrowserActionHoverPayload) UnmarshalJSON(data []byte) error

type BrowserActionInputPayload

type BrowserActionInputPayload struct {
	Tab      uint64 `json:"tab"`
	Snapshot string `json:"snapshot"`
	Element  uint64 `json:"element"`
	Text     string `json:"text"`
}

func DefaultBrowserActionInputPayload

func DefaultBrowserActionInputPayload() BrowserActionInputPayload

func (BrowserActionInputPayload) MarshalJSON

func (value BrowserActionInputPayload) MarshalJSON() ([]byte, error)

func (*BrowserActionInputPayload) UnmarshalJSON

func (value *BrowserActionInputPayload) UnmarshalJSON(data []byte) error

type BrowserActionKeyPayload

type BrowserActionKeyPayload struct {
	Tab      uint64     `json:"tab"`
	Snapshot string     `json:"snapshot"`
	Element  uint64     `json:"element"`
	Key      BrowserKey `json:"key"`
}

func DefaultBrowserActionKeyPayload

func DefaultBrowserActionKeyPayload() BrowserActionKeyPayload

func (BrowserActionKeyPayload) MarshalJSON

func (value BrowserActionKeyPayload) MarshalJSON() ([]byte, error)

func (*BrowserActionKeyPayload) UnmarshalJSON

func (value *BrowserActionKeyPayload) UnmarshalJSON(data []byte) error

type BrowserActionNavigatePayload

type BrowserActionNavigatePayload struct {
	Url        string  `json:"url"`
	Tab        *uint64 `json:"tab"`
	Background bool    `json:"background"`
}

func DefaultBrowserActionNavigatePayload

func DefaultBrowserActionNavigatePayload() BrowserActionNavigatePayload

func (BrowserActionNavigatePayload) MarshalJSON

func (value BrowserActionNavigatePayload) MarshalJSON() ([]byte, error)

func (*BrowserActionNavigatePayload) UnmarshalJSON

func (value *BrowserActionNavigatePayload) UnmarshalJSON(data []byte) error

type BrowserActionOpenPayload

type BrowserActionOpenPayload struct {
	Url        string `json:"url"`
	Background bool   `json:"background"`
}

func DefaultBrowserActionOpenPayload

func DefaultBrowserActionOpenPayload() BrowserActionOpenPayload

func (BrowserActionOpenPayload) MarshalJSON

func (value BrowserActionOpenPayload) MarshalJSON() ([]byte, error)

func (*BrowserActionOpenPayload) UnmarshalJSON

func (value *BrowserActionOpenPayload) UnmarshalJSON(data []byte) error

type BrowserActionReadPayload

type BrowserActionReadPayload struct {
	Tab *uint64 `json:"tab"`
}

func DefaultBrowserActionReadPayload

func DefaultBrowserActionReadPayload() BrowserActionReadPayload

func (BrowserActionReadPayload) MarshalJSON

func (value BrowserActionReadPayload) MarshalJSON() ([]byte, error)

func (*BrowserActionReadPayload) UnmarshalJSON

func (value *BrowserActionReadPayload) UnmarshalJSON(data []byte) error

type BrowserActionRefreshPayload

type BrowserActionRefreshPayload struct {
	Tab uint64 `json:"tab"`
}

func DefaultBrowserActionRefreshPayload

func DefaultBrowserActionRefreshPayload() BrowserActionRefreshPayload

func (BrowserActionRefreshPayload) MarshalJSON

func (value BrowserActionRefreshPayload) MarshalJSON() ([]byte, error)

func (*BrowserActionRefreshPayload) UnmarshalJSON

func (value *BrowserActionRefreshPayload) UnmarshalJSON(data []byte) error

type BrowserActionScreenshotPayload

type BrowserActionScreenshotPayload struct {
	Tab    uint64         `json:"tab"`
	Target *BrowserTarget `json:"target,omitempty"`
	Scale  BrowserScale   `json:"scale"`
	Format BrowserFormat  `json:"format"`
	Save   bool           `json:"save"`
}

func DefaultBrowserActionScreenshotPayload

func DefaultBrowserActionScreenshotPayload() BrowserActionScreenshotPayload

func (BrowserActionScreenshotPayload) MarshalJSON

func (value BrowserActionScreenshotPayload) MarshalJSON() ([]byte, error)

func (*BrowserActionScreenshotPayload) UnmarshalJSON

func (value *BrowserActionScreenshotPayload) UnmarshalJSON(data []byte) error

type BrowserActionScrollPayload

type BrowserActionScrollPayload struct {
	Tab       uint64           `json:"tab"`
	Direction BrowserDirection `json:"direction"`
}

func DefaultBrowserActionScrollPayload

func DefaultBrowserActionScrollPayload() BrowserActionScrollPayload

func (BrowserActionScrollPayload) MarshalJSON

func (value BrowserActionScrollPayload) MarshalJSON() ([]byte, error)

func (*BrowserActionScrollPayload) UnmarshalJSON

func (value *BrowserActionScrollPayload) UnmarshalJSON(data []byte) error

type BrowserActionSelectPayload

type BrowserActionSelectPayload struct {
	Tab      uint64 `json:"tab"`
	Snapshot string `json:"snapshot"`
	Element  uint64 `json:"element"`
	Value    string `json:"value"`
}

func DefaultBrowserActionSelectPayload

func DefaultBrowserActionSelectPayload() BrowserActionSelectPayload

func (BrowserActionSelectPayload) MarshalJSON

func (value BrowserActionSelectPayload) MarshalJSON() ([]byte, error)

func (*BrowserActionSelectPayload) UnmarshalJSON

func (value *BrowserActionSelectPayload) UnmarshalJSON(data []byte) error

type BrowserActionWaitPayload

type BrowserActionWaitPayload struct {
	Tab       uint64           `json:"tab"`
	Condition BrowserCondition `json:"condition"`
	TimeoutMs uint32           `json:"timeout_ms"`
}

func DefaultBrowserActionWaitPayload

func DefaultBrowserActionWaitPayload() BrowserActionWaitPayload

func (BrowserActionWaitPayload) MarshalJSON

func (value BrowserActionWaitPayload) MarshalJSON() ([]byte, error)

func (*BrowserActionWaitPayload) UnmarshalJSON

func (value *BrowserActionWaitPayload) UnmarshalJSON(data []byte) error

type BrowserCall

type BrowserCall struct {
	ID          RequestID     `json:"id"`
	Session     SessionID     `json:"session"`
	Action      BrowserAction `json:"action"`
	ExpiresAtMs uint64        `json:"expires_at_ms"`
}

func DefaultBrowserCall

func DefaultBrowserCall() BrowserCall

func (BrowserCall) MarshalJSON

func (value BrowserCall) MarshalJSON() ([]byte, error)

func (*BrowserCall) UnmarshalJSON

func (value *BrowserCall) UnmarshalJSON(data []byte) error

type BrowserCondition

type BrowserCondition struct {
	Kind string
	Data any
}

func (BrowserCondition) MarshalJSON

func (value BrowserCondition) MarshalJSON() ([]byte, error)

func (*BrowserCondition) UnmarshalJSON

func (value *BrowserCondition) UnmarshalJSON(data []byte) error

type BrowserConditionHiddenPayload

type BrowserConditionHiddenPayload struct {
	Selector string `json:"selector"`
}

func DefaultBrowserConditionHiddenPayload

func DefaultBrowserConditionHiddenPayload() BrowserConditionHiddenPayload

func (BrowserConditionHiddenPayload) MarshalJSON

func (value BrowserConditionHiddenPayload) MarshalJSON() ([]byte, error)

func (*BrowserConditionHiddenPayload) UnmarshalJSON

func (value *BrowserConditionHiddenPayload) UnmarshalJSON(data []byte) error

type BrowserConditionTextPayload

type BrowserConditionTextPayload struct {
	Text string `json:"text"`
}

func DefaultBrowserConditionTextPayload

func DefaultBrowserConditionTextPayload() BrowserConditionTextPayload

func (BrowserConditionTextPayload) MarshalJSON

func (value BrowserConditionTextPayload) MarshalJSON() ([]byte, error)

func (*BrowserConditionTextPayload) UnmarshalJSON

func (value *BrowserConditionTextPayload) UnmarshalJSON(data []byte) error

type BrowserConditionVisiblePayload

type BrowserConditionVisiblePayload struct {
	Selector string `json:"selector"`
}

func DefaultBrowserConditionVisiblePayload

func DefaultBrowserConditionVisiblePayload() BrowserConditionVisiblePayload

func (BrowserConditionVisiblePayload) MarshalJSON

func (value BrowserConditionVisiblePayload) MarshalJSON() ([]byte, error)

func (*BrowserConditionVisiblePayload) UnmarshalJSON

func (value *BrowserConditionVisiblePayload) UnmarshalJSON(data []byte) error

type BrowserDirection

type BrowserDirection string
const (
	BrowserDirectionUp   BrowserDirection = "up"
	BrowserDirectionDown BrowserDirection = "down"
)

func (BrowserDirection) MarshalJSON

func (value BrowserDirection) MarshalJSON() ([]byte, error)

func (BrowserDirection) MarshalText

func (value BrowserDirection) MarshalText() ([]byte, error)

func (*BrowserDirection) UnmarshalJSON

func (value *BrowserDirection) UnmarshalJSON(data []byte) error

func (*BrowserDirection) UnmarshalText

func (value *BrowserDirection) UnmarshalText(data []byte) error

type BrowserFormat

type BrowserFormat string
const (
	BrowserFormatJpeg BrowserFormat = "jpeg"
	BrowserFormatPng  BrowserFormat = "png"
)

func (BrowserFormat) MarshalJSON

func (value BrowserFormat) MarshalJSON() ([]byte, error)

func (BrowserFormat) MarshalText

func (value BrowserFormat) MarshalText() ([]byte, error)

func (*BrowserFormat) UnmarshalJSON

func (value *BrowserFormat) UnmarshalJSON(data []byte) error

func (*BrowserFormat) UnmarshalText

func (value *BrowserFormat) UnmarshalText(data []byte) error

type BrowserKey

type BrowserKey string
const (
	BrowserKeyEnter      BrowserKey = "Enter"
	BrowserKeyEscape     BrowserKey = "Escape"
	BrowserKeyTab        BrowserKey = "Tab"
	BrowserKeyBackspace  BrowserKey = "Backspace"
	BrowserKeyArrowUp    BrowserKey = "ArrowUp"
	BrowserKeyArrowDown  BrowserKey = "ArrowDown"
	BrowserKeyArrowLeft  BrowserKey = "ArrowLeft"
	BrowserKeyArrowRight BrowserKey = "ArrowRight"
)

func (BrowserKey) MarshalJSON

func (value BrowserKey) MarshalJSON() ([]byte, error)

func (BrowserKey) MarshalText

func (value BrowserKey) MarshalText() ([]byte, error)

func (*BrowserKey) UnmarshalJSON

func (value *BrowserKey) UnmarshalJSON(data []byte) error

func (*BrowserKey) UnmarshalText

func (value *BrowserKey) UnmarshalText(data []byte) error

type BrowserResult

type BrowserResult = Result[json.RawMessage, Fault]

type BrowserScale

type BrowserScale string
const (
	BrowserScaleCss    BrowserScale = "css"
	BrowserScaleDevice BrowserScale = "device"
)

func (BrowserScale) MarshalJSON

func (value BrowserScale) MarshalJSON() ([]byte, error)

func (BrowserScale) MarshalText

func (value BrowserScale) MarshalText() ([]byte, error)

func (*BrowserScale) UnmarshalJSON

func (value *BrowserScale) UnmarshalJSON(data []byte) error

func (*BrowserScale) UnmarshalText

func (value *BrowserScale) UnmarshalText(data []byte) error

type BrowserTarget

type BrowserTarget struct {
	Kind string
	Data any
}

func (BrowserTarget) MarshalJSON

func (value BrowserTarget) MarshalJSON() ([]byte, error)

func (*BrowserTarget) UnmarshalJSON

func (value *BrowserTarget) UnmarshalJSON(data []byte) error

type BrowserTargetElementPayload

type BrowserTargetElementPayload struct {
	Snapshot string `json:"snapshot"`
	Element  uint64 `json:"element"`
}

func DefaultBrowserTargetElementPayload

func DefaultBrowserTargetElementPayload() BrowserTargetElementPayload

func (BrowserTargetElementPayload) MarshalJSON

func (value BrowserTargetElementPayload) MarshalJSON() ([]byte, error)

func (*BrowserTargetElementPayload) UnmarshalJSON

func (value *BrowserTargetElementPayload) UnmarshalJSON(data []byte) error

type BrowserTargetRectPayload

type BrowserTargetRectPayload struct {
	X      uint32 `json:"x"`
	Y      uint32 `json:"y"`
	Width  uint32 `json:"width"`
	Height uint32 `json:"height"`
}

func DefaultBrowserTargetRectPayload

func DefaultBrowserTargetRectPayload() BrowserTargetRectPayload

func (BrowserTargetRectPayload) MarshalJSON

func (value BrowserTargetRectPayload) MarshalJSON() ([]byte, error)

func (*BrowserTargetRectPayload) UnmarshalJSON

func (value *BrowserTargetRectPayload) UnmarshalJSON(data []byte) error

type BrowserTargetSelectorPayload

type BrowserTargetSelectorPayload struct {
	Selector string `json:"selector"`
}

func DefaultBrowserTargetSelectorPayload

func DefaultBrowserTargetSelectorPayload() BrowserTargetSelectorPayload

func (BrowserTargetSelectorPayload) MarshalJSON

func (value BrowserTargetSelectorPayload) MarshalJSON() ([]byte, error)

func (*BrowserTargetSelectorPayload) UnmarshalJSON

func (value *BrowserTargetSelectorPayload) UnmarshalJSON(data []byte) error

type Bytes

type Bytes []byte

func (Bytes) MarshalJSON

func (value Bytes) MarshalJSON() ([]byte, error)

func (*Bytes) UnmarshalJSON

func (value *Bytes) UnmarshalJSON(data []byte) error

type CapturedModelCredential

type CapturedModelCredential struct {
	ID      CredentialID `json:"id"`
	Waiting bool         `json:"waiting,omitempty"`
}

CapturedModelCredential identifies a historical controller credential still needed by an admitted turn. Waiting refers to its existing login wait.

type ChangeKind

type ChangeKind string
const (
	ChangeKindAdded    ChangeKind = "added"
	ChangeKindModified ChangeKind = "modified"
	ChangeKindRenamed  ChangeKind = "renamed"
	ChangeKindDeleted  ChangeKind = "deleted"
)

func (ChangeKind) MarshalJSON

func (value ChangeKind) MarshalJSON() ([]byte, error)

func (ChangeKind) MarshalText

func (value ChangeKind) MarshalText() ([]byte, error)

func (*ChangeKind) UnmarshalJSON

func (value *ChangeKind) UnmarshalJSON(data []byte) error

func (*ChangeKind) UnmarshalText

func (value *ChangeKind) UnmarshalText(data []byte) error

type ChangePreview

type ChangePreview struct {
	Files []PreviewFile `json:"files"`
}

func DefaultChangePreview

func DefaultChangePreview() ChangePreview

func (ChangePreview) MarshalJSON

func (value ChangePreview) MarshalJSON() ([]byte, error)

func (*ChangePreview) UnmarshalJSON

func (value *ChangePreview) UnmarshalJSON(data []byte) error

type ChangeStatus

type ChangeStatus string
const (
	ChangeStatusApplied      ChangeStatus = "applied"
	ChangeStatusFailed       ChangeStatus = "failed"
	ChangeStatusUnknown      ChangeStatus = "unknown"
	ChangeStatusNotAttempted ChangeStatus = "not_attempted"
)

func (ChangeStatus) MarshalJSON

func (value ChangeStatus) MarshalJSON() ([]byte, error)

func (ChangeStatus) MarshalText

func (value ChangeStatus) MarshalText() ([]byte, error)

func (*ChangeStatus) UnmarshalJSON

func (value *ChangeStatus) UnmarshalJSON(data []byte) error

func (*ChangeStatus) UnmarshalText

func (value *ChangeStatus) UnmarshalText(data []byte) error

type ChangedFile

type ChangedFile struct {
	Path        string       `json:"path"`
	Destination *string      `json:"destination,omitempty"`
	Kind        ChangeKind   `json:"kind"`
	Status      ChangeStatus `json:"status"`
	Revision    *string      `json:"revision,omitempty"`
	Size        *uint64      `json:"size,omitempty"`
	Excerpt     *FileExcerpt `json:"excerpt,omitempty"`
	Error       *Fault       `json:"error,omitempty"`
}

func DefaultChangedFile

func DefaultChangedFile() ChangedFile

func (ChangedFile) MarshalJSON

func (value ChangedFile) MarshalJSON() ([]byte, error)

func (*ChangedFile) UnmarshalJSON

func (value *ChangedFile) UnmarshalJSON(data []byte) error

type ChangesStatus

type ChangesStatus string
const (
	ChangesStatusApplied  ChangesStatus = "applied"
	ChangesStatusPartial  ChangesStatus = "partial"
	ChangesStatusRejected ChangesStatus = "rejected"
)

func (ChangesStatus) MarshalJSON

func (value ChangesStatus) MarshalJSON() ([]byte, error)

func (ChangesStatus) MarshalText

func (value ChangesStatus) MarshalText() ([]byte, error)

func (*ChangesStatus) UnmarshalJSON

func (value *ChangesStatus) UnmarshalJSON(data []byte) error

func (*ChangesStatus) UnmarshalText

func (value *ChangesStatus) UnmarshalText(data []byte) error

type Char

type Char string

Char is one Unicode scalar serialized as a JSON string.

func (Char) MarshalJSON

func (value Char) MarshalJSON() ([]byte, error)

func (*Char) UnmarshalJSON

func (value *Char) UnmarshalJSON(data []byte) error

type ChartCandle

type ChartCandle struct {
	Label string  `json:"label"`
	Open  float64 `json:"open"`
	High  float64 `json:"high"`
	Low   float64 `json:"low"`
	Close float64 `json:"close"`
}

func DefaultChartCandle

func DefaultChartCandle() ChartCandle

func (ChartCandle) MarshalJSON

func (value ChartCandle) MarshalJSON() ([]byte, error)

func (*ChartCandle) UnmarshalJSON

func (value *ChartCandle) UnmarshalJSON(data []byte) error
type ChartLink struct {
	Source string  `json:"source"`
	Target string  `json:"target"`
	Value  float64 `json:"value"`
}
func DefaultChartLink() ChartLink

func (ChartLink) MarshalJSON

func (value ChartLink) MarshalJSON() ([]byte, error)

func (*ChartLink) UnmarshalJSON

func (value *ChartLink) UnmarshalJSON(data []byte) error

type ChartNode

type ChartNode struct {
	ID    string `json:"id"`
	Label string `json:"label"`
}

func DefaultChartNode

func DefaultChartNode() ChartNode

func (ChartNode) MarshalJSON

func (value ChartNode) MarshalJSON() ([]byte, error)

func (*ChartNode) UnmarshalJSON

func (value *ChartNode) UnmarshalJSON(data []byte) error

type ChartPoint

type ChartPoint struct {
	Label string  `json:"label"`
	Value float64 `json:"value"`
}

func DefaultChartPoint

func DefaultChartPoint() ChartPoint

func (ChartPoint) MarshalJSON

func (value ChartPoint) MarshalJSON() ([]byte, error)

func (*ChartPoint) UnmarshalJSON

func (value *ChartPoint) UnmarshalJSON(data []byte) error

type CheckpointID

type CheckpointID [16]byte

func NewCheckpointID

func NewCheckpointID() CheckpointID

func ParseCheckpointID

func ParseCheckpointID(value string) (CheckpointID, error)

func (*CheckpointID) DecodeJSON

func (identity *CheckpointID) DecodeJSON(decoder *Decoder) error

func (CheckpointID) MarshalJSON

func (identity CheckpointID) MarshalJSON() ([]byte, error)

func (CheckpointID) MarshalText

func (identity CheckpointID) MarshalText() ([]byte, error)

func (CheckpointID) String

func (identity CheckpointID) String() string

func (*CheckpointID) UnmarshalJSON

func (identity *CheckpointID) UnmarshalJSON(data []byte) error

func (*CheckpointID) UnmarshalText

func (identity *CheckpointID) UnmarshalText(data []byte) error

type CodeIndexCapabilities

type CodeIndexCapabilities struct {
	Structure bool `json:"structure"`
	Symbols   bool `json:"symbols"`
	Data      bool `json:"data"`
	Embedded  bool `json:"embedded"`
}

func DefaultCodeIndexCapabilities

func DefaultCodeIndexCapabilities() CodeIndexCapabilities

func (CodeIndexCapabilities) MarshalJSON

func (value CodeIndexCapabilities) MarshalJSON() ([]byte, error)

func (*CodeIndexCapabilities) UnmarshalJSON

func (value *CodeIndexCapabilities) UnmarshalJSON(data []byte) error

type CodeIndexGraph

type CodeIndexGraph struct {
	View   CodeIndexGraphView `json:"view"`
	Name   *string            `json:"name"`
	Paths  []string           `json:"paths"`
	Line   *uint32            `json:"line"`
	Depth  uint8              `json:"depth"`
	Offset uint64             `json:"offset"`
	Limit  uint64             `json:"limit"`
}

func DefaultCodeIndexGraph

func DefaultCodeIndexGraph() CodeIndexGraph

func (CodeIndexGraph) MarshalJSON

func (value CodeIndexGraph) MarshalJSON() ([]byte, error)

func (*CodeIndexGraph) UnmarshalJSON

func (value *CodeIndexGraph) UnmarshalJSON(data []byte) error

type CodeIndexGraphAffected

type CodeIndexGraphAffected struct {
	Name       string                   `json:"name"`
	Kind       string                   `json:"kind"`
	StartLine  uint32                   `json:"start_line"`
	EndLine    uint32                   `json:"end_line"`
	Depth      uint8                    `json:"depth"`
	Confidence CodeIndexGraphConfidence `json:"confidence"`
	Ambiguous  bool                     `json:"ambiguous"`
}

func DefaultCodeIndexGraphAffected

func DefaultCodeIndexGraphAffected() CodeIndexGraphAffected

func (CodeIndexGraphAffected) MarshalJSON

func (value CodeIndexGraphAffected) MarshalJSON() ([]byte, error)

func (*CodeIndexGraphAffected) UnmarshalJSON

func (value *CodeIndexGraphAffected) UnmarshalJSON(data []byte) error

type CodeIndexGraphConfidence

type CodeIndexGraphConfidence string
const (
	CodeIndexGraphConfidenceLocal     CodeIndexGraphConfidence = "local"
	CodeIndexGraphConfidenceImported  CodeIndexGraphConfidence = "imported"
	CodeIndexGraphConfidenceDirectory CodeIndexGraphConfidence = "directory"
	CodeIndexGraphConfidenceWorkspace CodeIndexGraphConfidence = "workspace"
)

func (CodeIndexGraphConfidence) MarshalJSON

func (value CodeIndexGraphConfidence) MarshalJSON() ([]byte, error)

func (CodeIndexGraphConfidence) MarshalText

func (value CodeIndexGraphConfidence) MarshalText() ([]byte, error)

func (*CodeIndexGraphConfidence) UnmarshalJSON

func (value *CodeIndexGraphConfidence) UnmarshalJSON(data []byte) error

func (*CodeIndexGraphConfidence) UnmarshalText

func (value *CodeIndexGraphConfidence) UnmarshalText(data []byte) error

type CodeIndexGraphDefinition

type CodeIndexGraphDefinition struct {
	Path      string `json:"path"`
	Name      string `json:"name"`
	Kind      string `json:"kind"`
	StartLine uint32 `json:"start_line"`
	EndLine   uint32 `json:"end_line"`
}

func DefaultCodeIndexGraphDefinition

func DefaultCodeIndexGraphDefinition() CodeIndexGraphDefinition

func (CodeIndexGraphDefinition) MarshalJSON

func (value CodeIndexGraphDefinition) MarshalJSON() ([]byte, error)

func (*CodeIndexGraphDefinition) UnmarshalJSON

func (value *CodeIndexGraphDefinition) UnmarshalJSON(data []byte) error

type CodeIndexGraphEntry

type CodeIndexGraphEntry struct {
	Path    string                 `json:"path"`
	Score   uint32                 `json:"score"`
	Symbols []CodeIndexGraphRanked `json:"symbols"`
}

func DefaultCodeIndexGraphEntry

func DefaultCodeIndexGraphEntry() CodeIndexGraphEntry

func (CodeIndexGraphEntry) MarshalJSON

func (value CodeIndexGraphEntry) MarshalJSON() ([]byte, error)

func (*CodeIndexGraphEntry) UnmarshalJSON

func (value *CodeIndexGraphEntry) UnmarshalJSON(data []byte) error

type CodeIndexGraphGraphPage

type CodeIndexGraphGraphPage struct {
	View          CodeIndexGraphView         `json:"view"`
	IndexRevision uint64                     `json:"index_revision"`
	Targets       []CodeIndexGraphDefinition `json:"targets"`
	Callers       []CodeIndexGraphReference  `json:"callers"`
	Callees       []CodeIndexGraphReference  `json:"callees"`
	Impact        []CodeIndexGraphImpacted   `json:"impact"`
	Map           []CodeIndexGraphEntry      `json:"map"`
	Total         uint64                     `json:"total"`
	NextOffset    *uint64                    `json:"next_offset"`
	Partial       bool                       `json:"partial"`
	Truncated     bool                       `json:"truncated"`
	Visited       uint64                     `json:"visited"`
	Skipped       uint64                     `json:"skipped"`
	Issues        []CodeIndexIssue           `json:"issues"`
}

func DefaultCodeIndexGraphGraphPage

func DefaultCodeIndexGraphGraphPage() CodeIndexGraphGraphPage

func (CodeIndexGraphGraphPage) MarshalJSON

func (value CodeIndexGraphGraphPage) MarshalJSON() ([]byte, error)

func (*CodeIndexGraphGraphPage) UnmarshalJSON

func (value *CodeIndexGraphGraphPage) UnmarshalJSON(data []byte) error

type CodeIndexGraphImpacted

type CodeIndexGraphImpacted struct {
	Path       string                   `json:"path"`
	Depth      uint8                    `json:"depth"`
	Confidence CodeIndexGraphConfidence `json:"confidence"`
	Ambiguous  bool                     `json:"ambiguous"`
	Symbols    []CodeIndexGraphAffected `json:"symbols"`
	Truncated  bool                     `json:"truncated"`
}

func DefaultCodeIndexGraphImpacted

func DefaultCodeIndexGraphImpacted() CodeIndexGraphImpacted

func (CodeIndexGraphImpacted) MarshalJSON

func (value CodeIndexGraphImpacted) MarshalJSON() ([]byte, error)

func (*CodeIndexGraphImpacted) UnmarshalJSON

func (value *CodeIndexGraphImpacted) UnmarshalJSON(data []byte) error

type CodeIndexGraphRanked

type CodeIndexGraphRanked struct {
	Name       string  `json:"name"`
	Kind       string  `json:"kind"`
	StartLine  uint32  `json:"start_line"`
	EndLine    uint32  `json:"end_line"`
	Signature  *string `json:"signature"`
	References uint32  `json:"references"`
}

func DefaultCodeIndexGraphRanked

func DefaultCodeIndexGraphRanked() CodeIndexGraphRanked

func (CodeIndexGraphRanked) MarshalJSON

func (value CodeIndexGraphRanked) MarshalJSON() ([]byte, error)

func (*CodeIndexGraphRanked) UnmarshalJSON

func (value *CodeIndexGraphRanked) UnmarshalJSON(data []byte) error

type CodeIndexGraphReference

type CodeIndexGraphReference struct {
	Path       string                     `json:"path"`
	Name       string                     `json:"name"`
	Kind       string                     `json:"kind"`
	Line       uint32                     `json:"line"`
	Column     uint32                     `json:"column"`
	Count      uint32                     `json:"count"`
	Scope      *CodeIndexGraphDefinition  `json:"scope"`
	Targets    []CodeIndexGraphDefinition `json:"targets"`
	Candidates uint64                     `json:"candidates"`
	Confidence *CodeIndexGraphConfidence  `json:"confidence"`
	Ambiguous  bool                       `json:"ambiguous"`
}

func DefaultCodeIndexGraphReference

func DefaultCodeIndexGraphReference() CodeIndexGraphReference

func (CodeIndexGraphReference) MarshalJSON

func (value CodeIndexGraphReference) MarshalJSON() ([]byte, error)

func (*CodeIndexGraphReference) UnmarshalJSON

func (value *CodeIndexGraphReference) UnmarshalJSON(data []byte) error

type CodeIndexGraphView

type CodeIndexGraphView string
const (
	CodeIndexGraphViewCallers CodeIndexGraphView = "callers"
	CodeIndexGraphViewCallees CodeIndexGraphView = "callees"
	CodeIndexGraphViewContext CodeIndexGraphView = "context"
	CodeIndexGraphViewImpact  CodeIndexGraphView = "impact"
	CodeIndexGraphViewMap     CodeIndexGraphView = "map"
)

func (CodeIndexGraphView) MarshalJSON

func (value CodeIndexGraphView) MarshalJSON() ([]byte, error)

func (CodeIndexGraphView) MarshalText

func (value CodeIndexGraphView) MarshalText() ([]byte, error)

func (*CodeIndexGraphView) UnmarshalJSON

func (value *CodeIndexGraphView) UnmarshalJSON(data []byte) error

func (*CodeIndexGraphView) UnmarshalText

func (value *CodeIndexGraphView) UnmarshalText(data []byte) error

type CodeIndexIssue

type CodeIndexIssue struct {
	Path   string          `json:"path"`
	Status CodeIndexStatus `json:"status"`
}

func DefaultCodeIndexIssue

func DefaultCodeIndexIssue() CodeIndexIssue

func (CodeIndexIssue) MarshalJSON

func (value CodeIndexIssue) MarshalJSON() ([]byte, error)

func (*CodeIndexIssue) UnmarshalJSON

func (value *CodeIndexIssue) UnmarshalJSON(data []byte) error

type CodeIndexOutline

type CodeIndexOutline struct {
	Path          string                `json:"path"`
	Language      *string               `json:"language"`
	FileRevision  *string               `json:"file_revision"`
	IndexRevision uint64                `json:"index_revision"`
	Status        CodeIndexStatus       `json:"status"`
	Symbols       []CodeIndexSymbol     `json:"symbols"`
	Capabilities  CodeIndexCapabilities `json:"capabilities"`
	Partial       bool                  `json:"partial"`
	Truncated     bool                  `json:"truncated"`
}

func DefaultCodeIndexOutline

func DefaultCodeIndexOutline() CodeIndexOutline

func (CodeIndexOutline) MarshalJSON

func (value CodeIndexOutline) MarshalJSON() ([]byte, error)

func (*CodeIndexOutline) UnmarshalJSON

func (value *CodeIndexOutline) UnmarshalJSON(data []byte) error

type CodeIndexRange

type CodeIndexRange struct {
	StartByte   uint32 `json:"start_byte"`
	EndByte     uint32 `json:"end_byte"`
	StartLine   uint32 `json:"start_line"`
	StartColumn uint32 `json:"start_column"`
	EndLine     uint32 `json:"end_line"`
	EndColumn   uint32 `json:"end_column"`
}

func DefaultCodeIndexRange

func DefaultCodeIndexRange() CodeIndexRange

func (CodeIndexRange) MarshalJSON

func (value CodeIndexRange) MarshalJSON() ([]byte, error)

func (*CodeIndexRange) UnmarshalJSON

func (value *CodeIndexRange) UnmarshalJSON(data []byte) error

type CodeIndexSearch

type CodeIndexSearch struct {
	Query    string  `json:"query"`
	Name     *string `json:"name"`
	Path     *string `json:"path"`
	Language *string `json:"language"`
	Limit    uint64  `json:"limit"`
}

func DefaultCodeIndexSearch

func DefaultCodeIndexSearch() CodeIndexSearch

func (CodeIndexSearch) MarshalJSON

func (value CodeIndexSearch) MarshalJSON() ([]byte, error)

func (*CodeIndexSearch) UnmarshalJSON

func (value *CodeIndexSearch) UnmarshalJSON(data []byte) error

type CodeIndexSearchPage

type CodeIndexSearchPage struct {
	Symbols       []CodeIndexSymbol `json:"symbols"`
	IndexRevision uint64            `json:"index_revision"`
	Partial       bool              `json:"partial"`
	Truncated     bool              `json:"truncated"`
	Visited       uint64            `json:"visited"`
	Skipped       uint64            `json:"skipped"`
	Issues        []CodeIndexIssue  `json:"issues"`
}

func DefaultCodeIndexSearchPage

func DefaultCodeIndexSearchPage() CodeIndexSearchPage

func (CodeIndexSearchPage) MarshalJSON

func (value CodeIndexSearchPage) MarshalJSON() ([]byte, error)

func (*CodeIndexSearchPage) UnmarshalJSON

func (value *CodeIndexSearchPage) UnmarshalJSON(data []byte) error

type CodeIndexSettings

type CodeIndexSettings struct {
	Revision uint64 `json:"revision"`
	Enabled  bool   `json:"enabled"`
	// Persistent sets the selected Node's full index policy. Nil preserves
	// the saved policy on update.
	Persistent *bool `json:"persistent,omitempty"`
	// PersistentProjects opts specific projects into the full on-disk index.
	// The list applies to older settings until Persistent is set.
	PersistentProjects *[]ProjectID `json:"persistent_projects,omitempty"`
}

func DefaultCodeIndexSettings

func DefaultCodeIndexSettings() CodeIndexSettings

func (CodeIndexSettings) MarshalJSON

func (value CodeIndexSettings) MarshalJSON() ([]byte, error)

func (*CodeIndexSettings) UnmarshalJSON

func (value *CodeIndexSettings) UnmarshalJSON(data []byte) error

type CodeIndexStatus

type CodeIndexStatus string
const (
	CodeIndexStatusParsed      CodeIndexStatus = "parsed"
	CodeIndexStatusUnsupported CodeIndexStatus = "unsupported"
	CodeIndexStatusTooLarge    CodeIndexStatus = "too_large"
	CodeIndexStatusInvalid     CodeIndexStatus = "invalid"
	CodeIndexStatusFailed      CodeIndexStatus = "failed"
)

func (CodeIndexStatus) MarshalJSON

func (value CodeIndexStatus) MarshalJSON() ([]byte, error)

func (CodeIndexStatus) MarshalText

func (value CodeIndexStatus) MarshalText() ([]byte, error)

func (*CodeIndexStatus) UnmarshalJSON

func (value *CodeIndexStatus) UnmarshalJSON(data []byte) error

func (*CodeIndexStatus) UnmarshalText

func (value *CodeIndexStatus) UnmarshalText(data []byte) error

type CodeIndexSymbol

type CodeIndexSymbol struct {
	Path         string         `json:"path"`
	Language     string         `json:"language"`
	Name         string         `json:"name"`
	Kind         string         `json:"kind"`
	Range        CodeIndexRange `json:"range"`
	Signature    *string        `json:"signature"`
	FileRevision string         `json:"file_revision"`
	Depth        uint16         `json:"depth"`
}

func DefaultCodeIndexSymbol

func DefaultCodeIndexSymbol() CodeIndexSymbol

func (CodeIndexSymbol) MarshalJSON

func (value CodeIndexSymbol) MarshalJSON() ([]byte, error)

func (*CodeIndexSymbol) UnmarshalJSON

func (value *CodeIndexSymbol) UnmarshalJSON(data []byte) error

type CodeStartup

type CodeStartup struct {
	Worktree   WorktreeID `json:"worktree"`
	Root       string     `json:"root"`
	Server     string     `json:"server"`
	Executable string     `json:"executable"`
	Revision   string     `json:"revision"`
}

func DefaultCodeStartup

func DefaultCodeStartup() CodeStartup

func (CodeStartup) MarshalJSON

func (value CodeStartup) MarshalJSON() ([]byte, error)

func (*CodeStartup) UnmarshalJSON

func (value *CodeStartup) UnmarshalJSON(data []byte) error

type Command

type Command struct {
	Kind string
	Data any
}

func (*Command) DecodeJSON

func (value *Command) DecodeJSON(decoder *Decoder) error

func (Command) Durable

func (command Command) Durable() bool

Durable follows the v1 admission classification shared by Node and controllers.

func (Command) MarshalJSON

func (value Command) MarshalJSON() ([]byte, error)

func (*Command) UnmarshalJSON

func (value *Command) UnmarshalJSON(data []byte) error

func (Command) UsesDraftAttachment

func (command Command) UsesDraftAttachment() bool

UsesDraftAttachment identifies a transfer whose owner is the authenticated controller rather than a worktree.

type CommandApplyChangesPayload

type CommandApplyChangesPayload struct {
	Worktree WorktreeID   `json:"worktree"`
	Changes  []FileChange `json:"changes"`
}

func DefaultCommandApplyChangesPayload

func DefaultCommandApplyChangesPayload() CommandApplyChangesPayload

func (CommandApplyChangesPayload) MarshalJSON

func (value CommandApplyChangesPayload) MarshalJSON() ([]byte, error)

func (*CommandApplyChangesPayload) UnmarshalJSON

func (value *CommandApplyChangesPayload) UnmarshalJSON(data []byte) error

type CommandApplyGitHunkPayload

type CommandApplyGitHunkPayload struct {
	Worktree         WorktreeID       `json:"worktree"`
	Path             string           `json:"path"`
	Scope            GitDiffScope     `json:"scope"`
	Operation        GitHunkOperation `json:"operation"`
	Hunk             uint32           `json:"hunk"`
	DiffRevision     string           `json:"diff_revision"`
	ExpectedRevision string           `json:"expected_revision"`
	ExpectedHead     *string          `json:"expected_head"`
	ExpectedBranch   *string          `json:"expected_branch"`
	ExpectedIndex    string           `json:"expected_index"`
}

CommandApplyGitHunkPayload extends v1 for native Git hunks without a turn. Hunk is zero-based within the complete diff identified by DiffRevision.

func (CommandApplyGitHunkPayload) MarshalJSON

func (value CommandApplyGitHunkPayload) MarshalJSON() ([]byte, error)

func (*CommandApplyGitHunkPayload) UnmarshalJSON

func (value *CommandApplyGitHunkPayload) UnmarshalJSON(data []byte) error

func (CommandApplyGitHunkPayload) Validate

func (value CommandApplyGitHunkPayload) Validate() error

type CommandArchiveSessionsPayload

type CommandArchiveSessionsPayload struct {
	Expected []SessionRevision `json:"expected"`
}

func DefaultCommandArchiveSessionsPayload

func DefaultCommandArchiveSessionsPayload() CommandArchiveSessionsPayload

func (CommandArchiveSessionsPayload) MarshalJSON

func (value CommandArchiveSessionsPayload) MarshalJSON() ([]byte, error)

func (*CommandArchiveSessionsPayload) UnmarshalJSON

func (value *CommandArchiveSessionsPayload) UnmarshalJSON(data []byte) error

type CommandBeginProviderLoginPayload

type CommandBeginProviderLoginPayload struct {
	Provider         ProviderID `json:"provider"`
	ExpectedRevision uint64     `json:"expected_revision"`
	Redirect         *string    `json:"redirect"`
}

func DefaultCommandBeginProviderLoginPayload

func DefaultCommandBeginProviderLoginPayload() CommandBeginProviderLoginPayload

func (CommandBeginProviderLoginPayload) MarshalJSON

func (value CommandBeginProviderLoginPayload) MarshalJSON() ([]byte, error)

func (*CommandBeginProviderLoginPayload) UnmarshalJSON

func (value *CommandBeginProviderLoginPayload) UnmarshalJSON(data []byte) error

type CommandBrowseDatabasePayload

type CommandBrowseDatabasePayload struct {
	Profile          DatabaseID `json:"profile"`
	ExpectedRevision uint64     `json:"expected_revision"`
	Database         *string    `json:"database"`
}

func DefaultCommandBrowseDatabasePayload

func DefaultCommandBrowseDatabasePayload() CommandBrowseDatabasePayload

func (CommandBrowseDatabasePayload) MarshalJSON

func (value CommandBrowseDatabasePayload) MarshalJSON() ([]byte, error)

func (*CommandBrowseDatabasePayload) UnmarshalJSON

func (value *CommandBrowseDatabasePayload) UnmarshalJSON(data []byte) error

type CommandBrowseFilesPayload

type CommandBrowseFilesPayload struct {
	Directory *string          `json:"directory"`
	After     *DirectoryCursor `json:"after"`
}

func DefaultCommandBrowseFilesPayload

func DefaultCommandBrowseFilesPayload() CommandBrowseFilesPayload

func (CommandBrowseFilesPayload) MarshalJSON

func (value CommandBrowseFilesPayload) MarshalJSON() ([]byte, error)

func (*CommandBrowseFilesPayload) UnmarshalJSON

func (value *CommandBrowseFilesPayload) UnmarshalJSON(data []byte) error

type CommandBrowseSshDirectoryPayload

type CommandBrowseSshDirectoryPayload struct {
	Profile          SshID      `json:"profile"`
	ExpectedRevision uint64     `json:"expected_revision"`
	Path             string     `json:"path"`
	After            *SshCursor `json:"after"`
}

func DefaultCommandBrowseSshDirectoryPayload

func DefaultCommandBrowseSshDirectoryPayload() CommandBrowseSshDirectoryPayload

func (CommandBrowseSshDirectoryPayload) MarshalJSON

func (value CommandBrowseSshDirectoryPayload) MarshalJSON() ([]byte, error)

func (*CommandBrowseSshDirectoryPayload) UnmarshalJSON

func (value *CommandBrowseSshDirectoryPayload) UnmarshalJSON(data []byte) error

type CommandCallPluginPayload

type CommandCallPluginPayload struct {
	Handler string          `json:"handler"`
	Input   json.RawMessage `json:"input"`
}

func DefaultCommandCallPluginPayload

func DefaultCommandCallPluginPayload() CommandCallPluginPayload

func (CommandCallPluginPayload) MarshalJSON

func (value CommandCallPluginPayload) MarshalJSON() ([]byte, error)

func (*CommandCallPluginPayload) UnmarshalJSON

func (value *CommandCallPluginPayload) UnmarshalJSON(data []byte) error

type CommandCancelCodeIndexQueryPayload

type CommandCancelCodeIndexQueryPayload struct {
	Request RequestID `json:"request"`
}

func DefaultCommandCancelCodeIndexQueryPayload

func DefaultCommandCancelCodeIndexQueryPayload() CommandCancelCodeIndexQueryPayload

func (CommandCancelCodeIndexQueryPayload) MarshalJSON

func (value CommandCancelCodeIndexQueryPayload) MarshalJSON() ([]byte, error)

func (*CommandCancelCodeIndexQueryPayload) UnmarshalJSON

func (value *CommandCancelCodeIndexQueryPayload) UnmarshalJSON(data []byte) error

type CommandCancelConnectorLoginPayload

type CommandCancelConnectorLoginPayload struct {
	Attempt RequestID `json:"attempt"`
}

func DefaultCommandCancelConnectorLoginPayload

func DefaultCommandCancelConnectorLoginPayload() CommandCancelConnectorLoginPayload

func (CommandCancelConnectorLoginPayload) MarshalJSON

func (value CommandCancelConnectorLoginPayload) MarshalJSON() ([]byte, error)

func (*CommandCancelConnectorLoginPayload) UnmarshalJSON

func (value *CommandCancelConnectorLoginPayload) UnmarshalJSON(data []byte) error

type CommandCancelDatabasePayload

type CommandCancelDatabasePayload struct {
	Request RequestID `json:"request"`
}

func DefaultCommandCancelDatabasePayload

func DefaultCommandCancelDatabasePayload() CommandCancelDatabasePayload

func (CommandCancelDatabasePayload) MarshalJSON

func (value CommandCancelDatabasePayload) MarshalJSON() ([]byte, error)

func (*CommandCancelDatabasePayload) UnmarshalJSON

func (value *CommandCancelDatabasePayload) UnmarshalJSON(data []byte) error

type CommandCancelFileTransferPayload

type CommandCancelFileTransferPayload struct {
	Stream StreamID `json:"stream"`
}

func DefaultCommandCancelFileTransferPayload

func DefaultCommandCancelFileTransferPayload() CommandCancelFileTransferPayload

func (CommandCancelFileTransferPayload) MarshalJSON

func (value CommandCancelFileTransferPayload) MarshalJSON() ([]byte, error)

func (*CommandCancelFileTransferPayload) UnmarshalJSON

func (value *CommandCancelFileTransferPayload) UnmarshalJSON(data []byte) error

type CommandCancelLocalModelPayload

type CommandCancelLocalModelPayload struct {
	ID string `json:"id"`
}

func DefaultCommandCancelLocalModelPayload

func DefaultCommandCancelLocalModelPayload() CommandCancelLocalModelPayload

func (CommandCancelLocalModelPayload) MarshalJSON

func (value CommandCancelLocalModelPayload) MarshalJSON() ([]byte, error)

func (*CommandCancelLocalModelPayload) UnmarshalJSON

func (value *CommandCancelLocalModelPayload) UnmarshalJSON(data []byte) error

type CommandCancelPluginCallPayload

type CommandCancelPluginCallPayload struct {
	Request RequestID `json:"request"`
}

func DefaultCommandCancelPluginCallPayload

func DefaultCommandCancelPluginCallPayload() CommandCancelPluginCallPayload

func (CommandCancelPluginCallPayload) MarshalJSON

func (value CommandCancelPluginCallPayload) MarshalJSON() ([]byte, error)

func (*CommandCancelPluginCallPayload) UnmarshalJSON

func (value *CommandCancelPluginCallPayload) UnmarshalJSON(data []byte) error

type CommandCancelPortPayload

type CommandCancelPortPayload struct {
	Stream StreamID `json:"stream"`
}

func DefaultCommandCancelPortPayload

func DefaultCommandCancelPortPayload() CommandCancelPortPayload

func (CommandCancelPortPayload) MarshalJSON

func (value CommandCancelPortPayload) MarshalJSON() ([]byte, error)

func (*CommandCancelPortPayload) UnmarshalJSON

func (value *CommandCancelPortPayload) UnmarshalJSON(data []byte) error

type CommandCancelProviderLoginPayload

type CommandCancelProviderLoginPayload struct {
	Attempt RequestID `json:"attempt"`
}

func DefaultCommandCancelProviderLoginPayload

func DefaultCommandCancelProviderLoginPayload() CommandCancelProviderLoginPayload

func (CommandCancelProviderLoginPayload) MarshalJSON

func (value CommandCancelProviderLoginPayload) MarshalJSON() ([]byte, error)

func (*CommandCancelProviderLoginPayload) UnmarshalJSON

func (value *CommandCancelProviderLoginPayload) UnmarshalJSON(data []byte) error

type CommandCancelSshPayload

type CommandCancelSshPayload struct {
	Request RequestID `json:"request"`
}

func DefaultCommandCancelSshPayload

func DefaultCommandCancelSshPayload() CommandCancelSshPayload

func (CommandCancelSshPayload) MarshalJSON

func (value CommandCancelSshPayload) MarshalJSON() ([]byte, error)

func (*CommandCancelSshPayload) UnmarshalJSON

func (value *CommandCancelSshPayload) UnmarshalJSON(data []byte) error

type CommandCancelWebFetchPayload

type CommandCancelWebFetchPayload struct {
	Request RequestID `json:"request"`
}

func DefaultCommandCancelWebFetchPayload

func DefaultCommandCancelWebFetchPayload() CommandCancelWebFetchPayload

func (CommandCancelWebFetchPayload) MarshalJSON

func (value CommandCancelWebFetchPayload) MarshalJSON() ([]byte, error)

func (*CommandCancelWebFetchPayload) UnmarshalJSON

func (value *CommandCancelWebFetchPayload) UnmarshalJSON(data []byte) error

type CommandCancelWebSearchPayload

type CommandCancelWebSearchPayload struct {
	Request RequestID `json:"request"`
}

func DefaultCommandCancelWebSearchPayload

func DefaultCommandCancelWebSearchPayload() CommandCancelWebSearchPayload

func (CommandCancelWebSearchPayload) MarshalJSON

func (value CommandCancelWebSearchPayload) MarshalJSON() ([]byte, error)

func (*CommandCancelWebSearchPayload) UnmarshalJSON

func (value *CommandCancelWebSearchPayload) UnmarshalJSON(data []byte) error

type CommandCancelWslHostInstallPayload

type CommandCancelWslHostInstallPayload struct {
	Request RequestID `json:"request"`
}

func DefaultCommandCancelWslHostInstallPayload

func DefaultCommandCancelWslHostInstallPayload() CommandCancelWslHostInstallPayload

func (CommandCancelWslHostInstallPayload) MarshalJSON

func (value CommandCancelWslHostInstallPayload) MarshalJSON() ([]byte, error)

func (*CommandCancelWslHostInstallPayload) UnmarshalJSON

func (value *CommandCancelWslHostInstallPayload) UnmarshalJSON(data []byte) error

type CommandCheckDatabasePayload

type CommandCheckDatabasePayload struct {
	Profile          DatabaseID `json:"profile"`
	ExpectedRevision uint64     `json:"expected_revision"`
}

func DefaultCommandCheckDatabasePayload

func DefaultCommandCheckDatabasePayload() CommandCheckDatabasePayload

func (CommandCheckDatabasePayload) MarshalJSON

func (value CommandCheckDatabasePayload) MarshalJSON() ([]byte, error)

func (*CommandCheckDatabasePayload) UnmarshalJSON

func (value *CommandCheckDatabasePayload) UnmarshalJSON(data []byte) error

type CommandCheckPluginMcpPayload

type CommandCheckPluginMcpPayload struct {
	Package PluginReference `json:"package"`
	Server  string          `json:"server"`
}

func DefaultCommandCheckPluginMcpPayload

func DefaultCommandCheckPluginMcpPayload() CommandCheckPluginMcpPayload

func (CommandCheckPluginMcpPayload) MarshalJSON

func (value CommandCheckPluginMcpPayload) MarshalJSON() ([]byte, error)

func (*CommandCheckPluginMcpPayload) UnmarshalJSON

func (value *CommandCheckPluginMcpPayload) UnmarshalJSON(data []byte) error

type CommandCheckPluginUpdatePayload

type CommandCheckPluginUpdatePayload struct {
	Upload           *StreamID `json:"upload,omitempty"`
	Name             string    `json:"name"`
	ExpectedRevision uint64    `json:"expected_revision"`
	Force            bool      `json:"force"`
}

func DefaultCommandCheckPluginUpdatePayload

func DefaultCommandCheckPluginUpdatePayload() CommandCheckPluginUpdatePayload

func (CommandCheckPluginUpdatePayload) MarshalJSON

func (value CommandCheckPluginUpdatePayload) MarshalJSON() ([]byte, error)

func (*CommandCheckPluginUpdatePayload) UnmarshalJSON

func (value *CommandCheckPluginUpdatePayload) UnmarshalJSON(data []byte) error

type CommandCheckPluginUpdatesPayload

type CommandCheckPluginUpdatesPayload struct {
	Packages []PluginUpdatesRequest `json:"packages"`
	Force    bool                   `json:"force"`
}

func DefaultCommandCheckPluginUpdatesPayload

func DefaultCommandCheckPluginUpdatesPayload() CommandCheckPluginUpdatesPayload

func (CommandCheckPluginUpdatesPayload) MarshalJSON

func (value CommandCheckPluginUpdatesPayload) MarshalJSON() ([]byte, error)

func (*CommandCheckPluginUpdatesPayload) UnmarshalJSON

func (value *CommandCheckPluginUpdatesPayload) UnmarshalJSON(data []byte) error

type CommandCheckSshPayload

type CommandCheckSshPayload struct {
	Profile          SshID  `json:"profile"`
	ExpectedRevision uint64 `json:"expected_revision"`
}

func DefaultCommandCheckSshPayload

func DefaultCommandCheckSshPayload() CommandCheckSshPayload

func (CommandCheckSshPayload) MarshalJSON

func (value CommandCheckSshPayload) MarshalJSON() ([]byte, error)

func (*CommandCheckSshPayload) UnmarshalJSON

func (value *CommandCheckSshPayload) UnmarshalJSON(data []byte) error

type CommandClaimTerminalPayload

type CommandClaimTerminalPayload struct {
	Terminal         TerminalID `json:"terminal"`
	ExpectedRevision uint64     `json:"expected_revision"`
}

func DefaultCommandClaimTerminalPayload

func DefaultCommandClaimTerminalPayload() CommandClaimTerminalPayload

func (CommandClaimTerminalPayload) MarshalJSON

func (value CommandClaimTerminalPayload) MarshalJSON() ([]byte, error)

func (*CommandClaimTerminalPayload) UnmarshalJSON

func (value *CommandClaimTerminalPayload) UnmarshalJSON(data []byte) error

type CommandCloseSshTerminalPayload

type CommandCloseSshTerminalPayload struct {
	Terminal TerminalID `json:"terminal"`
}

func DefaultCommandCloseSshTerminalPayload

func DefaultCommandCloseSshTerminalPayload() CommandCloseSshTerminalPayload

func (CommandCloseSshTerminalPayload) MarshalJSON

func (value CommandCloseSshTerminalPayload) MarshalJSON() ([]byte, error)

func (*CommandCloseSshTerminalPayload) UnmarshalJSON

func (value *CommandCloseSshTerminalPayload) UnmarshalJSON(data []byte) error

type CommandCloseTerminalPayload

type CommandCloseTerminalPayload struct {
	Worktree WorktreeID `json:"worktree"`
	Terminal TerminalID `json:"terminal"`
}

func DefaultCommandCloseTerminalPayload

func DefaultCommandCloseTerminalPayload() CommandCloseTerminalPayload

func (CommandCloseTerminalPayload) MarshalJSON

func (value CommandCloseTerminalPayload) MarshalJSON() ([]byte, error)

func (*CommandCloseTerminalPayload) UnmarshalJSON

func (value *CommandCloseTerminalPayload) UnmarshalJSON(data []byte) error

type CommandCompactContextPayload

type CommandCompactContextPayload struct {
	Session          SessionID `json:"session"`
	ExpectedRevision uint64    `json:"expected_revision"`
	Focus            *string   `json:"focus,omitempty"`
}

func DefaultCommandCompactContextPayload

func DefaultCommandCompactContextPayload() CommandCompactContextPayload

func (CommandCompactContextPayload) MarshalJSON

func (value CommandCompactContextPayload) MarshalJSON() ([]byte, error)

func (*CommandCompactContextPayload) UnmarshalJSON

func (value *CommandCompactContextPayload) UnmarshalJSON(data []byte) error

type CommandCompleteBrowserPayload

type CommandCompleteBrowserPayload struct {
	ID     RequestID     `json:"id"`
	Result BrowserResult `json:"result"`
}

func DefaultCommandCompleteBrowserPayload

func DefaultCommandCompleteBrowserPayload() CommandCompleteBrowserPayload

func (CommandCompleteBrowserPayload) MarshalJSON

func (value CommandCompleteBrowserPayload) MarshalJSON() ([]byte, error)

func (*CommandCompleteBrowserPayload) UnmarshalJSON

func (value *CommandCompleteBrowserPayload) UnmarshalJSON(data []byte) error

type CommandCompleteProviderLoginPayload

type CommandCompleteProviderLoginPayload struct {
	Attempt  RequestID `json:"attempt"`
	Callback Secret    `json:"callback"`
}

func DefaultCommandCompleteProviderLoginPayload

func DefaultCommandCompleteProviderLoginPayload() CommandCompleteProviderLoginPayload

func (CommandCompleteProviderLoginPayload) MarshalJSON

func (value CommandCompleteProviderLoginPayload) MarshalJSON() ([]byte, error)

func (*CommandCompleteProviderLoginPayload) UnmarshalJSON

func (value *CommandCompleteProviderLoginPayload) UnmarshalJSON(data []byte) error

type CommandConfirmConnectorConsentPayload

type CommandConfirmConnectorConsentPayload struct {
	Connection       PluginConnectorID `json:"connection"`
	ExpectedRevision uint64            `json:"expected_revision"`
	Accept           bool              `json:"accept"`
}

func DefaultCommandConfirmConnectorConsentPayload

func DefaultCommandConfirmConnectorConsentPayload() CommandConfirmConnectorConsentPayload

func (CommandConfirmConnectorConsentPayload) MarshalJSON

func (value CommandConfirmConnectorConsentPayload) MarshalJSON() ([]byte, error)

func (*CommandConfirmConnectorConsentPayload) UnmarshalJSON

func (value *CommandConfirmConnectorConsentPayload) UnmarshalJSON(data []byte) error

type CommandContinueTurnPayload

type CommandContinueTurnPayload struct {
	Session          SessionID          `json:"session"`
	After            *TurnID            `json:"after"`
	Message          ConversationInput  `json:"message"`
	Key              string             `json:"key"`
	ExpectedRevision uint64             `json:"expected_revision"`
	Scope            PluginStorageScope `json:"scope"`
	Marker           *string            `json:"marker,omitempty"`
	Limit            *uint32            `json:"limit,omitempty"`
	User             bool               `json:"user,omitempty"`
}

CommandContinueTurnPayload admits one automatic turn for a package. Marker names one of the package's declared continuation_markers; Limit declares how many automatic turns the session may start in a row without user input while this package continues it.

func DefaultCommandContinueTurnPayload

func DefaultCommandContinueTurnPayload() CommandContinueTurnPayload

func (CommandContinueTurnPayload) MarshalJSON

func (value CommandContinueTurnPayload) MarshalJSON() ([]byte, error)

func (*CommandContinueTurnPayload) UnmarshalJSON

func (value *CommandContinueTurnPayload) UnmarshalJSON(data []byte) error

type CommandCopyEntryPayload

type CommandCopyEntryPayload struct {
	Worktree WorktreeID `json:"worktree"`
	From     string     `json:"from"`
	To       string     `json:"to"`
}

func DefaultCommandCopyEntryPayload

func DefaultCommandCopyEntryPayload() CommandCopyEntryPayload

func (CommandCopyEntryPayload) MarshalJSON

func (value CommandCopyEntryPayload) MarshalJSON() ([]byte, error)

func (*CommandCopyEntryPayload) UnmarshalJSON

func (value *CommandCopyEntryPayload) UnmarshalJSON(data []byte) error

type CommandCopyEntryToPayload

type CommandCopyEntryToPayload struct {
	Source   WorktreeID `json:"source"`
	Worktree WorktreeID `json:"worktree"`
	From     string     `json:"from"`
	To       string     `json:"to"`
}

func DefaultCommandCopyEntryToPayload

func DefaultCommandCopyEntryToPayload() CommandCopyEntryToPayload

func (CommandCopyEntryToPayload) MarshalJSON

func (value CommandCopyEntryToPayload) MarshalJSON() ([]byte, error)

func (*CommandCopyEntryToPayload) UnmarshalJSON

func (value *CommandCopyEntryToPayload) UnmarshalJSON(data []byte) error

type CommandCountFeaturePayload

type CommandCountFeaturePayload struct {
	Feature FeatureUse `json:"feature"`
}

CommandCountFeaturePayload counts one use of a desktop feature on the controller's own Node. It carries the identifier and nothing else.

func DefaultCommandCountFeaturePayload

func DefaultCommandCountFeaturePayload() CommandCountFeaturePayload

func (CommandCountFeaturePayload) MarshalJSON

func (value CommandCountFeaturePayload) MarshalJSON() ([]byte, error)

func (*CommandCountFeaturePayload) UnmarshalJSON

func (value *CommandCountFeaturePayload) UnmarshalJSON(data []byte) error

type CommandCreateDirectoryPayload

type CommandCreateDirectoryPayload struct {
	Worktree WorktreeID `json:"worktree"`
	Path     string     `json:"path"`
}

func DefaultCommandCreateDirectoryPayload

func DefaultCommandCreateDirectoryPayload() CommandCreateDirectoryPayload

func (CommandCreateDirectoryPayload) MarshalJSON

func (value CommandCreateDirectoryPayload) MarshalJSON() ([]byte, error)

func (*CommandCreateDirectoryPayload) UnmarshalJSON

func (value *CommandCreateDirectoryPayload) UnmarshalJSON(data []byte) error

type CommandCreateGitBranchPayload

type CommandCreateGitBranchPayload struct {
	Worktree WorktreeID `json:"worktree"`
	Name     string     `json:"name"`
	Commit   string     `json:"commit"`
}

func DefaultCommandCreateGitBranchPayload

func DefaultCommandCreateGitBranchPayload() CommandCreateGitBranchPayload

func (CommandCreateGitBranchPayload) MarshalJSON

func (value CommandCreateGitBranchPayload) MarshalJSON() ([]byte, error)

func (*CommandCreateGitBranchPayload) UnmarshalJSON

func (value *CommandCreateGitBranchPayload) UnmarshalJSON(data []byte) error

type CommandCreateGitCommitPayload

type CommandCreateGitCommitPayload struct {
	Worktree       WorktreeID       `json:"worktree"`
	Message        string           `json:"message"`
	Amend          bool             `json:"amend"`
	Options        GitCommitOptions `json:"options"`
	ExpectedIndex  string           `json:"expected_index"`
	ExpectedHead   *string          `json:"expected_head"`
	ExpectedBranch *string          `json:"expected_branch"`
}

func DefaultCommandCreateGitCommitPayload

func DefaultCommandCreateGitCommitPayload() CommandCreateGitCommitPayload

func (CommandCreateGitCommitPayload) MarshalJSON

func (value CommandCreateGitCommitPayload) MarshalJSON() ([]byte, error)

func (*CommandCreateGitCommitPayload) UnmarshalJSON

func (value *CommandCreateGitCommitPayload) UnmarshalJSON(data []byte) error

type CommandCreateKnowledgeCollectionPayload

type CommandCreateKnowledgeCollectionPayload struct {
	Node       *NodeID             `json:"node,omitempty"`
	Definition KnowledgeDefinition `json:"definition"`
	Plugin     *string             `json:"plugin"`
}

func DefaultCommandCreateKnowledgeCollectionPayload

func DefaultCommandCreateKnowledgeCollectionPayload() CommandCreateKnowledgeCollectionPayload

func (CommandCreateKnowledgeCollectionPayload) MarshalJSON

func (value CommandCreateKnowledgeCollectionPayload) MarshalJSON() ([]byte, error)

func (*CommandCreateKnowledgeCollectionPayload) UnmarshalJSON

func (value *CommandCreateKnowledgeCollectionPayload) UnmarshalJSON(data []byte) error

type CommandCreateManagedWorktreePayload

type CommandCreateManagedWorktreePayload struct {
	Project        ProjectID  `json:"project"`
	Source         WorktreeID `json:"source"`
	Branch         string     `json:"branch"`
	ExpectedHead   string     `json:"expected_head"`
	ExpectedIndex  string     `json:"expected_index"`
	IncludeChanges bool       `json:"include_changes"`
	Base           *string    `json:"base,omitempty"`
}

func DefaultCommandCreateManagedWorktreePayload

func DefaultCommandCreateManagedWorktreePayload() CommandCreateManagedWorktreePayload

func (CommandCreateManagedWorktreePayload) MarshalJSON

func (value CommandCreateManagedWorktreePayload) MarshalJSON() ([]byte, error)

func (*CommandCreateManagedWorktreePayload) UnmarshalJSON

func (value *CommandCreateManagedWorktreePayload) UnmarshalJSON(data []byte) error

type CommandCreateSessionAtPayload

type CommandCreateSessionAtPayload struct {
	Target           NodeID         `json:"target"`
	Project          *ProjectID     `json:"project"`
	Worktree         *WorktreeID    `json:"worktree"`
	Config           *SessionConfig `json:"config"`
	ProviderRevision uint64         `json:"provider_revision"`
}

func DefaultCommandCreateSessionAtPayload

func DefaultCommandCreateSessionAtPayload() CommandCreateSessionAtPayload

func (CommandCreateSessionAtPayload) MarshalJSON

func (value CommandCreateSessionAtPayload) MarshalJSON() ([]byte, error)

func (*CommandCreateSessionAtPayload) UnmarshalJSON

func (value *CommandCreateSessionAtPayload) UnmarshalJSON(data []byte) error

type CommandCreateSessionPayload

type CommandCreateSessionPayload struct {
	Project  *ProjectID     `json:"project"`
	Worktree *WorktreeID    `json:"worktree,omitempty"`
	Config   *SessionConfig `json:"config"`
}

func DefaultCommandCreateSessionPayload

func DefaultCommandCreateSessionPayload() CommandCreateSessionPayload

func (CommandCreateSessionPayload) MarshalJSON

func (value CommandCreateSessionPayload) MarshalJSON() ([]byte, error)

func (*CommandCreateSessionPayload) UnmarshalJSON

func (value *CommandCreateSessionPayload) UnmarshalJSON(data []byte) error

type CommandCreateWorktreePayload

type CommandCreateWorktreePayload struct {
	Project ProjectID `json:"project"`
	Path    string    `json:"path"`
	Branch  string    `json:"branch"`
	Commit  string    `json:"commit"`
}

func DefaultCommandCreateWorktreePayload

func DefaultCommandCreateWorktreePayload() CommandCreateWorktreePayload

func (CommandCreateWorktreePayload) MarshalJSON

func (value CommandCreateWorktreePayload) MarshalJSON() ([]byte, error)

func (*CommandCreateWorktreePayload) UnmarshalJSON

func (value *CommandCreateWorktreePayload) UnmarshalJSON(data []byte) error

type CommandDeleteFilePayload

type CommandDeleteFilePayload struct {
	Worktree         WorktreeID `json:"worktree"`
	Path             string     `json:"path"`
	ExpectedRevision string     `json:"expected_revision"`
}

func DefaultCommandDeleteFilePayload

func DefaultCommandDeleteFilePayload() CommandDeleteFilePayload

func (CommandDeleteFilePayload) MarshalJSON

func (value CommandDeleteFilePayload) MarshalJSON() ([]byte, error)

func (*CommandDeleteFilePayload) UnmarshalJSON

func (value *CommandDeleteFilePayload) UnmarshalJSON(data []byte) error

type CommandDeleteGitBranchPayload

type CommandDeleteGitBranchPayload struct {
	Worktree       WorktreeID `json:"worktree"`
	Name           string     `json:"name"`
	Commit         string     `json:"commit"`
	ExpectedHead   string     `json:"expected_head"`
	ExpectedBranch *string    `json:"expected_branch"`
}

func DefaultCommandDeleteGitBranchPayload

func DefaultCommandDeleteGitBranchPayload() CommandDeleteGitBranchPayload

func (CommandDeleteGitBranchPayload) MarshalJSON

func (value CommandDeleteGitBranchPayload) MarshalJSON() ([]byte, error)

func (*CommandDeleteGitBranchPayload) UnmarshalJSON

func (value *CommandDeleteGitBranchPayload) UnmarshalJSON(data []byte) error

type CommandDeleteKnowledgeCollectionPayload

type CommandDeleteKnowledgeCollectionPayload struct {
	Node             *NodeID     `json:"node,omitempty"`
	ID               KnowledgeID `json:"id"`
	ExpectedRevision uint64      `json:"expected_revision"`
}

func DefaultCommandDeleteKnowledgeCollectionPayload

func DefaultCommandDeleteKnowledgeCollectionPayload() CommandDeleteKnowledgeCollectionPayload

func (CommandDeleteKnowledgeCollectionPayload) MarshalJSON

func (value CommandDeleteKnowledgeCollectionPayload) MarshalJSON() ([]byte, error)

func (*CommandDeleteKnowledgeCollectionPayload) UnmarshalJSON

func (value *CommandDeleteKnowledgeCollectionPayload) UnmarshalJSON(data []byte) error

type CommandDeleteLocalModelPayload

type CommandDeleteLocalModelPayload struct {
	ID string `json:"id"`
}

func DefaultCommandDeleteLocalModelPayload

func DefaultCommandDeleteLocalModelPayload() CommandDeleteLocalModelPayload

func (CommandDeleteLocalModelPayload) MarshalJSON

func (value CommandDeleteLocalModelPayload) MarshalJSON() ([]byte, error)

func (*CommandDeleteLocalModelPayload) UnmarshalJSON

func (value *CommandDeleteLocalModelPayload) UnmarshalJSON(data []byte) error

type CommandDeleteMemoryEntryPayload

type CommandDeleteMemoryEntryPayload struct {
	ID               string `json:"id"`
	ExpectedRevision uint64 `json:"expected_revision"`
}

type CommandDeliverBackgroundPayload

type CommandDeliverBackgroundPayload struct {
	Session SessionID `json:"session"`
}

func DefaultCommandDeliverBackgroundPayload

func DefaultCommandDeliverBackgroundPayload() CommandDeliverBackgroundPayload

func (CommandDeliverBackgroundPayload) MarshalJSON

func (value CommandDeliverBackgroundPayload) MarshalJSON() ([]byte, error)

func (*CommandDeliverBackgroundPayload) UnmarshalJSON

func (value *CommandDeliverBackgroundPayload) UnmarshalJSON(data []byte) error

type CommandDiscardAttachmentPayload

type CommandDiscardAttachmentPayload struct {
	Worktree   WorktreeID   `json:"worktree"`
	Attachment AttachmentID `json:"attachment"`
}

func DefaultCommandDiscardAttachmentPayload

func DefaultCommandDiscardAttachmentPayload() CommandDiscardAttachmentPayload

func (CommandDiscardAttachmentPayload) MarshalJSON

func (value CommandDiscardAttachmentPayload) MarshalJSON() ([]byte, error)

func (*CommandDiscardAttachmentPayload) UnmarshalJSON

func (value *CommandDiscardAttachmentPayload) UnmarshalJSON(data []byte) error

type CommandDisconnectConnectionPayload

type CommandDisconnectConnectionPayload struct {
	Connection       PluginConnectorID `json:"connection"`
	ExpectedRevision uint64            `json:"expected_revision"`
}

func DefaultCommandDisconnectConnectionPayload

func DefaultCommandDisconnectConnectionPayload() CommandDisconnectConnectionPayload

func (CommandDisconnectConnectionPayload) MarshalJSON

func (value CommandDisconnectConnectionPayload) MarshalJSON() ([]byte, error)

func (*CommandDisconnectConnectionPayload) UnmarshalJSON

func (value *CommandDisconnectConnectionPayload) UnmarshalJSON(data []byte) error

type CommandDiscoverLocalSkillsPayload

type CommandDiscoverLocalSkillsPayload struct {
	Worktree WorktreeID `json:"worktree"`
	Path     string     `json:"path"`
}

func DefaultCommandDiscoverLocalSkillsPayload

func DefaultCommandDiscoverLocalSkillsPayload() CommandDiscoverLocalSkillsPayload

func (CommandDiscoverLocalSkillsPayload) MarshalJSON

func (value CommandDiscoverLocalSkillsPayload) MarshalJSON() ([]byte, error)

func (*CommandDiscoverLocalSkillsPayload) UnmarshalJSON

func (value *CommandDiscoverLocalSkillsPayload) UnmarshalJSON(data []byte) error

type CommandDiscoverRegistrySkillPayload

type CommandDiscoverRegistrySkillPayload struct {
	Source PluginSkillsRegistrySource `json:"source"`
}

func DefaultCommandDiscoverRegistrySkillPayload

func DefaultCommandDiscoverRegistrySkillPayload() CommandDiscoverRegistrySkillPayload

func (CommandDiscoverRegistrySkillPayload) MarshalJSON

func (value CommandDiscoverRegistrySkillPayload) MarshalJSON() ([]byte, error)

func (*CommandDiscoverRegistrySkillPayload) UnmarshalJSON

func (value *CommandDiscoverRegistrySkillPayload) UnmarshalJSON(data []byte) error

type CommandDiscoverSkillUploadPayload

type CommandDiscoverSkillUploadPayload struct {
	Stream StreamID                  `json:"stream"`
	Format PluginSkillsArchiveFormat `json:"format"`
	Source PluginUploadSource        `json:"source"`
}

func DefaultCommandDiscoverSkillUploadPayload

func DefaultCommandDiscoverSkillUploadPayload() CommandDiscoverSkillUploadPayload

func (CommandDiscoverSkillUploadPayload) MarshalJSON

func (value CommandDiscoverSkillUploadPayload) MarshalJSON() ([]byte, error)

func (*CommandDiscoverSkillUploadPayload) UnmarshalJSON

func (value *CommandDiscoverSkillUploadPayload) UnmarshalJSON(data []byte) error

type CommandDiscoverSkillsPayload

type CommandDiscoverSkillsPayload struct {
	Source PluginSkillsSource `json:"source"`
}

func DefaultCommandDiscoverSkillsPayload

func DefaultCommandDiscoverSkillsPayload() CommandDiscoverSkillsPayload

func (CommandDiscoverSkillsPayload) MarshalJSON

func (value CommandDiscoverSkillsPayload) MarshalJSON() ([]byte, error)

func (*CommandDiscoverSkillsPayload) UnmarshalJSON

func (value *CommandDiscoverSkillsPayload) UnmarshalJSON(data []byte) error

type CommandDismissInstallationPayload

type CommandDismissInstallationPayload struct {
	Request RequestID `json:"request"`
}

func DefaultCommandDismissInstallationPayload

func DefaultCommandDismissInstallationPayload() CommandDismissInstallationPayload

func (CommandDismissInstallationPayload) MarshalJSON

func (value CommandDismissInstallationPayload) MarshalJSON() ([]byte, error)

func (*CommandDismissInstallationPayload) UnmarshalJSON

func (value *CommandDismissInstallationPayload) UnmarshalJSON(data []byte) error

type CommandDismissNotificationsPayload

type CommandDismissNotificationsPayload struct {
	IDs []NotificationID `json:"ids"`
}

func DefaultCommandDismissNotificationsPayload

func DefaultCommandDismissNotificationsPayload() CommandDismissNotificationsPayload

func (CommandDismissNotificationsPayload) MarshalJSON

func (value CommandDismissNotificationsPayload) MarshalJSON() ([]byte, error)

func (*CommandDismissNotificationsPayload) UnmarshalJSON

func (value *CommandDismissNotificationsPayload) UnmarshalJSON(data []byte) error

type CommandDismissReadNotificationsPayload

type CommandDismissReadNotificationsPayload struct {
	IDs []NotificationID `json:"ids"`
}

func DefaultCommandDismissReadNotificationsPayload

func DefaultCommandDismissReadNotificationsPayload() CommandDismissReadNotificationsPayload

func (CommandDismissReadNotificationsPayload) MarshalJSON

func (value CommandDismissReadNotificationsPayload) MarshalJSON() ([]byte, error)

func (*CommandDismissReadNotificationsPayload) UnmarshalJSON

func (value *CommandDismissReadNotificationsPayload) UnmarshalJSON(data []byte) error

type CommandDispatchPayload

type CommandDispatchPayload struct {
	Package PluginReference `json:"package"`
	Action  DispatchCommand `json:"action"`
}

func DefaultCommandDispatchPayload

func DefaultCommandDispatchPayload() CommandDispatchPayload

func (CommandDispatchPayload) MarshalJSON

func (value CommandDispatchPayload) MarshalJSON() ([]byte, error)

func (*CommandDispatchPayload) UnmarshalJSON

func (value *CommandDispatchPayload) UnmarshalJSON(data []byte) error

type CommandDownloadAttachmentPayload

type CommandDownloadAttachmentPayload struct {
	Worktree      WorktreeID   `json:"worktree"`
	Attachment    AttachmentID `json:"attachment"`
	ThumbnailEdge uint32       `json:"thumbnail_edge,omitempty"`
}

func DefaultCommandDownloadAttachmentPayload

func DefaultCommandDownloadAttachmentPayload() CommandDownloadAttachmentPayload

func (CommandDownloadAttachmentPayload) MarshalJSON

func (value CommandDownloadAttachmentPayload) MarshalJSON() ([]byte, error)

func (*CommandDownloadAttachmentPayload) UnmarshalJSON

func (value *CommandDownloadAttachmentPayload) UnmarshalJSON(data []byte) error

type CommandDownloadBackupPayload

type CommandDownloadBackupPayload struct {
	ExpectedRevision uint64 `json:"expected_revision"`
}

func DefaultCommandDownloadBackupPayload

func DefaultCommandDownloadBackupPayload() CommandDownloadBackupPayload

func (CommandDownloadBackupPayload) MarshalJSON

func (value CommandDownloadBackupPayload) MarshalJSON() ([]byte, error)

func (*CommandDownloadBackupPayload) UnmarshalJSON

func (value *CommandDownloadBackupPayload) UnmarshalJSON(data []byte) error

type CommandDownloadFilePayload

type CommandDownloadFilePayload struct {
	Worktree      WorktreeID `json:"worktree"`
	Path          string     `json:"path"`
	ThumbnailEdge uint32     `json:"thumbnail_edge,omitempty"`
}

func DefaultCommandDownloadFilePayload

func DefaultCommandDownloadFilePayload() CommandDownloadFilePayload

func (CommandDownloadFilePayload) MarshalJSON

func (value CommandDownloadFilePayload) MarshalJSON() ([]byte, error)

func (*CommandDownloadFilePayload) UnmarshalJSON

func (value *CommandDownloadFilePayload) UnmarshalJSON(data []byte) error

type CommandDownloadImagePayload

type CommandDownloadImagePayload struct {
	Session       SessionID         `json:"session"`
	Image         ConversationImage `json:"image"`
	ThumbnailEdge uint32            `json:"thumbnail_edge,omitempty"`
}

func DefaultCommandDownloadImagePayload

func DefaultCommandDownloadImagePayload() CommandDownloadImagePayload

func (CommandDownloadImagePayload) MarshalJSON

func (value CommandDownloadImagePayload) MarshalJSON() ([]byte, error)

func (*CommandDownloadImagePayload) UnmarshalJSON

func (value *CommandDownloadImagePayload) UnmarshalJSON(data []byte) error

type CommandDownloadSshFilePayload

type CommandDownloadSshFilePayload struct {
	Profile          SshID  `json:"profile"`
	ExpectedRevision uint64 `json:"expected_revision"`
	Path             string `json:"path"`
}

func DefaultCommandDownloadSshFilePayload

func DefaultCommandDownloadSshFilePayload() CommandDownloadSshFilePayload

func (CommandDownloadSshFilePayload) MarshalJSON

func (value CommandDownloadSshFilePayload) MarshalJSON() ([]byte, error)

func (*CommandDownloadSshFilePayload) UnmarshalJSON

func (value *CommandDownloadSshFilePayload) UnmarshalJSON(data []byte) error

type CommandEditFilePayload

type CommandEditFilePayload struct {
	Worktree         WorktreeID  `json:"worktree"`
	Path             string      `json:"path"`
	OldText          *string     `json:"old_text,omitempty"`
	NewText          *string     `json:"new_text,omitempty"`
	ReplaceAll       bool        `json:"replace_all,omitempty"`
	Edits            *[]FileEdit `json:"edits,omitempty"`
	ExpectedRevision string      `json:"expected_revision"`
}

func DefaultCommandEditFilePayload

func DefaultCommandEditFilePayload() CommandEditFilePayload

func (CommandEditFilePayload) MarshalJSON

func (value CommandEditFilePayload) MarshalJSON() ([]byte, error)

func (*CommandEditFilePayload) UnmarshalJSON

func (value *CommandEditFilePayload) UnmarshalJSON(data []byte) error

type CommandEditNotebookPayload

type CommandEditNotebookPayload struct {
	Worktree WorktreeID   `json:"worktree"`
	Edit     NotebookEdit `json:"edit"`
}

func DefaultCommandEditNotebookPayload

func DefaultCommandEditNotebookPayload() CommandEditNotebookPayload

func (CommandEditNotebookPayload) MarshalJSON

func (value CommandEditNotebookPayload) MarshalJSON() ([]byte, error)

func (*CommandEditNotebookPayload) UnmarshalJSON

func (value *CommandEditNotebookPayload) UnmarshalJSON(data []byte) error

type CommandEditQueuedTurnPayload

type CommandEditQueuedTurnPayload struct {
	Turn             TurnID            `json:"turn"`
	ExpectedRevision uint64            `json:"expected_revision"`
	Message          ConversationInput `json:"message"`
}

func DefaultCommandEditQueuedTurnPayload

func DefaultCommandEditQueuedTurnPayload() CommandEditQueuedTurnPayload

func (CommandEditQueuedTurnPayload) MarshalJSON

func (value CommandEditQueuedTurnPayload) MarshalJSON() ([]byte, error)

func (*CommandEditQueuedTurnPayload) UnmarshalJSON

func (value *CommandEditQueuedTurnPayload) UnmarshalJSON(data []byte) error

type CommandExecuteProviderHttpPayload

type CommandExecuteProviderHttpPayload struct {
	Provider         ProviderID        `json:"provider"`
	ExpectedRevision uint64            `json:"expected_revision"`
	Request          string            `json:"request"`
	Input            map[string]string `json:"input"`
}

func DefaultCommandExecuteProviderHttpPayload

func DefaultCommandExecuteProviderHttpPayload() CommandExecuteProviderHttpPayload

func (CommandExecuteProviderHttpPayload) MarshalJSON

func (value CommandExecuteProviderHttpPayload) MarshalJSON() ([]byte, error)

func (*CommandExecuteProviderHttpPayload) UnmarshalJSON

func (value *CommandExecuteProviderHttpPayload) UnmarshalJSON(data []byte) error

type CommandExportBackupPayload

type CommandExportBackupPayload struct {
	ExpectedRevision uint64 `json:"expected_revision"`
}

func DefaultCommandExportBackupPayload

func DefaultCommandExportBackupPayload() CommandExportBackupPayload

func (CommandExportBackupPayload) MarshalJSON

func (value CommandExportBackupPayload) MarshalJSON() ([]byte, error)

func (*CommandExportBackupPayload) UnmarshalJSON

func (value *CommandExportBackupPayload) UnmarshalJSON(data []byte) error

type CommandFindFilesPayload

type CommandFindFilesPayload struct {
	Worktree WorktreeID `json:"worktree"`
	Globs    []string   `json:"globs"`
	Path     string     `json:"path"`
	Limit    uint64     `json:"limit"`
	Offset   uint64     `json:"offset"`
}

func DefaultCommandFindFilesPayload

func DefaultCommandFindFilesPayload() CommandFindFilesPayload

func (CommandFindFilesPayload) MarshalJSON

func (value CommandFindFilesPayload) MarshalJSON() ([]byte, error)

func (*CommandFindFilesPayload) UnmarshalJSON

func (value *CommandFindFilesPayload) UnmarshalJSON(data []byte) error

type CommandFinishAttachmentUploadPayload

type CommandFinishAttachmentUploadPayload struct {
	Worktree WorktreeID `json:"worktree"`
	Stream   StreamID   `json:"stream"`
}

func DefaultCommandFinishAttachmentUploadPayload

func DefaultCommandFinishAttachmentUploadPayload() CommandFinishAttachmentUploadPayload

func (CommandFinishAttachmentUploadPayload) MarshalJSON

func (value CommandFinishAttachmentUploadPayload) MarshalJSON() ([]byte, error)

func (*CommandFinishAttachmentUploadPayload) UnmarshalJSON

func (value *CommandFinishAttachmentUploadPayload) UnmarshalJSON(data []byte) error

type CommandFinishFileUploadPayload

type CommandFinishFileUploadPayload struct {
	Worktree WorktreeID `json:"worktree"`
	Path     string     `json:"path"`
	Stream   StreamID   `json:"stream"`
}

func DefaultCommandFinishFileUploadPayload

func DefaultCommandFinishFileUploadPayload() CommandFinishFileUploadPayload

func (CommandFinishFileUploadPayload) MarshalJSON

func (value CommandFinishFileUploadPayload) MarshalJSON() ([]byte, error)

func (*CommandFinishFileUploadPayload) UnmarshalJSON

func (value *CommandFinishFileUploadPayload) UnmarshalJSON(data []byte) error

type CommandFinishSshUploadPayload

type CommandFinishSshUploadPayload struct {
	Profile          SshID    `json:"profile"`
	ExpectedRevision uint64   `json:"expected_revision"`
	Path             string   `json:"path"`
	Stream           StreamID `json:"stream"`
}

func DefaultCommandFinishSshUploadPayload

func DefaultCommandFinishSshUploadPayload() CommandFinishSshUploadPayload

func (CommandFinishSshUploadPayload) MarshalJSON

func (value CommandFinishSshUploadPayload) MarshalJSON() ([]byte, error)

func (*CommandFinishSshUploadPayload) UnmarshalJSON

func (value *CommandFinishSshUploadPayload) UnmarshalJSON(data []byte) error

type CommandForkConversationAtPayload

type CommandForkConversationAtPayload struct {
	Session          SessionID  `json:"session"`
	Worktree         WorktreeID `json:"worktree"`
	ExpectedRevision uint64     `json:"expected_revision"`
}

func DefaultCommandForkConversationAtPayload

func DefaultCommandForkConversationAtPayload() CommandForkConversationAtPayload

func (CommandForkConversationAtPayload) MarshalJSON

func (value CommandForkConversationAtPayload) MarshalJSON() ([]byte, error)

func (*CommandForkConversationAtPayload) UnmarshalJSON

func (value *CommandForkConversationAtPayload) UnmarshalJSON(data []byte) error

type CommandForkConversationPayload

type CommandForkConversationPayload struct {
	Session          SessionID `json:"session"`
	Through          TurnID    `json:"through"`
	ExpectedRevision uint64    `json:"expected_revision"`
}

func DefaultCommandForkConversationPayload

func DefaultCommandForkConversationPayload() CommandForkConversationPayload

func (CommandForkConversationPayload) MarshalJSON

func (value CommandForkConversationPayload) MarshalJSON() ([]byte, error)

func (*CommandForkConversationPayload) UnmarshalJSON

func (value *CommandForkConversationPayload) UnmarshalJSON(data []byte) error

type CommandGeneratePluginTextPayload

type CommandGeneratePluginTextPayload struct {
	Prompt string  `json:"prompt"`
	Model  string  `json:"model"`
	Effort *Effort `json:"effort,omitempty"`
}

func DefaultCommandGeneratePluginTextPayload

func DefaultCommandGeneratePluginTextPayload() CommandGeneratePluginTextPayload

func (CommandGeneratePluginTextPayload) MarshalJSON

func (value CommandGeneratePluginTextPayload) MarshalJSON() ([]byte, error)

func (*CommandGeneratePluginTextPayload) UnmarshalJSON

func (value *CommandGeneratePluginTextPayload) UnmarshalJSON(data []byte) error

type CommandGraphCodePayload

type CommandGraphCodePayload struct {
	Worktree WorktreeID     `json:"worktree"`
	Query    CodeIndexGraph `json:"query"`
}

func DefaultCommandGraphCodePayload

func DefaultCommandGraphCodePayload() CommandGraphCodePayload

func (CommandGraphCodePayload) MarshalJSON

func (value CommandGraphCodePayload) MarshalJSON() ([]byte, error)

func (*CommandGraphCodePayload) UnmarshalJSON

func (value *CommandGraphCodePayload) UnmarshalJSON(data []byte) error

type CommandGuideQueuedTurnPayload

type CommandGuideQueuedTurnPayload struct {
	Turn             TurnID `json:"turn"`
	Recipient        TurnID `json:"recipient"`
	ExpectedRevision uint64 `json:"expected_revision"`
}

func DefaultCommandGuideQueuedTurnPayload

func DefaultCommandGuideQueuedTurnPayload() CommandGuideQueuedTurnPayload

func (CommandGuideQueuedTurnPayload) MarshalJSON

func (value CommandGuideQueuedTurnPayload) MarshalJSON() ([]byte, error)

func (*CommandGuideQueuedTurnPayload) UnmarshalJSON

func (value *CommandGuideQueuedTurnPayload) UnmarshalJSON(data []byte) error

type CommandGuideTurnPayload

type CommandGuideTurnPayload struct {
	Recipient        TurnID            `json:"recipient"`
	ExpectedRevision uint64            `json:"expected_revision"`
	Message          ConversationInput `json:"message"`
}

func DefaultCommandGuideTurnPayload

func DefaultCommandGuideTurnPayload() CommandGuideTurnPayload

func (CommandGuideTurnPayload) MarshalJSON

func (value CommandGuideTurnPayload) MarshalJSON() ([]byte, error)

func (*CommandGuideTurnPayload) UnmarshalJSON

func (value *CommandGuideTurnPayload) UnmarshalJSON(data []byte) error

type CommandImportConfigurationPayload added in v0.2.5

type CommandImportConfigurationPayload struct {
	Document json.RawMessage `json:"document"`
	Preview  bool            `json:"preview"`
}

CommandImportConfigurationPayload merges a document into this Node's configuration. A preview applies it and rolls it back, reporting the same outcome without changing anything.

func DefaultCommandImportConfigurationPayload added in v0.2.5

func DefaultCommandImportConfigurationPayload() CommandImportConfigurationPayload

func (CommandImportConfigurationPayload) MarshalJSON added in v0.2.5

func (value CommandImportConfigurationPayload) MarshalJSON() ([]byte, error)

func (*CommandImportConfigurationPayload) UnmarshalJSON added in v0.2.5

func (value *CommandImportConfigurationPayload) UnmarshalJSON(data []byte) error

type CommandInputTerminalPayload

type CommandInputTerminalPayload struct {
	Terminal TerminalID      `json:"terminal"`
	Revision uint64          `json:"revision"`
	Inputs   []TerminalInput `json:"inputs"`
	Bytes    Bytes           `json:"bytes,omitempty"`
	Clear    bool            `json:"clear,omitempty"`
}

func DefaultCommandInputTerminalPayload

func DefaultCommandInputTerminalPayload() CommandInputTerminalPayload

func (CommandInputTerminalPayload) MarshalJSON

func (value CommandInputTerminalPayload) MarshalJSON() ([]byte, error)

func (*CommandInputTerminalPayload) UnmarshalJSON

func (value *CommandInputTerminalPayload) UnmarshalJSON(data []byte) error

type CommandInspectConnectorCliPayload

type CommandInspectConnectorCliPayload struct {
	Package   PluginReference `json:"package"`
	Connector string          `json:"connector"`
}

func DefaultCommandInspectConnectorCliPayload

func DefaultCommandInspectConnectorCliPayload() CommandInspectConnectorCliPayload

func (CommandInspectConnectorCliPayload) MarshalJSON

func (value CommandInspectConnectorCliPayload) MarshalJSON() ([]byte, error)

func (*CommandInspectConnectorCliPayload) UnmarshalJSON

func (value *CommandInspectConnectorCliPayload) UnmarshalJSON(data []byte) error

type CommandInspectGitPayload

type CommandInspectGitPayload struct {
	Worktree WorktreeID `json:"worktree"`
}

func DefaultCommandInspectGitPayload

func DefaultCommandInspectGitPayload() CommandInspectGitPayload

func (CommandInspectGitPayload) MarshalJSON

func (value CommandInspectGitPayload) MarshalJSON() ([]byte, error)

func (*CommandInspectGitPayload) UnmarshalJSON

func (value *CommandInspectGitPayload) UnmarshalJSON(data []byte) error

type CommandInspectPluginSourcePayload

type CommandInspectPluginSourcePayload struct {
	Source PluginSkillsSource `json:"source"`
}

func DefaultCommandInspectPluginSourcePayload

func DefaultCommandInspectPluginSourcePayload() CommandInspectPluginSourcePayload

func (CommandInspectPluginSourcePayload) MarshalJSON

func (value CommandInspectPluginSourcePayload) MarshalJSON() ([]byte, error)

func (*CommandInspectPluginSourcePayload) UnmarshalJSON

func (value *CommandInspectPluginSourcePayload) UnmarshalJSON(data []byte) error

type CommandInspectPluginUploadPayload

type CommandInspectPluginUploadPayload struct {
	Stream StreamID `json:"stream"`
}

func DefaultCommandInspectPluginUploadPayload

func DefaultCommandInspectPluginUploadPayload() CommandInspectPluginUploadPayload

func (CommandInspectPluginUploadPayload) MarshalJSON

func (value CommandInspectPluginUploadPayload) MarshalJSON() ([]byte, error)

func (*CommandInspectPluginUploadPayload) UnmarshalJSON

func (value *CommandInspectPluginUploadPayload) UnmarshalJSON(data []byte) error

type CommandInspectRequestPayload

type CommandInspectRequestPayload struct {
	ID     RequestID `json:"id"`
	Digest string    `json:"digest"`
}

func DefaultCommandInspectRequestPayload

func DefaultCommandInspectRequestPayload() CommandInspectRequestPayload

func (CommandInspectRequestPayload) MarshalJSON

func (value CommandInspectRequestPayload) MarshalJSON() ([]byte, error)

func (*CommandInspectRequestPayload) UnmarshalJSON

func (value *CommandInspectRequestPayload) UnmarshalJSON(data []byte) error

type CommandInspectTerminalPayload

type CommandInspectTerminalPayload struct {
	Terminal TerminalID `json:"terminal"`
}

func DefaultCommandInspectTerminalPayload

func DefaultCommandInspectTerminalPayload() CommandInspectTerminalPayload

func (CommandInspectTerminalPayload) MarshalJSON

func (value CommandInspectTerminalPayload) MarshalJSON() ([]byte, error)

func (*CommandInspectTerminalPayload) UnmarshalJSON

func (value *CommandInspectTerminalPayload) UnmarshalJSON(data []byte) error

type CommandInstallBundledPluginPayload

type CommandInstallBundledPluginPayload struct {
	Name             string `json:"name"`
	ExpectedRevision uint64 `json:"expected_revision"`
}

func DefaultCommandInstallBundledPluginPayload

func DefaultCommandInstallBundledPluginPayload() CommandInstallBundledPluginPayload

func (CommandInstallBundledPluginPayload) MarshalJSON

func (value CommandInstallBundledPluginPayload) MarshalJSON() ([]byte, error)

func (*CommandInstallBundledPluginPayload) UnmarshalJSON

func (value *CommandInstallBundledPluginPayload) UnmarshalJSON(data []byte) error

type CommandInstallCatalogPluginPayload

type CommandInstallCatalogPluginPayload struct {
	Selection        PluginCatalogSelection `json:"selection"`
	ExpectedRevision uint64                 `json:"expected_revision"`
	Mode             PluginInstallMode      `json:"mode"`
}

func DefaultCommandInstallCatalogPluginPayload

func DefaultCommandInstallCatalogPluginPayload() CommandInstallCatalogPluginPayload

func (*CommandInstallCatalogPluginPayload) UnmarshalJSON

func (value *CommandInstallCatalogPluginPayload) UnmarshalJSON(data []byte) error

type CommandInstallHostPayload

type CommandInstallHostPayload struct {
	Profile          SshID             `json:"profile"`
	ExpectedRevision uint64            `json:"expected_revision"`
	Network          *NetworkSelection `json:"network,omitempty"`
}

func DefaultCommandInstallHostPayload

func DefaultCommandInstallHostPayload() CommandInstallHostPayload

func (CommandInstallHostPayload) MarshalJSON

func (value CommandInstallHostPayload) MarshalJSON() ([]byte, error)

func (*CommandInstallHostPayload) UnmarshalJSON

func (value *CommandInstallHostPayload) UnmarshalJSON(data []byte) error

type CommandInstallLocalModelPayload

type CommandInstallLocalModelPayload struct {
	ID string `json:"id"`
}

func DefaultCommandInstallLocalModelPayload

func DefaultCommandInstallLocalModelPayload() CommandInstallLocalModelPayload

func (CommandInstallLocalModelPayload) MarshalJSON

func (value CommandInstallLocalModelPayload) MarshalJSON() ([]byte, error)

func (*CommandInstallLocalModelPayload) UnmarshalJSON

func (value *CommandInstallLocalModelPayload) UnmarshalJSON(data []byte) error

type CommandInstallMcpPayload

type CommandInstallMcpPayload struct {
	Name             string                                `json:"name"`
	ExpectedRevision uint64                                `json:"expected_revision"`
	Definition       PluginMcpDefinition                   `json:"definition"`
	Secrets          map[string]PluginSettingsSecretUpdate `json:"secrets"`
}

func DefaultCommandInstallMcpPayload

func DefaultCommandInstallMcpPayload() CommandInstallMcpPayload

func (CommandInstallMcpPayload) MarshalJSON

func (value CommandInstallMcpPayload) MarshalJSON() ([]byte, error)

func (*CommandInstallMcpPayload) UnmarshalJSON

func (value *CommandInstallMcpPayload) UnmarshalJSON(data []byte) error

type CommandInstallPluginPayload

type CommandInstallPluginPayload struct {
	Worktree         WorktreeID `json:"worktree"`
	Path             string     `json:"path"`
	Name             string     `json:"name"`
	ExpectedRevision uint64     `json:"expected_revision"`
	ExpectedDigest   *string    `json:"expected_digest,omitempty"`
}

func DefaultCommandInstallPluginPayload

func DefaultCommandInstallPluginPayload() CommandInstallPluginPayload

func (CommandInstallPluginPayload) MarshalJSON

func (value CommandInstallPluginPayload) MarshalJSON() ([]byte, error)

func (*CommandInstallPluginPayload) UnmarshalJSON

func (value *CommandInstallPluginPayload) UnmarshalJSON(data []byte) error

type CommandInstallPluginSourcePayload

type CommandInstallPluginSourcePayload struct {
	Source           PluginSkillsResolved `json:"source"`
	Path             string               `json:"path"`
	Name             string               `json:"name"`
	ExpectedRevision uint64               `json:"expected_revision"`
}

func DefaultCommandInstallPluginSourcePayload

func DefaultCommandInstallPluginSourcePayload() CommandInstallPluginSourcePayload

func (CommandInstallPluginSourcePayload) MarshalJSON

func (value CommandInstallPluginSourcePayload) MarshalJSON() ([]byte, error)

func (*CommandInstallPluginSourcePayload) UnmarshalJSON

func (value *CommandInstallPluginSourcePayload) UnmarshalJSON(data []byte) error

type CommandInstallPluginUploadPayload

type CommandInstallPluginUploadPayload struct {
	Stream           StreamID           `json:"stream"`
	Source           PluginUploadSource `json:"source"`
	Name             string             `json:"name"`
	ExpectedRevision uint64             `json:"expected_revision"`
}

func DefaultCommandInstallPluginUploadPayload

func DefaultCommandInstallPluginUploadPayload() CommandInstallPluginUploadPayload

func (CommandInstallPluginUploadPayload) MarshalJSON

func (value CommandInstallPluginUploadPayload) MarshalJSON() ([]byte, error)

func (*CommandInstallPluginUploadPayload) UnmarshalJSON

func (value *CommandInstallPluginUploadPayload) UnmarshalJSON(data []byte) error

type CommandInstallRegistrySkillPayload

type CommandInstallRegistrySkillPayload struct {
	Source           PluginSkillsRegistryResolved `json:"source"`
	Name             string                       `json:"name"`
	ExpectedRevision uint64                       `json:"expected_revision"`
}

func DefaultCommandInstallRegistrySkillPayload

func DefaultCommandInstallRegistrySkillPayload() CommandInstallRegistrySkillPayload

func (CommandInstallRegistrySkillPayload) MarshalJSON

func (value CommandInstallRegistrySkillPayload) MarshalJSON() ([]byte, error)

func (*CommandInstallRegistrySkillPayload) UnmarshalJSON

func (value *CommandInstallRegistrySkillPayload) UnmarshalJSON(data []byte) error

type CommandInstallSkillPayload

type CommandInstallSkillPayload struct {
	Source           PluginSkillsResolved `json:"source"`
	Path             string               `json:"path"`
	Name             string               `json:"name"`
	ExpectedRevision uint64               `json:"expected_revision"`
}

func DefaultCommandInstallSkillPayload

func DefaultCommandInstallSkillPayload() CommandInstallSkillPayload

func (CommandInstallSkillPayload) MarshalJSON

func (value CommandInstallSkillPayload) MarshalJSON() ([]byte, error)

func (*CommandInstallSkillPayload) UnmarshalJSON

func (value *CommandInstallSkillPayload) UnmarshalJSON(data []byte) error

type CommandInstallSkillUploadPayload

type CommandInstallSkillUploadPayload struct {
	Stream           StreamID             `json:"stream"`
	Source           PluginSkillsImported `json:"source"`
	Name             string               `json:"name"`
	ExpectedRevision uint64               `json:"expected_revision"`
}

func DefaultCommandInstallSkillUploadPayload

func DefaultCommandInstallSkillUploadPayload() CommandInstallSkillUploadPayload

func (CommandInstallSkillUploadPayload) MarshalJSON

func (value CommandInstallSkillUploadPayload) MarshalJSON() ([]byte, error)

func (*CommandInstallSkillUploadPayload) UnmarshalJSON

func (value *CommandInstallSkillUploadPayload) UnmarshalJSON(data []byte) error

type CommandInstallWslHostPayload

type CommandInstallWslHostPayload struct {
	Distribution string            `json:"distribution"`
	Network      *NetworkSelection `json:"network,omitempty"`
}

func DefaultCommandInstallWslHostPayload

func DefaultCommandInstallWslHostPayload() CommandInstallWslHostPayload

func (CommandInstallWslHostPayload) MarshalJSON

func (value CommandInstallWslHostPayload) MarshalJSON() ([]byte, error)

func (*CommandInstallWslHostPayload) UnmarshalJSON

func (value *CommandInstallWslHostPayload) UnmarshalJSON(data []byte) error

type CommandListArtifactRevisionsPayload

type CommandListArtifactRevisionsPayload struct {
	ID      ArtifactID `json:"id"`
	Before  *uint32    `json:"before"`
	Limit   uint16     `json:"limit"`
	Session *SessionID `json:"session"`
}

func DefaultCommandListArtifactRevisionsPayload

func DefaultCommandListArtifactRevisionsPayload() CommandListArtifactRevisionsPayload

func (CommandListArtifactRevisionsPayload) MarshalJSON

func (value CommandListArtifactRevisionsPayload) MarshalJSON() ([]byte, error)

func (*CommandListArtifactRevisionsPayload) UnmarshalJSON

func (value *CommandListArtifactRevisionsPayload) UnmarshalJSON(data []byte) error

type CommandListArtifactsPayload

type CommandListArtifactsPayload struct {
	Session SessionID   `json:"session"`
	After   *ArtifactID `json:"after"`
	Limit   uint16      `json:"limit"`
}

func DefaultCommandListArtifactsPayload

func DefaultCommandListArtifactsPayload() CommandListArtifactsPayload

func (CommandListArtifactsPayload) MarshalJSON

func (value CommandListArtifactsPayload) MarshalJSON() ([]byte, error)

func (*CommandListArtifactsPayload) UnmarshalJSON

func (value *CommandListArtifactsPayload) UnmarshalJSON(data []byte) error

type CommandListAssociatedSessionsPayload

type CommandListAssociatedSessionsPayload struct {
	Association ConversationAssociation `json:"association"`
	Before      *SessionID              `json:"before"`
	Limit       uint16                  `json:"limit"`
}

func DefaultCommandListAssociatedSessionsPayload

func DefaultCommandListAssociatedSessionsPayload() CommandListAssociatedSessionsPayload

func (CommandListAssociatedSessionsPayload) MarshalJSON

func (value CommandListAssociatedSessionsPayload) MarshalJSON() ([]byte, error)

func (*CommandListAssociatedSessionsPayload) UnmarshalJSON

func (value *CommandListAssociatedSessionsPayload) UnmarshalJSON(data []byte) error

type CommandListChannelPresetsPayload

type CommandListChannelPresetsPayload struct {
	RefreshPartners bool `json:"refresh_partners"`
}

func DefaultCommandListChannelPresetsPayload

func DefaultCommandListChannelPresetsPayload() CommandListChannelPresetsPayload

func (CommandListChannelPresetsPayload) MarshalJSON

func (value CommandListChannelPresetsPayload) MarshalJSON() ([]byte, error)

func (*CommandListChannelPresetsPayload) UnmarshalJSON

func (value *CommandListChannelPresetsPayload) UnmarshalJSON(data []byte) error

type CommandListCommandsPayload

type CommandListCommandsPayload struct {
	Session SessionID `json:"session"`
}

func DefaultCommandListCommandsPayload

func DefaultCommandListCommandsPayload() CommandListCommandsPayload

func (CommandListCommandsPayload) MarshalJSON

func (value CommandListCommandsPayload) MarshalJSON() ([]byte, error)

func (*CommandListCommandsPayload) UnmarshalJSON

func (value *CommandListCommandsPayload) UnmarshalJSON(data []byte) error

type CommandListConversationAssetsPayload

type CommandListConversationAssetsPayload struct {
	Session SessionID               `json:"session"`
	Query   ConversationAssetsQuery `json:"query"`
}

func DefaultCommandListConversationAssetsPayload

func DefaultCommandListConversationAssetsPayload() CommandListConversationAssetsPayload

func (CommandListConversationAssetsPayload) MarshalJSON

func (value CommandListConversationAssetsPayload) MarshalJSON() ([]byte, error)

func (*CommandListConversationAssetsPayload) UnmarshalJSON

func (value *CommandListConversationAssetsPayload) UnmarshalJSON(data []byte) error

type CommandListDirectoryPayload

type CommandListDirectoryPayload struct {
	Worktree WorktreeID       `json:"worktree"`
	Path     string           `json:"path"`
	After    *DirectoryCursor `json:"after"`
}

func DefaultCommandListDirectoryPayload

func DefaultCommandListDirectoryPayload() CommandListDirectoryPayload

func (CommandListDirectoryPayload) MarshalJSON

func (value CommandListDirectoryPayload) MarshalJSON() ([]byte, error)

func (*CommandListDirectoryPayload) UnmarshalJSON

func (value *CommandListDirectoryPayload) UnmarshalJSON(data []byte) error

type CommandListFileCheckpointsPayload

type CommandListFileCheckpointsPayload struct {
	Session SessionID     `json:"session"`
	Turn    TurnID        `json:"turn"`
	Before  *CheckpointID `json:"before"`
	Limit   uint16        `json:"limit"`
}

func DefaultCommandListFileCheckpointsPayload

func DefaultCommandListFileCheckpointsPayload() CommandListFileCheckpointsPayload

func (CommandListFileCheckpointsPayload) MarshalJSON

func (value CommandListFileCheckpointsPayload) MarshalJSON() ([]byte, error)

func (*CommandListFileCheckpointsPayload) UnmarshalJSON

func (value *CommandListFileCheckpointsPayload) UnmarshalJSON(data []byte) error

type CommandListGitBranchesPayload

type CommandListGitBranchesPayload struct {
	Worktree WorktreeID `json:"worktree"`
}

func DefaultCommandListGitBranchesPayload

func DefaultCommandListGitBranchesPayload() CommandListGitBranchesPayload

func (CommandListGitBranchesPayload) MarshalJSON

func (value CommandListGitBranchesPayload) MarshalJSON() ([]byte, error)

func (*CommandListGitBranchesPayload) UnmarshalJSON

func (value *CommandListGitBranchesPayload) UnmarshalJSON(data []byte) error

type CommandListGitChangesPayload

type CommandListGitChangesPayload struct {
	Worktree WorktreeID        `json:"worktree"`
	Target   *GitChangeTarget  `json:"target"`
	Cursor   *GitChangesCursor `json:"cursor"`
	Limit    uint64            `json:"limit"`
}

func DefaultCommandListGitChangesPayload

func DefaultCommandListGitChangesPayload() CommandListGitChangesPayload

func (CommandListGitChangesPayload) MarshalJSON

func (value CommandListGitChangesPayload) MarshalJSON() ([]byte, error)

func (*CommandListGitChangesPayload) UnmarshalJSON

func (value *CommandListGitChangesPayload) UnmarshalJSON(data []byte) error

type CommandListGitRemoteTagsPayload

type CommandListGitRemoteTagsPayload struct {
	Worktree WorktreeID `json:"worktree"`
	Remote   string     `json:"remote"`
}

func DefaultCommandListGitRemoteTagsPayload

func DefaultCommandListGitRemoteTagsPayload() CommandListGitRemoteTagsPayload

func (CommandListGitRemoteTagsPayload) MarshalJSON

func (value CommandListGitRemoteTagsPayload) MarshalJSON() ([]byte, error)

func (*CommandListGitRemoteTagsPayload) UnmarshalJSON

func (value *CommandListGitRemoteTagsPayload) UnmarshalJSON(data []byte) error

type CommandListNetworkPresetsPayload

type CommandListNetworkPresetsPayload struct {
	Refresh bool `json:"refresh"`
}

func DefaultCommandListNetworkPresetsPayload

func DefaultCommandListNetworkPresetsPayload() CommandListNetworkPresetsPayload

func (CommandListNetworkPresetsPayload) MarshalJSON

func (value CommandListNetworkPresetsPayload) MarshalJSON() ([]byte, error)

func (*CommandListNetworkPresetsPayload) UnmarshalJSON

func (value *CommandListNetworkPresetsPayload) UnmarshalJSON(data []byte) error

type CommandListPluginKeysPayload

type CommandListPluginKeysPayload struct {
	Prefix string             `json:"prefix"`
	After  *string            `json:"after"`
	Limit  uint16             `json:"limit"`
	Scope  PluginStorageScope `json:"scope,omitempty"`
}

func DefaultCommandListPluginKeysPayload

func DefaultCommandListPluginKeysPayload() CommandListPluginKeysPayload

func (CommandListPluginKeysPayload) MarshalJSON

func (value CommandListPluginKeysPayload) MarshalJSON() ([]byte, error)

func (*CommandListPluginKeysPayload) UnmarshalJSON

func (value *CommandListPluginKeysPayload) UnmarshalJSON(data []byte) error

type CommandListSshTerminalsPayload

type CommandListSshTerminalsPayload struct {
	Profile SshID `json:"profile"`
}

func DefaultCommandListSshTerminalsPayload

func DefaultCommandListSshTerminalsPayload() CommandListSshTerminalsPayload

func (CommandListSshTerminalsPayload) MarshalJSON

func (value CommandListSshTerminalsPayload) MarshalJSON() ([]byte, error)

func (*CommandListSshTerminalsPayload) UnmarshalJSON

func (value *CommandListSshTerminalsPayload) UnmarshalJSON(data []byte) error

type CommandListTerminalToolsPayload

type CommandListTerminalToolsPayload struct {
	Worktree WorktreeID `json:"worktree"`
}

func DefaultCommandListTerminalToolsPayload

func DefaultCommandListTerminalToolsPayload() CommandListTerminalToolsPayload

func (CommandListTerminalToolsPayload) MarshalJSON

func (value CommandListTerminalToolsPayload) MarshalJSON() ([]byte, error)

func (*CommandListTerminalToolsPayload) UnmarshalJSON

func (value *CommandListTerminalToolsPayload) UnmarshalJSON(data []byte) error

type CommandListTerminalsPayload

type CommandListTerminalsPayload struct {
	Worktree WorktreeID `json:"worktree"`
}

func DefaultCommandListTerminalsPayload

func DefaultCommandListTerminalsPayload() CommandListTerminalsPayload

func (CommandListTerminalsPayload) MarshalJSON

func (value CommandListTerminalsPayload) MarshalJSON() ([]byte, error)

func (*CommandListTerminalsPayload) UnmarshalJSON

func (value *CommandListTerminalsPayload) UnmarshalJSON(data []byte) error

type CommandListWorktreesPayload

type CommandListWorktreesPayload struct {
	Worktree WorktreeID `json:"worktree"`
}

func DefaultCommandListWorktreesPayload

func DefaultCommandListWorktreesPayload() CommandListWorktreesPayload

func (CommandListWorktreesPayload) MarshalJSON

func (value CommandListWorktreesPayload) MarshalJSON() ([]byte, error)

func (*CommandListWorktreesPayload) UnmarshalJSON

func (value *CommandListWorktreesPayload) UnmarshalJSON(data []byte) error

type CommandMarkNotificationReadPayload

type CommandMarkNotificationReadPayload struct {
	ID NotificationID `json:"id"`
}

func DefaultCommandMarkNotificationReadPayload

func DefaultCommandMarkNotificationReadPayload() CommandMarkNotificationReadPayload

func (CommandMarkNotificationReadPayload) MarshalJSON

func (value CommandMarkNotificationReadPayload) MarshalJSON() ([]byte, error)

func (*CommandMarkNotificationReadPayload) UnmarshalJSON

func (value *CommandMarkNotificationReadPayload) UnmarshalJSON(data []byte) error

type CommandMarkNotificationsReadPayload

type CommandMarkNotificationsReadPayload struct {
	IDs []NotificationID `json:"ids"`
}

func DefaultCommandMarkNotificationsReadPayload

func DefaultCommandMarkNotificationsReadPayload() CommandMarkNotificationsReadPayload

func (CommandMarkNotificationsReadPayload) MarshalJSON

func (value CommandMarkNotificationsReadPayload) MarshalJSON() ([]byte, error)

func (*CommandMarkNotificationsReadPayload) UnmarshalJSON

func (value *CommandMarkNotificationsReadPayload) UnmarshalJSON(data []byte) error

type CommandMergeGitBranchPayload

type CommandMergeGitBranchPayload struct {
	Worktree       WorktreeID `json:"worktree"`
	Name           string     `json:"name"`
	Commit         string     `json:"commit"`
	ExpectedHead   string     `json:"expected_head"`
	ExpectedBranch string     `json:"expected_branch"`
	ExpectedIndex  string     `json:"expected_index"`
}

func DefaultCommandMergeGitBranchPayload

func DefaultCommandMergeGitBranchPayload() CommandMergeGitBranchPayload

func (CommandMergeGitBranchPayload) MarshalJSON

func (value CommandMergeGitBranchPayload) MarshalJSON() ([]byte, error)

func (*CommandMergeGitBranchPayload) UnmarshalJSON

func (value *CommandMergeGitBranchPayload) UnmarshalJSON(data []byte) error

type CommandModifySshFilePayload

type CommandModifySshFilePayload struct {
	Profile          SshID         `json:"profile"`
	ExpectedRevision uint64        `json:"expected_revision"`
	Path             string        `json:"path"`
	Action           SshFileAction `json:"action"`
}

func DefaultCommandModifySshFilePayload

func DefaultCommandModifySshFilePayload() CommandModifySshFilePayload

func (CommandModifySshFilePayload) MarshalJSON

func (value CommandModifySshFilePayload) MarshalJSON() ([]byte, error)

func (*CommandModifySshFilePayload) UnmarshalJSON

func (value *CommandModifySshFilePayload) UnmarshalJSON(data []byte) error

type CommandMoveConversationPayload

type CommandMoveConversationPayload struct {
	Session          SessionID  `json:"session"`
	Worktree         WorktreeID `json:"worktree"`
	ExpectedRevision uint64     `json:"expected_revision"`
}

func DefaultCommandMoveConversationPayload

func DefaultCommandMoveConversationPayload() CommandMoveConversationPayload

func (CommandMoveConversationPayload) MarshalJSON

func (value CommandMoveConversationPayload) MarshalJSON() ([]byte, error)

func (*CommandMoveConversationPayload) UnmarshalJSON

func (value *CommandMoveConversationPayload) UnmarshalJSON(data []byte) error

type CommandMoveEntryToPayload

type CommandMoveEntryToPayload struct {
	Source   WorktreeID `json:"source"`
	Worktree WorktreeID `json:"worktree"`
	From     string     `json:"from"`
	To       string     `json:"to"`
}

func DefaultCommandMoveEntryToPayload

func DefaultCommandMoveEntryToPayload() CommandMoveEntryToPayload

func (CommandMoveEntryToPayload) MarshalJSON

func (value CommandMoveEntryToPayload) MarshalJSON() ([]byte, error)

func (*CommandMoveEntryToPayload) UnmarshalJSON

func (value *CommandMoveEntryToPayload) UnmarshalJSON(data []byte) error

type CommandMoveFilePayload

type CommandMoveFilePayload struct {
	Worktree         WorktreeID `json:"worktree"`
	From             string     `json:"from"`
	To               string     `json:"to"`
	ExpectedRevision string     `json:"expected_revision"`
}

func DefaultCommandMoveFilePayload

func DefaultCommandMoveFilePayload() CommandMoveFilePayload

func (CommandMoveFilePayload) MarshalJSON

func (value CommandMoveFilePayload) MarshalJSON() ([]byte, error)

func (*CommandMoveFilePayload) UnmarshalJSON

func (value *CommandMoveFilePayload) UnmarshalJSON(data []byte) error

type CommandMoveQueuedTurnPayload

type CommandMoveQueuedTurnPayload struct {
	Session          SessionID `json:"session"`
	ExpectedRevision uint64    `json:"expected_revision"`
	Turn             TurnID    `json:"turn"`
	Before           *TurnID   `json:"before"`
}

func DefaultCommandMoveQueuedTurnPayload

func DefaultCommandMoveQueuedTurnPayload() CommandMoveQueuedTurnPayload

func (CommandMoveQueuedTurnPayload) MarshalJSON

func (value CommandMoveQueuedTurnPayload) MarshalJSON() ([]byte, error)

func (*CommandMoveQueuedTurnPayload) UnmarshalJSON

func (value *CommandMoveQueuedTurnPayload) UnmarshalJSON(data []byte) error

type CommandOpenPortPayload

type CommandOpenPortPayload struct {
	Port uint16 `json:"port"`
}

func DefaultCommandOpenPortPayload

func DefaultCommandOpenPortPayload() CommandOpenPortPayload

func (CommandOpenPortPayload) MarshalJSON

func (value CommandOpenPortPayload) MarshalJSON() ([]byte, error)

func (*CommandOpenPortPayload) UnmarshalJSON

func (value *CommandOpenPortPayload) UnmarshalJSON(data []byte) error

type CommandOpenSshTerminalPayload

type CommandOpenSshTerminalPayload struct {
	Profile          SshID             `json:"profile"`
	ExpectedRevision uint64            `json:"expected_revision"`
	Launch           SshTerminalLaunch `json:"launch"`
}

func DefaultCommandOpenSshTerminalPayload

func DefaultCommandOpenSshTerminalPayload() CommandOpenSshTerminalPayload

func (CommandOpenSshTerminalPayload) MarshalJSON

func (value CommandOpenSshTerminalPayload) MarshalJSON() ([]byte, error)

func (*CommandOpenSshTerminalPayload) UnmarshalJSON

func (value *CommandOpenSshTerminalPayload) UnmarshalJSON(data []byte) error

type CommandOpenTerminalPayload

type CommandOpenTerminalPayload struct {
	Terminal   TerminalID         `json:"terminal"`
	Viewport   TerminalViewport   `json:"viewport"`
	Appearance TerminalAppearance `json:"appearance"`
}

func DefaultCommandOpenTerminalPayload

func DefaultCommandOpenTerminalPayload() CommandOpenTerminalPayload

func (CommandOpenTerminalPayload) MarshalJSON

func (value CommandOpenTerminalPayload) MarshalJSON() ([]byte, error)

func (*CommandOpenTerminalPayload) UnmarshalJSON

func (value *CommandOpenTerminalPayload) UnmarshalJSON(data []byte) error

type CommandOpenToolTerminalPayload

type CommandOpenToolTerminalPayload struct {
	Tool   TerminalToolsTool `json:"tool"`
	Launch TerminalLaunch    `json:"launch"`
}

func DefaultCommandOpenToolTerminalPayload

func DefaultCommandOpenToolTerminalPayload() CommandOpenToolTerminalPayload

func (CommandOpenToolTerminalPayload) MarshalJSON

func (value CommandOpenToolTerminalPayload) MarshalJSON() ([]byte, error)

func (*CommandOpenToolTerminalPayload) UnmarshalJSON

func (value *CommandOpenToolTerminalPayload) UnmarshalJSON(data []byte) error

type CommandOutlineCodePayload

type CommandOutlineCodePayload struct {
	Worktree WorktreeID `json:"worktree"`
	Path     string     `json:"path"`
}

func DefaultCommandOutlineCodePayload

func DefaultCommandOutlineCodePayload() CommandOutlineCodePayload

func (CommandOutlineCodePayload) MarshalJSON

func (value CommandOutlineCodePayload) MarshalJSON() ([]byte, error)

func (*CommandOutlineCodePayload) UnmarshalJSON

func (value *CommandOutlineCodePayload) UnmarshalJSON(data []byte) error

type CommandPauseKnowledgeCollectionPayload

type CommandPauseKnowledgeCollectionPayload struct {
	Node             *NodeID     `json:"node,omitempty"`
	ID               KnowledgeID `json:"id"`
	ExpectedRevision uint64      `json:"expected_revision"`
	Paused           bool        `json:"paused"`
}

func DefaultCommandPauseKnowledgeCollectionPayload

func DefaultCommandPauseKnowledgeCollectionPayload() CommandPauseKnowledgeCollectionPayload

func (CommandPauseKnowledgeCollectionPayload) MarshalJSON

func (value CommandPauseKnowledgeCollectionPayload) MarshalJSON() ([]byte, error)

func (*CommandPauseKnowledgeCollectionPayload) UnmarshalJSON

func (value *CommandPauseKnowledgeCollectionPayload) UnmarshalJSON(data []byte) error

type CommandPluginTransactionPayload

type CommandPluginTransactionPayload struct {
	Operations []PluginTransactionOperation `json:"operations"`
}

func DefaultCommandPluginTransactionPayload

func DefaultCommandPluginTransactionPayload() CommandPluginTransactionPayload

func (CommandPluginTransactionPayload) MarshalJSON

func (value CommandPluginTransactionPayload) MarshalJSON() ([]byte, error)

func (*CommandPluginTransactionPayload) UnmarshalJSON

func (value *CommandPluginTransactionPayload) UnmarshalJSON(data []byte) error

type CommandProbeConnectionPayload

type CommandProbeConnectionPayload struct {
	Connection PluginConnectorID `json:"connection"`
}

func DefaultCommandProbeConnectionPayload

func DefaultCommandProbeConnectionPayload() CommandProbeConnectionPayload

func (CommandProbeConnectionPayload) MarshalJSON

func (value CommandProbeConnectionPayload) MarshalJSON() ([]byte, error)

func (*CommandProbeConnectionPayload) UnmarshalJSON

func (value *CommandProbeConnectionPayload) UnmarshalJSON(data []byte) error

type CommandProbeNetworkPayload

type CommandProbeNetworkPayload struct {
	Selection NetworkSelection `json:"selection"`
}

func DefaultCommandProbeNetworkPayload

func DefaultCommandProbeNetworkPayload() CommandProbeNetworkPayload

func (CommandProbeNetworkPayload) MarshalJSON

func (value CommandProbeNetworkPayload) MarshalJSON() ([]byte, error)

func (*CommandProbeNetworkPayload) UnmarshalJSON

func (value *CommandProbeNetworkPayload) UnmarshalJSON(data []byte) error

type CommandPublishNotificationPayload

type CommandPublishNotificationPayload struct {
	Package PluginReference   `json:"package"`
	Content NotificationDraft `json:"content"`
}

func DefaultCommandPublishNotificationPayload

func DefaultCommandPublishNotificationPayload() CommandPublishNotificationPayload

func (CommandPublishNotificationPayload) MarshalJSON

func (value CommandPublishNotificationPayload) MarshalJSON() ([]byte, error)

func (*CommandPublishNotificationPayload) UnmarshalJSON

func (value *CommandPublishNotificationPayload) UnmarshalJSON(data []byte) error

type CommandPutProviderPayload

type CommandPutProviderPayload struct {
	Provider         ConversationProvider `json:"provider"`
	ExpectedRevision uint64               `json:"expected_revision"`
}

func DefaultCommandPutProviderPayload

func DefaultCommandPutProviderPayload() CommandPutProviderPayload

func (CommandPutProviderPayload) MarshalJSON

func (value CommandPutProviderPayload) MarshalJSON() ([]byte, error)

func (*CommandPutProviderPayload) UnmarshalJSON

func (value *CommandPutProviderPayload) UnmarshalJSON(data []byte) error

type CommandPutRolePayload

type CommandPutRolePayload struct {
	Role             RoleProfile `json:"role"`
	ExpectedRevision uint64      `json:"expected_revision"`
}

func DefaultCommandPutRolePayload

func DefaultCommandPutRolePayload() CommandPutRolePayload

func (CommandPutRolePayload) MarshalJSON

func (value CommandPutRolePayload) MarshalJSON() ([]byte, error)

func (*CommandPutRolePayload) UnmarshalJSON

func (value *CommandPutRolePayload) UnmarshalJSON(data []byte) error

type CommandPutTeamPayload

type CommandPutTeamPayload struct {
	Team             TeamProfile `json:"team"`
	ExpectedRevision uint64      `json:"expected_revision"`
}

func DefaultCommandPutTeamPayload

func DefaultCommandPutTeamPayload() CommandPutTeamPayload

func (CommandPutTeamPayload) MarshalJSON

func (value CommandPutTeamPayload) MarshalJSON() ([]byte, error)

func (*CommandPutTeamPayload) UnmarshalJSON

func (value *CommandPutTeamPayload) UnmarshalJSON(data []byte) error

type CommandQueryDatabasePayload

type CommandQueryDatabasePayload struct {
	ReadOnly         bool       `json:"read_only"`
	Database         *string    `json:"database"`
	Profile          DatabaseID `json:"profile"`
	ExpectedRevision uint64     `json:"expected_revision"`
	Sql              string     `json:"sql"`
	RowLimit         uint32     `json:"row_limit"`
	TimeoutMs        uint64     `json:"timeout_ms"`
}

func DefaultCommandQueryDatabasePayload

func DefaultCommandQueryDatabasePayload() CommandQueryDatabasePayload

func (CommandQueryDatabasePayload) MarshalJSON

func (value CommandQueryDatabasePayload) MarshalJSON() ([]byte, error)

func (*CommandQueryDatabasePayload) UnmarshalJSON

func (value *CommandQueryDatabasePayload) UnmarshalJSON(data []byte) error

type CommandQueueTurnPayload

type CommandQueueTurnPayload struct {
	Session          SessionID         `json:"session"`
	ExpectedRevision uint64            `json:"expected_revision"`
	Message          ConversationInput `json:"message"`
	AutoStart        bool              `json:"auto_start,omitempty"`
}

func DefaultCommandQueueTurnPayload

func DefaultCommandQueueTurnPayload() CommandQueueTurnPayload

func (CommandQueueTurnPayload) MarshalJSON

func (value CommandQueueTurnPayload) MarshalJSON() ([]byte, error)

func (*CommandQueueTurnPayload) UnmarshalJSON

func (value *CommandQueueTurnPayload) UnmarshalJSON(data []byte) error

type CommandReadActivityPayload

type CommandReadActivityPayload struct {
	Sessions []SessionID `json:"sessions"`
}

func DefaultCommandReadActivityPayload

func DefaultCommandReadActivityPayload() CommandReadActivityPayload

func (CommandReadActivityPayload) MarshalJSON

func (value CommandReadActivityPayload) MarshalJSON() ([]byte, error)

func (*CommandReadActivityPayload) UnmarshalJSON

func (value *CommandReadActivityPayload) UnmarshalJSON(data []byte) error

type CommandReadArtifactPayload

type CommandReadArtifactPayload struct {
	ID       ArtifactID `json:"id"`
	Revision *uint32    `json:"revision"`
	Session  *SessionID `json:"session"`
}

func DefaultCommandReadArtifactPayload

func DefaultCommandReadArtifactPayload() CommandReadArtifactPayload

func (CommandReadArtifactPayload) MarshalJSON

func (value CommandReadArtifactPayload) MarshalJSON() ([]byte, error)

func (*CommandReadArtifactPayload) UnmarshalJSON

func (value *CommandReadArtifactPayload) UnmarshalJSON(data []byte) error

type CommandReadAttachmentPayload

type CommandReadAttachmentPayload struct {
	Worktree   WorktreeID   `json:"worktree"`
	Attachment AttachmentID `json:"attachment"`
}

func DefaultCommandReadAttachmentPayload

func DefaultCommandReadAttachmentPayload() CommandReadAttachmentPayload

func (CommandReadAttachmentPayload) MarshalJSON

func (value CommandReadAttachmentPayload) MarshalJSON() ([]byte, error)

func (*CommandReadAttachmentPayload) UnmarshalJSON

func (value *CommandReadAttachmentPayload) UnmarshalJSON(data []byte) error

type CommandReadCatalogPluginInfoPayload

type CommandReadCatalogPluginInfoPayload struct {
	Version *string             `json:"version,omitempty"`
	Source  PluginCatalogSource `json:"source"`
	ID      string              `json:"id"`
	Bundled bool                `json:"bundled"`
}

func DefaultCommandReadCatalogPluginInfoPayload

func DefaultCommandReadCatalogPluginInfoPayload() CommandReadCatalogPluginInfoPayload

func (CommandReadCatalogPluginInfoPayload) MarshalJSON

func (value CommandReadCatalogPluginInfoPayload) MarshalJSON() ([]byte, error)

func (*CommandReadCatalogPluginInfoPayload) UnmarshalJSON

func (value *CommandReadCatalogPluginInfoPayload) UnmarshalJSON(data []byte) error

type CommandReadCatalogPluginPayload

type CommandReadCatalogPluginPayload struct {
	Source PluginCatalogSource `json:"source"`
	ID     string              `json:"id"`
}

func DefaultCommandReadCatalogPluginPayload

func DefaultCommandReadCatalogPluginPayload() CommandReadCatalogPluginPayload

func (CommandReadCatalogPluginPayload) MarshalJSON

func (value CommandReadCatalogPluginPayload) MarshalJSON() ([]byte, error)

func (*CommandReadCatalogPluginPayload) UnmarshalJSON

func (value *CommandReadCatalogPluginPayload) UnmarshalJSON(data []byte) error

type CommandReadCommandPagePayload

type CommandReadCommandPagePayload struct {
	Session SessionID                 `json:"session"`
	ID      RequestID                 `json:"id"`
	Stream  ProcessOutputOutputStream `json:"stream"`
	Offset  uint64                    `json:"offset"`
	Limit   uint64                    `json:"limit"`
	WaitMs  uint64                    `json:"wait_ms"`
	Until   *string                   `json:"until"`
}

func DefaultCommandReadCommandPagePayload

func DefaultCommandReadCommandPagePayload() CommandReadCommandPagePayload

func (CommandReadCommandPagePayload) MarshalJSON

func (value CommandReadCommandPagePayload) MarshalJSON() ([]byte, error)

func (*CommandReadCommandPagePayload) UnmarshalJSON

func (value *CommandReadCommandPagePayload) UnmarshalJSON(data []byte) error

type CommandReadCommandPayload

type CommandReadCommandPayload struct {
	Session SessionID `json:"session"`
	ID      RequestID `json:"id"`
	WaitMs  uint64    `json:"wait_ms"`
	Until   *string   `json:"until"`
}

func DefaultCommandReadCommandPayload

func DefaultCommandReadCommandPayload() CommandReadCommandPayload

func (CommandReadCommandPayload) MarshalJSON

func (value CommandReadCommandPayload) MarshalJSON() ([]byte, error)

func (*CommandReadCommandPayload) UnmarshalJSON

func (value *CommandReadCommandPayload) UnmarshalJSON(data []byte) error

type CommandReadConversationPayload

type CommandReadConversationPayload struct {
	Session SessionID `json:"session"`
	Before  *TurnID   `json:"before"`
	Limit   uint16    `json:"limit"`
}

func DefaultCommandReadConversationPayload

func DefaultCommandReadConversationPayload() CommandReadConversationPayload

func (CommandReadConversationPayload) MarshalJSON

func (value CommandReadConversationPayload) MarshalJSON() ([]byte, error)

func (*CommandReadConversationPayload) UnmarshalJSON

func (value *CommandReadConversationPayload) UnmarshalJSON(data []byte) error

type CommandReadConversationRunPayload

type CommandReadConversationRunPayload struct {
	Session          SessionID `json:"session"`
	Turn             TurnID    `json:"turn"`
	ExpectedRevision *uint64   `json:"expected_revision"`
}

func DefaultCommandReadConversationRunPayload

func DefaultCommandReadConversationRunPayload() CommandReadConversationRunPayload

func (CommandReadConversationRunPayload) MarshalJSON

func (value CommandReadConversationRunPayload) MarshalJSON() ([]byte, error)

func (*CommandReadConversationRunPayload) UnmarshalJSON

func (value *CommandReadConversationRunPayload) UnmarshalJSON(data []byte) error

type CommandReadConversationRunsPayload

type CommandReadConversationRunsPayload struct {
	Session SessionID `json:"session"`
	Before  *TurnID   `json:"before"`
	Limit   uint16    `json:"limit"`
}

func DefaultCommandReadConversationRunsPayload

func DefaultCommandReadConversationRunsPayload() CommandReadConversationRunsPayload

func (CommandReadConversationRunsPayload) MarshalJSON

func (value CommandReadConversationRunsPayload) MarshalJSON() ([]byte, error)

func (*CommandReadConversationRunsPayload) UnmarshalJSON

func (value *CommandReadConversationRunsPayload) UnmarshalJSON(data []byte) error

type CommandReadFileLinesPayload

type CommandReadFileLinesPayload struct {
	Worktree         WorktreeID `json:"worktree"`
	Path             string     `json:"path"`
	Offset           uint64     `json:"offset"`
	Limit            uint64     `json:"limit"`
	ExpectedRevision *string    `json:"expected_revision"`
}

func DefaultCommandReadFileLinesPayload

func DefaultCommandReadFileLinesPayload() CommandReadFileLinesPayload

func (CommandReadFileLinesPayload) MarshalJSON

func (value CommandReadFileLinesPayload) MarshalJSON() ([]byte, error)

func (*CommandReadFileLinesPayload) UnmarshalJSON

func (value *CommandReadFileLinesPayload) UnmarshalJSON(data []byte) error

type CommandReadFilePayload

type CommandReadFilePayload struct {
	Worktree WorktreeID `json:"worktree"`
	Path     string     `json:"path"`
}

func DefaultCommandReadFilePayload

func DefaultCommandReadFilePayload() CommandReadFilePayload

func (CommandReadFilePayload) MarshalJSON

func (value CommandReadFilePayload) MarshalJSON() ([]byte, error)

func (*CommandReadFilePayload) UnmarshalJSON

func (value *CommandReadFilePayload) UnmarshalJSON(data []byte) error

type CommandReadGitBlamePayload

type CommandReadGitBlamePayload struct {
	Worktree WorktreeID `json:"worktree"`
	Revision *string    `json:"revision"`
	Path     string     `json:"path"`
	Offset   uint64     `json:"offset"`
	Limit    uint64     `json:"limit"`
}

func DefaultCommandReadGitBlamePayload

func DefaultCommandReadGitBlamePayload() CommandReadGitBlamePayload

func (CommandReadGitBlamePayload) MarshalJSON

func (value CommandReadGitBlamePayload) MarshalJSON() ([]byte, error)

func (*CommandReadGitBlamePayload) UnmarshalJSON

func (value *CommandReadGitBlamePayload) UnmarshalJSON(data []byte) error

type CommandReadGitChangePayload

type CommandReadGitChangePayload struct {
	Worktree                 WorktreeID        `json:"worktree"`
	Snapshot                 GitChangeSnapshot `json:"snapshot"`
	Path                     string            `json:"path"`
	ExpectedMetadataRevision string            `json:"expected_metadata_revision"`
	ExpectedRevision         *string           `json:"expected_revision"`
	Offset                   uint64            `json:"offset"`
	Limit                    uint64            `json:"limit"`
}

func DefaultCommandReadGitChangePayload

func DefaultCommandReadGitChangePayload() CommandReadGitChangePayload

func (CommandReadGitChangePayload) MarshalJSON

func (value CommandReadGitChangePayload) MarshalJSON() ([]byte, error)

func (*CommandReadGitChangePayload) UnmarshalJSON

func (value *CommandReadGitChangePayload) UnmarshalJSON(data []byte) error

type CommandReadGitCommitPayload

type CommandReadGitCommitPayload struct {
	Worktree WorktreeID `json:"worktree"`
	Commit   string     `json:"commit"`
}

func DefaultCommandReadGitCommitPayload

func DefaultCommandReadGitCommitPayload() CommandReadGitCommitPayload

func (CommandReadGitCommitPayload) MarshalJSON

func (value CommandReadGitCommitPayload) MarshalJSON() ([]byte, error)

func (*CommandReadGitCommitPayload) UnmarshalJSON

func (value *CommandReadGitCommitPayload) UnmarshalJSON(data []byte) error

type CommandReadGitContextPayload

type CommandReadGitContextPayload struct {
	Worktree                 WorktreeID        `json:"worktree"`
	Snapshot                 GitChangeSnapshot `json:"snapshot"`
	Path                     string            `json:"path"`
	ExpectedMetadataRevision string            `json:"expected_metadata_revision"`
	ExpectedRevision         string            `json:"expected_revision"`
	Side                     GitContextSide    `json:"side"`
	Offset                   uint64            `json:"offset"`
	Limit                    uint64            `json:"limit"`
}

func DefaultCommandReadGitContextPayload

func DefaultCommandReadGitContextPayload() CommandReadGitContextPayload

func (CommandReadGitContextPayload) MarshalJSON

func (value CommandReadGitContextPayload) MarshalJSON() ([]byte, error)

func (*CommandReadGitContextPayload) UnmarshalJSON

func (value *CommandReadGitContextPayload) UnmarshalJSON(data []byte) error

type CommandReadGitDiffPayload

type CommandReadGitDiffPayload struct {
	Worktree WorktreeID   `json:"worktree"`
	Path     string       `json:"path"`
	Scope    GitDiffScope `json:"scope"`
}

func DefaultCommandReadGitDiffPayload

func DefaultCommandReadGitDiffPayload() CommandReadGitDiffPayload

func (CommandReadGitDiffPayload) MarshalJSON

func (value CommandReadGitDiffPayload) MarshalJSON() ([]byte, error)

func (*CommandReadGitDiffPayload) UnmarshalJSON

func (value *CommandReadGitDiffPayload) UnmarshalJSON(data []byte) error

type CommandReadGitHeadPayload

type CommandReadGitHeadPayload struct {
	Worktree WorktreeID `json:"worktree"`
}

func DefaultCommandReadGitHeadPayload

func DefaultCommandReadGitHeadPayload() CommandReadGitHeadPayload

func (CommandReadGitHeadPayload) MarshalJSON

func (value CommandReadGitHeadPayload) MarshalJSON() ([]byte, error)

func (*CommandReadGitHeadPayload) UnmarshalJSON

func (value *CommandReadGitHeadPayload) UnmarshalJSON(data []byte) error

type CommandReadGitLogPayload

type CommandReadGitLogPayload struct {
	Worktree WorktreeID    `json:"worktree"`
	Limit    uint64        `json:"limit"`
	Cursor   *GitLogCursor `json:"cursor"`
	Revision *string       `json:"revision"`
	Path     *string       `json:"path"`
}

func DefaultCommandReadGitLogPayload

func DefaultCommandReadGitLogPayload() CommandReadGitLogPayload

func (CommandReadGitLogPayload) MarshalJSON

func (value CommandReadGitLogPayload) MarshalJSON() ([]byte, error)

func (*CommandReadGitLogPayload) UnmarshalJSON

func (value *CommandReadGitLogPayload) UnmarshalJSON(data []byte) error

type CommandReadGitOutputPayload

type CommandReadGitOutputPayload struct {
	Worktree WorktreeID `json:"worktree"`
}

func DefaultCommandReadGitOutputPayload

func DefaultCommandReadGitOutputPayload() CommandReadGitOutputPayload

func (CommandReadGitOutputPayload) MarshalJSON

func (value CommandReadGitOutputPayload) MarshalJSON() ([]byte, error)

func (*CommandReadGitOutputPayload) UnmarshalJSON

func (value *CommandReadGitOutputPayload) UnmarshalJSON(data []byte) error

type CommandReadGitShowPayload

type CommandReadGitShowPayload struct {
	Worktree WorktreeID `json:"worktree"`
	Revision string     `json:"revision"`
	Path     *string    `json:"path"`
	Offset   uint64     `json:"offset"`
	Limit    uint64     `json:"limit"`
}

func DefaultCommandReadGitShowPayload

func DefaultCommandReadGitShowPayload() CommandReadGitShowPayload

func (CommandReadGitShowPayload) MarshalJSON

func (value CommandReadGitShowPayload) MarshalJSON() ([]byte, error)

func (*CommandReadGitShowPayload) UnmarshalJSON

func (value *CommandReadGitShowPayload) UnmarshalJSON(data []byte) error

type CommandReadGitStashPayload

type CommandReadGitStashPayload struct {
	Worktree WorktreeID `json:"worktree"`
	Commit   string     `json:"commit"`
}

func DefaultCommandReadGitStashPayload

func DefaultCommandReadGitStashPayload() CommandReadGitStashPayload

func (CommandReadGitStashPayload) MarshalJSON

func (value CommandReadGitStashPayload) MarshalJSON() ([]byte, error)

func (*CommandReadGitStashPayload) UnmarshalJSON

func (value *CommandReadGitStashPayload) UnmarshalJSON(data []byte) error

type CommandReadHostInstallPayload

type CommandReadHostInstallPayload struct {
	Request RequestID `json:"request"`
}

func DefaultCommandReadHostInstallPayload

func DefaultCommandReadHostInstallPayload() CommandReadHostInstallPayload

func (CommandReadHostInstallPayload) MarshalJSON

func (value CommandReadHostInstallPayload) MarshalJSON() ([]byte, error)

func (*CommandReadHostInstallPayload) UnmarshalJSON

func (value *CommandReadHostInstallPayload) UnmarshalJSON(data []byte) error

type CommandReadHostMetricsPayload

type CommandReadHostMetricsPayload struct {
	Detailed bool `json:"detailed"`
}

func DefaultCommandReadHostMetricsPayload

func DefaultCommandReadHostMetricsPayload() CommandReadHostMetricsPayload

func (CommandReadHostMetricsPayload) MarshalJSON

func (value CommandReadHostMetricsPayload) MarshalJSON() ([]byte, error)

func (*CommandReadHostMetricsPayload) UnmarshalJSON

func (value *CommandReadHostMetricsPayload) UnmarshalJSON(data []byte) error

type CommandReadImagePayload

type CommandReadImagePayload struct {
	Worktree WorktreeID `json:"worktree"`
	Path     string     `json:"path"`
}

func DefaultCommandReadImagePayload

func DefaultCommandReadImagePayload() CommandReadImagePayload

func (CommandReadImagePayload) MarshalJSON

func (value CommandReadImagePayload) MarshalJSON() ([]byte, error)

func (*CommandReadImagePayload) UnmarshalJSON

func (value *CommandReadImagePayload) UnmarshalJSON(data []byte) error

type CommandReadInstallationsPayload

type CommandReadInstallationsPayload struct {
	Requests []RequestID `json:"requests"`
}

func DefaultCommandReadInstallationsPayload

func DefaultCommandReadInstallationsPayload() CommandReadInstallationsPayload

func (CommandReadInstallationsPayload) MarshalJSON

func (value CommandReadInstallationsPayload) MarshalJSON() ([]byte, error)

func (*CommandReadInstallationsPayload) UnmarshalJSON

func (value *CommandReadInstallationsPayload) UnmarshalJSON(data []byte) error

type CommandReadLocalModelsPayload

type CommandReadLocalModelsPayload struct {
	Kind *ModelsKind `json:"kind"`
}

func DefaultCommandReadLocalModelsPayload

func DefaultCommandReadLocalModelsPayload() CommandReadLocalModelsPayload

func (CommandReadLocalModelsPayload) MarshalJSON

func (value CommandReadLocalModelsPayload) MarshalJSON() ([]byte, error)

func (*CommandReadLocalModelsPayload) UnmarshalJSON

func (value *CommandReadLocalModelsPayload) UnmarshalJSON(data []byte) error

type CommandReadMemoryCatalogPayload

type CommandReadMemoryCatalogPayload struct {
	View       string  `json:"view"`
	Query      string  `json:"query,omitempty"`
	Project    *string `json:"project,omitempty"`
	GlobalOnly bool    `json:"global_only,omitempty"`
}

type CommandReadMemoryEntryPayload

type CommandReadMemoryEntryPayload struct {
	ID string `json:"id"`
}

type CommandReadModelVersionsPayload

type CommandReadModelVersionsPayload struct {
	Hub        ModelsHub `json:"hub"`
	Repository string    `json:"repository"`
}

func DefaultCommandReadModelVersionsPayload

func DefaultCommandReadModelVersionsPayload() CommandReadModelVersionsPayload

func (CommandReadModelVersionsPayload) MarshalJSON

func (value CommandReadModelVersionsPayload) MarshalJSON() ([]byte, error)

func (*CommandReadModelVersionsPayload) UnmarshalJSON

func (value *CommandReadModelVersionsPayload) UnmarshalJSON(data []byte) error

type CommandReadNotebookPayload

type CommandReadNotebookPayload struct {
	Worktree WorktreeID   `json:"worktree"`
	Options  NotebookRead `json:"options"`
}

func DefaultCommandReadNotebookPayload

func DefaultCommandReadNotebookPayload() CommandReadNotebookPayload

func (CommandReadNotebookPayload) MarshalJSON

func (value CommandReadNotebookPayload) MarshalJSON() ([]byte, error)

func (*CommandReadNotebookPayload) UnmarshalJSON

func (value *CommandReadNotebookPayload) UnmarshalJSON(data []byte) error

type CommandReadOfficePayload

type CommandReadOfficePayload struct {
	Worktree WorktreeID `json:"worktree"`
	Options  OfficeRead `json:"options"`
}

func DefaultCommandReadOfficePayload

func DefaultCommandReadOfficePayload() CommandReadOfficePayload

func (CommandReadOfficePayload) MarshalJSON

func (value CommandReadOfficePayload) MarshalJSON() ([]byte, error)

func (*CommandReadOfficePayload) UnmarshalJSON

func (value *CommandReadOfficePayload) UnmarshalJSON(data []byte) error

type CommandReadPluginCallbackPayload

type CommandReadPluginCallbackPayload struct {
	Handler string          `json:"handler"`
	Input   json.RawMessage `json:"input"`
}

func DefaultCommandReadPluginCallbackPayload

func DefaultCommandReadPluginCallbackPayload() CommandReadPluginCallbackPayload

func (CommandReadPluginCallbackPayload) MarshalJSON

func (value CommandReadPluginCallbackPayload) MarshalJSON() ([]byte, error)

func (*CommandReadPluginCallbackPayload) UnmarshalJSON

func (value *CommandReadPluginCallbackPayload) UnmarshalJSON(data []byte) error

type CommandReadPluginConnectionPayload

type CommandReadPluginConnectionPayload struct {
	Package PluginReference `json:"package"`
	Card    string          `json:"card"`
}

func DefaultCommandReadPluginConnectionPayload

func DefaultCommandReadPluginConnectionPayload() CommandReadPluginConnectionPayload

func (CommandReadPluginConnectionPayload) MarshalJSON

func (value CommandReadPluginConnectionPayload) MarshalJSON() ([]byte, error)

func (*CommandReadPluginConnectionPayload) UnmarshalJSON

func (value *CommandReadPluginConnectionPayload) UnmarshalJSON(data []byte) error

type CommandReadPluginConversationValuePayload

type CommandReadPluginConversationValuePayload struct {
	Key string `json:"key"`
}

func DefaultCommandReadPluginConversationValuePayload

func DefaultCommandReadPluginConversationValuePayload() CommandReadPluginConversationValuePayload

func (CommandReadPluginConversationValuePayload) MarshalJSON

func (value CommandReadPluginConversationValuePayload) MarshalJSON() ([]byte, error)

func (*CommandReadPluginConversationValuePayload) UnmarshalJSON

func (value *CommandReadPluginConversationValuePayload) UnmarshalJSON(data []byte) error

type CommandReadPluginMcpPayload

type CommandReadPluginMcpPayload struct {
	Package PluginReference `json:"package"`
}

func DefaultCommandReadPluginMcpPayload

func DefaultCommandReadPluginMcpPayload() CommandReadPluginMcpPayload

func (CommandReadPluginMcpPayload) MarshalJSON

func (value CommandReadPluginMcpPayload) MarshalJSON() ([]byte, error)

func (*CommandReadPluginMcpPayload) UnmarshalJSON

func (value *CommandReadPluginMcpPayload) UnmarshalJSON(data []byte) error

type CommandReadPluginMemoryPayload

type CommandReadPluginMemoryPayload struct{}

func (*CommandReadPluginMemoryPayload) UnmarshalJSON

func (value *CommandReadPluginMemoryPayload) UnmarshalJSON(data []byte) error

type CommandReadPluginPayload

type CommandReadPluginPayload struct {
	Name string `json:"name"`
}

func DefaultCommandReadPluginPayload

func DefaultCommandReadPluginPayload() CommandReadPluginPayload

func (CommandReadPluginPayload) MarshalJSON

func (value CommandReadPluginPayload) MarshalJSON() ([]byte, error)

func (*CommandReadPluginPayload) UnmarshalJSON

func (value *CommandReadPluginPayload) UnmarshalJSON(data []byte) error

type CommandReadPluginSecretPayload

type CommandReadPluginSecretPayload struct {
	Package PluginReference `json:"package"`
	Field   string          `json:"field"`
}

func DefaultCommandReadPluginSecretPayload

func DefaultCommandReadPluginSecretPayload() CommandReadPluginSecretPayload

func (CommandReadPluginSecretPayload) MarshalJSON

func (value CommandReadPluginSecretPayload) MarshalJSON() ([]byte, error)

func (*CommandReadPluginSecretPayload) UnmarshalJSON

func (value *CommandReadPluginSecretPayload) UnmarshalJSON(data []byte) error

type CommandReadPluginSettingsPayload

type CommandReadPluginSettingsPayload struct {
	Package PluginReference `json:"package"`
}

func DefaultCommandReadPluginSettingsPayload

func DefaultCommandReadPluginSettingsPayload() CommandReadPluginSettingsPayload

func (CommandReadPluginSettingsPayload) MarshalJSON

func (value CommandReadPluginSettingsPayload) MarshalJSON() ([]byte, error)

func (*CommandReadPluginSettingsPayload) UnmarshalJSON

func (value *CommandReadPluginSettingsPayload) UnmarshalJSON(data []byte) error

type CommandReadPluginValuePayload

type CommandReadPluginValuePayload struct {
	Key   string             `json:"key"`
	Scope PluginStorageScope `json:"scope,omitempty"`
}

func DefaultCommandReadPluginValuePayload

func DefaultCommandReadPluginValuePayload() CommandReadPluginValuePayload

func (CommandReadPluginValuePayload) MarshalJSON

func (value CommandReadPluginValuePayload) MarshalJSON() ([]byte, error)

func (*CommandReadPluginValuePayload) UnmarshalJSON

func (value *CommandReadPluginValuePayload) UnmarshalJSON(data []byte) error

type CommandReadPluginVersionPayload

type CommandReadPluginVersionPayload struct {
	Package PluginReference `json:"package"`
}

func DefaultCommandReadPluginVersionPayload

func DefaultCommandReadPluginVersionPayload() CommandReadPluginVersionPayload

func (CommandReadPluginVersionPayload) MarshalJSON

func (value CommandReadPluginVersionPayload) MarshalJSON() ([]byte, error)

func (*CommandReadPluginVersionPayload) UnmarshalJSON

func (value *CommandReadPluginVersionPayload) UnmarshalJSON(data []byte) error

type CommandReadPluginViewPayload

type CommandReadPluginViewPayload struct {
	Surface PluginDesktopSurface `json:"surface"`
	Package PluginReference      `json:"package"`
}

func DefaultCommandReadPluginViewPayload

func DefaultCommandReadPluginViewPayload() CommandReadPluginViewPayload

func (CommandReadPluginViewPayload) MarshalJSON

func (value CommandReadPluginViewPayload) MarshalJSON() ([]byte, error)

func (*CommandReadPluginViewPayload) UnmarshalJSON

func (value *CommandReadPluginViewPayload) UnmarshalJSON(data []byte) error

type CommandReadProviderKeyPayload

type CommandReadProviderKeyPayload struct {
	Provider         ProviderID `json:"provider"`
	ExpectedRevision uint64     `json:"expected_revision"`
}

func DefaultCommandReadProviderKeyPayload

func DefaultCommandReadProviderKeyPayload() CommandReadProviderKeyPayload

func (CommandReadProviderKeyPayload) MarshalJSON

func (value CommandReadProviderKeyPayload) MarshalJSON() ([]byte, error)

func (*CommandReadProviderKeyPayload) UnmarshalJSON

func (value *CommandReadProviderKeyPayload) UnmarshalJSON(data []byte) error

type CommandReadQueuedTurnPayload

type CommandReadQueuedTurnPayload struct {
	Turn TurnID `json:"turn"`
}

func DefaultCommandReadQueuedTurnPayload

func DefaultCommandReadQueuedTurnPayload() CommandReadQueuedTurnPayload

func (CommandReadQueuedTurnPayload) MarshalJSON

func (value CommandReadQueuedTurnPayload) MarshalJSON() ([]byte, error)

func (*CommandReadQueuedTurnPayload) UnmarshalJSON

func (value *CommandReadQueuedTurnPayload) UnmarshalJSON(data []byte) error

type CommandReadSessionPayload

type CommandReadSessionPayload struct {
	Session SessionID `json:"session"`
}

func DefaultCommandReadSessionPayload

func DefaultCommandReadSessionPayload() CommandReadSessionPayload

func (CommandReadSessionPayload) MarshalJSON

func (value CommandReadSessionPayload) MarshalJSON() ([]byte, error)

func (*CommandReadSessionPayload) UnmarshalJSON

func (value *CommandReadSessionPayload) UnmarshalJSON(data []byte) error

type CommandReadSkillDocumentPayload

type CommandReadSkillDocumentPayload struct {
	Source PluginSkillsDocumentSource `json:"source"`
}

func DefaultCommandReadSkillDocumentPayload

func DefaultCommandReadSkillDocumentPayload() CommandReadSkillDocumentPayload

func (CommandReadSkillDocumentPayload) MarshalJSON

func (value CommandReadSkillDocumentPayload) MarshalJSON() ([]byte, error)

func (*CommandReadSkillDocumentPayload) UnmarshalJSON

func (value *CommandReadSkillDocumentPayload) UnmarshalJSON(data []byte) error

type CommandReadToolDetailPayload

type CommandReadToolDetailPayload struct {
	Session          SessionID `json:"session"`
	Turn             TurnID    `json:"turn"`
	Entry            string    `json:"entry"`
	Index            uint64    `json:"index"`
	Call             *string   `json:"call"`
	ExpectedRevision string    `json:"expected_revision"`
	Cursor           *uint64   `json:"cursor"`
	Limit            uint64    `json:"limit"`
}

func DefaultCommandReadToolDetailPayload

func DefaultCommandReadToolDetailPayload() CommandReadToolDetailPayload

func (CommandReadToolDetailPayload) MarshalJSON

func (value CommandReadToolDetailPayload) MarshalJSON() ([]byte, error)

func (*CommandReadToolDetailPayload) UnmarshalJSON

func (value *CommandReadToolDetailPayload) UnmarshalJSON(data []byte) error

type CommandReadToolOutputPayload

type CommandReadToolOutputPayload struct {
	Turn   TurnID                     `json:"turn"`
	Output ToolOutputOutputReference  `json:"output"`
	Stream *ProcessOutputOutputStream `json:"stream"`
	Offset uint64                     `json:"offset"`
	Limit  uint64                     `json:"limit"`
}

func DefaultCommandReadToolOutputPayload

func DefaultCommandReadToolOutputPayload() CommandReadToolOutputPayload

func (CommandReadToolOutputPayload) MarshalJSON

func (value CommandReadToolOutputPayload) MarshalJSON() ([]byte, error)

func (*CommandReadToolOutputPayload) UnmarshalJSON

func (value *CommandReadToolOutputPayload) UnmarshalJSON(data []byte) error

type CommandReadTurnCapturePayload

type CommandReadTurnCapturePayload struct {
	Session SessionID `json:"session"`
	Turn    TurnID    `json:"turn"`
}

func DefaultCommandReadTurnCapturePayload

func DefaultCommandReadTurnCapturePayload() CommandReadTurnCapturePayload

func (CommandReadTurnCapturePayload) MarshalJSON

func (value CommandReadTurnCapturePayload) MarshalJSON() ([]byte, error)

func (*CommandReadTurnCapturePayload) UnmarshalJSON

func (value *CommandReadTurnCapturePayload) UnmarshalJSON(data []byte) error

type CommandReadTurnDiffPayload

type CommandReadTurnDiffPayload struct {
	Session SessionID `json:"session"`
	Turn    TurnID    `json:"turn"`
}

func DefaultCommandReadTurnDiffPayload

func DefaultCommandReadTurnDiffPayload() CommandReadTurnDiffPayload

func (CommandReadTurnDiffPayload) MarshalJSON

func (value CommandReadTurnDiffPayload) MarshalJSON() ([]byte, error)

func (*CommandReadTurnDiffPayload) UnmarshalJSON

func (value *CommandReadTurnDiffPayload) UnmarshalJSON(data []byte) error

type CommandReadTurnHunksPayload

type CommandReadTurnHunksPayload struct {
	Session SessionID `json:"session"`
	Turn    TurnID    `json:"turn"`
	Path    string    `json:"path"`
}

func DefaultCommandReadTurnHunksPayload

func DefaultCommandReadTurnHunksPayload() CommandReadTurnHunksPayload

func (CommandReadTurnHunksPayload) MarshalJSON

func (value CommandReadTurnHunksPayload) MarshalJSON() ([]byte, error)

func (*CommandReadTurnHunksPayload) UnmarshalJSON

func (value *CommandReadTurnHunksPayload) UnmarshalJSON(data []byte) error

type CommandReadTurnPayload

type CommandReadTurnPayload struct {
	Session          SessionID `json:"session"`
	Turn             TurnID    `json:"turn"`
	ExpectedRevision uint64    `json:"expected_revision"`
	Before           *uint64   `json:"before"`
	Limit            uint16    `json:"limit"`
}

func DefaultCommandReadTurnPayload

func DefaultCommandReadTurnPayload() CommandReadTurnPayload

func (CommandReadTurnPayload) MarshalJSON

func (value CommandReadTurnPayload) MarshalJSON() ([]byte, error)

func (*CommandReadTurnPayload) UnmarshalJSON

func (value *CommandReadTurnPayload) UnmarshalJSON(data []byte) error

type CommandReadWorktreeCatalogPayload

type CommandReadWorktreeCatalogPayload struct {
	Worktree WorktreeID `json:"worktree"`
}

func DefaultCommandReadWorktreeCatalogPayload

func DefaultCommandReadWorktreeCatalogPayload() CommandReadWorktreeCatalogPayload

func (CommandReadWorktreeCatalogPayload) MarshalJSON

func (value CommandReadWorktreeCatalogPayload) MarshalJSON() ([]byte, error)

func (*CommandReadWorktreeCatalogPayload) UnmarshalJSON

func (value *CommandReadWorktreeCatalogPayload) UnmarshalJSON(data []byte) error

type CommandReadWslHostInstallPayload

type CommandReadWslHostInstallPayload struct {
	Request RequestID `json:"request"`
}

func DefaultCommandReadWslHostInstallPayload

func DefaultCommandReadWslHostInstallPayload() CommandReadWslHostInstallPayload

func (CommandReadWslHostInstallPayload) MarshalJSON

func (value CommandReadWslHostInstallPayload) MarshalJSON() ([]byte, error)

func (*CommandReadWslHostInstallPayload) UnmarshalJSON

func (value *CommandReadWslHostInstallPayload) UnmarshalJSON(data []byte) error

type CommandRebuildKnowledgeCollectionPayload

type CommandRebuildKnowledgeCollectionPayload struct {
	Node             *NodeID     `json:"node,omitempty"`
	ID               KnowledgeID `json:"id"`
	ExpectedRevision uint64      `json:"expected_revision"`
}

func DefaultCommandRebuildKnowledgeCollectionPayload

func DefaultCommandRebuildKnowledgeCollectionPayload() CommandRebuildKnowledgeCollectionPayload

func (CommandRebuildKnowledgeCollectionPayload) MarshalJSON

func (value CommandRebuildKnowledgeCollectionPayload) MarshalJSON() ([]byte, error)

func (*CommandRebuildKnowledgeCollectionPayload) UnmarshalJSON

func (value *CommandRebuildKnowledgeCollectionPayload) UnmarshalJSON(data []byte) error

type CommandRefreshLocalModelPayload

type CommandRefreshLocalModelPayload struct {
	ID string `json:"id"`
}

func DefaultCommandRefreshLocalModelPayload

func DefaultCommandRefreshLocalModelPayload() CommandRefreshLocalModelPayload

func (CommandRefreshLocalModelPayload) MarshalJSON

func (value CommandRefreshLocalModelPayload) MarshalJSON() ([]byte, error)

func (*CommandRefreshLocalModelPayload) UnmarshalJSON

func (value *CommandRefreshLocalModelPayload) UnmarshalJSON(data []byte) error

type CommandRegisterLocalModelPayload

type CommandRegisterLocalModelPayload struct {
	Definition ModelsDefinition `json:"definition"`
}

func DefaultCommandRegisterLocalModelPayload

func DefaultCommandRegisterLocalModelPayload() CommandRegisterLocalModelPayload

func (CommandRegisterLocalModelPayload) MarshalJSON

func (value CommandRegisterLocalModelPayload) MarshalJSON() ([]byte, error)

func (*CommandRegisterLocalModelPayload) UnmarshalJSON

func (value *CommandRegisterLocalModelPayload) UnmarshalJSON(data []byte) error

type CommandRegisterProjectPayload

type CommandRegisterProjectPayload struct {
	Name       string            `json:"name"`
	Path       string            `json:"path"`
	Visibility ProjectVisibility `json:"visibility"`
}

func DefaultCommandRegisterProjectPayload

func DefaultCommandRegisterProjectPayload() CommandRegisterProjectPayload

func (CommandRegisterProjectPayload) MarshalJSON

func (value CommandRegisterProjectPayload) MarshalJSON() ([]byte, error)

func (*CommandRegisterProjectPayload) UnmarshalJSON

func (value *CommandRegisterProjectPayload) UnmarshalJSON(data []byte) error

type CommandRegisterWorktreePayload

type CommandRegisterWorktreePayload struct {
	Project ProjectID `json:"project"`
	Path    string    `json:"path"`
}

func DefaultCommandRegisterWorktreePayload

func DefaultCommandRegisterWorktreePayload() CommandRegisterWorktreePayload

func (CommandRegisterWorktreePayload) MarshalJSON

func (value CommandRegisterWorktreePayload) MarshalJSON() ([]byte, error)

func (*CommandRegisterWorktreePayload) UnmarshalJSON

func (value *CommandRegisterWorktreePayload) UnmarshalJSON(data []byte) error

type CommandRemoveConnectionPayload

type CommandRemoveConnectionPayload struct {
	Connection       PluginConnectorID `json:"connection"`
	ExpectedRevision uint64            `json:"expected_revision"`
}

func DefaultCommandRemoveConnectionPayload

func DefaultCommandRemoveConnectionPayload() CommandRemoveConnectionPayload

func (CommandRemoveConnectionPayload) MarshalJSON

func (value CommandRemoveConnectionPayload) MarshalJSON() ([]byte, error)

func (*CommandRemoveConnectionPayload) UnmarshalJSON

func (value *CommandRemoveConnectionPayload) UnmarshalJSON(data []byte) error

type CommandRemoveDatabasePayload

type CommandRemoveDatabasePayload struct {
	Profile          DatabaseID `json:"profile"`
	ExpectedRevision uint64     `json:"expected_revision"`
}

func DefaultCommandRemoveDatabasePayload

func DefaultCommandRemoveDatabasePayload() CommandRemoveDatabasePayload

func (CommandRemoveDatabasePayload) MarshalJSON

func (value CommandRemoveDatabasePayload) MarshalJSON() ([]byte, error)

func (*CommandRemoveDatabasePayload) UnmarshalJSON

func (value *CommandRemoveDatabasePayload) UnmarshalJSON(data []byte) error

type CommandRemovePluginConversationValuePayload

type CommandRemovePluginConversationValuePayload struct {
	Key              string `json:"key"`
	ExpectedRevision uint64 `json:"expected_revision"`
}

func DefaultCommandRemovePluginConversationValuePayload

func DefaultCommandRemovePluginConversationValuePayload() CommandRemovePluginConversationValuePayload

func (CommandRemovePluginConversationValuePayload) MarshalJSON

func (value CommandRemovePluginConversationValuePayload) MarshalJSON() ([]byte, error)

func (*CommandRemovePluginConversationValuePayload) UnmarshalJSON

func (value *CommandRemovePluginConversationValuePayload) UnmarshalJSON(data []byte) error

type CommandRemovePluginPayload

type CommandRemovePluginPayload struct {
	Name             string `json:"name"`
	ExpectedRevision uint64 `json:"expected_revision"`
}

func DefaultCommandRemovePluginPayload

func DefaultCommandRemovePluginPayload() CommandRemovePluginPayload

func (CommandRemovePluginPayload) MarshalJSON

func (value CommandRemovePluginPayload) MarshalJSON() ([]byte, error)

func (*CommandRemovePluginPayload) UnmarshalJSON

func (value *CommandRemovePluginPayload) UnmarshalJSON(data []byte) error

type CommandRemovePluginValuePayload

type CommandRemovePluginValuePayload struct {
	Key              string             `json:"key"`
	ExpectedRevision uint64             `json:"expected_revision"`
	Scope            PluginStorageScope `json:"scope,omitempty"`
}

func DefaultCommandRemovePluginValuePayload

func DefaultCommandRemovePluginValuePayload() CommandRemovePluginValuePayload

func (CommandRemovePluginValuePayload) MarshalJSON

func (value CommandRemovePluginValuePayload) MarshalJSON() ([]byte, error)

func (*CommandRemovePluginValuePayload) UnmarshalJSON

func (value *CommandRemovePluginValuePayload) UnmarshalJSON(data []byte) error

type CommandRemoveProjectPayload

type CommandRemoveProjectPayload struct {
	Expected Project `json:"expected"`
}

func DefaultCommandRemoveProjectPayload

func DefaultCommandRemoveProjectPayload() CommandRemoveProjectPayload

func (CommandRemoveProjectPayload) MarshalJSON

func (value CommandRemoveProjectPayload) MarshalJSON() ([]byte, error)

func (*CommandRemoveProjectPayload) UnmarshalJSON

func (value *CommandRemoveProjectPayload) UnmarshalJSON(data []byte) error

type CommandRemoveProviderPayload

type CommandRemoveProviderPayload struct {
	Provider         ProviderID `json:"provider"`
	ExpectedRevision uint64     `json:"expected_revision"`
}

func DefaultCommandRemoveProviderPayload

func DefaultCommandRemoveProviderPayload() CommandRemoveProviderPayload

func (CommandRemoveProviderPayload) MarshalJSON

func (value CommandRemoveProviderPayload) MarshalJSON() ([]byte, error)

func (*CommandRemoveProviderPayload) UnmarshalJSON

func (value *CommandRemoveProviderPayload) UnmarshalJSON(data []byte) error

type CommandRemoveQueuedTurnPayload

type CommandRemoveQueuedTurnPayload struct {
	Turn             TurnID `json:"turn"`
	ExpectedRevision uint64 `json:"expected_revision"`
}

func DefaultCommandRemoveQueuedTurnPayload

func DefaultCommandRemoveQueuedTurnPayload() CommandRemoveQueuedTurnPayload

func (CommandRemoveQueuedTurnPayload) MarshalJSON

func (value CommandRemoveQueuedTurnPayload) MarshalJSON() ([]byte, error)

func (*CommandRemoveQueuedTurnPayload) UnmarshalJSON

func (value *CommandRemoveQueuedTurnPayload) UnmarshalJSON(data []byte) error

type CommandRemoveRolePayload

type CommandRemoveRolePayload struct {
	Role             RoleID `json:"role"`
	ExpectedRevision uint64 `json:"expected_revision"`
}

func DefaultCommandRemoveRolePayload

func DefaultCommandRemoveRolePayload() CommandRemoveRolePayload

func (CommandRemoveRolePayload) MarshalJSON

func (value CommandRemoveRolePayload) MarshalJSON() ([]byte, error)

func (*CommandRemoveRolePayload) UnmarshalJSON

func (value *CommandRemoveRolePayload) UnmarshalJSON(data []byte) error

type CommandRemoveSessionPayload

type CommandRemoveSessionPayload struct {
	Session          SessionID `json:"session"`
	ExpectedRevision uint64    `json:"expected_revision"`
}

func DefaultCommandRemoveSessionPayload

func DefaultCommandRemoveSessionPayload() CommandRemoveSessionPayload

func (CommandRemoveSessionPayload) MarshalJSON

func (value CommandRemoveSessionPayload) MarshalJSON() ([]byte, error)

func (*CommandRemoveSessionPayload) UnmarshalJSON

func (value *CommandRemoveSessionPayload) UnmarshalJSON(data []byte) error

type CommandRemoveSessionsPayload

type CommandRemoveSessionsPayload struct {
	Expected []SessionRevision `json:"expected"`
}

func DefaultCommandRemoveSessionsPayload

func DefaultCommandRemoveSessionsPayload() CommandRemoveSessionsPayload

func (CommandRemoveSessionsPayload) MarshalJSON

func (value CommandRemoveSessionsPayload) MarshalJSON() ([]byte, error)

func (*CommandRemoveSessionsPayload) UnmarshalJSON

func (value *CommandRemoveSessionsPayload) UnmarshalJSON(data []byte) error

type CommandRemoveSshPayload

type CommandRemoveSshPayload struct {
	Profile          SshID  `json:"profile"`
	ExpectedRevision uint64 `json:"expected_revision"`
}

func DefaultCommandRemoveSshPayload

func DefaultCommandRemoveSshPayload() CommandRemoveSshPayload

func (CommandRemoveSshPayload) MarshalJSON

func (value CommandRemoveSshPayload) MarshalJSON() ([]byte, error)

func (*CommandRemoveSshPayload) UnmarshalJSON

func (value *CommandRemoveSshPayload) UnmarshalJSON(data []byte) error

type CommandRemoveTeamPayload

type CommandRemoveTeamPayload struct {
	Team             TeamID `json:"team"`
	ExpectedRevision uint64 `json:"expected_revision"`
}

func DefaultCommandRemoveTeamPayload

func DefaultCommandRemoveTeamPayload() CommandRemoveTeamPayload

func (CommandRemoveTeamPayload) MarshalJSON

func (value CommandRemoveTeamPayload) MarshalJSON() ([]byte, error)

func (*CommandRemoveTeamPayload) UnmarshalJSON

func (value *CommandRemoveTeamPayload) UnmarshalJSON(data []byte) error

type CommandRemoveWorktreePayload

type CommandRemoveWorktreePayload struct {
	Worktree       WorktreeID `json:"worktree"`
	ExpectedHead   string     `json:"expected_head"`
	ExpectedBranch string     `json:"expected_branch"`
}

func DefaultCommandRemoveWorktreePayload

func DefaultCommandRemoveWorktreePayload() CommandRemoveWorktreePayload

func (CommandRemoveWorktreePayload) MarshalJSON

func (value CommandRemoveWorktreePayload) MarshalJSON() ([]byte, error)

func (*CommandRemoveWorktreePayload) UnmarshalJSON

func (value *CommandRemoveWorktreePayload) UnmarshalJSON(data []byte) error

type CommandRenameEntryPayload

type CommandRenameEntryPayload struct {
	Worktree WorktreeID `json:"worktree"`
	From     string     `json:"from"`
	To       string     `json:"to"`
}

func DefaultCommandRenameEntryPayload

func DefaultCommandRenameEntryPayload() CommandRenameEntryPayload

func (CommandRenameEntryPayload) MarshalJSON

func (value CommandRenameEntryPayload) MarshalJSON() ([]byte, error)

func (*CommandRenameEntryPayload) UnmarshalJSON

func (value *CommandRenameEntryPayload) UnmarshalJSON(data []byte) error

type CommandRenameGitBranchPayload

type CommandRenameGitBranchPayload struct {
	Worktree WorktreeID `json:"worktree"`
	Name     string     `json:"name"`
	NewName  string     `json:"new_name"`
	Commit   string     `json:"commit"`
}

func DefaultCommandRenameGitBranchPayload

func DefaultCommandRenameGitBranchPayload() CommandRenameGitBranchPayload

func (CommandRenameGitBranchPayload) MarshalJSON

func (value CommandRenameGitBranchPayload) MarshalJSON() ([]byte, error)

func (*CommandRenameGitBranchPayload) UnmarshalJSON

func (value *CommandRenameGitBranchPayload) UnmarshalJSON(data []byte) error

type CommandRenameSessionPayload

type CommandRenameSessionPayload struct {
	Session          SessionID `json:"session"`
	ExpectedRevision uint64    `json:"expected_revision"`
	Title            string    `json:"title"`
}

func DefaultCommandRenameSessionPayload

func DefaultCommandRenameSessionPayload() CommandRenameSessionPayload

func (CommandRenameSessionPayload) MarshalJSON

func (value CommandRenameSessionPayload) MarshalJSON() ([]byte, error)

func (*CommandRenameSessionPayload) UnmarshalJSON

func (value *CommandRenameSessionPayload) UnmarshalJSON(data []byte) error

type CommandReplaceTurnPayload

type CommandReplaceTurnPayload struct {
	Session                 SessionID         `json:"session"`
	Turn                    TurnID            `json:"turn"`
	ExpectedHead            TurnID            `json:"expected_head"`
	ExpectedHistoryRevision uint64            `json:"expected_history_revision"`
	ExpectedRevision        uint64            `json:"expected_revision"`
	Message                 ConversationInput `json:"message"`
}

func DefaultCommandReplaceTurnPayload

func DefaultCommandReplaceTurnPayload() CommandReplaceTurnPayload

func (CommandReplaceTurnPayload) MarshalJSON

func (value CommandReplaceTurnPayload) MarshalJSON() ([]byte, error)

func (*CommandReplaceTurnPayload) UnmarshalJSON

func (value *CommandReplaceTurnPayload) UnmarshalJSON(data []byte) error

type CommandRequestComputerPermissionPayload

type CommandRequestComputerPermissionPayload struct {
	Permission ComputerPermission `json:"permission"`
}

func DefaultCommandRequestComputerPermissionPayload

func DefaultCommandRequestComputerPermissionPayload() CommandRequestComputerPermissionPayload

func (CommandRequestComputerPermissionPayload) MarshalJSON

func (value CommandRequestComputerPermissionPayload) MarshalJSON() ([]byte, error)

func (*CommandRequestComputerPermissionPayload) UnmarshalJSON

func (value *CommandRequestComputerPermissionPayload) UnmarshalJSON(data []byte) error

type CommandRequestProviderHttpPayload

type CommandRequestProviderHttpPayload struct {
	Provider         ProviderID        `json:"provider"`
	ExpectedRevision uint64            `json:"expected_revision"`
	Request          string            `json:"request"`
	Input            map[string]string `json:"input"`
}

func DefaultCommandRequestProviderHttpPayload

func DefaultCommandRequestProviderHttpPayload() CommandRequestProviderHttpPayload

func (CommandRequestProviderHttpPayload) MarshalJSON

func (value CommandRequestProviderHttpPayload) MarshalJSON() ([]byte, error)

func (*CommandRequestProviderHttpPayload) UnmarshalJSON

func (value *CommandRequestProviderHttpPayload) UnmarshalJSON(data []byte) error

type CommandResetTelemetryIdentityPayload

type CommandResetTelemetryIdentityPayload struct {
	ExpectedRevision uint64 `json:"expected_revision"`
}

func DefaultCommandResetTelemetryIdentityPayload

func DefaultCommandResetTelemetryIdentityPayload() CommandResetTelemetryIdentityPayload

func (CommandResetTelemetryIdentityPayload) MarshalJSON

func (value CommandResetTelemetryIdentityPayload) MarshalJSON() ([]byte, error)

func (*CommandResetTelemetryIdentityPayload) UnmarshalJSON

func (value *CommandResetTelemetryIdentityPayload) UnmarshalJSON(data []byte) error

type CommandResizeTerminalPayload

type CommandResizeTerminalPayload struct {
	Terminal TerminalID       `json:"terminal"`
	Revision uint64           `json:"revision"`
	Viewport TerminalViewport `json:"viewport"`
}

func DefaultCommandResizeTerminalPayload

func DefaultCommandResizeTerminalPayload() CommandResizeTerminalPayload

func (CommandResizeTerminalPayload) MarshalJSON

func (value CommandResizeTerminalPayload) MarshalJSON() ([]byte, error)

func (*CommandResizeTerminalPayload) UnmarshalJSON

func (value *CommandResizeTerminalPayload) UnmarshalJSON(data []byte) error

type CommandResolveApprovalPayload

type CommandResolveApprovalPayload struct {
	Session  SessionID            `json:"session"`
	Approval ApprovalID           `json:"approval"`
	Decision ConversationDecision `json:"decision"`
}

func DefaultCommandResolveApprovalPayload

func DefaultCommandResolveApprovalPayload() CommandResolveApprovalPayload

func (CommandResolveApprovalPayload) MarshalJSON

func (value CommandResolveApprovalPayload) MarshalJSON() ([]byte, error)

func (*CommandResolveApprovalPayload) UnmarshalJSON

func (value *CommandResolveApprovalPayload) UnmarshalJSON(data []byte) error

type CommandResolveGitRevisionPayload

type CommandResolveGitRevisionPayload struct {
	Worktree WorktreeID `json:"worktree"`
	Revision string     `json:"revision"`
}

func DefaultCommandResolveGitRevisionPayload

func DefaultCommandResolveGitRevisionPayload() CommandResolveGitRevisionPayload

func (CommandResolveGitRevisionPayload) MarshalJSON

func (value CommandResolveGitRevisionPayload) MarshalJSON() ([]byte, error)

func (*CommandResolveGitRevisionPayload) UnmarshalJSON

func (value *CommandResolveGitRevisionPayload) UnmarshalJSON(data []byte) error

type CommandResolveModelPayload

type CommandResolveModelPayload struct {
	Kind   ModelsKind   `json:"kind"`
	Source ModelsSource `json:"source"`
}

func DefaultCommandResolveModelPayload

func DefaultCommandResolveModelPayload() CommandResolveModelPayload

func (CommandResolveModelPayload) MarshalJSON

func (value CommandResolveModelPayload) MarshalJSON() ([]byte, error)

func (*CommandResolveModelPayload) UnmarshalJSON

func (value *CommandResolveModelPayload) UnmarshalJSON(data []byte) error

type CommandResolvePluginModelPayload

type CommandResolvePluginModelPayload struct {
	Model  string         `json:"model"`
	Effort *Effort        `json:"effort"`
	Config *SessionConfig `json:"config"`
}

func DefaultCommandResolvePluginModelPayload

func DefaultCommandResolvePluginModelPayload() CommandResolvePluginModelPayload

func (CommandResolvePluginModelPayload) MarshalJSON

func (value CommandResolvePluginModelPayload) MarshalJSON() ([]byte, error)

func (*CommandResolvePluginModelPayload) UnmarshalJSON

func (value *CommandResolvePluginModelPayload) UnmarshalJSON(data []byte) error

type CommandResolveQuestionPayload

type CommandResolveQuestionPayload struct {
	Session  SessionID                    `json:"session"`
	Question QuestionID                   `json:"question"`
	Response ConversationQuestionResponse `json:"response"`
}

func DefaultCommandResolveQuestionPayload

func DefaultCommandResolveQuestionPayload() CommandResolveQuestionPayload

func (CommandResolveQuestionPayload) MarshalJSON

func (value CommandResolveQuestionPayload) MarshalJSON() ([]byte, error)

func (*CommandResolveQuestionPayload) UnmarshalJSON

func (value *CommandResolveQuestionPayload) UnmarshalJSON(data []byte) error

type CommandRestoreBackupFilePayload

type CommandRestoreBackupFilePayload struct {
	Stream           StreamID `json:"stream"`
	ExpectedRevision uint64   `json:"expected_revision"`
	Target           string   `json:"target"`
	Passphrase       *Secret  `json:"passphrase"`
}

func DefaultCommandRestoreBackupFilePayload

func DefaultCommandRestoreBackupFilePayload() CommandRestoreBackupFilePayload

func (CommandRestoreBackupFilePayload) MarshalJSON

func (value CommandRestoreBackupFilePayload) MarshalJSON() ([]byte, error)

func (*CommandRestoreBackupFilePayload) UnmarshalJSON

func (value *CommandRestoreBackupFilePayload) UnmarshalJSON(data []byte) error

type CommandRestoreBackupPayload

type CommandRestoreBackupPayload struct {
	ID               string         `json:"id"`
	ExpectedRevision uint64         `json:"expected_revision"`
	Target           string         `json:"target"`
	Passphrase       *Secret        `json:"passphrase"`
	Location         BackupLocation `json:"location"`
}

func DefaultCommandRestoreBackupPayload

func DefaultCommandRestoreBackupPayload() CommandRestoreBackupPayload

func (CommandRestoreBackupPayload) MarshalJSON

func (value CommandRestoreBackupPayload) MarshalJSON() ([]byte, error)

func (*CommandRestoreBackupPayload) UnmarshalJSON

func (value *CommandRestoreBackupPayload) UnmarshalJSON(data []byte) error

type CommandRestoreFileCheckpointPayload

type CommandRestoreFileCheckpointPayload struct {
	Session    SessionID    `json:"session"`
	Checkpoint CheckpointID `json:"checkpoint"`
	Worktree   WorktreeID   `json:"worktree"`
}

func DefaultCommandRestoreFileCheckpointPayload

func DefaultCommandRestoreFileCheckpointPayload() CommandRestoreFileCheckpointPayload

func (CommandRestoreFileCheckpointPayload) MarshalJSON

func (value CommandRestoreFileCheckpointPayload) MarshalJSON() ([]byte, error)

func (*CommandRestoreFileCheckpointPayload) UnmarshalJSON

func (value *CommandRestoreFileCheckpointPayload) UnmarshalJSON(data []byte) error

type CommandResumeControllerLoginPayload

type CommandResumeControllerLoginPayload struct {
	Session     SessionID     `json:"session"`
	Turn        TurnID        `json:"turn"`
	Waiting     RequestID     `json:"waiting"`
	Previous    CredentialRef `json:"previous"`
	Replacement CredentialRef `json:"replacement"`
}

CommandResumeControllerLoginPayload replaces an expired authorization only for the exact model step waiting on it. Waiting is the executor's opaque state token; it is not a new turn or a replay of the original user message.

func (*CommandResumeControllerLoginPayload) UnmarshalJSON

func (value *CommandResumeControllerLoginPayload) UnmarshalJSON(data []byte) error

type CommandRewindConversationPayload

type CommandRewindConversationPayload struct {
	Session          SessionID `json:"session"`
	Through          *TurnID   `json:"through"`
	ExpectedHead     TurnID    `json:"expected_head"`
	ExpectedRevision uint64    `json:"expected_revision"`
}

func DefaultCommandRewindConversationPayload

func DefaultCommandRewindConversationPayload() CommandRewindConversationPayload

func (CommandRewindConversationPayload) MarshalJSON

func (value CommandRewindConversationPayload) MarshalJSON() ([]byte, error)

func (*CommandRewindConversationPayload) UnmarshalJSON

func (value *CommandRewindConversationPayload) UnmarshalJSON(data []byte) error

type CommandRunCommandPayload

type CommandRunCommandPayload struct {
	Turn        TurnID         `json:"turn"`
	Command     string         `json:"command"`
	Access      ProcessAccess  `json:"access"`
	Description *string        `json:"description"`
	Cwd         string         `json:"cwd"`
	TimeoutMs   uint64         `json:"timeout_ms"`
	Background  bool           `json:"background"`
	FollowUp    bool           `json:"follow_up,omitempty"`
	Service     bool           `json:"service,omitempty"`
	Pty         bool           `json:"pty"`
	Attachments []AttachmentID `json:"attachments"`
}

CommandRunCommandPayload launches a command. Service marks a background command that keeps running when the user stops its session's turn.

func DefaultCommandRunCommandPayload

func DefaultCommandRunCommandPayload() CommandRunCommandPayload

func (CommandRunCommandPayload) MarshalJSON

func (value CommandRunCommandPayload) MarshalJSON() ([]byte, error)

func (*CommandRunCommandPayload) UnmarshalJSON

func (value *CommandRunCommandPayload) UnmarshalJSON(data []byte) error

type CommandRunGitActionPayload

type CommandRunGitActionPayload struct {
	Worktree       WorktreeID `json:"worktree"`
	Action         GitAction  `json:"action"`
	ExpectedIndex  string     `json:"expected_index"`
	ExpectedHead   *string    `json:"expected_head"`
	ExpectedBranch *string    `json:"expected_branch"`
}

func DefaultCommandRunGitActionPayload

func DefaultCommandRunGitActionPayload() CommandRunGitActionPayload

func (CommandRunGitActionPayload) MarshalJSON

func (value CommandRunGitActionPayload) MarshalJSON() ([]byte, error)

func (*CommandRunGitActionPayload) UnmarshalJSON

func (value *CommandRunGitActionPayload) UnmarshalJSON(data []byte) error

type CommandRunSshPayload

type CommandRunSshPayload struct {
	Profile          SshID  `json:"profile"`
	ExpectedRevision uint64 `json:"expected_revision"`
	Command          string `json:"command"`
	TimeoutMs        uint64 `json:"timeout_ms"`
}

func DefaultCommandRunSshPayload

func DefaultCommandRunSshPayload() CommandRunSshPayload

func (CommandRunSshPayload) MarshalJSON

func (value CommandRunSshPayload) MarshalJSON() ([]byte, error)

func (*CommandRunSshPayload) UnmarshalJSON

func (value *CommandRunSshPayload) UnmarshalJSON(data []byte) error

type CommandSaveCodeIndexSettingsPayload

type CommandSaveCodeIndexSettingsPayload struct {
	Settings         CodeIndexSettings `json:"settings"`
	ExpectedRevision uint64            `json:"expected_revision"`
}

func DefaultCommandSaveCodeIndexSettingsPayload

func DefaultCommandSaveCodeIndexSettingsPayload() CommandSaveCodeIndexSettingsPayload

func (CommandSaveCodeIndexSettingsPayload) MarshalJSON

func (value CommandSaveCodeIndexSettingsPayload) MarshalJSON() ([]byte, error)

func (*CommandSaveCodeIndexSettingsPayload) UnmarshalJSON

func (value *CommandSaveCodeIndexSettingsPayload) UnmarshalJSON(data []byte) error

type CommandSaveDatabasePayload

type CommandSaveDatabasePayload struct {
	Profile          DatabaseProfile `json:"profile"`
	ExpectedRevision uint64          `json:"expected_revision"`
	Password         *Secret         `json:"password"`
}

func DefaultCommandSaveDatabasePayload

func DefaultCommandSaveDatabasePayload() CommandSaveDatabasePayload

func (CommandSaveDatabasePayload) MarshalJSON

func (value CommandSaveDatabasePayload) MarshalJSON() ([]byte, error)

func (*CommandSaveDatabasePayload) UnmarshalJSON

func (value *CommandSaveDatabasePayload) UnmarshalJSON(data []byte) error

type CommandSaveHooksPayload

type CommandSaveHooksPayload struct {
	Settings         HooksSettings `json:"settings"`
	ExpectedRevision uint64        `json:"expected_revision"`
}

func DefaultCommandSaveHooksPayload

func DefaultCommandSaveHooksPayload() CommandSaveHooksPayload

func (CommandSaveHooksPayload) MarshalJSON

func (value CommandSaveHooksPayload) MarshalJSON() ([]byte, error)

func (*CommandSaveHooksPayload) UnmarshalJSON

func (value *CommandSaveHooksPayload) UnmarshalJSON(data []byte) error

type CommandSaveMemoryEntryPayload

type CommandSaveMemoryEntryPayload struct {
	ID               *string             `json:"id,omitempty"`
	ExpectedRevision uint64              `json:"expected_revision"`
	Project          *string             `json:"project,omitempty"`
	Title            string              `json:"title"`
	Kind             string              `json:"kind"`
	Body             string              `json:"body"`
	Archived         bool                `json:"archived"`
	MergeSources     []MemoryMergeSource `json:"merge_sources,omitempty"`
}

type CommandSaveMemorySettingsPayload

type CommandSaveMemorySettingsPayload struct {
	ExpectedRevision uint64 `json:"expected_revision"`
	Enabled          bool   `json:"enabled"`
	AutoWrite        bool   `json:"auto_write"`
	ContextBytes     uint32 `json:"context_bytes"`
	ReviewAfterDays  uint32 `json:"review_after_days"`
}

type CommandSaveNetworkSettingsPayload

type CommandSaveNetworkSettingsPayload struct {
	ExpectedRevision uint64           `json:"expected_revision"`
	Selection        NetworkSelection `json:"selection"`
}

func DefaultCommandSaveNetworkSettingsPayload

func DefaultCommandSaveNetworkSettingsPayload() CommandSaveNetworkSettingsPayload

func (CommandSaveNetworkSettingsPayload) MarshalJSON

func (value CommandSaveNetworkSettingsPayload) MarshalJSON() ([]byte, error)

func (*CommandSaveNetworkSettingsPayload) UnmarshalJSON

func (value *CommandSaveNetworkSettingsPayload) UnmarshalJSON(data []byte) error

type CommandSavePersonalInstructionsPayload added in v0.2.3

type CommandSavePersonalInstructionsPayload struct {
	Text             string  `json:"text"`
	ExpectedRevision *string `json:"expected_revision"`
}

func (*CommandSavePersonalInstructionsPayload) UnmarshalJSON added in v0.2.3

func (value *CommandSavePersonalInstructionsPayload) UnmarshalJSON(data []byte) error

type CommandSavePluginMcpPayload

type CommandSavePluginMcpPayload struct {
	Package       PluginReference        `json:"package"`
	Configuration PluginMcpConfiguration `json:"configuration"`
}

func DefaultCommandSavePluginMcpPayload

func DefaultCommandSavePluginMcpPayload() CommandSavePluginMcpPayload

func (CommandSavePluginMcpPayload) MarshalJSON

func (value CommandSavePluginMcpPayload) MarshalJSON() ([]byte, error)

func (*CommandSavePluginMcpPayload) UnmarshalJSON

func (value *CommandSavePluginMcpPayload) UnmarshalJSON(data []byte) error

type CommandSavePluginSettingsPayload

type CommandSavePluginSettingsPayload struct {
	Package PluginReference                       `json:"package"`
	Values  map[string]json.RawMessage            `json:"values"`
	Secrets map[string]PluginSettingsSecretUpdate `json:"secrets"`
}

func DefaultCommandSavePluginSettingsPayload

func DefaultCommandSavePluginSettingsPayload() CommandSavePluginSettingsPayload

func (CommandSavePluginSettingsPayload) MarshalJSON

func (value CommandSavePluginSettingsPayload) MarshalJSON() ([]byte, error)

func (*CommandSavePluginSettingsPayload) UnmarshalJSON

func (value *CommandSavePluginSettingsPayload) UnmarshalJSON(data []byte) error

type CommandSaveProviderPayload

type CommandSaveProviderPayload struct {
	Provider         ConversationProvider `json:"provider"`
	ExpectedRevision uint64               `json:"expected_revision"`
	Secret           *Secret              `json:"secret"`
}

func DefaultCommandSaveProviderPayload

func DefaultCommandSaveProviderPayload() CommandSaveProviderPayload

func (CommandSaveProviderPayload) MarshalJSON

func (value CommandSaveProviderPayload) MarshalJSON() ([]byte, error)

func (*CommandSaveProviderPayload) UnmarshalJSON

func (value *CommandSaveProviderPayload) UnmarshalJSON(data []byte) error

type CommandSaveSshPayload

type CommandSaveSshPayload struct {
	Profile          SshProfile     `json:"profile"`
	ExpectedRevision uint64         `json:"expected_revision"`
	Credential       *SshCredential `json:"credential"`
}

func DefaultCommandSaveSshPayload

func DefaultCommandSaveSshPayload() CommandSaveSshPayload

func (CommandSaveSshPayload) MarshalJSON

func (value CommandSaveSshPayload) MarshalJSON() ([]byte, error)

func (*CommandSaveSshPayload) UnmarshalJSON

func (value *CommandSaveSshPayload) UnmarshalJSON(data []byte) error

type CommandSearchCodePayload

type CommandSearchCodePayload struct {
	Worktree WorktreeID      `json:"worktree"`
	Query    CodeIndexSearch `json:"query"`
}

func DefaultCommandSearchCodePayload

func DefaultCommandSearchCodePayload() CommandSearchCodePayload

func (CommandSearchCodePayload) MarshalJSON

func (value CommandSearchCodePayload) MarshalJSON() ([]byte, error)

func (*CommandSearchCodePayload) UnmarshalJSON

func (value *CommandSearchCodePayload) UnmarshalJSON(data []byte) error

type CommandSearchConversationPayload

type CommandSearchConversationPayload struct {
	Session SessionID               `json:"session"`
	Query   ConversationSearchQuery `json:"query"`
}

func DefaultCommandSearchConversationPayload

func DefaultCommandSearchConversationPayload() CommandSearchConversationPayload

func (CommandSearchConversationPayload) MarshalJSON

func (value CommandSearchConversationPayload) MarshalJSON() ([]byte, error)

func (*CommandSearchConversationPayload) UnmarshalJSON

func (value *CommandSearchConversationPayload) UnmarshalJSON(data []byte) error

type CommandSearchFilesPayload

type CommandSearchFilesPayload struct {
	Worktree WorktreeID `json:"worktree"`
	Options  FileSearch `json:"options"`
}

func DefaultCommandSearchFilesPayload

func DefaultCommandSearchFilesPayload() CommandSearchFilesPayload

func (CommandSearchFilesPayload) MarshalJSON

func (value CommandSearchFilesPayload) MarshalJSON() ([]byte, error)

func (*CommandSearchFilesPayload) UnmarshalJSON

func (value *CommandSearchFilesPayload) UnmarshalJSON(data []byte) error

type CommandSearchPluginCatalogPayload

type CommandSearchPluginCatalogPayload struct {
	Source PluginCatalogSource `json:"source"`
	Query  string              `json:"query"`
	Page   uint32              `json:"page"`
	Force  bool                `json:"force"`
}

func DefaultCommandSearchPluginCatalogPayload

func DefaultCommandSearchPluginCatalogPayload() CommandSearchPluginCatalogPayload

func (CommandSearchPluginCatalogPayload) MarshalJSON

func (value CommandSearchPluginCatalogPayload) MarshalJSON() ([]byte, error)

func (*CommandSearchPluginCatalogPayload) UnmarshalJSON

func (value *CommandSearchPluginCatalogPayload) UnmarshalJSON(data []byte) error

type CommandSearchSkillCatalogPayload

type CommandSearchSkillCatalogPayload struct {
	Source PluginSkillcatalogSource `json:"source"`
	Query  string                   `json:"query"`
	Page   uint32                   `json:"page"`
	Force  bool                     `json:"force"`
}

func DefaultCommandSearchSkillCatalogPayload

func DefaultCommandSearchSkillCatalogPayload() CommandSearchSkillCatalogPayload

func (CommandSearchSkillCatalogPayload) MarshalJSON

func (value CommandSearchSkillCatalogPayload) MarshalJSON() ([]byte, error)

func (*CommandSearchSkillCatalogPayload) UnmarshalJSON

func (value *CommandSearchSkillCatalogPayload) UnmarshalJSON(data []byte) error

type CommandSendQueuedTurnPayload

type CommandSendQueuedTurnPayload struct {
	Turn             TurnID `json:"turn"`
	ExpectedRevision uint64 `json:"expected_revision"`
}

func DefaultCommandSendQueuedTurnPayload

func DefaultCommandSendQueuedTurnPayload() CommandSendQueuedTurnPayload

func (CommandSendQueuedTurnPayload) MarshalJSON

func (value CommandSendQueuedTurnPayload) MarshalJSON() ([]byte, error)

func (*CommandSendQueuedTurnPayload) UnmarshalJSON

func (value *CommandSendQueuedTurnPayload) UnmarshalJSON(data []byte) error

type CommandSetConnectionEnabledPayload

type CommandSetConnectionEnabledPayload struct {
	Connection       PluginConnectorID `json:"connection"`
	ExpectedRevision uint64            `json:"expected_revision"`
	Enabled          bool              `json:"enabled"`
}

func DefaultCommandSetConnectionEnabledPayload

func DefaultCommandSetConnectionEnabledPayload() CommandSetConnectionEnabledPayload

func (CommandSetConnectionEnabledPayload) MarshalJSON

func (value CommandSetConnectionEnabledPayload) MarshalJSON() ([]byte, error)

func (*CommandSetConnectionEnabledPayload) UnmarshalJSON

func (value *CommandSetConnectionEnabledPayload) UnmarshalJSON(data []byte) error

type CommandSetPluginEnabledPayload

type CommandSetPluginEnabledPayload struct {
	Name             string `json:"name"`
	ExpectedRevision uint64 `json:"expected_revision"`
	Enabled          bool   `json:"enabled"`
}

func DefaultCommandSetPluginEnabledPayload

func DefaultCommandSetPluginEnabledPayload() CommandSetPluginEnabledPayload

func (CommandSetPluginEnabledPayload) MarshalJSON

func (value CommandSetPluginEnabledPayload) MarshalJSON() ([]byte, error)

func (*CommandSetPluginEnabledPayload) UnmarshalJSON

func (value *CommandSetPluginEnabledPayload) UnmarshalJSON(data []byte) error

type CommandSetPluginMcpAllowedPayload

type CommandSetPluginMcpAllowedPayload struct {
	Package PluginReference `json:"package"`
	Server  string          `json:"server"`
	Allowed bool            `json:"allowed"`
}

func DefaultCommandSetPluginMcpAllowedPayload

func DefaultCommandSetPluginMcpAllowedPayload() CommandSetPluginMcpAllowedPayload

func (CommandSetPluginMcpAllowedPayload) MarshalJSON

func (value CommandSetPluginMcpAllowedPayload) MarshalJSON() ([]byte, error)

func (*CommandSetPluginMcpAllowedPayload) UnmarshalJSON

func (value *CommandSetPluginMcpAllowedPayload) UnmarshalJSON(data []byte) error

type CommandSetPluginPinnedPayload

type CommandSetPluginPinnedPayload struct {
	Name             string `json:"name"`
	ExpectedRevision uint64 `json:"expected_revision"`
	Pinned           bool   `json:"pinned"`
}

func DefaultCommandSetPluginPinnedPayload

func DefaultCommandSetPluginPinnedPayload() CommandSetPluginPinnedPayload

func (*CommandSetPluginPinnedPayload) UnmarshalJSON

func (value *CommandSetPluginPinnedPayload) UnmarshalJSON(data []byte) error

type CommandSetQueuePausedPayload

type CommandSetQueuePausedPayload struct {
	Session          SessionID `json:"session"`
	ExpectedRevision uint64    `json:"expected_revision"`
	Paused           bool      `json:"paused"`
}

func DefaultCommandSetQueuePausedPayload

func DefaultCommandSetQueuePausedPayload() CommandSetQueuePausedPayload

func (CommandSetQueuePausedPayload) MarshalJSON

func (value CommandSetQueuePausedPayload) MarshalJSON() ([]byte, error)

func (*CommandSetQueuePausedPayload) UnmarshalJSON

func (value *CommandSetQueuePausedPayload) UnmarshalJSON(data []byte) error

type CommandSetSessionArchivedPayload

type CommandSetSessionArchivedPayload struct {
	Session          SessionID `json:"session"`
	ExpectedRevision uint64    `json:"expected_revision"`
	Archived         bool      `json:"archived"`
}

func DefaultCommandSetSessionArchivedPayload

func DefaultCommandSetSessionArchivedPayload() CommandSetSessionArchivedPayload

func (CommandSetSessionArchivedPayload) MarshalJSON

func (value CommandSetSessionArchivedPayload) MarshalJSON() ([]byte, error)

func (*CommandSetSessionArchivedPayload) UnmarshalJSON

func (value *CommandSetSessionArchivedPayload) UnmarshalJSON(data []byte) error

type CommandSetSessionConfigPayload

type CommandSetSessionConfigPayload struct {
	Session          SessionID     `json:"session"`
	ExpectedRevision uint64        `json:"expected_revision"`
	Config           SessionConfig `json:"config"`
}

func DefaultCommandSetSessionConfigPayload

func DefaultCommandSetSessionConfigPayload() CommandSetSessionConfigPayload

func (CommandSetSessionConfigPayload) MarshalJSON

func (value CommandSetSessionConfigPayload) MarshalJSON() ([]byte, error)

func (*CommandSetSessionConfigPayload) UnmarshalJSON

func (value *CommandSetSessionConfigPayload) UnmarshalJSON(data []byte) error

type CommandSetSessionExecutionPayload

type CommandSetSessionExecutionPayload struct {
	Session          SessionID             `json:"session"`
	ExpectedRevision uint64                `json:"expected_revision"`
	Execution        ConversationExecution `json:"execution"`
	Team             *TeamSelection        `json:"team"`
	Models           map[RoleID]RoleModel  `json:"models,omitempty"`
}

func DefaultCommandSetSessionExecutionPayload

func DefaultCommandSetSessionExecutionPayload() CommandSetSessionExecutionPayload

func (CommandSetSessionExecutionPayload) MarshalJSON

func (value CommandSetSessionExecutionPayload) MarshalJSON() ([]byte, error)

func (*CommandSetSessionExecutionPayload) UnmarshalJSON

func (value *CommandSetSessionExecutionPayload) UnmarshalJSON(data []byte) error

type CommandSetSessionMemberModelPayload

type CommandSetSessionMemberModelPayload struct {
	Session          SessionID  `json:"session"`
	ExpectedRevision uint64     `json:"expected_revision"`
	Role             RoleID     `json:"role"`
	Model            *RoleModel `json:"model"`
}

func DefaultCommandSetSessionMemberModelPayload

func DefaultCommandSetSessionMemberModelPayload() CommandSetSessionMemberModelPayload

func (CommandSetSessionMemberModelPayload) MarshalJSON

func (value CommandSetSessionMemberModelPayload) MarshalJSON() ([]byte, error)

func (*CommandSetSessionMemberModelPayload) UnmarshalJSON

func (value *CommandSetSessionMemberModelPayload) UnmarshalJSON(data []byte) error

type CommandSetSessionOrderPayload

type CommandSetSessionOrderPayload struct {
	Project  ProjectID   `json:"project"`
	Expected []SessionID `json:"expected"`
	Sessions []SessionID `json:"sessions"`
}

func DefaultCommandSetSessionOrderPayload

func DefaultCommandSetSessionOrderPayload() CommandSetSessionOrderPayload

func (CommandSetSessionOrderPayload) MarshalJSON

func (value CommandSetSessionOrderPayload) MarshalJSON() ([]byte, error)

func (*CommandSetSessionOrderPayload) UnmarshalJSON

func (value *CommandSetSessionOrderPayload) UnmarshalJSON(data []byte) error

type CommandSetSessionReadPayload

type CommandSetSessionReadPayload struct {
	Session          SessionID `json:"session"`
	ExpectedRevision uint64    `json:"expected_revision"`
	Read             bool      `json:"read"`
}

func DefaultCommandSetSessionReadPayload

func DefaultCommandSetSessionReadPayload() CommandSetSessionReadPayload

func (CommandSetSessionReadPayload) MarshalJSON

func (value CommandSetSessionReadPayload) MarshalJSON() ([]byte, error)

func (*CommandSetSessionReadPayload) UnmarshalJSON

func (value *CommandSetSessionReadPayload) UnmarshalJSON(data []byte) error

type CommandSetSessionRolesPayload

type CommandSetSessionRolesPayload struct {
	Session          SessionID       `json:"session"`
	ExpectedRevision uint64          `json:"expected_revision"`
	Roles            []RoleReference `json:"roles"`
}

func DefaultCommandSetSessionRolesPayload

func DefaultCommandSetSessionRolesPayload() CommandSetSessionRolesPayload

func (CommandSetSessionRolesPayload) MarshalJSON

func (value CommandSetSessionRolesPayload) MarshalJSON() ([]byte, error)

func (*CommandSetSessionRolesPayload) UnmarshalJSON

func (value *CommandSetSessionRolesPayload) UnmarshalJSON(data []byte) error

type CommandSetTerminalAppearancePayload

type CommandSetTerminalAppearancePayload struct {
	Terminal   TerminalID         `json:"terminal"`
	Revision   uint64             `json:"revision"`
	Appearance TerminalAppearance `json:"appearance"`
}

func DefaultCommandSetTerminalAppearancePayload

func DefaultCommandSetTerminalAppearancePayload() CommandSetTerminalAppearancePayload

func (CommandSetTerminalAppearancePayload) MarshalJSON

func (value CommandSetTerminalAppearancePayload) MarshalJSON() ([]byte, error)

func (*CommandSetTerminalAppearancePayload) UnmarshalJSON

func (value *CommandSetTerminalAppearancePayload) UnmarshalJSON(data []byte) error

type CommandStartConnectorLoginPayload

type CommandStartConnectorLoginPayload struct {
	Package            PluginReference      `json:"package"`
	Connector          string               `json:"connector"`
	Connection         *PluginConnectorID   `json:"connection"`
	ExpectedRevision   *uint64              `json:"expected_revision"`
	ExpectedCLIAccount *string              `json:"expected_cli_account,omitempty"`
	Method             PluginConnectorKind  `json:"method"`
	Input              PluginConnectorInput `json:"input"`
}

func DefaultCommandStartConnectorLoginPayload

func DefaultCommandStartConnectorLoginPayload() CommandStartConnectorLoginPayload

func (CommandStartConnectorLoginPayload) MarshalJSON

func (value CommandStartConnectorLoginPayload) MarshalJSON() ([]byte, error)

func (*CommandStartConnectorLoginPayload) UnmarshalJSON

func (value *CommandStartConnectorLoginPayload) UnmarshalJSON(data []byte) error

type CommandStartQueuedTurnPayload

type CommandStartQueuedTurnPayload struct {
	Turn TurnID `json:"turn"`
}

func DefaultCommandStartQueuedTurnPayload

func DefaultCommandStartQueuedTurnPayload() CommandStartQueuedTurnPayload

func (CommandStartQueuedTurnPayload) MarshalJSON

func (value CommandStartQueuedTurnPayload) MarshalJSON() ([]byte, error)

func (*CommandStartQueuedTurnPayload) UnmarshalJSON

func (value *CommandStartQueuedTurnPayload) UnmarshalJSON(data []byte) error

type CommandStopCommandPayload

type CommandStopCommandPayload struct {
	Session SessionID `json:"session"`
	ID      RequestID `json:"id"`
}

func DefaultCommandStopCommandPayload

func DefaultCommandStopCommandPayload() CommandStopCommandPayload

func (CommandStopCommandPayload) MarshalJSON

func (value CommandStopCommandPayload) MarshalJSON() ([]byte, error)

func (*CommandStopCommandPayload) UnmarshalJSON

func (value *CommandStopCommandPayload) UnmarshalJSON(data []byte) error

type CommandStopCommandsPayload

type CommandStopCommandsPayload struct {
	Session SessionID `json:"session"`
}

func DefaultCommandStopCommandsPayload

func DefaultCommandStopCommandsPayload() CommandStopCommandsPayload

func (CommandStopCommandsPayload) MarshalJSON

func (value CommandStopCommandsPayload) MarshalJSON() ([]byte, error)

func (*CommandStopCommandsPayload) UnmarshalJSON

func (value *CommandStopCommandsPayload) UnmarshalJSON(data []byte) error

type CommandStopDispatchTurnPayload

type CommandStopDispatchTurnPayload struct {
	Package PluginReference `json:"package"`
	Job     JobID           `json:"job"`
}

func DefaultCommandStopDispatchTurnPayload

func DefaultCommandStopDispatchTurnPayload() CommandStopDispatchTurnPayload

func (CommandStopDispatchTurnPayload) MarshalJSON

func (value CommandStopDispatchTurnPayload) MarshalJSON() ([]byte, error)

func (*CommandStopDispatchTurnPayload) UnmarshalJSON

func (value *CommandStopDispatchTurnPayload) UnmarshalJSON(data []byte) error

type CommandStopHostProcessPayload

type CommandStopHostProcessPayload struct {
	Pid           uint32 `json:"pid"`
	StartedAtSecs uint64 `json:"started_at_secs"`
	Force         bool   `json:"force"`
}

func DefaultCommandStopHostProcessPayload

func DefaultCommandStopHostProcessPayload() CommandStopHostProcessPayload

func (CommandStopHostProcessPayload) MarshalJSON

func (value CommandStopHostProcessPayload) MarshalJSON() ([]byte, error)

func (*CommandStopHostProcessPayload) UnmarshalJSON

func (value *CommandStopHostProcessPayload) UnmarshalJSON(data []byte) error

type CommandStopTurnPayload

type CommandStopTurnPayload struct {
	Turn TurnID `json:"turn"`
}

func DefaultCommandStopTurnPayload

func DefaultCommandStopTurnPayload() CommandStopTurnPayload

func (CommandStopTurnPayload) MarshalJSON

func (value CommandStopTurnPayload) MarshalJSON() ([]byte, error)

func (*CommandStopTurnPayload) UnmarshalJSON

func (value *CommandStopTurnPayload) UnmarshalJSON(data []byte) error

type CommandSubmitConnectorInputPayload

type CommandSubmitConnectorInputPayload struct {
	Attempt RequestID `json:"attempt"`
	Input   Secret    `json:"input"`
}

func DefaultCommandSubmitConnectorInputPayload

func DefaultCommandSubmitConnectorInputPayload() CommandSubmitConnectorInputPayload

func (CommandSubmitConnectorInputPayload) MarshalJSON

func (value CommandSubmitConnectorInputPayload) MarshalJSON() ([]byte, error)

func (*CommandSubmitConnectorInputPayload) UnmarshalJSON

func (value *CommandSubmitConnectorInputPayload) UnmarshalJSON(data []byte) error

type CommandSubmitTaskPayload

type CommandSubmitTaskPayload struct {
	Session          SessionID         `json:"session"`
	ExpectedRevision *uint64           `json:"expected_revision"`
	Message          ConversationInput `json:"message"`
}

func DefaultCommandSubmitTaskPayload

func DefaultCommandSubmitTaskPayload() CommandSubmitTaskPayload

func (CommandSubmitTaskPayload) MarshalJSON

func (value CommandSubmitTaskPayload) MarshalJSON() ([]byte, error)

func (*CommandSubmitTaskPayload) UnmarshalJSON

func (value *CommandSubmitTaskPayload) UnmarshalJSON(data []byte) error

type CommandSubmitTurnPayload

type CommandSubmitTurnPayload struct {
	Session          SessionID         `json:"session"`
	ExpectedRevision uint64            `json:"expected_revision"`
	Message          ConversationInput `json:"message"`
}

func DefaultCommandSubmitTurnPayload

func DefaultCommandSubmitTurnPayload() CommandSubmitTurnPayload

func (CommandSubmitTurnPayload) MarshalJSON

func (value CommandSubmitTurnPayload) MarshalJSON() ([]byte, error)

func (*CommandSubmitTurnPayload) UnmarshalJSON

func (value *CommandSubmitTurnPayload) UnmarshalJSON(data []byte) error

type CommandSwitchGitBranchPayload

type CommandSwitchGitBranchPayload struct {
	Worktree       WorktreeID `json:"worktree"`
	Name           string     `json:"name"`
	Commit         string     `json:"commit"`
	ExpectedHead   *string    `json:"expected_head"`
	ExpectedBranch *string    `json:"expected_branch"`
	ExpectedIndex  string     `json:"expected_index"`
}

func DefaultCommandSwitchGitBranchPayload

func DefaultCommandSwitchGitBranchPayload() CommandSwitchGitBranchPayload

func (CommandSwitchGitBranchPayload) MarshalJSON

func (value CommandSwitchGitBranchPayload) MarshalJSON() ([]byte, error)

func (*CommandSwitchGitBranchPayload) UnmarshalJSON

func (value *CommandSwitchGitBranchPayload) UnmarshalJSON(data []byte) error

type CommandSynthesizeSpeechPayload

type CommandSynthesizeSpeechPayload struct {
	Text  string  `json:"text"`
	Voice *string `json:"voice,omitempty"`
}

CommandSynthesizeSpeechPayload asks the assigned speech model to read text aloud.

func DefaultCommandSynthesizeSpeechPayload

func DefaultCommandSynthesizeSpeechPayload() CommandSynthesizeSpeechPayload

func (CommandSynthesizeSpeechPayload) MarshalJSON

func (value CommandSynthesizeSpeechPayload) MarshalJSON() ([]byte, error)

func (*CommandSynthesizeSpeechPayload) UnmarshalJSON

func (value *CommandSynthesizeSpeechPayload) UnmarshalJSON(data []byte) error

type CommandTestDatabasePayload

type CommandTestDatabasePayload struct {
	Profile          DatabaseProfile `json:"profile"`
	ExpectedRevision uint64          `json:"expected_revision"`
	Password         *Secret         `json:"password"`
}

func DefaultCommandTestDatabasePayload

func DefaultCommandTestDatabasePayload() CommandTestDatabasePayload

func (CommandTestDatabasePayload) MarshalJSON

func (value CommandTestDatabasePayload) MarshalJSON() ([]byte, error)

func (*CommandTestDatabasePayload) UnmarshalJSON

func (value *CommandTestDatabasePayload) UnmarshalJSON(data []byte) error

type CommandTestSearchDriverPayload

type CommandTestSearchDriverPayload struct {
	Driver SearchDriver `json:"driver"`
}

func DefaultCommandTestSearchDriverPayload

func DefaultCommandTestSearchDriverPayload() CommandTestSearchDriverPayload

func (CommandTestSearchDriverPayload) MarshalJSON

func (value CommandTestSearchDriverPayload) MarshalJSON() ([]byte, error)

func (*CommandTestSearchDriverPayload) UnmarshalJSON

func (value *CommandTestSearchDriverPayload) UnmarshalJSON(data []byte) error

type CommandTransferSshPayload

type CommandTransferSshPayload struct {
	Profile          SshID       `json:"profile"`
	ExpectedRevision uint64      `json:"expected_revision"`
	Transfer         SshTransfer `json:"transfer"`
	TimeoutMs        uint64      `json:"timeout_ms"`
}

func DefaultCommandTransferSshPayload

func DefaultCommandTransferSshPayload() CommandTransferSshPayload

func (CommandTransferSshPayload) MarshalJSON

func (value CommandTransferSshPayload) MarshalJSON() ([]byte, error)

func (*CommandTransferSshPayload) UnmarshalJSON

func (value *CommandTransferSshPayload) UnmarshalJSON(data []byte) error

type CommandTrashEntryPayload

type CommandTrashEntryPayload struct {
	Worktree WorktreeID `json:"worktree"`
	Path     string     `json:"path"`
}

func DefaultCommandTrashEntryPayload

func DefaultCommandTrashEntryPayload() CommandTrashEntryPayload

func (CommandTrashEntryPayload) MarshalJSON

func (value CommandTrashEntryPayload) MarshalJSON() ([]byte, error)

func (*CommandTrashEntryPayload) UnmarshalJSON

func (value *CommandTrashEntryPayload) UnmarshalJSON(data []byte) error

type CommandTrashFilePayload

type CommandTrashFilePayload struct {
	Worktree         WorktreeID `json:"worktree"`
	Path             string     `json:"path"`
	ExpectedRevision string     `json:"expected_revision"`
	ExpectedStamp    string     `json:"expected_stamp"`
}

func DefaultCommandTrashFilePayload

func DefaultCommandTrashFilePayload() CommandTrashFilePayload

func (CommandTrashFilePayload) MarshalJSON

func (value CommandTrashFilePayload) MarshalJSON() ([]byte, error)

func (*CommandTrashFilePayload) UnmarshalJSON

func (value *CommandTrashFilePayload) UnmarshalJSON(data []byte) error

type CommandTrustSshPayload

type CommandTrustSshPayload struct {
	Profile          SshID      `json:"profile"`
	ExpectedRevision uint64     `json:"expected_revision"`
	Key              SshHostKey `json:"key"`
}

func DefaultCommandTrustSshPayload

func DefaultCommandTrustSshPayload() CommandTrustSshPayload

func (CommandTrustSshPayload) MarshalJSON

func (value CommandTrustSshPayload) MarshalJSON() ([]byte, error)

func (*CommandTrustSshPayload) UnmarshalJSON

func (value *CommandTrustSshPayload) UnmarshalJSON(data []byte) error

type CommandUpdateConnectionPayload

type CommandUpdateConnectionPayload struct {
	Connection       PluginConnectorID    `json:"connection"`
	ExpectedRevision uint64               `json:"expected_revision"`
	Input            PluginConnectorInput `json:"input"`
}

func DefaultCommandUpdateConnectionPayload

func DefaultCommandUpdateConnectionPayload() CommandUpdateConnectionPayload

func (CommandUpdateConnectionPayload) MarshalJSON

func (value CommandUpdateConnectionPayload) MarshalJSON() ([]byte, error)

func (*CommandUpdateConnectionPayload) UnmarshalJSON

func (value *CommandUpdateConnectionPayload) UnmarshalJSON(data []byte) error

type CommandUpdateGitIndexPayload

type CommandUpdateGitIndexPayload struct {
	Worktree      WorktreeID     `json:"worktree"`
	Paths         []string       `json:"paths"`
	Operation     GitIndexChange `json:"operation"`
	ExpectedIndex string         `json:"expected_index"`
	ExpectedHead  *string        `json:"expected_head"`
}

func DefaultCommandUpdateGitIndexPayload

func DefaultCommandUpdateGitIndexPayload() CommandUpdateGitIndexPayload

func (CommandUpdateGitIndexPayload) MarshalJSON

func (value CommandUpdateGitIndexPayload) MarshalJSON() ([]byte, error)

func (*CommandUpdateGitIndexPayload) UnmarshalJSON

func (value *CommandUpdateGitIndexPayload) UnmarshalJSON(data []byte) error

type CommandUpdateKnowledgeCollectionPayload

type CommandUpdateKnowledgeCollectionPayload struct {
	Node             *NodeID             `json:"node,omitempty"`
	ID               KnowledgeID         `json:"id"`
	ExpectedRevision uint64              `json:"expected_revision"`
	Definition       KnowledgeDefinition `json:"definition"`
}

func DefaultCommandUpdateKnowledgeCollectionPayload

func DefaultCommandUpdateKnowledgeCollectionPayload() CommandUpdateKnowledgeCollectionPayload

func (CommandUpdateKnowledgeCollectionPayload) MarshalJSON

func (value CommandUpdateKnowledgeCollectionPayload) MarshalJSON() ([]byte, error)

func (*CommandUpdateKnowledgeCollectionPayload) UnmarshalJSON

func (value *CommandUpdateKnowledgeCollectionPayload) UnmarshalJSON(data []byte) error

type CommandUpdateProjectPayload

type CommandUpdateProjectPayload struct {
	Expected   Project            `json:"expected"`
	Name       string             `json:"name"`
	Path       string             `json:"path"`
	Appearance ProjectsAppearance `json:"appearance"`
	Visibility *ProjectVisibility `json:"visibility,omitempty"`
}

func DefaultCommandUpdateProjectPayload

func DefaultCommandUpdateProjectPayload() CommandUpdateProjectPayload

func (CommandUpdateProjectPayload) MarshalJSON

func (value CommandUpdateProjectPayload) MarshalJSON() ([]byte, error)

func (*CommandUpdateProjectPayload) UnmarshalJSON

func (value *CommandUpdateProjectPayload) UnmarshalJSON(data []byte) error

type CommandUpdateSshHostPayload

type CommandUpdateSshHostPayload struct {
	Profile          SshID  `json:"profile"`
	ExpectedRevision uint64 `json:"expected_revision"`
	Node             NodeID `json:"node"`
}

func DefaultCommandUpdateSshHostPayload

func DefaultCommandUpdateSshHostPayload() CommandUpdateSshHostPayload

func (CommandUpdateSshHostPayload) MarshalJSON

func (value CommandUpdateSshHostPayload) MarshalJSON() ([]byte, error)

func (*CommandUpdateSshHostPayload) UnmarshalJSON

func (value *CommandUpdateSshHostPayload) UnmarshalJSON(data []byte) error

type CommandUploadBackupPayload

type CommandUploadBackupPayload struct {
	Size     uint64 `json:"size"`
	Revision string `json:"revision"`
}

func DefaultCommandUploadBackupPayload

func DefaultCommandUploadBackupPayload() CommandUploadBackupPayload

func (CommandUploadBackupPayload) MarshalJSON

func (value CommandUploadBackupPayload) MarshalJSON() ([]byte, error)

func (*CommandUploadBackupPayload) UnmarshalJSON

func (value *CommandUploadBackupPayload) UnmarshalJSON(data []byte) error

type CommandUseBrowserPayload

type CommandUseBrowserPayload struct {
	Session  SessionID     `json:"session"`
	Worktree WorktreeID    `json:"worktree"`
	Action   BrowserAction `json:"action"`
}

func DefaultCommandUseBrowserPayload

func DefaultCommandUseBrowserPayload() CommandUseBrowserPayload

func (CommandUseBrowserPayload) MarshalJSON

func (value CommandUseBrowserPayload) MarshalJSON() ([]byte, error)

func (*CommandUseBrowserPayload) UnmarshalJSON

func (value *CommandUseBrowserPayload) UnmarshalJSON(data []byte) error

type CommandUseExternalBrowserPayload

type CommandUseExternalBrowserPayload struct {
	Session   SessionID             `json:"session"`
	Worktree  WorktreeID            `json:"worktree"`
	Action    ExternalBrowserAction `json:"action"`
	Arguments json.RawMessage       `json:"arguments"`
}

func DefaultCommandUseExternalBrowserPayload

func DefaultCommandUseExternalBrowserPayload() CommandUseExternalBrowserPayload

func (CommandUseExternalBrowserPayload) MarshalJSON

func (value CommandUseExternalBrowserPayload) MarshalJSON() ([]byte, error)

func (*CommandUseExternalBrowserPayload) UnmarshalJSON

func (value *CommandUseExternalBrowserPayload) UnmarshalJSON(data []byte) error

type CommandUseMediaPayload

type CommandUseMediaPayload struct {
	Turn     TurnID      `json:"turn"`
	Session  SessionID   `json:"session"`
	Worktree WorktreeID  `json:"worktree"`
	Action   MediaAction `json:"action"`
}

func DefaultCommandUseMediaPayload

func DefaultCommandUseMediaPayload() CommandUseMediaPayload

func (CommandUseMediaPayload) MarshalJSON

func (value CommandUseMediaPayload) MarshalJSON() ([]byte, error)

func (*CommandUseMediaPayload) UnmarshalJSON

func (value *CommandUseMediaPayload) UnmarshalJSON(data []byte) error

type CommandWithdrawGuidancePayload

type CommandWithdrawGuidancePayload struct {
	Turn             TurnID `json:"turn"`
	ExpectedRevision uint64 `json:"expected_revision"`
}

func DefaultCommandWithdrawGuidancePayload

func DefaultCommandWithdrawGuidancePayload() CommandWithdrawGuidancePayload

func (CommandWithdrawGuidancePayload) MarshalJSON

func (value CommandWithdrawGuidancePayload) MarshalJSON() ([]byte, error)

func (*CommandWithdrawGuidancePayload) UnmarshalJSON

func (value *CommandWithdrawGuidancePayload) UnmarshalJSON(data []byte) error

type CommandWriteCommandPayload

type CommandWriteCommandPayload struct {
	Session SessionID `json:"session"`
	ID      RequestID `json:"id"`
	Input   string    `json:"input"`
}

func DefaultCommandWriteCommandPayload

func DefaultCommandWriteCommandPayload() CommandWriteCommandPayload

func (CommandWriteCommandPayload) MarshalJSON

func (value CommandWriteCommandPayload) MarshalJSON() ([]byte, error)

func (*CommandWriteCommandPayload) UnmarshalJSON

func (value *CommandWriteCommandPayload) UnmarshalJSON(data []byte) error

type CommandWriteFilePayload

type CommandWriteFilePayload struct {
	Worktree         WorktreeID `json:"worktree"`
	Path             string     `json:"path"`
	Text             string     `json:"text"`
	ExpectedRevision *string    `json:"expected_revision"`
}

func DefaultCommandWriteFilePayload

func DefaultCommandWriteFilePayload() CommandWriteFilePayload

func (CommandWriteFilePayload) MarshalJSON

func (value CommandWriteFilePayload) MarshalJSON() ([]byte, error)

func (*CommandWriteFilePayload) UnmarshalJSON

func (value *CommandWriteFilePayload) UnmarshalJSON(data []byte) error

type CommandWriteIndexedPluginValuePayload

type CommandWriteIndexedPluginValuePayload struct {
	Key              string             `json:"key"`
	Value            json.RawMessage    `json:"value"`
	Index            PluginStorageIndex `json:"index"`
	ExpectedRevision uint64             `json:"expected_revision"`
	Scope            PluginStorageScope `json:"scope,omitempty"`
}

func DefaultCommandWriteIndexedPluginValuePayload

func DefaultCommandWriteIndexedPluginValuePayload() CommandWriteIndexedPluginValuePayload

func (CommandWriteIndexedPluginValuePayload) MarshalJSON

func (value CommandWriteIndexedPluginValuePayload) MarshalJSON() ([]byte, error)

func (*CommandWriteIndexedPluginValuePayload) UnmarshalJSON

func (value *CommandWriteIndexedPluginValuePayload) UnmarshalJSON(data []byte) error

type CommandWritePluginConversationValuePayload

type CommandWritePluginConversationValuePayload struct {
	Key              string          `json:"key"`
	Value            json.RawMessage `json:"value"`
	ExpectedRevision uint64          `json:"expected_revision"`
}

func DefaultCommandWritePluginConversationValuePayload

func DefaultCommandWritePluginConversationValuePayload() CommandWritePluginConversationValuePayload

func (CommandWritePluginConversationValuePayload) MarshalJSON

func (value CommandWritePluginConversationValuePayload) MarshalJSON() ([]byte, error)

func (*CommandWritePluginConversationValuePayload) UnmarshalJSON

func (value *CommandWritePluginConversationValuePayload) UnmarshalJSON(data []byte) error

type CommandWritePluginValuePayload

type CommandWritePluginValuePayload struct {
	Key              string             `json:"key"`
	Value            json.RawMessage    `json:"value"`
	ExpectedRevision uint64             `json:"expected_revision"`
	Scope            PluginStorageScope `json:"scope,omitempty"`
}

func DefaultCommandWritePluginValuePayload

func DefaultCommandWritePluginValuePayload() CommandWritePluginValuePayload

func (CommandWritePluginValuePayload) MarshalJSON

func (value CommandWritePluginValuePayload) MarshalJSON() ([]byte, error)

func (*CommandWritePluginValuePayload) UnmarshalJSON

func (value *CommandWritePluginValuePayload) UnmarshalJSON(data []byte) error

type ComputerPermission

type ComputerPermission string
const (
	ComputerPermissionScreenCapture ComputerPermission = "screen_capture"
	ComputerPermissionAccessibility ComputerPermission = "accessibility"
)

func (ComputerPermission) MarshalJSON

func (value ComputerPermission) MarshalJSON() ([]byte, error)

func (ComputerPermission) MarshalText

func (value ComputerPermission) MarshalText() ([]byte, error)

func (*ComputerPermission) UnmarshalJSON

func (value *ComputerPermission) UnmarshalJSON(data []byte) error

func (*ComputerPermission) UnmarshalText

func (value *ComputerPermission) UnmarshalText(data []byte) error

type ComputerPermissions

type ComputerPermissions struct {
	Node          NodeID `json:"node"`
	Platform      string `json:"platform"`
	Local         bool   `json:"local"`
	ScreenCapture *bool  `json:"screen_capture"`
	Accessibility *bool  `json:"accessibility"`
}

func DefaultComputerPermissions

func DefaultComputerPermissions() ComputerPermissions

func (ComputerPermissions) MarshalJSON

func (value ComputerPermissions) MarshalJSON() ([]byte, error)

func (*ComputerPermissions) UnmarshalJSON

func (value *ComputerPermissions) UnmarshalJSON(data []byte) error

type ComputerSettings

type ComputerSettings struct {
	Revision    uint64 `json:"revision"`
	Enabled     bool   `json:"enabled"`
	Available   bool   `json:"available,omitempty"`
	HelperError string `json:"helper_error,omitempty"`
}

func DefaultComputerSettings

func DefaultComputerSettings() ComputerSettings

func (*ComputerSettings) UnmarshalJSON

func (value *ComputerSettings) UnmarshalJSON(data []byte) error

type ConfigurationDocument added in v0.2.5

type ConfigurationDocument struct {
	Document json.RawMessage `json:"document"`
}

ConfigurationDocument is an exported configuration. The document is the Node's own versioned format; clients store and return it unchanged.

func DefaultConfigurationDocument added in v0.2.5

func DefaultConfigurationDocument() ConfigurationDocument

func (ConfigurationDocument) MarshalJSON added in v0.2.5

func (value ConfigurationDocument) MarshalJSON() ([]byte, error)

func (*ConfigurationDocument) UnmarshalJSON added in v0.2.5

func (value *ConfigurationDocument) UnmarshalJSON(data []byte) error

type ConfigurationFollowCommand

type ConfigurationFollowCommand struct {
	Action           string                     `json:"action"`
	Source           *NodeID                    `json:"source,omitempty"`
	Target           *ConfigurationFollowTarget `json:"target,omitempty"`
	ExpectedRevision uint64                     `json:"expected_revision,omitempty"`
	Manifest         *ConfigurationManifest     `json:"manifest,omitempty"`
	Page             *ConfigurationSnapshotPage `json:"page,omitempty"`
	Category         string                     `json:"category,omitempty"`
	Plugin           string                     `json:"plugin,omitempty"`
	Server           string                     `json:"server,omitempty"`
	Local            bool                       `json:"local,omitempty"`
	Stream           *StreamID                  `json:"stream,omitempty"`
	Package          *PluginReference           `json:"package,omitempty"`
	KVReceipt        *PersonalKVReceipt         `json:"kv_receipt,omitempty"`
	KVSnapshot       *PersonalKVSnapshot        `json:"kv_snapshot,omitempty"`
	KVRead           *PersonalKVRead            `json:"kv_read,omitempty"`
}

ConfigurationFollowCommand is one typed action family. Authenticated caller membership chooses the local user; its payload never supplies a user identity.

func (*ConfigurationFollowCommand) DecodeJSON

func (value *ConfigurationFollowCommand) DecodeJSON(decoder *Decoder) error

func (*ConfigurationFollowCommand) UnmarshalJSON

func (value *ConfigurationFollowCommand) UnmarshalJSON(data []byte) error

type ConfigurationFollowIssue

type ConfigurationFollowIssue struct {
	Category string `json:"category"`
	ID       string `json:"id"`
	State    string `json:"state"`
	Message  string `json:"message"`
}

type ConfigurationFollowRecord

type ConfigurationFollowRecord struct {
	ID          string          `json:"id"`
	Revision    uint64          `json:"revision"`
	Digest      string          `json:"digest"`
	Body        json.RawMessage `json:"body,omitempty"`
	Secret      *Secret         `json:"secret,omitempty"`
	ExpiresAtMs *uint64         `json:"expires_at_ms,omitempty"`
}

type ConfigurationFollowStatus

type ConfigurationFollowStatus struct {
	MCPLocal []ConfigurationMCPLocal     `json:"mcp_local,omitempty"`
	User     *User                       `json:"user,omitempty"`
	Source   *NodeID                     `json:"source,omitempty"`
	Revision uint64                      `json:"revision"`
	Targets  []ConfigurationFollowTarget `json:"targets"`
	Issues   []ConfigurationFollowIssue  `json:"issues"`
}

type ConfigurationFollowTarget

type ConfigurationFollowTarget struct {
	Host          NodeID `json:"host"`
	Revision      uint64 `json:"revision"`
	Configuration bool   `json:"configuration"`
	Secrets       bool   `json:"secrets"`
	Error         *Fault `json:"error,omitempty"`
}

type ConfigurationImportAction added in v0.2.5

type ConfigurationImportAction string
const (
	ConfigurationImportAdded   ConfigurationImportAction = "added"
	ConfigurationImportUpdated ConfigurationImportAction = "updated"
	ConfigurationImportSkipped ConfigurationImportAction = "skipped"
)

func (ConfigurationImportAction) MarshalJSON added in v0.2.5

func (value ConfigurationImportAction) MarshalJSON() ([]byte, error)

func (*ConfigurationImportAction) UnmarshalJSON added in v0.2.5

func (value *ConfigurationImportAction) UnmarshalJSON(data []byte) error

type ConfigurationImportItem added in v0.2.5

type ConfigurationImportItem struct {
	Area   string                    `json:"area"`
	Name   string                    `json:"name"`
	Action ConfigurationImportAction `json:"action"`
	Reason *string                   `json:"reason,omitempty"`
}

ConfigurationImportItem is one imported entry. Area names the settings group; Name is the entry within it, empty for a single setting. Reason says why a skipped entry was left out and what restores it.

func DefaultConfigurationImportItem added in v0.2.5

func DefaultConfigurationImportItem() ConfigurationImportItem

func (ConfigurationImportItem) MarshalJSON added in v0.2.5

func (value ConfigurationImportItem) MarshalJSON() ([]byte, error)

func (*ConfigurationImportItem) UnmarshalJSON added in v0.2.5

func (value *ConfigurationImportItem) UnmarshalJSON(data []byte) error

type ConfigurationImportReport added in v0.2.5

type ConfigurationImportReport struct {
	Preview bool                      `json:"preview"`
	Items   []ConfigurationImportItem `json:"items"`
}

func DefaultConfigurationImportReport added in v0.2.5

func DefaultConfigurationImportReport() ConfigurationImportReport

func (ConfigurationImportReport) MarshalJSON added in v0.2.5

func (value ConfigurationImportReport) MarshalJSON() ([]byte, error)

func (*ConfigurationImportReport) UnmarshalJSON added in v0.2.5

func (value *ConfigurationImportReport) UnmarshalJSON(data []byte) error

type ConfigurationMCPLocal

type ConfigurationMCPLocal struct {
	Plugin string `json:"plugin"`
	Server string `json:"server"`
}

type ConfigurationManifest

type ConfigurationManifest struct {
	Captured []CapturedModelCredential   `json:"captured,omitzero"`
	Source   NodeID                      `json:"source"`
	Category string                      `json:"category"`
	Revision uint64                      `json:"revision"`
	Records  []ConfigurationFollowRecord `json:"records"`
}

type ConfigurationOrigin

type ConfigurationOrigin struct {
	Node     NodeID `json:"node"`
	Revision uint64 `json:"revision"`
}

ConfigurationOrigin identifies a read-only personal configuration replica.

type ConfigurationPackageStatus

type ConfigurationPackageStatus struct {
	Available bool `json:"available"`
}

type ConfigurationReason

type ConfigurationReason string

ConfigurationReason identifies a configuration refusal without exposing its message, account, package name or credential. Unknown peer reasons remain readable but must not be treated as an expected refusal or sent to telemetry.

const (
	ConfigurationDefaultsMissing             ConfigurationReason = "defaults_missing"
	ConfigurationProviderDisabled            ConfigurationReason = "provider_disabled"
	ConfigurationProviderRemoved             ConfigurationReason = "provider_removed"
	ConfigurationProviderMissing             ConfigurationReason = "provider_missing"
	ConfigurationCredentialMissing           ConfigurationReason = "credential_missing"
	ConfigurationLoginRequired               ConfigurationReason = "login_required"
	ConfigurationAuthenticationChanged       ConfigurationReason = "authentication_changed"
	ConfigurationAuthorizationExpired        ConfigurationReason = "authorization_expired"
	ConfigurationRenewalDeferred             ConfigurationReason = "renewal_deferred"
	ConfigurationCredentialRevoked           ConfigurationReason = "credential_revoked"
	ConfigurationMachineBound                ConfigurationReason = "machine_bound"
	ConfigurationRuntimeCredentialMissing    ConfigurationReason = "runtime_credential_missing"
	ConfigurationProviderCaptureMissing      ConfigurationReason = "provider_capture_missing"
	ConfigurationRoleCaptureMissing          ConfigurationReason = "role_capture_missing"
	ConfigurationTeamCaptureMissing          ConfigurationReason = "team_capture_missing"
	ConfigurationAssistantCaptureMissing     ConfigurationReason = "assistant_capture_missing"
	ConfigurationPluginDisabled              ConfigurationReason = "plugin_disabled"
	ConfigurationPluginUnavailable           ConfigurationReason = "plugin_unavailable"
	ConfigurationPluginBindingMissing        ConfigurationReason = "plugin_binding_missing"
	ConfigurationPluginDeclarationMissing    ConfigurationReason = "plugin_declaration_missing"
	ConfigurationAuthenticationClientMissing ConfigurationReason = "authentication_client_missing"
)

func (ConfigurationReason) Known

func (value ConfigurationReason) Known() bool

func (ConfigurationReason) MarshalJSON

func (value ConfigurationReason) MarshalJSON() ([]byte, error)

func (*ConfigurationReason) UnmarshalJSON

func (value *ConfigurationReason) UnmarshalJSON(data []byte) error

type ConfigurationSnapshotPage

type ConfigurationSnapshotPage struct {
	Root     RequestID `json:"root"`
	Source   NodeID    `json:"source"`
	Category string    `json:"category"`
	Revision uint64    `json:"revision"`
	Bytes    uint64    `json:"bytes"`
	Digest   string    `json:"digest"`
	Index    uint64    `json:"index"`
	Data     []byte    `json:"data,omitempty"`
}

ConfigurationSnapshotPage binds every chunk to one frozen delivery. Data is encoded as bytes so a page can end inside any JSON string or UTF-8 sequence.

type ConfigurationSnapshotProgress

type ConfigurationSnapshotProgress struct {
	Root      RequestID `json:"root"`
	NextIndex uint64    `json:"next_index"`
	Complete  bool      `json:"complete"`
}

ConfigurationSnapshotProgress is also the persistent receipt. Complete is published in the same transaction as the replacement cache and its events.

type ConfirmSponsorship

type ConfirmSponsorship struct {
	Sponsor NodeID    `json:"sponsor"`
	Request RequestID `json:"request"`
}

func (*ConfirmSponsorship) UnmarshalJSON

func (value *ConfirmSponsorship) UnmarshalJSON(data []byte) error

type ConnectionResource

type ConnectionResource struct {
	Kind string
	Data any
}

func (*ConnectionResource) DecodeJSON

func (value *ConnectionResource) DecodeJSON(decoder *Decoder) error

func (ConnectionResource) MarshalJSON

func (value ConnectionResource) MarshalJSON() ([]byte, error)

func (*ConnectionResource) UnmarshalJSON

func (value *ConnectionResource) UnmarshalJSON(data []byte) error

type ConnectionSharing

type ConnectionSharing struct {
	Kind string
	Data any
}

func (ConnectionSharing) MarshalJSON

func (value ConnectionSharing) MarshalJSON() ([]byte, error)

func (*ConnectionSharing) UnmarshalJSON

func (value *ConnectionSharing) UnmarshalJSON(data []byte) error

type ConversationAnthropicCapabilities

type ConversationAnthropicCapabilities struct {
	ThinkingTypes map[string]bool `json:"thinking_types,omitempty"`
	EffortLevels  map[string]bool `json:"effort_levels,omitempty"`
}

ConversationAnthropicCapabilities records the request modes reported by the Models API.

type ConversationApproval

type ConversationApproval struct {
	ID          ApprovalID                  `json:"id"`
	Session     SessionID                   `json:"session"`
	Turn        TurnID                      `json:"turn"`
	Entry       string                      `json:"entry"`
	Index       uint64                      `json:"index"`
	State       ConversationApprovalState   `json:"state"`
	Source      ConversationApprovalSource  `json:"source"`
	Choice      *ConversationApprovalChoice `json:"choice"`
	Reason      *string                     `json:"reason"`
	Prefix      *string                     `json:"prefix"`
	CanRemember bool                        `json:"can_remember"`
	Startup     *CodeStartup                `json:"startup"`
	Ssh         *SshTrust                   `json:"ssh,omitempty"`
	Access      *ProcessAccess              `json:"access"`
	Changes     *ChangePreview              `json:"changes,omitempty"`
}

func DefaultConversationApproval

func DefaultConversationApproval() ConversationApproval

func (*ConversationApproval) DecodeJSON

func (value *ConversationApproval) DecodeJSON(decoder *Decoder) error

func (ConversationApproval) MarshalJSON

func (value ConversationApproval) MarshalJSON() ([]byte, error)

func (*ConversationApproval) UnmarshalJSON

func (value *ConversationApproval) UnmarshalJSON(data []byte) error

type ConversationApprovalChoice

type ConversationApprovalChoice struct {
	Kind string
	Data any
}

func (ConversationApprovalChoice) MarshalJSON

func (value ConversationApprovalChoice) MarshalJSON() ([]byte, error)

func (*ConversationApprovalChoice) UnmarshalJSON

func (value *ConversationApprovalChoice) UnmarshalJSON(data []byte) error

type ConversationApprovalSource

type ConversationApprovalSource string
const (
	ConversationApprovalSourceStorage     ConversationApprovalSource = "storage"
	ConversationApprovalSourceSandbox     ConversationApprovalSource = "sandbox"
	ConversationApprovalSourceUser        ConversationApprovalSource = "user"
	ConversationApprovalSourceProject     ConversationApprovalSource = "project"
	ConversationApprovalSourceFull        ConversationApprovalSource = "full"
	ConversationApprovalSourceSessionRule ConversationApprovalSource = "session_rule"
	ConversationApprovalSourcePrefixRule  ConversationApprovalSource = "prefix_rule"
	ConversationApprovalSourceCodeRule    ConversationApprovalSource = "code_rule"
)

func (ConversationApprovalSource) MarshalJSON

func (value ConversationApprovalSource) MarshalJSON() ([]byte, error)

func (ConversationApprovalSource) MarshalText

func (value ConversationApprovalSource) MarshalText() ([]byte, error)

func (*ConversationApprovalSource) UnmarshalJSON

func (value *ConversationApprovalSource) UnmarshalJSON(data []byte) error

func (*ConversationApprovalSource) UnmarshalText

func (value *ConversationApprovalSource) UnmarshalText(data []byte) error

type ConversationApprovalState

type ConversationApprovalState string
const (
	ConversationApprovalStatePending     ConversationApprovalState = "pending"
	ConversationApprovalStateApproved    ConversationApprovalState = "approved"
	ConversationApprovalStateDenied      ConversationApprovalState = "denied"
	ConversationApprovalStateCancelled   ConversationApprovalState = "cancelled"
	ConversationApprovalStateInterrupted ConversationApprovalState = "interrupted"
)

func (ConversationApprovalState) MarshalJSON

func (value ConversationApprovalState) MarshalJSON() ([]byte, error)

func (ConversationApprovalState) MarshalText

func (value ConversationApprovalState) MarshalText() ([]byte, error)

func (*ConversationApprovalState) UnmarshalJSON

func (value *ConversationApprovalState) UnmarshalJSON(data []byte) error

func (*ConversationApprovalState) UnmarshalText

func (value *ConversationApprovalState) UnmarshalText(data []byte) error

type ConversationAssetsGroup

type ConversationAssetsGroup struct {
	Sequence    uint64                     `json:"sequence"`
	Turn        TurnID                     `json:"turn"`
	Worktree    WorktreeID                 `json:"worktree"`
	TimestampMs int64                      `json:"timestamp_ms"`
	Kind        ConversationAssetsKind     `json:"kind"`
	Items       []ConversationAssetsTarget `json:"items"`
}

func DefaultConversationAssetsGroup

func DefaultConversationAssetsGroup() ConversationAssetsGroup

func (ConversationAssetsGroup) MarshalJSON

func (value ConversationAssetsGroup) MarshalJSON() ([]byte, error)

func (*ConversationAssetsGroup) UnmarshalJSON

func (value *ConversationAssetsGroup) UnmarshalJSON(data []byte) error

type ConversationAssetsKind

type ConversationAssetsKind string
const (
	ConversationAssetsKindResource ConversationAssetsKind = "resource"
	ConversationAssetsKindArtifact ConversationAssetsKind = "artifact"
)

func (ConversationAssetsKind) MarshalJSON

func (value ConversationAssetsKind) MarshalJSON() ([]byte, error)

func (ConversationAssetsKind) MarshalText

func (value ConversationAssetsKind) MarshalText() ([]byte, error)

func (*ConversationAssetsKind) UnmarshalJSON

func (value *ConversationAssetsKind) UnmarshalJSON(data []byte) error

func (*ConversationAssetsKind) UnmarshalText

func (value *ConversationAssetsKind) UnmarshalText(data []byte) error

type ConversationAssetsPage

type ConversationAssetsPage struct {
	Session    SessionID                 `json:"session"`
	Revision   uint64                    `json:"revision"`
	Groups     []ConversationAssetsGroup `json:"groups"`
	NextBefore *uint64                   `json:"next_before"`
	Checkpoint string                    `json:"checkpoint,omitempty"`
	// A delta contains all newer groups. Keep the retained older cursor.
	Delta bool `json:"delta,omitempty"`
}

func DefaultConversationAssetsPage

func DefaultConversationAssetsPage() ConversationAssetsPage

func (ConversationAssetsPage) MarshalJSON

func (value ConversationAssetsPage) MarshalJSON() ([]byte, error)

func (*ConversationAssetsPage) UnmarshalJSON

func (value *ConversationAssetsPage) UnmarshalJSON(data []byte) error

type ConversationAssetsQuery

type ConversationAssetsQuery struct {
	Kind   *ConversationAssetsKind `json:"kind"`
	Before *uint64                 `json:"before"`
	Limit  uint16                  `json:"limit"`
	// An empty token requests a checkpoint. Echo it on a head refresh or
	// when continuing at the returned before cursor.
	Checkpoint *string `json:"checkpoint,omitempty"`
}

func DefaultConversationAssetsQuery

func DefaultConversationAssetsQuery() ConversationAssetsQuery

func (ConversationAssetsQuery) MarshalJSON

func (value ConversationAssetsQuery) MarshalJSON() ([]byte, error)

func (*ConversationAssetsQuery) UnmarshalJSON

func (value *ConversationAssetsQuery) UnmarshalJSON(data []byte) error

type ConversationAssetsTarget

type ConversationAssetsTarget struct {
	Kind string
	Data any
}

func (ConversationAssetsTarget) MarshalJSON

func (value ConversationAssetsTarget) MarshalJSON() ([]byte, error)

func (*ConversationAssetsTarget) UnmarshalJSON

func (value *ConversationAssetsTarget) UnmarshalJSON(data []byte) error

type ConversationAssetsTargetFilePayload

type ConversationAssetsTargetFilePayload struct {
	Path string `json:"path"`
}

func DefaultConversationAssetsTargetFilePayload

func DefaultConversationAssetsTargetFilePayload() ConversationAssetsTargetFilePayload

func (ConversationAssetsTargetFilePayload) MarshalJSON

func (value ConversationAssetsTargetFilePayload) MarshalJSON() ([]byte, error)

func (*ConversationAssetsTargetFilePayload) UnmarshalJSON

func (value *ConversationAssetsTargetFilePayload) UnmarshalJSON(data []byte) error

type ConversationAssociation

type ConversationAssociation struct {
	Namespace string `json:"namespace"`
	Kind      string `json:"kind"`
	ID        string `json:"id"`
}

func DefaultConversationAssociation

func DefaultConversationAssociation() ConversationAssociation

func (*ConversationAssociation) DecodeJSON

func (value *ConversationAssociation) DecodeJSON(decoder *Decoder) error

func (ConversationAssociation) MarshalJSON

func (value ConversationAssociation) MarshalJSON() ([]byte, error)

func (*ConversationAssociation) UnmarshalJSON

func (value *ConversationAssociation) UnmarshalJSON(data []byte) error

type ConversationAssociationAssociatedSessions

type ConversationAssociationAssociatedSessions struct {
	Sessions   []Session  `json:"sessions"`
	NextBefore *SessionID `json:"next_before"`
}

func DefaultConversationAssociationAssociatedSessions

func DefaultConversationAssociationAssociatedSessions() ConversationAssociationAssociatedSessions

func (ConversationAssociationAssociatedSessions) MarshalJSON

func (value ConversationAssociationAssociatedSessions) MarshalJSON() ([]byte, error)

func (*ConversationAssociationAssociatedSessions) UnmarshalJSON

func (value *ConversationAssociationAssociatedSessions) UnmarshalJSON(data []byte) error

type ConversationBackgroundHold

type ConversationBackgroundHold string

ConversationBackgroundHold says why a pending, suppressed result starts no notice turn and waits for the user's next message.

const (
	ConversationBackgroundHoldLimit       ConversationBackgroundHold = "limit"
	ConversationBackgroundHoldStopped     ConversationBackgroundHold = "stopped"
	ConversationBackgroundHoldInterrupted ConversationBackgroundHold = "interrupted"
	ConversationBackgroundHoldFailed      ConversationBackgroundHold = "failed"
	ConversationBackgroundHoldOther       ConversationBackgroundHold = "other"
)

func (ConversationBackgroundHold) MarshalJSON

func (value ConversationBackgroundHold) MarshalJSON() ([]byte, error)

func (ConversationBackgroundHold) MarshalText

func (value ConversationBackgroundHold) MarshalText() ([]byte, error)

func (*ConversationBackgroundHold) UnmarshalJSON

func (value *ConversationBackgroundHold) UnmarshalJSON(data []byte) error

func (*ConversationBackgroundHold) UnmarshalText

func (value *ConversationBackgroundHold) UnmarshalText(data []byte) error

type ConversationBackgroundKind

type ConversationBackgroundKind struct {
	Kind string
	Data any
}

func (ConversationBackgroundKind) MarshalJSON

func (value ConversationBackgroundKind) MarshalJSON() ([]byte, error)

func (*ConversationBackgroundKind) UnmarshalJSON

func (value *ConversationBackgroundKind) UnmarshalJSON(data []byte) error

type ConversationBackgroundKindAgentPayload

type ConversationBackgroundKindAgentPayload struct {
	Session SessionID `json:"session"`
	Turn    TurnID    `json:"turn"`
}

func DefaultConversationBackgroundKindAgentPayload

func DefaultConversationBackgroundKindAgentPayload() ConversationBackgroundKindAgentPayload

func (ConversationBackgroundKindAgentPayload) MarshalJSON

func (value ConversationBackgroundKindAgentPayload) MarshalJSON() ([]byte, error)

func (*ConversationBackgroundKindAgentPayload) UnmarshalJSON

func (value *ConversationBackgroundKindAgentPayload) UnmarshalJSON(data []byte) error

type ConversationBackgroundKindCommandPayload

type ConversationBackgroundKindCommandPayload struct {
	ID RequestID `json:"id"`
}

func DefaultConversationBackgroundKindCommandPayload

func DefaultConversationBackgroundKindCommandPayload() ConversationBackgroundKindCommandPayload

func (ConversationBackgroundKindCommandPayload) MarshalJSON

func (value ConversationBackgroundKindCommandPayload) MarshalJSON() ([]byte, error)

func (*ConversationBackgroundKindCommandPayload) UnmarshalJSON

func (value *ConversationBackgroundKindCommandPayload) UnmarshalJSON(data []byte) error

type ConversationBackgroundNotice

type ConversationBackgroundNotice struct {
	ID      string                        `json:"id"`
	Kind    ConversationBackgroundKind    `json:"kind"`
	Title   string                        `json:"title"`
	Outcome ConversationBackgroundOutcome `json:"outcome"`
	Summary *string                       `json:"summary"`
}

func DefaultConversationBackgroundNotice

func DefaultConversationBackgroundNotice() ConversationBackgroundNotice

func (*ConversationBackgroundNotice) DecodeJSON

func (value *ConversationBackgroundNotice) DecodeJSON(decoder *Decoder) error

func (ConversationBackgroundNotice) MarshalJSON

func (value ConversationBackgroundNotice) MarshalJSON() ([]byte, error)

func (*ConversationBackgroundNotice) UnmarshalJSON

func (value *ConversationBackgroundNotice) UnmarshalJSON(data []byte) error

type ConversationBackgroundOutcome

type ConversationBackgroundOutcome string
const (
	ConversationBackgroundOutcomeCompleted   ConversationBackgroundOutcome = "completed"
	ConversationBackgroundOutcomeFailed      ConversationBackgroundOutcome = "failed"
	ConversationBackgroundOutcomeCancelled   ConversationBackgroundOutcome = "cancelled"
	ConversationBackgroundOutcomeStopped     ConversationBackgroundOutcome = "stopped"
	ConversationBackgroundOutcomeTimedOut    ConversationBackgroundOutcome = "timed_out"
	ConversationBackgroundOutcomeInterrupted ConversationBackgroundOutcome = "interrupted"
	ConversationBackgroundOutcomeUnknown     ConversationBackgroundOutcome = "unknown"
	ConversationBackgroundOutcomeStalled     ConversationBackgroundOutcome = "stalled"
)

func (ConversationBackgroundOutcome) MarshalJSON

func (value ConversationBackgroundOutcome) MarshalJSON() ([]byte, error)

func (ConversationBackgroundOutcome) MarshalText

func (value ConversationBackgroundOutcome) MarshalText() ([]byte, error)

func (*ConversationBackgroundOutcome) UnmarshalJSON

func (value *ConversationBackgroundOutcome) UnmarshalJSON(data []byte) error

func (*ConversationBackgroundOutcome) UnmarshalText

func (value *ConversationBackgroundOutcome) UnmarshalText(data []byte) error

type ConversationBackgroundState

type ConversationBackgroundState string
const (
	ConversationBackgroundStateRunning   ConversationBackgroundState = "running"
	ConversationBackgroundStatePending   ConversationBackgroundState = "pending"
	ConversationBackgroundStateDelivered ConversationBackgroundState = "delivered"
	ConversationBackgroundStateConsumed  ConversationBackgroundState = "consumed"
	ConversationBackgroundStateDismissed ConversationBackgroundState = "dismissed"
)

func (ConversationBackgroundState) MarshalJSON

func (value ConversationBackgroundState) MarshalJSON() ([]byte, error)

func (ConversationBackgroundState) MarshalText

func (value ConversationBackgroundState) MarshalText() ([]byte, error)

func (*ConversationBackgroundState) UnmarshalJSON

func (value *ConversationBackgroundState) UnmarshalJSON(data []byte) error

func (*ConversationBackgroundState) UnmarshalText

func (value *ConversationBackgroundState) UnmarshalText(data []byte) error

type ConversationBackgroundTask

type ConversationBackgroundTask struct {
	ID         string                         `json:"id"`
	Session    SessionID                      `json:"session"`
	Turn       TurnID                         `json:"turn"`
	Kind       ConversationBackgroundKind     `json:"kind"`
	Title      string                         `json:"title"`
	Revision   uint64                         `json:"revision"`
	State      ConversationBackgroundState    `json:"state"`
	Outcome    *ConversationBackgroundOutcome `json:"outcome"`
	StartedMs  int64                          `json:"started_ms"`
	FinishedMs *int64                         `json:"finished_ms"`
	Summary    *string                        `json:"summary"`
	Delivery   *TurnID                        `json:"delivery"`
	Recovered  bool                           `json:"recovered"`
	Suppressed bool                           `json:"suppressed"`
	Hold       *ConversationBackgroundHold    `json:"hold,omitempty"`
	// ExitCode is the exit status of a command that ran to its end. It is
	// absent for an agent, a command that has not exited and a peer that
	// does not state it.
	ExitCode *int32 `json:"exit_code,omitempty"`
}

func DefaultConversationBackgroundTask

func DefaultConversationBackgroundTask() ConversationBackgroundTask

func (*ConversationBackgroundTask) DecodeJSON

func (value *ConversationBackgroundTask) DecodeJSON(decoder *Decoder) error

func (ConversationBackgroundTask) MarshalJSON

func (value ConversationBackgroundTask) MarshalJSON() ([]byte, error)

func (*ConversationBackgroundTask) UnmarshalJSON

func (value *ConversationBackgroundTask) UnmarshalJSON(data []byte) error

type ConversationCatalogChannel

type ConversationCatalogChannel struct {
	Endpoint       string         `json:"endpoint"`
	Authentication Authentication `json:"authentication"`
}

type ConversationCatalogModel

type ConversationCatalogModel struct {
	ID      string   `json:"id"`
	Name    string   `json:"name"`
	Context *uint32  `json:"context"`
	Output  *uint32  `json:"output"`
	Inputs  []string `json:"inputs"`
	// InputsUnknown preserves a missing input list on the wire while older
	// controllers can still read the required inputs array.
	InputsUnknown bool                           `json:"inputs_unknown,omitempty"`
	Outputs       []string                       `json:"outputs"`
	Tools         *bool                          `json:"tools"`
	Reasoning     *bool                          `json:"reasoning"`
	Options       []ConversationCatalogReasoning `json:"options"`
}

func DefaultConversationCatalogModel

func DefaultConversationCatalogModel() ConversationCatalogModel

func (ConversationCatalogModel) MarshalJSON

func (value ConversationCatalogModel) MarshalJSON() ([]byte, error)

func (*ConversationCatalogModel) UnmarshalJSON

func (value *ConversationCatalogModel) UnmarshalJSON(data []byte) error

type ConversationCatalogPage

type ConversationCatalogPage struct {
	Revision uint64                     `json:"revision"`
	Models   []ConversationCatalogModel `json:"models"`
	Next     *string                    `json:"next"`
}

func DefaultConversationCatalogPage

func DefaultConversationCatalogPage() ConversationCatalogPage

func (ConversationCatalogPage) MarshalJSON

func (value ConversationCatalogPage) MarshalJSON() ([]byte, error)

func (*ConversationCatalogPage) UnmarshalJSON

func (value *ConversationCatalogPage) UnmarshalJSON(data []byte) error

type ConversationCatalogQuery

type ConversationCatalogQuery struct {
	Provider *string                     `json:"provider"`
	Channel  *ConversationCatalogChannel `json:"channel,omitempty"`
	IDs      []string                    `json:"ids"`
	Revision *uint64                     `json:"revision"`
	After    *string                     `json:"after"`
	Limit    uint16                      `json:"limit"`
}

func DefaultConversationCatalogQuery

func DefaultConversationCatalogQuery() ConversationCatalogQuery

func (ConversationCatalogQuery) MarshalJSON

func (value ConversationCatalogQuery) MarshalJSON() ([]byte, error)

func (*ConversationCatalogQuery) UnmarshalJSON

func (value *ConversationCatalogQuery) UnmarshalJSON(data []byte) error

type ConversationCatalogReasoning

type ConversationCatalogReasoning struct {
	Kind string
	Data any
}

func (ConversationCatalogReasoning) MarshalJSON

func (value ConversationCatalogReasoning) MarshalJSON() ([]byte, error)

func (*ConversationCatalogReasoning) UnmarshalJSON

func (value *ConversationCatalogReasoning) UnmarshalJSON(data []byte) error

type ConversationCatalogReasoningBudgetTokensPayload

type ConversationCatalogReasoningBudgetTokensPayload struct {
	Min *int32  `json:"min"`
	Max *uint32 `json:"max"`
}

func DefaultConversationCatalogReasoningBudgetTokensPayload

func DefaultConversationCatalogReasoningBudgetTokensPayload() ConversationCatalogReasoningBudgetTokensPayload

func (ConversationCatalogReasoningBudgetTokensPayload) MarshalJSON

func (*ConversationCatalogReasoningBudgetTokensPayload) UnmarshalJSON

func (value *ConversationCatalogReasoningBudgetTokensPayload) UnmarshalJSON(data []byte) error

type ConversationCatalogReasoningEffortPayload

type ConversationCatalogReasoningEffortPayload struct {
	Values []*string `json:"values"`
}

func DefaultConversationCatalogReasoningEffortPayload

func DefaultConversationCatalogReasoningEffortPayload() ConversationCatalogReasoningEffortPayload

func (ConversationCatalogReasoningEffortPayload) MarshalJSON

func (value ConversationCatalogReasoningEffortPayload) MarshalJSON() ([]byte, error)

func (*ConversationCatalogReasoningEffortPayload) UnmarshalJSON

func (value *ConversationCatalogReasoningEffortPayload) UnmarshalJSON(data []byte) error

type ConversationCatalogScores

type ConversationCatalogScores struct {
	Revision    uint64                                `json:"revision"`
	Batch       *string                               `json:"batch"`
	PublishedAt *string                               `json:"published_at"`
	Scores      []ConversationCatalogScoresModelScore `json:"scores"`
}

func DefaultConversationCatalogScores

func DefaultConversationCatalogScores() ConversationCatalogScores

func (ConversationCatalogScores) MarshalJSON

func (value ConversationCatalogScores) MarshalJSON() ([]byte, error)

func (*ConversationCatalogScores) UnmarshalJSON

func (value *ConversationCatalogScores) UnmarshalJSON(data []byte) error

type ConversationCatalogScoresEffortScore

type ConversationCatalogScoresEffortScore struct {
	Effort    Effort   `json:"effort"`
	Overall   float32  `json:"overall"`
	Axes      [5]uint8 `json:"axes"`
	ElapsedMs *uint64  `json:"elapsed_ms"`
	CostUsd   *float32 `json:"cost_usd"`
}

func DefaultConversationCatalogScoresEffortScore

func DefaultConversationCatalogScoresEffortScore() ConversationCatalogScoresEffortScore

func (ConversationCatalogScoresEffortScore) MarshalJSON

func (value ConversationCatalogScoresEffortScore) MarshalJSON() ([]byte, error)

func (*ConversationCatalogScoresEffortScore) UnmarshalJSON

func (value *ConversationCatalogScoresEffortScore) UnmarshalJSON(data []byte) error

type ConversationCatalogScoresModelRef

type ConversationCatalogScoresModelRef struct {
	Provider ProviderID `json:"provider"`
	Model    string     `json:"model"`
}

func DefaultConversationCatalogScoresModelRef

func DefaultConversationCatalogScoresModelRef() ConversationCatalogScoresModelRef

func (ConversationCatalogScoresModelRef) MarshalJSON

func (value ConversationCatalogScoresModelRef) MarshalJSON() ([]byte, error)

func (*ConversationCatalogScoresModelRef) UnmarshalJSON

func (value *ConversationCatalogScoresModelRef) UnmarshalJSON(data []byte) error

type ConversationCatalogScoresModelScore

type ConversationCatalogScoresModelScore struct {
	Provider ProviderID                             `json:"provider"`
	Model    string                                 `json:"model"`
	Efforts  []ConversationCatalogScoresEffortScore `json:"efforts"`
}

func DefaultConversationCatalogScoresModelScore

func DefaultConversationCatalogScoresModelScore() ConversationCatalogScoresModelScore

func (ConversationCatalogScoresModelScore) MarshalJSON

func (value ConversationCatalogScoresModelScore) MarshalJSON() ([]byte, error)

func (*ConversationCatalogScoresModelScore) UnmarshalJSON

func (value *ConversationCatalogScoresModelScore) UnmarshalJSON(data []byte) error

type ConversationCatalogScoresScoreStatus

type ConversationCatalogScoresScoreStatus struct {
	Revision    uint64  `json:"revision"`
	UpdatedAtMs *uint64 `json:"updated_at_ms"`
	CheckedAtMs *uint64 `json:"checked_at_ms"`
	Batch       *string `json:"batch"`
	PublishedAt *string `json:"published_at"`
	Models      uint32  `json:"models"`
	Fault       *Fault  `json:"fault"`
}

func DefaultConversationCatalogScoresScoreStatus

func DefaultConversationCatalogScoresScoreStatus() ConversationCatalogScoresScoreStatus

func (ConversationCatalogScoresScoreStatus) MarshalJSON

func (value ConversationCatalogScoresScoreStatus) MarshalJSON() ([]byte, error)

func (*ConversationCatalogScoresScoreStatus) UnmarshalJSON

func (value *ConversationCatalogScoresScoreStatus) UnmarshalJSON(data []byte) error

type ConversationCatalogStatus

type ConversationCatalogStatus struct {
	Revision    uint64                               `json:"revision"`
	UpdatedAtMs *uint64                              `json:"updated_at_ms"`
	Bundled     bool                                 `json:"bundled,omitempty"`
	Providers   uint32                               `json:"providers"`
	Models      uint32                               `json:"models"`
	Bytes       uint64                               `json:"bytes"`
	Fault       *Fault                               `json:"fault"`
	Scores      ConversationCatalogScoresScoreStatus `json:"scores"`
}

func DefaultConversationCatalogStatus

func DefaultConversationCatalogStatus() ConversationCatalogStatus

func (*ConversationCatalogStatus) DecodeJSON

func (value *ConversationCatalogStatus) DecodeJSON(decoder *Decoder) error

func (ConversationCatalogStatus) MarshalJSON

func (value ConversationCatalogStatus) MarshalJSON() ([]byte, error)

func (*ConversationCatalogStatus) UnmarshalJSON

func (value *ConversationCatalogStatus) UnmarshalJSON(data []byte) error

type ConversationChange

type ConversationChange struct {
	Kind string
	Data any
}

func (ConversationChange) MarshalJSON

func (value ConversationChange) MarshalJSON() ([]byte, error)

func (*ConversationChange) UnmarshalJSON

func (value *ConversationChange) UnmarshalJSON(data []byte) error

type ConversationChangeHiddenPayload

type ConversationChangeHiddenPayload struct {
	Turn TurnID `json:"turn"`
	ID   string `json:"id"`
}

func DefaultConversationChangeHiddenPayload

func DefaultConversationChangeHiddenPayload() ConversationChangeHiddenPayload

func (ConversationChangeHiddenPayload) MarshalJSON

func (value ConversationChangeHiddenPayload) MarshalJSON() ([]byte, error)

func (*ConversationChangeHiddenPayload) UnmarshalJSON

func (value *ConversationChangeHiddenPayload) UnmarshalJSON(data []byte) error

type ConversationCheckpointContent

type ConversationCheckpointContent struct {
	Session SessionID                  `json:"session"`
	File    ConversationCheckpointFile `json:"file"`
	Before  *string                    `json:"before"`
	After   string                     `json:"after"`
}

func DefaultConversationCheckpointContent

func DefaultConversationCheckpointContent() ConversationCheckpointContent

func (ConversationCheckpointContent) MarshalJSON

func (value ConversationCheckpointContent) MarshalJSON() ([]byte, error)

func (*ConversationCheckpointContent) UnmarshalJSON

func (value *ConversationCheckpointContent) UnmarshalJSON(data []byte) error

type ConversationCheckpointFile

type ConversationCheckpointFile struct {
	ID       CheckpointID                   `json:"id"`
	Turn     TurnID                         `json:"turn"`
	Worktree WorktreeID                     `json:"worktree"`
	Path     string                         `json:"path"`
	Before   *ConversationCheckpointVersion `json:"before"`
	After    ConversationCheckpointVersion  `json:"after"`
	Outcome  RequestOutcome                 `json:"outcome"`
	// Restored is set once the change was undone by restore_file_checkpoint.
	// It is absent for a change that was not, and from a peer that does not
	// state it.
	Restored bool `json:"restored,omitempty"`
}

func DefaultConversationCheckpointFile

func DefaultConversationCheckpointFile() ConversationCheckpointFile

func (ConversationCheckpointFile) MarshalJSON

func (value ConversationCheckpointFile) MarshalJSON() ([]byte, error)

func (*ConversationCheckpointFile) UnmarshalJSON

func (value *ConversationCheckpointFile) UnmarshalJSON(data []byte) error

type ConversationCheckpointHunk

type ConversationCheckpointHunk struct {
	ID        string `json:"id"`
	OldStart  uint32 `json:"old_start"`
	NewStart  uint32 `json:"new_start"`
	Text      string `json:"text"`
	Additions uint64 `json:"additions"`
	Deletions uint64 `json:"deletions"`
}

func DefaultConversationCheckpointHunk

func DefaultConversationCheckpointHunk() ConversationCheckpointHunk

func (ConversationCheckpointHunk) MarshalJSON

func (value ConversationCheckpointHunk) MarshalJSON() ([]byte, error)

func (*ConversationCheckpointHunk) UnmarshalJSON

func (value *ConversationCheckpointHunk) UnmarshalJSON(data []byte) error

type ConversationCheckpointHunkApplied

type ConversationCheckpointHunkApplied struct {
	Session  SessionID `json:"session"`
	Turn     TurnID    `json:"turn"`
	Path     string    `json:"path"`
	Hunk     string    `json:"hunk"`
	Revision string    `json:"revision"`
	Index    *GitIndex `json:"index"`
}

func DefaultConversationCheckpointHunkApplied

func DefaultConversationCheckpointHunkApplied() ConversationCheckpointHunkApplied

func (ConversationCheckpointHunkApplied) MarshalJSON

func (value ConversationCheckpointHunkApplied) MarshalJSON() ([]byte, error)

func (*ConversationCheckpointHunkApplied) UnmarshalJSON

func (value *ConversationCheckpointHunkApplied) UnmarshalJSON(data []byte) error

type ConversationCheckpointHunkOperation

type ConversationCheckpointHunkOperation string
const (
	ConversationCheckpointHunkOperationReject ConversationCheckpointHunkOperation = "reject"
	ConversationCheckpointHunkOperationStage  ConversationCheckpointHunkOperation = "stage"
)

func (ConversationCheckpointHunkOperation) MarshalJSON

func (value ConversationCheckpointHunkOperation) MarshalJSON() ([]byte, error)

func (ConversationCheckpointHunkOperation) MarshalText

func (value ConversationCheckpointHunkOperation) MarshalText() ([]byte, error)

func (*ConversationCheckpointHunkOperation) UnmarshalJSON

func (value *ConversationCheckpointHunkOperation) UnmarshalJSON(data []byte) error

func (*ConversationCheckpointHunkOperation) UnmarshalText

func (value *ConversationCheckpointHunkOperation) UnmarshalText(data []byte) error

type ConversationCheckpointHunkReview

type ConversationCheckpointHunkReview struct {
	Session  SessionID                    `json:"session"`
	Turn     TurnID                       `json:"turn"`
	Worktree WorktreeID                   `json:"worktree"`
	Path     string                       `json:"path"`
	Hunks    []ConversationCheckpointHunk `json:"hunks"`
	Partial  bool                         `json:"partial"`
}

func DefaultConversationCheckpointHunkReview

func DefaultConversationCheckpointHunkReview() ConversationCheckpointHunkReview

func (ConversationCheckpointHunkReview) MarshalJSON

func (value ConversationCheckpointHunkReview) MarshalJSON() ([]byte, error)

func (*ConversationCheckpointHunkReview) UnmarshalJSON

func (value *ConversationCheckpointHunkReview) UnmarshalJSON(data []byte) error

type ConversationCheckpointHunkSelection

type ConversationCheckpointHunkSelection struct {
	Session          SessionID                           `json:"session"`
	Turn             TurnID                              `json:"turn"`
	Worktree         WorktreeID                          `json:"worktree"`
	Path             string                              `json:"path"`
	Hunk             string                              `json:"hunk"`
	Operation        ConversationCheckpointHunkOperation `json:"operation"`
	ExpectedRevision string                              `json:"expected_revision"`
	ExpectedIndex    *string                             `json:"expected_index"`
	ExpectedHead     *string                             `json:"expected_head"`
}

func DefaultConversationCheckpointHunkSelection

func DefaultConversationCheckpointHunkSelection() ConversationCheckpointHunkSelection

func (ConversationCheckpointHunkSelection) MarshalJSON

func (value ConversationCheckpointHunkSelection) MarshalJSON() ([]byte, error)

func (*ConversationCheckpointHunkSelection) UnmarshalJSON

func (value *ConversationCheckpointHunkSelection) UnmarshalJSON(data []byte) error

type ConversationCheckpointPage

type ConversationCheckpointPage struct {
	Session SessionID                    `json:"session"`
	Turn    TurnID                       `json:"turn"`
	Files   []ConversationCheckpointFile `json:"files"`
	Next    *CheckpointID                `json:"next"`
}

func DefaultConversationCheckpointPage

func DefaultConversationCheckpointPage() ConversationCheckpointPage

func (ConversationCheckpointPage) MarshalJSON

func (value ConversationCheckpointPage) MarshalJSON() ([]byte, error)

func (*ConversationCheckpointPage) UnmarshalJSON

func (value *ConversationCheckpointPage) UnmarshalJSON(data []byte) error

type ConversationCheckpointReceipt

type ConversationCheckpointReceipt string
const (
	ConversationCheckpointReceiptWritten   ConversationCheckpointReceipt = "Written"
	ConversationCheckpointReceiptUncertain ConversationCheckpointReceipt = "Uncertain"
	ConversationCheckpointReceiptPending   ConversationCheckpointReceipt = "Pending"
	ConversationCheckpointReceiptAbsent    ConversationCheckpointReceipt = "Absent"
)

func (ConversationCheckpointReceipt) MarshalJSON

func (value ConversationCheckpointReceipt) MarshalJSON() ([]byte, error)

func (ConversationCheckpointReceipt) MarshalText

func (value ConversationCheckpointReceipt) MarshalText() ([]byte, error)

func (*ConversationCheckpointReceipt) UnmarshalJSON

func (value *ConversationCheckpointReceipt) UnmarshalJSON(data []byte) error

func (*ConversationCheckpointReceipt) UnmarshalText

func (value *ConversationCheckpointReceipt) UnmarshalText(data []byte) error

type ConversationCheckpointRestored

type ConversationCheckpointRestored struct {
	Session    SessionID    `json:"session"`
	Checkpoint CheckpointID `json:"checkpoint"`
	Path       string       `json:"path"`
	Revision   *string      `json:"revision"`
}

func DefaultConversationCheckpointRestored

func DefaultConversationCheckpointRestored() ConversationCheckpointRestored

func (ConversationCheckpointRestored) MarshalJSON

func (value ConversationCheckpointRestored) MarshalJSON() ([]byte, error)

func (*ConversationCheckpointRestored) UnmarshalJSON

func (value *ConversationCheckpointRestored) UnmarshalJSON(data []byte) error

type ConversationCheckpointTurnDiff

type ConversationCheckpointTurnDiff struct {
	Session SessionID `json:"session"`
	Turn    TurnID    `json:"turn"`
	Files   []GitDiff `json:"files"`
	Partial bool      `json:"partial"`
}

func DefaultConversationCheckpointTurnDiff

func DefaultConversationCheckpointTurnDiff() ConversationCheckpointTurnDiff

func (ConversationCheckpointTurnDiff) MarshalJSON

func (value ConversationCheckpointTurnDiff) MarshalJSON() ([]byte, error)

func (*ConversationCheckpointTurnDiff) UnmarshalJSON

func (value *ConversationCheckpointTurnDiff) UnmarshalJSON(data []byte) error

type ConversationCheckpointVersion

type ConversationCheckpointVersion struct {
	Revision string `json:"revision"`
	Size     uint64 `json:"size"`
}

func DefaultConversationCheckpointVersion

func DefaultConversationCheckpointVersion() ConversationCheckpointVersion

func (ConversationCheckpointVersion) MarshalJSON

func (value ConversationCheckpointVersion) MarshalJSON() ([]byte, error)

func (*ConversationCheckpointVersion) UnmarshalJSON

func (value *ConversationCheckpointVersion) UnmarshalJSON(data []byte) error

type ConversationChild

type ConversationChild struct {
	Run    ConversationRun `json:"run"`
	Origin Delegation      `json:"origin"`
	Name   *string         `json:"name"`
}

func DefaultConversationChild

func DefaultConversationChild() ConversationChild

func (*ConversationChild) DecodeJSON

func (value *ConversationChild) DecodeJSON(decoder *Decoder) error

func (ConversationChild) MarshalJSON

func (value ConversationChild) MarshalJSON() ([]byte, error)

func (*ConversationChild) UnmarshalJSON

func (value *ConversationChild) UnmarshalJSON(data []byte) error

type ConversationCitation

type ConversationCitation struct {
	Uri   string  `json:"uri"`
	Title *string `json:"title"`
	Start *uint32 `json:"start"`
	End   *uint32 `json:"end"`
}

func DefaultConversationCitation

func DefaultConversationCitation() ConversationCitation

func (*ConversationCitation) DecodeJSON

func (value *ConversationCitation) DecodeJSON(decoder *Decoder) error

func (ConversationCitation) MarshalJSON

func (value ConversationCitation) MarshalJSON() ([]byte, error)

func (*ConversationCitation) UnmarshalJSON

func (value *ConversationCitation) UnmarshalJSON(data []byte) error

type ConversationCompactionBudget

type ConversationCompactionBudget struct {
	Model         string `json:"model"`
	ContextLimit  uint32 `json:"context_limit"`
	TriggerTokens uint64 `json:"trigger_tokens"`
	OutputReserve uint32 `json:"output_reserve"`
	RecentTokens  uint64 `json:"recent_tokens"`
	SummaryInput  uint64 `json:"summary_input"`
	SummaryOutput uint32 `json:"summary_output"`
}

func DefaultConversationCompactionBudget

func DefaultConversationCompactionBudget() ConversationCompactionBudget

func (ConversationCompactionBudget) MarshalJSON

func (value ConversationCompactionBudget) MarshalJSON() ([]byte, error)

func (*ConversationCompactionBudget) UnmarshalJSON

func (value *ConversationCompactionBudget) UnmarshalJSON(data []byte) error

type ConversationCompactionFailure

type ConversationCompactionFailure struct {
	Source    ConversationCompactionSource `json:"source"`
	Stage     ConversationCompactionStage  `json:"stage"`
	Reason    ConversationCompactionReason `json:"reason"`
	Continued bool                         `json:"continued"`
	Status    *uint16                      `json:"status"`
	Cause     *string                      `json:"cause,omitempty"`
	// Paused says this failure paused automatic compaction for the session.
	Paused bool `json:"paused,omitempty"`
}

func DefaultConversationCompactionFailure

func DefaultConversationCompactionFailure() ConversationCompactionFailure

func (ConversationCompactionFailure) MarshalJSON

func (value ConversationCompactionFailure) MarshalJSON() ([]byte, error)

func (*ConversationCompactionFailure) UnmarshalJSON

func (value *ConversationCompactionFailure) UnmarshalJSON(data []byte) error

type ConversationCompactionOutcome

type ConversationCompactionOutcome struct {
	Kind string
	Data any
}

func (ConversationCompactionOutcome) MarshalJSON

func (value ConversationCompactionOutcome) MarshalJSON() ([]byte, error)

func (*ConversationCompactionOutcome) UnmarshalJSON

func (value *ConversationCompactionOutcome) UnmarshalJSON(data []byte) error

type ConversationCompactionReason

type ConversationCompactionReason string
const (
	ConversationCompactionReasonUnknown             ConversationCompactionReason = "unknown"
	ConversationCompactionReasonHistoryMismatch     ConversationCompactionReason = "history_mismatch"
	ConversationCompactionReasonNoFittingPrefix     ConversationCompactionReason = "no_fitting_prefix"
	ConversationCompactionReasonRequestFailed       ConversationCompactionReason = "request_failed"
	ConversationCompactionReasonRequestTimeout      ConversationCompactionReason = "request_timeout"
	ConversationCompactionReasonRateLimited         ConversationCompactionReason = "rate_limited"
	ConversationCompactionReasonAuthorizationFailed ConversationCompactionReason = "authorization_failed"
	ConversationCompactionReasonServiceRejected     ConversationCompactionReason = "service_rejected"
	ConversationCompactionReasonContextOverflow     ConversationCompactionReason = "context_overflow"
	ConversationCompactionReasonContentFiltered     ConversationCompactionReason = "content_filtered"
	ConversationCompactionReasonEmptySummary        ConversationCompactionReason = "empty_summary"
	ConversationCompactionReasonIncompleteResponse  ConversationCompactionReason = "incomplete_response"
	ConversationCompactionReasonTruncatedSummary    ConversationCompactionReason = "truncated_summary"
	ConversationCompactionReasonUnexpectedOutput    ConversationCompactionReason = "unexpected_output"
	ConversationCompactionReasonSummaryTooLarge     ConversationCompactionReason = "summary_too_large"
	ConversationCompactionReasonNoReduction         ConversationCompactionReason = "no_reduction"
	ConversationCompactionReasonPersistenceFailed   ConversationCompactionReason = "persistence_failed"
)

func (ConversationCompactionReason) MarshalJSON

func (value ConversationCompactionReason) MarshalJSON() ([]byte, error)

func (ConversationCompactionReason) MarshalText

func (value ConversationCompactionReason) MarshalText() ([]byte, error)

func (*ConversationCompactionReason) UnmarshalJSON

func (value *ConversationCompactionReason) UnmarshalJSON(data []byte) error

func (*ConversationCompactionReason) UnmarshalText

func (value *ConversationCompactionReason) UnmarshalText(data []byte) error

type ConversationCompactionRecord

type ConversationCompactionRecord struct {
	ID           string                        `json:"id"`
	Sequence     uint64                        `json:"sequence"`
	Turn         TurnID                        `json:"turn"`
	TurnSequence uint64                        `json:"turn_sequence"`
	TimestampMs  int64                         `json:"timestamp_ms"`
	Outcome      ConversationCompactionOutcome `json:"outcome"`
}

func DefaultConversationCompactionRecord

func DefaultConversationCompactionRecord() ConversationCompactionRecord

func (ConversationCompactionRecord) MarshalJSON

func (value ConversationCompactionRecord) MarshalJSON() ([]byte, error)

func (*ConversationCompactionRecord) UnmarshalJSON

func (value *ConversationCompactionRecord) UnmarshalJSON(data []byte) error

type ConversationCompactionSettings

type ConversationCompactionSettings struct {
	Revision uint64 `json:"revision"`
	Percent  uint8  `json:"percent"`
}

func DefaultConversationCompactionSettings

func DefaultConversationCompactionSettings() ConversationCompactionSettings

func (ConversationCompactionSettings) MarshalJSON

func (value ConversationCompactionSettings) MarshalJSON() ([]byte, error)

func (*ConversationCompactionSettings) UnmarshalJSON

func (value *ConversationCompactionSettings) UnmarshalJSON(data []byte) error

type ConversationCompactionSource

type ConversationCompactionSource string
const (
	ConversationCompactionSourceAutomatic ConversationCompactionSource = "automatic"
	ConversationCompactionSourceManual    ConversationCompactionSource = "manual"
)

func (ConversationCompactionSource) MarshalJSON

func (value ConversationCompactionSource) MarshalJSON() ([]byte, error)

func (ConversationCompactionSource) MarshalText

func (value ConversationCompactionSource) MarshalText() ([]byte, error)

func (*ConversationCompactionSource) UnmarshalJSON

func (value *ConversationCompactionSource) UnmarshalJSON(data []byte) error

func (*ConversationCompactionSource) UnmarshalText

func (value *ConversationCompactionSource) UnmarshalText(data []byte) error

type ConversationCompactionStage

type ConversationCompactionStage string
const (
	ConversationCompactionStageUnknown     ConversationCompactionStage = "unknown"
	ConversationCompactionStageHistory     ConversationCompactionStage = "history"
	ConversationCompactionStageBudget      ConversationCompactionStage = "budget"
	ConversationCompactionStageRequest     ConversationCompactionStage = "request"
	ConversationCompactionStageSummary     ConversationCompactionStage = "summary"
	ConversationCompactionStagePersistence ConversationCompactionStage = "persistence"
)

func (ConversationCompactionStage) MarshalJSON

func (value ConversationCompactionStage) MarshalJSON() ([]byte, error)

func (ConversationCompactionStage) MarshalText

func (value ConversationCompactionStage) MarshalText() ([]byte, error)

func (*ConversationCompactionStage) UnmarshalJSON

func (value *ConversationCompactionStage) UnmarshalJSON(data []byte) error

func (*ConversationCompactionStage) UnmarshalText

func (value *ConversationCompactionStage) UnmarshalText(data []byte) error

type ConversationConnectionOptions

type ConversationConnectionOptions struct {
	Kind string
	Data any
}

func (ConversationConnectionOptions) MarshalJSON

func (value ConversationConnectionOptions) MarshalJSON() ([]byte, error)

func (*ConversationConnectionOptions) UnmarshalJSON

func (value *ConversationConnectionOptions) UnmarshalJSON(data []byte) error

type ConversationConnectionOptionsAzureOpenAiPayload

type ConversationConnectionOptionsAzureOpenAiPayload struct {
	ApiVersion string `json:"api_version"`
}

func DefaultConversationConnectionOptionsAzureOpenAiPayload

func DefaultConversationConnectionOptionsAzureOpenAiPayload() ConversationConnectionOptionsAzureOpenAiPayload

func (ConversationConnectionOptionsAzureOpenAiPayload) MarshalJSON

func (*ConversationConnectionOptionsAzureOpenAiPayload) UnmarshalJSON

func (value *ConversationConnectionOptionsAzureOpenAiPayload) UnmarshalJSON(data []byte) error

type ConversationConnectionOptionsHostedPayload

type ConversationConnectionOptionsHostedPayload struct {
	Product ConversationConnectionProduct `json:"product"`
}

func DefaultConversationConnectionOptionsHostedPayload

func DefaultConversationConnectionOptionsHostedPayload() ConversationConnectionOptionsHostedPayload

func (ConversationConnectionOptionsHostedPayload) MarshalJSON

func (value ConversationConnectionOptionsHostedPayload) MarshalJSON() ([]byte, error)

func (*ConversationConnectionOptionsHostedPayload) UnmarshalJSON

func (value *ConversationConnectionOptionsHostedPayload) UnmarshalJSON(data []byte) error

type ConversationConnectionProduct

type ConversationConnectionProduct string
const (
	ConversationConnectionProductMetered ConversationConnectionProduct = "metered"
	ConversationConnectionProductCoding  ConversationConnectionProduct = "coding"
)

func (ConversationConnectionProduct) MarshalJSON

func (value ConversationConnectionProduct) MarshalJSON() ([]byte, error)

func (ConversationConnectionProduct) MarshalText

func (value ConversationConnectionProduct) MarshalText() ([]byte, error)

func (*ConversationConnectionProduct) UnmarshalJSON

func (value *ConversationConnectionProduct) UnmarshalJSON(data []byte) error

func (*ConversationConnectionProduct) UnmarshalText

func (value *ConversationConnectionProduct) UnmarshalText(data []byte) error

type ConversationConsentApproval

type ConversationConsentApproval struct {
	Package PluginReference            `json:"package"`
	Scopes  ConversationConsentScopes  `json:"scopes"`
	Origin  *ConversationConsentOrigin `json:"origin"`
}

func DefaultConversationConsentApproval

func DefaultConversationConsentApproval() ConversationConsentApproval

func (ConversationConsentApproval) MarshalJSON

func (value ConversationConsentApproval) MarshalJSON() ([]byte, error)

func (*ConversationConsentApproval) UnmarshalJSON

func (value *ConversationConsentApproval) UnmarshalJSON(data []byte) error

type ConversationConsentOrigin

type ConversationConsentOrigin struct {
	Kind string
	Data any
}

func (ConversationConsentOrigin) MarshalJSON

func (value ConversationConsentOrigin) MarshalJSON() ([]byte, error)

func (*ConversationConsentOrigin) UnmarshalJSON

func (value *ConversationConsentOrigin) UnmarshalJSON(data []byte) error

type ConversationConsentOriginGitPayload

type ConversationConsentOriginGitPayload struct {
	Repository string `json:"repository"`
	Path       string `json:"path"`
}

func DefaultConversationConsentOriginGitPayload

func DefaultConversationConsentOriginGitPayload() ConversationConsentOriginGitPayload

func (ConversationConsentOriginGitPayload) MarshalJSON

func (value ConversationConsentOriginGitPayload) MarshalJSON() ([]byte, error)

func (*ConversationConsentOriginGitPayload) UnmarshalJSON

func (value *ConversationConsentOriginGitPayload) UnmarshalJSON(data []byte) error

type ConversationConsentOriginImportedPayload

type ConversationConsentOriginImportedPayload struct {
	Digest string `json:"digest"`
}

func DefaultConversationConsentOriginImportedPayload

func DefaultConversationConsentOriginImportedPayload() ConversationConsentOriginImportedPayload

func (ConversationConsentOriginImportedPayload) MarshalJSON

func (value ConversationConsentOriginImportedPayload) MarshalJSON() ([]byte, error)

func (*ConversationConsentOriginImportedPayload) UnmarshalJSON

func (value *ConversationConsentOriginImportedPayload) UnmarshalJSON(data []byte) error

type ConversationConsentOriginRegistryPayload

type ConversationConsentOriginRegistryPayload struct {
	Namespace string `json:"namespace"`
	Slug      string `json:"slug"`
}

func DefaultConversationConsentOriginRegistryPayload

func DefaultConversationConsentOriginRegistryPayload() ConversationConsentOriginRegistryPayload

func (ConversationConsentOriginRegistryPayload) MarshalJSON

func (value ConversationConsentOriginRegistryPayload) MarshalJSON() ([]byte, error)

func (*ConversationConsentOriginRegistryPayload) UnmarshalJSON

func (value *ConversationConsentOriginRegistryPayload) UnmarshalJSON(data []byte) error

type ConversationConsentOriginWorktreePayload

type ConversationConsentOriginWorktreePayload struct {
	Worktree WorktreeID `json:"worktree"`
	Path     string     `json:"path"`
}

func DefaultConversationConsentOriginWorktreePayload

func DefaultConversationConsentOriginWorktreePayload() ConversationConsentOriginWorktreePayload

func (ConversationConsentOriginWorktreePayload) MarshalJSON

func (value ConversationConsentOriginWorktreePayload) MarshalJSON() ([]byte, error)

func (*ConversationConsentOriginWorktreePayload) UnmarshalJSON

func (value *ConversationConsentOriginWorktreePayload) UnmarshalJSON(data []byte) error

type ConversationConsentScopes

type ConversationConsentScopes struct {
	Messages    bool `json:"messages"`
	Credentials bool `json:"credentials"`
}

func DefaultConversationConsentScopes

func DefaultConversationConsentScopes() ConversationConsentScopes

func (ConversationConsentScopes) MarshalJSON

func (value ConversationConsentScopes) MarshalJSON() ([]byte, error)

func (*ConversationConsentScopes) UnmarshalJSON

func (value *ConversationConsentScopes) UnmarshalJSON(data []byte) error

type ConversationContinuation

type ConversationContinuation struct {
	Package PluginReference          `json:"package"`
	Marker  *PluginDesktopNavigation `json:"marker"`
	Kind    *string                  `json:"kind,omitempty"`
	Limit   *uint32                  `json:"limit,omitempty"`
	User    bool                     `json:"user,omitempty"`
}

ConversationContinuation marks a turn a package started with continue_turn. Marker is the localized label controllers show in place of its input; Kind is the declared marker's id when the package named one; Limit is the automatic turn limit the package declared for the session; User marks a continuation the user asked for, which starts a new automatic chain.

func DefaultConversationContinuation

func DefaultConversationContinuation() ConversationContinuation

func (*ConversationContinuation) DecodeJSON

func (value *ConversationContinuation) DecodeJSON(decoder *Decoder) error

func (ConversationContinuation) MarshalJSON

func (value ConversationContinuation) MarshalJSON() ([]byte, error)

func (*ConversationContinuation) UnmarshalJSON

func (value *ConversationContinuation) UnmarshalJSON(data []byte) error

type ConversationContinuationRefusal

type ConversationContinuationRefusal string

ConversationContinuationRefusal says why a session admitted no automatic turn: the session is in Plan mode, is a child, is archived or lost its worktree; its queue is paused or holds input; a turn is running; an approval or question is pending; the automatic turn limit is reached; or the turn the continuation follows is no longer the latest.

const (
	ConversationContinuationRefusalPlan        ConversationContinuationRefusal = "plan"
	ConversationContinuationRefusalChild       ConversationContinuationRefusal = "child"
	ConversationContinuationRefusalArchived    ConversationContinuationRefusal = "archived"
	ConversationContinuationRefusalWorktree    ConversationContinuationRefusal = "worktree"
	ConversationContinuationRefusalQueuePaused ConversationContinuationRefusal = "queue_paused"
	ConversationContinuationRefusalQueuedInput ConversationContinuationRefusal = "queued_input"
	ConversationContinuationRefusalRunning     ConversationContinuationRefusal = "running"
	ConversationContinuationRefusalInteraction ConversationContinuationRefusal = "interaction"
	ConversationContinuationRefusalLimit       ConversationContinuationRefusal = "limit"
	ConversationContinuationRefusalStale       ConversationContinuationRefusal = "stale"
)

func (ConversationContinuationRefusal) MarshalJSON

func (value ConversationContinuationRefusal) MarshalJSON() ([]byte, error)

func (ConversationContinuationRefusal) MarshalText

func (value ConversationContinuationRefusal) MarshalText() ([]byte, error)

func (*ConversationContinuationRefusal) UnmarshalJSON

func (value *ConversationContinuationRefusal) UnmarshalJSON(data []byte) error

func (*ConversationContinuationRefusal) UnmarshalText

func (value *ConversationContinuationRefusal) UnmarshalText(data []byte) error

type ConversationDecision

type ConversationDecision struct {
	Kind string
	Data any
}

func (ConversationDecision) MarshalJSON

func (value ConversationDecision) MarshalJSON() ([]byte, error)

func (*ConversationDecision) UnmarshalJSON

func (value *ConversationDecision) UnmarshalJSON(data []byte) error

type ConversationDiscoveryCapabilities

type ConversationDiscoveryCapabilities struct {
	Features      []ConversationFeaturesFeature      `json:"features,omitempty"`
	Vision        *bool                              `json:"vision"`
	Tools         *bool                              `json:"tools"`
	Reasoning     *bool                              `json:"reasoning"`
	Efforts       *[]Effort                          `json:"efforts"`
	DefaultEffort *Effort                            `json:"default_effort"`
	Anthropic     *ConversationAnthropicCapabilities `json:"anthropic,omitempty"`
	// Options are what a plugin adapter's discovery recorded about the model
	// for its own prepare, which receives them in its request options.
	Options map[string]json.RawMessage `json:"options,omitempty"`
}

func DefaultConversationDiscoveryCapabilities

func DefaultConversationDiscoveryCapabilities() ConversationDiscoveryCapabilities

func (ConversationDiscoveryCapabilities) MarshalJSON

func (value ConversationDiscoveryCapabilities) MarshalJSON() ([]byte, error)

func (*ConversationDiscoveryCapabilities) UnmarshalJSON

func (value *ConversationDiscoveryCapabilities) UnmarshalJSON(data []byte) error

type ConversationDiscoveryCatalog

type ConversationDiscoveryCatalog struct {
	Endpoint string                       `json:"endpoint"`
	Models   []ConversationDiscoveryModel `json:"models"`
}

func DefaultConversationDiscoveryCatalog

func DefaultConversationDiscoveryCatalog() ConversationDiscoveryCatalog

func (ConversationDiscoveryCatalog) MarshalJSON

func (value ConversationDiscoveryCatalog) MarshalJSON() ([]byte, error)

func (*ConversationDiscoveryCatalog) UnmarshalJSON

func (value *ConversationDiscoveryCatalog) UnmarshalJSON(data []byte) error

type ConversationDiscoveryDraft

type ConversationDiscoveryDraft struct {
	Provider   ProviderID                    `json:"provider"`
	Api        ConversationModelApi          `json:"api"`
	Preset     *ConversationPresetsPresetRef `json:"preset,omitempty"`
	Endpoint   string                        `json:"endpoint"`
	Credential *CredentialRef                `json:"credential"`
	Secret     *Secret                       `json:"secret"`
}

func DefaultConversationDiscoveryDraft

func DefaultConversationDiscoveryDraft() ConversationDiscoveryDraft

func (ConversationDiscoveryDraft) MarshalJSON

func (value ConversationDiscoveryDraft) MarshalJSON() ([]byte, error)

func (*ConversationDiscoveryDraft) UnmarshalJSON

func (value *ConversationDiscoveryDraft) UnmarshalJSON(data []byte) error

type ConversationDiscoveryModel

type ConversationDiscoveryModel struct {
	ID           string                             `json:"id"`
	DisplayName  *string                            `json:"display_name,omitempty"`
	Context      *uint32                            `json:"context"`
	Output       *uint32                            `json:"output"`
	Capabilities *ConversationDiscoveryCapabilities `json:"capabilities"`
}

func DefaultConversationDiscoveryModel

func DefaultConversationDiscoveryModel() ConversationDiscoveryModel

func (ConversationDiscoveryModel) MarshalJSON

func (value ConversationDiscoveryModel) MarshalJSON() ([]byte, error)

func (*ConversationDiscoveryModel) UnmarshalJSON

func (value *ConversationDiscoveryModel) UnmarshalJSON(data []byte) error

type ConversationDiscoverySource

type ConversationDiscoverySource struct {
	Kind string
	Data any
}

func (ConversationDiscoverySource) MarshalJSON

func (value ConversationDiscoverySource) MarshalJSON() ([]byte, error)

func (*ConversationDiscoverySource) UnmarshalJSON

func (value *ConversationDiscoverySource) UnmarshalJSON(data []byte) error

type ConversationDiscoverySourceSavedPayload

type ConversationDiscoverySourceSavedPayload struct {
	Provider         ProviderID                `json:"provider"`
	ExpectedRevision uint64                    `json:"expected_revision"`
	Oauth            *ConversationOauthOptions `json:"oauth,omitempty"`
}

func DefaultConversationDiscoverySourceSavedPayload

func DefaultConversationDiscoverySourceSavedPayload() ConversationDiscoverySourceSavedPayload

func (ConversationDiscoverySourceSavedPayload) MarshalJSON

func (value ConversationDiscoverySourceSavedPayload) MarshalJSON() ([]byte, error)

func (*ConversationDiscoverySourceSavedPayload) UnmarshalJSON

func (value *ConversationDiscoverySourceSavedPayload) UnmarshalJSON(data []byte) error

type ConversationDraft

type ConversationDraft struct {
	ID     string             `json:"id"`
	Turn   TurnID             `json:"turn"`
	Author string             `json:"author"`
	Branch string             `json:"branch"`
	Parts  []ConversationPart `json:"parts"`
}

func DefaultConversationDraft

func DefaultConversationDraft() ConversationDraft

func (ConversationDraft) MarshalJSON

func (value ConversationDraft) MarshalJSON() ([]byte, error)

func (*ConversationDraft) UnmarshalJSON

func (value *ConversationDraft) UnmarshalJSON(data []byte) error

type ConversationEntry

type ConversationEntry struct {
	Sequence          uint64                 `json:"sequence"`
	ID                string                 `json:"id"`
	Turn              TurnID                 `json:"turn"`
	Author            string                 `json:"author"`
	Branch            string                 `json:"branch"`
	TimestampMs       int64                  `json:"timestamp_ms"`
	Parts             []ConversationPart     `json:"parts"`
	Citations         []ConversationCitation `json:"citations"`
	SearchSuggestions *string                `json:"search_suggestions"`
	Usage             *ConversationUsage     `json:"usage"`
}

func DefaultConversationEntry

func DefaultConversationEntry() ConversationEntry

func (*ConversationEntry) DecodeJSON

func (value *ConversationEntry) DecodeJSON(decoder *Decoder) error

func (ConversationEntry) MarshalJSON

func (value ConversationEntry) MarshalJSON() ([]byte, error)

func (*ConversationEntry) UnmarshalJSON

func (value *ConversationEntry) UnmarshalJSON(data []byte) error

type ConversationExecution

type ConversationExecution string
const (
	ConversationExecutionModel ConversationExecution = "model"
	ConversationExecutionTeam  ConversationExecution = "team"
)

func (*ConversationExecution) DecodeJSON

func (value *ConversationExecution) DecodeJSON(decoder *Decoder) error

func (ConversationExecution) MarshalJSON

func (value ConversationExecution) MarshalJSON() ([]byte, error)

func (ConversationExecution) MarshalText

func (value ConversationExecution) MarshalText() ([]byte, error)

func (*ConversationExecution) UnmarshalJSON

func (value *ConversationExecution) UnmarshalJSON(data []byte) error

func (*ConversationExecution) UnmarshalText

func (value *ConversationExecution) UnmarshalText(data []byte) error

type ConversationFeaturesFeature

type ConversationFeaturesFeature struct {
	ID      string                              `json:"id"`
	Name    *string                             `json:"name,omitempty"`
	Icon    *PluginDesktopIcon                  `json:"icon,omitempty"`
	Options []ConversationFeaturesFeatureOption `json:"options"`
}

func DefaultConversationFeaturesFeature

func DefaultConversationFeaturesFeature() ConversationFeaturesFeature

func (ConversationFeaturesFeature) MarshalJSON

func (value ConversationFeaturesFeature) MarshalJSON() ([]byte, error)

func (*ConversationFeaturesFeature) UnmarshalJSON

func (value *ConversationFeaturesFeature) UnmarshalJSON(data []byte) error

type ConversationFeaturesFeatureOption

type ConversationFeaturesFeatureOption struct {
	ID   string             `json:"id"`
	Name *string            `json:"name,omitempty"`
	Icon *PluginDesktopIcon `json:"icon,omitempty"`
}

func DefaultConversationFeaturesFeatureOption

func DefaultConversationFeaturesFeatureOption() ConversationFeaturesFeatureOption

func (ConversationFeaturesFeatureOption) MarshalJSON

func (value ConversationFeaturesFeatureOption) MarshalJSON() ([]byte, error)

func (*ConversationFeaturesFeatureOption) UnmarshalJSON

func (value *ConversationFeaturesFeatureOption) UnmarshalJSON(data []byte) error

type ConversationFork

type ConversationFork struct {
	Session SessionID `json:"session"`
	Through TurnID    `json:"through"`
}

func DefaultConversationFork

func DefaultConversationFork() ConversationFork

func (*ConversationFork) DecodeJSON

func (value *ConversationFork) DecodeJSON(decoder *Decoder) error

func (ConversationFork) MarshalJSON

func (value ConversationFork) MarshalJSON() ([]byte, error)

func (*ConversationFork) UnmarshalJSON

func (value *ConversationFork) UnmarshalJSON(data []byte) error

type ConversationFrame

type ConversationFrame struct {
	Node     NodeID             `json:"node"`
	Session  SessionID          `json:"session"`
	Sequence uint64             `json:"sequence"`
	Change   ConversationChange `json:"change"`
}

func DefaultConversationFrame

func DefaultConversationFrame() ConversationFrame

func (ConversationFrame) MarshalJSON

func (value ConversationFrame) MarshalJSON() ([]byte, error)

func (*ConversationFrame) UnmarshalJSON

func (value *ConversationFrame) UnmarshalJSON(data []byte) error

type ConversationHistory

type ConversationHistory struct {
	Sequence uint64           `json:"sequence"`
	Page     ConversationPage `json:"page"`
	Missing  []TurnID         `json:"missing"`
}

func DefaultConversationHistory

func DefaultConversationHistory() ConversationHistory

func (*ConversationHistory) DecodeJSON

func (value *ConversationHistory) DecodeJSON(decoder *Decoder) error

func (ConversationHistory) MarshalJSON

func (value ConversationHistory) MarshalJSON() ([]byte, error)

func (*ConversationHistory) UnmarshalJSON

func (value *ConversationHistory) UnmarshalJSON(data []byte) error

type ConversationImage

type ConversationImage struct {
	Entry      string     `json:"entry"`
	Part       uint64     `json:"part"`
	Index      uint64     `json:"index"`
	Attachment Attachment `json:"attachment"`
}

func DefaultConversationImage

func DefaultConversationImage() ConversationImage

func (*ConversationImage) DecodeJSON

func (value *ConversationImage) DecodeJSON(decoder *Decoder) error

func (ConversationImage) MarshalJSON

func (value ConversationImage) MarshalJSON() ([]byte, error)

func (*ConversationImage) UnmarshalJSON

func (value *ConversationImage) UnmarshalJSON(data []byte) error

type ConversationImagesReference

type ConversationImagesReference struct {
	Call  string `json:"call"`
	Index uint64 `json:"index"`
}

func DefaultConversationImagesReference

func DefaultConversationImagesReference() ConversationImagesReference

func (ConversationImagesReference) MarshalJSON

func (value ConversationImagesReference) MarshalJSON() ([]byte, error)

func (*ConversationImagesReference) UnmarshalJSON

func (value *ConversationImagesReference) UnmarshalJSON(data []byte) error

type ConversationInput

type ConversationInput struct {
	Text        string                  `json:"text"`
	Attachments []AttachmentID          `json:"attachments"`
	References  []ConversationReference `json:"references,omitempty"`
}

func DefaultConversationInput

func DefaultConversationInput() ConversationInput

func (ConversationInput) MarshalJSON

func (value ConversationInput) MarshalJSON() ([]byte, error)

func (*ConversationInput) UnmarshalJSON

func (value *ConversationInput) UnmarshalJSON(data []byte) error

type ConversationLoginAttempt

type ConversationLoginAttempt struct {
	ID       RequestID  `json:"id"`
	Provider ProviderID `json:"provider"`
}

func DefaultConversationLoginAttempt

func DefaultConversationLoginAttempt() ConversationLoginAttempt

func (ConversationLoginAttempt) MarshalJSON

func (value ConversationLoginAttempt) MarshalJSON() ([]byte, error)

func (*ConversationLoginAttempt) UnmarshalJSON

func (value *ConversationLoginAttempt) UnmarshalJSON(data []byte) error

type ConversationLoginState

type ConversationLoginState struct {
	Kind string
	Data any
}

func (ConversationLoginState) MarshalJSON

func (value ConversationLoginState) MarshalJSON() ([]byte, error)

func (*ConversationLoginState) UnmarshalJSON

func (value *ConversationLoginState) UnmarshalJSON(data []byte) error

type ConversationLoginStateBrowserPayload

type ConversationLoginStateBrowserPayload struct {
	AuthorizationUrl string `json:"authorization_url"`
	ExpiresAtMs      uint64 `json:"expires_at_ms"`
}

func DefaultConversationLoginStateBrowserPayload

func DefaultConversationLoginStateBrowserPayload() ConversationLoginStateBrowserPayload

func (ConversationLoginStateBrowserPayload) MarshalJSON

func (value ConversationLoginStateBrowserPayload) MarshalJSON() ([]byte, error)

func (*ConversationLoginStateBrowserPayload) UnmarshalJSON

func (value *ConversationLoginStateBrowserPayload) UnmarshalJSON(data []byte) error

type ConversationLoginStatePendingPayload

type ConversationLoginStatePendingPayload struct {
	VerificationUrl string `json:"verification_url"`
	UserCode        string `json:"user_code"`
	ExpiresAtMs     uint64 `json:"expires_at_ms"`
}

func DefaultConversationLoginStatePendingPayload

func DefaultConversationLoginStatePendingPayload() ConversationLoginStatePendingPayload

func (ConversationLoginStatePendingPayload) MarshalJSON

func (value ConversationLoginStatePendingPayload) MarshalJSON() ([]byte, error)

func (*ConversationLoginStatePendingPayload) UnmarshalJSON

func (value *ConversationLoginStatePendingPayload) UnmarshalJSON(data []byte) error

type ConversationLoginUpdate

type ConversationLoginUpdate struct {
	Attempt    ConversationLoginAttempt `json:"attempt"`
	Revision   uint64                   `json:"revision"`
	State      ConversationLoginState   `json:"state"`
	ModelError *Fault                   `json:"model_error,omitempty"`
	Credential *CredentialRef           `json:"credential,omitempty"`
}

func DefaultConversationLoginUpdate

func DefaultConversationLoginUpdate() ConversationLoginUpdate

func (ConversationLoginUpdate) MarshalJSON

func (value ConversationLoginUpdate) MarshalJSON() ([]byte, error)

func (*ConversationLoginUpdate) UnmarshalJSON

func (value *ConversationLoginUpdate) UnmarshalJSON(data []byte) error

type ConversationModel

type ConversationModel struct {
	ID               string                             `json:"id"`
	DisplayName      *string                            `json:"display_name,omitempty"`
	Context          uint32                             `json:"context"`
	Output           uint32                             `json:"output"`
	CompactionTokens *uint32                            `json:"compaction_tokens,omitempty"`
	Capabilities     *ConversationDiscoveryCapabilities `json:"capabilities,omitempty"`
	// A nil list falls back to the legacy text and vision capabilities.
	Inputs []string `json:"inputs,omitzero"`
	// Outputs reports native output modalities from the channel's catalog.
	// Generates identifies callable media services independently.
	Outputs   []string          `json:"outputs,omitempty"`
	Vision    bool              `json:"vision"`
	Tools     bool              `json:"tools"`
	Reasoning bool              `json:"reasoning"`
	Generates []MediaGeneration `json:"generates"`
	// CustomCapabilities marks input, tools, reasoning and generation tags as user-chosen.
	CustomCapabilities bool     `json:"custom_capabilities,omitempty"`
	Efforts            []Effort `json:"efforts"`
	CustomEfforts      bool     `json:"custom_efforts"`
	DefaultEffort      Effort   `json:"default_effort"`
}

func DefaultConversationModel

func DefaultConversationModel() ConversationModel

func (ConversationModel) AcceptsInput added in v0.2.4

func (value ConversationModel) AcceptsInput(kind string) bool

AcceptsInput consults explicit inputs before falling back to legacy text and image support.

func (ConversationModel) MarshalJSON

func (value ConversationModel) MarshalJSON() ([]byte, error)

func (*ConversationModel) UnmarshalJSON

func (value *ConversationModel) UnmarshalJSON(data []byte) error

type ConversationModelApi

type ConversationModelApi string
const (
	ConversationModelApiChatCompletions ConversationModelApi = "chat_completions"
	ConversationModelApiResponses       ConversationModelApi = "responses"
	ConversationModelApiAnthropic       ConversationModelApi = "anthropic"
	ConversationModelApiGemini          ConversationModelApi = "gemini"
	ConversationModelApiDeepSeek        ConversationModelApi = "deepseek"
	ConversationModelApiOpenCodeGo      ConversationModelApi = "open_code_go"
	ConversationModelApiOpenCodeZen     ConversationModelApi = "open_code_zen"
	ConversationModelApiAzureOpenAi     ConversationModelApi = "azure_open_ai"
	ConversationModelApiAzureAi         ConversationModelApi = "azure_ai"
	ConversationModelApiPlugin          ConversationModelApi = "plugin"
)

func (ConversationModelApi) MarshalJSON

func (value ConversationModelApi) MarshalJSON() ([]byte, error)

func (ConversationModelApi) MarshalText

func (value ConversationModelApi) MarshalText() ([]byte, error)

func (*ConversationModelApi) UnmarshalJSON

func (value *ConversationModelApi) UnmarshalJSON(data []byte) error

func (*ConversationModelApi) UnmarshalText

func (value *ConversationModelApi) UnmarshalText(data []byte) error

type ConversationOauthOptions

type ConversationOauthOptions struct {
	Kind string
	Data any
}

func (ConversationOauthOptions) MarshalJSON

func (value ConversationOauthOptions) MarshalJSON() ([]byte, error)

func (*ConversationOauthOptions) UnmarshalJSON

func (value *ConversationOauthOptions) UnmarshalJSON(data []byte) error

type ConversationOauthOptionsChatGptOAuthPayload

type ConversationOauthOptionsChatGptOAuthPayload struct {
	CatalogVersion *string `json:"catalog_version,omitempty"`
	UserAgent      string  `json:"user_agent"`
}

func DefaultConversationOauthOptionsChatGptOAuthPayload

func DefaultConversationOauthOptionsChatGptOAuthPayload() ConversationOauthOptionsChatGptOAuthPayload

func (ConversationOauthOptionsChatGptOAuthPayload) MarshalJSON

func (value ConversationOauthOptionsChatGptOAuthPayload) MarshalJSON() ([]byte, error)

func (*ConversationOauthOptionsChatGptOAuthPayload) UnmarshalJSON

func (value *ConversationOauthOptionsChatGptOAuthPayload) UnmarshalJSON(data []byte) error

type ConversationOauthOptionsChatGptPayload

type ConversationOauthOptionsChatGptPayload struct {
	CatalogVersion *string `json:"catalog_version,omitempty"`
	UserAgent      string  `json:"user_agent"`
}

func DefaultConversationOauthOptionsChatGptPayload

func DefaultConversationOauthOptionsChatGptPayload() ConversationOauthOptionsChatGptPayload

func (ConversationOauthOptionsChatGptPayload) MarshalJSON

func (value ConversationOauthOptionsChatGptPayload) MarshalJSON() ([]byte, error)

func (*ConversationOauthOptionsChatGptPayload) UnmarshalJSON

func (value *ConversationOauthOptionsChatGptPayload) UnmarshalJSON(data []byte) error

type ConversationOauthOptionsClaudeOAuthPayload

type ConversationOauthOptionsClaudeOAuthPayload struct {
	UserAgent string `json:"user_agent"`
}

func DefaultConversationOauthOptionsClaudeOAuthPayload

func DefaultConversationOauthOptionsClaudeOAuthPayload() ConversationOauthOptionsClaudeOAuthPayload

func (ConversationOauthOptionsClaudeOAuthPayload) MarshalJSON

func (value ConversationOauthOptionsClaudeOAuthPayload) MarshalJSON() ([]byte, error)

func (*ConversationOauthOptionsClaudeOAuthPayload) UnmarshalJSON

func (value *ConversationOauthOptionsClaudeOAuthPayload) UnmarshalJSON(data []byte) error

type ConversationOauthOptionsCopilotPayload

type ConversationOauthOptionsCopilotPayload struct {
	UserAgent           string `json:"user_agent"`
	EditorVersion       string `json:"editor_version"`
	EditorPluginVersion string `json:"editor_plugin_version"`
}

func DefaultConversationOauthOptionsCopilotPayload

func DefaultConversationOauthOptionsCopilotPayload() ConversationOauthOptionsCopilotPayload

func (ConversationOauthOptionsCopilotPayload) MarshalJSON

func (value ConversationOauthOptionsCopilotPayload) MarshalJSON() ([]byte, error)

func (*ConversationOauthOptionsCopilotPayload) UnmarshalJSON

func (value *ConversationOauthOptionsCopilotPayload) UnmarshalJSON(data []byte) error

type ConversationOauthOptionsPluginPayload

type ConversationOauthOptionsPluginPayload struct {
	Package  PluginReference               `json:"package"`
	Flow     string                        `json:"flow"`
	Endpoint string                        `json:"endpoint"`
	Consent  **ConversationConsentApproval `json:"consent"`
	Origin   *ConversationConsentOrigin    `json:"origin"`
}

func DefaultConversationOauthOptionsPluginPayload

func DefaultConversationOauthOptionsPluginPayload() ConversationOauthOptionsPluginPayload

func (ConversationOauthOptionsPluginPayload) MarshalJSON

func (value ConversationOauthOptionsPluginPayload) MarshalJSON() ([]byte, error)

func (*ConversationOauthOptionsPluginPayload) UnmarshalJSON

func (value *ConversationOauthOptionsPluginPayload) UnmarshalJSON(data []byte) error

type ConversationObservationAttempt

type ConversationObservationAttempt struct {
	Index     uint64 `json:"index"`
	Transport string `json:"transport"`
	Reused    *bool  `json:"reused"`
	// RequestBytes counts the final serialized body. Timing offsets are from
	// attempt start: DispatchUs precedes HTTP I/O; RequestSentUs follows a
	// successful request write. Missing transport facts remain nil.
	RequestBytes      *uint64                           `json:"request_bytes,omitempty"`
	DispatchUs        *uint64                           `json:"dispatch_us,omitempty"`
	RequestSentUs     *uint64                           `json:"request_sent_us,omitempty"`
	HeadersUs         *uint64                           `json:"headers_us"`
	ResponseUs        *uint64                           `json:"response_us"`
	FirstTokenUs      *uint64                           `json:"first_token_us"`
	ElapsedUs         *uint64                           `json:"elapsed_us"`
	Status            *uint16                           `json:"status"`
	Outcome           ConversationObservationOutcome    `json:"outcome"`
	Categories        []ConversationObservationCategory `json:"categories"`
	CompleteContext   bool                              `json:"complete_context"`
	Usage             *ConversationUsage                `json:"usage"`
	CacheReported     bool                              `json:"cache_reported"`
	ReasoningReported bool                              `json:"reasoning_reported"`
	ReasoningStreamed bool                              `json:"reasoning_streamed"`
	ResponsesBoundary *ConversationResponsesBoundary    `json:"responses_boundary,omitempty"`
}

func DefaultConversationObservationAttempt

func DefaultConversationObservationAttempt() ConversationObservationAttempt

func (ConversationObservationAttempt) MarshalJSON

func (value ConversationObservationAttempt) MarshalJSON() ([]byte, error)

func (*ConversationObservationAttempt) UnmarshalJSON

func (value *ConversationObservationAttempt) UnmarshalJSON(data []byte) error

type ConversationObservationCategory

type ConversationObservationCategory struct {
	Kind   ConversationObservationCategoryKind `json:"kind"`
	Items  *uint64                             `json:"items"`
	Tokens *uint64                             `json:"tokens"`
	Method *string                             `json:"method"`
	// Characters counts estimated text; OpaqueBytes counts excluded string
	// payloads such as signatures and media, without estimating their tokens.
	Characters  *uint64 `json:"characters,omitempty"`
	OpaqueBytes *uint64 `json:"opaque_bytes,omitempty"`
}

func DefaultConversationObservationCategory

func DefaultConversationObservationCategory() ConversationObservationCategory

func (ConversationObservationCategory) MarshalJSON

func (value ConversationObservationCategory) MarshalJSON() ([]byte, error)

func (*ConversationObservationCategory) UnmarshalJSON

func (value *ConversationObservationCategory) UnmarshalJSON(data []byte) error

type ConversationObservationCategoryKind

type ConversationObservationCategoryKind string
const (
	ConversationObservationCategoryKindSystem    ConversationObservationCategoryKind = "system"
	ConversationObservationCategoryKindTools     ConversationObservationCategoryKind = "tools"
	ConversationObservationCategoryKindUser      ConversationObservationCategoryKind = "user"
	ConversationObservationCategoryKindSkills    ConversationObservationCategoryKind = "skills"
	ConversationObservationCategoryKindInjected  ConversationObservationCategoryKind = "injected"
	ConversationObservationCategoryKindAssistant ConversationObservationCategoryKind = "assistant"
	ConversationObservationCategoryKindResults   ConversationObservationCategoryKind = "results"
)

func (ConversationObservationCategoryKind) MarshalJSON

func (value ConversationObservationCategoryKind) MarshalJSON() ([]byte, error)

func (ConversationObservationCategoryKind) MarshalText

func (value ConversationObservationCategoryKind) MarshalText() ([]byte, error)

func (*ConversationObservationCategoryKind) UnmarshalJSON

func (value *ConversationObservationCategoryKind) UnmarshalJSON(data []byte) error

func (*ConversationObservationCategoryKind) UnmarshalText

func (value *ConversationObservationCategoryKind) UnmarshalText(data []byte) error

type ConversationObservationLatency

type ConversationObservationLatency struct {
	// PairedResponseUs and WaitingUs cover the same attempts with ordered response and first output.
	PairedResponseUs *uint64 `json:"paired_response_us,omitempty"`
	ResponseUs       *uint64 `json:"response_us"`
	FirstTokenUs     *uint64 `json:"first_token_us"`
	WaitingUs        *uint64 `json:"waiting_us"`
	ElapsedUs        *uint64 `json:"elapsed_us"`
}

func DefaultConversationObservationLatency

func DefaultConversationObservationLatency() ConversationObservationLatency

func (ConversationObservationLatency) MarshalJSON

func (value ConversationObservationLatency) MarshalJSON() ([]byte, error)

func (*ConversationObservationLatency) UnmarshalJSON

func (value *ConversationObservationLatency) UnmarshalJSON(data []byte) error

type ConversationObservationOutcome

type ConversationObservationOutcome string
const (
	ConversationObservationOutcomeSucceeded ConversationObservationOutcome = "succeeded"
	ConversationObservationOutcomeFailed    ConversationObservationOutcome = "failed"
	ConversationObservationOutcomeCancelled ConversationObservationOutcome = "cancelled"
)

func (ConversationObservationOutcome) MarshalJSON

func (value ConversationObservationOutcome) MarshalJSON() ([]byte, error)

func (ConversationObservationOutcome) MarshalText

func (value ConversationObservationOutcome) MarshalText() ([]byte, error)

func (*ConversationObservationOutcome) UnmarshalJSON

func (value *ConversationObservationOutcome) UnmarshalJSON(data []byte) error

func (*ConversationObservationOutcome) UnmarshalText

func (value *ConversationObservationOutcome) UnmarshalText(data []byte) error

type ConversationObservationPhases

type ConversationObservationPhases struct {
	ActiveUs  *uint64 `json:"active_us"`
	WaitingUs *uint64 `json:"waiting_us"`
	OutputUs  *uint64 `json:"output_us"`
	ToolsUs   *uint64 `json:"tools_us"`
	OtherUs   *uint64 `json:"other_us"`
}

func DefaultConversationObservationPhases

func DefaultConversationObservationPhases() ConversationObservationPhases

func (ConversationObservationPhases) MarshalJSON

func (value ConversationObservationPhases) MarshalJSON() ([]byte, error)

func (*ConversationObservationPhases) UnmarshalJSON

func (value *ConversationObservationPhases) UnmarshalJSON(data []byte) error

type ConversationObservationRequest

type ConversationObservationRequest struct {
	ID           string                           `json:"id"`
	Turn         TurnID                           `json:"turn"`
	TurnIndex    *uint64                          `json:"turn_index,omitempty"`
	Model        string                           `json:"model"`
	ContextLimit *uint32                          `json:"context_limit"`
	TimestampMs  int64                            `json:"timestamp_ms"`
	Boundary     *uint64                          `json:"boundary"`
	Attempts     []ConversationObservationAttempt `json:"attempts"`
}

func DefaultConversationObservationRequest

func DefaultConversationObservationRequest() ConversationObservationRequest

func (ConversationObservationRequest) MarshalJSON

func (value ConversationObservationRequest) MarshalJSON() ([]byte, error)

func (*ConversationObservationRequest) UnmarshalJSON

func (value *ConversationObservationRequest) UnmarshalJSON(data []byte) error

type ConversationObservationSummary

type ConversationObservationSummary struct {
	Recent        []ConversationObservationRequest  `json:"recent"`
	Latency       ConversationObservationLatency    `json:"latency"`
	Phases        ConversationObservationPhases     `json:"phases"`
	Calls         uint64                            `json:"calls"`
	Replies       uint64                            `json:"replies"`
	Compactions   uint64                            `json:"compactions"`
	Tools         map[string]uint64                 `json:"tools"`
	Children      uint64                            `json:"children"`
	CacheRead     *uint64                           `json:"cache_read"`
	Reasoning     *uint64                           `json:"reasoning"`
	ModelUs       uint64                            `json:"model_us"`
	OutputUs      uint64                            `json:"output_us"`
	OutputTokens  uint64                            `json:"output_tokens"`
	OutputSamples uint64                            `json:"output_samples"`
	Composition   []ConversationObservationCategory `json:"composition"`
}

func DefaultConversationObservationSummary

func DefaultConversationObservationSummary() ConversationObservationSummary

func (ConversationObservationSummary) MarshalJSON

func (value ConversationObservationSummary) MarshalJSON() ([]byte, error)

func (*ConversationObservationSummary) UnmarshalJSON

func (value *ConversationObservationSummary) UnmarshalJSON(data []byte) error

type ConversationPage

type ConversationPage struct {
	Session    SessionID                    `json:"session"`
	Revision   uint64                       `json:"revision"`
	Entries    []ConversationEntry          `json:"entries"`
	Runs       []ConversationRun            `json:"runs"`
	Queue      ConversationQueue            `json:"queue"`
	Approvals  []ConversationApproval       `json:"approvals"`
	Questions  []ConversationQuestion       `json:"questions"`
	Children   []ConversationChild          `json:"children"`
	Background []ConversationBackgroundTask `json:"background"`
	NextBefore *TurnID                      `json:"next_before"`
}

func DefaultConversationPage

func DefaultConversationPage() ConversationPage

func (*ConversationPage) DecodeJSON

func (value *ConversationPage) DecodeJSON(decoder *Decoder) error

func (ConversationPage) MarshalJSON

func (value ConversationPage) MarshalJSON() ([]byte, error)

func (*ConversationPage) UnmarshalJSON

func (value *ConversationPage) UnmarshalJSON(data []byte) error

type ConversationPart

type ConversationPart struct {
	Kind string
	Data any
}

func (*ConversationPart) DecodeJSON

func (value *ConversationPart) DecodeJSON(decoder *Decoder) error

func (ConversationPart) MarshalJSON

func (value ConversationPart) MarshalJSON() ([]byte, error)

func (*ConversationPart) UnmarshalJSON

func (value *ConversationPart) UnmarshalJSON(data []byte) error

type ConversationPartToolCallPayload

type ConversationPartToolCallPayload struct {
	ID           *string            `json:"id"`
	Name         string             `json:"name"`
	Summary      *ToolDetailSummary `json:"summary"`
	Presentation ToolPresentation   `json:"presentation"`
	Grouping     ToolGrouping       `json:"grouping"`
}

func DefaultConversationPartToolCallPayload

func DefaultConversationPartToolCallPayload() ConversationPartToolCallPayload

func (*ConversationPartToolCallPayload) DecodeJSON

func (value *ConversationPartToolCallPayload) DecodeJSON(decoder *Decoder) error

func (ConversationPartToolCallPayload) MarshalJSON

func (value ConversationPartToolCallPayload) MarshalJSON() ([]byte, error)

func (*ConversationPartToolCallPayload) UnmarshalJSON

func (value *ConversationPartToolCallPayload) UnmarshalJSON(data []byte) error

type ConversationPartToolResultPayload

type ConversationPartToolResultPayload struct {
	ID      *string             `json:"id"`
	Name    string              `json:"name"`
	Summary *ToolDetailSummary  `json:"summary"`
	Images  []ConversationImage `json:"images"`
}

func DefaultConversationPartToolResultPayload

func DefaultConversationPartToolResultPayload() ConversationPartToolResultPayload

func (*ConversationPartToolResultPayload) DecodeJSON

func (value *ConversationPartToolResultPayload) DecodeJSON(decoder *Decoder) error

func (ConversationPartToolResultPayload) MarshalJSON

func (value ConversationPartToolResultPayload) MarshalJSON() ([]byte, error)

func (*ConversationPartToolResultPayload) UnmarshalJSON

func (value *ConversationPartToolResultPayload) UnmarshalJSON(data []byte) error

type ConversationPending

type ConversationPending struct {
	Turn           TurnID              `json:"turn"`
	Notice         bool                `json:"notice"`
	Request        *RequestID          `json:"request,omitempty"`
	Kind           ConversationRunKind `json:"kind"`
	Revision       uint64              `json:"revision"`
	ConfigRevision uint64              `json:"config_revision"`
	Ready          bool                `json:"ready"`
	Guidance       *TurnID             `json:"guidance"`
	Preview        string              `json:"preview"`
	Truncated      bool                `json:"truncated"`
	Attachments    []Attachment        `json:"attachments"`
}

func DefaultConversationPending

func DefaultConversationPending() ConversationPending

func (ConversationPending) MarshalJSON

func (value ConversationPending) MarshalJSON() ([]byte, error)

func (*ConversationPending) UnmarshalJSON

func (value *ConversationPending) UnmarshalJSON(data []byte) error

type ConversationPresetsAuth

type ConversationPresetsAuth struct {
	Kind string
	Data any
}

func (ConversationPresetsAuth) MarshalJSON

func (value ConversationPresetsAuth) MarshalJSON() ([]byte, error)

func (*ConversationPresetsAuth) UnmarshalJSON

func (value *ConversationPresetsAuth) UnmarshalJSON(data []byte) error

type ConversationPresetsAuthApiKeyPayload

type ConversationPresetsAuthApiKeyPayload struct {
	Header *string `json:"header"`
	Prefix *string `json:"prefix"`
}

func DefaultConversationPresetsAuthApiKeyPayload

func DefaultConversationPresetsAuthApiKeyPayload() ConversationPresetsAuthApiKeyPayload

func (ConversationPresetsAuthApiKeyPayload) MarshalJSON

func (value ConversationPresetsAuthApiKeyPayload) MarshalJSON() ([]byte, error)

func (*ConversationPresetsAuthApiKeyPayload) UnmarshalJSON

func (value *ConversationPresetsAuthApiKeyPayload) UnmarshalJSON(data []byte) error

type ConversationPresetsAuthBuiltinPayload

type ConversationPresetsAuthBuiltinPayload struct {
	Authentication Authentication `json:"authentication"`
}

func DefaultConversationPresetsAuthBuiltinPayload

func DefaultConversationPresetsAuthBuiltinPayload() ConversationPresetsAuthBuiltinPayload

func (ConversationPresetsAuthBuiltinPayload) MarshalJSON

func (value ConversationPresetsAuthBuiltinPayload) MarshalJSON() ([]byte, error)

func (*ConversationPresetsAuthBuiltinPayload) UnmarshalJSON

func (value *ConversationPresetsAuthBuiltinPayload) UnmarshalJSON(data []byte) error

type ConversationPresetsAuthPluginPayload

type ConversationPresetsAuthPluginPayload struct {
	Flow string `json:"flow"`
}

func DefaultConversationPresetsAuthPluginPayload

func DefaultConversationPresetsAuthPluginPayload() ConversationPresetsAuthPluginPayload

func (ConversationPresetsAuthPluginPayload) MarshalJSON

func (value ConversationPresetsAuthPluginPayload) MarshalJSON() ([]byte, error)

func (*ConversationPresetsAuthPluginPayload) UnmarshalJSON

func (value *ConversationPresetsAuthPluginPayload) UnmarshalJSON(data []byte) error

type ConversationPresetsBinding

type ConversationPresetsBinding struct {
	Package      *PluginReference                   `json:"package"`
	Origin       *ConversationConsentOrigin         `json:"origin"`
	Auth         *PluginModelAuthBinding            `json:"auth"`
	Adapter      *PluginModelAdapterBinding         `json:"adapter"`
	Policies     []ConversationPresetsRequestPolicy `json:"policies"`
	KeyInjection *PluginModelAuthInjection          `json:"key_injection"`
}

func DefaultConversationPresetsBinding

func DefaultConversationPresetsBinding() ConversationPresetsBinding

func (ConversationPresetsBinding) MarshalJSON

func (value ConversationPresetsBinding) MarshalJSON() ([]byte, error)

func (*ConversationPresetsBinding) UnmarshalJSON

func (value *ConversationPresetsBinding) UnmarshalJSON(data []byte) error

type ConversationPresetsCatalog

type ConversationPresetsCatalog struct {
	Version  uint32                             `json:"version"`
	Builtin  []ConversationPresetsPreset        `json:"builtin"`
	Partners []ConversationPresetsPreset        `json:"partners"`
	Policies []ConversationPresetsRequestPolicy `json:"policies"`
}

func DefaultConversationPresetsCatalog

func DefaultConversationPresetsCatalog() ConversationPresetsCatalog

func (ConversationPresetsCatalog) MarshalJSON

func (value ConversationPresetsCatalog) MarshalJSON() ([]byte, error)

func (*ConversationPresetsCatalog) UnmarshalJSON

func (value *ConversationPresetsCatalog) UnmarshalJSON(data []byte) error

type ConversationPresetsEntry

type ConversationPresetsEntry struct {
	Source     ConversationPresetsSource     `json:"source"`
	Preset     ConversationPresetsPreset     `json:"preset"`
	Provenance ConversationPresetsProvenance `json:"provenance"`
	Package    *PluginReference              `json:"package"`
	Origin     *ConversationConsentOrigin    `json:"origin"`
	Requested  ConversationConsentScopes     `json:"requested"`
	Icon       *string                       `json:"icon,omitempty"`
	Login      *PluginModelAuthPresentation  `json:"login,omitempty"`
	// LoginWarning is the warning of the preset's sign-in, else of the
	// preset, absent when neither declares one.
	LoginWarning *PluginModelAuthWarning `json:"login_warning,omitempty"`
}

func DefaultConversationPresetsEntry

func DefaultConversationPresetsEntry() ConversationPresetsEntry

func (ConversationPresetsEntry) MarshalJSON

func (value ConversationPresetsEntry) MarshalJSON() ([]byte, error)

func (*ConversationPresetsEntry) UnmarshalJSON

func (value *ConversationPresetsEntry) UnmarshalJSON(data []byte) error

type ConversationPresetsListing

type ConversationPresetsListing struct {
	Entries             []ConversationPresetsEntry `json:"entries"`
	PartnersUnavailable bool                       `json:"partners_unavailable"`
}

func DefaultConversationPresetsListing

func DefaultConversationPresetsListing() ConversationPresetsListing

func (ConversationPresetsListing) MarshalJSON

func (value ConversationPresetsListing) MarshalJSON() ([]byte, error)

func (*ConversationPresetsListing) UnmarshalJSON

func (value *ConversationPresetsListing) UnmarshalJSON(data []byte) error

type ConversationPresetsModels

type ConversationPresetsModels struct {
	Kind string
	Data any
}

func (ConversationPresetsModels) MarshalJSON

func (value ConversationPresetsModels) MarshalJSON() ([]byte, error)

func (*ConversationPresetsModels) UnmarshalJSON

func (value *ConversationPresetsModels) UnmarshalJSON(data []byte) error

type ConversationPresetsModelsStaticPayload

type ConversationPresetsModelsStaticPayload struct {
	IDs []string `json:"ids"`
}

func DefaultConversationPresetsModelsStaticPayload

func DefaultConversationPresetsModelsStaticPayload() ConversationPresetsModelsStaticPayload

func (ConversationPresetsModelsStaticPayload) MarshalJSON

func (value ConversationPresetsModelsStaticPayload) MarshalJSON() ([]byte, error)

func (*ConversationPresetsModelsStaticPayload) UnmarshalJSON

func (value *ConversationPresetsModelsStaticPayload) UnmarshalJSON(data []byte) error

type ConversationPresetsPreset

type ConversationPresetsPreset struct {
	ID           string                             `json:"id"`
	Name         string                             `json:"name"`
	Locales      map[string]string                  `json:"locales"`
	Description  *string                            `json:"description"`
	Homepage     *string                            `json:"homepage"`
	KeyUrl       *string                            `json:"key_url"`
	Badge        *string                            `json:"badge"`
	Brand        *string                            `json:"brand"`
	BrandDisplay *PluginDesktopNavigation           `json:"brand_display"`
	Offered      bool                               `json:"offered"`
	Routes       []ConversationPresetsRoute         `json:"routes"`
	Auth         ConversationPresetsAuth            `json:"auth"`
	Models       ConversationPresetsModels          `json:"models"`
	Policies     []ConversationPresetsRequestPolicy `json:"policies"`
	Products     []ConversationPresetsProduct       `json:"products"`
	Adapter      *string                            `json:"adapter"`
	// Warning is what a controller asks the user to accept before a channel
	// is made from this preset, absent when it has none.
	Warning *PluginModelAuthWarning `json:"warning,omitempty"`
}

func DefaultConversationPresetsPreset

func DefaultConversationPresetsPreset() ConversationPresetsPreset

func (ConversationPresetsPreset) MarshalJSON

func (value ConversationPresetsPreset) MarshalJSON() ([]byte, error)

func (*ConversationPresetsPreset) UnmarshalJSON

func (value *ConversationPresetsPreset) UnmarshalJSON(data []byte) error

type ConversationPresetsPresetRef

type ConversationPresetsPresetRef struct {
	Source ConversationPresetsSource    `json:"source"`
	ID     string                       `json:"id"`
	Route  *ConversationPresetsRouteKey `json:"route"`
}

func DefaultConversationPresetsPresetRef

func DefaultConversationPresetsPresetRef() ConversationPresetsPresetRef

func (ConversationPresetsPresetRef) MarshalJSON

func (value ConversationPresetsPresetRef) MarshalJSON() ([]byte, error)

func (*ConversationPresetsPresetRef) UnmarshalJSON

func (value *ConversationPresetsPresetRef) UnmarshalJSON(data []byte) error

type ConversationPresetsProduct

type ConversationPresetsProduct struct {
	Kind         ConversationConnectionProduct `json:"kind"`
	Display      *PluginDesktopNavigation      `json:"display"`
	DefaultModel *string                       `json:"default_model"`
	Discover     bool                          `json:"discover"`
}

func DefaultConversationPresetsProduct

func DefaultConversationPresetsProduct() ConversationPresetsProduct

func (ConversationPresetsProduct) MarshalJSON

func (value ConversationPresetsProduct) MarshalJSON() ([]byte, error)

func (*ConversationPresetsProduct) UnmarshalJSON

func (value *ConversationPresetsProduct) UnmarshalJSON(data []byte) error

type ConversationPresetsProtocol

type ConversationPresetsProtocol string
const (
	ConversationPresetsProtocolOpenAiResponses       ConversationPresetsProtocol = "openai-responses"
	ConversationPresetsProtocolOpenAiChatCompletions ConversationPresetsProtocol = "openai-chat-completions"
	ConversationPresetsProtocolAnthropic             ConversationPresetsProtocol = "anthropic"
	ConversationPresetsProtocolGemini                ConversationPresetsProtocol = "gemini"
	ConversationPresetsProtocolDeepSeek              ConversationPresetsProtocol = "deepseek"
	ConversationPresetsProtocolOpenCodeGo            ConversationPresetsProtocol = "opencode-go"
	ConversationPresetsProtocolOpenCodeZen           ConversationPresetsProtocol = "opencode-zen"
	ConversationPresetsProtocolAzureOpenAi           ConversationPresetsProtocol = "azure-openai"
	ConversationPresetsProtocolAzureAi               ConversationPresetsProtocol = "azure-ai"
	ConversationPresetsProtocolPlugin                ConversationPresetsProtocol = "plugin"
)

func (ConversationPresetsProtocol) MarshalJSON

func (value ConversationPresetsProtocol) MarshalJSON() ([]byte, error)

func (ConversationPresetsProtocol) MarshalText

func (value ConversationPresetsProtocol) MarshalText() ([]byte, error)

func (*ConversationPresetsProtocol) UnmarshalJSON

func (value *ConversationPresetsProtocol) UnmarshalJSON(data []byte) error

func (*ConversationPresetsProtocol) UnmarshalText

func (value *ConversationPresetsProtocol) UnmarshalText(data []byte) error

type ConversationPresetsProvenance

type ConversationPresetsProvenance string
const (
	ConversationPresetsProvenanceOfficial   ConversationPresetsProvenance = "official"
	ConversationPresetsProvenanceBundled    ConversationPresetsProvenance = "bundled"
	ConversationPresetsProvenanceThirdParty ConversationPresetsProvenance = "third_party"
)

func (ConversationPresetsProvenance) MarshalJSON

func (value ConversationPresetsProvenance) MarshalJSON() ([]byte, error)

func (ConversationPresetsProvenance) MarshalText

func (value ConversationPresetsProvenance) MarshalText() ([]byte, error)

func (*ConversationPresetsProvenance) UnmarshalJSON

func (value *ConversationPresetsProvenance) UnmarshalJSON(data []byte) error

func (*ConversationPresetsProvenance) UnmarshalText

func (value *ConversationPresetsProvenance) UnmarshalText(data []byte) error

type ConversationPresetsRegion

type ConversationPresetsRegion string
const (
	ConversationPresetsRegionChina  ConversationPresetsRegion = "china"
	ConversationPresetsRegionGlobal ConversationPresetsRegion = "global"
)

func (ConversationPresetsRegion) MarshalJSON

func (value ConversationPresetsRegion) MarshalJSON() ([]byte, error)

func (ConversationPresetsRegion) MarshalText

func (value ConversationPresetsRegion) MarshalText() ([]byte, error)

func (*ConversationPresetsRegion) UnmarshalJSON

func (value *ConversationPresetsRegion) UnmarshalJSON(data []byte) error

func (*ConversationPresetsRegion) UnmarshalText

func (value *ConversationPresetsRegion) UnmarshalText(data []byte) error

type ConversationPresetsReplayField

type ConversationPresetsReplayField string
const (
	ConversationPresetsReplayFieldReasoningContent ConversationPresetsReplayField = "reasoning_content"
)

func (ConversationPresetsReplayField) MarshalJSON

func (value ConversationPresetsReplayField) MarshalJSON() ([]byte, error)

func (ConversationPresetsReplayField) MarshalText

func (value ConversationPresetsReplayField) MarshalText() ([]byte, error)

func (*ConversationPresetsReplayField) UnmarshalJSON

func (value *ConversationPresetsReplayField) UnmarshalJSON(data []byte) error

func (*ConversationPresetsReplayField) UnmarshalText

func (value *ConversationPresetsReplayField) UnmarshalText(data []byte) error

type ConversationPresetsRequestPolicy

type ConversationPresetsRequestPolicy struct {
	Models          []string                        `json:"models"`
	ReasoningReplay *ConversationPresetsReplayField `json:"reasoning_replay"`
	Body            map[string]json.RawMessage      `json:"body"`
}

func DefaultConversationPresetsRequestPolicy

func DefaultConversationPresetsRequestPolicy() ConversationPresetsRequestPolicy

func (ConversationPresetsRequestPolicy) MarshalJSON

func (value ConversationPresetsRequestPolicy) MarshalJSON() ([]byte, error)

func (*ConversationPresetsRequestPolicy) UnmarshalJSON

func (value *ConversationPresetsRequestPolicy) UnmarshalJSON(data []byte) error

type ConversationPresetsRoute

type ConversationPresetsRoute struct {
	Protocol ConversationPresetsProtocol    `json:"protocol"`
	Endpoint string                         `json:"endpoint"`
	Region   *ConversationPresetsRegion     `json:"region"`
	Product  *ConversationConnectionProduct `json:"product"`
}

func DefaultConversationPresetsRoute

func DefaultConversationPresetsRoute() ConversationPresetsRoute

func (ConversationPresetsRoute) MarshalJSON

func (value ConversationPresetsRoute) MarshalJSON() ([]byte, error)

func (*ConversationPresetsRoute) UnmarshalJSON

func (value *ConversationPresetsRoute) UnmarshalJSON(data []byte) error

type ConversationPresetsRouteKey

type ConversationPresetsRouteKey struct {
	Protocol ConversationPresetsProtocol    `json:"protocol"`
	Region   *ConversationPresetsRegion     `json:"region"`
	Product  *ConversationConnectionProduct `json:"product"`
}

func DefaultConversationPresetsRouteKey

func DefaultConversationPresetsRouteKey() ConversationPresetsRouteKey

func (ConversationPresetsRouteKey) MarshalJSON

func (value ConversationPresetsRouteKey) MarshalJSON() ([]byte, error)

func (*ConversationPresetsRouteKey) UnmarshalJSON

func (value *ConversationPresetsRouteKey) UnmarshalJSON(data []byte) error

type ConversationPresetsSource

type ConversationPresetsSource struct {
	Kind string
	Data any
}

func (ConversationPresetsSource) MarshalJSON

func (value ConversationPresetsSource) MarshalJSON() ([]byte, error)

func (*ConversationPresetsSource) UnmarshalJSON

func (value *ConversationPresetsSource) UnmarshalJSON(data []byte) error

type ConversationPresetsSourcePackagePayload

type ConversationPresetsSourcePackagePayload struct {
	Name string `json:"name"`
}

func DefaultConversationPresetsSourcePackagePayload

func DefaultConversationPresetsSourcePackagePayload() ConversationPresetsSourcePackagePayload

func (ConversationPresetsSourcePackagePayload) MarshalJSON

func (value ConversationPresetsSourcePackagePayload) MarshalJSON() ([]byte, error)

func (*ConversationPresetsSourcePackagePayload) UnmarshalJSON

func (value *ConversationPresetsSourcePackagePayload) UnmarshalJSON(data []byte) error

type ConversationProgress

type ConversationProgress struct {
	Title *string                    `json:"title"`
	Steps []ConversationProgressStep `json:"steps"`
}

func DefaultConversationProgress

func DefaultConversationProgress() ConversationProgress

func (*ConversationProgress) DecodeJSON

func (value *ConversationProgress) DecodeJSON(decoder *Decoder) error

func (ConversationProgress) MarshalJSON

func (value ConversationProgress) MarshalJSON() ([]byte, error)

func (*ConversationProgress) UnmarshalJSON

func (value *ConversationProgress) UnmarshalJSON(data []byte) error

type ConversationProgressState

type ConversationProgressState string
const (
	ConversationProgressStatePending    ConversationProgressState = "pending"
	ConversationProgressStateInProgress ConversationProgressState = "in_progress"
	ConversationProgressStateCompleted  ConversationProgressState = "completed"
	ConversationProgressStateSkipped    ConversationProgressState = "skipped"
)

func (ConversationProgressState) MarshalJSON

func (value ConversationProgressState) MarshalJSON() ([]byte, error)

func (ConversationProgressState) MarshalText

func (value ConversationProgressState) MarshalText() ([]byte, error)

func (*ConversationProgressState) UnmarshalJSON

func (value *ConversationProgressState) UnmarshalJSON(data []byte) error

func (*ConversationProgressState) UnmarshalText

func (value *ConversationProgressState) UnmarshalText(data []byte) error

type ConversationProgressStep

type ConversationProgressStep struct {
	Description string                    `json:"description"`
	State       ConversationProgressState `json:"state"`
}

func DefaultConversationProgressStep

func DefaultConversationProgressStep() ConversationProgressStep

func (ConversationProgressStep) MarshalJSON

func (value ConversationProgressStep) MarshalJSON() ([]byte, error)

func (*ConversationProgressStep) UnmarshalJSON

func (value *ConversationProgressStep) UnmarshalJSON(data []byte) error

type ConversationProvider

type ConversationProvider struct {
	Source            *ConfigurationOrigin           `json:"source,omitempty"`
	Owner             *UserID                        `json:"owner,omitempty"`
	Shared            bool                           `json:"shared,omitempty"`
	ID                ProviderID                     `json:"id"`
	Revision          uint64                         `json:"revision"`
	Preset            *ConversationPresetsPresetRef  `json:"preset,omitempty"`
	Binding           **ConversationPresetsBinding   `json:"binding,omitempty"`
	Consent           **ConversationConsentApproval  `json:"consent,omitempty"`
	Name              string                         `json:"name"`
	Api               ConversationModelApi           `json:"api"`
	Authentication    Authentication                 `json:"authentication"`
	Endpoint          string                         `json:"endpoint"`
	Options           *ConversationConnectionOptions `json:"options,omitempty"`
	Oauth             *ConversationOauthOptions      `json:"oauth,omitempty"`
	Headers           map[string]string              `json:"headers,omitempty"`
	Enabled           bool                           `json:"enabled"`
	Models            []ConversationModel            `json:"models"`
	DefaultModel      string                         `json:"default_model"`
	BillingRateBps    *uint32                        `json:"billing_rate_bps,omitempty"`
	RequestMaxRetries *uint64                        `json:"request_max_retries,omitempty"`
	StreamMaxRetries  *uint64                        `json:"stream_max_retries,omitempty"`
	Credential        *CredentialRef                 `json:"credential"`
}

ConversationProvider is a model connection. Headers are request headers an API-key provider adds to model calls, replacing defaults of the same name. BillingRateBps adjusts estimates only for API-key providers. Nil uses DefaultBillingRateBps; a non-nil zero is a zero estimate.

func DefaultConversationProvider

func DefaultConversationProvider() ConversationProvider

func (*ConversationProvider) DecodeJSON

func (value *ConversationProvider) DecodeJSON(decoder *Decoder) error

func (ConversationProvider) MarshalJSON

func (value ConversationProvider) MarshalJSON() ([]byte, error)

func (*ConversationProvider) UnmarshalJSON

func (value *ConversationProvider) UnmarshalJSON(data []byte) error

type ConversationQuestion

type ConversationQuestion struct {
	ID      QuestionID                `json:"id"`
	Session SessionID                 `json:"session"`
	Turn    TurnID                    `json:"turn"`
	Entry   string                    `json:"entry"`
	Index   uint64                    `json:"index"`
	State   ConversationQuestionState `json:"state"`
}

func DefaultConversationQuestion

func DefaultConversationQuestion() ConversationQuestion

func (*ConversationQuestion) DecodeJSON

func (value *ConversationQuestion) DecodeJSON(decoder *Decoder) error

func (ConversationQuestion) MarshalJSON

func (value ConversationQuestion) MarshalJSON() ([]byte, error)

func (*ConversationQuestion) UnmarshalJSON

func (value *ConversationQuestion) UnmarshalJSON(data []byte) error

type ConversationQuestionAcceptedPlan

type ConversationQuestionAcceptedPlan struct {
	Question ConversationQuestion `json:"question"`
	Session  Session              `json:"session"`
	Turn     QueuedTurn           `json:"turn"`
}

func DefaultConversationQuestionAcceptedPlan

func DefaultConversationQuestionAcceptedPlan() ConversationQuestionAcceptedPlan

func (ConversationQuestionAcceptedPlan) MarshalJSON

func (value ConversationQuestionAcceptedPlan) MarshalJSON() ([]byte, error)

func (*ConversationQuestionAcceptedPlan) UnmarshalJSON

func (value *ConversationQuestionAcceptedPlan) UnmarshalJSON(data []byte) error

type ConversationQuestionAnswer

type ConversationQuestionAnswer struct {
	Kind string
	Data any
}

func (ConversationQuestionAnswer) MarshalJSON

func (value ConversationQuestionAnswer) MarshalJSON() ([]byte, error)

func (*ConversationQuestionAnswer) UnmarshalJSON

func (value *ConversationQuestionAnswer) UnmarshalJSON(data []byte) error

type ConversationQuestionAnswerChoicesPayload

type ConversationQuestionAnswerChoicesPayload struct {
	Selected []uint64 `json:"selected"`
	Other    *string  `json:"other"`
}

func DefaultConversationQuestionAnswerChoicesPayload

func DefaultConversationQuestionAnswerChoicesPayload() ConversationQuestionAnswerChoicesPayload

func (ConversationQuestionAnswerChoicesPayload) MarshalJSON

func (value ConversationQuestionAnswerChoicesPayload) MarshalJSON() ([]byte, error)

func (*ConversationQuestionAnswerChoicesPayload) UnmarshalJSON

func (value *ConversationQuestionAnswerChoicesPayload) UnmarshalJSON(data []byte) error

type ConversationQuestionAnswerPlanPayload

type ConversationQuestionAnswerPlanPayload struct {
	Turn TurnID `json:"turn"`
}

func DefaultConversationQuestionAnswerPlanPayload

func DefaultConversationQuestionAnswerPlanPayload() ConversationQuestionAnswerPlanPayload

func (ConversationQuestionAnswerPlanPayload) MarshalJSON

func (value ConversationQuestionAnswerPlanPayload) MarshalJSON() ([]byte, error)

func (*ConversationQuestionAnswerPlanPayload) UnmarshalJSON

func (value *ConversationQuestionAnswerPlanPayload) UnmarshalJSON(data []byte) error

type ConversationQuestionFormChoice

type ConversationQuestionFormChoice struct {
	Value string `json:"value"`
	Title string `json:"title"`
}

func DefaultConversationQuestionFormChoice

func DefaultConversationQuestionFormChoice() ConversationQuestionFormChoice

func (ConversationQuestionFormChoice) MarshalJSON

func (value ConversationQuestionFormChoice) MarshalJSON() ([]byte, error)

func (*ConversationQuestionFormChoice) UnmarshalJSON

func (value *ConversationQuestionFormChoice) UnmarshalJSON(data []byte) error

type ConversationQuestionFormField

type ConversationQuestionFormField struct {
	Name        string                        `json:"name"`
	Title       string                        `json:"title"`
	Description *string                       `json:"description"`
	Required    bool                          `json:"required"`
	Input       ConversationQuestionFormInput `json:"input"`
}

func DefaultConversationQuestionFormField

func DefaultConversationQuestionFormField() ConversationQuestionFormField

func (ConversationQuestionFormField) MarshalJSON

func (value ConversationQuestionFormField) MarshalJSON() ([]byte, error)

func (*ConversationQuestionFormField) UnmarshalJSON

func (value *ConversationQuestionFormField) UnmarshalJSON(data []byte) error

type ConversationQuestionFormInput

type ConversationQuestionFormInput struct {
	Kind string
	Data any
}

func (ConversationQuestionFormInput) MarshalJSON

func (value ConversationQuestionFormInput) MarshalJSON() ([]byte, error)

func (*ConversationQuestionFormInput) UnmarshalJSON

func (value *ConversationQuestionFormInput) UnmarshalJSON(data []byte) error

type ConversationQuestionFormInputChoicePayload

type ConversationQuestionFormInputChoicePayload struct {
	Options  []ConversationQuestionFormChoice `json:"options"`
	Multiple bool                             `json:"multiple"`
	MinItems *uint64                          `json:"min_items"`
	MaxItems *uint64                          `json:"max_items"`
}

func DefaultConversationQuestionFormInputChoicePayload

func DefaultConversationQuestionFormInputChoicePayload() ConversationQuestionFormInputChoicePayload

func (ConversationQuestionFormInputChoicePayload) MarshalJSON

func (value ConversationQuestionFormInputChoicePayload) MarshalJSON() ([]byte, error)

func (*ConversationQuestionFormInputChoicePayload) UnmarshalJSON

func (value *ConversationQuestionFormInputChoicePayload) UnmarshalJSON(data []byte) error

type ConversationQuestionFormInputNumberPayload

type ConversationQuestionFormInputNumberPayload struct {
	Integer bool         `json:"integer"`
	Minimum *json.Number `json:"minimum"`
	Maximum *json.Number `json:"maximum"`
}

func DefaultConversationQuestionFormInputNumberPayload

func DefaultConversationQuestionFormInputNumberPayload() ConversationQuestionFormInputNumberPayload

func (ConversationQuestionFormInputNumberPayload) MarshalJSON

func (value ConversationQuestionFormInputNumberPayload) MarshalJSON() ([]byte, error)

func (*ConversationQuestionFormInputNumberPayload) UnmarshalJSON

func (value *ConversationQuestionFormInputNumberPayload) UnmarshalJSON(data []byte) error

type ConversationQuestionFormInputTextPayload

type ConversationQuestionFormInputTextPayload struct {
	MinLength *uint64 `json:"min_length"`
	MaxLength *uint64 `json:"max_length"`
	Format    *string `json:"format"`
}

func DefaultConversationQuestionFormInputTextPayload

func DefaultConversationQuestionFormInputTextPayload() ConversationQuestionFormInputTextPayload

func (ConversationQuestionFormInputTextPayload) MarshalJSON

func (value ConversationQuestionFormInputTextPayload) MarshalJSON() ([]byte, error)

func (*ConversationQuestionFormInputTextPayload) UnmarshalJSON

func (value *ConversationQuestionFormInputTextPayload) UnmarshalJSON(data []byte) error

type ConversationQuestionInput

type ConversationQuestionInput struct {
	Kind string
	Data any
}

func (ConversationQuestionInput) MarshalJSON

func (value ConversationQuestionInput) MarshalJSON() ([]byte, error)

func (*ConversationQuestionInput) UnmarshalJSON

func (value *ConversationQuestionInput) UnmarshalJSON(data []byte) error

type ConversationQuestionInputChoicePayload

type ConversationQuestionInputChoicePayload struct {
	Options    []string `json:"options"`
	Multiple   bool     `json:"multiple"`
	AllowOther bool     `json:"allow_other"`
}

func DefaultConversationQuestionInputChoicePayload

func DefaultConversationQuestionInputChoicePayload() ConversationQuestionInputChoicePayload

func (ConversationQuestionInputChoicePayload) MarshalJSON

func (value ConversationQuestionInputChoicePayload) MarshalJSON() ([]byte, error)

func (*ConversationQuestionInputChoicePayload) UnmarshalJSON

func (value *ConversationQuestionInputChoicePayload) UnmarshalJSON(data []byte) error

type ConversationQuestionInputFormPayload

type ConversationQuestionInputFormPayload struct {
	Fields []ConversationQuestionFormField `json:"fields"`
}

func DefaultConversationQuestionInputFormPayload

func DefaultConversationQuestionInputFormPayload() ConversationQuestionInputFormPayload

func (ConversationQuestionInputFormPayload) MarshalJSON

func (value ConversationQuestionInputFormPayload) MarshalJSON() ([]byte, error)

func (*ConversationQuestionInputFormPayload) UnmarshalJSON

func (value *ConversationQuestionInputFormPayload) UnmarshalJSON(data []byte) error

type ConversationQuestionInputTextPayload

type ConversationQuestionInputTextPayload struct {
	Multiline bool   `json:"multiline"`
	MaxBytes  uint64 `json:"max_bytes"`
}

func DefaultConversationQuestionInputTextPayload

func DefaultConversationQuestionInputTextPayload() ConversationQuestionInputTextPayload

func (ConversationQuestionInputTextPayload) MarshalJSON

func (value ConversationQuestionInputTextPayload) MarshalJSON() ([]byte, error)

func (*ConversationQuestionInputTextPayload) UnmarshalJSON

func (value *ConversationQuestionInputTextPayload) UnmarshalJSON(data []byte) error

type ConversationQuestionInputUrlPayload

type ConversationQuestionInputUrlPayload struct {
	Url           string `json:"url"`
	ElicitationID string `json:"elicitation_id"`
}

func DefaultConversationQuestionInputUrlPayload

func DefaultConversationQuestionInputUrlPayload() ConversationQuestionInputUrlPayload

func (ConversationQuestionInputUrlPayload) MarshalJSON

func (value ConversationQuestionInputUrlPayload) MarshalJSON() ([]byte, error)

func (*ConversationQuestionInputUrlPayload) UnmarshalJSON

func (value *ConversationQuestionInputUrlPayload) UnmarshalJSON(data []byte) error

type ConversationQuestionResponse

type ConversationQuestionResponse struct {
	Kind string
	Data any
}

func (ConversationQuestionResponse) MarshalJSON

func (value ConversationQuestionResponse) MarshalJSON() ([]byte, error)

func (*ConversationQuestionResponse) UnmarshalJSON

func (value *ConversationQuestionResponse) UnmarshalJSON(data []byte) error

type ConversationQuestionResponseStartCodingPayload

type ConversationQuestionResponseStartCodingPayload struct {
	ExpectedRevision uint64            `json:"expected_revision"`
	Message          ConversationInput `json:"message"`
}

func DefaultConversationQuestionResponseStartCodingPayload

func DefaultConversationQuestionResponseStartCodingPayload() ConversationQuestionResponseStartCodingPayload

func (ConversationQuestionResponseStartCodingPayload) MarshalJSON

func (*ConversationQuestionResponseStartCodingPayload) UnmarshalJSON

func (value *ConversationQuestionResponseStartCodingPayload) UnmarshalJSON(data []byte) error

type ConversationQuestionSpec

type ConversationQuestionSpec struct {
	Prompt string                    `json:"prompt"`
	Input  ConversationQuestionInput `json:"input"`
}

func DefaultConversationQuestionSpec

func DefaultConversationQuestionSpec() ConversationQuestionSpec

func (*ConversationQuestionSpec) DecodeJSON

func (value *ConversationQuestionSpec) DecodeJSON(decoder *Decoder) error

func (ConversationQuestionSpec) MarshalJSON

func (value ConversationQuestionSpec) MarshalJSON() ([]byte, error)

func (*ConversationQuestionSpec) UnmarshalJSON

func (value *ConversationQuestionSpec) UnmarshalJSON(data []byte) error

type ConversationQuestionState

type ConversationQuestionState struct {
	Kind string
	Data any
}

func (ConversationQuestionState) MarshalJSON

func (value ConversationQuestionState) MarshalJSON() ([]byte, error)

func (*ConversationQuestionState) UnmarshalJSON

func (value *ConversationQuestionState) UnmarshalJSON(data []byte) error

type ConversationQueue

type ConversationQueue struct {
	Revision    uint64                  `json:"revision"`
	Paused      bool                    `json:"paused"`
	PauseReason *ConversationQueuePause `json:"pause_reason,omitempty"`
	Items       []ConversationPending   `json:"items"`
}

func DefaultConversationQueue

func DefaultConversationQueue() ConversationQueue

func (*ConversationQueue) DecodeJSON

func (value *ConversationQueue) DecodeJSON(decoder *Decoder) error

func (ConversationQueue) MarshalJSON

func (value ConversationQueue) MarshalJSON() ([]byte, error)

func (*ConversationQueue) UnmarshalJSON

func (value *ConversationQueue) UnmarshalJSON(data []byte) error

type ConversationQueuePause

type ConversationQueuePause string

ConversationQueuePause says why a queue is paused: the user paused it, the user stopped a turn, a turn lost its owner, or a turn ended before its input reached history.

const (
	ConversationQueuePauseUser        ConversationQueuePause = "user"
	ConversationQueuePauseStopped     ConversationQueuePause = "stopped"
	ConversationQueuePauseInterrupted ConversationQueuePause = "interrupted"
	ConversationQueuePauseUnrecorded  ConversationQueuePause = "unrecorded"
)

func (ConversationQueuePause) MarshalJSON

func (value ConversationQueuePause) MarshalJSON() ([]byte, error)

func (ConversationQueuePause) MarshalText

func (value ConversationQueuePause) MarshalText() ([]byte, error)

func (*ConversationQueuePause) UnmarshalJSON

func (value *ConversationQueuePause) UnmarshalJSON(data []byte) error

func (*ConversationQueuePause) UnmarshalText

func (value *ConversationQueuePause) UnmarshalText(data []byte) error

type ConversationQueueUpdate

type ConversationQueueUpdate struct {
	Session SessionID         `json:"session"`
	Queue   ConversationQueue `json:"queue"`
	Runs    []ConversationRun `json:"runs"`
}

func DefaultConversationQueueUpdate

func DefaultConversationQueueUpdate() ConversationQueueUpdate

func (ConversationQueueUpdate) MarshalJSON

func (value ConversationQueueUpdate) MarshalJSON() ([]byte, error)

func (*ConversationQueueUpdate) UnmarshalJSON

func (value *ConversationQueueUpdate) UnmarshalJSON(data []byte) error

type ConversationQueuedMessage

type ConversationQueuedMessage struct {
	Turn     QueuedTurn        `json:"turn"`
	Revision uint64            `json:"revision"`
	Message  ConversationInput `json:"message"`
}

func DefaultConversationQueuedMessage

func DefaultConversationQueuedMessage() ConversationQueuedMessage

func (ConversationQueuedMessage) MarshalJSON

func (value ConversationQueuedMessage) MarshalJSON() ([]byte, error)

func (*ConversationQueuedMessage) UnmarshalJSON

func (value *ConversationQueuedMessage) UnmarshalJSON(data []byte) error

type ConversationQuotaSnapshot

type ConversationQuotaSnapshot struct {
	Provider   ProviderID               `json:"provider"`
	Credential CredentialRef            `json:"credential"`
	Revision   uint64                   `json:"revision"`
	ObservedMs uint64                   `json:"observed_ms"`
	FiveHour   *ConversationQuotaWindow `json:"five_hour"`
	SevenDay   *ConversationQuotaWindow `json:"seven_day"`
}

func DefaultConversationQuotaSnapshot

func DefaultConversationQuotaSnapshot() ConversationQuotaSnapshot

func (*ConversationQuotaSnapshot) DecodeJSON

func (value *ConversationQuotaSnapshot) DecodeJSON(decoder *Decoder) error

func (ConversationQuotaSnapshot) MarshalJSON

func (value ConversationQuotaSnapshot) MarshalJSON() ([]byte, error)

func (*ConversationQuotaSnapshot) UnmarshalJSON

func (value *ConversationQuotaSnapshot) UnmarshalJSON(data []byte) error

type ConversationQuotaWindow

type ConversationQuotaWindow struct {
	UsedBasisPoints uint32  `json:"used_basis_points"`
	ResetAtMs       *uint64 `json:"reset_at_ms"`
}

func DefaultConversationQuotaWindow

func DefaultConversationQuotaWindow() ConversationQuotaWindow

func (ConversationQuotaWindow) MarshalJSON

func (value ConversationQuotaWindow) MarshalJSON() ([]byte, error)

func (*ConversationQuotaWindow) UnmarshalJSON

func (value *ConversationQuotaWindow) UnmarshalJSON(data []byte) error

type ConversationRecoveryRetry

type ConversationRecoveryRetry struct {
	Attempt   uint64                         `json:"attempt"`
	Fallback  bool                           `json:"fallback,omitempty"`
	Limit     *uint64                        `json:"limit"`
	DelayMs   *uint64                        `json:"delay_ms,omitempty"`
	Transport *ConversationRecoveryTransport `json:"transport,omitempty"`
	Status    *uint16                        `json:"status,omitempty"`
	Code      *string                        `json:"code,omitempty"`
	Error     *string                        `json:"error,omitempty"`
}

func DefaultConversationRecoveryRetry

func DefaultConversationRecoveryRetry() ConversationRecoveryRetry

func (ConversationRecoveryRetry) MarshalJSON

func (value ConversationRecoveryRetry) MarshalJSON() ([]byte, error)

func (*ConversationRecoveryRetry) UnmarshalJSON

func (value *ConversationRecoveryRetry) UnmarshalJSON(data []byte) error

type ConversationRecoveryStop

type ConversationRecoveryStop string
const (
	ConversationRecoveryStopAttemptsExhausted     ConversationRecoveryStop = "attempts_exhausted"
	ConversationRecoveryStopWaitExhausted         ConversationRecoveryStop = "wait_exhausted"
	ConversationRecoveryStopRateLimited           ConversationRecoveryStop = "rate_limited"
	ConversationRecoveryStopServerOverloaded      ConversationRecoveryStop = "server_overloaded"
	ConversationRecoveryStopInvalidRequest        ConversationRecoveryStop = "invalid_request"
	ConversationRecoveryStopInvalidPrompt         ConversationRecoveryStop = "invalid_prompt"
	ConversationRecoveryStopContextWindowExceeded ConversationRecoveryStop = "context_window_exceeded"
	ConversationRecoveryStopQuotaExceeded         ConversationRecoveryStop = "quota_exceeded"
	ConversationRecoveryStopUsageNotIncluded      ConversationRecoveryStop = "usage_not_included"
	ConversationRecoveryStopUsageLimitReached     ConversationRecoveryStop = "usage_limit_reached"
	ConversationRecoveryStopResponseIncomplete    ConversationRecoveryStop = "response_incomplete"
	ConversationRecoveryStopFlexUnavailable       ConversationRecoveryStop = "flex_unavailable"
	ConversationRecoveryStopPolicyViolation       ConversationRecoveryStop = "policy_violation"
	ConversationRecoveryStopLocalFailure          ConversationRecoveryStop = "local_failure"
)

func (ConversationRecoveryStop) MarshalJSON

func (value ConversationRecoveryStop) MarshalJSON() ([]byte, error)

func (ConversationRecoveryStop) MarshalText

func (value ConversationRecoveryStop) MarshalText() ([]byte, error)

func (*ConversationRecoveryStop) UnmarshalJSON

func (value *ConversationRecoveryStop) UnmarshalJSON(data []byte) error

func (*ConversationRecoveryStop) UnmarshalText

func (value *ConversationRecoveryStop) UnmarshalText(data []byte) error

type ConversationRecoveryTransport

type ConversationRecoveryTransport string
const (
	ConversationRecoveryTransportHttp ConversationRecoveryTransport = "http"
)

func (ConversationRecoveryTransport) MarshalJSON

func (value ConversationRecoveryTransport) MarshalJSON() ([]byte, error)

func (ConversationRecoveryTransport) MarshalText

func (value ConversationRecoveryTransport) MarshalText() ([]byte, error)

func (*ConversationRecoveryTransport) UnmarshalJSON

func (value *ConversationRecoveryTransport) UnmarshalJSON(data []byte) error

func (*ConversationRecoveryTransport) UnmarshalText

func (value *ConversationRecoveryTransport) UnmarshalText(data []byte) error

type ConversationReference

type ConversationReference struct {
	Target ConversationReferenceTarget `json:"target"`
	Label  string                      `json:"label"`
}

func DefaultConversationReference

func DefaultConversationReference() ConversationReference

func (*ConversationReference) DecodeJSON

func (value *ConversationReference) DecodeJSON(decoder *Decoder) error

func (ConversationReference) MarshalJSON

func (value ConversationReference) MarshalJSON() ([]byte, error)

func (*ConversationReference) UnmarshalJSON

func (value *ConversationReference) UnmarshalJSON(data []byte) error

type ConversationReferenceTarget

type ConversationReferenceTarget struct {
	Kind string
	Data any
}

func (ConversationReferenceTarget) MarshalJSON

func (value ConversationReferenceTarget) MarshalJSON() ([]byte, error)

func (*ConversationReferenceTarget) UnmarshalJSON

func (value *ConversationReferenceTarget) UnmarshalJSON(data []byte) error

type ConversationReferenceTargetDatabasePayload

type ConversationReferenceTargetDatabasePayload struct {
	Connection DatabaseID     `json:"connection"`
	Database   *string        `json:"database"`
	Table      *DatabaseTable `json:"table"`
}

func DefaultConversationReferenceTargetDatabasePayload

func DefaultConversationReferenceTargetDatabasePayload() ConversationReferenceTargetDatabasePayload

func (ConversationReferenceTargetDatabasePayload) MarshalJSON

func (value ConversationReferenceTargetDatabasePayload) MarshalJSON() ([]byte, error)

func (*ConversationReferenceTargetDatabasePayload) UnmarshalJSON

func (value *ConversationReferenceTargetDatabasePayload) UnmarshalJSON(data []byte) error

type ConversationReferenceTargetSkillPayload

type ConversationReferenceTargetSkillPayload struct {
	Package string `json:"package"`
	Name    string `json:"name"`
}

func DefaultConversationReferenceTargetSkillPayload

func DefaultConversationReferenceTargetSkillPayload() ConversationReferenceTargetSkillPayload

func (ConversationReferenceTargetSkillPayload) MarshalJSON

func (value ConversationReferenceTargetSkillPayload) MarshalJSON() ([]byte, error)

func (*ConversationReferenceTargetSkillPayload) UnmarshalJSON

func (value *ConversationReferenceTargetSkillPayload) UnmarshalJSON(data []byte) error

type ConversationResponsesBoundary added in v0.2.7

type ConversationResponsesBoundary struct {
	PreviousRequestID      string                             `json:"previous_request_id"`
	PreviousAttempt        uint64                             `json:"previous_attempt"`
	PreviousTurn           TurnID                             `json:"previous_turn,omitzero"`
	PreviousCachedInput    *uint64                            `json:"previous_cached_input,omitempty"`
	InstructionsEqual      bool                               `json:"instructions_equal"`
	InstructionsBytes      *ConversationResponsesFieldBytes   `json:"instructions_bytes,omitempty"`
	ToolsEqual             bool                               `json:"tools_equal"`
	CacheOptionsEqual      bool                               `json:"cache_options_equal"`
	OtherFieldsEqual       bool                               `json:"other_fields_equal"`
	SharedInputItems       uint64                             `json:"shared_input_items"`
	SharedInputBytes       *uint64                            `json:"shared_input_bytes,omitempty"`
	PreviousInputItems     uint64                             `json:"previous_input_items"`
	InputItems             uint64                             `json:"input_items"`
	InputChanges           []ConversationResponsesInputChange `json:"input_changes,omitempty"`
	InputReorderIncomplete bool                               `json:"input_reorder_incomplete,omitempty"`
}

ConversationResponsesBoundary compares the serialized bodies of adjacent observed Responses attempts. PreviousTurn is set for a cross-turn comparison.

type ConversationResponsesFieldBytes added in v0.2.7

type ConversationResponsesFieldBytes struct {
	Previous uint64 `json:"previous"`
	Current  uint64 `json:"current"`
}

ConversationResponsesFieldBytes counts the JSON value bytes on each side of a change. A missing field has zero bytes.

type ConversationResponsesInputChange added in v0.2.7

type ConversationResponsesInputChange struct {
	Kind      ConversationResponsesInputKind `json:"kind"`
	Added     ConversationResponsesInputSize `json:"added,omitzero"`
	Removed   ConversationResponsesInputSize `json:"removed,omitzero"`
	Reordered ConversationResponsesInputSize `json:"reordered,omitzero"`
}

Added and Removed count unmatched occurrences of exact items. Reordered counts retained occurrences whose relative order changed with another retained item. InputReorderIncomplete indicates duplicate counts prevented complete matching.

type ConversationResponsesInputKind added in v0.2.7

type ConversationResponsesInputKind string
const (
	ConversationResponsesInputUser             ConversationResponsesInputKind = "user"
	ConversationResponsesInputAssistant        ConversationResponsesInputKind = "assistant"
	ConversationResponsesInputToolCall         ConversationResponsesInputKind = "tool_call"
	ConversationResponsesInputToolOutput       ConversationResponsesInputKind = "tool_output"
	ConversationResponsesInputDeveloperContext ConversationResponsesInputKind = "developer_context"
	ConversationResponsesInputReasoning        ConversationResponsesInputKind = "reasoning"
	ConversationResponsesInputOther            ConversationResponsesInputKind = "other"
)

type ConversationResponsesInputSize added in v0.2.7

type ConversationResponsesInputSize struct {
	Items uint64 `json:"items"`
	Bytes uint64 `json:"bytes"`
}

ConversationResponsesInputSize sums complete serialized items, including JSON quoting and escapes, excluding array delimiters and inter-item whitespace.

type ConversationRewind

type ConversationRewind struct {
	Session  SessionID `json:"session"`
	Revision uint64    `json:"revision"`
	Through  *TurnID   `json:"through"`
	Backup   *Session  `json:"backup,omitempty"`
}

func DefaultConversationRewind

func DefaultConversationRewind() ConversationRewind

func (ConversationRewind) MarshalJSON

func (value ConversationRewind) MarshalJSON() ([]byte, error)

func (*ConversationRewind) UnmarshalJSON

func (value *ConversationRewind) UnmarshalJSON(data []byte) error

type ConversationRun

type ConversationRun struct {
	Worktree     WorktreeID                     `json:"worktree"`
	Turn         TurnID                         `json:"turn"`
	Kind         ConversationRunKind            `json:"kind"`
	Session      SessionID                      `json:"session"`
	Sequence     uint64                         `json:"sequence"`
	Revision     uint64                         `json:"revision"`
	Status       ConversationStatus             `json:"status"`
	Error        *Fault                         `json:"error"`
	StartedMs    *int64                         `json:"started_ms"`
	FinishedMs   *int64                         `json:"finished_ms"`
	Origin       *SessionID                     `json:"origin,omitempty"`
	Continuation *ConversationContinuation      `json:"continuation,omitempty"`
	Guidance     *TurnID                        `json:"guidance,omitempty"`
	Joined       *TurnID                        `json:"joined,omitempty"`
	Notice       bool                           `json:"notice"`
	Notices      []ConversationBackgroundNotice `json:"notices"`
	Input        *ConversationSentInput         `json:"input,omitempty"`
	Waiting      *ConversationRunWaiting        `json:"waiting,omitempty"`
}

func DefaultConversationRun

func DefaultConversationRun() ConversationRun

func (*ConversationRun) DecodeJSON

func (value *ConversationRun) DecodeJSON(decoder *Decoder) error

func (ConversationRun) MarshalJSON

func (value ConversationRun) MarshalJSON() ([]byte, error)

func (*ConversationRun) UnmarshalJSON

func (value *ConversationRun) UnmarshalJSON(data []byte) error

type ConversationRunKind

type ConversationRunKind string
const (
	ConversationRunKindTask       ConversationRunKind = "task"
	ConversationRunKindCompaction ConversationRunKind = "compaction"
)

func (*ConversationRunKind) DecodeJSON

func (value *ConversationRunKind) DecodeJSON(decoder *Decoder) error

func (ConversationRunKind) MarshalJSON

func (value ConversationRunKind) MarshalJSON() ([]byte, error)

func (ConversationRunKind) MarshalText

func (value ConversationRunKind) MarshalText() ([]byte, error)

func (*ConversationRunKind) UnmarshalJSON

func (value *ConversationRunKind) UnmarshalJSON(data []byte) error

func (*ConversationRunKind) UnmarshalText

func (value *ConversationRunKind) UnmarshalText(data []byte) error

type ConversationRunWaiting

type ConversationRunWaiting struct {
	Kind       string        `json:"kind"`
	Credential CredentialRef `json:"credential"`
	Provider   ProviderID    `json:"provider,omitempty"`
	Attempt    RequestID     `json:"attempt,omitempty"`
	// These opaque fingerprints preserve the account and authentication target
	// observed before sign-in can replace the controller's current account.
	AccountIdentity      string `json:"account_identity,omitempty"`
	AuthenticationTarget string `json:"authentication_target,omitempty"`
}

type ConversationRunsBackground

type ConversationRunsBackground struct {
	// Running is work that starts a notice turn when it ends.
	Running uint32 `json:"running"`
	// Pending is ended results a notice turn has reserved or will deliver.
	// Results that only the next user or continuation turn takes (stopped,
	// held or recovered ones) are not counted.
	Pending uint32 `json:"pending"`
}

ConversationRunsBackground counts the session's background work as an automatic loop waits on it.

type ConversationRunsPage

type ConversationRunsPage struct {
	Session       SessionID                 `json:"session"`
	Revision      uint64                    `json:"revision"`
	Runs          []ConversationRunsSummary `json:"runs"`
	NextBefore    *TurnID                   `json:"next_before"`
	QueueRevision uint64                    `json:"queue_revision"`
	// Background is absent from a Node that does not state it.
	Background *ConversationRunsBackground `json:"background,omitempty"`
}

func DefaultConversationRunsPage

func DefaultConversationRunsPage() ConversationRunsPage

func (ConversationRunsPage) MarshalJSON

func (value ConversationRunsPage) MarshalJSON() ([]byte, error)

func (*ConversationRunsPage) UnmarshalJSON

func (value *ConversationRunsPage) UnmarshalJSON(data []byte) error

type ConversationRunsSummary

type ConversationRunsSummary struct {
	Turn      TurnID             `json:"turn"`
	Sequence  uint64             `json:"sequence"`
	Status    ConversationStatus `json:"status"`
	Origin    *SessionID         `json:"origin"`
	ErrorCode *ErrorCode         `json:"error_code"`
	// Recovered is set for a run that ended before the answering Node
	// started: whatever was to follow its end in that process, a callback or
	// an automatic turn, did not survive. Absent otherwise.
	Recovered bool `json:"recovered,omitempty"`
	// ContextOverflow is set for a run that failed because its request
	// exceeds the model's context window (the model_request detail of its
	// fault says so). Absent otherwise.
	ContextOverflow bool `json:"context_overflow,omitempty"`
}

func DefaultConversationRunsSummary

func DefaultConversationRunsSummary() ConversationRunsSummary

func (ConversationRunsSummary) MarshalJSON

func (value ConversationRunsSummary) MarshalJSON() ([]byte, error)

func (*ConversationRunsSummary) UnmarshalJSON

func (value *ConversationRunsSummary) UnmarshalJSON(data []byte) error

type ConversationSearchMatch

type ConversationSearchMatch struct {
	Turn         TurnID        `json:"turn"`
	TurnSequence uint64        `json:"turn_sequence"`
	Entry        string        `json:"entry"`
	Sequence     uint64        `json:"sequence"`
	Part         uint64        `json:"part"`
	Author       string        `json:"author"`
	Snippet      string        `json:"snippet"`
	Highlight    Range[uint64] `json:"highlight"`
}

func DefaultConversationSearchMatch

func DefaultConversationSearchMatch() ConversationSearchMatch

func (ConversationSearchMatch) MarshalJSON

func (value ConversationSearchMatch) MarshalJSON() ([]byte, error)

func (*ConversationSearchMatch) UnmarshalJSON

func (value *ConversationSearchMatch) UnmarshalJSON(data []byte) error

type ConversationSearchPage

type ConversationSearchPage struct {
	Session    SessionID                 `json:"session"`
	Revision   uint64                    `json:"revision"`
	Matches    []ConversationSearchMatch `json:"matches"`
	NextBefore *uint64                   `json:"next_before"`
}

func DefaultConversationSearchPage

func DefaultConversationSearchPage() ConversationSearchPage

func (ConversationSearchPage) MarshalJSON

func (value ConversationSearchPage) MarshalJSON() ([]byte, error)

func (*ConversationSearchPage) UnmarshalJSON

func (value *ConversationSearchPage) UnmarshalJSON(data []byte) error

type ConversationSearchQuery

type ConversationSearchQuery struct {
	Text          string  `json:"text"`
	CaseSensitive bool    `json:"case_sensitive"`
	Before        *uint64 `json:"before"`
	Limit         uint16  `json:"limit"`
}

func DefaultConversationSearchQuery

func DefaultConversationSearchQuery() ConversationSearchQuery

func (ConversationSearchQuery) MarshalJSON

func (value ConversationSearchQuery) MarshalJSON() ([]byte, error)

func (*ConversationSearchQuery) UnmarshalJSON

func (value *ConversationSearchQuery) UnmarshalJSON(data []byte) error

type ConversationSentInput

type ConversationSentInput struct {
	Message     ConversationInput `json:"message"`
	Attachments []Attachment      `json:"attachments"`
}

func DefaultConversationSentInput

func DefaultConversationSentInput() ConversationSentInput

func (*ConversationSentInput) DecodeJSON

func (value *ConversationSentInput) DecodeJSON(decoder *Decoder) error

func (ConversationSentInput) MarshalJSON

func (value ConversationSentInput) MarshalJSON() ([]byte, error)

func (*ConversationSentInput) UnmarshalJSON

func (value *ConversationSentInput) UnmarshalJSON(data []byte) error

type ConversationSnapshot

type ConversationSnapshot struct {
	Node       NodeID                  `json:"node"`
	Sequence   uint64                  `json:"sequence"`
	Page       ConversationPage        `json:"page"`
	Missing    []TurnID                `json:"missing"`
	Drafts     []ConversationDraft     `json:"drafts"`
	Statistics *ConversationStatistics `json:"statistics"`
	Artifacts  ArtifactPage            `json:"artifacts"`
}

func DefaultConversationSnapshot

func DefaultConversationSnapshot() ConversationSnapshot

func (ConversationSnapshot) MarshalJSON

func (value ConversationSnapshot) MarshalJSON() ([]byte, error)

func (*ConversationSnapshot) UnmarshalJSON

func (value *ConversationSnapshot) UnmarshalJSON(data []byte) error

type ConversationStart

type ConversationStart struct {
	Project     *ProjectID               `json:"project"`
	Worktree    *WorktreeID              `json:"worktree"`
	Config      *SessionConfig           `json:"config"`
	Title       string                   `json:"title"`
	Message     ConversationInput        `json:"message"`
	Execution   ConversationExecution    `json:"execution"`
	Association *ConversationAssociation `json:"association,omitempty"`
	Team        *TeamSelection           `json:"team,omitempty"`
	Models      map[RoleID]RoleModel     `json:"models,omitempty"`
	// UseExplicitConfig keeps a native controller's selected lead configuration
	// when the team also has a default lead. Config is required when set.
	UseExplicitConfig bool `json:"use_explicit_config,omitempty"`
}

func DefaultConversationStart

func DefaultConversationStart() ConversationStart

func (ConversationStart) MarshalJSON

func (value ConversationStart) MarshalJSON() ([]byte, error)

func (*ConversationStart) UnmarshalJSON

func (value *ConversationStart) UnmarshalJSON(data []byte) error

type ConversationStatistics

type ConversationStatistics struct {
	Observations       ConversationObservationSummary `json:"observations"`
	Turns              uint64                         `json:"turns"`
	Responses          uint64                         `json:"responses"`
	Usage              *ConversationUsage             `json:"usage"`
	ContextTokens      *uint64                        `json:"context_tokens"`
	ContextEstimate    *uint64                        `json:"context_estimate"`
	ContextLimit       *uint32                        `json:"context_limit"`
	ContextModel       *string                        `json:"context_model"`
	ContextTimestampMs *int64                         `json:"context_timestamp_ms"`
	Budget             *ConversationCompactionBudget  `json:"budget"`
	LastCompaction     *ConversationCompactionRecord  `json:"last_compaction"`
	FirstTokenUs       *uint64                        `json:"first_token_us"`
	Cost               *UsageCost                     `json:"cost"`
	Generation         *UsageGeneration               `json:"generation"`
	Throughput         *UsageGeneration               `json:"throughput,omitempty"`
	Delegated          UsageMetrics                   `json:"delegated"`

	// IncompleteTokenResponses counts own responses left out of the Usage subtotal.
	IncompleteTokenResponses uint64 `json:"incomplete_token_responses,omitempty"`
}

func DefaultConversationStatistics

func DefaultConversationStatistics() ConversationStatistics

func (ConversationStatistics) MarshalJSON

func (value ConversationStatistics) MarshalJSON() ([]byte, error)

func (*ConversationStatistics) UnmarshalJSON

func (value *ConversationStatistics) UnmarshalJSON(data []byte) error

type ConversationStatus

type ConversationStatus string
const (
	ConversationStatusQueued      ConversationStatus = "queued"
	ConversationStatusRunning     ConversationStatus = "running"
	ConversationStatusStopping    ConversationStatus = "stopping"
	ConversationStatusCompleted   ConversationStatus = "completed"
	ConversationStatusContinued   ConversationStatus = "continued"
	ConversationStatusCancelled   ConversationStatus = "cancelled"
	ConversationStatusInterrupted ConversationStatus = "interrupted"
	ConversationStatusFailed      ConversationStatus = "failed"
)

func (*ConversationStatus) DecodeJSON

func (value *ConversationStatus) DecodeJSON(decoder *Decoder) error

func (ConversationStatus) MarshalJSON

func (value ConversationStatus) MarshalJSON() ([]byte, error)

func (ConversationStatus) MarshalText

func (value ConversationStatus) MarshalText() ([]byte, error)

func (*ConversationStatus) UnmarshalJSON

func (value *ConversationStatus) UnmarshalJSON(data []byte) error

func (*ConversationStatus) UnmarshalText

func (value *ConversationStatus) UnmarshalText(data []byte) error

type ConversationTurnHistory

type ConversationTurnHistory struct {
	Sequence   uint64                 `json:"sequence"`
	Revision   uint64                 `json:"revision"`
	Run        ConversationRun        `json:"run"`
	Entries    []ConversationEntry    `json:"entries"`
	Approvals  []ConversationApproval `json:"approvals"`
	Questions  []ConversationQuestion `json:"questions"`
	Children   []ConversationChild    `json:"children"`
	NextBefore *uint64                `json:"next_before"`
}

func DefaultConversationTurnHistory

func DefaultConversationTurnHistory() ConversationTurnHistory

func (ConversationTurnHistory) MarshalJSON

func (value ConversationTurnHistory) MarshalJSON() ([]byte, error)

func (*ConversationTurnHistory) UnmarshalJSON

func (value *ConversationTurnHistory) UnmarshalJSON(data []byte) error

type ConversationUsage

type ConversationUsage struct {
	Input       uint64 `json:"input"`
	Output      uint64 `json:"output"`
	CachedInput uint64 `json:"cached_input"`
	Reasoning   uint64 `json:"reasoning"`
}

func DefaultConversationUsage

func DefaultConversationUsage() ConversationUsage

func (*ConversationUsage) DecodeGeneration added in v0.2.3

func (tokens *ConversationUsage) DecodeGeneration(elapsed, first *uint64, reasoningStreamed bool) *UsageGeneration

DecodeGeneration pairs measured output counts with time after first output. When supplied, hidden reasoning tokens precede that window. Providers that omit the breakdown contribute their reported completion count.

func (*ConversationUsage) DecodeJSON

func (value *ConversationUsage) DecodeJSON(decoder *Decoder) error

func (ConversationUsage) MarshalJSON

func (value ConversationUsage) MarshalJSON() ([]byte, error)

func (*ConversationUsage) UnmarshalJSON

func (value *ConversationUsage) UnmarshalJSON(data []byte) error

type Credential

type Credential struct {
	ID             CredentialID   `json:"id"`
	Provider       ProviderID     `json:"provider"`
	Authentication Authentication `json:"authentication"`
	AccountLabel   *string        `json:"account_label,omitempty"`
	Revision       uint64         `json:"revision"`
	ExpiresAtMs    *uint64        `json:"expires_at_ms"`
	Revoked        bool           `json:"revoked"`
}

func DefaultCredential

func DefaultCredential() Credential

func (Credential) MarshalJSON

func (value Credential) MarshalJSON() ([]byte, error)

func (*Credential) UnmarshalJSON

func (value *Credential) UnmarshalJSON(data []byte) error

type CredentialID

type CredentialID [16]byte

func NewCredentialID

func NewCredentialID() CredentialID

func ParseCredentialID

func ParseCredentialID(value string) (CredentialID, error)

func (*CredentialID) DecodeJSON

func (identity *CredentialID) DecodeJSON(decoder *Decoder) error

func (CredentialID) MarshalJSON

func (identity CredentialID) MarshalJSON() ([]byte, error)

func (CredentialID) MarshalText

func (identity CredentialID) MarshalText() ([]byte, error)

func (CredentialID) String

func (identity CredentialID) String() string

func (*CredentialID) UnmarshalJSON

func (identity *CredentialID) UnmarshalJSON(data []byte) error

func (*CredentialID) UnmarshalText

func (identity *CredentialID) UnmarshalText(data []byte) error

type CredentialRef

type CredentialRef struct {
	Node NodeID       `json:"node"`
	ID   CredentialID `json:"id"`
}

func DefaultCredentialRef

func DefaultCredentialRef() CredentialRef

func (*CredentialRef) DecodeJSON

func (value *CredentialRef) DecodeJSON(decoder *Decoder) error

func (CredentialRef) MarshalJSON

func (value CredentialRef) MarshalJSON() ([]byte, error)

func (*CredentialRef) UnmarshalJSON

func (value *CredentialRef) UnmarshalJSON(data []byte) error

type DatabaseCatalog

type DatabaseCatalog struct {
	Kind string
	Data any
}

func (DatabaseCatalog) MarshalJSON

func (value DatabaseCatalog) MarshalJSON() ([]byte, error)

func (*DatabaseCatalog) UnmarshalJSON

func (value *DatabaseCatalog) UnmarshalJSON(data []byte) error

type DatabaseCatalogTablesPayload

type DatabaseCatalogTablesPayload struct {
	Database string          `json:"database"`
	Tables   []DatabaseTable `json:"tables"`
}

func DefaultDatabaseCatalogTablesPayload

func DefaultDatabaseCatalogTablesPayload() DatabaseCatalogTablesPayload

func (DatabaseCatalogTablesPayload) MarshalJSON

func (value DatabaseCatalogTablesPayload) MarshalJSON() ([]byte, error)

func (*DatabaseCatalogTablesPayload) UnmarshalJSON

func (value *DatabaseCatalogTablesPayload) UnmarshalJSON(data []byte) error

type DatabaseConnection

type DatabaseConnection struct {
	Kind string
	Data any
}

func (DatabaseConnection) MarshalJSON

func (value DatabaseConnection) MarshalJSON() ([]byte, error)

func (*DatabaseConnection) UnmarshalJSON

func (value *DatabaseConnection) UnmarshalJSON(data []byte) error

type DatabaseConnectionNetworkPayload

type DatabaseConnectionNetworkPayload struct {
	Engine   DatabaseEngine `json:"engine"`
	Host     string         `json:"host"`
	Port     uint16         `json:"port"`
	Database string         `json:"database"`
	Username string         `json:"username"`
	Tls      DatabaseTls    `json:"tls"`
}

func DefaultDatabaseConnectionNetworkPayload

func DefaultDatabaseConnectionNetworkPayload() DatabaseConnectionNetworkPayload

func (DatabaseConnectionNetworkPayload) MarshalJSON

func (value DatabaseConnectionNetworkPayload) MarshalJSON() ([]byte, error)

func (*DatabaseConnectionNetworkPayload) UnmarshalJSON

func (value *DatabaseConnectionNetworkPayload) UnmarshalJSON(data []byte) error

type DatabaseConnectionSocketPayload

type DatabaseConnectionSocketPayload struct {
	Engine   DatabaseEngine `json:"engine"`
	Path     string         `json:"path"`
	Port     uint16         `json:"port"`
	Database string         `json:"database"`
	Username string         `json:"username"`
}

func DefaultDatabaseConnectionSocketPayload

func DefaultDatabaseConnectionSocketPayload() DatabaseConnectionSocketPayload

func (DatabaseConnectionSocketPayload) MarshalJSON

func (value DatabaseConnectionSocketPayload) MarshalJSON() ([]byte, error)

func (*DatabaseConnectionSocketPayload) UnmarshalJSON

func (value *DatabaseConnectionSocketPayload) UnmarshalJSON(data []byte) error

type DatabaseConnectionSqlitePayload

type DatabaseConnectionSqlitePayload struct {
	Path string `json:"path"`
}

func DefaultDatabaseConnectionSqlitePayload

func DefaultDatabaseConnectionSqlitePayload() DatabaseConnectionSqlitePayload

func (DatabaseConnectionSqlitePayload) MarshalJSON

func (value DatabaseConnectionSqlitePayload) MarshalJSON() ([]byte, error)

func (*DatabaseConnectionSqlitePayload) UnmarshalJSON

func (value *DatabaseConnectionSqlitePayload) UnmarshalJSON(data []byte) error

type DatabaseConnectionSshPayload

type DatabaseConnectionSshPayload struct {
	Engine   DatabaseEngine `json:"engine"`
	Host     string         `json:"host"`
	Port     uint16         `json:"port"`
	Database string         `json:"database"`
	Username string         `json:"username"`
	Tls      DatabaseTls    `json:"tls"`
	Ssh      SshID          `json:"ssh"`
}

func DefaultDatabaseConnectionSshPayload

func DefaultDatabaseConnectionSshPayload() DatabaseConnectionSshPayload

func (DatabaseConnectionSshPayload) MarshalJSON

func (value DatabaseConnectionSshPayload) MarshalJSON() ([]byte, error)

func (*DatabaseConnectionSshPayload) UnmarshalJSON

func (value *DatabaseConnectionSshPayload) UnmarshalJSON(data []byte) error

type DatabaseEngine

type DatabaseEngine string
const (
	DatabaseEngineSqlite   DatabaseEngine = "sqlite"
	DatabaseEngineMysql    DatabaseEngine = "mysql"
	DatabaseEnginePostgres DatabaseEngine = "postgres"
)

func (DatabaseEngine) MarshalJSON

func (value DatabaseEngine) MarshalJSON() ([]byte, error)

func (DatabaseEngine) MarshalText

func (value DatabaseEngine) MarshalText() ([]byte, error)

func (*DatabaseEngine) UnmarshalJSON

func (value *DatabaseEngine) UnmarshalJSON(data []byte) error

func (*DatabaseEngine) UnmarshalText

func (value *DatabaseEngine) UnmarshalText(data []byte) error

type DatabaseID

type DatabaseID [16]byte

func NewDatabaseID

func NewDatabaseID() DatabaseID

func ParseDatabaseID

func ParseDatabaseID(value string) (DatabaseID, error)

func (*DatabaseID) DecodeJSON

func (identity *DatabaseID) DecodeJSON(decoder *Decoder) error

func (DatabaseID) MarshalJSON

func (identity DatabaseID) MarshalJSON() ([]byte, error)

func (DatabaseID) MarshalText

func (identity DatabaseID) MarshalText() ([]byte, error)

func (DatabaseID) String

func (identity DatabaseID) String() string

func (*DatabaseID) UnmarshalJSON

func (identity *DatabaseID) UnmarshalJSON(data []byte) error

func (*DatabaseID) UnmarshalText

func (identity *DatabaseID) UnmarshalText(data []byte) error

type DatabaseOutcome

type DatabaseOutcome struct {
	Kind string
	Data any
}

func (DatabaseOutcome) MarshalJSON

func (value DatabaseOutcome) MarshalJSON() ([]byte, error)

func (*DatabaseOutcome) UnmarshalJSON

func (value *DatabaseOutcome) UnmarshalJSON(data []byte) error

type DatabaseProfile

type DatabaseProfile struct {
	Source     *ConfigurationOrigin `json:"source,omitempty"`
	Sharing    *ConnectionSharing   `json:"sharing,omitempty"`
	ID         DatabaseID           `json:"id"`
	Revision   uint64               `json:"revision"`
	Name       string               `json:"name"`
	Connection DatabaseConnection   `json:"connection"`
	ReadOnly   bool                 `json:"read_only"`
	Location   *HostPath            `json:"location,omitempty"`
}

func DefaultDatabaseProfile

func DefaultDatabaseProfile() DatabaseProfile

func (*DatabaseProfile) DecodeJSON

func (value *DatabaseProfile) DecodeJSON(decoder *Decoder) error

func (DatabaseProfile) MarshalJSON

func (value DatabaseProfile) MarshalJSON() ([]byte, error)

func (*DatabaseProfile) UnmarshalJSON

func (value *DatabaseProfile) UnmarshalJSON(data []byte) error

type DatabaseResultSet

type DatabaseResultSet struct {
	Columns      []string          `json:"columns"`
	Rows         [][]DatabaseValue `json:"rows"`
	AffectedRows uint64            `json:"affected_rows"`
	Truncated    bool              `json:"truncated"`
}

func DefaultDatabaseResultSet

func DefaultDatabaseResultSet() DatabaseResultSet

func (DatabaseResultSet) MarshalJSON

func (value DatabaseResultSet) MarshalJSON() ([]byte, error)

func (*DatabaseResultSet) UnmarshalJSON

func (value *DatabaseResultSet) UnmarshalJSON(data []byte) error

type DatabaseServer

type DatabaseServer struct {
	Host     string      `json:"host"`
	Port     uint16      `json:"port"`
	Database string      `json:"database"`
	Username string      `json:"username"`
	Tls      DatabaseTls `json:"tls"`
	Socket   *string     `json:"socket"`
}

func DefaultDatabaseServer

func DefaultDatabaseServer() DatabaseServer

func (DatabaseServer) MarshalJSON

func (value DatabaseServer) MarshalJSON() ([]byte, error)

func (*DatabaseServer) UnmarshalJSON

func (value *DatabaseServer) UnmarshalJSON(data []byte) error

type DatabaseTable

type DatabaseTable struct {
	Schema string `json:"schema"`
	Name   string `json:"name"`
}

func DefaultDatabaseTable

func DefaultDatabaseTable() DatabaseTable

func (DatabaseTable) MarshalJSON

func (value DatabaseTable) MarshalJSON() ([]byte, error)

func (*DatabaseTable) UnmarshalJSON

func (value *DatabaseTable) UnmarshalJSON(data []byte) error

type DatabaseTls

type DatabaseTls string
const (
	DatabaseTlsDisable DatabaseTls = "disable"
	DatabaseTlsPrefer  DatabaseTls = "prefer"
	DatabaseTlsRequire DatabaseTls = "require"
)

func (DatabaseTls) MarshalJSON

func (value DatabaseTls) MarshalJSON() ([]byte, error)

func (DatabaseTls) MarshalText

func (value DatabaseTls) MarshalText() ([]byte, error)

func (*DatabaseTls) UnmarshalJSON

func (value *DatabaseTls) UnmarshalJSON(data []byte) error

func (*DatabaseTls) UnmarshalText

func (value *DatabaseTls) UnmarshalText(data []byte) error

type DatabaseValue

type DatabaseValue struct {
	Kind string
	Data any
}

func (DatabaseValue) MarshalJSON

func (value DatabaseValue) MarshalJSON() ([]byte, error)

func (*DatabaseValue) UnmarshalJSON

func (value *DatabaseValue) UnmarshalJSON(data []byte) error

type DecisionAnswer

type DecisionAnswer struct {
	Kind string
	Data any
}

func (DecisionAnswer) MarshalJSON

func (value DecisionAnswer) MarshalJSON() ([]byte, error)

func (*DecisionAnswer) UnmarshalJSON

func (value *DecisionAnswer) UnmarshalJSON(data []byte) error

type DecisionAnswerChoicePayload

type DecisionAnswerChoicePayload struct {
	Choice        string             `json:"choice"`
	Probabilities map[string]float32 `json:"probabilities"`
	Confidence    float32            `json:"confidence"`
}

func DefaultDecisionAnswerChoicePayload

func DefaultDecisionAnswerChoicePayload() DecisionAnswerChoicePayload

func (DecisionAnswerChoicePayload) MarshalJSON

func (value DecisionAnswerChoicePayload) MarshalJSON() ([]byte, error)

func (*DecisionAnswerChoicePayload) UnmarshalJSON

func (value *DecisionAnswerChoicePayload) UnmarshalJSON(data []byte) error

type DecisionAnswerNoulPayload

type DecisionAnswerNoulPayload struct {
	Noul float32 `json:"noul"`
}

func DefaultDecisionAnswerNoulPayload

func DefaultDecisionAnswerNoulPayload() DecisionAnswerNoulPayload

func (DecisionAnswerNoulPayload) MarshalJSON

func (value DecisionAnswerNoulPayload) MarshalJSON() ([]byte, error)

func (*DecisionAnswerNoulPayload) UnmarshalJSON

func (value *DecisionAnswerNoulPayload) UnmarshalJSON(data []byte) error

type DecisionAnswerScorePayload

type DecisionAnswerScorePayload struct {
	Score         float32   `json:"score"`
	Legend        []string  `json:"legend"`
	Probabilities []float32 `json:"probabilities"`
	Confidence    float32   `json:"confidence"`
}

func DefaultDecisionAnswerScorePayload

func DefaultDecisionAnswerScorePayload() DecisionAnswerScorePayload

func (DecisionAnswerScorePayload) MarshalJSON

func (value DecisionAnswerScorePayload) MarshalJSON() ([]byte, error)

func (*DecisionAnswerScorePayload) UnmarshalJSON

func (value *DecisionAnswerScorePayload) UnmarshalJSON(data []byte) error

type DecisionQuestion

type DecisionQuestion struct {
	Kind string
	Data any
}

func (DecisionQuestion) MarshalJSON

func (value DecisionQuestion) MarshalJSON() ([]byte, error)

func (*DecisionQuestion) UnmarshalJSON

func (value *DecisionQuestion) UnmarshalJSON(data []byte) error

type DecisionQuestionChoicePayload

type DecisionQuestionChoicePayload struct {
	Instructions string             `json:"instructions"`
	Criteria     map[string]*string `json:"criteria"`
}

func DefaultDecisionQuestionChoicePayload

func DefaultDecisionQuestionChoicePayload() DecisionQuestionChoicePayload

func (DecisionQuestionChoicePayload) MarshalJSON

func (value DecisionQuestionChoicePayload) MarshalJSON() ([]byte, error)

func (*DecisionQuestionChoicePayload) UnmarshalJSON

func (value *DecisionQuestionChoicePayload) UnmarshalJSON(data []byte) error

type DecisionQuestionNoulPayload

type DecisionQuestionNoulPayload struct {
	Instructions string            `json:"instructions"`
	Criteria     map[string]string `json:"criteria,omitempty"`
}

func DefaultDecisionQuestionNoulPayload

func DefaultDecisionQuestionNoulPayload() DecisionQuestionNoulPayload

func (DecisionQuestionNoulPayload) MarshalJSON

func (value DecisionQuestionNoulPayload) MarshalJSON() ([]byte, error)

func (*DecisionQuestionNoulPayload) UnmarshalJSON

func (value *DecisionQuestionNoulPayload) UnmarshalJSON(data []byte) error

type DecisionQuestionScorePayload

type DecisionQuestionScorePayload struct {
	Instructions string   `json:"instructions"`
	Criteria     []string `json:"criteria"`
}

func DefaultDecisionQuestionScorePayload

func DefaultDecisionQuestionScorePayload() DecisionQuestionScorePayload

func (DecisionQuestionScorePayload) MarshalJSON

func (value DecisionQuestionScorePayload) MarshalJSON() ([]byte, error)

func (*DecisionQuestionScorePayload) UnmarshalJSON

func (value *DecisionQuestionScorePayload) UnmarshalJSON(data []byte) error

type DecisionRequest

type DecisionRequest struct {
	Model     *string                     `json:"model,omitempty"`
	State     string                      `json:"state"`
	Questions map[string]DecisionQuestion `json:"questions"`
}

func DefaultDecisionRequest

func DefaultDecisionRequest() DecisionRequest

func (DecisionRequest) MarshalJSON

func (value DecisionRequest) MarshalJSON() ([]byte, error)

func (*DecisionRequest) UnmarshalJSON

func (value *DecisionRequest) UnmarshalJSON(data []byte) error

type DecisionResponse

type DecisionResponse struct {
	Answers map[string]DecisionAnswer `json:"answers"`
	Usage   DecisionUsage             `json:"usage"`
}

func DefaultDecisionResponse

func DefaultDecisionResponse() DecisionResponse

func (DecisionResponse) MarshalJSON

func (value DecisionResponse) MarshalJSON() ([]byte, error)

func (*DecisionResponse) UnmarshalJSON

func (value *DecisionResponse) UnmarshalJSON(data []byte) error

type DecisionUsage

type DecisionUsage struct {
	InputTokens  uint64 `json:"input_tokens"`
	OutputTokens uint64 `json:"output_tokens"`
}

func DefaultDecisionUsage

func DefaultDecisionUsage() DecisionUsage

func (DecisionUsage) MarshalJSON

func (value DecisionUsage) MarshalJSON() ([]byte, error)

func (*DecisionUsage) UnmarshalJSON

func (value *DecisionUsage) UnmarshalJSON(data []byte) error

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

Decoder reads one JSON document in a single pass for the typed decoders of this package. A type that implements DecodeJSON is decoded in place from the shared token stream; every other type receives the bytes of its own value.

The accepted inputs and resulting values are those of the reflective helpers this replaces: required members, no duplicate known member, unknown members rejected only where denied, null only for optional, raw and unit values, and raw values retained in the compact HTML-escaped form produced by encoding/json. A decode of a peer's bytes relaxes this by its Tolerance.

func (*Decoder) Object

func (d *Decoder) Object(target any, required []string, denyUnknown bool) error

Object decodes one JSON object into the struct target points to. Members named in required must be present, and non-null when their field is a pointer. Fields keep their value when their member is absent.

func (*Decoder) String

func (d *Decoder) String() (string, error)

String reads a JSON string. A null yields the empty string, which is what encoding/json leaves in a string it decodes null into.

func (*Decoder) Tagged

func (d *Decoder) Tagged(base any, required []string, tag string, variants map[string]func() any) (string, any, error)

Tagged decodes one object into the struct base points to and, from the same members without the tag, into the variant the tag names: DecodeObject without denyUnknown followed by an internally tagged UnmarshalUnion.

func (*Decoder) Union

func (d *Decoder) Union(tag, content string, variants map[string]func() any, denyUnknown bool) (string, any, error)

Union decodes one tagged union; see UnmarshalUnion.

func (*Decoder) Value

func (d *Decoder) Value(target any) error

Value decodes the next value into what target points to, by its Go type.

type Defaults

type Defaults struct {
	Source   *ConfigurationOrigin `json:"source,omitempty"`
	Revision uint64               `json:"revision"`
	Config   *SessionConfig       `json:"config"`
}

func DefaultDefaults

func DefaultDefaults() Defaults

func (*Defaults) DecodeJSON

func (value *Defaults) DecodeJSON(decoder *Decoder) error

func (Defaults) MarshalJSON

func (value Defaults) MarshalJSON() ([]byte, error)

func (*Defaults) UnmarshalJSON

func (value *Defaults) UnmarshalJSON(data []byte) error

type Delegation

type Delegation struct {
	Session SessionID `json:"session"`
	Turn    TurnID    `json:"turn"`
	Entry   string    `json:"entry"`
	Index   uint64    `json:"index"`
	Role    *RoleID   `json:"role"`
	// Overlap is the effective foreground mode: the parent keeps working
	// while the child runs instead of waiting for its result.
	Overlap bool `json:"overlap,omitempty"`
}

func DefaultDelegation

func DefaultDelegation() Delegation

func (*Delegation) DecodeJSON

func (value *Delegation) DecodeJSON(decoder *Decoder) error

func (Delegation) MarshalJSON

func (value Delegation) MarshalJSON() ([]byte, error)

func (*Delegation) UnmarshalJSON

func (value *Delegation) UnmarshalJSON(data []byte) error

type DeviceRevoked

type DeviceRevoked struct {
	Device NodeID `json:"device"`
}

func (*DeviceRevoked) UnmarshalJSON

func (value *DeviceRevoked) UnmarshalJSON(data []byte) error

type DeviceSponsorship

type DeviceSponsorship struct {
	Sponsor NodeID    `json:"sponsor"`
	Request RequestID `json:"request"`
	Device  NodeID    `json:"device"`
	User    UserID    `json:"user"`
	State   string    `json:"state"`
}

func (*DeviceSponsorship) UnmarshalJSON

func (value *DeviceSponsorship) UnmarshalJSON(data []byte) error

type Directory

type Directory struct {
	Path             string           `json:"path"`
	Entries          []FileEntry      `json:"entries"`
	Truncated        bool             `json:"truncated"`
	UnsupportedNames uint64           `json:"unsupported_names"`
	Revision         string           `json:"revision"`
	Next             *DirectoryCursor `json:"next"`
}

func DefaultDirectory

func DefaultDirectory() Directory

func (Directory) MarshalJSON

func (value Directory) MarshalJSON() ([]byte, error)

func (*Directory) UnmarshalJSON

func (value *Directory) UnmarshalJSON(data []byte) error

type DirectoryCursor

type DirectoryCursor struct {
	Revision  string `json:"revision"`
	Directory bool   `json:"directory"`
	Name      string `json:"name"`
}

func DefaultDirectoryCursor

func DefaultDirectoryCursor() DirectoryCursor

func (DirectoryCursor) MarshalJSON

func (value DirectoryCursor) MarshalJSON() ([]byte, error)

func (*DirectoryCursor) UnmarshalJSON

func (value *DirectoryCursor) UnmarshalJSON(data []byte) error

type DirectoryHost

type DirectoryHost struct {
	Node    NodeID `json:"node"`
	Name    string `json:"name"`
	Address string `json:"address"`
}

DirectoryHost carries an ordinary serialized Link address, like NetworkSettings.Address. Importing it grants outbound host access only.

func (*DirectoryHost) UnmarshalJSON

func (value *DirectoryHost) UnmarshalJSON(data []byte) error

type DispatchCallback

type DispatchCallback struct {
	Scope      DispatchScope      `json:"scope"`
	Completion DispatchCompletion `json:"completion"`
	Command    *Command           `json:"command"`
	Bindings   map[string]string  `json:"bindings"`
}

func DefaultDispatchCallback

func DefaultDispatchCallback() DispatchCallback

func (DispatchCallback) MarshalJSON

func (value DispatchCallback) MarshalJSON() ([]byte, error)

func (*DispatchCallback) UnmarshalJSON

func (value *DispatchCallback) UnmarshalJSON(data []byte) error

type DispatchCommand

type DispatchCommand struct {
	Kind string
	Data any
}

func (DispatchCommand) MarshalJSON

func (value DispatchCommand) MarshalJSON() ([]byte, error)

func (*DispatchCommand) UnmarshalJSON

func (value *DispatchCommand) UnmarshalJSON(data []byte) error

type DispatchCommandCancelJobPayload

type DispatchCommandCancelJobPayload struct {
	ID JobID `json:"id"`
}

func DefaultDispatchCommandCancelJobPayload

func DefaultDispatchCommandCancelJobPayload() DispatchCommandCancelJobPayload

func (DispatchCommandCancelJobPayload) MarshalJSON

func (value DispatchCommandCancelJobPayload) MarshalJSON() ([]byte, error)

func (*DispatchCommandCancelJobPayload) UnmarshalJSON

func (value *DispatchCommandCancelJobPayload) UnmarshalJSON(data []byte) error

type DispatchCommandEnqueuePayload

type DispatchCommandEnqueuePayload struct {
	Handler string          `json:"handler"`
	Payload json.RawMessage `json:"payload"`
}

func DefaultDispatchCommandEnqueuePayload

func DefaultDispatchCommandEnqueuePayload() DispatchCommandEnqueuePayload

func (DispatchCommandEnqueuePayload) MarshalJSON

func (value DispatchCommandEnqueuePayload) MarshalJSON() ([]byte, error)

func (*DispatchCommandEnqueuePayload) UnmarshalJSON

func (value *DispatchCommandEnqueuePayload) UnmarshalJSON(data []byte) error

type DispatchCommandListJobsPayload

type DispatchCommandListJobsPayload struct {
	Before *uint64 `json:"before"`
	Limit  uint16  `json:"limit"`
}

func DefaultDispatchCommandListJobsPayload

func DefaultDispatchCommandListJobsPayload() DispatchCommandListJobsPayload

func (DispatchCommandListJobsPayload) MarshalJSON

func (value DispatchCommandListJobsPayload) MarshalJSON() ([]byte, error)

func (*DispatchCommandListJobsPayload) UnmarshalJSON

func (value *DispatchCommandListJobsPayload) UnmarshalJSON(data []byte) error

type DispatchCommandPublishPayload

type DispatchCommandPublishPayload struct {
	Topic   string          `json:"topic"`
	Payload json.RawMessage `json:"payload"`
}

func DefaultDispatchCommandPublishPayload

func DefaultDispatchCommandPublishPayload() DispatchCommandPublishPayload

func (DispatchCommandPublishPayload) MarshalJSON

func (value DispatchCommandPublishPayload) MarshalJSON() ([]byte, error)

func (*DispatchCommandPublishPayload) UnmarshalJSON

func (value *DispatchCommandPublishPayload) UnmarshalJSON(data []byte) error

type DispatchCommandReadJobPayload

type DispatchCommandReadJobPayload struct {
	ID JobID `json:"id"`
}

func DefaultDispatchCommandReadJobPayload

func DefaultDispatchCommandReadJobPayload() DispatchCommandReadJobPayload

func (DispatchCommandReadJobPayload) MarshalJSON

func (value DispatchCommandReadJobPayload) MarshalJSON() ([]byte, error)

func (*DispatchCommandReadJobPayload) UnmarshalJSON

func (value *DispatchCommandReadJobPayload) UnmarshalJSON(data []byte) error

type DispatchCommandReadResultPayload

type DispatchCommandReadResultPayload struct {
	ID JobID `json:"id"`
}

func DefaultDispatchCommandReadResultPayload

func DefaultDispatchCommandReadResultPayload() DispatchCommandReadResultPayload

func (DispatchCommandReadResultPayload) MarshalJSON

func (value DispatchCommandReadResultPayload) MarshalJSON() ([]byte, error)

func (*DispatchCommandReadResultPayload) UnmarshalJSON

func (value *DispatchCommandReadResultPayload) UnmarshalJSON(data []byte) error

type DispatchCommandRemoveHandlerPayload

type DispatchCommandRemoveHandlerPayload struct {
	Name             string `json:"name"`
	ExpectedRevision uint64 `json:"expected_revision"`
	CancelPending    bool   `json:"cancel_pending"`
}

func DefaultDispatchCommandRemoveHandlerPayload

func DefaultDispatchCommandRemoveHandlerPayload() DispatchCommandRemoveHandlerPayload

func (DispatchCommandRemoveHandlerPayload) MarshalJSON

func (value DispatchCommandRemoveHandlerPayload) MarshalJSON() ([]byte, error)

func (*DispatchCommandRemoveHandlerPayload) UnmarshalJSON

func (value *DispatchCommandRemoveHandlerPayload) UnmarshalJSON(data []byte) error

type DispatchCommandRemoveSchedulePayload

type DispatchCommandRemoveSchedulePayload struct {
	ID               ScheduleID `json:"id"`
	ExpectedRevision uint64     `json:"expected_revision"`
}

func DefaultDispatchCommandRemoveSchedulePayload

func DefaultDispatchCommandRemoveSchedulePayload() DispatchCommandRemoveSchedulePayload

func (DispatchCommandRemoveSchedulePayload) MarshalJSON

func (value DispatchCommandRemoveSchedulePayload) MarshalJSON() ([]byte, error)

func (*DispatchCommandRemoveSchedulePayload) UnmarshalJSON

func (value *DispatchCommandRemoveSchedulePayload) UnmarshalJSON(data []byte) error

type DispatchCompletion

type DispatchCompletion string
const (
	DispatchCompletionCommand DispatchCompletion = "command"
	DispatchCompletionTurn    DispatchCompletion = "turn"
)

func (DispatchCompletion) MarshalJSON

func (value DispatchCompletion) MarshalJSON() ([]byte, error)

func (DispatchCompletion) MarshalText

func (value DispatchCompletion) MarshalText() ([]byte, error)

func (*DispatchCompletion) UnmarshalJSON

func (value *DispatchCompletion) UnmarshalJSON(data []byte) error

func (*DispatchCompletion) UnmarshalText

func (value *DispatchCompletion) UnmarshalText(data []byte) error

type DispatchEvent

type DispatchEvent struct {
	ID          EventID         `json:"id"`
	Source      DispatchSource  `json:"source"`
	Payload     json.RawMessage `json:"payload"`
	TimestampMs int64           `json:"timestamp_ms"`
	Schedule    *ScheduleID     `json:"schedule"`
	ScheduledMs *int64          `json:"scheduled_ms"`
}

func DefaultDispatchEvent

func DefaultDispatchEvent() DispatchEvent

func (DispatchEvent) MarshalJSON

func (value DispatchEvent) MarshalJSON() ([]byte, error)

func (*DispatchEvent) UnmarshalJSON

func (value *DispatchEvent) UnmarshalJSON(data []byte) error

type DispatchHandler

type DispatchHandler struct {
	// ExecutionNode owns this handler and its queue. Omitted legacy values
	// are bound to the Node that stores the record.
	ExecutionNode *NodeID          `json:"execution_node,omitempty"`
	Name          string           `json:"name"`
	Revision      uint64           `json:"revision"`
	Enabled       bool             `json:"enabled"`
	Source        DispatchSource   `json:"source"`
	Queue         string           `json:"queue"`
	Callback      DispatchCallback `json:"callback"`
}

func DefaultDispatchHandler

func DefaultDispatchHandler() DispatchHandler

func (DispatchHandler) MarshalJSON

func (value DispatchHandler) MarshalJSON() ([]byte, error)

func (*DispatchHandler) UnmarshalJSON

func (value *DispatchHandler) UnmarshalJSON(data []byte) error

type DispatchJob

type DispatchJob struct {
	ExecutionNode *NodeID        `json:"execution_node,omitempty"`
	ID            JobID          `json:"id"`
	Event         DispatchEvent  `json:"event"`
	Handler       string         `json:"handler"`
	Queue         string         `json:"queue"`
	Request       RequestID      `json:"request"`
	Status        DispatchStatus `json:"status"`
	CreatedMs     int64          `json:"created_ms"`
	StartedMs     *int64         `json:"started_ms"`
	FinishedMs    *int64         `json:"finished_ms"`
	Error         *Fault         `json:"error"`
}

func DefaultDispatchJob

func DefaultDispatchJob() DispatchJob

func (DispatchJob) MarshalJSON

func (value DispatchJob) MarshalJSON() ([]byte, error)

func (*DispatchJob) UnmarshalJSON

func (value *DispatchJob) UnmarshalJSON(data []byte) error

type DispatchOutput

type DispatchOutput struct {
	Kind string
	Data any
}

func (DispatchOutput) MarshalJSON

func (value DispatchOutput) MarshalJSON() ([]byte, error)

func (*DispatchOutput) UnmarshalJSON

func (value *DispatchOutput) UnmarshalJSON(data []byte) error

type DispatchOutputPublishedPayload

type DispatchOutputPublishedPayload struct {
	Event EventID `json:"event"`
	Jobs  []JobID `json:"jobs"`
}

func DefaultDispatchOutputPublishedPayload

func DefaultDispatchOutputPublishedPayload() DispatchOutputPublishedPayload

func (DispatchOutputPublishedPayload) MarshalJSON

func (value DispatchOutputPublishedPayload) MarshalJSON() ([]byte, error)

func (*DispatchOutputPublishedPayload) UnmarshalJSON

func (value *DispatchOutputPublishedPayload) UnmarshalJSON(data []byte) error

type DispatchPage

type DispatchPage struct {
	Jobs       []DispatchJob `json:"jobs"`
	NextBefore *uint64       `json:"next_before"`
}

func DefaultDispatchPage

func DefaultDispatchPage() DispatchPage

func (DispatchPage) MarshalJSON

func (value DispatchPage) MarshalJSON() ([]byte, error)

func (*DispatchPage) UnmarshalJSON

func (value *DispatchPage) UnmarshalJSON(data []byte) error

type DispatchSchedule

type DispatchSchedule struct {
	ExecutionNode *NodeID         `json:"execution_node,omitempty"`
	ID            ScheduleID      `json:"id"`
	Revision      uint64          `json:"revision"`
	Enabled       bool            `json:"enabled"`
	Topic         string          `json:"topic"`
	Payload       json.RawMessage `json:"payload"`
	Timing        DispatchTiming  `json:"timing"`
	NextMs        *int64          `json:"next_ms"`
}

func DefaultDispatchSchedule

func DefaultDispatchSchedule() DispatchSchedule

func (DispatchSchedule) MarshalJSON

func (value DispatchSchedule) MarshalJSON() ([]byte, error)

func (*DispatchSchedule) UnmarshalJSON

func (value *DispatchSchedule) UnmarshalJSON(data []byte) error

type DispatchScope

type DispatchScope struct {
	Worktree *WorktreeID `json:"worktree"`
	Session  *SessionID  `json:"session"`
}

func DefaultDispatchScope

func DefaultDispatchScope() DispatchScope

func (DispatchScope) MarshalJSON

func (value DispatchScope) MarshalJSON() ([]byte, error)

func (*DispatchScope) UnmarshalJSON

func (value *DispatchScope) UnmarshalJSON(data []byte) error

type DispatchSource

type DispatchSource struct {
	Package string `json:"package"`
	Topic   string `json:"topic"`
}

func DefaultDispatchSource

func DefaultDispatchSource() DispatchSource

func (DispatchSource) MarshalJSON

func (value DispatchSource) MarshalJSON() ([]byte, error)

func (*DispatchSource) UnmarshalJSON

func (value *DispatchSource) UnmarshalJSON(data []byte) error

type DispatchStatus

type DispatchStatus string
const (
	DispatchStatusQueued    DispatchStatus = "queued"
	DispatchStatusRunning   DispatchStatus = "running"
	DispatchStatusCompleted DispatchStatus = "completed"
	DispatchStatusFailed    DispatchStatus = "failed"
	DispatchStatusCancelled DispatchStatus = "cancelled"
	DispatchStatusUnknown   DispatchStatus = "unknown"
)

func (DispatchStatus) MarshalJSON

func (value DispatchStatus) MarshalJSON() ([]byte, error)

func (DispatchStatus) MarshalText

func (value DispatchStatus) MarshalText() ([]byte, error)

func (*DispatchStatus) UnmarshalJSON

func (value *DispatchStatus) UnmarshalJSON(data []byte) error

func (*DispatchStatus) UnmarshalText

func (value *DispatchStatus) UnmarshalText(data []byte) error

type DispatchTiming

type DispatchTiming struct {
	Kind string
	Data any
}

func (DispatchTiming) MarshalJSON

func (value DispatchTiming) MarshalJSON() ([]byte, error)

func (*DispatchTiming) UnmarshalJSON

func (value *DispatchTiming) UnmarshalJSON(data []byte) error

type DispatchTimingEveryPayload

type DispatchTimingEveryPayload struct {
	AnchorMs   int64  `json:"anchor_ms"`
	IntervalMs uint64 `json:"interval_ms"`
}

func DefaultDispatchTimingEveryPayload

func DefaultDispatchTimingEveryPayload() DispatchTimingEveryPayload

func (DispatchTimingEveryPayload) MarshalJSON

func (value DispatchTimingEveryPayload) MarshalJSON() ([]byte, error)

func (*DispatchTimingEveryPayload) UnmarshalJSON

func (value *DispatchTimingEveryPayload) UnmarshalJSON(data []byte) error

type DispatchTimingOncePayload

type DispatchTimingOncePayload struct {
	AtMs int64 `json:"at_ms"`
}

func DefaultDispatchTimingOncePayload

func DefaultDispatchTimingOncePayload() DispatchTimingOncePayload

func (DispatchTimingOncePayload) MarshalJSON

func (value DispatchTimingOncePayload) MarshalJSON() ([]byte, error)

func (*DispatchTimingOncePayload) UnmarshalJSON

func (value *DispatchTimingOncePayload) UnmarshalJSON(data []byte) error

type DispatchTimingWeeklyPayload

type DispatchTimingWeeklyPayload struct {
	Timezone string `json:"timezone"`
	Weekdays Bytes  `json:"weekdays"`
	Hour     uint8  `json:"hour"`
	Minute   uint8  `json:"minute"`
}

func DefaultDispatchTimingWeeklyPayload

func DefaultDispatchTimingWeeklyPayload() DispatchTimingWeeklyPayload

func (DispatchTimingWeeklyPayload) MarshalJSON

func (value DispatchTimingWeeklyPayload) MarshalJSON() ([]byte, error)

func (*DispatchTimingWeeklyPayload) UnmarshalJSON

func (value *DispatchTimingWeeklyPayload) UnmarshalJSON(data []byte) error

type Effort

type Effort struct {
	Kind string
	Data any
}

func (*Effort) DecodeJSON

func (value *Effort) DecodeJSON(decoder *Decoder) error

func (Effort) MarshalJSON

func (value Effort) MarshalJSON() ([]byte, error)

func (*Effort) UnmarshalJSON

func (value *Effort) UnmarshalJSON(data []byte) error

type EntryKind

type EntryKind string
const (
	EntryKindFile      EntryKind = "file"
	EntryKindDirectory EntryKind = "directory"
	EntryKindSymlink   EntryKind = "symlink"
	EntryKindOther     EntryKind = "other"
)

func (EntryKind) MarshalJSON

func (value EntryKind) MarshalJSON() ([]byte, error)

func (EntryKind) MarshalText

func (value EntryKind) MarshalText() ([]byte, error)

func (*EntryKind) UnmarshalJSON

func (value *EntryKind) UnmarshalJSON(data []byte) error

func (*EntryKind) UnmarshalText

func (value *EntryKind) UnmarshalText(data []byte) error

type ErrorCode

type ErrorCode string
const (
	ErrorCodeInvalidRequest   ErrorCode = "invalid_request"
	ErrorCodeWrongTarget      ErrorCode = "wrong_target"
	ErrorCodeNotFound         ErrorCode = "not_found"
	ErrorCodeNotConfigured    ErrorCode = "not_configured"
	ErrorCodeConflict         ErrorCode = "conflict"
	ErrorCodeRevisionConflict ErrorCode = "revision_conflict"
	ErrorCodePermissionDenied ErrorCode = "permission_denied"
	ErrorCodeExpired          ErrorCode = "expired"
	ErrorCodeBusy             ErrorCode = "busy"
	ErrorCodeUnavailable      ErrorCode = "unavailable"
	ErrorCodeCancelled        ErrorCode = "cancelled"
	ErrorCodeOutcomeUnknown   ErrorCode = "outcome_unknown"
	ErrorCodeInternal         ErrorCode = "internal"
)

func (ErrorCode) MarshalJSON

func (value ErrorCode) MarshalJSON() ([]byte, error)

func (ErrorCode) MarshalText

func (value ErrorCode) MarshalText() ([]byte, error)

func (*ErrorCode) UnmarshalJSON

func (value *ErrorCode) UnmarshalJSON(data []byte) error

func (*ErrorCode) UnmarshalText

func (value *ErrorCode) UnmarshalText(data []byte) error

type Event

type Event struct {
	Kind string
	Data any
}

func (Event) MarshalJSON

func (value Event) MarshalJSON() ([]byte, error)

func (*Event) UnmarshalJSON

func (value *Event) UnmarshalJSON(data []byte) error

type EventBackupSettingsChangedPayload

type EventBackupSettingsChangedPayload struct {
	Revision uint64 `json:"revision"`
}

func DefaultEventBackupSettingsChangedPayload

func DefaultEventBackupSettingsChangedPayload() EventBackupSettingsChangedPayload

func (EventBackupSettingsChangedPayload) MarshalJSON

func (value EventBackupSettingsChangedPayload) MarshalJSON() ([]byte, error)

func (*EventBackupSettingsChangedPayload) UnmarshalJSON

func (value *EventBackupSettingsChangedPayload) UnmarshalJSON(data []byte) error

type EventCompactionSettingsChangedPayload

type EventCompactionSettingsChangedPayload struct {
	Revision uint64 `json:"revision"`
}

func DefaultEventCompactionSettingsChangedPayload

func DefaultEventCompactionSettingsChangedPayload() EventCompactionSettingsChangedPayload

func (EventCompactionSettingsChangedPayload) MarshalJSON

func (value EventCompactionSettingsChangedPayload) MarshalJSON() ([]byte, error)

func (*EventCompactionSettingsChangedPayload) UnmarshalJSON

func (value *EventCompactionSettingsChangedPayload) UnmarshalJSON(data []byte) error

type EventComputerSettingsChangedPayload

type EventComputerSettingsChangedPayload struct {
	Revision uint64 `json:"revision"`
}

func (*EventComputerSettingsChangedPayload) UnmarshalJSON

func (value *EventComputerSettingsChangedPayload) UnmarshalJSON(data []byte) error

type EventConversationChangedPayload

type EventConversationChangedPayload struct {
	Session  SessionID        `json:"session"`
	Activity *ActivitySummary `json:"activity"`
}

func DefaultEventConversationChangedPayload

func DefaultEventConversationChangedPayload() EventConversationChangedPayload

func (EventConversationChangedPayload) MarshalJSON

func (value EventConversationChangedPayload) MarshalJSON() ([]byte, error)

func (*EventConversationChangedPayload) UnmarshalJSON

func (value *EventConversationChangedPayload) UnmarshalJSON(data []byte) error

type EventCredentialChangedPayload

type EventCredentialChangedPayload struct {
	Credential CredentialRef `json:"credential"`
	Revision   uint64        `json:"revision"`
}

func DefaultEventCredentialChangedPayload

func DefaultEventCredentialChangedPayload() EventCredentialChangedPayload

func (EventCredentialChangedPayload) MarshalJSON

func (value EventCredentialChangedPayload) MarshalJSON() ([]byte, error)

func (*EventCredentialChangedPayload) UnmarshalJSON

func (value *EventCredentialChangedPayload) UnmarshalJSON(data []byte) error

type EventDatabaseRemovedPayload

type EventDatabaseRemovedPayload struct {
	ID DatabaseID `json:"id"`
}

func DefaultEventDatabaseRemovedPayload

func DefaultEventDatabaseRemovedPayload() EventDatabaseRemovedPayload

func (EventDatabaseRemovedPayload) MarshalJSON

func (value EventDatabaseRemovedPayload) MarshalJSON() ([]byte, error)

func (*EventDatabaseRemovedPayload) UnmarshalJSON

func (value *EventDatabaseRemovedPayload) UnmarshalJSON(data []byte) error

type EventDispatchChangedPayload

type EventDispatchChangedPayload struct {
	Packages []string `json:"packages"`
}

func DefaultEventDispatchChangedPayload

func DefaultEventDispatchChangedPayload() EventDispatchChangedPayload

func (EventDispatchChangedPayload) MarshalJSON

func (value EventDispatchChangedPayload) MarshalJSON() ([]byte, error)

func (*EventDispatchChangedPayload) UnmarshalJSON

func (value *EventDispatchChangedPayload) UnmarshalJSON(data []byte) error

type EventEnvelope

type EventEnvelope struct {
	Node   NodeID `json:"node"`
	Cursor uint64 `json:"cursor"`
	Event  Event  `json:"event"`
}

func DefaultEventEnvelope

func DefaultEventEnvelope() EventEnvelope

func (EventEnvelope) MarshalJSON

func (value EventEnvelope) MarshalJSON() ([]byte, error)

func (*EventEnvelope) UnmarshalJSON

func (value *EventEnvelope) UnmarshalJSON(data []byte) error

type EventExternalBrowserSettingsChangedPayload

type EventExternalBrowserSettingsChangedPayload struct {
	Revision uint64 `json:"revision"`
}

func (*EventExternalBrowserSettingsChangedPayload) UnmarshalJSON

func (value *EventExternalBrowserSettingsChangedPayload) UnmarshalJSON(data []byte) error

type EventID

type EventID [16]byte

func NewEventID

func NewEventID() EventID

func (*EventID) DecodeJSON

func (identity *EventID) DecodeJSON(decoder *Decoder) error

func (EventID) MarshalJSON

func (identity EventID) MarshalJSON() ([]byte, error)

func (EventID) MarshalText

func (identity EventID) MarshalText() ([]byte, error)

func (EventID) String

func (identity EventID) String() string

func (*EventID) UnmarshalJSON

func (identity *EventID) UnmarshalJSON(data []byte) error

func (*EventID) UnmarshalText

func (identity *EventID) UnmarshalText(data []byte) error

type EventLocalModelSettingsChangedPayload

type EventLocalModelSettingsChangedPayload struct {
	Revision uint64 `json:"revision"`
}

func DefaultEventLocalModelSettingsChangedPayload

func DefaultEventLocalModelSettingsChangedPayload() EventLocalModelSettingsChangedPayload

func (EventLocalModelSettingsChangedPayload) MarshalJSON

func (value EventLocalModelSettingsChangedPayload) MarshalJSON() ([]byte, error)

func (*EventLocalModelSettingsChangedPayload) UnmarshalJSON

func (value *EventLocalModelSettingsChangedPayload) UnmarshalJSON(data []byte) error

type EventLocalModelsChangedPayload

type EventLocalModelsChangedPayload struct {
	Models []ModelsLocalModel `json:"models"`
}

func DefaultEventLocalModelsChangedPayload

func DefaultEventLocalModelsChangedPayload() EventLocalModelsChangedPayload

func (EventLocalModelsChangedPayload) MarshalJSON

func (value EventLocalModelsChangedPayload) MarshalJSON() ([]byte, error)

func (*EventLocalModelsChangedPayload) UnmarshalJSON

func (value *EventLocalModelsChangedPayload) UnmarshalJSON(data []byte) error

type EventMemoryChangedPayload

type EventMemoryChangedPayload struct {
	Revision uint64 `json:"revision"`
}

func (*EventMemoryChangedPayload) UnmarshalJSON

func (value *EventMemoryChangedPayload) UnmarshalJSON(data []byte) error

type EventNotificationsDismissedPayload

type EventNotificationsDismissedPayload struct {
	IDs []NotificationID `json:"ids"`
}

func DefaultEventNotificationsDismissedPayload

func DefaultEventNotificationsDismissedPayload() EventNotificationsDismissedPayload

func (EventNotificationsDismissedPayload) MarshalJSON

func (value EventNotificationsDismissedPayload) MarshalJSON() ([]byte, error)

func (*EventNotificationsDismissedPayload) UnmarshalJSON

func (value *EventNotificationsDismissedPayload) UnmarshalJSON(data []byte) error

type EventNotificationsReadPayload

type EventNotificationsReadPayload struct {
	IDs []NotificationID `json:"ids"`
}

func DefaultEventNotificationsReadPayload

func DefaultEventNotificationsReadPayload() EventNotificationsReadPayload

func (EventNotificationsReadPayload) MarshalJSON

func (value EventNotificationsReadPayload) MarshalJSON() ([]byte, error)

func (*EventNotificationsReadPayload) UnmarshalJSON

func (value *EventNotificationsReadPayload) UnmarshalJSON(data []byte) error

type EventPluginRemovedPayload

type EventPluginRemovedPayload struct {
	Name string `json:"name"`
}

func DefaultEventPluginRemovedPayload

func DefaultEventPluginRemovedPayload() EventPluginRemovedPayload

func (EventPluginRemovedPayload) MarshalJSON

func (value EventPluginRemovedPayload) MarshalJSON() ([]byte, error)

func (*EventPluginRemovedPayload) UnmarshalJSON

func (value *EventPluginRemovedPayload) UnmarshalJSON(data []byte) error

type EventPluginValuesChangedPayload

type EventPluginValuesChangedPayload struct {
	Name    string     `json:"name"`
	Project *ProjectID `json:"project,omitempty"`
}

func DefaultEventPluginValuesChangedPayload

func DefaultEventPluginValuesChangedPayload() EventPluginValuesChangedPayload

func (EventPluginValuesChangedPayload) MarshalJSON

func (value EventPluginValuesChangedPayload) MarshalJSON() ([]byte, error)

func (*EventPluginValuesChangedPayload) UnmarshalJSON

func (value *EventPluginValuesChangedPayload) UnmarshalJSON(data []byte) error

type EventPowerSettingsChangedPayload

type EventPowerSettingsChangedPayload struct {
	Revision uint64 `json:"revision"`
}

func DefaultEventPowerSettingsChangedPayload

func DefaultEventPowerSettingsChangedPayload() EventPowerSettingsChangedPayload

func (EventPowerSettingsChangedPayload) MarshalJSON

func (value EventPowerSettingsChangedPayload) MarshalJSON() ([]byte, error)

func (*EventPowerSettingsChangedPayload) UnmarshalJSON

func (value *EventPowerSettingsChangedPayload) UnmarshalJSON(data []byte) error

type EventProjectRemovedPayload

type EventProjectRemovedPayload struct {
	ID ProjectID `json:"id"`
}

func DefaultEventProjectRemovedPayload

func DefaultEventProjectRemovedPayload() EventProjectRemovedPayload

func (EventProjectRemovedPayload) MarshalJSON

func (value EventProjectRemovedPayload) MarshalJSON() ([]byte, error)

func (*EventProjectRemovedPayload) UnmarshalJSON

func (value *EventProjectRemovedPayload) UnmarshalJSON(data []byte) error

type EventProviderQuotaChangedPayload

type EventProviderQuotaChangedPayload struct {
	Provider ProviderID                 `json:"provider"`
	Quota    *ConversationQuotaSnapshot `json:"quota"`
}

func DefaultEventProviderQuotaChangedPayload

func DefaultEventProviderQuotaChangedPayload() EventProviderQuotaChangedPayload

func (EventProviderQuotaChangedPayload) MarshalJSON

func (value EventProviderQuotaChangedPayload) MarshalJSON() ([]byte, error)

func (*EventProviderQuotaChangedPayload) UnmarshalJSON

func (value *EventProviderQuotaChangedPayload) UnmarshalJSON(data []byte) error

type EventProviderRemovedPayload

type EventProviderRemovedPayload struct {
	ID ProviderID `json:"id"`
}

func DefaultEventProviderRemovedPayload

func DefaultEventProviderRemovedPayload() EventProviderRemovedPayload

func (EventProviderRemovedPayload) MarshalJSON

func (value EventProviderRemovedPayload) MarshalJSON() ([]byte, error)

func (*EventProviderRemovedPayload) UnmarshalJSON

func (value *EventProviderRemovedPayload) UnmarshalJSON(data []byte) error

type EventPythonSettingsChangedPayload

type EventPythonSettingsChangedPayload struct {
	Revision uint64 `json:"revision"`
}

func DefaultEventPythonSettingsChangedPayload

func DefaultEventPythonSettingsChangedPayload() EventPythonSettingsChangedPayload

func (EventPythonSettingsChangedPayload) MarshalJSON

func (value EventPythonSettingsChangedPayload) MarshalJSON() ([]byte, error)

func (*EventPythonSettingsChangedPayload) UnmarshalJSON

func (value *EventPythonSettingsChangedPayload) UnmarshalJSON(data []byte) error

type EventRoleRemovedPayload

type EventRoleRemovedPayload struct {
	ID    RoleID        `json:"id"`
	Teams []TeamProfile `json:"teams,omitempty"`
}

func DefaultEventRoleRemovedPayload

func DefaultEventRoleRemovedPayload() EventRoleRemovedPayload

func (EventRoleRemovedPayload) MarshalJSON

func (value EventRoleRemovedPayload) MarshalJSON() ([]byte, error)

func (*EventRoleRemovedPayload) UnmarshalJSON

func (value *EventRoleRemovedPayload) UnmarshalJSON(data []byte) error

type EventSandboxSettingsChangedPayload

type EventSandboxSettingsChangedPayload struct {
	Revision uint64 `json:"revision"`
}

func DefaultEventSandboxSettingsChangedPayload

func DefaultEventSandboxSettingsChangedPayload() EventSandboxSettingsChangedPayload

func (EventSandboxSettingsChangedPayload) MarshalJSON

func (value EventSandboxSettingsChangedPayload) MarshalJSON() ([]byte, error)

func (*EventSandboxSettingsChangedPayload) UnmarshalJSON

func (value *EventSandboxSettingsChangedPayload) UnmarshalJSON(data []byte) error

type EventSearchSettingsChangedPayload

type EventSearchSettingsChangedPayload struct {
	Revision uint64 `json:"revision"`
}

func DefaultEventSearchSettingsChangedPayload

func DefaultEventSearchSettingsChangedPayload() EventSearchSettingsChangedPayload

func (EventSearchSettingsChangedPayload) MarshalJSON

func (value EventSearchSettingsChangedPayload) MarshalJSON() ([]byte, error)

func (*EventSearchSettingsChangedPayload) UnmarshalJSON

func (value *EventSearchSettingsChangedPayload) UnmarshalJSON(data []byte) error

type EventSessionRewoundPayload

type EventSessionRewoundPayload struct {
	Session *Session  `json:"session"`
	Backup  **Session `json:"backup,omitempty"`
}

func DefaultEventSessionRewoundPayload

func DefaultEventSessionRewoundPayload() EventSessionRewoundPayload

func (EventSessionRewoundPayload) MarshalJSON

func (value EventSessionRewoundPayload) MarshalJSON() ([]byte, error)

func (*EventSessionRewoundPayload) UnmarshalJSON

func (value *EventSessionRewoundPayload) UnmarshalJSON(data []byte) error

type EventSshRemovedPayload

type EventSshRemovedPayload struct {
	ID SshID `json:"id"`
}

func DefaultEventSshRemovedPayload

func DefaultEventSshRemovedPayload() EventSshRemovedPayload

func (EventSshRemovedPayload) MarshalJSON

func (value EventSshRemovedPayload) MarshalJSON() ([]byte, error)

func (*EventSshRemovedPayload) UnmarshalJSON

func (value *EventSshRemovedPayload) UnmarshalJSON(data []byte) error

type EventTaskStartedPayload

type EventTaskStartedPayload struct {
	Session *Session   `json:"session"`
	Turn    QueuedTurn `json:"turn"`
}

func DefaultEventTaskStartedPayload

func DefaultEventTaskStartedPayload() EventTaskStartedPayload

func (EventTaskStartedPayload) MarshalJSON

func (value EventTaskStartedPayload) MarshalJSON() ([]byte, error)

func (*EventTaskStartedPayload) UnmarshalJSON

func (value *EventTaskStartedPayload) UnmarshalJSON(data []byte) error

type EventTeamRemovedPayload

type EventTeamRemovedPayload struct {
	ID TeamID `json:"id"`
}

func DefaultEventTeamRemovedPayload

func DefaultEventTeamRemovedPayload() EventTeamRemovedPayload

func (EventTeamRemovedPayload) MarshalJSON

func (value EventTeamRemovedPayload) MarshalJSON() ([]byte, error)

func (*EventTeamRemovedPayload) UnmarshalJSON

func (value *EventTeamRemovedPayload) UnmarshalJSON(data []byte) error

type EventTeamSettingsChangedPayload

type EventTeamSettingsChangedPayload struct {
	Revision uint64 `json:"revision"`
}

func DefaultEventTeamSettingsChangedPayload

func DefaultEventTeamSettingsChangedPayload() EventTeamSettingsChangedPayload

func (EventTeamSettingsChangedPayload) MarshalJSON

func (value EventTeamSettingsChangedPayload) MarshalJSON() ([]byte, error)

func (*EventTeamSettingsChangedPayload) UnmarshalJSON

func (value *EventTeamSettingsChangedPayload) UnmarshalJSON(data []byte) error

type EventTelemetrySettingsChangedPayload

type EventTelemetrySettingsChangedPayload struct {
	Revision uint64 `json:"revision"`
}

func DefaultEventTelemetrySettingsChangedPayload

func DefaultEventTelemetrySettingsChangedPayload() EventTelemetrySettingsChangedPayload

func (EventTelemetrySettingsChangedPayload) MarshalJSON

func (value EventTelemetrySettingsChangedPayload) MarshalJSON() ([]byte, error)

func (*EventTelemetrySettingsChangedPayload) UnmarshalJSON

func (value *EventTelemetrySettingsChangedPayload) UnmarshalJSON(data []byte) error

type EventTerminalSettingsChangedPayload

type EventTerminalSettingsChangedPayload struct {
	Revision uint64 `json:"revision"`
}

func DefaultEventTerminalSettingsChangedPayload

func DefaultEventTerminalSettingsChangedPayload() EventTerminalSettingsChangedPayload

func (EventTerminalSettingsChangedPayload) MarshalJSON

func (value EventTerminalSettingsChangedPayload) MarshalJSON() ([]byte, error)

func (*EventTerminalSettingsChangedPayload) UnmarshalJSON

func (value *EventTerminalSettingsChangedPayload) UnmarshalJSON(data []byte) error

type EventToolsCompletedPayload

type EventToolsCompletedPayload struct {
	Session SessionID `json:"session"`
}

func DefaultEventToolsCompletedPayload

func DefaultEventToolsCompletedPayload() EventToolsCompletedPayload

func (EventToolsCompletedPayload) MarshalJSON

func (value EventToolsCompletedPayload) MarshalJSON() ([]byte, error)

func (*EventToolsCompletedPayload) UnmarshalJSON

func (value *EventToolsCompletedPayload) UnmarshalJSON(data []byte) error

type EventTurnQueuedPayload

type EventTurnQueuedPayload struct {
	Turn     QueuedTurn       `json:"turn"`
	Activity *ActivitySummary `json:"activity"`
}

func DefaultEventTurnQueuedPayload

func DefaultEventTurnQueuedPayload() EventTurnQueuedPayload

func (EventTurnQueuedPayload) MarshalJSON

func (value EventTurnQueuedPayload) MarshalJSON() ([]byte, error)

func (*EventTurnQueuedPayload) UnmarshalJSON

func (value *EventTurnQueuedPayload) UnmarshalJSON(data []byte) error

type EventWorktreeRemovedPayload

type EventWorktreeRemovedPayload struct {
	ID WorktreeID `json:"id"`
}

func DefaultEventWorktreeRemovedPayload

func DefaultEventWorktreeRemovedPayload() EventWorktreeRemovedPayload

func (EventWorktreeRemovedPayload) MarshalJSON

func (value EventWorktreeRemovedPayload) MarshalJSON() ([]byte, error)

func (*EventWorktreeRemovedPayload) UnmarshalJSON

func (value *EventWorktreeRemovedPayload) UnmarshalJSON(data []byte) error

type ExternalBrowserAction

type ExternalBrowserAction string
const (
	ExternalBrowserActionDragAndDrop            ExternalBrowserAction = "drag_and_drop"
	ExternalBrowserActionRightClick             ExternalBrowserAction = "right_click"
	ExternalBrowserActionFocus                  ExternalBrowserAction = "focus"
	ExternalBrowserActionElementState           ExternalBrowserAction = "element_state"
	ExternalBrowserActionPressKey               ExternalBrowserAction = "press_key"
	ExternalBrowserActionFileUpload             ExternalBrowserAction = "file_upload"
	ExternalBrowserActionPrintToPdf             ExternalBrowserAction = "print_to_pdf"
	ExternalBrowserActionClick                  ExternalBrowserAction = "click"
	ExternalBrowserActionDoubleClick            ExternalBrowserAction = "double_click"
	ExternalBrowserActionGetCookies             ExternalBrowserAction = "get_cookies"
	ExternalBrowserActionGetCookie              ExternalBrowserAction = "get_cookie"
	ExternalBrowserActionAddCookie              ExternalBrowserAction = "add_cookie"
	ExternalBrowserActionDeleteCookie           ExternalBrowserAction = "delete_cookie"
	ExternalBrowserActionDeleteAllCookies       ExternalBrowserAction = "delete_all_cookies"
	ExternalBrowserActionEvaluateJs             ExternalBrowserAction = "evaluate_js"
	ExternalBrowserActionScroll                 ExternalBrowserAction = "scroll"
	ExternalBrowserActionHover                  ExternalBrowserAction = "hover"
	ExternalBrowserActionHandleAlert            ExternalBrowserAction = "handle_alert"
	ExternalBrowserActionExtractText            ExternalBrowserAction = "extract_text"
	ExternalBrowserActionExtractAttribute       ExternalBrowserAction = "extract_attribute"
	ExternalBrowserActionExtractLinks           ExternalBrowserAction = "extract_links"
	ExternalBrowserActionPageInfo               ExternalBrowserAction = "page_info"
	ExternalBrowserActionPageSource             ExternalBrowserAction = "page_source"
	ExternalBrowserActionSwitchToFrame          ExternalBrowserAction = "switch_to_frame"
	ExternalBrowserActionSwitchToParentFrame    ExternalBrowserAction = "switch_to_parent_frame"
	ExternalBrowserActionSwitchToDefaultContent ExternalBrowserAction = "switch_to_default_content"
	ExternalBrowserActionNavigate               ExternalBrowserAction = "navigate"
	ExternalBrowserActionBack                   ExternalBrowserAction = "back"
	ExternalBrowserActionForward                ExternalBrowserAction = "forward"
	ExternalBrowserActionRefresh                ExternalBrowserAction = "refresh"
	ExternalBrowserActionScreenshot             ExternalBrowserAction = "screenshot"
	ExternalBrowserActionType                   ExternalBrowserAction = "type"
	ExternalBrowserActionClear                  ExternalBrowserAction = "clear"
	ExternalBrowserActionSelect                 ExternalBrowserAction = "select"
	ExternalBrowserActionWaitForElement         ExternalBrowserAction = "wait_for_element"
	ExternalBrowserActionWait                   ExternalBrowserAction = "wait"
	ExternalBrowserActionWaitForPageLoad        ExternalBrowserAction = "wait_for_page_load"
	ExternalBrowserActionWaitForText            ExternalBrowserAction = "wait_for_text"
	ExternalBrowserActionListWindows            ExternalBrowserAction = "list_windows"
	ExternalBrowserActionNewTab                 ExternalBrowserAction = "new_tab"
	ExternalBrowserActionNewWindow              ExternalBrowserAction = "new_window"
	ExternalBrowserActionSwitchWindow           ExternalBrowserAction = "switch_window"
	ExternalBrowserActionCloseWindow            ExternalBrowserAction = "close_window"
	ExternalBrowserActionMaximizeWindow         ExternalBrowserAction = "maximize_window"
	ExternalBrowserActionMinimizeWindow         ExternalBrowserAction = "minimize_window"
	ExternalBrowserActionSetWindowSize          ExternalBrowserAction = "set_window_size"
	ExternalBrowserActionCloseSession           ExternalBrowserAction = "close_session"
	ExternalBrowserActionDownloads              ExternalBrowserAction = "downloads"
	ExternalBrowserActionSaveDownload           ExternalBrowserAction = "save_download"
)

func (ExternalBrowserAction) MarshalJSON

func (value ExternalBrowserAction) MarshalJSON() ([]byte, error)

func (ExternalBrowserAction) MarshalText

func (value ExternalBrowserAction) MarshalText() ([]byte, error)

func (ExternalBrowserAction) ReadOnly

func (value ExternalBrowserAction) ReadOnly() bool

ReadOnly reports whether an action observes or moves between pages without approval. Every other action is a control action.

func (*ExternalBrowserAction) UnmarshalJSON

func (value *ExternalBrowserAction) UnmarshalJSON(data []byte) error

func (*ExternalBrowserAction) UnmarshalText

func (value *ExternalBrowserAction) UnmarshalText(data []byte) error

type ExternalBrowserSettings

type ExternalBrowserSettings struct {
	Revision  uint64 `json:"revision"`
	Enabled   bool   `json:"enabled"`
	Available bool   `json:"available,omitempty"`
}

func DefaultExternalBrowserSettings

func DefaultExternalBrowserSettings() ExternalBrowserSettings

func (*ExternalBrowserSettings) UnmarshalJSON

func (value *ExternalBrowserSettings) UnmarshalJSON(data []byte) error

type Fault

type Fault struct {
	Code    ErrorCode     `json:"code"`
	Message string        `json:"message"`
	Details *FaultDetails `json:"details,omitempty"`
	// ReportRef correlates this delivery's diagnostics, not the durable request.
	ReportRef           string              `json:"report_ref,omitempty"`
	GitInspectionReason GitInspectionReason `json:"git_inspection_reason,omitempty"`
	SSHReason           SSHFailureReason    `json:"ssh_reason,omitempty"`
}

func DefaultFault

func DefaultFault() Fault

func NewAttachmentNotFound

func NewAttachmentNotFound(id AttachmentID) *Fault

NewAttachmentNotFound identifies which attachment could not be read.

func NewConfigurationFault

func NewConfigurationFault(reason ConfigurationReason, message string) *Fault

func (Fault) ConfigurationReason

func (value Fault) ConfigurationReason() ConfigurationReason

func (*Fault) DecodeJSON

func (value *Fault) DecodeJSON(decoder *Decoder) error

func (Fault) Error

func (value Fault) Error() string

func (Fault) MarshalJSON

func (value Fault) MarshalJSON() ([]byte, error)

func (*Fault) UnmarshalJSON

func (value *Fault) UnmarshalJSON(data []byte) error

type FaultDetails

type FaultDetails struct {
	Kind string
	Data any
}

func (FaultDetails) MarshalJSON

func (value FaultDetails) MarshalJSON() ([]byte, error)

func (*FaultDetails) UnmarshalJSON

func (value *FaultDetails) UnmarshalJSON(data []byte) error

type FaultDetailsBackupPartialPayload

type FaultDetailsBackupPartialPayload struct {
	Record   BackupRecord   `json:"record"`
	Location BackupLocation `json:"location"`
	Failure  Fault          `json:"failure"`
}

FaultDetailsBackupPartialPayload retains the copy committed before another destination failed. Failure keeps that destination's certainty and cause.

func (FaultDetailsBackupPartialPayload) MarshalJSON

func (value FaultDetailsBackupPartialPayload) MarshalJSON() ([]byte, error)

func (*FaultDetailsBackupPartialPayload) UnmarshalJSON

func (value *FaultDetailsBackupPartialPayload) UnmarshalJSON(data []byte) error

type FaultDetailsConfigurationPayload

type FaultDetailsConfigurationPayload struct {
	Reason ConfigurationReason `json:"reason"`
}

func (*FaultDetailsConfigurationPayload) UnmarshalJSON

func (value *FaultDetailsConfigurationPayload) UnmarshalJSON(data []byte) error

type FaultDetailsContinuationPayload

type FaultDetailsContinuationPayload struct {
	Reason ConversationContinuationRefusal `json:"reason"`
	Count  *uint32                         `json:"count,omitempty"`
	Limit  *uint32                         `json:"limit,omitempty"`
}

FaultDetailsContinuationPayload accompanies a refused continue_turn. Count and Limit are the session's automatic turns since its last user input and the bound they are held to; both are set for the limit refusal.

func DefaultFaultDetailsContinuationPayload

func DefaultFaultDetailsContinuationPayload() FaultDetailsContinuationPayload

func (FaultDetailsContinuationPayload) MarshalJSON

func (value FaultDetailsContinuationPayload) MarshalJSON() ([]byte, error)

func (*FaultDetailsContinuationPayload) UnmarshalJSON

func (value *FaultDetailsContinuationPayload) UnmarshalJSON(data []byte) error

type FaultDetailsControllerLoginPayload

type FaultDetailsControllerLoginPayload struct {
	Reason string `json:"reason"`
}

func (*FaultDetailsControllerLoginPayload) UnmarshalJSON

func (value *FaultDetailsControllerLoginPayload) UnmarshalJSON(data []byte) error

type FaultDetailsModelRecoveryPayload

type FaultDetailsModelRecoveryPayload struct {
	Reason ConversationRecoveryStop `json:"reason"`
}

func DefaultFaultDetailsModelRecoveryPayload

func DefaultFaultDetailsModelRecoveryPayload() FaultDetailsModelRecoveryPayload

func (FaultDetailsModelRecoveryPayload) MarshalJSON

func (value FaultDetailsModelRecoveryPayload) MarshalJSON() ([]byte, error)

func (*FaultDetailsModelRecoveryPayload) UnmarshalJSON

func (value *FaultDetailsModelRecoveryPayload) UnmarshalJSON(data []byte) error

type FaultDetailsModelRequestPayload

type FaultDetailsModelRequestPayload struct {
	Reason ModelFailure `json:"reason"`
	// ContextOverflow is set when the model refused the request because it
	// exceeds the context window, which no retry of the same request cures.
	// Absent for every other failure. Rust does not state it: there only the
	// failed step's record names the overflow.
	ContextOverflow bool `json:"context_overflow,omitempty"`
}

func DefaultFaultDetailsModelRequestPayload

func DefaultFaultDetailsModelRequestPayload() FaultDetailsModelRequestPayload

func (FaultDetailsModelRequestPayload) MarshalJSON

func (value FaultDetailsModelRequestPayload) MarshalJSON() ([]byte, error)

func (*FaultDetailsModelRequestPayload) UnmarshalJSON

func (value *FaultDetailsModelRequestPayload) UnmarshalJSON(data []byte) error

type FaultDetailsPluginRequiresNewerPayload

type FaultDetailsPluginRequiresNewerPayload struct {
	Required string `json:"required"`
}

func DefaultFaultDetailsPluginRequiresNewerPayload

func DefaultFaultDetailsPluginRequiresNewerPayload() FaultDetailsPluginRequiresNewerPayload

func (FaultDetailsPluginRequiresNewerPayload) MarshalJSON

func (value FaultDetailsPluginRequiresNewerPayload) MarshalJSON() ([]byte, error)

func (*FaultDetailsPluginRequiresNewerPayload) UnmarshalJSON

func (value *FaultDetailsPluginRequiresNewerPayload) UnmarshalJSON(data []byte) error

type FaultDetailsProjectRemovalPayload

type FaultDetailsProjectRemovalPayload struct {
	TasksActive          bool `json:"tasks_active"`
	TerminalsMayBeClosed bool `json:"terminals_may_be_closed"`
}

func DefaultFaultDetailsProjectRemovalPayload

func DefaultFaultDetailsProjectRemovalPayload() FaultDetailsProjectRemovalPayload

func (FaultDetailsProjectRemovalPayload) MarshalJSON

func (value FaultDetailsProjectRemovalPayload) MarshalJSON() ([]byte, error)

func (*FaultDetailsProjectRemovalPayload) UnmarshalJSON

func (value *FaultDetailsProjectRemovalPayload) UnmarshalJSON(data []byte) error

type FaultDetailsVersionMismatchPayload

type FaultDetailsVersionMismatchPayload struct {
	Controller         *string `json:"controller"`
	Host               *string `json:"host"`
	ControllerProtocol *uint16 `json:"controller_protocol"`
	HostProtocol       *uint16 `json:"host_protocol"`
	UpdateHost         bool    `json:"update_host"`
	Unverified         bool    `json:"unverified"`
}

func DefaultFaultDetailsVersionMismatchPayload

func DefaultFaultDetailsVersionMismatchPayload() FaultDetailsVersionMismatchPayload

func (FaultDetailsVersionMismatchPayload) MarshalJSON

func (value FaultDetailsVersionMismatchPayload) MarshalJSON() ([]byte, error)

func (*FaultDetailsVersionMismatchPayload) UnmarshalJSON

func (value *FaultDetailsVersionMismatchPayload) UnmarshalJSON(data []byte) error

type FeatureUse

type FeatureUse string

FeatureUse names one desktop feature whose uses are counted while usage metrics are on. The list is closed: an identifier carries no content, no user-chosen name and no session, project or host identity. The one open position is FeatureUsePluginPageOfficial, which the Node completes only with the name of a package it ships.

const (
	FeatureUsePageConversation  FeatureUse = "page.conversation"
	FeatureUsePageActivity      FeatureUse = "page.activity"
	FeatureUsePageFiles         FeatureUse = "page.files"
	FeatureUsePageGit           FeatureUse = "page.git"
	FeatureUsePageMarket        FeatureUse = "page.market"
	FeatureUsePageHost          FeatureUse = "page.host"
	FeatureUsePageSettings      FeatureUse = "page.settings"
	FeatureUsePageNotifications FeatureUse = "page.notifications"
	FeatureUsePageProject       FeatureUse = "page.project"
	// A package's own page: a package the application ships is named, any
	// other is only "third_party".
	FeatureUsePagePluginThirdParty FeatureUse = "page.plugin_page.third_party"
	FeatureUsePagePluginOfficial   FeatureUse = "page.plugin_page.official:"

	FeatureUseSettingsGeneral      FeatureUse = "settings.section.general"
	FeatureUseSettingsAppearance   FeatureUse = "settings.section.appearance"
	FeatureUseSettingsConversation FeatureUse = "settings.section.conversation"
	FeatureUseSettingsShortcuts    FeatureUse = "settings.section.shortcuts"
	FeatureUseSettingsDictation    FeatureUse = "settings.section.dictation"
	FeatureUseSettingsProviders    FeatureUse = "settings.section.providers"
	FeatureUseSettingsConnectors   FeatureUse = "settings.section.connectors"
	FeatureUseSettingsTeams        FeatureUse = "settings.section.teams"
	FeatureUseSettingsPlugins      FeatureUse = "settings.section.plugins"
	FeatureUseSettingsSkills       FeatureUse = "settings.section.skills"
	FeatureUseSettingsKnowledge    FeatureUse = "settings.section.knowledge"
	FeatureUseSettingsMemory       FeatureUse = "settings.section.memory"
	FeatureUseSettingsMedia        FeatureUse = "settings.section.media"
	FeatureUseSettingsDecision     FeatureUse = "settings.section.decision"
	FeatureUseSettingsSearch       FeatureUse = "settings.section.search"
	FeatureUseSettingsTerminal     FeatureUse = "settings.section.terminal"
	FeatureUseSettingsBrowser      FeatureUse = "settings.section.browser"
	FeatureUseSettingsComputer     FeatureUse = "settings.section.computer"
	FeatureUseSettingsConnections  FeatureUse = "settings.section.connections"
	FeatureUseSettingsHooks        FeatureUse = "settings.section.hooks"
	FeatureUseSettingsRuntime      FeatureUse = "settings.section.runtime"
	FeatureUseSettingsOCR          FeatureUse = "settings.section.ocr"
	FeatureUseSettingsPermissions  FeatureUse = "settings.section.permissions"
	FeatureUseSettingsBackup       FeatureUse = "settings.section.backup"
	FeatureUseSettingsAbout        FeatureUse = "settings.section.about"
	// A settings page a package contributes, never named.
	FeatureUseSettingsPluginPage FeatureUse = "settings.section.plugin_page"

	FeatureUsePanelBrowser   FeatureUse = "panel.tab.browser"
	FeatureUsePanelTerminal  FeatureUse = "panel.tab.terminal"
	FeatureUsePanelFiles     FeatureUse = "panel.tab.files"
	FeatureUsePanelGit       FeatureUse = "panel.tab.git"
	FeatureUsePanelHistory   FeatureUse = "panel.tab.history"
	FeatureUsePanelDocuments FeatureUse = "panel.tab.documents"
	FeatureUsePanelArtifact  FeatureUse = "panel.tab.artifact"
	FeatureUsePanelSubagent  FeatureUse = "panel.tab.subagent"

	FeatureUsePaneSplit FeatureUse = "panes.split"

	// One submission counts composer.submit, each flag that applies, its
	// mode and its permission level: marginal counts, never a combination.
	FeatureUseComposerSubmit            FeatureUse = "composer.submit"
	FeatureUseComposerHasAttachment     FeatureUse = "composer.submit.has_attachment"
	FeatureUseComposerHasReference      FeatureUse = "composer.submit.has_reference"
	FeatureUseComposerDictated          FeatureUse = "composer.submit.dictated"
	FeatureUseComposerQueued            FeatureUse = "composer.submit.queued"
	FeatureUseComposerGuided            FeatureUse = "composer.submit.guided"
	FeatureUseComposerEdited            FeatureUse = "composer.submit.edited"
	FeatureUseComposerModeCode          FeatureUse = "composer.mode.code"
	FeatureUseComposerModePlan          FeatureUse = "composer.mode.plan"
	FeatureUseComposerModeFlagship      FeatureUse = "composer.mode.flagship"
	FeatureUseComposerPermissionAsk     FeatureUse = "composer.permission.ask"
	FeatureUseComposerPermissionProject FeatureUse = "composer.permission.project"
	FeatureUseComposerPermissionFull    FeatureUse = "composer.permission.full"
	FeatureUseComposerModelPicker       FeatureUse = "composer.model_picker"

	FeatureUseSearchPalette       FeatureUse = "search.palette"
	FeatureUseReadAloudOSVoice    FeatureUse = "read_aloud.os_voice"
	FeatureUseReadAloudModelVoice FeatureUse = "read_aloud.model_voice"
	FeatureUseDictationStart      FeatureUse = "dictation.start"
	FeatureUseSessionExport       FeatureUse = "session.export"
	FeatureUseThemeBuiltin        FeatureUse = "theme.change.builtin"
	FeatureUseThemePackage        FeatureUse = "theme.change.package"

	// A settings family whose save was sent, never its values.
	FeatureUseSaveProvider        FeatureUse = "settings.save.provider"
	FeatureUseSaveTeam            FeatureUse = "settings.save.team"
	FeatureUseSaveRole            FeatureUse = "settings.save.role"
	FeatureUseSaveConnector       FeatureUse = "settings.save.connector"
	FeatureUseSaveMCP             FeatureUse = "settings.save.mcp"
	FeatureUseSavePlugin          FeatureUse = "settings.save.plugin"
	FeatureUseSaveHooks           FeatureUse = "settings.save.hooks"
	FeatureUseSaveBackup          FeatureUse = "settings.save.backup"
	FeatureUseSaveTerminal        FeatureUse = "settings.save.terminal"
	FeatureUseSaveMedia           FeatureUse = "settings.save.media"
	FeatureUseSavePower           FeatureUse = "settings.save.power"
	FeatureUseSaveTelemetry       FeatureUse = "settings.save.telemetry"
	FeatureUseSaveNetwork         FeatureUse = "settings.save.network"
	FeatureUseSaveSandbox         FeatureUse = "settings.save.sandbox"
	FeatureUseSaveSearch          FeatureUse = "settings.save.search"
	FeatureUseSaveCompaction      FeatureUse = "settings.save.compaction"
	FeatureUseSavePython          FeatureUse = "settings.save.python"
	FeatureUseSaveLocalModels     FeatureUse = "settings.save.local_models"
	FeatureUseSaveCodeIndex       FeatureUse = "settings.save.code_index"
	FeatureUseSaveKnowledge       FeatureUse = "settings.save.knowledge"
	FeatureUseSaveSSH             FeatureUse = "settings.save.ssh"
	FeatureUseSaveDatabase        FeatureUse = "settings.save.database"
	FeatureUseSaveComputer        FeatureUse = "settings.save.computer"
	FeatureUseSaveExternalBrowser FeatureUse = "settings.save.external_browser"
	FeatureUseSaveMemory          FeatureUse = "settings.save.memory"
)

func FeatureUses

func FeatureUses() []FeatureUse

FeatureUses lists the fixed identifiers. FeatureUsePagePluginOfficial is not among them: it is a prefix completed by a shipped package's name.

func (FeatureUse) Listed

func (feature FeatureUse) Listed() bool

Listed reports whether the identifier is one of the fixed ones.

func (FeatureUse) OfficialPluginPage

func (feature FeatureUse) OfficialPluginPage() (string, bool)

OfficialPluginPage returns the package named by an official plugin page identifier. Whether a package of that name ships is the Node's to decide.

type FileBrowserAction

type FileBrowserAction struct {
	Kind string
	Data any
}

func (FileBrowserAction) MarshalJSON

func (value FileBrowserAction) MarshalJSON() ([]byte, error)

func (*FileBrowserAction) UnmarshalJSON

func (value *FileBrowserAction) UnmarshalJSON(data []byte) error

type FileBrowserActionCreateDirectoryPayload

type FileBrowserActionCreateDirectoryPayload struct {
	Path string `json:"path"`
}

func DefaultFileBrowserActionCreateDirectoryPayload

func DefaultFileBrowserActionCreateDirectoryPayload() FileBrowserActionCreateDirectoryPayload

func (FileBrowserActionCreateDirectoryPayload) MarshalJSON

func (value FileBrowserActionCreateDirectoryPayload) MarshalJSON() ([]byte, error)

func (*FileBrowserActionCreateDirectoryPayload) UnmarshalJSON

func (value *FileBrowserActionCreateDirectoryPayload) UnmarshalJSON(data []byte) error

type FileBrowserActionRenamePayload

type FileBrowserActionRenamePayload struct {
	From string `json:"from"`
	To   string `json:"to"`
}

func DefaultFileBrowserActionRenamePayload

func DefaultFileBrowserActionRenamePayload() FileBrowserActionRenamePayload

func (FileBrowserActionRenamePayload) MarshalJSON

func (value FileBrowserActionRenamePayload) MarshalJSON() ([]byte, error)

func (*FileBrowserActionRenamePayload) UnmarshalJSON

func (value *FileBrowserActionRenamePayload) UnmarshalJSON(data []byte) error

type FileBrowserActionTransferPayload

type FileBrowserActionTransferPayload struct {
	Paths       []string            `json:"paths"`
	Destination string              `json:"destination"`
	Cut         bool                `json:"cut"`
	Conflict    FileBrowserConflict `json:"conflict"`
}

func DefaultFileBrowserActionTransferPayload

func DefaultFileBrowserActionTransferPayload() FileBrowserActionTransferPayload

func (FileBrowserActionTransferPayload) MarshalJSON

func (value FileBrowserActionTransferPayload) MarshalJSON() ([]byte, error)

func (*FileBrowserActionTransferPayload) UnmarshalJSON

func (value *FileBrowserActionTransferPayload) UnmarshalJSON(data []byte) error

type FileBrowserActionTrashPayload

type FileBrowserActionTrashPayload struct {
	Paths []string `json:"paths"`
}

func DefaultFileBrowserActionTrashPayload

func DefaultFileBrowserActionTrashPayload() FileBrowserActionTrashPayload

func (FileBrowserActionTrashPayload) MarshalJSON

func (value FileBrowserActionTrashPayload) MarshalJSON() ([]byte, error)

func (*FileBrowserActionTrashPayload) UnmarshalJSON

func (value *FileBrowserActionTrashPayload) UnmarshalJSON(data []byte) error

type FileBrowserConflict

type FileBrowserConflict string
const (
	FileBrowserConflictStop     FileBrowserConflict = "stop"
	FileBrowserConflictReplace  FileBrowserConflict = "replace"
	FileBrowserConflictKeepBoth FileBrowserConflict = "keep_both"
)

func (FileBrowserConflict) MarshalJSON

func (value FileBrowserConflict) MarshalJSON() ([]byte, error)

func (FileBrowserConflict) MarshalText

func (value FileBrowserConflict) MarshalText() ([]byte, error)

func (*FileBrowserConflict) UnmarshalJSON

func (value *FileBrowserConflict) UnmarshalJSON(data []byte) error

func (*FileBrowserConflict) UnmarshalText

func (value *FileBrowserConflict) UnmarshalText(data []byte) error

type FileBrowserListing

type FileBrowserListing struct {
	Separator Char                  `json:"separator"`
	Locations []FileBrowserLocation `json:"locations"`
	Parent    *string               `json:"parent"`
	Directory Directory             `json:"directory"`
}

func DefaultFileBrowserListing

func DefaultFileBrowserListing() FileBrowserListing

func (FileBrowserListing) MarshalJSON

func (value FileBrowserListing) MarshalJSON() ([]byte, error)

func (*FileBrowserListing) UnmarshalJSON

func (value *FileBrowserListing) UnmarshalJSON(data []byte) error

type FileBrowserLocation

type FileBrowserLocation struct {
	Medium *FileBrowserMedium      `json:"medium,omitempty"`
	Kind   FileBrowserLocationKind `json:"kind"`
	Name   string                  `json:"name"`
	Path   string                  `json:"path"`
}

func DefaultFileBrowserLocation

func DefaultFileBrowserLocation() FileBrowserLocation

func (FileBrowserLocation) MarshalJSON

func (value FileBrowserLocation) MarshalJSON() ([]byte, error)

func (*FileBrowserLocation) UnmarshalJSON

func (value *FileBrowserLocation) UnmarshalJSON(data []byte) error

type FileBrowserLocationKind

type FileBrowserLocationKind string
const (
	FileBrowserLocationKindHome         FileBrowserLocationKind = "home"
	FileBrowserLocationKindDesktop      FileBrowserLocationKind = "desktop"
	FileBrowserLocationKindDocuments    FileBrowserLocationKind = "documents"
	FileBrowserLocationKindDownloads    FileBrowserLocationKind = "downloads"
	FileBrowserLocationKindApplications FileBrowserLocationKind = "applications"
	FileBrowserLocationKindVolume       FileBrowserLocationKind = "volume"
	FileBrowserLocationKindRoot         FileBrowserLocationKind = "root"
)

func (FileBrowserLocationKind) MarshalJSON

func (value FileBrowserLocationKind) MarshalJSON() ([]byte, error)

func (FileBrowserLocationKind) MarshalText

func (value FileBrowserLocationKind) MarshalText() ([]byte, error)

func (*FileBrowserLocationKind) UnmarshalJSON

func (value *FileBrowserLocationKind) UnmarshalJSON(data []byte) error

func (*FileBrowserLocationKind) UnmarshalText

func (value *FileBrowserLocationKind) UnmarshalText(data []byte) error

type FileBrowserMedium

type FileBrowserMedium string
const (
	FileBrowserMediumInternal FileBrowserMedium = "internal"
	FileBrowserMediumExternal FileBrowserMedium = "external"
	FileBrowserMediumNetwork  FileBrowserMedium = "network"
)

func (FileBrowserMedium) MarshalJSON

func (value FileBrowserMedium) MarshalJSON() ([]byte, error)

func (FileBrowserMedium) MarshalText

func (value FileBrowserMedium) MarshalText() ([]byte, error)

func (*FileBrowserMedium) UnmarshalJSON

func (value *FileBrowserMedium) UnmarshalJSON(data []byte) error

func (*FileBrowserMedium) UnmarshalText

func (value *FileBrowserMedium) UnmarshalText(data []byte) error

type FileBrowserOutcome

type FileBrowserOutcome struct {
	Path        string  `json:"path"`
	Destination *string `json:"destination"`
	Error       *Fault  `json:"error"`
}

func DefaultFileBrowserOutcome

func DefaultFileBrowserOutcome() FileBrowserOutcome

func (FileBrowserOutcome) MarshalJSON

func (value FileBrowserOutcome) MarshalJSON() ([]byte, error)

func (*FileBrowserOutcome) UnmarshalJSON

func (value *FileBrowserOutcome) UnmarshalJSON(data []byte) error

type FileChange

type FileChange struct {
	Kind string
	Data any
}

func (FileChange) MarshalJSON

func (value FileChange) MarshalJSON() ([]byte, error)

func (*FileChange) UnmarshalJSON

func (value *FileChange) UnmarshalJSON(data []byte) error

type FileChangeCreatePayload

type FileChangeCreatePayload struct {
	Path string `json:"path"`
	Text string `json:"text"`
}

func DefaultFileChangeCreatePayload

func DefaultFileChangeCreatePayload() FileChangeCreatePayload

func (FileChangeCreatePayload) MarshalJSON

func (value FileChangeCreatePayload) MarshalJSON() ([]byte, error)

func (*FileChangeCreatePayload) UnmarshalJSON

func (value *FileChangeCreatePayload) UnmarshalJSON(data []byte) error

type FileChangeDeletePayload

type FileChangeDeletePayload struct {
	Path             string `json:"path"`
	ExpectedRevision string `json:"expected_revision"`
}

func DefaultFileChangeDeletePayload

func DefaultFileChangeDeletePayload() FileChangeDeletePayload

func (FileChangeDeletePayload) MarshalJSON

func (value FileChangeDeletePayload) MarshalJSON() ([]byte, error)

func (*FileChangeDeletePayload) UnmarshalJSON

func (value *FileChangeDeletePayload) UnmarshalJSON(data []byte) error

type FileChangeEditPayload

type FileChangeEditPayload struct {
	Path             string     `json:"path"`
	ExpectedRevision string     `json:"expected_revision"`
	Edits            []FileEdit `json:"edits"`
}

func DefaultFileChangeEditPayload

func DefaultFileChangeEditPayload() FileChangeEditPayload

func (FileChangeEditPayload) MarshalJSON

func (value FileChangeEditPayload) MarshalJSON() ([]byte, error)

func (*FileChangeEditPayload) UnmarshalJSON

func (value *FileChangeEditPayload) UnmarshalJSON(data []byte) error

type FileChangeMovePayload

type FileChangeMovePayload struct {
	Path             string `json:"path"`
	Destination      string `json:"destination"`
	ExpectedRevision string `json:"expected_revision"`
}

func DefaultFileChangeMovePayload

func DefaultFileChangeMovePayload() FileChangeMovePayload

func (FileChangeMovePayload) MarshalJSON

func (value FileChangeMovePayload) MarshalJSON() ([]byte, error)

func (*FileChangeMovePayload) UnmarshalJSON

func (value *FileChangeMovePayload) UnmarshalJSON(data []byte) error

type FileChangeWritePayload

type FileChangeWritePayload struct {
	Path             string `json:"path"`
	Text             string `json:"text"`
	ExpectedRevision string `json:"expected_revision"`
}

func DefaultFileChangeWritePayload

func DefaultFileChangeWritePayload() FileChangeWritePayload

func (FileChangeWritePayload) MarshalJSON

func (value FileChangeWritePayload) MarshalJSON() ([]byte, error)

func (*FileChangeWritePayload) UnmarshalJSON

func (value *FileChangeWritePayload) UnmarshalJSON(data []byte) error

type FileChanges

type FileChanges struct {
	Status ChangesStatus `json:"status"`
	Files  []ChangedFile `json:"files"`
}

func DefaultFileChanges

func DefaultFileChanges() FileChanges

func (FileChanges) MarshalJSON

func (value FileChanges) MarshalJSON() ([]byte, error)

func (*FileChanges) UnmarshalJSON

func (value *FileChanges) UnmarshalJSON(data []byte) error

type FileContent

type FileContent struct {
	Path      string  `json:"path"`
	Text      string  `json:"text"`
	Size      uint64  `json:"size"`
	Truncated bool    `json:"truncated"`
	Revision  *string `json:"revision"`
}

func DefaultFileContent

func DefaultFileContent() FileContent

func (FileContent) MarshalJSON

func (value FileContent) MarshalJSON() ([]byte, error)

func (*FileContent) UnmarshalJSON

func (value *FileContent) UnmarshalJSON(data []byte) error

type FileDownload

type FileDownload struct {
	Stream    StreamID           `json:"stream"`
	Worktree  WorktreeID         `json:"worktree"`
	Path      string             `json:"path"`
	Size      uint64             `json:"size"`
	Revision  string             `json:"revision"`
	Stamp     string             `json:"stamp"`
	Thumbnail *ThumbnailTransfer `json:"thumbnail,omitempty"`
}

func DefaultFileDownload

func DefaultFileDownload() FileDownload

func (FileDownload) MarshalJSON

func (value FileDownload) MarshalJSON() ([]byte, error)

func (*FileDownload) UnmarshalJSON

func (value *FileDownload) UnmarshalJSON(data []byte) error

type FileEdit

type FileEdit struct {
	OldText    string `json:"old_text"`
	NewText    string `json:"new_text"`
	ReplaceAll bool   `json:"replace_all,omitempty"`
}

func DefaultFileEdit

func DefaultFileEdit() FileEdit

func (FileEdit) MarshalJSON

func (value FileEdit) MarshalJSON() ([]byte, error)

func (*FileEdit) UnmarshalJSON

func (value *FileEdit) UnmarshalJSON(data []byte) error

type FileEntry

type FileEntry struct {
	ModifiedMs *uint64   `json:"modified_ms,omitempty"`
	Name       string    `json:"name"`
	Kind       EntryKind `json:"kind"`
	Size       uint64    `json:"size"`
}

func DefaultFileEntry

func DefaultFileEntry() FileEntry

func (FileEntry) MarshalJSON

func (value FileEntry) MarshalJSON() ([]byte, error)

func (*FileEntry) UnmarshalJSON

func (value *FileEntry) UnmarshalJSON(data []byte) error

type FileExcerpt

type FileExcerpt struct {
	Hunks   []FileHunk `json:"hunks"`
	Omitted uint64     `json:"omitted"`
}

func DefaultFileExcerpt

func DefaultFileExcerpt() FileExcerpt

func (FileExcerpt) MarshalJSON

func (value FileExcerpt) MarshalJSON() ([]byte, error)

func (*FileExcerpt) UnmarshalJSON

func (value *FileExcerpt) UnmarshalJSON(data []byte) error

type FileHunk

type FileHunk struct {
	Lines     []FileLine `json:"lines"`
	Shortened bool       `json:"shortened"`
}

func DefaultFileHunk

func DefaultFileHunk() FileHunk

func (FileHunk) MarshalJSON

func (value FileHunk) MarshalJSON() ([]byte, error)

func (*FileHunk) UnmarshalJSON

func (value *FileHunk) UnmarshalJSON(data []byte) error

type FileImage

type FileImage struct {
	Path       string        `json:"path"`
	Revision   string        `json:"revision"`
	Source     ImageFacts    `json:"source"`
	Sent       *ImageFacts   `json:"sent,omitempty"`
	InlineData []InlineImage `json:"inline_data"`
}

func DefaultFileImage

func DefaultFileImage() FileImage

func (FileImage) MarshalJSON

func (value FileImage) MarshalJSON() ([]byte, error)

func (*FileImage) UnmarshalJSON

func (value *FileImage) UnmarshalJSON(data []byte) error

type FileLine

type FileLine struct {
	Number uint64 `json:"number"`
	Text   string `json:"text"`
}

func DefaultFileLine

func DefaultFileLine() FileLine

func (FileLine) MarshalJSON

func (value FileLine) MarshalJSON() ([]byte, error)

func (*FileLine) UnmarshalJSON

func (value *FileLine) UnmarshalJSON(data []byte) error

type FileLines

type FileLines struct {
	Path       string     `json:"path"`
	Lines      []FileLine `json:"lines"`
	Size       uint64     `json:"size"`
	Revision   string     `json:"revision"`
	Offset     uint64     `json:"offset"`
	NextOffset *uint64    `json:"next_offset"`
	Truncated  bool       `json:"truncated"`
}

func DefaultFileLines

func DefaultFileLines() FileLines

func (FileLines) MarshalJSON

func (value FileLines) MarshalJSON() ([]byte, error)

func (*FileLines) UnmarshalJSON

func (value *FileLines) UnmarshalJSON(data []byte) error

type FileNames

type FileNames struct {
	Paths       []string           `json:"paths"`
	Visited     uint64             `json:"visited"`
	Skipped     uint64             `json:"skipped"`
	Truncated   bool               `json:"truncated"`
	Partial     bool               `json:"partial"`
	Offset      uint64             `json:"offset"`
	NextOffset  *uint64            `json:"next_offset"`
	Diagnostics []SearchDiagnostic `json:"diagnostics"`
}

func DefaultFileNames

func DefaultFileNames() FileNames

func (FileNames) MarshalJSON

func (value FileNames) MarshalJSON() ([]byte, error)

func (*FileNames) UnmarshalJSON

func (value *FileNames) UnmarshalJSON(data []byte) error

type FileSearch

type FileSearch struct {
	Query         string     `json:"query"`
	Regex         bool       `json:"regex"`
	CaseSensitive bool       `json:"case_sensitive"`
	Globs         []string   `json:"globs"`
	Path          string     `json:"path"`
	Mode          SearchMode `json:"mode"`
	Context       uint64     `json:"context"`
	FileType      *string    `json:"type"`
	Limit         uint64     `json:"limit"`
	Offset        uint64     `json:"offset"`
	Multiline     bool       `json:"multiline"`
}

func DefaultFileSearch

func DefaultFileSearch() FileSearch

func (FileSearch) MarshalJSON

func (value FileSearch) MarshalJSON() ([]byte, error)

func (*FileSearch) UnmarshalJSON

func (value *FileSearch) UnmarshalJSON(data []byte) error

type FileUpload

type FileUpload struct {
	Stream StreamID       `json:"stream"`
	Spec   FileUploadSpec `json:"spec"`
}

func DefaultFileUpload

func DefaultFileUpload() FileUpload

func (FileUpload) MarshalJSON

func (value FileUpload) MarshalJSON() ([]byte, error)

func (*FileUpload) UnmarshalJSON

func (value *FileUpload) UnmarshalJSON(data []byte) error

type FileUploadSpec

type FileUploadSpec struct {
	Worktree         WorktreeID `json:"worktree"`
	Path             string     `json:"path"`
	Size             uint64     `json:"size"`
	Revision         string     `json:"revision"`
	ExpectedRevision *string    `json:"expected_revision"`
}

func DefaultFileUploadSpec

func DefaultFileUploadSpec() FileUploadSpec

func (FileUploadSpec) MarshalJSON

func (value FileUploadSpec) MarshalJSON() ([]byte, error)

func (*FileUploadSpec) UnmarshalJSON

func (value *FileUploadSpec) UnmarshalJSON(data []byte) error

type FileWritten

type FileWritten struct {
	Path     string       `json:"path"`
	Revision string       `json:"revision"`
	Size     uint64       `json:"size"`
	Excerpt  *FileExcerpt `json:"excerpt,omitempty"`
}

func DefaultFileWritten

func DefaultFileWritten() FileWritten

func (FileWritten) MarshalJSON

func (value FileWritten) MarshalJSON() ([]byte, error)

func (*FileWritten) UnmarshalJSON

func (value *FileWritten) UnmarshalJSON(data []byte) error

type GitAction

type GitAction struct {
	Kind string
	Data any
}

func (GitAction) MarshalJSON

func (value GitAction) MarshalJSON() ([]byte, error)

func (*GitAction) UnmarshalJSON

func (value *GitAction) UnmarshalJSON(data []byte) error

type GitActionAddRemotePayload

type GitActionAddRemotePayload struct {
	Name string `json:"name"`
	Url  string `json:"url"`
}

func DefaultGitActionAddRemotePayload

func DefaultGitActionAddRemotePayload() GitActionAddRemotePayload

func (GitActionAddRemotePayload) MarshalJSON

func (value GitActionAddRemotePayload) MarshalJSON() ([]byte, error)

func (*GitActionAddRemotePayload) UnmarshalJSON

func (value *GitActionAddRemotePayload) UnmarshalJSON(data []byte) error

type GitActionApplyStashPayload

type GitActionApplyStashPayload struct {
	Commit string `json:"commit"`
	Pop    bool   `json:"pop"`
}

func DefaultGitActionApplyStashPayload

func DefaultGitActionApplyStashPayload() GitActionApplyStashPayload

func (GitActionApplyStashPayload) MarshalJSON

func (value GitActionApplyStashPayload) MarshalJSON() ([]byte, error)

func (*GitActionApplyStashPayload) UnmarshalJSON

func (value *GitActionApplyStashPayload) UnmarshalJSON(data []byte) error

type GitActionCherryPickPayload

type GitActionCherryPickPayload struct {
	Commit string `json:"commit"`
}

func DefaultGitActionCherryPickPayload

func DefaultGitActionCherryPickPayload() GitActionCherryPickPayload

func (GitActionCherryPickPayload) MarshalJSON

func (value GitActionCherryPickPayload) MarshalJSON() ([]byte, error)

func (*GitActionCherryPickPayload) UnmarshalJSON

func (value *GitActionCherryPickPayload) UnmarshalJSON(data []byte) error

type GitActionCreateTagPayload

type GitActionCreateTagPayload struct {
	Name    string  `json:"name"`
	Commit  string  `json:"commit"`
	Message *string `json:"message"`
}

func DefaultGitActionCreateTagPayload

func DefaultGitActionCreateTagPayload() GitActionCreateTagPayload

func (GitActionCreateTagPayload) MarshalJSON

func (value GitActionCreateTagPayload) MarshalJSON() ([]byte, error)

func (*GitActionCreateTagPayload) UnmarshalJSON

func (value *GitActionCreateTagPayload) UnmarshalJSON(data []byte) error

type GitActionDeleteRemoteBranchPayload

type GitActionDeleteRemoteBranchPayload struct {
	Branch string `json:"branch"`
	Commit string `json:"commit"`
}

func DefaultGitActionDeleteRemoteBranchPayload

func DefaultGitActionDeleteRemoteBranchPayload() GitActionDeleteRemoteBranchPayload

func (GitActionDeleteRemoteBranchPayload) MarshalJSON

func (value GitActionDeleteRemoteBranchPayload) MarshalJSON() ([]byte, error)

func (*GitActionDeleteRemoteBranchPayload) UnmarshalJSON

func (value *GitActionDeleteRemoteBranchPayload) UnmarshalJSON(data []byte) error

type GitActionDeleteTagPayload

type GitActionDeleteTagPayload struct {
	Name   string  `json:"name"`
	Commit string  `json:"commit"`
	Remote *string `json:"remote"`
}

func DefaultGitActionDeleteTagPayload

func DefaultGitActionDeleteTagPayload() GitActionDeleteTagPayload

func (GitActionDeleteTagPayload) MarshalJSON

func (value GitActionDeleteTagPayload) MarshalJSON() ([]byte, error)

func (*GitActionDeleteTagPayload) UnmarshalJSON

func (value *GitActionDeleteTagPayload) UnmarshalJSON(data []byte) error

type GitActionDiscardAllPayload

type GitActionDiscardAllPayload struct {
	Paths []string `json:"paths"`
}

func DefaultGitActionDiscardAllPayload

func DefaultGitActionDiscardAllPayload() GitActionDiscardAllPayload

func (GitActionDiscardAllPayload) MarshalJSON

func (value GitActionDiscardAllPayload) MarshalJSON() ([]byte, error)

func (*GitActionDiscardAllPayload) UnmarshalJSON

func (value *GitActionDiscardAllPayload) UnmarshalJSON(data []byte) error

type GitActionDiscardPayload

type GitActionDiscardPayload struct {
	Paths []string `json:"paths"`
}

func DefaultGitActionDiscardPayload

func DefaultGitActionDiscardPayload() GitActionDiscardPayload

func (GitActionDiscardPayload) MarshalJSON

func (value GitActionDiscardPayload) MarshalJSON() ([]byte, error)

func (*GitActionDiscardPayload) UnmarshalJSON

func (value *GitActionDiscardPayload) UnmarshalJSON(data []byte) error

type GitActionDropAllStashesPayload

type GitActionDropAllStashesPayload struct {
	Commits []string `json:"commits"`
}

func DefaultGitActionDropAllStashesPayload

func DefaultGitActionDropAllStashesPayload() GitActionDropAllStashesPayload

func (GitActionDropAllStashesPayload) MarshalJSON

func (value GitActionDropAllStashesPayload) MarshalJSON() ([]byte, error)

func (*GitActionDropAllStashesPayload) UnmarshalJSON

func (value *GitActionDropAllStashesPayload) UnmarshalJSON(data []byte) error

type GitActionDropStashPayload

type GitActionDropStashPayload struct {
	Commit string `json:"commit"`
}

func DefaultGitActionDropStashPayload

func DefaultGitActionDropStashPayload() GitActionDropStashPayload

func (GitActionDropStashPayload) MarshalJSON

func (value GitActionDropStashPayload) MarshalJSON() ([]byte, error)

func (*GitActionDropStashPayload) UnmarshalJSON

func (value *GitActionDropStashPayload) UnmarshalJSON(data []byte) error

type GitActionFetchPayload

type GitActionFetchPayload struct {
	Remote *string `json:"remote"`
	Prune  bool    `json:"prune"`
	All    bool    `json:"all"`
}

func DefaultGitActionFetchPayload

func DefaultGitActionFetchPayload() GitActionFetchPayload

func (GitActionFetchPayload) MarshalJSON

func (value GitActionFetchPayload) MarshalJSON() ([]byte, error)

func (*GitActionFetchPayload) UnmarshalJSON

func (value *GitActionFetchPayload) UnmarshalJSON(data []byte) error

type GitActionIgnorePayload

type GitActionIgnorePayload struct {
	Paths       []string `json:"paths"`
	Directories bool     `json:"directories"`
}

func DefaultGitActionIgnorePayload

func DefaultGitActionIgnorePayload() GitActionIgnorePayload

func (GitActionIgnorePayload) MarshalJSON

func (value GitActionIgnorePayload) MarshalJSON() ([]byte, error)

func (*GitActionIgnorePayload) UnmarshalJSON

func (value *GitActionIgnorePayload) UnmarshalJSON(data []byte) error

type GitActionMergePayload

type GitActionMergePayload struct {
	Commit string `json:"commit"`
}

func DefaultGitActionMergePayload

func DefaultGitActionMergePayload() GitActionMergePayload

func (GitActionMergePayload) MarshalJSON

func (value GitActionMergePayload) MarshalJSON() ([]byte, error)

func (*GitActionMergePayload) UnmarshalJSON

func (value *GitActionMergePayload) UnmarshalJSON(data []byte) error

type GitActionPruneWorktreePayload

type GitActionPruneWorktreePayload struct {
	Path string `json:"path"`
}

func DefaultGitActionPruneWorktreePayload

func DefaultGitActionPruneWorktreePayload() GitActionPruneWorktreePayload

func (GitActionPruneWorktreePayload) MarshalJSON

func (value GitActionPruneWorktreePayload) MarshalJSON() ([]byte, error)

func (*GitActionPruneWorktreePayload) UnmarshalJSON

func (value *GitActionPruneWorktreePayload) UnmarshalJSON(data []byte) error

type GitActionPullPayload

type GitActionPullPayload struct {
	Rebase bool    `json:"rebase"`
	Remote *string `json:"remote"`
	Branch *string `json:"branch"`
}

func DefaultGitActionPullPayload

func DefaultGitActionPullPayload() GitActionPullPayload

func (GitActionPullPayload) MarshalJSON

func (value GitActionPullPayload) MarshalJSON() ([]byte, error)

func (*GitActionPullPayload) UnmarshalJSON

func (value *GitActionPullPayload) UnmarshalJSON(data []byte) error

type GitActionPushPayload

type GitActionPushPayload struct {
	Remote  *string `json:"remote"`
	Publish bool    `json:"publish"`
	Force   bool    `json:"force"`
}

func DefaultGitActionPushPayload

func DefaultGitActionPushPayload() GitActionPushPayload

func (GitActionPushPayload) MarshalJSON

func (value GitActionPushPayload) MarshalJSON() ([]byte, error)

func (*GitActionPushPayload) UnmarshalJSON

func (value *GitActionPushPayload) UnmarshalJSON(data []byte) error

type GitActionPushTagsPayload

type GitActionPushTagsPayload struct {
	Remote string `json:"remote"`
}

func DefaultGitActionPushTagsPayload

func DefaultGitActionPushTagsPayload() GitActionPushTagsPayload

func (GitActionPushTagsPayload) MarshalJSON

func (value GitActionPushTagsPayload) MarshalJSON() ([]byte, error)

func (*GitActionPushTagsPayload) UnmarshalJSON

func (value *GitActionPushTagsPayload) UnmarshalJSON(data []byte) error

type GitActionRebasePayload

type GitActionRebasePayload struct {
	Commit string `json:"commit"`
}

func DefaultGitActionRebasePayload

func DefaultGitActionRebasePayload() GitActionRebasePayload

func (GitActionRebasePayload) MarshalJSON

func (value GitActionRebasePayload) MarshalJSON() ([]byte, error)

func (*GitActionRebasePayload) UnmarshalJSON

func (value *GitActionRebasePayload) UnmarshalJSON(data []byte) error

type GitActionRemoveRemotePayload

type GitActionRemoveRemotePayload struct {
	Name string `json:"name"`
}

func DefaultGitActionRemoveRemotePayload

func DefaultGitActionRemoveRemotePayload() GitActionRemoveRemotePayload

func (GitActionRemoveRemotePayload) MarshalJSON

func (value GitActionRemoveRemotePayload) MarshalJSON() ([]byte, error)

func (*GitActionRemoveRemotePayload) UnmarshalJSON

func (value *GitActionRemoveRemotePayload) UnmarshalJSON(data []byte) error

type GitActionStartBranchPayload

type GitActionStartBranchPayload struct {
	Name string `json:"name"`
}

func DefaultGitActionStartBranchPayload

func DefaultGitActionStartBranchPayload() GitActionStartBranchPayload

func (GitActionStartBranchPayload) MarshalJSON

func (value GitActionStartBranchPayload) MarshalJSON() ([]byte, error)

func (*GitActionStartBranchPayload) UnmarshalJSON

func (value *GitActionStartBranchPayload) UnmarshalJSON(data []byte) error

type GitActionStashPayload

type GitActionStashPayload struct {
	Mode GitStashMode `json:"mode"`
}

func DefaultGitActionStashPayload

func DefaultGitActionStashPayload() GitActionStashPayload

func (GitActionStashPayload) MarshalJSON

func (value GitActionStashPayload) MarshalJSON() ([]byte, error)

func (*GitActionStashPayload) UnmarshalJSON

func (value *GitActionStashPayload) UnmarshalJSON(data []byte) error

type GitActionSwitchRemotePayload

type GitActionSwitchRemotePayload struct {
	Branch string `json:"branch"`
}

func DefaultGitActionSwitchRemotePayload

func DefaultGitActionSwitchRemotePayload() GitActionSwitchRemotePayload

func (GitActionSwitchRemotePayload) MarshalJSON

func (value GitActionSwitchRemotePayload) MarshalJSON() ([]byte, error)

func (*GitActionSwitchRemotePayload) UnmarshalJSON

func (value *GitActionSwitchRemotePayload) UnmarshalJSON(data []byte) error

type GitActionSwitchStashingPayload

type GitActionSwitchStashingPayload struct {
	Branch string `json:"branch"`
	Commit string `json:"commit"`
}

func DefaultGitActionSwitchStashingPayload

func DefaultGitActionSwitchStashingPayload() GitActionSwitchStashingPayload

func (GitActionSwitchStashingPayload) MarshalJSON

func (value GitActionSwitchStashingPayload) MarshalJSON() ([]byte, error)

func (*GitActionSwitchStashingPayload) UnmarshalJSON

func (value *GitActionSwitchStashingPayload) UnmarshalJSON(data []byte) error

type GitActionSwitchTrackingPayload

type GitActionSwitchTrackingPayload struct {
	Remote string `json:"remote"`
	Local  string `json:"local"`
	Stash  bool   `json:"stash"`
}

func DefaultGitActionSwitchTrackingPayload

func DefaultGitActionSwitchTrackingPayload() GitActionSwitchTrackingPayload

func (GitActionSwitchTrackingPayload) MarshalJSON

func (value GitActionSwitchTrackingPayload) MarshalJSON() ([]byte, error)

func (*GitActionSwitchTrackingPayload) UnmarshalJSON

func (value *GitActionSwitchTrackingPayload) UnmarshalJSON(data []byte) error

type GitActionSyncPayload

type GitActionSyncPayload struct {
	Rebase bool `json:"rebase"`
}

func DefaultGitActionSyncPayload

func DefaultGitActionSyncPayload() GitActionSyncPayload

func (GitActionSyncPayload) MarshalJSON

func (value GitActionSyncPayload) MarshalJSON() ([]byte, error)

func (*GitActionSyncPayload) UnmarshalJSON

func (value *GitActionSyncPayload) UnmarshalJSON(data []byte) error

type GitActionTrackPayload

type GitActionTrackPayload struct {
	Branch string `json:"branch"`
}

func DefaultGitActionTrackPayload

func DefaultGitActionTrackPayload() GitActionTrackPayload

func (GitActionTrackPayload) MarshalJSON

func (value GitActionTrackPayload) MarshalJSON() ([]byte, error)

func (*GitActionTrackPayload) UnmarshalJSON

func (value *GitActionTrackPayload) UnmarshalJSON(data []byte) error

type GitActionTrashPayload

type GitActionTrashPayload struct {
	Paths []string `json:"paths"`
}

func DefaultGitActionTrashPayload

func DefaultGitActionTrashPayload() GitActionTrashPayload

func (GitActionTrashPayload) MarshalJSON

func (value GitActionTrashPayload) MarshalJSON() ([]byte, error)

func (*GitActionTrashPayload) UnmarshalJSON

func (value *GitActionTrashPayload) UnmarshalJSON(data []byte) error

type GitAfterCommit

type GitAfterCommit string
const (
	GitAfterCommitNone GitAfterCommit = "none"
	GitAfterCommitPush GitAfterCommit = "push"
	GitAfterCommitSync GitAfterCommit = "sync"
)

func (GitAfterCommit) MarshalJSON

func (value GitAfterCommit) MarshalJSON() ([]byte, error)

func (GitAfterCommit) MarshalText

func (value GitAfterCommit) MarshalText() ([]byte, error)

func (*GitAfterCommit) UnmarshalJSON

func (value *GitAfterCommit) UnmarshalJSON(data []byte) error

func (*GitAfterCommit) UnmarshalText

func (value *GitAfterCommit) UnmarshalText(data []byte) error

type GitBlame

type GitBlame struct {
	Commit     string         `json:"commit"`
	Path       string         `json:"path"`
	Offset     uint64         `json:"offset"`
	Next       *uint64        `json:"next"`
	TotalLines uint64         `json:"total_lines"`
	Entries    []GitBlameLine `json:"entries"`
	Truncated  bool           `json:"truncated"`
}

func DefaultGitBlame

func DefaultGitBlame() GitBlame

func (GitBlame) MarshalJSON

func (value GitBlame) MarshalJSON() ([]byte, error)

func (*GitBlame) UnmarshalJSON

func (value *GitBlame) UnmarshalJSON(data []byte) error

type GitBlameLine

type GitBlameLine struct {
	Line         uint64 `json:"line"`
	OriginalLine uint64 `json:"original_line"`
	Commit       string `json:"commit"`
	Author       string `json:"author"`
	Email        string `json:"email"`
	Timestamp    int64  `json:"timestamp"`
	Text         string `json:"text"`
	Truncated    bool   `json:"truncated"`
}

func DefaultGitBlameLine

func DefaultGitBlameLine() GitBlameLine

func (GitBlameLine) MarshalJSON

func (value GitBlameLine) MarshalJSON() ([]byte, error)

func (*GitBlameLine) UnmarshalJSON

func (value *GitBlameLine) UnmarshalJSON(data []byte) error

type GitBranch

type GitBranch struct {
	Name    string `json:"name"`
	Commit  string `json:"commit"`
	Remote  bool   `json:"remote"`
	Current bool   `json:"current"`
}

func DefaultGitBranch

func DefaultGitBranch() GitBranch

func (GitBranch) MarshalJSON

func (value GitBranch) MarshalJSON() ([]byte, error)

func (*GitBranch) UnmarshalJSON

func (value *GitBranch) UnmarshalJSON(data []byte) error

type GitBranches

type GitBranches struct {
	Sync         GitSync        `json:"sync"`
	Kind         RepositoryKind `json:"kind"`
	Current      *string        `json:"current"`
	Entries      []GitBranch    `json:"entries"`
	Truncated    bool           `json:"truncated"`
	OmittedNames uint64         `json:"omitted_names"`
}

func DefaultGitBranches

func DefaultGitBranches() GitBranches

func (GitBranches) MarshalJSON

func (value GitBranches) MarshalJSON() ([]byte, error)

func (*GitBranches) UnmarshalJSON

func (value *GitBranches) UnmarshalJSON(data []byte) error

type GitChange

type GitChange struct {
	Snapshot         GitChangeSnapshot `json:"snapshot"`
	Path             string            `json:"path"`
	OldPath          *string           `json:"old_path"`
	MetadataRevision string            `json:"metadata_revision"`
	Revision         string            `json:"revision"`
	Offset           uint64            `json:"offset"`
	Next             *uint64           `json:"next"`
	Lines            []GitChangeLine   `json:"lines"`
	Binary           bool              `json:"binary"`
	SkipReason       *string           `json:"skip_reason"`
	FirstLine        *string           `json:"first_line"`
}

func DefaultGitChange

func DefaultGitChange() GitChange

func (GitChange) MarshalJSON

func (value GitChange) MarshalJSON() ([]byte, error)

func (*GitChange) UnmarshalJSON

func (value *GitChange) UnmarshalJSON(data []byte) error

type GitChangeEntry

type GitChangeEntry struct {
	Path             string        `json:"path"`
	OldPath          *string       `json:"old_path"`
	Kind             GitChangeKind `json:"kind"`
	OldMode          *uint32       `json:"old_mode"`
	NewMode          *uint32       `json:"new_mode"`
	MetadataRevision string        `json:"metadata_revision"`
}

func DefaultGitChangeEntry

func DefaultGitChangeEntry() GitChangeEntry

func (GitChangeEntry) MarshalJSON

func (value GitChangeEntry) MarshalJSON() ([]byte, error)

func (*GitChangeEntry) UnmarshalJSON

func (value *GitChangeEntry) UnmarshalJSON(data []byte) error

type GitChangeKind

type GitChangeKind string
const (
	GitChangeKindAdded       GitChangeKind = "added"
	GitChangeKindModified    GitChangeKind = "modified"
	GitChangeKindDeleted     GitChangeKind = "deleted"
	GitChangeKindRenamed     GitChangeKind = "renamed"
	GitChangeKindTypeChanged GitChangeKind = "type_changed"
)

func (GitChangeKind) MarshalJSON

func (value GitChangeKind) MarshalJSON() ([]byte, error)

func (GitChangeKind) MarshalText

func (value GitChangeKind) MarshalText() ([]byte, error)

func (*GitChangeKind) UnmarshalJSON

func (value *GitChangeKind) UnmarshalJSON(data []byte) error

func (*GitChangeKind) UnmarshalText

func (value *GitChangeKind) UnmarshalText(data []byte) error

type GitChangeLine

type GitChangeLine struct {
	Kind    GitChangeLineKind `json:"kind"`
	OldLine *uint32           `json:"old_line"`
	NewLine *uint32           `json:"new_line"`
	Text    string            `json:"text"`
}

func DefaultGitChangeLine

func DefaultGitChangeLine() GitChangeLine

func (GitChangeLine) MarshalJSON

func (value GitChangeLine) MarshalJSON() ([]byte, error)

func (*GitChangeLine) UnmarshalJSON

func (value *GitChangeLine) UnmarshalJSON(data []byte) error

type GitChangeLineKind

type GitChangeLineKind string
const (
	GitChangeLineKindAdded   GitChangeLineKind = "added"
	GitChangeLineKindDeleted GitChangeLineKind = "deleted"
	GitChangeLineKindContext GitChangeLineKind = "context"
)

func (GitChangeLineKind) MarshalJSON

func (value GitChangeLineKind) MarshalJSON() ([]byte, error)

func (GitChangeLineKind) MarshalText

func (value GitChangeLineKind) MarshalText() ([]byte, error)

func (*GitChangeLineKind) UnmarshalJSON

func (value *GitChangeLineKind) UnmarshalJSON(data []byte) error

func (*GitChangeLineKind) UnmarshalText

func (value *GitChangeLineKind) UnmarshalText(data []byte) error

type GitChangeSnapshot

type GitChangeSnapshot struct {
	Target           GitChangeState `json:"target"`
	MetadataRevision string         `json:"metadata_revision"`
}

func DefaultGitChangeSnapshot

func DefaultGitChangeSnapshot() GitChangeSnapshot

func (GitChangeSnapshot) MarshalJSON

func (value GitChangeSnapshot) MarshalJSON() ([]byte, error)

func (*GitChangeSnapshot) UnmarshalJSON

func (value *GitChangeSnapshot) UnmarshalJSON(data []byte) error

type GitChangeState

type GitChangeState struct {
	Kind string
	Data any
}

func (GitChangeState) MarshalJSON

func (value GitChangeState) MarshalJSON() ([]byte, error)

func (*GitChangeState) UnmarshalJSON

func (value *GitChangeState) UnmarshalJSON(data []byte) error

type GitChangeStateCommitPayload

type GitChangeStateCommitPayload struct {
	Revision string  `json:"revision"`
	Parent   *string `json:"parent"`
}

func DefaultGitChangeStateCommitPayload

func DefaultGitChangeStateCommitPayload() GitChangeStateCommitPayload

func (GitChangeStateCommitPayload) MarshalJSON

func (value GitChangeStateCommitPayload) MarshalJSON() ([]byte, error)

func (*GitChangeStateCommitPayload) UnmarshalJSON

func (value *GitChangeStateCommitPayload) UnmarshalJSON(data []byte) error

type GitChangeStateRangePayload

type GitChangeStateRangePayload struct {
	Base string `json:"base"`
	Head string `json:"head"`
}

func DefaultGitChangeStateRangePayload

func DefaultGitChangeStateRangePayload() GitChangeStateRangePayload

func (GitChangeStateRangePayload) MarshalJSON

func (value GitChangeStateRangePayload) MarshalJSON() ([]byte, error)

func (*GitChangeStateRangePayload) UnmarshalJSON

func (value *GitChangeStateRangePayload) UnmarshalJSON(data []byte) error

type GitChangeStateWorktreePayload

type GitChangeStateWorktreePayload struct {
	Scope         GitDiffScope `json:"scope"`
	Head          *string      `json:"head"`
	IndexRevision string       `json:"index_revision"`
}

func DefaultGitChangeStateWorktreePayload

func DefaultGitChangeStateWorktreePayload() GitChangeStateWorktreePayload

func (GitChangeStateWorktreePayload) MarshalJSON

func (value GitChangeStateWorktreePayload) MarshalJSON() ([]byte, error)

func (*GitChangeStateWorktreePayload) UnmarshalJSON

func (value *GitChangeStateWorktreePayload) UnmarshalJSON(data []byte) error

type GitChangeTarget

type GitChangeTarget struct {
	Kind string
	Data any
}

func (GitChangeTarget) MarshalJSON

func (value GitChangeTarget) MarshalJSON() ([]byte, error)

func (*GitChangeTarget) UnmarshalJSON

func (value *GitChangeTarget) UnmarshalJSON(data []byte) error

type GitChangeTargetCommitPayload

type GitChangeTargetCommitPayload struct {
	Revision string `json:"revision"`
}

func DefaultGitChangeTargetCommitPayload

func DefaultGitChangeTargetCommitPayload() GitChangeTargetCommitPayload

func (GitChangeTargetCommitPayload) MarshalJSON

func (value GitChangeTargetCommitPayload) MarshalJSON() ([]byte, error)

func (*GitChangeTargetCommitPayload) UnmarshalJSON

func (value *GitChangeTargetCommitPayload) UnmarshalJSON(data []byte) error

type GitChangeTargetRangePayload

type GitChangeTargetRangePayload struct {
	Base string `json:"base"`
	Head string `json:"head"`
}

func DefaultGitChangeTargetRangePayload

func DefaultGitChangeTargetRangePayload() GitChangeTargetRangePayload

func (GitChangeTargetRangePayload) MarshalJSON

func (value GitChangeTargetRangePayload) MarshalJSON() ([]byte, error)

func (*GitChangeTargetRangePayload) UnmarshalJSON

func (value *GitChangeTargetRangePayload) UnmarshalJSON(data []byte) error

type GitChangeTargetWorktreePayload

type GitChangeTargetWorktreePayload struct {
	Scope GitDiffScope `json:"scope"`
}

func DefaultGitChangeTargetWorktreePayload

func DefaultGitChangeTargetWorktreePayload() GitChangeTargetWorktreePayload

func (GitChangeTargetWorktreePayload) MarshalJSON

func (value GitChangeTargetWorktreePayload) MarshalJSON() ([]byte, error)

func (*GitChangeTargetWorktreePayload) UnmarshalJSON

func (value *GitChangeTargetWorktreePayload) UnmarshalJSON(data []byte) error

type GitChanges

type GitChanges struct {
	Snapshot     GitChangeSnapshot `json:"snapshot"`
	Entries      []GitChangeEntry  `json:"entries"`
	Next         *GitChangesCursor `json:"next"`
	Exhausted    bool              `json:"exhausted"`
	OmittedPaths uint64            `json:"omitted_paths"`
}

func DefaultGitChanges

func DefaultGitChanges() GitChanges

func (GitChanges) MarshalJSON

func (value GitChanges) MarshalJSON() ([]byte, error)

func (*GitChanges) UnmarshalJSON

func (value *GitChanges) UnmarshalJSON(data []byte) error

type GitChangesCursor

type GitChangesCursor struct {
	Snapshot  GitChangeSnapshot `json:"snapshot"`
	AfterPath *string           `json:"after_path"`
}

func DefaultGitChangesCursor

func DefaultGitChangesCursor() GitChangesCursor

func (GitChangesCursor) MarshalJSON

func (value GitChangesCursor) MarshalJSON() ([]byte, error)

func (*GitChangesCursor) UnmarshalJSON

func (value *GitChangesCursor) UnmarshalJSON(data []byte) error

type GitCommit

type GitCommit struct {
	Entry     GitLogEntry `json:"entry"`
	Files     []GitDiff   `json:"files"`
	Additions uint64      `json:"additions"`
	Deletions uint64      `json:"deletions"`
	Binary    bool        `json:"binary"`
	Truncated bool        `json:"truncated"`
}

func DefaultGitCommit

func DefaultGitCommit() GitCommit

func (GitCommit) MarshalJSON

func (value GitCommit) MarshalJSON() ([]byte, error)

func (*GitCommit) UnmarshalJSON

func (value *GitCommit) UnmarshalJSON(data []byte) error

type GitCommitOptions

type GitCommitOptions struct {
	Signoff    bool           `json:"signoff"`
	SkipHooks  bool           `json:"skip_hooks"`
	Tracked    bool           `json:"tracked"`
	All        bool           `json:"all"`
	After      GitAfterCommit `json:"after"`
	PushRemote *string        `json:"push_remote"`
}

func DefaultGitCommitOptions

func DefaultGitCommitOptions() GitCommitOptions

func (GitCommitOptions) MarshalJSON

func (value GitCommitOptions) MarshalJSON() ([]byte, error)

func (*GitCommitOptions) UnmarshalJSON

func (value *GitCommitOptions) UnmarshalJSON(data []byte) error

type GitContext

type GitContext struct {
	Snapshot         GitChangeSnapshot `json:"snapshot"`
	Path             string            `json:"path"`
	OldPath          *string           `json:"old_path"`
	MetadataRevision string            `json:"metadata_revision"`
	Revision         string            `json:"revision"`
	Side             GitContextSide    `json:"side"`
	Offset           uint64            `json:"offset"`
	Next             *uint64           `json:"next"`
	Text             string            `json:"text"`
	Binary           bool              `json:"binary"`
	SkipReason       *string           `json:"skip_reason"`
}

func DefaultGitContext

func DefaultGitContext() GitContext

func (GitContext) MarshalJSON

func (value GitContext) MarshalJSON() ([]byte, error)

func (*GitContext) UnmarshalJSON

func (value *GitContext) UnmarshalJSON(data []byte) error

type GitContextSide

type GitContextSide string
const (
	GitContextSideOld GitContextSide = "old"
	GitContextSideNew GitContextSide = "new"
)

func (GitContextSide) MarshalJSON

func (value GitContextSide) MarshalJSON() ([]byte, error)

func (GitContextSide) MarshalText

func (value GitContextSide) MarshalText() ([]byte, error)

func (*GitContextSide) UnmarshalJSON

func (value *GitContextSide) UnmarshalJSON(data []byte) error

func (*GitContextSide) UnmarshalText

func (value *GitContextSide) UnmarshalText(data []byte) error

type GitDiff

type GitDiff struct {
	Path      string       `json:"path"`
	Scope     GitDiffScope `json:"scope"`
	Text      string       `json:"text"`
	Additions uint64       `json:"additions"`
	Deletions uint64       `json:"deletions"`
	Binary    bool         `json:"binary"`
	Truncated bool         `json:"truncated"`
	// Size is the length in bytes of a file that is not compared as text: the
	// new side, or the old side of a deletion.
	Size uint64 `json:"size,omitempty"`
}

func DefaultGitDiff

func DefaultGitDiff() GitDiff

func (GitDiff) MarshalJSON

func (value GitDiff) MarshalJSON() ([]byte, error)

func (*GitDiff) UnmarshalJSON

func (value *GitDiff) UnmarshalJSON(data []byte) error

type GitDiffScope

type GitDiffScope string
const (
	GitDiffScopeAll      GitDiffScope = "all"
	GitDiffScopeStaged   GitDiffScope = "staged"
	GitDiffScopeUnstaged GitDiffScope = "unstaged"
)

func (GitDiffScope) MarshalJSON

func (value GitDiffScope) MarshalJSON() ([]byte, error)

func (GitDiffScope) MarshalText

func (value GitDiffScope) MarshalText() ([]byte, error)

func (*GitDiffScope) UnmarshalJSON

func (value *GitDiffScope) UnmarshalJSON(data []byte) error

func (*GitDiffScope) UnmarshalText

func (value *GitDiffScope) UnmarshalText(data []byte) error

type GitEntry

type GitEntry struct {
	ModifiedMs   *uint64        `json:"modified_ms,omitempty"`
	Diff         GitLineStats   `json:"diff"`
	StagedDiff   GitLineStats   `json:"staged_diff"`
	UnstagedDiff GitLineStats   `json:"unstaged_diff"`
	Path         string         `json:"path"`
	Staged       *GitChangeKind `json:"staged"`
	Unstaged     *GitChangeKind `json:"unstaged"`
	Untracked    bool           `json:"untracked"`
	Conflicted   bool           `json:"conflicted"`
}

func DefaultGitEntry

func DefaultGitEntry() GitEntry

func (GitEntry) MarshalJSON

func (value GitEntry) MarshalJSON() ([]byte, error)

func (*GitEntry) UnmarshalJSON

func (value *GitEntry) UnmarshalJSON(data []byte) error

type GitFile

type GitFile struct {
	Commit        string  `json:"commit"`
	Path          string  `json:"path"`
	Offset        uint64  `json:"offset"`
	Next          *uint64 `json:"next"`
	TotalLines    uint64  `json:"total_lines"`
	Text          string  `json:"text"`
	Binary        bool    `json:"binary"`
	Truncated     bool    `json:"truncated"`
	TruncatedLine *uint64 `json:"truncated_line"`
}

func DefaultGitFile

func DefaultGitFile() GitFile

func (GitFile) MarshalJSON

func (value GitFile) MarshalJSON() ([]byte, error)

func (*GitFile) UnmarshalJSON

func (value *GitFile) UnmarshalJSON(data []byte) error

type GitHead

type GitHead struct {
	Kind   RepositoryKind `json:"kind"`
	Branch *string        `json:"branch"`
	Head   *string        `json:"head"`
}

func DefaultGitHead

func DefaultGitHead() GitHead

func (GitHead) MarshalJSON

func (value GitHead) MarshalJSON() ([]byte, error)

func (*GitHead) UnmarshalJSON

func (value *GitHead) UnmarshalJSON(data []byte) error

type GitHunkApplied

type GitHunkApplied struct {
	Worktree  WorktreeID       `json:"worktree"`
	Path      string           `json:"path"`
	Operation GitHunkOperation `json:"operation"`
	Hunk      uint32           `json:"hunk"`
	Revision  string           `json:"revision"`
	Index     *GitIndex        `json:"index"`
}

func (*GitHunkApplied) UnmarshalJSON

func (value *GitHunkApplied) UnmarshalJSON(data []byte) error

type GitHunkOperation

type GitHunkOperation string

GitHunkOperation acts on one captured working-tree diff hunk.

const (
	GitHunkStage  GitHunkOperation = "stage"
	GitHunkReject GitHunkOperation = "reject"
)

type GitIndex

type GitIndex struct {
	Revision string `json:"revision"`
}

func DefaultGitIndex

func DefaultGitIndex() GitIndex

func (GitIndex) MarshalJSON

func (value GitIndex) MarshalJSON() ([]byte, error)

func (*GitIndex) UnmarshalJSON

func (value *GitIndex) UnmarshalJSON(data []byte) error

type GitIndexChange

type GitIndexChange string
const (
	GitIndexChangeStage   GitIndexChange = "stage"
	GitIndexChangeUnstage GitIndexChange = "unstage"
)

func (GitIndexChange) MarshalJSON

func (value GitIndexChange) MarshalJSON() ([]byte, error)

func (GitIndexChange) MarshalText

func (value GitIndexChange) MarshalText() ([]byte, error)

func (*GitIndexChange) UnmarshalJSON

func (value *GitIndexChange) UnmarshalJSON(data []byte) error

func (*GitIndexChange) UnmarshalText

func (value *GitIndexChange) UnmarshalText(data []byte) error

type GitInspectionReason added in v0.2.7

type GitInspectionReason string
const (
	GitInspectionWorktreeOpenFailed     GitInspectionReason = "worktree_open_failed"
	GitInspectionHeadReadFailed         GitInspectionReason = "head_read_failed"
	GitInspectionIndexReadFailed        GitInspectionReason = "index_read_failed"
	GitInspectionFilterConfigReadFailed GitInspectionReason = "filter_config_read_failed"
	GitInspectionStatusCommandFailed    GitInspectionReason = "status_command_failed"
	GitInspectionStatusNonzeroExit      GitInspectionReason = "status_nonzero_exit"
	GitInspectionIncompleteOutput       GitInspectionReason = "incomplete_output"
	GitInspectionUnsupportedEncoding    GitInspectionReason = "unsupported_path_encoding"
	GitInspectionInvalidRecord          GitInspectionReason = "invalid_record"
	GitInspectionUnsupportedStatus      GitInspectionReason = "unsupported_status_classification"
	GitInspectionIncompleteHeaders      GitInspectionReason = "incomplete_headers"
	GitInspectionIndexRecheckFailed     GitInspectionReason = "index_recheck_failed"
	GitInspectionHeadRecheckFailed      GitInspectionReason = "head_recheck_failed"
	GitInspectionIndexChanged           GitInspectionReason = "index_changed"
	GitInspectionHeadChanged            GitInspectionReason = "head_changed"
	GitInspectionDeadlineExceeded       GitInspectionReason = "deadline_exceeded"
)

func (GitInspectionReason) MarshalJSON added in v0.2.7

func (reason GitInspectionReason) MarshalJSON() ([]byte, error)

func (GitInspectionReason) Stage added in v0.2.7

func (reason GitInspectionReason) Stage() string

Stage is derived from the reason so the two diagnostic fields have one closed list.

func (*GitInspectionReason) UnmarshalJSON added in v0.2.7

func (reason *GitInspectionReason) UnmarshalJSON(data []byte) error

type GitLineStats

type GitLineStats struct {
	Additions uint64 `json:"additions"`
	Deletions uint64 `json:"deletions"`
	Truncated bool   `json:"truncated"`
}

func DefaultGitLineStats

func DefaultGitLineStats() GitLineStats

func (GitLineStats) MarshalJSON

func (value GitLineStats) MarshalJSON() ([]byte, error)

func (*GitLineStats) UnmarshalJSON

func (value *GitLineStats) UnmarshalJSON(data []byte) error

type GitLog

type GitLog struct {
	Kind                RepositoryKind `json:"kind"`
	Head                *string        `json:"head"`
	Offset              uint64         `json:"offset"`
	Next                *GitLogCursor  `json:"next"`
	Entries             []GitLogEntry  `json:"entries"`
	Truncated           bool           `json:"truncated"`
	ReferencesTruncated bool           `json:"references_truncated"`
}

func DefaultGitLog

func DefaultGitLog() GitLog

func (GitLog) MarshalJSON

func (value GitLog) MarshalJSON() ([]byte, error)

func (*GitLog) UnmarshalJSON

func (value *GitLog) UnmarshalJSON(data []byte) error

type GitLogCursor

type GitLogCursor struct {
	Head   string  `json:"head"`
	After  string  `json:"after"`
	Offset uint64  `json:"offset"`
	Path   *string `json:"path,omitempty"`
}

func DefaultGitLogCursor

func DefaultGitLogCursor() GitLogCursor

func (GitLogCursor) MarshalJSON

func (value GitLogCursor) MarshalJSON() ([]byte, error)

func (*GitLogCursor) UnmarshalJSON

func (value *GitLogCursor) UnmarshalJSON(data []byte) error

type GitLogEntry

type GitLogEntry struct {
	ID         string   `json:"id"`
	Message    string   `json:"message"`
	Author     string   `json:"author"`
	Email      string   `json:"email"`
	Timestamp  int64    `json:"timestamp"`
	References []string `json:"references"`
	// Parents are the commit's parent IDs, the first the line it continues.
	// The member is optional: nil is a Node that sends none, so its history
	// has no graph, and an empty list is a root commit.
	Parents   []string `json:"parents,omitempty"`
	Truncated bool     `json:"truncated"`
}

func DefaultGitLogEntry

func DefaultGitLogEntry() GitLogEntry

func (GitLogEntry) MarshalJSON

func (value GitLogEntry) MarshalJSON() ([]byte, error)

func (*GitLogEntry) UnmarshalJSON

func (value *GitLogEntry) UnmarshalJSON(data []byte) error

type GitMerge

type GitMerge struct {
	Kind   GitMergeKind `json:"kind"`
	Commit string       `json:"commit"`
}

func DefaultGitMerge

func DefaultGitMerge() GitMerge

func (GitMerge) MarshalJSON

func (value GitMerge) MarshalJSON() ([]byte, error)

func (*GitMerge) UnmarshalJSON

func (value *GitMerge) UnmarshalJSON(data []byte) error

type GitMergeKind

type GitMergeKind string
const (
	GitMergeKindUpToDate    GitMergeKind = "up_to_date"
	GitMergeKindFastForward GitMergeKind = "fast_forward"
	GitMergeKindMergeCommit GitMergeKind = "merge_commit"
)

func (GitMergeKind) MarshalJSON

func (value GitMergeKind) MarshalJSON() ([]byte, error)

func (GitMergeKind) MarshalText

func (value GitMergeKind) MarshalText() ([]byte, error)

func (*GitMergeKind) UnmarshalJSON

func (value *GitMergeKind) UnmarshalJSON(data []byte) error

func (*GitMergeKind) UnmarshalText

func (value *GitMergeKind) UnmarshalText(data []byte) error

type GitStash

type GitStash struct {
	Commit  string `json:"commit"`
	Message string `json:"message"`
}

func DefaultGitStash

func DefaultGitStash() GitStash

func (GitStash) MarshalJSON

func (value GitStash) MarshalJSON() ([]byte, error)

func (*GitStash) UnmarshalJSON

func (value *GitStash) UnmarshalJSON(data []byte) error

type GitStashMode

type GitStashMode string
const (
	GitStashModeAll     GitStashMode = "all"
	GitStashModeTracked GitStashMode = "tracked"
	GitStashModeStaged  GitStashMode = "staged"
)

func (GitStashMode) MarshalJSON

func (value GitStashMode) MarshalJSON() ([]byte, error)

func (GitStashMode) MarshalText

func (value GitStashMode) MarshalText() ([]byte, error)

func (*GitStashMode) UnmarshalJSON

func (value *GitStashMode) UnmarshalJSON(data []byte) error

func (*GitStashMode) UnmarshalText

func (value *GitStashMode) UnmarshalText(data []byte) error

type GitStatus

type GitStatus struct {
	Kind          RepositoryKind `json:"kind"`
	Branch        *string        `json:"branch"`
	Head          *string        `json:"head"`
	IndexRevision *string        `json:"index_revision"`
	Entries       []GitEntry     `json:"entries"`
	Truncated     bool           `json:"truncated"`
	OmittedPaths  uint64         `json:"omitted_paths"`
	Repositories  []string       `json:"repositories,omitempty"`
}

func DefaultGitStatus

func DefaultGitStatus() GitStatus

func (GitStatus) MarshalJSON

func (value GitStatus) MarshalJSON() ([]byte, error)

func (*GitStatus) UnmarshalJSON

func (value *GitStatus) UnmarshalJSON(data []byte) error

type GitSync

type GitSync struct {
	Tags        []GitTag          `json:"tags"`
	RemoteUrls  map[string]string `json:"remote_urls"`
	Tracking    map[string]string `json:"tracking"`
	Stashes     []GitStash        `json:"stashes"`
	HeadSummary *string           `json:"head_summary"`
	HeadMessage *string           `json:"head_message"`
	Remotes     []string          `json:"remotes"`
	Upstream    *string           `json:"upstream"`
	Ahead       uint64            `json:"ahead"`
	Behind      uint64            `json:"behind"`
	Operation   *string           `json:"operation"`
}

func DefaultGitSync

func DefaultGitSync() GitSync

func (GitSync) MarshalJSON

func (value GitSync) MarshalJSON() ([]byte, error)

func (*GitSync) UnmarshalJSON

func (value *GitSync) UnmarshalJSON(data []byte) error

type GitTag

type GitTag struct {
	Name   string `json:"name"`
	Commit string `json:"commit"`
}

func DefaultGitTag

func DefaultGitTag() GitTag

func (GitTag) MarshalJSON

func (value GitTag) MarshalJSON() ([]byte, error)

func (*GitTag) UnmarshalJSON

func (value *GitTag) UnmarshalJSON(data []byte) error

type GitWorktree

type GitWorktree struct {
	Path      string  `json:"path"`
	Branch    *string `json:"branch"`
	Head      *string `json:"head"`
	Main      bool    `json:"main"`
	Locked    bool    `json:"locked"`
	Available bool    `json:"available"`
}

func DefaultGitWorktree

func DefaultGitWorktree() GitWorktree

func (GitWorktree) MarshalJSON

func (value GitWorktree) MarshalJSON() ([]byte, error)

func (*GitWorktree) UnmarshalJSON

func (value *GitWorktree) UnmarshalJSON(data []byte) error

type GitWorktrees

type GitWorktrees struct {
	Kind         RepositoryKind `json:"kind"`
	Entries      []GitWorktree  `json:"entries"`
	Truncated    bool           `json:"truncated"`
	OmittedPaths uint64         `json:"omitted_paths"`
}

func DefaultGitWorktrees

func DefaultGitWorktrees() GitWorktrees

func (GitWorktrees) MarshalJSON

func (value GitWorktrees) MarshalJSON() ([]byte, error)

func (*GitWorktrees) UnmarshalJSON

func (value *GitWorktrees) UnmarshalJSON(data []byte) error

type HooksEntry

type HooksEntry struct {
	ID     string      `json:"id"`
	Phase  HooksPhase  `json:"phase"`
	Script HooksScript `json:"script"`
}

func DefaultHooksEntry

func DefaultHooksEntry() HooksEntry

func (HooksEntry) MarshalJSON

func (value HooksEntry) MarshalJSON() ([]byte, error)

func (*HooksEntry) UnmarshalJSON

func (value *HooksEntry) UnmarshalJSON(data []byte) error

type HooksPhase

type HooksPhase string
const (
	HooksPhaseBeforeTool HooksPhase = "before_tool"
	HooksPhaseAfterTool  HooksPhase = "after_tool"
	HooksPhaseTurnEnd    HooksPhase = "turn_end"
)

func (HooksPhase) MarshalJSON

func (value HooksPhase) MarshalJSON() ([]byte, error)

func (HooksPhase) MarshalText

func (value HooksPhase) MarshalText() ([]byte, error)

func (*HooksPhase) UnmarshalJSON

func (value *HooksPhase) UnmarshalJSON(data []byte) error

func (*HooksPhase) UnmarshalText

func (value *HooksPhase) UnmarshalText(data []byte) error

type HooksScript

type HooksScript struct {
	Name      string   `json:"name"`
	Enabled   bool     `json:"enabled"`
	Command   string   `json:"command"`
	TimeoutMs uint64   `json:"timeout_ms"`
	Tools     []string `json:"tools,omitempty"`
}

func DefaultHooksScript

func DefaultHooksScript() HooksScript

func (HooksScript) MarshalJSON

func (value HooksScript) MarshalJSON() ([]byte, error)

func (*HooksScript) UnmarshalJSON

func (value *HooksScript) UnmarshalJSON(data []byte) error

type HooksSettings

type HooksSettings struct {
	Revision   uint64       `json:"revision"`
	Enabled    bool         `json:"enabled"`
	BeforeTool *HooksScript `json:"before_tool"`
	AfterTool  *HooksScript `json:"after_tool"`
	TurnEnd    *HooksScript `json:"turn_end"`
	Additional []HooksEntry `json:"additional"`
}

func DefaultHooksSettings

func DefaultHooksSettings() HooksSettings

func (HooksSettings) MarshalJSON

func (value HooksSettings) MarshalJSON() ([]byte, error)

func (*HooksSettings) UnmarshalJSON

func (value *HooksSettings) UnmarshalJSON(data []byte) error

type HooksState

type HooksState struct {
	Settings  HooksSettings `json:"settings"`
	Sandboxed bool          `json:"sandboxed"`
}

func DefaultHooksState

func DefaultHooksState() HooksState

func (HooksState) MarshalJSON

func (value HooksState) MarshalJSON() ([]byte, error)

func (*HooksState) UnmarshalJSON

func (value *HooksState) UnmarshalJSON(data []byte) error

type HostDirectory

type HostDirectory struct {
	Source   NodeID          `json:"source"`
	Revision uint64          `json:"revision"`
	Hosts    []DirectoryHost `json:"hosts"`
}

func (*HostDirectory) UnmarshalJSON

func (value *HostDirectory) UnmarshalJSON(data []byte) error

type HostHandlerCall

type HostHandlerCall struct {
	Handler  string `json:"handler"`
	Input    any    `json:"input"`
	ReadOnly bool   `json:"read_only,omitempty"`
}

HostHandlerCall invokes one declared handler of the captured package. The request target is the execution Node, never a field supplied to the handler.

func HostHandlerPayload

func HostHandlerPayload(command Command) (HostHandlerCall, bool)

func (*HostHandlerCall) UnmarshalJSON

func (value *HostHandlerCall) UnmarshalJSON(body []byte) error

type HostInfo

type HostInfo struct {
	Node           NodeID       `json:"node"`
	SampledAtMs    uint64       `json:"sampled_at_ms"`
	Name           *string      `json:"name"`
	Os             *string      `json:"os"`
	OsVersion      *string      `json:"os_version"`
	Architecture   *string      `json:"architecture"`
	LogicalCpus    *uint32      `json:"logical_cpus"`
	Memory         *MemoryUsage `json:"memory"`
	HostUptimeSecs uint64       `json:"host_uptime_secs"`
	NodeUptimeSecs uint64       `json:"node_uptime_secs"`
	Timezone       *string      `json:"timezone,omitempty"`
}

func DefaultHostInfo

func DefaultHostInfo() HostInfo

func (HostInfo) MarshalJSON

func (value HostInfo) MarshalJSON() ([]byte, error)

func (*HostInfo) UnmarshalJSON

func (value *HostInfo) UnmarshalJSON(data []byte) error

type HostInstallationOutcome

type HostInstallationOutcome struct {
	Kind string
	Data any
}

func (HostInstallationOutcome) MarshalJSON

func (value HostInstallationOutcome) MarshalJSON() ([]byte, error)

func (*HostInstallationOutcome) UnmarshalJSON

func (value *HostInstallationOutcome) UnmarshalJSON(data []byte) error

type HostInstallationOutcomeInstalledPayload

type HostInstallationOutcomeInstalledPayload struct {
	Node NodeID `json:"node"`
}

func DefaultHostInstallationOutcomeInstalledPayload

func DefaultHostInstallationOutcomeInstalledPayload() HostInstallationOutcomeInstalledPayload

func (HostInstallationOutcomeInstalledPayload) MarshalJSON

func (value HostInstallationOutcomeInstalledPayload) MarshalJSON() ([]byte, error)

func (*HostInstallationOutcomeInstalledPayload) UnmarshalJSON

func (value *HostInstallationOutcomeInstalledPayload) UnmarshalJSON(data []byte) error

type HostInstallationOutcomeNetworkUnconfirmedPayload

type HostInstallationOutcomeNetworkUnconfirmedPayload struct {
	Node      NodeID           `json:"node"`
	Selection NetworkSelection `json:"selection"`
}

func DefaultHostInstallationOutcomeNetworkUnconfirmedPayload

func DefaultHostInstallationOutcomeNetworkUnconfirmedPayload() HostInstallationOutcomeNetworkUnconfirmedPayload

func (HostInstallationOutcomeNetworkUnconfirmedPayload) MarshalJSON

func (*HostInstallationOutcomeNetworkUnconfirmedPayload) UnmarshalJSON

func (value *HostInstallationOutcomeNetworkUnconfirmedPayload) UnmarshalJSON(data []byte) error

type HostMetricsDisk

type HostMetricsDisk struct {
	Mount          string             `json:"mount"`
	Name           string             `json:"name"`
	FileSystem     string             `json:"file_system"`
	TotalBytes     uint64             `json:"total_bytes"`
	AvailableBytes uint64             `json:"available_bytes"`
	Io             *HostMetricsIoRate `json:"io"`
}

func DefaultHostMetricsDisk

func DefaultHostMetricsDisk() HostMetricsDisk

func (HostMetricsDisk) MarshalJSON

func (value HostMetricsDisk) MarshalJSON() ([]byte, error)

func (*HostMetricsDisk) UnmarshalJSON

func (value *HostMetricsDisk) UnmarshalJSON(data []byte) error

type HostMetricsGpu

type HostMetricsGpu struct {
	ID               string  `json:"id"`
	Name             string  `json:"name"`
	UsageBasisPoints *uint32 `json:"usage_basis_points"`
}

func DefaultHostMetricsGpu

func DefaultHostMetricsGpu() HostMetricsGpu

func (HostMetricsGpu) MarshalJSON

func (value HostMetricsGpu) MarshalJSON() ([]byte, error)

func (*HostMetricsGpu) UnmarshalJSON

func (value *HostMetricsGpu) UnmarshalJSON(data []byte) error

type HostMetricsIoRate

type HostMetricsIoRate struct {
	ReadBytesPerSec    uint64 `json:"read_bytes_per_sec"`
	WrittenBytesPerSec uint64 `json:"written_bytes_per_sec"`
}

func DefaultHostMetricsIoRate

func DefaultHostMetricsIoRate() HostMetricsIoRate

func (HostMetricsIoRate) MarshalJSON

func (value HostMetricsIoRate) MarshalJSON() ([]byte, error)

func (*HostMetricsIoRate) UnmarshalJSON

func (value *HostMetricsIoRate) UnmarshalJSON(data []byte) error

type HostMetricsLoadAverage

type HostMetricsLoadAverage struct {
	One     uint32 `json:"one"`
	Five    uint32 `json:"five"`
	Fifteen uint32 `json:"fifteen"`
}

func DefaultHostMetricsLoadAverage

func DefaultHostMetricsLoadAverage() HostMetricsLoadAverage

func (HostMetricsLoadAverage) MarshalJSON

func (value HostMetricsLoadAverage) MarshalJSON() ([]byte, error)

func (*HostMetricsLoadAverage) UnmarshalJSON

func (value *HostMetricsLoadAverage) UnmarshalJSON(data []byte) error

type HostMetricsNetworkRate

type HostMetricsNetworkRate struct {
	ReceivedBytesPerSec    uint64 `json:"received_bytes_per_sec"`
	TransmittedBytesPerSec uint64 `json:"transmitted_bytes_per_sec"`
	ReceivedBytes          uint64 `json:"received_bytes"`
	TransmittedBytes       uint64 `json:"transmitted_bytes"`
}

func DefaultHostMetricsNetworkRate

func DefaultHostMetricsNetworkRate() HostMetricsNetworkRate

func (HostMetricsNetworkRate) MarshalJSON

func (value HostMetricsNetworkRate) MarshalJSON() ([]byte, error)

func (*HostMetricsNetworkRate) UnmarshalJSON

func (value *HostMetricsNetworkRate) UnmarshalJSON(data []byte) error

type HostMetricsProcess

type HostMetricsProcess struct {
	Pid            uint32  `json:"pid"`
	StartedAtSecs  uint64  `json:"started_at_secs"`
	Name           string  `json:"name"`
	CpuBasisPoints *uint32 `json:"cpu_basis_points"`
	MemoryBytes    uint64  `json:"memory_bytes"`
}

func DefaultHostMetricsProcess

func DefaultHostMetricsProcess() HostMetricsProcess

func (HostMetricsProcess) MarshalJSON

func (value HostMetricsProcess) MarshalJSON() ([]byte, error)

func (*HostMetricsProcess) UnmarshalJSON

func (value *HostMetricsProcess) UnmarshalJSON(data []byte) error

type HostMetricsSample

type HostMetricsSample struct {
	Node            NodeID                  `json:"node"`
	SampledAtMs     uint64                  `json:"sampled_at_ms"`
	CpuBasisPoints  *uint32                 `json:"cpu_basis_points"`
	CoreBasisPoints []uint32                `json:"core_basis_points"`
	Load            *HostMetricsLoadAverage `json:"load"`
	Memory          *MemoryUsage            `json:"memory"`
	Swap            *HostMetricsSwapUsage   `json:"swap"`
	Gpus            []HostMetricsGpu        `json:"gpus"`
	Disks           []HostMetricsDisk       `json:"disks"`
	Network         *HostMetricsNetworkRate `json:"network"`
	Processes       []HostMetricsProcess    `json:"processes"`
	ProcessCount    uint64                  `json:"process_count"`
}

func DefaultHostMetricsSample

func DefaultHostMetricsSample() HostMetricsSample

func (HostMetricsSample) MarshalJSON

func (value HostMetricsSample) MarshalJSON() ([]byte, error)

func (*HostMetricsSample) UnmarshalJSON

func (value *HostMetricsSample) UnmarshalJSON(data []byte) error

type HostMetricsSwapUsage

type HostMetricsSwapUsage struct {
	TotalBytes uint64 `json:"total_bytes"`
	UsedBytes  uint64 `json:"used_bytes"`
}

func DefaultHostMetricsSwapUsage

func DefaultHostMetricsSwapUsage() HostMetricsSwapUsage

func (HostMetricsSwapUsage) MarshalJSON

func (value HostMetricsSwapUsage) MarshalJSON() ([]byte, error)

func (*HostMetricsSwapUsage) UnmarshalJSON

func (value *HostMetricsSwapUsage) UnmarshalJSON(data []byte) error

type HostPath

type HostPath struct {
	Node NodeID `json:"node"`
	Path string `json:"path"`
}

HostPath identifies a file or directory on its owning Node. A path string alone must never be interpreted on another machine.

func (*HostPath) UnmarshalJSON

func (value *HostPath) UnmarshalJSON(data []byte) error

type IdentityCommand

type IdentityCommand struct {
	Kind string
	Data any
}

func (*IdentityCommand) DecodeJSON

func (value *IdentityCommand) DecodeJSON(decoder *Decoder) error

func (IdentityCommand) MarshalJSON

func (value IdentityCommand) MarshalJSON() ([]byte, error)

func (IdentityCommand) ReadOnly

func (value IdentityCommand) ReadOnly() bool

func (*IdentityCommand) UnmarshalJSON

func (value *IdentityCommand) UnmarshalJSON(data []byte) error

type IdentityState

type IdentityState struct {
	User         User                `json:"user"`
	Users        []User              `json:"users"`
	Devices      []UserDevice        `json:"devices"`
	Sponsorships []DeviceSponsorship `json:"sponsorships"`
}

func (*IdentityState) UnmarshalJSON

func (value *IdentityState) UnmarshalJSON(data []byte) error

type ImageFacts

type ImageFacts struct {
	MimeType string `json:"mime_type"`
	Width    uint32 `json:"width"`
	Height   uint32 `json:"height"`
	Size     uint64 `json:"size"`
}

func DefaultImageFacts

func DefaultImageFacts() ImageFacts

func (ImageFacts) MarshalJSON

func (value ImageFacts) MarshalJSON() ([]byte, error)

func (*ImageFacts) UnmarshalJSON

func (value *ImageFacts) UnmarshalJSON(data []byte) error

type InlineImage

type InlineImage struct {
	MimeType string `json:"mime_type"`
	Data     string `json:"data"`
}

func DefaultInlineImage

func DefaultInlineImage() InlineImage

func (InlineImage) MarshalJSON

func (value InlineImage) MarshalJSON() ([]byte, error)

func (*InlineImage) UnmarshalJSON

func (value *InlineImage) UnmarshalJSON(data []byte) error

type InstallationModelRef

type InstallationModelRef struct {
	Kind string
	Data any
}

func (InstallationModelRef) MarshalJSON

func (value InstallationModelRef) MarshalJSON() ([]byte, error)

func (*InstallationModelRef) UnmarshalJSON

func (value *InstallationModelRef) UnmarshalJSON(data []byte) error

type InstallationModelRefControllerPayload

type InstallationModelRefControllerPayload struct {
	Kind ModelsKind `json:"kind"`
	ID   *ModelID   `json:"id"`
}

func DefaultInstallationModelRefControllerPayload

func DefaultInstallationModelRefControllerPayload() InstallationModelRefControllerPayload

func (InstallationModelRefControllerPayload) MarshalJSON

func (value InstallationModelRefControllerPayload) MarshalJSON() ([]byte, error)

func (*InstallationModelRefControllerPayload) UnmarshalJSON

func (value *InstallationModelRefControllerPayload) UnmarshalJSON(data []byte) error

type InstallationModelRefNodePayload

type InstallationModelRefNodePayload struct {
	Kind ModelsKind `json:"kind"`
	ID   string     `json:"id"`
}

func DefaultInstallationModelRefNodePayload

func DefaultInstallationModelRefNodePayload() InstallationModelRefNodePayload

func (InstallationModelRefNodePayload) MarshalJSON

func (value InstallationModelRefNodePayload) MarshalJSON() ([]byte, error)

func (*InstallationModelRefNodePayload) UnmarshalJSON

func (value *InstallationModelRefNodePayload) UnmarshalJSON(data []byte) error

type InstallationPhase

type InstallationPhase string
const (
	InstallationPhaseDownloading InstallationPhase = "downloading"
	InstallationPhaseInspecting  InstallationPhase = "inspecting"
	InstallationPhasePreparing   InstallationPhase = "preparing"
	InstallationPhaseInstalling  InstallationPhase = "installing"
	InstallationPhaseValidating  InstallationPhase = "validating"
)

func (InstallationPhase) MarshalJSON

func (value InstallationPhase) MarshalJSON() ([]byte, error)

func (InstallationPhase) MarshalText

func (value InstallationPhase) MarshalText() ([]byte, error)

func (*InstallationPhase) UnmarshalJSON

func (value *InstallationPhase) UnmarshalJSON(data []byte) error

func (*InstallationPhase) UnmarshalText

func (value *InstallationPhase) UnmarshalText(data []byte) error

type InstallationProgress

type InstallationProgress struct {
	Kind string
	Data any
}

func (InstallationProgress) MarshalJSON

func (value InstallationProgress) MarshalJSON() ([]byte, error)

func (*InstallationProgress) UnmarshalJSON

func (value *InstallationProgress) UnmarshalJSON(data []byte) error

type InstallationProgressCountsPayload

type InstallationProgressCountsPayload struct {
	Completed      uint64  `json:"completed"`
	Total          uint64  `json:"total"`
	BytesPerSecond *uint64 `json:"bytes_per_second"`
}

func DefaultInstallationProgressCountsPayload

func DefaultInstallationProgressCountsPayload() InstallationProgressCountsPayload

func (InstallationProgressCountsPayload) MarshalJSON

func (value InstallationProgressCountsPayload) MarshalJSON() ([]byte, error)

func (*InstallationProgressCountsPayload) UnmarshalJSON

func (value *InstallationProgressCountsPayload) UnmarshalJSON(data []byte) error

type InstallationProgressPercentPayload

type InstallationProgressPercentPayload struct {
	Percent        uint8   `json:"percent"`
	BytesPerSecond *uint64 `json:"bytes_per_second"`
}

func DefaultInstallationProgressPercentPayload

func DefaultInstallationProgressPercentPayload() InstallationProgressPercentPayload

func (InstallationProgressPercentPayload) MarshalJSON

func (value InstallationProgressPercentPayload) MarshalJSON() ([]byte, error)

func (*InstallationProgressPercentPayload) UnmarshalJSON

func (value *InstallationProgressPercentPayload) UnmarshalJSON(data []byte) error

type InstallationRegistration

type InstallationRegistration struct {
	Target     InstallationTarget `json:"target"`
	Definition ModelsDefinition   `json:"definition"`
}

func DefaultInstallationRegistration

func DefaultInstallationRegistration() InstallationRegistration

func (InstallationRegistration) MarshalJSON

func (value InstallationRegistration) MarshalJSON() ([]byte, error)

func (*InstallationRegistration) UnmarshalJSON

func (value *InstallationRegistration) UnmarshalJSON(data []byte) error

type InstallationResource

type InstallationResource struct {
	Kind string
	Data any
}

func (InstallationResource) MarshalJSON

func (value InstallationResource) MarshalJSON() ([]byte, error)

func (*InstallationResource) UnmarshalJSON

func (value *InstallationResource) UnmarshalJSON(data []byte) error

type InstallationResourceLanguagePayload

type InstallationResourceLanguagePayload struct {
	Package string `json:"package"`
	Version string `json:"version"`
}

func DefaultInstallationResourceLanguagePayload

func DefaultInstallationResourceLanguagePayload() InstallationResourceLanguagePayload

func (InstallationResourceLanguagePayload) MarshalJSON

func (value InstallationResourceLanguagePayload) MarshalJSON() ([]byte, error)

func (*InstallationResourceLanguagePayload) UnmarshalJSON

func (value *InstallationResourceLanguagePayload) UnmarshalJSON(data []byte) error

type InstallationResourceModelPayload

type InstallationResourceModelPayload struct {
	Kind ModelsKind `json:"kind"`
	ID   string     `json:"id"`
}

func DefaultInstallationResourceModelPayload

func DefaultInstallationResourceModelPayload() InstallationResourceModelPayload

func (InstallationResourceModelPayload) MarshalJSON

func (value InstallationResourceModelPayload) MarshalJSON() ([]byte, error)

func (*InstallationResourceModelPayload) UnmarshalJSON

func (value *InstallationResourceModelPayload) UnmarshalJSON(data []byte) error

type InstallationResourcePluginPayload

type InstallationResourcePluginPayload struct {
	Name string `json:"name"`
}

func DefaultInstallationResourcePluginPayload

func DefaultInstallationResourcePluginPayload() InstallationResourcePluginPayload

func (InstallationResourcePluginPayload) MarshalJSON

func (value InstallationResourcePluginPayload) MarshalJSON() ([]byte, error)

func (*InstallationResourcePluginPayload) UnmarshalJSON

func (value *InstallationResourcePluginPayload) UnmarshalJSON(data []byte) error

type InstallationState

type InstallationState struct {
	Kind string
	Data any
}

func (InstallationState) MarshalJSON

func (value InstallationState) MarshalJSON() ([]byte, error)

func (*InstallationState) UnmarshalJSON

func (value *InstallationState) UnmarshalJSON(data []byte) error

type InstallationStateFailedPayload

type InstallationStateFailedPayload struct {
	Error Fault `json:"error"`
}

func DefaultInstallationStateFailedPayload

func DefaultInstallationStateFailedPayload() InstallationStateFailedPayload

func (InstallationStateFailedPayload) MarshalJSON

func (value InstallationStateFailedPayload) MarshalJSON() ([]byte, error)

func (*InstallationStateFailedPayload) UnmarshalJSON

func (value *InstallationStateFailedPayload) UnmarshalJSON(data []byte) error

type InstallationStateRunningPayload

type InstallationStateRunningPayload struct {
	Phase    InstallationPhase     `json:"phase"`
	Progress *InstallationProgress `json:"progress"`
}

func DefaultInstallationStateRunningPayload

func DefaultInstallationStateRunningPayload() InstallationStateRunningPayload

func (InstallationStateRunningPayload) MarshalJSON

func (value InstallationStateRunningPayload) MarshalJSON() ([]byte, error)

func (*InstallationStateRunningPayload) UnmarshalJSON

func (value *InstallationStateRunningPayload) UnmarshalJSON(data []byte) error

type InstallationStateUncertainPayload

type InstallationStateUncertainPayload struct {
	Error Fault `json:"error"`
}

func DefaultInstallationStateUncertainPayload

func DefaultInstallationStateUncertainPayload() InstallationStateUncertainPayload

func (InstallationStateUncertainPayload) MarshalJSON

func (value InstallationStateUncertainPayload) MarshalJSON() ([]byte, error)

func (*InstallationStateUncertainPayload) UnmarshalJSON

func (value *InstallationStateUncertainPayload) UnmarshalJSON(data []byte) error

type InstallationTarget

type InstallationTarget string
const (
	InstallationTargetNode       InstallationTarget = "node"
	InstallationTargetController InstallationTarget = "controller"
)

func (InstallationTarget) MarshalJSON

func (value InstallationTarget) MarshalJSON() ([]byte, error)

func (InstallationTarget) MarshalText

func (value InstallationTarget) MarshalText() ([]byte, error)

func (*InstallationTarget) UnmarshalJSON

func (value *InstallationTarget) UnmarshalJSON(data []byte) error

func (*InstallationTarget) UnmarshalText

func (value *InstallationTarget) UnmarshalText(data []byte) error

type InstallationTask

type InstallationTask struct {
	Request  RequestID            `json:"request"`
	Revision uint64               `json:"revision"`
	Resource InstallationResource `json:"resource"`
	State    InstallationState    `json:"state"`
}

func DefaultInstallationTask

func DefaultInstallationTask() InstallationTask

func (InstallationTask) MarshalJSON

func (value InstallationTask) MarshalJSON() ([]byte, error)

func (*InstallationTask) UnmarshalJSON

func (value *InstallationTask) UnmarshalJSON(data []byte) error

type InvitationKind

type InvitationKind string

InvitationKind is chosen by the authenticated device sharing an invitation. It is not a membership assertion supplied by the claimant.

const (
	InvitationOtherUser InvitationKind = "other_user"
	InvitationMyDevice  InvitationKind = "my_device"
)

func (InvitationKind) MarshalJSON

func (kind InvitationKind) MarshalJSON() ([]byte, error)

func (*InvitationKind) UnmarshalJSON

func (kind *InvitationKind) UnmarshalJSON(data []byte) error

func (InvitationKind) Valid

func (kind InvitationKind) Valid() bool

type JobID

type JobID [16]byte

func NewJobID

func NewJobID() JobID

func (*JobID) DecodeJSON

func (identity *JobID) DecodeJSON(decoder *Decoder) error

func (JobID) MarshalJSON

func (identity JobID) MarshalJSON() ([]byte, error)

func (JobID) MarshalText

func (identity JobID) MarshalText() ([]byte, error)

func (JobID) String

func (identity JobID) String() string

func (*JobID) UnmarshalJSON

func (identity *JobID) UnmarshalJSON(data []byte) error

func (*JobID) UnmarshalText

func (identity *JobID) UnmarshalText(data []byte) error

type KnowledgeCitation

type KnowledgeCitation struct {
	Node       NodeID            `json:"node,omitzero"`
	Collection KnowledgeID       `json:"collection"`
	Chunk      string            `json:"chunk"`
	Revision   string            `json:"revision"`
	Path       string            `json:"path"`
	Position   KnowledgePosition `json:"position"`
	Link       string            `json:"link"`
}

func DefaultKnowledgeCitation

func DefaultKnowledgeCitation() KnowledgeCitation

func (KnowledgeCitation) MarshalJSON

func (value KnowledgeCitation) MarshalJSON() ([]byte, error)

func (*KnowledgeCitation) UnmarshalJSON

func (value *KnowledgeCitation) UnmarshalJSON(data []byte) error

type KnowledgeCitationPage

type KnowledgeCitationPage struct {
	Citation   KnowledgeCitation `json:"citation"`
	Title      string            `json:"title"`
	Text       string            `json:"text"`
	Offset     uint32            `json:"offset"`
	NextOffset *uint32           `json:"next_offset"`
	Worktree   *WorktreeID       `json:"worktree"`
	Context    bool              `json:"context"`
	Untrusted  bool              `json:"untrusted"`
}

func DefaultKnowledgeCitationPage

func DefaultKnowledgeCitationPage() KnowledgeCitationPage

func (KnowledgeCitationPage) MarshalJSON

func (value KnowledgeCitationPage) MarshalJSON() ([]byte, error)

func (*KnowledgeCitationPage) UnmarshalJSON

func (value *KnowledgeCitationPage) UnmarshalJSON(data []byte) error

type KnowledgeCitationRequest

type KnowledgeCitationRequest struct {
	Node       NodeID      `json:"node,omitzero"`
	Collection KnowledgeID `json:"collection"`
	Chunk      string      `json:"chunk"`
	Revision   string      `json:"revision"`
	Context    bool        `json:"context"`
	Offset     uint32      `json:"offset"`
	Limit      uint32      `json:"limit"`
}

func DefaultKnowledgeCitationRequest

func DefaultKnowledgeCitationRequest() KnowledgeCitationRequest

func (KnowledgeCitationRequest) MarshalJSON

func (value KnowledgeCitationRequest) MarshalJSON() ([]byte, error)

func (*KnowledgeCitationRequest) UnmarshalJSON

func (value *KnowledgeCitationRequest) UnmarshalJSON(data []byte) error

type KnowledgeCollection

type KnowledgeCollection struct {
	Node       NodeID              `json:"node,omitzero"`
	OwnerUser  UserID              `json:"owner_user,omitzero"`
	ID         KnowledgeID         `json:"id"`
	Revision   uint64              `json:"revision"`
	Rebuild    uint64              `json:"rebuild"`
	Owner      KnowledgeOwner      `json:"owner"`
	Definition KnowledgeDefinition `json:"definition"`
	Paused     bool                `json:"paused"`
	Progress   KnowledgeProgress   `json:"progress"`
}

func DefaultKnowledgeCollection

func DefaultKnowledgeCollection() KnowledgeCollection

func (KnowledgeCollection) MarshalJSON

func (value KnowledgeCollection) MarshalJSON() ([]byte, error)

func (*KnowledgeCollection) UnmarshalJSON

func (value *KnowledgeCollection) UnmarshalJSON(data []byte) error

type KnowledgeDefinition

type KnowledgeDefinition struct {
	Visibility KnowledgeVisibility `json:"visibility,omitempty"`
	Name       string              `json:"name"`
	Source     KnowledgeSource     `json:"source"`
	Model      *string             `json:"model"`
	Globs      []string            `json:"globs"`
	Tags       []string            `json:"tags"`
	SharedWith []string            `json:"shared_with"`
}

func DefaultKnowledgeDefinition

func DefaultKnowledgeDefinition() KnowledgeDefinition

func (KnowledgeDefinition) MarshalJSON

func (value KnowledgeDefinition) MarshalJSON() ([]byte, error)

func (*KnowledgeDefinition) UnmarshalJSON

func (value *KnowledgeDefinition) UnmarshalJSON(data []byte) error

type KnowledgeDraft

type KnowledgeDraft struct {
	Node       *NodeID              `json:"node,omitempty"`
	Visibility KnowledgeVisibility  `json:"visibility,omitempty"`
	Name       string               `json:"name"`
	Source     KnowledgeDraftSource `json:"source"`
	Model      *string              `json:"model"`
	Globs      []string             `json:"globs"`
	Tags       []string             `json:"tags"`
}

func DefaultKnowledgeDraft

func DefaultKnowledgeDraft() KnowledgeDraft

func (KnowledgeDraft) MarshalJSON

func (value KnowledgeDraft) MarshalJSON() ([]byte, error)

func (*KnowledgeDraft) UnmarshalJSON

func (value *KnowledgeDraft) UnmarshalJSON(data []byte) error

type KnowledgeDraftSource

type KnowledgeDraftSource struct {
	Kind string
	Data any
}

func (KnowledgeDraftSource) MarshalJSON

func (value KnowledgeDraftSource) MarshalJSON() ([]byte, error)

func (*KnowledgeDraftSource) UnmarshalJSON

func (value *KnowledgeDraftSource) UnmarshalJSON(data []byte) error

type KnowledgeDraftSourceStoragePayload

type KnowledgeDraftSourceStoragePayload struct {
	Scope  PluginStorageScope `json:"scope"`
	Prefix string             `json:"prefix"`
}

func DefaultKnowledgeDraftSourceStoragePayload

func DefaultKnowledgeDraftSourceStoragePayload() KnowledgeDraftSourceStoragePayload

func (KnowledgeDraftSourceStoragePayload) MarshalJSON

func (value KnowledgeDraftSourceStoragePayload) MarshalJSON() ([]byte, error)

func (*KnowledgeDraftSourceStoragePayload) UnmarshalJSON

func (value *KnowledgeDraftSourceStoragePayload) UnmarshalJSON(data []byte) error

type KnowledgeDraftSourceWorktreePayload

type KnowledgeDraftSourceWorktreePayload struct {
	Path string `json:"path"`
}

func DefaultKnowledgeDraftSourceWorktreePayload

func DefaultKnowledgeDraftSourceWorktreePayload() KnowledgeDraftSourceWorktreePayload

func (KnowledgeDraftSourceWorktreePayload) MarshalJSON

func (value KnowledgeDraftSourceWorktreePayload) MarshalJSON() ([]byte, error)

func (*KnowledgeDraftSourceWorktreePayload) UnmarshalJSON

func (value *KnowledgeDraftSourceWorktreePayload) UnmarshalJSON(data []byte) error

type KnowledgeFailure

type KnowledgeFailure struct {
	Path   string `json:"path"`
	Reason string `json:"reason"`
}

KnowledgeFailure is one source the last pass could not read or index. An empty path names the collection itself.

func DefaultKnowledgeFailure

func DefaultKnowledgeFailure() KnowledgeFailure

func (KnowledgeFailure) MarshalJSON

func (value KnowledgeFailure) MarshalJSON() ([]byte, error)

func (*KnowledgeFailure) UnmarshalJSON

func (value *KnowledgeFailure) UnmarshalJSON(data []byte) error

type KnowledgeHit

type KnowledgeHit struct {
	Title    string            `json:"title"`
	Text     string            `json:"text"`
	Score    uint32            `json:"score"`
	Citation KnowledgeCitation `json:"citation"`
	Stale    bool              `json:"stale"`
}

func DefaultKnowledgeHit

func DefaultKnowledgeHit() KnowledgeHit

func (KnowledgeHit) MarshalJSON

func (value KnowledgeHit) MarshalJSON() ([]byte, error)

func (*KnowledgeHit) UnmarshalJSON

func (value *KnowledgeHit) UnmarshalJSON(data []byte) error

type KnowledgeID

type KnowledgeID [16]byte

func NewKnowledgeID

func NewKnowledgeID() KnowledgeID

func ParseKnowledgeID

func ParseKnowledgeID(value string) (KnowledgeID, error)

func (*KnowledgeID) DecodeJSON

func (identity *KnowledgeID) DecodeJSON(decoder *Decoder) error

func (KnowledgeID) MarshalJSON

func (identity KnowledgeID) MarshalJSON() ([]byte, error)

func (KnowledgeID) MarshalText

func (identity KnowledgeID) MarshalText() ([]byte, error)

func (KnowledgeID) String

func (identity KnowledgeID) String() string

func (*KnowledgeID) UnmarshalJSON

func (identity *KnowledgeID) UnmarshalJSON(data []byte) error

func (*KnowledgeID) UnmarshalText

func (identity *KnowledgeID) UnmarshalText(data []byte) error

type KnowledgeMode

type KnowledgeMode string
const (
	KnowledgeModeKeyword  KnowledgeMode = "keyword"
	KnowledgeModeSemantic KnowledgeMode = "semantic"
	KnowledgeModeHybrid   KnowledgeMode = "hybrid"
)

func (KnowledgeMode) MarshalJSON

func (value KnowledgeMode) MarshalJSON() ([]byte, error)

func (KnowledgeMode) MarshalText

func (value KnowledgeMode) MarshalText() ([]byte, error)

func (*KnowledgeMode) UnmarshalJSON

func (value *KnowledgeMode) UnmarshalJSON(data []byte) error

func (*KnowledgeMode) UnmarshalText

func (value *KnowledgeMode) UnmarshalText(data []byte) error

type KnowledgeOwner

type KnowledgeOwner struct {
	Kind string
	Data any
}

func (KnowledgeOwner) MarshalJSON

func (value KnowledgeOwner) MarshalJSON() ([]byte, error)

func (*KnowledgeOwner) UnmarshalJSON

func (value *KnowledgeOwner) UnmarshalJSON(data []byte) error

type KnowledgeOwnerPluginPayload

type KnowledgeOwnerPluginPayload struct {
	Name string `json:"name"`
}

func DefaultKnowledgeOwnerPluginPayload

func DefaultKnowledgeOwnerPluginPayload() KnowledgeOwnerPluginPayload

func (KnowledgeOwnerPluginPayload) MarshalJSON

func (value KnowledgeOwnerPluginPayload) MarshalJSON() ([]byte, error)

func (*KnowledgeOwnerPluginPayload) UnmarshalJSON

func (value *KnowledgeOwnerPluginPayload) UnmarshalJSON(data []byte) error

type KnowledgePage

type KnowledgePage struct {
	Sources    []ResourceSourceStatus `json:"sources,omitempty"`
	Hits       []KnowledgeHit         `json:"hits"`
	NextOffset *uint32                `json:"next_offset"`
	Mode       KnowledgeMode          `json:"mode"`
	Indexing   bool                   `json:"indexing"`
	Model      *string                `json:"model"`
	Untrusted  bool                   `json:"untrusted"`
}

func DefaultKnowledgePage

func DefaultKnowledgePage() KnowledgePage

func (KnowledgePage) MarshalJSON

func (value KnowledgePage) MarshalJSON() ([]byte, error)

func (*KnowledgePage) UnmarshalJSON

func (value *KnowledgePage) UnmarshalJSON(data []byte) error

type KnowledgePosition

type KnowledgePosition struct {
	Kind string
	Data any
}

func (KnowledgePosition) MarshalJSON

func (value KnowledgePosition) MarshalJSON() ([]byte, error)

func (*KnowledgePosition) UnmarshalJSON

func (value *KnowledgePosition) UnmarshalJSON(data []byte) error

type KnowledgePositionCellsPayload

type KnowledgePositionCellsPayload struct {
	Sheet string `json:"sheet"`
	Start string `json:"start"`
	End   string `json:"end"`
}

func DefaultKnowledgePositionCellsPayload

func DefaultKnowledgePositionCellsPayload() KnowledgePositionCellsPayload

func (KnowledgePositionCellsPayload) MarshalJSON

func (value KnowledgePositionCellsPayload) MarshalJSON() ([]byte, error)

func (*KnowledgePositionCellsPayload) UnmarshalJSON

func (value *KnowledgePositionCellsPayload) UnmarshalJSON(data []byte) error

type KnowledgePositionLinesPayload

type KnowledgePositionLinesPayload struct {
	Start uint32 `json:"start"`
	End   uint32 `json:"end"`
}

func DefaultKnowledgePositionLinesPayload

func DefaultKnowledgePositionLinesPayload() KnowledgePositionLinesPayload

func (KnowledgePositionLinesPayload) MarshalJSON

func (value KnowledgePositionLinesPayload) MarshalJSON() ([]byte, error)

func (*KnowledgePositionLinesPayload) UnmarshalJSON

func (value *KnowledgePositionLinesPayload) UnmarshalJSON(data []byte) error

type KnowledgePositionPagePayload

type KnowledgePositionPagePayload struct {
	Page uint32 `json:"page"`
}

func DefaultKnowledgePositionPagePayload

func DefaultKnowledgePositionPagePayload() KnowledgePositionPagePayload

func (KnowledgePositionPagePayload) MarshalJSON

func (value KnowledgePositionPagePayload) MarshalJSON() ([]byte, error)

func (*KnowledgePositionPagePayload) UnmarshalJSON

func (value *KnowledgePositionPagePayload) UnmarshalJSON(data []byte) error

type KnowledgePositionSectionPayload

type KnowledgePositionSectionPayload struct {
	Name string `json:"name"`
}

func DefaultKnowledgePositionSectionPayload

func DefaultKnowledgePositionSectionPayload() KnowledgePositionSectionPayload

func (KnowledgePositionSectionPayload) MarshalJSON

func (value KnowledgePositionSectionPayload) MarshalJSON() ([]byte, error)

func (*KnowledgePositionSectionPayload) UnmarshalJSON

func (value *KnowledgePositionSectionPayload) UnmarshalJSON(data []byte) error

type KnowledgePositionSlidePayload

type KnowledgePositionSlidePayload struct {
	Slide uint32 `json:"slide"`
}

func DefaultKnowledgePositionSlidePayload

func DefaultKnowledgePositionSlidePayload() KnowledgePositionSlidePayload

func (KnowledgePositionSlidePayload) MarshalJSON

func (value KnowledgePositionSlidePayload) MarshalJSON() ([]byte, error)

func (*KnowledgePositionSlidePayload) UnmarshalJSON

func (value *KnowledgePositionSlidePayload) UnmarshalJSON(data []byte) error

type KnowledgePositionValuePayload

type KnowledgePositionValuePayload struct {
	Key     string `json:"key"`
	Pointer string `json:"pointer"`
}

func DefaultKnowledgePositionValuePayload

func DefaultKnowledgePositionValuePayload() KnowledgePositionValuePayload

func (KnowledgePositionValuePayload) MarshalJSON

func (value KnowledgePositionValuePayload) MarshalJSON() ([]byte, error)

func (*KnowledgePositionValuePayload) UnmarshalJSON

func (value *KnowledgePositionValuePayload) UnmarshalJSON(data []byte) error

type KnowledgeProgress

type KnowledgeProgress struct {
	Status     KnowledgeStatus `json:"status"`
	Sources    uint64          `json:"sources"`
	Completed  uint64          `json:"completed"`
	Chunks     uint64          `json:"chunks"`
	Skipped    uint64          `json:"skipped"`
	Model      *string         `json:"model"`
	Generation uint64          `json:"generation"`
	// Failed counts the sources the last pass could not read or index;
	// Failures names the first of them.
	Failed   uint64             `json:"failed"`
	Failures []KnowledgeFailure `json:"failures"`
}

func DefaultKnowledgeProgress

func DefaultKnowledgeProgress() KnowledgeProgress

func (KnowledgeProgress) MarshalJSON

func (value KnowledgeProgress) MarshalJSON() ([]byte, error)

func (*KnowledgeProgress) UnmarshalJSON

func (value *KnowledgeProgress) UnmarshalJSON(data []byte) error

type KnowledgeQuery

type KnowledgeQuery struct {
	Refs             []KnowledgeRef `json:"refs,omitempty"`
	Query            string         `json:"query"`
	Collections      []KnowledgeID  `json:"collections"`
	Mode             KnowledgeMode  `json:"mode"`
	Tags             []string       `json:"tags"`
	Path             *string        `json:"path"`
	ModifiedAfterMs  *uint64        `json:"modified_after_ms"`
	ModifiedBeforeMs *uint64        `json:"modified_before_ms"`
	Limit            uint16         `json:"limit"`
	Offset           uint32         `json:"offset"`
}

func DefaultKnowledgeQuery

func DefaultKnowledgeQuery() KnowledgeQuery

func (KnowledgeQuery) MarshalJSON

func (value KnowledgeQuery) MarshalJSON() ([]byte, error)

func (*KnowledgeQuery) UnmarshalJSON

func (value *KnowledgeQuery) UnmarshalJSON(data []byte) error

type KnowledgeRef

type KnowledgeRef struct {
	Node NodeID      `json:"node"`
	ID   KnowledgeID `json:"id"`
}

KnowledgeRef identifies a collection without assuming a controller's local store. Names and source paths are display metadata, not resource identities.

func (*KnowledgeRef) UnmarshalJSON

func (value *KnowledgeRef) UnmarshalJSON(data []byte) error

type KnowledgeSource

type KnowledgeSource struct {
	Kind string
	Data any
}

func (KnowledgeSource) MarshalJSON

func (value KnowledgeSource) MarshalJSON() ([]byte, error)

func (*KnowledgeSource) UnmarshalJSON

func (value *KnowledgeSource) UnmarshalJSON(data []byte) error

type KnowledgeSourceDirectoryPayload

type KnowledgeSourceDirectoryPayload struct {
	Node *NodeID `json:"node,omitempty"`
	Path string  `json:"path"`
}

func DefaultKnowledgeSourceDirectoryPayload

func DefaultKnowledgeSourceDirectoryPayload() KnowledgeSourceDirectoryPayload

func (KnowledgeSourceDirectoryPayload) MarshalJSON

func (value KnowledgeSourceDirectoryPayload) MarshalJSON() ([]byte, error)

func (*KnowledgeSourceDirectoryPayload) UnmarshalJSON

func (value *KnowledgeSourceDirectoryPayload) UnmarshalJSON(data []byte) error

type KnowledgeSourceFilePayload

type KnowledgeSourceFilePayload struct {
	Node *NodeID `json:"node,omitempty"`
	Path string  `json:"path"`
}

func DefaultKnowledgeSourceFilePayload

func DefaultKnowledgeSourceFilePayload() KnowledgeSourceFilePayload

func (KnowledgeSourceFilePayload) MarshalJSON

func (value KnowledgeSourceFilePayload) MarshalJSON() ([]byte, error)

func (*KnowledgeSourceFilePayload) UnmarshalJSON

func (value *KnowledgeSourceFilePayload) UnmarshalJSON(data []byte) error

type KnowledgeSourceStoragePayload

type KnowledgeSourceStoragePayload struct {
	Node   *NodeID            `json:"node,omitempty"`
	Scope  PluginStorageScope `json:"scope"`
	Prefix string             `json:"prefix"`
}

func DefaultKnowledgeSourceStoragePayload

func DefaultKnowledgeSourceStoragePayload() KnowledgeSourceStoragePayload

func (KnowledgeSourceStoragePayload) MarshalJSON

func (value KnowledgeSourceStoragePayload) MarshalJSON() ([]byte, error)

func (*KnowledgeSourceStoragePayload) UnmarshalJSON

func (value *KnowledgeSourceStoragePayload) UnmarshalJSON(data []byte) error

type KnowledgeSourceWorktreePayload

type KnowledgeSourceWorktreePayload struct {
	Node     *NodeID    `json:"node,omitempty"`
	Worktree WorktreeID `json:"worktree"`
	Path     string     `json:"path"`
}

func DefaultKnowledgeSourceWorktreePayload

func DefaultKnowledgeSourceWorktreePayload() KnowledgeSourceWorktreePayload

func (KnowledgeSourceWorktreePayload) MarshalJSON

func (value KnowledgeSourceWorktreePayload) MarshalJSON() ([]byte, error)

func (*KnowledgeSourceWorktreePayload) UnmarshalJSON

func (value *KnowledgeSourceWorktreePayload) UnmarshalJSON(data []byte) error

type KnowledgeStatus

type KnowledgeStatus string
const (
	KnowledgeStatusPending  KnowledgeStatus = "pending"
	KnowledgeStatusIndexing KnowledgeStatus = "indexing"
	KnowledgeStatusReady    KnowledgeStatus = "ready"
	KnowledgeStatusPaused   KnowledgeStatus = "paused"
)

func (KnowledgeStatus) MarshalJSON

func (value KnowledgeStatus) MarshalJSON() ([]byte, error)

func (KnowledgeStatus) MarshalText

func (value KnowledgeStatus) MarshalText() ([]byte, error)

func (*KnowledgeStatus) UnmarshalJSON

func (value *KnowledgeStatus) UnmarshalJSON(data []byte) error

func (*KnowledgeStatus) UnmarshalText

func (value *KnowledgeStatus) UnmarshalText(data []byte) error

type KnowledgeVisibility

type KnowledgeVisibility = ProjectVisibility

KnowledgeVisibility is independent of the Node that stores a collection. Project-backed collections use their project's current visibility.

func KnowledgeCreateVisibility

func KnowledgeCreateVisibility(source KnowledgeSource) KnowledgeVisibility

KnowledgeCreateVisibility defaults stand-alone collections to host sharing.

type MediaAction

type MediaAction struct {
	Kind string
	Data any
}

func (MediaAction) MarshalJSON

func (value MediaAction) MarshalJSON() ([]byte, error)

func (*MediaAction) UnmarshalJSON

func (value *MediaAction) UnmarshalJSON(data []byte) error

type MediaActionImagePayload

type MediaActionImagePayload struct {
	Prompt string `json:"prompt"`
	Path   string `json:"path"`
}

func DefaultMediaActionImagePayload

func DefaultMediaActionImagePayload() MediaActionImagePayload

func (MediaActionImagePayload) MarshalJSON

func (value MediaActionImagePayload) MarshalJSON() ([]byte, error)

func (*MediaActionImagePayload) UnmarshalJSON

func (value *MediaActionImagePayload) UnmarshalJSON(data []byte) error

type MediaActionInspectPayload

type MediaActionInspectPayload struct {
	Prompt string      `json:"prompt"`
	Source MediaSource `json:"source"`
}

func DefaultMediaActionInspectPayload

func DefaultMediaActionInspectPayload() MediaActionInspectPayload

func (MediaActionInspectPayload) MarshalJSON

func (value MediaActionInspectPayload) MarshalJSON() ([]byte, error)

func (*MediaActionInspectPayload) UnmarshalJSON

func (value *MediaActionInspectPayload) UnmarshalJSON(data []byte) error

type MediaActionVideoPayload

type MediaActionVideoPayload struct {
	Prompt string `json:"prompt"`
	Path   string `json:"path"`
}

func DefaultMediaActionVideoPayload

func DefaultMediaActionVideoPayload() MediaActionVideoPayload

func (MediaActionVideoPayload) MarshalJSON

func (value MediaActionVideoPayload) MarshalJSON() ([]byte, error)

func (*MediaActionVideoPayload) UnmarshalJSON

func (value *MediaActionVideoPayload) UnmarshalJSON(data []byte) error

type MediaBinding

type MediaBinding struct {
	Provider ProviderID `json:"provider"`
	Model    string     `json:"model"`
}

func DefaultMediaBinding

func DefaultMediaBinding() MediaBinding

func (MediaBinding) MarshalJSON

func (value MediaBinding) MarshalJSON() ([]byte, error)

func (*MediaBinding) UnmarshalJSON

func (value *MediaBinding) UnmarshalJSON(data []byte) error

type MediaCandidate

type MediaCandidate struct {
	Provider     ProviderID  `json:"provider"`
	ProviderName string      `json:"provider_name"`
	Model        string      `json:"model"`
	Kinds        []MediaKind `json:"kinds"`
}

func DefaultMediaCandidate

func DefaultMediaCandidate() MediaCandidate

func (MediaCandidate) MarshalJSON

func (value MediaCandidate) MarshalJSON() ([]byte, error)

func (*MediaCandidate) UnmarshalJSON

func (value *MediaCandidate) UnmarshalJSON(data []byte) error

type MediaGeneration

type MediaGeneration string
const (
	MediaGenerationImage     MediaGeneration = "image"
	MediaGenerationImageTool MediaGeneration = "image_tool"
	MediaGenerationVideo     MediaGeneration = "video"
	MediaGenerationSpeech    MediaGeneration = "speech"
)

func (MediaGeneration) MarshalJSON

func (value MediaGeneration) MarshalJSON() ([]byte, error)

func (MediaGeneration) MarshalText

func (value MediaGeneration) MarshalText() ([]byte, error)

func (*MediaGeneration) UnmarshalJSON

func (value *MediaGeneration) UnmarshalJSON(data []byte) error

func (*MediaGeneration) UnmarshalText

func (value *MediaGeneration) UnmarshalText(data []byte) error

type MediaKind

type MediaKind string
const (
	MediaKindVision MediaKind = "vision"
	MediaKindImage  MediaKind = "image"
	MediaKindVideo  MediaKind = "video"
	MediaKindSpeech MediaKind = "speech"
)

func (MediaKind) MarshalJSON

func (value MediaKind) MarshalJSON() ([]byte, error)

func (MediaKind) MarshalText

func (value MediaKind) MarshalText() ([]byte, error)

func (*MediaKind) UnmarshalJSON

func (value *MediaKind) UnmarshalJSON(data []byte) error

func (*MediaKind) UnmarshalText

func (value *MediaKind) UnmarshalText(data []byte) error

type MediaSettings

type MediaSettings struct {
	Revision uint64                      `json:"revision"`
	Bindings map[MediaKind]*MediaBinding `json:"bindings"`
	// Unavailable names the bound kinds whose model cannot run now. The Node
	// computes it on every read and ignores it on save.
	Unavailable []MediaKind `json:"unavailable,omitempty"`
}

func DefaultMediaSettings

func DefaultMediaSettings() MediaSettings

func (*MediaSettings) DecodeJSON

func (value *MediaSettings) DecodeJSON(decoder *Decoder) error

func (MediaSettings) MarshalJSON

func (value MediaSettings) MarshalJSON() ([]byte, error)

func (*MediaSettings) UnmarshalJSON

func (value *MediaSettings) UnmarshalJSON(data []byte) error

type MediaSource

type MediaSource struct {
	Kind string
	Data any
}

func (MediaSource) MarshalJSON

func (value MediaSource) MarshalJSON() ([]byte, error)

func (*MediaSource) UnmarshalJSON

func (value *MediaSource) UnmarshalJSON(data []byte) error

type MemoryCatalog

type MemoryCatalog struct {
	Settings MemorySettings  `json:"settings"`
	Entries  []MemorySummary `json:"entries"`
}

func (MemoryCatalog) MarshalJSON

func (value MemoryCatalog) MarshalJSON() ([]byte, error)

type MemoryEntry

type MemoryEntry struct {
	Summary MemorySummary `json:"summary"`
	Body    string        `json:"body"`
}

type MemoryMergeSource

type MemoryMergeSource struct {
	ID       string `json:"id"`
	Revision uint64 `json:"revision"`
}

type MemorySettings

type MemorySettings struct {
	Revision        uint64 `json:"revision"`
	Enabled         bool   `json:"enabled"`
	AutoWrite       bool   `json:"auto_write"`
	ContextBytes    uint32 `json:"context_bytes"`
	ReviewAfterDays uint32 `json:"review_after_days"`
}

func DefaultMemorySettings

func DefaultMemorySettings() MemorySettings

func (*MemorySettings) UnmarshalJSON

func (value *MemorySettings) UnmarshalJSON(data []byte) error

type MemorySummary

type MemorySummary struct {
	ID          string  `json:"id"`
	Project     *string `json:"project,omitempty"`
	Title       string  `json:"title"`
	Kind        string  `json:"kind"`
	Archived    bool    `json:"archived"`
	Revision    uint64  `json:"revision"`
	UpdatedAtMs int64   `json:"updated_at_ms"`
	DuplicateOf *string `json:"duplicate_of,omitempty"`
	NeedsReview bool    `json:"needs_review,omitempty"`
}

type MemoryUsage

type MemoryUsage struct {
	TotalBytes     uint64 `json:"total_bytes"`
	AvailableBytes uint64 `json:"available_bytes"`
	FreeBytes      uint64 `json:"free_bytes"`
}

func DefaultMemoryUsage

func DefaultMemoryUsage() MemoryUsage

func (MemoryUsage) MarshalJSON

func (value MemoryUsage) MarshalJSON() ([]byte, error)

func (*MemoryUsage) UnmarshalJSON

func (value *MemoryUsage) UnmarshalJSON(data []byte) error

type ModelFailure

type ModelFailure string
const (
	ModelFailureRequest                ModelFailure = "request"
	ModelFailureUnauthorized           ModelFailure = "unauthorized"
	ModelFailureRateLimited            ModelFailure = "rate_limited"
	ModelFailureTimeout                ModelFailure = "timeout"
	ModelFailureInvalidResponse        ModelFailure = "invalid_response"
	ModelFailureSharedUsageLimit       ModelFailure = "shared_usage_limit"
	ModelFailureSharedUsageUnavailable ModelFailure = "shared_usage_unavailable"
)

func (ModelFailure) MarshalJSON

func (value ModelFailure) MarshalJSON() ([]byte, error)

func (ModelFailure) MarshalText

func (value ModelFailure) MarshalText() ([]byte, error)

func (*ModelFailure) UnmarshalJSON

func (value *ModelFailure) UnmarshalJSON(data []byte) error

func (*ModelFailure) UnmarshalText

func (value *ModelFailure) UnmarshalText(data []byte) error

type ModelID

type ModelID [16]byte

func NewModelID

func NewModelID() ModelID

func ParseModelID

func ParseModelID(value string) (ModelID, error)

func (*ModelID) DecodeJSON

func (identity *ModelID) DecodeJSON(decoder *Decoder) error

func (ModelID) MarshalJSON

func (identity ModelID) MarshalJSON() ([]byte, error)

func (ModelID) MarshalText

func (identity ModelID) MarshalText() ([]byte, error)

func (ModelID) String

func (identity ModelID) String() string

func (*ModelID) UnmarshalJSON

func (identity *ModelID) UnmarshalJSON(data []byte) error

func (*ModelID) UnmarshalText

func (identity *ModelID) UnmarshalText(data []byte) error

type ModelsAsset

type ModelsAsset struct {
	Source ModelsSource `json:"source"`
	Path   string       `json:"path"`
	Name   string       `json:"name"`
	Bytes  uint64       `json:"bytes"`
	Sha256 string       `json:"sha256"`
}

func DefaultModelsAsset

func DefaultModelsAsset() ModelsAsset

func (ModelsAsset) MarshalJSON

func (value ModelsAsset) MarshalJSON() ([]byte, error)

func (*ModelsAsset) UnmarshalJSON

func (value *ModelsAsset) UnmarshalJSON(data []byte) error

type ModelsCatalog

type ModelsCatalog struct {
	Models       []ModelsLocalModel                       `json:"models"`
	Availability map[ModelsKind]ModelsCatalogAvailability `json:"availability"`
}

func DefaultModelsCatalog

func DefaultModelsCatalog() ModelsCatalog

func (ModelsCatalog) MarshalJSON

func (value ModelsCatalog) MarshalJSON() ([]byte, error)

func (*ModelsCatalog) UnmarshalJSON

func (value *ModelsCatalog) UnmarshalJSON(data []byte) error

type ModelsCatalogAvailability

type ModelsCatalogAvailability struct {
	Kind string
	Data any
}

func (ModelsCatalogAvailability) MarshalJSON

func (value ModelsCatalogAvailability) MarshalJSON() ([]byte, error)

func (*ModelsCatalogAvailability) UnmarshalJSON

func (value *ModelsCatalogAvailability) UnmarshalJSON(data []byte) error

type ModelsCatalogAvailabilityUnavailablePayload

type ModelsCatalogAvailabilityUnavailablePayload struct {
	Reason string `json:"reason"`
}

func DefaultModelsCatalogAvailabilityUnavailablePayload

func DefaultModelsCatalogAvailabilityUnavailablePayload() ModelsCatalogAvailabilityUnavailablePayload

func (ModelsCatalogAvailabilityUnavailablePayload) MarshalJSON

func (value ModelsCatalogAvailabilityUnavailablePayload) MarshalJSON() ([]byte, error)

func (*ModelsCatalogAvailabilityUnavailablePayload) UnmarshalJSON

func (value *ModelsCatalogAvailabilityUnavailablePayload) UnmarshalJSON(data []byte) error

type ModelsDefinition

type ModelsDefinition struct {
	Source         ModelsSource  `json:"source"`
	Name           string        `json:"name"`
	License        string        `json:"license"`
	Format         ModelsFormat  `json:"format"`
	QueryPrefix    *string       `json:"query_prefix,omitempty"`
	DocumentPrefix *string       `json:"document_prefix,omitempty"`
	Assets         []ModelsAsset `json:"assets"`
}

func DefaultModelsDefinition

func DefaultModelsDefinition() ModelsDefinition

func (ModelsDefinition) MarshalJSON

func (value ModelsDefinition) MarshalJSON() ([]byte, error)

func (*ModelsDefinition) UnmarshalJSON

func (value *ModelsDefinition) UnmarshalJSON(data []byte) error

type ModelsFormat

type ModelsFormat struct {
	Kind string
	Data any
}

func (ModelsFormat) MarshalJSON

func (value ModelsFormat) MarshalJSON() ([]byte, error)

func (*ModelsFormat) UnmarshalJSON

func (value *ModelsFormat) UnmarshalJSON(data []byte) error

type ModelsFormatDecisionPayload

type ModelsFormatDecisionPayload struct {
}

func DefaultModelsFormatDecisionPayload

func DefaultModelsFormatDecisionPayload() ModelsFormatDecisionPayload

func (ModelsFormatDecisionPayload) MarshalJSON

func (value ModelsFormatDecisionPayload) MarshalJSON() ([]byte, error)

func (*ModelsFormatDecisionPayload) UnmarshalJSON

func (value *ModelsFormatDecisionPayload) UnmarshalJSON(data []byte) error

type ModelsFormatPaddleOcrPayload

type ModelsFormatPaddleOcrPayload struct {
	Family      ModelsPaddleFamily `json:"family"`
	Orientation bool               `json:"orientation"`
}

func DefaultModelsFormatPaddleOcrPayload

func DefaultModelsFormatPaddleOcrPayload() ModelsFormatPaddleOcrPayload

func (ModelsFormatPaddleOcrPayload) MarshalJSON

func (value ModelsFormatPaddleOcrPayload) MarshalJSON() ([]byte, error)

func (*ModelsFormatPaddleOcrPayload) UnmarshalJSON

func (value *ModelsFormatPaddleOcrPayload) UnmarshalJSON(data []byte) error

type ModelsFormatSenseVoicePayload

type ModelsFormatSenseVoicePayload struct {
}

func DefaultModelsFormatSenseVoicePayload

func DefaultModelsFormatSenseVoicePayload() ModelsFormatSenseVoicePayload

func (ModelsFormatSenseVoicePayload) MarshalJSON

func (value ModelsFormatSenseVoicePayload) MarshalJSON() ([]byte, error)

func (*ModelsFormatSenseVoicePayload) UnmarshalJSON

func (value *ModelsFormatSenseVoicePayload) UnmarshalJSON(data []byte) error

type ModelsFormatStaticPayload

type ModelsFormatStaticPayload struct {
	Dimension uint16 `json:"dimension"`
}

func DefaultModelsFormatStaticPayload

func DefaultModelsFormatStaticPayload() ModelsFormatStaticPayload

func (ModelsFormatStaticPayload) MarshalJSON

func (value ModelsFormatStaticPayload) MarshalJSON() ([]byte, error)

func (*ModelsFormatStaticPayload) UnmarshalJSON

func (value *ModelsFormatStaticPayload) UnmarshalJSON(data []byte) error

type ModelsFormatTransformerPayload

type ModelsFormatTransformerPayload struct {
	Dimension  uint16        `json:"dimension"`
	Pooling    ModelsPooling `json:"pooling"`
	TokenTypes bool          `json:"token_types"`
}

func DefaultModelsFormatTransformerPayload

func DefaultModelsFormatTransformerPayload() ModelsFormatTransformerPayload

func (ModelsFormatTransformerPayload) MarshalJSON

func (value ModelsFormatTransformerPayload) MarshalJSON() ([]byte, error)

func (*ModelsFormatTransformerPayload) UnmarshalJSON

func (value *ModelsFormatTransformerPayload) UnmarshalJSON(data []byte) error

type ModelsHub

type ModelsHub string
const (
	ModelsHubHuggingFace ModelsHub = "hugging_face"
	ModelsHubModelScope  ModelsHub = "model_scope"
)

func (ModelsHub) MarshalJSON

func (value ModelsHub) MarshalJSON() ([]byte, error)

func (ModelsHub) MarshalText

func (value ModelsHub) MarshalText() ([]byte, error)

func (*ModelsHub) UnmarshalJSON

func (value *ModelsHub) UnmarshalJSON(data []byte) error

func (*ModelsHub) UnmarshalText

func (value *ModelsHub) UnmarshalText(data []byte) error

type ModelsItem

type ModelsItem struct {
	Source ModelsSource `json:"source"`
	Name   string       `json:"name"`
	Format ModelsFormat `json:"format"`
}

func DefaultModelsItem

func DefaultModelsItem() ModelsItem

func (ModelsItem) MarshalJSON

func (value ModelsItem) MarshalJSON() ([]byte, error)

func (*ModelsItem) UnmarshalJSON

func (value *ModelsItem) UnmarshalJSON(data []byte) error

type ModelsKind

type ModelsKind string
const (
	ModelsKindEmbedding ModelsKind = "embedding"
	ModelsKindSpeech    ModelsKind = "speech"
	ModelsKindOcr       ModelsKind = "ocr"
	ModelsKindDecision  ModelsKind = "decision"
)

func (ModelsKind) MarshalJSON

func (value ModelsKind) MarshalJSON() ([]byte, error)

func (ModelsKind) MarshalText

func (value ModelsKind) MarshalText() ([]byte, error)

func (*ModelsKind) UnmarshalJSON

func (value *ModelsKind) UnmarshalJSON(data []byte) error

func (*ModelsKind) UnmarshalText

func (value *ModelsKind) UnmarshalText(data []byte) error

type ModelsLocalChoice

type ModelsLocalChoice struct {
	Enabled bool    `json:"enabled"`
	Model   *string `json:"model"`
}

func DefaultModelsLocalChoice

func DefaultModelsLocalChoice() ModelsLocalChoice

func (ModelsLocalChoice) MarshalJSON

func (value ModelsLocalChoice) MarshalJSON() ([]byte, error)

func (*ModelsLocalChoice) UnmarshalJSON

func (value *ModelsLocalChoice) UnmarshalJSON(data []byte) error

type ModelsLocalModel

type ModelsLocalModel struct {
	ID         string           `json:"id"`
	Definition ModelsDefinition `json:"definition"`
	State      ModelsLocalState `json:"state"`
}

func DefaultModelsLocalModel

func DefaultModelsLocalModel() ModelsLocalModel

func (ModelsLocalModel) MarshalJSON

func (value ModelsLocalModel) MarshalJSON() ([]byte, error)

func (*ModelsLocalModel) UnmarshalJSON

func (value *ModelsLocalModel) UnmarshalJSON(data []byte) error

type ModelsLocalSettings

type ModelsLocalSettings struct {
	Revision uint64                           `json:"revision"`
	Mirror   *string                          `json:"mirror"`
	Choices  map[ModelsKind]ModelsLocalChoice `json:"choices"`
}

func DefaultModelsLocalSettings

func DefaultModelsLocalSettings() ModelsLocalSettings

func (ModelsLocalSettings) MarshalJSON

func (value ModelsLocalSettings) MarshalJSON() ([]byte, error)

func (*ModelsLocalSettings) UnmarshalJSON

func (value *ModelsLocalSettings) UnmarshalJSON(data []byte) error

type ModelsLocalState

type ModelsLocalState struct {
	Kind string
	Data any
}

func (ModelsLocalState) MarshalJSON

func (value ModelsLocalState) MarshalJSON() ([]byte, error)

func (*ModelsLocalState) UnmarshalJSON

func (value *ModelsLocalState) UnmarshalJSON(data []byte) error

type ModelsPaddleFamily

type ModelsPaddleFamily string
const (
	ModelsPaddleFamilyV5 ModelsPaddleFamily = "v5"
	ModelsPaddleFamilyV6 ModelsPaddleFamily = "v6"
)

func (ModelsPaddleFamily) MarshalJSON

func (value ModelsPaddleFamily) MarshalJSON() ([]byte, error)

func (ModelsPaddleFamily) MarshalText

func (value ModelsPaddleFamily) MarshalText() ([]byte, error)

func (*ModelsPaddleFamily) UnmarshalJSON

func (value *ModelsPaddleFamily) UnmarshalJSON(data []byte) error

func (*ModelsPaddleFamily) UnmarshalText

func (value *ModelsPaddleFamily) UnmarshalText(data []byte) error

type ModelsPage

type ModelsPage struct {
	Items      []ModelsItem `json:"items"`
	NextCursor *string      `json:"next_cursor"`
	Partial    bool         `json:"partial"`
}

func DefaultModelsPage

func DefaultModelsPage() ModelsPage

func (ModelsPage) MarshalJSON

func (value ModelsPage) MarshalJSON() ([]byte, error)

func (*ModelsPage) UnmarshalJSON

func (value *ModelsPage) UnmarshalJSON(data []byte) error

type ModelsPooling

type ModelsPooling string
const (
	ModelsPoolingCls  ModelsPooling = "cls"
	ModelsPoolingMean ModelsPooling = "mean"
)

func (ModelsPooling) MarshalJSON

func (value ModelsPooling) MarshalJSON() ([]byte, error)

func (ModelsPooling) MarshalText

func (value ModelsPooling) MarshalText() ([]byte, error)

func (*ModelsPooling) UnmarshalJSON

func (value *ModelsPooling) UnmarshalJSON(data []byte) error

func (*ModelsPooling) UnmarshalText

func (value *ModelsPooling) UnmarshalText(data []byte) error

type ModelsSearch

type ModelsSearch struct {
	Hub    ModelsHub  `json:"hub"`
	Kind   ModelsKind `json:"kind"`
	Query  string     `json:"query"`
	Cursor *string    `json:"cursor"`
}

func DefaultModelsSearch

func DefaultModelsSearch() ModelsSearch

func (ModelsSearch) MarshalJSON

func (value ModelsSearch) MarshalJSON() ([]byte, error)

func (*ModelsSearch) UnmarshalJSON

func (value *ModelsSearch) UnmarshalJSON(data []byte) error

type ModelsSource

type ModelsSource struct {
	Hub        ModelsHub `json:"hub"`
	Repository string    `json:"repository"`
	Revision   string    `json:"revision"`
}

func DefaultModelsSource

func DefaultModelsSource() ModelsSource

func (ModelsSource) MarshalJSON

func (value ModelsSource) MarshalJSON() ([]byte, error)

func (*ModelsSource) UnmarshalJSON

func (value *ModelsSource) UnmarshalJSON(data []byte) error

type ModelsVersion

type ModelsVersion struct {
	Name     string `json:"name"`
	Revision string `json:"revision"`
}

func DefaultModelsVersion

func DefaultModelsVersion() ModelsVersion

func (ModelsVersion) MarshalJSON

func (value ModelsVersion) MarshalJSON() ([]byte, error)

func (*ModelsVersion) UnmarshalJSON

func (value *ModelsVersion) UnmarshalJSON(data []byte) error

type NativeSkill

type NativeSkill struct {
	Package string      `json:"package"`
	Skill   PluginSkill `json:"skill"`
}

func (*NativeSkill) UnmarshalJSON

func (value *NativeSkill) UnmarshalJSON(data []byte) error

type NetworkCatalog

type NetworkCatalog struct {
	Version uint32          `json:"version"`
	Presets []NetworkPreset `json:"presets"`
}

func DefaultNetworkCatalog

func DefaultNetworkCatalog() NetworkCatalog

func (NetworkCatalog) MarshalJSON

func (value NetworkCatalog) MarshalJSON() ([]byte, error)

func (*NetworkCatalog) UnmarshalJSON

func (value *NetworkCatalog) UnmarshalJSON(data []byte) error

type NetworkLatency

type NetworkLatency struct {
	Selection NetworkSelection `json:"selection"`
	Millis    *uint64          `json:"millis"`
}

func DefaultNetworkLatency

func DefaultNetworkLatency() NetworkLatency

func (NetworkLatency) MarshalJSON

func (value NetworkLatency) MarshalJSON() ([]byte, error)

func (*NetworkLatency) UnmarshalJSON

func (value *NetworkLatency) UnmarshalJSON(data []byte) error

type NetworkListing

type NetworkListing struct {
	Presets     []NetworkPreset `json:"presets"`
	Unavailable bool            `json:"unavailable"`
}

func DefaultNetworkListing

func DefaultNetworkListing() NetworkListing

func (NetworkListing) MarshalJSON

func (value NetworkListing) MarshalJSON() ([]byte, error)

func (*NetworkListing) UnmarshalJSON

func (value *NetworkListing) UnmarshalJSON(data []byte) error

type NetworkPreset

type NetworkPreset struct {
	ID        string                  `json:"id"`
	Label     PluginDesktopNavigation `json:"label"`
	Selection NetworkSelection        `json:"selection"`
}

func DefaultNetworkPreset

func DefaultNetworkPreset() NetworkPreset

func (NetworkPreset) MarshalJSON

func (value NetworkPreset) MarshalJSON() ([]byte, error)

func (*NetworkPreset) UnmarshalJSON

func (value *NetworkPreset) UnmarshalJSON(data []byte) error

type NetworkSelection

type NetworkSelection struct {
	Kind string
	Data any
}

func (NetworkSelection) MarshalJSON

func (value NetworkSelection) MarshalJSON() ([]byte, error)

func (*NetworkSelection) UnmarshalJSON

func (value *NetworkSelection) UnmarshalJSON(data []byte) error

type NetworkSelectionCustomPayload

type NetworkSelectionCustomPayload struct {
	Relays []string `json:"relays"`
}

func DefaultNetworkSelectionCustomPayload

func DefaultNetworkSelectionCustomPayload() NetworkSelectionCustomPayload

func (NetworkSelectionCustomPayload) MarshalJSON

func (value NetworkSelectionCustomPayload) MarshalJSON() ([]byte, error)

func (*NetworkSelectionCustomPayload) UnmarshalJSON

func (value *NetworkSelectionCustomPayload) UnmarshalJSON(data []byte) error

type NetworkSettings

type NetworkSettings struct {
	Revision  uint64            `json:"revision"`
	Selection *NetworkSelection `json:"selection"`
	Effective *NetworkSelection `json:"effective"`
	Address   string            `json:"address"`
}

func DefaultNetworkSettings

func DefaultNetworkSettings() NetworkSettings

func (NetworkSettings) MarshalJSON

func (value NetworkSettings) MarshalJSON() ([]byte, error)

func (*NetworkSettings) UnmarshalJSON

func (value *NetworkSettings) UnmarshalJSON(data []byte) error

type NodeID

type NodeID [32]byte

func KnowledgeRequestTarget

func KnowledgeRequestTarget(command Command, execution, controller NodeID) NodeID

KnowledgeRequestTarget selects the initial target from the captured execution Node and the management entry. Runtime callers pass their execution Node as both identities. Explicit references retain their original targets.

func KnowledgeTarget

func KnowledgeTarget(command Command) NodeID

KnowledgeTarget reads an explicitly selected storage Node. It is used before preparing a request and again at admission; it never changes that request.

func (*NodeID) DecodeJSON

func (identity *NodeID) DecodeJSON(decoder *Decoder) error

func (NodeID) String

func (identity NodeID) String() string

func (*NodeID) UnmarshalJSON

func (identity *NodeID) UnmarshalJSON(data []byte) error

type NotebookCell

type NotebookCell struct {
	Index     uint64          `json:"index"`
	Value     json.RawMessage `json:"value"`
	Truncated bool            `json:"truncated"`
}

func DefaultNotebookCell

func DefaultNotebookCell() NotebookCell

func (NotebookCell) MarshalJSON

func (value NotebookCell) MarshalJSON() ([]byte, error)

func (*NotebookCell) UnmarshalJSON

func (value *NotebookCell) UnmarshalJSON(data []byte) error

type NotebookChange

type NotebookChange struct {
	Kind string
	Data any
}

func (NotebookChange) MarshalJSON

func (value NotebookChange) MarshalJSON() ([]byte, error)

func (*NotebookChange) UnmarshalJSON

func (value *NotebookChange) UnmarshalJSON(data []byte) error

type NotebookChangeDeletePayload

type NotebookChangeDeletePayload struct {
	Index uint64 `json:"index"`
}

func DefaultNotebookChangeDeletePayload

func DefaultNotebookChangeDeletePayload() NotebookChangeDeletePayload

func (NotebookChangeDeletePayload) MarshalJSON

func (value NotebookChangeDeletePayload) MarshalJSON() ([]byte, error)

func (*NotebookChangeDeletePayload) UnmarshalJSON

func (value *NotebookChangeDeletePayload) UnmarshalJSON(data []byte) error

type NotebookChangeInsertPayload

type NotebookChangeInsertPayload struct {
	Index    uint64       `json:"index"`
	CellType NotebookKind `json:"cell_type"`
	Source   string       `json:"source"`
}

func DefaultNotebookChangeInsertPayload

func DefaultNotebookChangeInsertPayload() NotebookChangeInsertPayload

func (NotebookChangeInsertPayload) MarshalJSON

func (value NotebookChangeInsertPayload) MarshalJSON() ([]byte, error)

func (*NotebookChangeInsertPayload) UnmarshalJSON

func (value *NotebookChangeInsertPayload) UnmarshalJSON(data []byte) error

type NotebookChangeReplacePayload

type NotebookChangeReplacePayload struct {
	Index  uint64 `json:"index"`
	Source string `json:"source"`
}

func DefaultNotebookChangeReplacePayload

func DefaultNotebookChangeReplacePayload() NotebookChangeReplacePayload

func (NotebookChangeReplacePayload) MarshalJSON

func (value NotebookChangeReplacePayload) MarshalJSON() ([]byte, error)

func (*NotebookChangeReplacePayload) UnmarshalJSON

func (value *NotebookChangeReplacePayload) UnmarshalJSON(data []byte) error

type NotebookEdit

type NotebookEdit struct {
	Path             string           `json:"path"`
	ExpectedRevision string           `json:"expected_revision"`
	Edits            []NotebookChange `json:"edits"`
}

func DefaultNotebookEdit

func DefaultNotebookEdit() NotebookEdit

func (NotebookEdit) MarshalJSON

func (value NotebookEdit) MarshalJSON() ([]byte, error)

func (*NotebookEdit) UnmarshalJSON

func (value *NotebookEdit) UnmarshalJSON(data []byte) error

type NotebookKind

type NotebookKind string
const (
	NotebookKindCode     NotebookKind = "code"
	NotebookKindMarkdown NotebookKind = "markdown"
	NotebookKindRaw      NotebookKind = "raw"
)

func (NotebookKind) MarshalJSON

func (value NotebookKind) MarshalJSON() ([]byte, error)

func (NotebookKind) MarshalText

func (value NotebookKind) MarshalText() ([]byte, error)

func (*NotebookKind) UnmarshalJSON

func (value *NotebookKind) UnmarshalJSON(data []byte) error

func (*NotebookKind) UnmarshalText

func (value *NotebookKind) UnmarshalText(data []byte) error

type NotebookPage

type NotebookPage struct {
	Path              string          `json:"path"`
	Revision          string          `json:"revision"`
	Nbformat          uint32          `json:"nbformat"`
	NbformatMinor     uint32          `json:"nbformat_minor"`
	Metadata          json.RawMessage `json:"metadata"`
	MetadataTruncated bool            `json:"metadata_truncated"`
	Total             uint64          `json:"total"`
	Cells             []NotebookCell  `json:"cells"`
	NextOffset        *uint64         `json:"next_offset"`
}

func DefaultNotebookPage

func DefaultNotebookPage() NotebookPage

func (NotebookPage) MarshalJSON

func (value NotebookPage) MarshalJSON() ([]byte, error)

func (*NotebookPage) UnmarshalJSON

func (value *NotebookPage) UnmarshalJSON(data []byte) error

type NotebookRead

type NotebookRead struct {
	Path   string `json:"path"`
	Offset uint64 `json:"offset"`
	Limit  uint64 `json:"limit"`
}

func DefaultNotebookRead

func DefaultNotebookRead() NotebookRead

func (NotebookRead) MarshalJSON

func (value NotebookRead) MarshalJSON() ([]byte, error)

func (*NotebookRead) UnmarshalJSON

func (value *NotebookRead) UnmarshalJSON(data []byte) error

type NotificationDetails

type NotificationDetails struct {
	Kind string
	Data any
}

func (NotificationDetails) MarshalJSON

func (value NotificationDetails) MarshalJSON() ([]byte, error)

func (*NotificationDetails) UnmarshalJSON

func (value *NotificationDetails) UnmarshalJSON(data []byte) error

type NotificationDetailsCause

type NotificationDetailsCause struct {
	Kind string
	Data any
}

func (NotificationDetailsCause) MarshalJSON

func (value NotificationDetailsCause) MarshalJSON() ([]byte, error)

func (*NotificationDetailsCause) UnmarshalJSON

func (value *NotificationDetailsCause) UnmarshalJSON(data []byte) error

type NotificationDetailsCauseExecutionPayload

type NotificationDetailsCauseExecutionPayload struct {
	Code ErrorCode `json:"code"`
}

func DefaultNotificationDetailsCauseExecutionPayload

func DefaultNotificationDetailsCauseExecutionPayload() NotificationDetailsCauseExecutionPayload

func (NotificationDetailsCauseExecutionPayload) MarshalJSON

func (value NotificationDetailsCauseExecutionPayload) MarshalJSON() ([]byte, error)

func (*NotificationDetailsCauseExecutionPayload) UnmarshalJSON

func (value *NotificationDetailsCauseExecutionPayload) UnmarshalJSON(data []byte) error

type NotificationDetailsDiagnostic

type NotificationDetailsDiagnostic struct {
	Event    string                   `json:"event"`
	Sequence uint64                   `json:"sequence"`
	Turn     TurnID                   `json:"turn"`
	Cause    NotificationDetailsCause `json:"cause"`
	Version  string                   `json:"version"`
	Platform string                   `json:"platform"`
}

func DefaultNotificationDetailsDiagnostic

func DefaultNotificationDetailsDiagnostic() NotificationDetailsDiagnostic

func (NotificationDetailsDiagnostic) MarshalJSON

func (value NotificationDetailsDiagnostic) MarshalJSON() ([]byte, error)

func (*NotificationDetailsDiagnostic) UnmarshalJSON

func (value *NotificationDetailsDiagnostic) UnmarshalJSON(data []byte) error

type NotificationDetailsPowerPayload

type NotificationDetailsPowerPayload struct {
	Code int64 `json:"code"`
}

func DefaultNotificationDetailsPowerPayload

func DefaultNotificationDetailsPowerPayload() NotificationDetailsPowerPayload

func (NotificationDetailsPowerPayload) MarshalJSON

func (value NotificationDetailsPowerPayload) MarshalJSON() ([]byte, error)

func (*NotificationDetailsPowerPayload) UnmarshalJSON

func (value *NotificationDetailsPowerPayload) UnmarshalJSON(data []byte) error

type NotificationDetailsTask

type NotificationDetailsTask struct {
	Turn       TurnID             `json:"turn"`
	Status     ConversationStatus `json:"status"`
	StartedMs  *int64             `json:"started_ms"`
	FinishedMs *int64             `json:"finished_ms"`
	Error      *ErrorCode         `json:"error"`
}

func DefaultNotificationDetailsTask

func DefaultNotificationDetailsTask() NotificationDetailsTask

func (NotificationDetailsTask) MarshalJSON

func (value NotificationDetailsTask) MarshalJSON() ([]byte, error)

func (*NotificationDetailsTask) UnmarshalJSON

func (value *NotificationDetailsTask) UnmarshalJSON(data []byte) error

type NotificationDetailsTerminal

type NotificationDetailsTerminal struct {
	ID     TerminalID `json:"id"`
	Code   *uint32    `json:"code"`
	Failed bool       `json:"failed"`
}

func DefaultNotificationDetailsTerminal

func DefaultNotificationDetailsTerminal() NotificationDetailsTerminal

func (NotificationDetailsTerminal) MarshalJSON

func (value NotificationDetailsTerminal) MarshalJSON() ([]byte, error)

func (*NotificationDetailsTerminal) UnmarshalJSON

func (value *NotificationDetailsTerminal) UnmarshalJSON(data []byte) error

type NotificationDetailsTextPayload

type NotificationDetailsTextPayload struct {
	Body string `json:"body"`
}

func DefaultNotificationDetailsTextPayload

func DefaultNotificationDetailsTextPayload() NotificationDetailsTextPayload

func (NotificationDetailsTextPayload) MarshalJSON

func (value NotificationDetailsTextPayload) MarshalJSON() ([]byte, error)

func (*NotificationDetailsTextPayload) UnmarshalJSON

func (value *NotificationDetailsTextPayload) UnmarshalJSON(data []byte) error

type NotificationDraft

type NotificationDraft struct {
	Title        string                    `json:"title"`
	Message      string                    `json:"message"`
	Kind         NotificationKind          `json:"kind"`
	Session      *SessionID                `json:"session"`
	Presentation *NotificationPresentation `json:"presentation"`
	Details      *NotificationDetails      `json:"details"`
}

func DefaultNotificationDraft

func DefaultNotificationDraft() NotificationDraft

func (NotificationDraft) MarshalJSON

func (value NotificationDraft) MarshalJSON() ([]byte, error)

func (*NotificationDraft) UnmarshalJSON

func (value *NotificationDraft) UnmarshalJSON(data []byte) error

type NotificationID

type NotificationID [16]byte

func NewNotificationID

func NewNotificationID() NotificationID

func (*NotificationID) DecodeJSON

func (identity *NotificationID) DecodeJSON(decoder *Decoder) error

func (NotificationID) MarshalJSON

func (identity NotificationID) MarshalJSON() ([]byte, error)

func (NotificationID) MarshalText

func (identity NotificationID) MarshalText() ([]byte, error)

func (NotificationID) String

func (identity NotificationID) String() string

func (*NotificationID) UnmarshalJSON

func (identity *NotificationID) UnmarshalJSON(data []byte) error

func (*NotificationID) UnmarshalText

func (identity *NotificationID) UnmarshalText(data []byte) error

type NotificationKind

type NotificationKind string
const (
	NotificationKindInfo    NotificationKind = "info"
	NotificationKindSuccess NotificationKind = "success"
	NotificationKindWarning NotificationKind = "warning"
	NotificationKindError   NotificationKind = "error"
)

func (NotificationKind) MarshalJSON

func (value NotificationKind) MarshalJSON() ([]byte, error)

func (NotificationKind) MarshalText

func (value NotificationKind) MarshalText() ([]byte, error)

func (*NotificationKind) UnmarshalJSON

func (value *NotificationKind) UnmarshalJSON(data []byte) error

func (*NotificationKind) UnmarshalText

func (value *NotificationKind) UnmarshalText(data []byte) error

type NotificationNotice

type NotificationNotice struct {
	ID          NotificationID    `json:"id"`
	Sequence    uint64            `json:"sequence"`
	Package     string            `json:"package"`
	Content     NotificationDraft `json:"content"`
	TimestampMs int64             `json:"timestamp_ms"`
	Read        bool              `json:"read"`
}

func DefaultNotificationNotice

func DefaultNotificationNotice() NotificationNotice

func (*NotificationNotice) DecodeJSON

func (value *NotificationNotice) DecodeJSON(decoder *Decoder) error

func (NotificationNotice) MarshalJSON

func (value NotificationNotice) MarshalJSON() ([]byte, error)

func (*NotificationNotice) UnmarshalJSON

func (value *NotificationNotice) UnmarshalJSON(data []byte) error

type NotificationPresentation

type NotificationPresentation struct {
	Heading    string            `json:"heading"`
	Locales    map[string]string `json:"locales"`
	Persistent bool              `json:"persistent"`
}

func DefaultNotificationPresentation

func DefaultNotificationPresentation() NotificationPresentation

func (NotificationPresentation) MarshalJSON

func (value NotificationPresentation) MarshalJSON() ([]byte, error)

func (*NotificationPresentation) UnmarshalJSON

func (value *NotificationPresentation) UnmarshalJSON(data []byte) error

type NotificationSystemDiagnosticCause

type NotificationSystemDiagnosticCause string
const (
	NotificationSystemDiagnosticCauseGitQueueTimeout NotificationSystemDiagnosticCause = "git_queue_timeout"
	NotificationSystemDiagnosticCauseGitReadTimeout  NotificationSystemDiagnosticCause = "git_read_timeout"
	NotificationSystemDiagnosticCauseGitLocked       NotificationSystemDiagnosticCause = "git_locked"
)

func (NotificationSystemDiagnosticCause) MarshalJSON

func (value NotificationSystemDiagnosticCause) MarshalJSON() ([]byte, error)

func (NotificationSystemDiagnosticCause) MarshalText

func (value NotificationSystemDiagnosticCause) MarshalText() ([]byte, error)

func (*NotificationSystemDiagnosticCause) UnmarshalJSON

func (value *NotificationSystemDiagnosticCause) UnmarshalJSON(data []byte) error

func (*NotificationSystemDiagnosticCause) UnmarshalText

func (value *NotificationSystemDiagnosticCause) UnmarshalText(data []byte) error

type NotificationSystemDiagnosticPhase

type NotificationSystemDiagnosticPhase string
const (
	NotificationSystemDiagnosticPhaseMetadata       NotificationSystemDiagnosticPhase = "metadata"
	NotificationSystemDiagnosticPhaseInitialization NotificationSystemDiagnosticPhase = "initialization"
	NotificationSystemDiagnosticPhaseInspection     NotificationSystemDiagnosticPhase = "inspection"
	NotificationSystemDiagnosticPhaseCallback       NotificationSystemDiagnosticPhase = "callback"
	NotificationSystemDiagnosticPhaseSdk            NotificationSystemDiagnosticPhase = "sdk"
)

func (NotificationSystemDiagnosticPhase) MarshalJSON

func (value NotificationSystemDiagnosticPhase) MarshalJSON() ([]byte, error)

func (NotificationSystemDiagnosticPhase) MarshalText

func (value NotificationSystemDiagnosticPhase) MarshalText() ([]byte, error)

func (*NotificationSystemDiagnosticPhase) UnmarshalJSON

func (value *NotificationSystemDiagnosticPhase) UnmarshalJSON(data []byte) error

func (*NotificationSystemDiagnosticPhase) UnmarshalText

func (value *NotificationSystemDiagnosticPhase) UnmarshalText(data []byte) error

type NotificationSystemDiagnosticPlugin

type NotificationSystemDiagnosticPlugin struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

func DefaultNotificationSystemDiagnosticPlugin

func DefaultNotificationSystemDiagnosticPlugin() NotificationSystemDiagnosticPlugin

func (NotificationSystemDiagnosticPlugin) MarshalJSON

func (value NotificationSystemDiagnosticPlugin) MarshalJSON() ([]byte, error)

func (*NotificationSystemDiagnosticPlugin) UnmarshalJSON

func (value *NotificationSystemDiagnosticPlugin) UnmarshalJSON(data []byte) error

type NotificationSystemDiagnosticReason

type NotificationSystemDiagnosticReason string
const (
	NotificationSystemDiagnosticReasonFailure   NotificationSystemDiagnosticReason = "failure"
	NotificationSystemDiagnosticReasonTimeout   NotificationSystemDiagnosticReason = "timeout"
	NotificationSystemDiagnosticReasonCancelled NotificationSystemDiagnosticReason = "cancelled"
)

func (NotificationSystemDiagnosticReason) MarshalJSON

func (value NotificationSystemDiagnosticReason) MarshalJSON() ([]byte, error)

func (NotificationSystemDiagnosticReason) MarshalText

func (value NotificationSystemDiagnosticReason) MarshalText() ([]byte, error)

func (*NotificationSystemDiagnosticReason) UnmarshalJSON

func (value *NotificationSystemDiagnosticReason) UnmarshalJSON(data []byte) error

func (*NotificationSystemDiagnosticReason) UnmarshalText

func (value *NotificationSystemDiagnosticReason) UnmarshalText(data []byte) error

type NotificationSystemScriptException

type NotificationSystemScriptException string
const (
	NotificationSystemScriptExceptionError          NotificationSystemScriptException = "error"
	NotificationSystemScriptExceptionTypeError      NotificationSystemScriptException = "type_error"
	NotificationSystemScriptExceptionRangeError     NotificationSystemScriptException = "range_error"
	NotificationSystemScriptExceptionReferenceError NotificationSystemScriptException = "reference_error"
	NotificationSystemScriptExceptionSyntaxError    NotificationSystemScriptException = "syntax_error"
	NotificationSystemScriptExceptionUriError       NotificationSystemScriptException = "uri_error"
	NotificationSystemScriptExceptionEvalError      NotificationSystemScriptException = "eval_error"
	NotificationSystemScriptExceptionAggregateError NotificationSystemScriptException = "aggregate_error"
	NotificationSystemScriptExceptionThrownValue    NotificationSystemScriptException = "thrown_value"
	NotificationSystemScriptExceptionUnknown        NotificationSystemScriptException = "unknown"
)

func (NotificationSystemScriptException) MarshalJSON

func (value NotificationSystemScriptException) MarshalJSON() ([]byte, error)

func (NotificationSystemScriptException) MarshalText

func (value NotificationSystemScriptException) MarshalText() ([]byte, error)

func (*NotificationSystemScriptException) UnmarshalJSON

func (value *NotificationSystemScriptException) UnmarshalJSON(data []byte) error

func (*NotificationSystemScriptException) UnmarshalText

func (value *NotificationSystemScriptException) UnmarshalText(data []byte) error

type NotificationSystemSystemDiagnostic

type NotificationSystemSystemDiagnostic struct {
	Incident  RequestID                           `json:"incident"`
	Source    NotificationSystemSystemSource      `json:"source"`
	Phase     NotificationSystemDiagnosticPhase   `json:"phase"`
	Reason    NotificationSystemDiagnosticReason  `json:"reason"`
	Code      ErrorCode                           `json:"code"`
	Cause     *NotificationSystemDiagnosticCause  `json:"cause,omitempty"`
	Exception *NotificationSystemScriptException  `json:"exception"`
	Plugin    *NotificationSystemDiagnosticPlugin `json:"plugin"`
	Request   *RequestID                          `json:"request"`
	Worktree  *WorktreeID                         `json:"worktree"`
	Session   *SessionID                          `json:"session"`
	Turn      *TurnID                             `json:"turn"`
	Operation *string                             `json:"operation"`
	BudgetMs  *uint64                             `json:"budget_ms"`
	ElapsedMs *uint64                             `json:"elapsed_ms"`
	Version   string                              `json:"version"`
	Platform  string                              `json:"platform"`
}

func DefaultNotificationSystemSystemDiagnostic

func DefaultNotificationSystemSystemDiagnostic() NotificationSystemSystemDiagnostic

func (NotificationSystemSystemDiagnostic) MarshalJSON

func (value NotificationSystemSystemDiagnostic) MarshalJSON() ([]byte, error)

func (*NotificationSystemSystemDiagnostic) UnmarshalJSON

func (value *NotificationSystemSystemDiagnostic) UnmarshalJSON(data []byte) error

type NotificationSystemSystemSource

type NotificationSystemSystemSource string
const (
	NotificationSystemSystemSourcePluginMetadata       NotificationSystemSystemSource = "plugin_metadata"
	NotificationSystemSystemSourcePluginInitialization NotificationSystemSystemSource = "plugin_initialization"
	NotificationSystemSystemSourceGitInspection        NotificationSystemSystemSource = "git_inspection"
	NotificationSystemSystemSourcePluginCallback       NotificationSystemSystemSource = "plugin_callback"
)

func (NotificationSystemSystemSource) MarshalJSON

func (value NotificationSystemSystemSource) MarshalJSON() ([]byte, error)

func (NotificationSystemSystemSource) MarshalText

func (value NotificationSystemSystemSource) MarshalText() ([]byte, error)

func (*NotificationSystemSystemSource) UnmarshalJSON

func (value *NotificationSystemSystemSource) UnmarshalJSON(data []byte) error

func (*NotificationSystemSystemSource) UnmarshalText

func (value *NotificationSystemSystemSource) UnmarshalText(data []byte) error

type OfficeInspection

type OfficeInspection struct {
	Path     string          `json:"path"`
	Revision string          `json:"revision"`
	Sections []OfficeSection `json:"sections"`
	Next     *uint64         `json:"next"`
}

func DefaultOfficeInspection

func DefaultOfficeInspection() OfficeInspection

func (OfficeInspection) MarshalJSON

func (value OfficeInspection) MarshalJSON() ([]byte, error)

func (*OfficeInspection) UnmarshalJSON

func (value *OfficeInspection) UnmarshalJSON(data []byte) error

type OfficeRead

type OfficeRead struct {
	Source OfficeSource `json:"source"`
	Offset uint64       `json:"offset"`
}

func DefaultOfficeRead

func DefaultOfficeRead() OfficeRead

func (OfficeRead) MarshalJSON

func (value OfficeRead) MarshalJSON() ([]byte, error)

func (*OfficeRead) UnmarshalJSON

func (value *OfficeRead) UnmarshalJSON(data []byte) error

type OfficeSection

type OfficeSection struct {
	Name      string `json:"name"`
	Text      string `json:"text"`
	Truncated bool   `json:"truncated"`
}

func DefaultOfficeSection

func DefaultOfficeSection() OfficeSection

func (OfficeSection) MarshalJSON

func (value OfficeSection) MarshalJSON() ([]byte, error)

func (*OfficeSection) UnmarshalJSON

func (value *OfficeSection) UnmarshalJSON(data []byte) error

type OfficeSource

type OfficeSource struct {
	Kind string
	Data any
}

func (OfficeSource) MarshalJSON

func (value OfficeSource) MarshalJSON() ([]byte, error)

func (*OfficeSource) UnmarshalJSON

func (value *OfficeSource) UnmarshalJSON(data []byte) error

type Output

type Output struct {
	Kind string
	Data any
}

func (Output) MarshalJSON

func (value Output) MarshalJSON() ([]byte, error)

func (*Output) UnmarshalJSON

func (value *Output) UnmarshalJSON(data []byte) error

type OutputArtifactWrittenPayload

type OutputArtifactWrittenPayload struct {
	Artifact ArtifactSummary `json:"artifact"`
	Warnings []string        `json:"warnings"`
}

func DefaultOutputArtifactWrittenPayload

func DefaultOutputArtifactWrittenPayload() OutputArtifactWrittenPayload

func (OutputArtifactWrittenPayload) MarshalJSON

func (value OutputArtifactWrittenPayload) MarshalJSON() ([]byte, error)

func (*OutputArtifactWrittenPayload) UnmarshalJSON

func (value *OutputArtifactWrittenPayload) UnmarshalJSON(data []byte) error

type OutputAttachmentDiscardedPayload

type OutputAttachmentDiscardedPayload struct {
	Attachment AttachmentID `json:"attachment"`
}

func DefaultOutputAttachmentDiscardedPayload

func DefaultOutputAttachmentDiscardedPayload() OutputAttachmentDiscardedPayload

func (OutputAttachmentDiscardedPayload) MarshalJSON

func (value OutputAttachmentDiscardedPayload) MarshalJSON() ([]byte, error)

func (*OutputAttachmentDiscardedPayload) UnmarshalJSON

func (value *OutputAttachmentDiscardedPayload) UnmarshalJSON(data []byte) error

type OutputBackupRestoredPayload

type OutputBackupRestoredPayload struct {
	Record BackupRecord `json:"record"`
	Target string       `json:"target"`
}

func DefaultOutputBackupRestoredPayload

func DefaultOutputBackupRestoredPayload() OutputBackupRestoredPayload

func (OutputBackupRestoredPayload) MarshalJSON

func (value OutputBackupRestoredPayload) MarshalJSON() ([]byte, error)

func (*OutputBackupRestoredPayload) UnmarshalJSON

func (value *OutputBackupRestoredPayload) UnmarshalJSON(data []byte) error

type OutputCodeIndexQueryCancelledPayload

type OutputCodeIndexQueryCancelledPayload struct {
	Request RequestID `json:"request"`
}

func DefaultOutputCodeIndexQueryCancelledPayload

func DefaultOutputCodeIndexQueryCancelledPayload() OutputCodeIndexQueryCancelledPayload

func (OutputCodeIndexQueryCancelledPayload) MarshalJSON

func (value OutputCodeIndexQueryCancelledPayload) MarshalJSON() ([]byte, error)

func (*OutputCodeIndexQueryCancelledPayload) UnmarshalJSON

func (value *OutputCodeIndexQueryCancelledPayload) UnmarshalJSON(data []byte) error

type OutputCommandInputAcceptedPayload

type OutputCommandInputAcceptedPayload struct {
	ID    RequestID `json:"id"`
	Bytes uint64    `json:"bytes"`
}

func DefaultOutputCommandInputAcceptedPayload

func DefaultOutputCommandInputAcceptedPayload() OutputCommandInputAcceptedPayload

func (OutputCommandInputAcceptedPayload) MarshalJSON

func (value OutputCommandInputAcceptedPayload) MarshalJSON() ([]byte, error)

func (*OutputCommandInputAcceptedPayload) UnmarshalJSON

func (value *OutputCommandInputAcceptedPayload) UnmarshalJSON(data []byte) error

type OutputDatabaseCancelledPayload

type OutputDatabaseCancelledPayload struct {
	Request RequestID `json:"request"`
}

func DefaultOutputDatabaseCancelledPayload

func DefaultOutputDatabaseCancelledPayload() OutputDatabaseCancelledPayload

func (OutputDatabaseCancelledPayload) MarshalJSON

func (value OutputDatabaseCancelledPayload) MarshalJSON() ([]byte, error)

func (*OutputDatabaseCancelledPayload) UnmarshalJSON

func (value *OutputDatabaseCancelledPayload) UnmarshalJSON(data []byte) error

type OutputDirectoryCreatedPayload

type OutputDirectoryCreatedPayload struct {
	Path string `json:"path"`
}

func DefaultOutputDirectoryCreatedPayload

func DefaultOutputDirectoryCreatedPayload() OutputDirectoryCreatedPayload

func (OutputDirectoryCreatedPayload) MarshalJSON

func (value OutputDirectoryCreatedPayload) MarshalJSON() ([]byte, error)

func (*OutputDirectoryCreatedPayload) UnmarshalJSON

func (value *OutputDirectoryCreatedPayload) UnmarshalJSON(data []byte) error

type OutputEntryCopiedPayload

type OutputEntryCopiedPayload struct {
	From string `json:"from"`
	To   string `json:"to"`
}

func DefaultOutputEntryCopiedPayload

func DefaultOutputEntryCopiedPayload() OutputEntryCopiedPayload

func (OutputEntryCopiedPayload) MarshalJSON

func (value OutputEntryCopiedPayload) MarshalJSON() ([]byte, error)

func (*OutputEntryCopiedPayload) UnmarshalJSON

func (value *OutputEntryCopiedPayload) UnmarshalJSON(data []byte) error

type OutputEntryMovedPayload

type OutputEntryMovedPayload struct {
	From string `json:"from"`
	To   string `json:"to"`
}

func DefaultOutputEntryMovedPayload

func DefaultOutputEntryMovedPayload() OutputEntryMovedPayload

func (OutputEntryMovedPayload) MarshalJSON

func (value OutputEntryMovedPayload) MarshalJSON() ([]byte, error)

func (*OutputEntryMovedPayload) UnmarshalJSON

func (value *OutputEntryMovedPayload) UnmarshalJSON(data []byte) error

type OutputEntryRenamedPayload

type OutputEntryRenamedPayload struct {
	From string `json:"from"`
	To   string `json:"to"`
}

func DefaultOutputEntryRenamedPayload

func DefaultOutputEntryRenamedPayload() OutputEntryRenamedPayload

func (OutputEntryRenamedPayload) MarshalJSON

func (value OutputEntryRenamedPayload) MarshalJSON() ([]byte, error)

func (*OutputEntryRenamedPayload) UnmarshalJSON

func (value *OutputEntryRenamedPayload) UnmarshalJSON(data []byte) error

type OutputEntryTrashedPayload

type OutputEntryTrashedPayload struct {
	Path string `json:"path"`
}

func DefaultOutputEntryTrashedPayload

func DefaultOutputEntryTrashedPayload() OutputEntryTrashedPayload

func (OutputEntryTrashedPayload) MarshalJSON

func (value OutputEntryTrashedPayload) MarshalJSON() ([]byte, error)

func (*OutputEntryTrashedPayload) UnmarshalJSON

func (value *OutputEntryTrashedPayload) UnmarshalJSON(data []byte) error

type OutputFileTransferCancelledPayload

type OutputFileTransferCancelledPayload struct {
	Stream StreamID `json:"stream"`
}

func DefaultOutputFileTransferCancelledPayload

func DefaultOutputFileTransferCancelledPayload() OutputFileTransferCancelledPayload

func (OutputFileTransferCancelledPayload) MarshalJSON

func (value OutputFileTransferCancelledPayload) MarshalJSON() ([]byte, error)

func (*OutputFileTransferCancelledPayload) UnmarshalJSON

func (value *OutputFileTransferCancelledPayload) UnmarshalJSON(data []byte) error

type OutputGitBranchDeletedPayload

type OutputGitBranchDeletedPayload struct {
	Name string `json:"name"`
}

func DefaultOutputGitBranchDeletedPayload

func DefaultOutputGitBranchDeletedPayload() OutputGitBranchDeletedPayload

func (OutputGitBranchDeletedPayload) MarshalJSON

func (value OutputGitBranchDeletedPayload) MarshalJSON() ([]byte, error)

func (*OutputGitBranchDeletedPayload) UnmarshalJSON

func (value *OutputGitBranchDeletedPayload) UnmarshalJSON(data []byte) error

type OutputGitCommitCreatedPayload

type OutputGitCommitCreatedPayload struct {
	ID       string `json:"id"`
	FollowUp *Fault `json:"follow_up"`
}

func DefaultOutputGitCommitCreatedPayload

func DefaultOutputGitCommitCreatedPayload() OutputGitCommitCreatedPayload

func (OutputGitCommitCreatedPayload) MarshalJSON

func (value OutputGitCommitCreatedPayload) MarshalJSON() ([]byte, error)

func (*OutputGitCommitCreatedPayload) UnmarshalJSON

func (value *OutputGitCommitCreatedPayload) UnmarshalJSON(data []byte) error

type OutputGitOutputPayload

type OutputGitOutputPayload struct {
	Text string `json:"text"`
}

func DefaultOutputGitOutputPayload

func DefaultOutputGitOutputPayload() OutputGitOutputPayload

func (OutputGitOutputPayload) MarshalJSON

func (value OutputGitOutputPayload) MarshalJSON() ([]byte, error)

func (*OutputGitOutputPayload) UnmarshalJSON

func (value *OutputGitOutputPayload) UnmarshalJSON(data []byte) error

type OutputGitRevisionPayload

type OutputGitRevisionPayload struct {
	Commit string `json:"commit"`
}

func DefaultOutputGitRevisionPayload

func DefaultOutputGitRevisionPayload() OutputGitRevisionPayload

func (OutputGitRevisionPayload) MarshalJSON

func (value OutputGitRevisionPayload) MarshalJSON() ([]byte, error)

func (*OutputGitRevisionPayload) UnmarshalJSON

func (value *OutputGitRevisionPayload) UnmarshalJSON(data []byte) error

type OutputHostProcessSignalledPayload

type OutputHostProcessSignalledPayload struct {
	Pid           uint32 `json:"pid"`
	StartedAtSecs uint64 `json:"started_at_secs"`
}

func DefaultOutputHostProcessSignalledPayload

func DefaultOutputHostProcessSignalledPayload() OutputHostProcessSignalledPayload

func (OutputHostProcessSignalledPayload) MarshalJSON

func (value OutputHostProcessSignalledPayload) MarshalJSON() ([]byte, error)

func (*OutputHostProcessSignalledPayload) UnmarshalJSON

func (value *OutputHostProcessSignalledPayload) UnmarshalJSON(data []byte) error

type OutputInstallationDismissedPayload

type OutputInstallationDismissedPayload struct {
	Request RequestID `json:"request"`
}

func DefaultOutputInstallationDismissedPayload

func DefaultOutputInstallationDismissedPayload() OutputInstallationDismissedPayload

func (OutputInstallationDismissedPayload) MarshalJSON

func (value OutputInstallationDismissedPayload) MarshalJSON() ([]byte, error)

func (*OutputInstallationDismissedPayload) UnmarshalJSON

func (value *OutputInstallationDismissedPayload) UnmarshalJSON(data []byte) error

type OutputKnowledgeCollectionDeletedPayload

type OutputKnowledgeCollectionDeletedPayload struct {
	ID KnowledgeID `json:"id"`
}

func DefaultOutputKnowledgeCollectionDeletedPayload

func DefaultOutputKnowledgeCollectionDeletedPayload() OutputKnowledgeCollectionDeletedPayload

func (OutputKnowledgeCollectionDeletedPayload) MarshalJSON

func (value OutputKnowledgeCollectionDeletedPayload) MarshalJSON() ([]byte, error)

func (*OutputKnowledgeCollectionDeletedPayload) UnmarshalJSON

func (value *OutputKnowledgeCollectionDeletedPayload) UnmarshalJSON(data []byte) error

type OutputLocalModelPayload

type OutputLocalModelPayload struct {
	ID string `json:"id"`
}

func DefaultOutputLocalModelPayload

func DefaultOutputLocalModelPayload() OutputLocalModelPayload

func (OutputLocalModelPayload) MarshalJSON

func (value OutputLocalModelPayload) MarshalJSON() ([]byte, error)

func (*OutputLocalModelPayload) UnmarshalJSON

func (value *OutputLocalModelPayload) UnmarshalJSON(data []byte) error

type OutputMemoryDeletedPayload

type OutputMemoryDeletedPayload struct {
	ID string `json:"id"`
}

type OutputPluginCallStoppingPayload

type OutputPluginCallStoppingPayload struct {
	Request RequestID `json:"request"`
}

func DefaultOutputPluginCallStoppingPayload

func DefaultOutputPluginCallStoppingPayload() OutputPluginCallStoppingPayload

func (OutputPluginCallStoppingPayload) MarshalJSON

func (value OutputPluginCallStoppingPayload) MarshalJSON() ([]byte, error)

func (*OutputPluginCallStoppingPayload) UnmarshalJSON

func (value *OutputPluginCallStoppingPayload) UnmarshalJSON(data []byte) error

type OutputPortStreamPayload

type OutputPortStreamPayload struct {
	Stream StreamID `json:"stream"`
}

func DefaultOutputPortStreamPayload

func DefaultOutputPortStreamPayload() OutputPortStreamPayload

func (OutputPortStreamPayload) MarshalJSON

func (value OutputPortStreamPayload) MarshalJSON() ([]byte, error)

func (*OutputPortStreamPayload) UnmarshalJSON

func (value *OutputPortStreamPayload) UnmarshalJSON(data []byte) error

type OutputProjectRemovedPayload

type OutputProjectRemovedPayload struct {
	ID ProjectID `json:"id"`
}

func DefaultOutputProjectRemovedPayload

func DefaultOutputProjectRemovedPayload() OutputProjectRemovedPayload

func (OutputProjectRemovedPayload) MarshalJSON

func (value OutputProjectRemovedPayload) MarshalJSON() ([]byte, error)

func (*OutputProjectRemovedPayload) UnmarshalJSON

func (value *OutputProjectRemovedPayload) UnmarshalJSON(data []byte) error

type OutputRequestOutcomePayload

type OutputRequestOutcomePayload struct {
	ID      RequestID      `json:"id"`
	Outcome RequestOutcome `json:"outcome"`
}

func DefaultOutputRequestOutcomePayload

func DefaultOutputRequestOutcomePayload() OutputRequestOutcomePayload

func (OutputRequestOutcomePayload) MarshalJSON

func (value OutputRequestOutcomePayload) MarshalJSON() ([]byte, error)

func (*OutputRequestOutcomePayload) UnmarshalJSON

func (value *OutputRequestOutcomePayload) UnmarshalJSON(data []byte) error

type OutputSshCancelledPayload

type OutputSshCancelledPayload struct {
	Request RequestID `json:"request"`
}

func DefaultOutputSshCancelledPayload

func DefaultOutputSshCancelledPayload() OutputSshCancelledPayload

func (OutputSshCancelledPayload) MarshalJSON

func (value OutputSshCancelledPayload) MarshalJSON() ([]byte, error)

func (*OutputSshCancelledPayload) UnmarshalJSON

func (value *OutputSshCancelledPayload) UnmarshalJSON(data []byte) error

type OutputTerminalInputPayload

type OutputTerminalInputPayload struct {
	Terminal TerminalID `json:"terminal"`
}

func DefaultOutputTerminalInputPayload

func DefaultOutputTerminalInputPayload() OutputTerminalInputPayload

func (OutputTerminalInputPayload) MarshalJSON

func (value OutputTerminalInputPayload) MarshalJSON() ([]byte, error)

func (*OutputTerminalInputPayload) UnmarshalJSON

func (value *OutputTerminalInputPayload) UnmarshalJSON(data []byte) error

type OutputTurnReplacedPayload

type OutputTurnReplacedPayload struct {
	Turn    QueuedTurn          `json:"turn"`
	History *ConversationRewind `json:"history"`
}

func DefaultOutputTurnReplacedPayload

func DefaultOutputTurnReplacedPayload() OutputTurnReplacedPayload

func (OutputTurnReplacedPayload) MarshalJSON

func (value OutputTurnReplacedPayload) MarshalJSON() ([]byte, error)

func (*OutputTurnReplacedPayload) UnmarshalJSON

func (value *OutputTurnReplacedPayload) UnmarshalJSON(data []byte) error

type OutputWebFetchCancelledPayload

type OutputWebFetchCancelledPayload struct {
	Request RequestID `json:"request"`
}

func DefaultOutputWebFetchCancelledPayload

func DefaultOutputWebFetchCancelledPayload() OutputWebFetchCancelledPayload

func (OutputWebFetchCancelledPayload) MarshalJSON

func (value OutputWebFetchCancelledPayload) MarshalJSON() ([]byte, error)

func (*OutputWebFetchCancelledPayload) UnmarshalJSON

func (value *OutputWebFetchCancelledPayload) UnmarshalJSON(data []byte) error

type OutputWebSearchCancelledPayload

type OutputWebSearchCancelledPayload struct {
	Request RequestID `json:"request"`
}

func DefaultOutputWebSearchCancelledPayload

func DefaultOutputWebSearchCancelledPayload() OutputWebSearchCancelledPayload

func (OutputWebSearchCancelledPayload) MarshalJSON

func (value OutputWebSearchCancelledPayload) MarshalJSON() ([]byte, error)

func (*OutputWebSearchCancelledPayload) UnmarshalJSON

func (value *OutputWebSearchCancelledPayload) UnmarshalJSON(data []byte) error

type OutputWorktreeRemovedPayload

type OutputWorktreeRemovedPayload struct {
	ID WorktreeID `json:"id"`
}

func DefaultOutputWorktreeRemovedPayload

func DefaultOutputWorktreeRemovedPayload() OutputWorktreeRemovedPayload

func (OutputWorktreeRemovedPayload) MarshalJSON

func (value OutputWorktreeRemovedPayload) MarshalJSON() ([]byte, error)

func (*OutputWorktreeRemovedPayload) UnmarshalJSON

func (value *OutputWorktreeRemovedPayload) UnmarshalJSON(data []byte) error

type OutputWslHostInstallCancelledPayload

type OutputWslHostInstallCancelledPayload struct {
	Request RequestID `json:"request"`
}

func DefaultOutputWslHostInstallCancelledPayload

func DefaultOutputWslHostInstallCancelledPayload() OutputWslHostInstallCancelledPayload

func (OutputWslHostInstallCancelledPayload) MarshalJSON

func (value OutputWslHostInstallCancelledPayload) MarshalJSON() ([]byte, error)

func (*OutputWslHostInstallCancelledPayload) UnmarshalJSON

func (value *OutputWslHostInstallCancelledPayload) UnmarshalJSON(data []byte) error

type Permission

type Permission string
const (
	PermissionAsk     Permission = "ask"
	PermissionProject Permission = "project"
	PermissionFull    Permission = "full"
)

func (*Permission) DecodeJSON

func (value *Permission) DecodeJSON(decoder *Decoder) error

func (Permission) MarshalJSON

func (value Permission) MarshalJSON() ([]byte, error)

func (Permission) MarshalText

func (value Permission) MarshalText() ([]byte, error)

func (*Permission) UnmarshalJSON

func (value *Permission) UnmarshalJSON(data []byte) error

func (*Permission) UnmarshalText

func (value *Permission) UnmarshalText(data []byte) error

type PermissionsContribution

type PermissionsContribution struct {
	Kind         PermissionsKind `json:"kind"`
	Subject      string          `json:"subject"`
	Check        *string         `json:"check"`
	Request      *string         `json:"request"`
	RequestGroup *string         `json:"request_group"`
	Actions      []PluginAction  `json:"actions"`
}

func DefaultPermissionsContribution

func DefaultPermissionsContribution() PermissionsContribution

func (PermissionsContribution) MarshalJSON

func (value PermissionsContribution) MarshalJSON() ([]byte, error)

func (*PermissionsContribution) UnmarshalJSON

func (value *PermissionsContribution) UnmarshalJSON(data []byte) error

type PermissionsGrant

type PermissionsGrant struct {
	Kind       PermissionsKind `json:"kind"`
	Authorized *bool           `json:"authorized"`
}

func DefaultPermissionsGrant

func DefaultPermissionsGrant() PermissionsGrant

func (PermissionsGrant) MarshalJSON

func (value PermissionsGrant) MarshalJSON() ([]byte, error)

func (*PermissionsGrant) UnmarshalJSON

func (value *PermissionsGrant) UnmarshalJSON(data []byte) error

type PermissionsKind

type PermissionsKind string
const (
	PermissionsKindFullDisk        PermissionsKind = "full_disk"
	PermissionsKindScreenRecording PermissionsKind = "screen_recording"
	PermissionsKindAccessibility   PermissionsKind = "accessibility"
	PermissionsKindMicrophone      PermissionsKind = "microphone"
)

func (PermissionsKind) MarshalJSON

func (value PermissionsKind) MarshalJSON() ([]byte, error)

func (PermissionsKind) MarshalText

func (value PermissionsKind) MarshalText() ([]byte, error)

func (*PermissionsKind) UnmarshalJSON

func (value *PermissionsKind) UnmarshalJSON(data []byte) error

func (*PermissionsKind) UnmarshalText

func (value *PermissionsKind) UnmarshalText(data []byte) error

type PermissionsStatus

type PermissionsStatus struct {
	Grants     []PermissionsGrant `json:"grants"`
	CanRequest bool               `json:"can_request"`
}

func DefaultPermissionsStatus

func DefaultPermissionsStatus() PermissionsStatus

func (PermissionsStatus) MarshalJSON

func (value PermissionsStatus) MarshalJSON() ([]byte, error)

func (*PermissionsStatus) UnmarshalJSON

func (value *PermissionsStatus) UnmarshalJSON(data []byte) error

type PersonalInstructions added in v0.2.3

type PersonalInstructions struct {
	Text     string  `json:"text"`
	Revision *string `json:"revision"`
}

func (*PersonalInstructions) UnmarshalJSON added in v0.2.3

func (value *PersonalInstructions) UnmarshalJSON(data []byte) error

type PersonalKVConflict

type PersonalKVConflict struct {
	Package string    `json:"package"`
	Request RequestID `json:"request"`
	Reason  string    `json:"reason"`
}

type PersonalKVCursor

type PersonalKVCursor struct {
	Plugin string `json:"plugin"`
	Key    string `json:"key"`
}

type PersonalKVGroup

type PersonalKVGroup struct {
	Controller NodeID            `json:"controller"`
	Executor   NodeID            `json:"executor"`
	Request    RequestID         `json:"request"`
	Sequence   uint64            `json:"sequence"`
	Package    PluginReference   `json:"package"`
	Writes     []PersonalKVWrite `json:"writes"`
	Digest     string            `json:"digest"`
}

type PersonalKVPage

type PersonalKVPage struct {
	Request  RequestID `json:"request"`
	Sequence uint64    `json:"sequence"`
	Digest   string    `json:"digest"`
	Bytes    uint64    `json:"bytes"`
	Offset   uint64    `json:"offset"`
	Data     []byte    `json:"data"`
}

type PersonalKVPending

type PersonalKVPending struct {
	Group   *PersonalKVGroup `json:"group,omitempty"`
	Page    *PersonalKVPage  `json:"page,omitempty"`
	Through uint64           `json:"through,omitempty"`
}

type PersonalKVRead

type PersonalKVRead struct {
	Request RequestID `json:"request"`
	Offset  uint64    `json:"offset"`
}

PersonalKVRead continues the immutable outbox group selected by the first read. It cannot advance to another group while a transfer is incomplete.

type PersonalKVReceipt

type PersonalKVReceipt struct {
	Executor NodeID             `json:"executor"`
	Request  RequestID          `json:"request"`
	Sequence uint64             `json:"sequence"`
	Digest   string             `json:"digest"`
	Applied  bool               `json:"applied"`
	Records  []PersonalKVRecord `json:"records"`
	Reason   string             `json:"reason,omitempty"`
}

type PersonalKVRecord

type PersonalKVRecord struct {
	Plugin     string              `json:"plugin"`
	Key        string              `json:"key"`
	Revision   uint64              `json:"revision"`
	Value      json.RawMessage     `json:"value,omitempty"`
	ValueBytes []byte              `json:"value_bytes,omitempty"`
	Index      *PluginStorageIndex `json:"index,omitempty"`
	Present    bool                `json:"present"`
}

func (PersonalKVRecord) ValueJSON

func (value PersonalKVRecord) ValueJSON() json.RawMessage

type PersonalKVSnapshot

type PersonalKVSnapshot struct {
	Generation uint64             `json:"generation"`
	After      *PersonalKVCursor  `json:"after,omitempty"`
	Next       *PersonalKVCursor  `json:"next,omitempty"`
	Records    []PersonalKVRecord `json:"records"`
}

Snapshot pages are staged before publication. A generation change aborts the partial snapshot instead of treating its missing pages as deletions.

type PersonalKVWrite

type PersonalKVWrite struct {
	Key          string              `json:"key"`
	BaseRevision uint64              `json:"base_revision"`
	Predecessor  *RequestID          `json:"predecessor,omitempty"`
	Value        json.RawMessage     `json:"value,omitempty"`
	ValueBytes   []byte              `json:"value_bytes,omitempty"`
	Index        *PluginStorageIndex `json:"index,omitempty"`
	Present      bool                `json:"present"`
}

PersonalKVWrite is the normalized final write of one key in an admitted transaction. A predecessor binds successive offline writes to their receipt.

func (PersonalKVWrite) ValueJSON

func (value PersonalKVWrite) ValueJSON() json.RawMessage

Values travel as bytes so JSON encoding cannot change whitespace or escaping. The legacy value member remains readable for persisted outbox groups and their original digests; new records populate only value_bytes.

type PluginAction

type PluginAction string
const (
	PluginActionReadArtifacts          PluginAction = "artifacts.read"
	PluginActionWriteArtifacts         PluginAction = "artifacts.write"
	PluginActionReadCodeIndex          PluginAction = "code.index.read"
	PluginActionReadCodeIndexSettings  PluginAction = "code.index.settings.read"
	PluginActionSaveCodeIndexSettings  PluginAction = "code.index.settings.write"
	PluginActionReadCode               PluginAction = "code.read"
	PluginActionManageCode             PluginAction = "code.manage"
	PluginActionReadCodeSettings       PluginAction = "code.settings.read"
	PluginActionSaveCodeSettings       PluginAction = "code.settings.write"
	PluginActionReadSearchSettings     PluginAction = "web.settings.read"
	PluginActionSaveSearchSettings     PluginAction = "web.settings.write"
	PluginActionReadActivity           PluginAction = "activity.read"
	PluginActionReadUsage              PluginAction = "usage.read"
	PluginActionReadDatabases          PluginAction = "databases.read"
	PluginActionControlDatabases       PluginAction = "databases.control"
	PluginActionManageDatabases        PluginAction = "databases.manage"
	PluginActionReadSsh                PluginAction = "ssh.read"
	PluginActionControlSsh             PluginAction = "ssh.control"
	PluginActionManageSsh              PluginAction = "ssh.manage"
	PluginActionDelegateAgents         PluginAction = "agents.delegate"
	PluginActionReadRoles              PluginAction = "roles.read"
	PluginActionReadTeams              PluginAction = "teams.read"
	PluginActionWriteRoles             PluginAction = "roles.write"
	PluginActionReadModels             PluginAction = "models.read"
	PluginActionRunDecisions           PluginAction = "decisions.run"
	PluginActionProvideModels          PluginAction = "models.provide"
	PluginActionAuthenticateModels     PluginAction = "models.authenticate"
	PluginActionInspectCredentials     PluginAction = "credentials.inspect"
	PluginActionInstallModels          PluginAction = "models.install"
	PluginActionInspectMedia           PluginAction = "media.inspect"
	PluginActionGenerateImage          PluginAction = "media.image"
	PluginActionGenerateVideo          PluginAction = "media.video"
	PluginActionReadMediaSettings      PluginAction = "media.settings.read"
	PluginActionSaveMediaSettings      PluginAction = "media.settings.write"
	PluginActionReadComputer           PluginAction = "computer.read"
	PluginActionControlComputer        PluginAction = "computer.control"
	PluginActionReadBrowser            PluginAction = "browser.read"
	PluginActionControlBrowser         PluginAction = "browser.control"
	PluginActionReadExternalBrowser    PluginAction = "external_browser.read"
	PluginActionControlExternalBrowser PluginAction = "external_browser.control"
	PluginActionNotify                 PluginAction = "notifications.publish"
	PluginActionDispatch               PluginAction = "dispatch.manage"
	PluginActionReadFiles              PluginAction = "files.read"
	PluginActionWriteFiles             PluginAction = "files.write"
	PluginActionReadGit                PluginAction = "git.read"
	PluginActionWriteGit               PluginAction = "git.write"
	PluginActionReadWorktrees          PluginAction = "worktrees.read"
	PluginActionWriteWorktrees         PluginAction = "worktrees.write"
	PluginActionReadCommands           PluginAction = "process.read"
	PluginActionControlCommands        PluginAction = "process.control"
	PluginActionRunPrograms            PluginAction = "process.run"
	PluginActionReadTerminals          PluginAction = "terminals.read"
	PluginActionControlTerminals       PluginAction = "terminals.control"
	PluginActionReadConversation       PluginAction = "conversation.read"
	PluginActionControlConversation    PluginAction = "conversation.control"
	PluginActionReadMessage            PluginAction = "conversation.message.read"
	PluginActionStartSessions          PluginAction = "sessions.start"
	PluginActionReadProjects           PluginAction = "projects.read"
	PluginActionHttp                   PluginAction = "http.request"
	PluginActionReadWeb                PluginAction = "web.read"
	PluginActionGenerateText           PluginAction = "models.generate"
	PluginActionReadStorage            PluginAction = "storage.read"
	PluginActionWriteStorage           PluginAction = "storage.write"
	PluginActionReadKnowledge          PluginAction = "knowledge.read"
	PluginActionWriteKnowledge         PluginAction = "knowledge.write"
)

func (PluginAction) MarshalJSON

func (value PluginAction) MarshalJSON() ([]byte, error)

func (PluginAction) MarshalText

func (value PluginAction) MarshalText() ([]byte, error)

func (PluginAction) ReadOnly

func (value PluginAction) ReadOnly() bool

func (*PluginAction) UnmarshalJSON

func (value *PluginAction) UnmarshalJSON(data []byte) error

func (*PluginAction) UnmarshalText

func (value *PluginAction) UnmarshalText(data []byte) error

type PluginCardCapabilities

type PluginCardCapabilities struct {
	Qr       *PluginCardQr      `json:"qr,omitempty"`
	Refresh  bool               `json:"refresh"`
	Settings bool               `json:"settings"`
	Browser  []PluginCardTarget `json:"browser"`
}

func DefaultPluginCardCapabilities

func DefaultPluginCardCapabilities() PluginCardCapabilities

func (PluginCardCapabilities) MarshalJSON

func (value PluginCardCapabilities) MarshalJSON() ([]byte, error)

func (*PluginCardCapabilities) UnmarshalJSON

func (value *PluginCardCapabilities) UnmarshalJSON(data []byte) error

type PluginCardDeclaration

type PluginCardDeclaration struct {
	Key          string                 `json:"key"`
	Entry        string                 `json:"entry"`
	PropsSchema  json.RawMessage        `json:"props_schema"`
	Tool         *string                `json:"tool,omitempty"`
	McpServer    *string                `json:"mcp_server,omitempty"`
	Capabilities PluginCardCapabilities `json:"capabilities"`
}

func DefaultPluginCardDeclaration

func DefaultPluginCardDeclaration() PluginCardDeclaration

func (PluginCardDeclaration) MarshalJSON

func (value PluginCardDeclaration) MarshalJSON() ([]byte, error)

func (*PluginCardDeclaration) UnmarshalJSON

func (value *PluginCardDeclaration) UnmarshalJSON(data []byte) error

type PluginCardDraft

type PluginCardDraft struct {
	Key      string                  `json:"key"`
	Props    json.RawMessage         `json:"props"`
	Fallback PluginDesktopNavigation `json:"fallback"`
}

func DefaultPluginCardDraft

func DefaultPluginCardDraft() PluginCardDraft

func (PluginCardDraft) MarshalJSON

func (value PluginCardDraft) MarshalJSON() ([]byte, error)

func (*PluginCardDraft) UnmarshalJSON

func (value *PluginCardDraft) UnmarshalJSON(data []byte) error

type PluginCardMode

type PluginCardMode string
const (
	PluginCardModeEmbedded PluginCardMode = "embedded"
	PluginCardModeExternal PluginCardMode = "external"
)

func (PluginCardMode) MarshalJSON

func (value PluginCardMode) MarshalJSON() ([]byte, error)

func (PluginCardMode) MarshalText

func (value PluginCardMode) MarshalText() ([]byte, error)

func (*PluginCardMode) UnmarshalJSON

func (value *PluginCardMode) UnmarshalJSON(data []byte) error

func (*PluginCardMode) UnmarshalText

func (value *PluginCardMode) UnmarshalText(data []byte) error

type PluginCardQr

type PluginCardQr struct {
	Payload   string  `json:"payload"`
	ExpiresAt *string `json:"expires_at,omitempty"`
}

func DefaultPluginCardQr

func DefaultPluginCardQr() PluginCardQr

func (PluginCardQr) MarshalJSON

func (value PluginCardQr) MarshalJSON() ([]byte, error)

func (*PluginCardQr) UnmarshalJSON

func (value *PluginCardQr) UnmarshalJSON(data []byte) error

type PluginCardReceipt

type PluginCardReceipt struct {
	Session SessionID `json:"session"`
	Turn    TurnID    `json:"turn"`
	Call    RequestID `json:"call"`
	Block   uint8     `json:"block"`
}

func DefaultPluginCardReceipt

func DefaultPluginCardReceipt() PluginCardReceipt

func (PluginCardReceipt) MarshalJSON

func (value PluginCardReceipt) MarshalJSON() ([]byte, error)

func (*PluginCardReceipt) UnmarshalJSON

func (value *PluginCardReceipt) UnmarshalJSON(data []byte) error

type PluginCardSource

type PluginCardSource struct {
	Kind string
	Data any
}

func (PluginCardSource) MarshalJSON

func (value PluginCardSource) MarshalJSON() ([]byte, error)

func (*PluginCardSource) UnmarshalJSON

func (value *PluginCardSource) UnmarshalJSON(data []byte) error

type PluginCardSourcePropsPayload

type PluginCardSourcePropsPayload struct {
	Pointer string `json:"pointer"`
}

func DefaultPluginCardSourcePropsPayload

func DefaultPluginCardSourcePropsPayload() PluginCardSourcePropsPayload

func (PluginCardSourcePropsPayload) MarshalJSON

func (value PluginCardSourcePropsPayload) MarshalJSON() ([]byte, error)

func (*PluginCardSourcePropsPayload) UnmarshalJSON

func (value *PluginCardSourcePropsPayload) UnmarshalJSON(data []byte) error

type PluginCardSummary

type PluginCardSummary struct {
	Receipt  PluginCardReceipt       `json:"receipt"`
	Node     NodeID                  `json:"node"`
	Worktree WorktreeID              `json:"worktree"`
	Package  PluginReference         `json:"package"`
	Key      string                  `json:"key"`
	Props    json.RawMessage         `json:"props"`
	Fallback PluginDesktopNavigation `json:"fallback"`
}

func DefaultPluginCardSummary

func DefaultPluginCardSummary() PluginCardSummary

func (PluginCardSummary) MarshalJSON

func (value PluginCardSummary) MarshalJSON() ([]byte, error)

func (*PluginCardSummary) UnmarshalJSON

func (value *PluginCardSummary) UnmarshalJSON(data []byte) error

type PluginCardTarget

type PluginCardTarget struct {
	Name    string           `json:"name"`
	Origins []string         `json:"origins"`
	Source  PluginCardSource `json:"source"`
	Modes   []PluginCardMode `json:"modes"`
}

func DefaultPluginCardTarget

func DefaultPluginCardTarget() PluginCardTarget

func (PluginCardTarget) MarshalJSON

func (value PluginCardTarget) MarshalJSON() ([]byte, error)

func (*PluginCardTarget) UnmarshalJSON

func (value *PluginCardTarget) UnmarshalJSON(data []byte) error

type PluginCatalogDetails

type PluginCatalogDetails struct {
	Kind string
	Data any
}

func (PluginCatalogDetails) MarshalJSON

func (value PluginCatalogDetails) MarshalJSON() ([]byte, error)

func (*PluginCatalogDetails) UnmarshalJSON

func (value *PluginCatalogDetails) UnmarshalJSON(data []byte) error

type PluginCatalogEntry

type PluginCatalogEntry struct {
	CompatibleVersion  *PluginCatalogVersion      `json:"compatible_version,omitempty"`
	Compatibility      PluginCompatibility        `json:"compatibility"`
	Commit             *string                    `json:"commit,omitempty"`
	Versions           []PluginCatalogVersion     `json:"versions,omitempty"`
	Category           *PluginCategory            `json:"category,omitempty"`
	Tint               *PluginTint                `json:"tint,omitempty"`
	ReleaseNotes       *PluginCatalogReleaseNotes `json:"release_notes,omitempty"`
	ID                 string                     `json:"id"`
	Name               string                     `json:"name"`
	Version            *string                    `json:"version"`
	Description        *string                    `json:"description"`
	DescriptionLocales map[string]string          `json:"description_locales,omitempty"`
	Display            *PluginDesktopNavigation   `json:"display"`
	Icon               *string                    `json:"icon"`
	Repository         *string                    `json:"repository"`
	Bundled            bool                       `json:"bundled"`
	ProvidesModels     bool                       `json:"provides_models"`
	Permissions        []PluginAction             `json:"permissions"`
}

func DefaultPluginCatalogEntry

func DefaultPluginCatalogEntry() PluginCatalogEntry

func (PluginCatalogEntry) MarshalJSON

func (value PluginCatalogEntry) MarshalJSON() ([]byte, error)

func (*PluginCatalogEntry) UnmarshalJSON

func (value *PluginCatalogEntry) UnmarshalJSON(data []byte) error

type PluginCatalogExternal

type PluginCatalogExternal struct {
	Source   PluginSkillsResolved  `json:"source"`
	Metadata PluginCatalogMetadata `json:"metadata"`
	Formats  []PluginCatalogFormat `json:"formats"`
}

func DefaultPluginCatalogExternal

func DefaultPluginCatalogExternal() PluginCatalogExternal

func (PluginCatalogExternal) MarshalJSON

func (value PluginCatalogExternal) MarshalJSON() ([]byte, error)

func (*PluginCatalogExternal) UnmarshalJSON

func (value *PluginCatalogExternal) UnmarshalJSON(data []byte) error

type PluginCatalogFormat

type PluginCatalogFormat string
const (
	PluginCatalogFormatCodex      PluginCatalogFormat = "codex"
	PluginCatalogFormatClaudeCode PluginCatalogFormat = "claude_code"
)

func (PluginCatalogFormat) MarshalJSON

func (value PluginCatalogFormat) MarshalJSON() ([]byte, error)

func (PluginCatalogFormat) MarshalText

func (value PluginCatalogFormat) MarshalText() ([]byte, error)

func (*PluginCatalogFormat) UnmarshalJSON

func (value *PluginCatalogFormat) UnmarshalJSON(data []byte) error

func (*PluginCatalogFormat) UnmarshalText

func (value *PluginCatalogFormat) UnmarshalText(data []byte) error

type PluginCatalogMetadata

type PluginCatalogMetadata struct {
	Name        string  `json:"name"`
	Version     *string `json:"version"`
	Description *string `json:"description"`
	Homepage    *string `json:"homepage"`
	License     *string `json:"license"`
	Author      *string `json:"author"`
}

func DefaultPluginCatalogMetadata

func DefaultPluginCatalogMetadata() PluginCatalogMetadata

func (PluginCatalogMetadata) MarshalJSON

func (value PluginCatalogMetadata) MarshalJSON() ([]byte, error)

func (*PluginCatalogMetadata) UnmarshalJSON

func (value *PluginCatalogMetadata) UnmarshalJSON(data []byte) error

type PluginCatalogPage

type PluginCatalogPage struct {
	Entries     []PluginCatalogEntry `json:"entries"`
	Page        uint32               `json:"page"`
	Pages       uint32               `json:"pages"`
	Unavailable bool                 `json:"unavailable"`
}

func DefaultPluginCatalogPage

func DefaultPluginCatalogPage() PluginCatalogPage

func (PluginCatalogPage) MarshalJSON

func (value PluginCatalogPage) MarshalJSON() ([]byte, error)

func (*PluginCatalogPage) UnmarshalJSON

func (value *PluginCatalogPage) UnmarshalJSON(data []byte) error

type PluginCatalogReleaseNotes

type PluginCatalogReleaseNotes struct {
	Text    string            `json:"text"`
	Locales map[string]string `json:"locales,omitempty"`
}

func DefaultPluginCatalogReleaseNotes

func DefaultPluginCatalogReleaseNotes() PluginCatalogReleaseNotes

func (PluginCatalogReleaseNotes) MarshalJSON

func (value PluginCatalogReleaseNotes) MarshalJSON() ([]byte, error)

func (*PluginCatalogReleaseNotes) UnmarshalJSON

func (value *PluginCatalogReleaseNotes) UnmarshalJSON(data []byte) error

type PluginCatalogSelection

type PluginCatalogSelection struct {
	Source PluginSkillsResolved `json:"source"`
	Path   string               `json:"path"`
	Info   PluginInfo           `json:"info"`
}

func DefaultPluginCatalogSelection

func DefaultPluginCatalogSelection() PluginCatalogSelection

func (PluginCatalogSelection) MarshalJSON

func (value PluginCatalogSelection) MarshalJSON() ([]byte, error)

func (*PluginCatalogSelection) UnmarshalJSON

func (value *PluginCatalogSelection) UnmarshalJSON(data []byte) error

type PluginCatalogSkillCollection

type PluginCatalogSkillCollection struct {
	Source      PluginSkillsResolved    `json:"source"`
	Metadata    PluginCatalogMetadata   `json:"metadata"`
	Skills      []PluginSkillsCandidate `json:"skills"`
	Unsupported []PluginCatalogFormat   `json:"unsupported"`
}

func DefaultPluginCatalogSkillCollection

func DefaultPluginCatalogSkillCollection() PluginCatalogSkillCollection

func (PluginCatalogSkillCollection) MarshalJSON

func (value PluginCatalogSkillCollection) MarshalJSON() ([]byte, error)

func (*PluginCatalogSkillCollection) UnmarshalJSON

func (value *PluginCatalogSkillCollection) UnmarshalJSON(data []byte) error

type PluginCatalogSource

type PluginCatalogSource string
const (
	PluginCatalogSourceOfficial   PluginCatalogSource = "official"
	PluginCatalogSourceThirdParty PluginCatalogSource = "third_party"
)

func (PluginCatalogSource) MarshalJSON

func (value PluginCatalogSource) MarshalJSON() ([]byte, error)

func (PluginCatalogSource) MarshalText

func (value PluginCatalogSource) MarshalText() ([]byte, error)

func (*PluginCatalogSource) UnmarshalJSON

func (value *PluginCatalogSource) UnmarshalJSON(data []byte) error

func (*PluginCatalogSource) UnmarshalText

func (value *PluginCatalogSource) UnmarshalText(data []byte) error

type PluginCatalogVersion

type PluginCatalogVersion struct {
	APIVersion       *string                    `json:"api_version,omitempty"`
	Withdrawn        bool                       `json:"withdrawn,omitempty"`
	Version          string                     `json:"version"`
	Commit           string                     `json:"commit"`
	MinSailryVersion *string                    `json:"min_sailry_version,omitempty"`
	ReleaseNotes     *PluginCatalogReleaseNotes `json:"release_notes,omitempty"`
	Compatibility    PluginCompatibility        `json:"compatibility"`
}

func DefaultPluginCatalogVersion

func DefaultPluginCatalogVersion() PluginCatalogVersion

func (PluginCatalogVersion) MarshalJSON

func (value PluginCatalogVersion) MarshalJSON() ([]byte, error)

func (*PluginCatalogVersion) UnmarshalJSON

func (value *PluginCatalogVersion) UnmarshalJSON(data []byte) error

type PluginCategory

type PluginCategory string
const (
	PluginCategoryDevelopment   PluginCategory = "development"
	PluginCategoryDocuments     PluginCategory = "documents"
	PluginCategoryData          PluginCategory = "data"
	PluginCategoryAutomation    PluginCategory = "automation"
	PluginCategoryEntertainment PluginCategory = "entertainment"
)

func (PluginCategory) MarshalJSON

func (value PluginCategory) MarshalJSON() ([]byte, error)

func (PluginCategory) MarshalText

func (value PluginCategory) MarshalText() ([]byte, error)

func (*PluginCategory) UnmarshalJSON

func (value *PluginCategory) UnmarshalJSON(data []byte) error

func (*PluginCategory) UnmarshalText

func (value *PluginCategory) UnmarshalText(data []byte) error

type PluginCompatibility

type PluginCompatibility struct {
	Kind string
	Data any
}

func (PluginCompatibility) MarshalJSON

func (value PluginCompatibility) MarshalJSON() ([]byte, error)

func (*PluginCompatibility) UnmarshalJSON

func (value *PluginCompatibility) UnmarshalJSON(data []byte) error

type PluginCompatibilityRequiresNewerPayload

type PluginCompatibilityRequiresNewerPayload struct {
	Required string `json:"required"`
}

func DefaultPluginCompatibilityRequiresNewerPayload

func DefaultPluginCompatibilityRequiresNewerPayload() PluginCompatibilityRequiresNewerPayload

func (PluginCompatibilityRequiresNewerPayload) MarshalJSON

func (value PluginCompatibilityRequiresNewerPayload) MarshalJSON() ([]byte, error)

func (*PluginCompatibilityRequiresNewerPayload) UnmarshalJSON

func (value *PluginCompatibilityRequiresNewerPayload) UnmarshalJSON(data []byte) error

type PluginCompatibilityUnsupportedPayload

type PluginCompatibilityUnsupportedPayload struct {
	Reason string `json:"reason"`
}

func (*PluginCompatibilityUnsupportedPayload) UnmarshalJSON

func (value *PluginCompatibilityUnsupportedPayload) UnmarshalJSON(data []byte) error

type PluginConnectionAuthorization

type PluginConnectionAuthorization string
const (
	PluginConnectionAuthorizationNotDeclared PluginConnectionAuthorization = "not_declared"
	PluginConnectionAuthorizationMissing     PluginConnectionAuthorization = "missing"
	PluginConnectionAuthorizationConfigured  PluginConnectionAuthorization = "configured"
)

func (PluginConnectionAuthorization) MarshalJSON

func (value PluginConnectionAuthorization) MarshalJSON() ([]byte, error)

func (PluginConnectionAuthorization) MarshalText

func (value PluginConnectionAuthorization) MarshalText() ([]byte, error)

func (*PluginConnectionAuthorization) UnmarshalJSON

func (value *PluginConnectionAuthorization) UnmarshalJSON(data []byte) error

func (*PluginConnectionAuthorization) UnmarshalText

func (value *PluginConnectionAuthorization) UnmarshalText(data []byte) error

type PluginConnectionConfiguration

type PluginConnectionConfiguration string
const (
	PluginConnectionConfigurationReady       PluginConnectionConfiguration = "ready"
	PluginConnectionConfigurationMissing     PluginConnectionConfiguration = "missing"
	PluginConnectionConfigurationChanged     PluginConnectionConfiguration = "changed"
	PluginConnectionConfigurationUnsupported PluginConnectionConfiguration = "unsupported"
)

func (PluginConnectionConfiguration) MarshalJSON

func (value PluginConnectionConfiguration) MarshalJSON() ([]byte, error)

func (PluginConnectionConfiguration) MarshalText

func (value PluginConnectionConfiguration) MarshalText() ([]byte, error)

func (*PluginConnectionConfiguration) UnmarshalJSON

func (value *PluginConnectionConfiguration) UnmarshalJSON(data []byte) error

func (*PluginConnectionConfiguration) UnmarshalText

func (value *PluginConnectionConfiguration) UnmarshalText(data []byte) error

type PluginConnectionCredential

type PluginConnectionCredential string
const (
	PluginConnectionCredentialNotDeclared PluginConnectionCredential = "not_declared"
	PluginConnectionCredentialAbsent      PluginConnectionCredential = "absent"
	PluginConnectionCredentialPresent     PluginConnectionCredential = "present"
)

func (PluginConnectionCredential) MarshalJSON

func (value PluginConnectionCredential) MarshalJSON() ([]byte, error)

func (PluginConnectionCredential) MarshalText

func (value PluginConnectionCredential) MarshalText() ([]byte, error)

func (*PluginConnectionCredential) UnmarshalJSON

func (value *PluginConnectionCredential) UnmarshalJSON(data []byte) error

func (*PluginConnectionCredential) UnmarshalText

func (value *PluginConnectionCredential) UnmarshalText(data []byte) error

type PluginConnectionStatus

type PluginConnectionStatus struct {
	Package       PluginReference               `json:"package"`
	Card          string                        `json:"card"`
	Server        string                        `json:"server"`
	Configuration PluginConnectionConfiguration `json:"configuration"`
	Authorization PluginConnectionAuthorization `json:"authorization"`
	Credential    PluginConnectionCredential    `json:"credential"`
}

func DefaultPluginConnectionStatus

func DefaultPluginConnectionStatus() PluginConnectionStatus

func (PluginConnectionStatus) MarshalJSON

func (value PluginConnectionStatus) MarshalJSON() ([]byte, error)

func (*PluginConnectionStatus) UnmarshalJSON

func (value *PluginConnectionStatus) UnmarshalJSON(data []byte) error

type PluginConnectorAccounts

type PluginConnectorAccounts string
const (
	PluginConnectorAccountsSingle PluginConnectorAccounts = "single"
)

func (PluginConnectorAccounts) MarshalJSON

func (value PluginConnectorAccounts) MarshalJSON() ([]byte, error)

func (PluginConnectorAccounts) MarshalText

func (value PluginConnectorAccounts) MarshalText() ([]byte, error)

func (*PluginConnectorAccounts) UnmarshalJSON

func (value *PluginConnectorAccounts) UnmarshalJSON(data []byte) error

func (*PluginConnectorAccounts) UnmarshalText

func (value *PluginConnectorAccounts) UnmarshalText(data []byte) error

type PluginConnectorAttempt

type PluginConnectorAttempt struct {
	ID         RequestID         `json:"id"`
	Connection PluginConnectorID `json:"connection"`
	Package    PluginReference   `json:"package"`
	Revision   uint64            `json:"revision"`
}

func DefaultPluginConnectorAttempt

func DefaultPluginConnectorAttempt() PluginConnectorAttempt

func (PluginConnectorAttempt) MarshalJSON

func (value PluginConnectorAttempt) MarshalJSON() ([]byte, error)

func (*PluginConnectorAttempt) UnmarshalJSON

func (value *PluginConnectorAttempt) UnmarshalJSON(data []byte) error

type PluginConnectorAuth

type PluginConnectorAuth struct {
	Kind string
	Data any
}

func (PluginConnectorAuth) MarshalJSON

func (value PluginConnectorAuth) MarshalJSON() ([]byte, error)

func (*PluginConnectorAuth) UnmarshalJSON

func (value *PluginConnectorAuth) UnmarshalJSON(data []byte) error

type PluginConnectorAuthApplicationPayload

type PluginConnectorAuthApplicationPayload struct {
	Fields       PluginConnectorClientFields   `json:"fields"`
	Token        PluginConnectorToken          `json:"token"`
	Registration **PluginConnectorRegistration `json:"registration"`
}

func DefaultPluginConnectorAuthApplicationPayload

func DefaultPluginConnectorAuthApplicationPayload() PluginConnectorAuthApplicationPayload

func (PluginConnectorAuthApplicationPayload) MarshalJSON

func (value PluginConnectorAuthApplicationPayload) MarshalJSON() ([]byte, error)

func (*PluginConnectorAuthApplicationPayload) UnmarshalJSON

func (value *PluginConnectorAuthApplicationPayload) UnmarshalJSON(data []byte) error

type PluginConnectorAuthLocalCliPayload

type PluginConnectorAuthLocalCliPayload struct {
	Command   string                   `json:"command"`
	Env       map[string]string        `json:"env"`
	Status    PluginConnectorCliStatus `json:"status"`
	Token     PluginConnectorCliToken  `json:"token"`
	TimeoutMs uint64                   `json:"timeout_ms"`
	MaxOutput uint64                   `json:"max_output"`
}

func DefaultPluginConnectorAuthLocalCliPayload

func DefaultPluginConnectorAuthLocalCliPayload() PluginConnectorAuthLocalCliPayload

func (PluginConnectorAuthLocalCliPayload) MarshalJSON

func (value PluginConnectorAuthLocalCliPayload) MarshalJSON() ([]byte, error)

func (*PluginConnectorAuthLocalCliPayload) UnmarshalJSON

func (value *PluginConnectorAuthLocalCliPayload) UnmarshalJSON(data []byte) error

type PluginConnectorAuthMcpOauthPayload

type PluginConnectorAuthMcpOauthPayload struct {
	Server string                 `json:"server"`
	Client *PluginConnectorClient `json:"client"`
}

func DefaultPluginConnectorAuthMcpOauthPayload

func DefaultPluginConnectorAuthMcpOauthPayload() PluginConnectorAuthMcpOauthPayload

func (PluginConnectorAuthMcpOauthPayload) MarshalJSON

func (value PluginConnectorAuthMcpOauthPayload) MarshalJSON() ([]byte, error)

func (*PluginConnectorAuthMcpOauthPayload) UnmarshalJSON

func (value *PluginConnectorAuthMcpOauthPayload) UnmarshalJSON(data []byte) error

type PluginConnectorAuthOauth2Payload

type PluginConnectorAuthOauth2Payload struct {
	Flow      PluginConnectorFlow   `json:"flow"`
	Authorize string                `json:"authorize"`
	Token     string                `json:"token"`
	Device    *string               `json:"device"`
	Client    PluginConnectorClient `json:"client"`
	Scopes    []string              `json:"scopes"`
	Refresh   bool                  `json:"refresh"`
}

func DefaultPluginConnectorAuthOauth2Payload

func DefaultPluginConnectorAuthOauth2Payload() PluginConnectorAuthOauth2Payload

func (PluginConnectorAuthOauth2Payload) MarshalJSON

func (value PluginConnectorAuthOauth2Payload) MarshalJSON() ([]byte, error)

func (*PluginConnectorAuthOauth2Payload) UnmarshalJSON

func (value *PluginConnectorAuthOauth2Payload) UnmarshalJSON(data []byte) error

type PluginConnectorAuthSecretPayload

type PluginConnectorAuthSecretPayload struct {
	Fields []string `json:"fields"`
}

func DefaultPluginConnectorAuthSecretPayload

func DefaultPluginConnectorAuthSecretPayload() PluginConnectorAuthSecretPayload

func (PluginConnectorAuthSecretPayload) MarshalJSON

func (value PluginConnectorAuthSecretPayload) MarshalJSON() ([]byte, error)

func (*PluginConnectorAuthSecretPayload) UnmarshalJSON

func (value *PluginConnectorAuthSecretPayload) UnmarshalJSON(data []byte) error

type PluginConnectorChange

type PluginConnectorChange struct {
	Kind string
	Data any
}

func (PluginConnectorChange) MarshalJSON

func (value PluginConnectorChange) MarshalJSON() ([]byte, error)

func (*PluginConnectorChange) UnmarshalJSON

func (value *PluginConnectorChange) UnmarshalJSON(data []byte) error

type PluginConnectorChangeClientPayload

type PluginConnectorChangeClientPayload struct {
	Previous string `json:"previous"`
	Current  string `json:"current"`
}

func DefaultPluginConnectorChangeClientPayload

func DefaultPluginConnectorChangeClientPayload() PluginConnectorChangeClientPayload

func (PluginConnectorChangeClientPayload) MarshalJSON

func (value PluginConnectorChangeClientPayload) MarshalJSON() ([]byte, error)

func (*PluginConnectorChangeClientPayload) UnmarshalJSON

func (value *PluginConnectorChangeClientPayload) UnmarshalJSON(data []byte) error

type PluginConnectorChangeFlowPayload

type PluginConnectorChangeFlowPayload struct {
	Previous string `json:"previous"`
	Current  string `json:"current"`
}

func DefaultPluginConnectorChangeFlowPayload

func DefaultPluginConnectorChangeFlowPayload() PluginConnectorChangeFlowPayload

func (PluginConnectorChangeFlowPayload) MarshalJSON

func (value PluginConnectorChangeFlowPayload) MarshalJSON() ([]byte, error)

func (*PluginConnectorChangeFlowPayload) UnmarshalJSON

func (value *PluginConnectorChangeFlowPayload) UnmarshalJSON(data []byte) error

type PluginConnectorChangeMcpPayload

type PluginConnectorChangeMcpPayload struct {
	Servers []string `json:"servers"`
}

func DefaultPluginConnectorChangeMcpPayload

func DefaultPluginConnectorChangeMcpPayload() PluginConnectorChangeMcpPayload

func (PluginConnectorChangeMcpPayload) MarshalJSON

func (value PluginConnectorChangeMcpPayload) MarshalJSON() ([]byte, error)

func (*PluginConnectorChangeMcpPayload) UnmarshalJSON

func (value *PluginConnectorChangeMcpPayload) UnmarshalJSON(data []byte) error

type PluginConnectorChangeOriginsPayload

type PluginConnectorChangeOriginsPayload struct {
	Previous []string `json:"previous"`
	Current  []string `json:"current"`
}

func DefaultPluginConnectorChangeOriginsPayload

func DefaultPluginConnectorChangeOriginsPayload() PluginConnectorChangeOriginsPayload

func (PluginConnectorChangeOriginsPayload) MarshalJSON

func (value PluginConnectorChangeOriginsPayload) MarshalJSON() ([]byte, error)

func (*PluginConnectorChangeOriginsPayload) UnmarshalJSON

func (value *PluginConnectorChangeOriginsPayload) UnmarshalJSON(data []byte) error

type PluginConnectorChangeScopesPayload

type PluginConnectorChangeScopesPayload struct {
	Previous []string `json:"previous"`
	Current  []string `json:"current"`
}

func DefaultPluginConnectorChangeScopesPayload

func DefaultPluginConnectorChangeScopesPayload() PluginConnectorChangeScopesPayload

func (PluginConnectorChangeScopesPayload) MarshalJSON

func (value PluginConnectorChangeScopesPayload) MarshalJSON() ([]byte, error)

func (*PluginConnectorChangeScopesPayload) UnmarshalJSON

func (value *PluginConnectorChangeScopesPayload) UnmarshalJSON(data []byte) error

type PluginConnectorChangeTargetsPayload

type PluginConnectorChangeTargetsPayload struct {
	Previous []string `json:"previous"`
	Current  []string `json:"current"`
}

func DefaultPluginConnectorChangeTargetsPayload

func DefaultPluginConnectorChangeTargetsPayload() PluginConnectorChangeTargetsPayload

func (PluginConnectorChangeTargetsPayload) MarshalJSON

func (value PluginConnectorChangeTargetsPayload) MarshalJSON() ([]byte, error)

func (*PluginConnectorChangeTargetsPayload) UnmarshalJSON

func (value *PluginConnectorChangeTargetsPayload) UnmarshalJSON(data []byte) error

type PluginConnectorChanges

type PluginConnectorChanges struct {
	Cursor      uint64                      `json:"cursor"`
	Types       []PluginConnectorType       `json:"types"`
	Connections []PluginConnectorConnection `json:"connections"`
}

func DefaultPluginConnectorChanges

func DefaultPluginConnectorChanges() PluginConnectorChanges

func (PluginConnectorChanges) MarshalJSON

func (value PluginConnectorChanges) MarshalJSON() ([]byte, error)

func (*PluginConnectorChanges) UnmarshalJSON

func (value *PluginConnectorChanges) UnmarshalJSON(data []byte) error

type PluginConnectorCliStatus

type PluginConnectorCliStatus struct {
	Argv      []string                  `json:"argv"`
	Account   string                    `json:"account"`
	Condition *PluginModelAuthCondition `json:"condition,omitempty"`
}

func DefaultPluginConnectorCliStatus

func DefaultPluginConnectorCliStatus() PluginConnectorCliStatus

func (PluginConnectorCliStatus) MarshalJSON

func (value PluginConnectorCliStatus) MarshalJSON() ([]byte, error)

func (*PluginConnectorCliStatus) UnmarshalJSON

func (value *PluginConnectorCliStatus) UnmarshalJSON(data []byte) error

type PluginConnectorCliToken

type PluginConnectorCliToken struct {
	Argv  []string             `json:"argv"`
	Parse PluginConnectorParse `json:"parse"`
}

func DefaultPluginConnectorCliToken

func DefaultPluginConnectorCliToken() PluginConnectorCliToken

func (PluginConnectorCliToken) MarshalJSON

func (value PluginConnectorCliToken) MarshalJSON() ([]byte, error)

func (*PluginConnectorCliToken) UnmarshalJSON

func (value *PluginConnectorCliToken) UnmarshalJSON(data []byte) error

type PluginConnectorClient

type PluginConnectorClient struct {
	Kind string
	Data any
}

func (PluginConnectorClient) MarshalJSON

func (value PluginConnectorClient) MarshalJSON() ([]byte, error)

func (*PluginConnectorClient) UnmarshalJSON

func (value *PluginConnectorClient) UnmarshalJSON(data []byte) error

type PluginConnectorClientBundledPayload

type PluginConnectorClientBundledPayload struct {
	Bundled PluginConnectorPublicClient `json:"bundled"`
}

func DefaultPluginConnectorClientBundledPayload

func DefaultPluginConnectorClientBundledPayload() PluginConnectorClientBundledPayload

func (PluginConnectorClientBundledPayload) MarshalJSON

func (value PluginConnectorClientBundledPayload) MarshalJSON() ([]byte, error)

func (*PluginConnectorClientBundledPayload) UnmarshalJSON

func (value *PluginConnectorClientBundledPayload) UnmarshalJSON(data []byte) error

type PluginConnectorClientFields

type PluginConnectorClientFields struct {
	ClientID     string  `json:"client_id"`
	ClientSecret *string `json:"client_secret"`
}

func DefaultPluginConnectorClientFields

func DefaultPluginConnectorClientFields() PluginConnectorClientFields

func (PluginConnectorClientFields) MarshalJSON

func (value PluginConnectorClientFields) MarshalJSON() ([]byte, error)

func (*PluginConnectorClientFields) UnmarshalJSON

func (value *PluginConnectorClientFields) UnmarshalJSON(data []byte) error

type PluginConnectorClientFieldsPayload

type PluginConnectorClientFieldsPayload struct {
	Fields PluginConnectorClientFields `json:"fields"`
}

func DefaultPluginConnectorClientFieldsPayload

func DefaultPluginConnectorClientFieldsPayload() PluginConnectorClientFieldsPayload

func (PluginConnectorClientFieldsPayload) MarshalJSON

func (value PluginConnectorClientFieldsPayload) MarshalJSON() ([]byte, error)

func (*PluginConnectorClientFieldsPayload) UnmarshalJSON

func (value *PluginConnectorClientFieldsPayload) UnmarshalJSON(data []byte) error

type PluginConnectorConnection

type PluginConnectorConnection struct {
	Source        *ConfigurationOrigin     `json:"source,omitempty"`
	ID            PluginConnectorID        `json:"id"`
	Package       PluginReference          `json:"package"`
	Connector     string                   `json:"connector"`
	Method        PluginConnectorKind      `json:"method"`
	Revision      uint64                   `json:"revision"`
	Enabled       bool                     `json:"enabled"`
	State         PluginConnectorState     `json:"state"`
	CanDisconnect bool                     `json:"can_disconnect"`
	Identity      *PluginConnectorIdentity `json:"identity"`
	ExpiresAtMs   *uint64                  `json:"expires_at_ms"`
	CheckedAtMs   *uint64                  `json:"checked_at_ms"`
	Fields        map[string]string        `json:"fields"`
	Configured    []string                 `json:"configured"`
	Consent       *PluginConnectorConsent  `json:"consent,omitempty"`
}

func DefaultPluginConnectorConnection

func DefaultPluginConnectorConnection() PluginConnectorConnection

func (PluginConnectorConnection) MarshalJSON

func (value PluginConnectorConnection) MarshalJSON() ([]byte, error)

func (*PluginConnectorConnection) UnmarshalJSON

func (value *PluginConnectorConnection) UnmarshalJSON(data []byte) error

type PluginConnectorConsent

type PluginConnectorConsent struct {
	Changes []PluginConnectorChange `json:"changes"`
}

func DefaultPluginConnectorConsent

func DefaultPluginConnectorConsent() PluginConnectorConsent

func (PluginConnectorConsent) MarshalJSON

func (value PluginConnectorConsent) MarshalJSON() ([]byte, error)

func (*PluginConnectorConsent) UnmarshalJSON

func (value *PluginConnectorConsent) UnmarshalJSON(data []byte) error

type PluginConnectorDeclaration

type PluginConnectorDeclaration struct {
	ID       string                          `json:"id"`
	Display  PluginDesktopNavigation         `json:"display"`
	Accounts PluginConnectorAccounts         `json:"accounts"`
	Origins  []string                        `json:"origins"`
	Auth     []PluginConnectorAuth           `json:"auth"`
	Fields   []PluginConnectorField          `json:"fields"`
	Inject   []PluginConnectorInjection      `json:"inject"`
	Identity *PluginConnectorIdentityRequest `json:"identity"`
	Health   *PluginConnectorHealthRequest   `json:"health"`
}

func DefaultPluginConnectorDeclaration

func DefaultPluginConnectorDeclaration() PluginConnectorDeclaration

func (PluginConnectorDeclaration) MarshalJSON

func (value PluginConnectorDeclaration) MarshalJSON() ([]byte, error)

func (*PluginConnectorDeclaration) UnmarshalJSON

func (value *PluginConnectorDeclaration) UnmarshalJSON(data []byte) error

type PluginConnectorField

type PluginConnectorField struct {
	Name     string            `json:"name"`
	Title    string            `json:"title"`
	Locales  map[string]string `json:"locales"`
	Secret   bool              `json:"secret"`
	Optional bool              `json:"optional"`
	Default  *string           `json:"default"`
	Help     *string           `json:"help"`
}

func DefaultPluginConnectorField

func DefaultPluginConnectorField() PluginConnectorField

func (PluginConnectorField) MarshalJSON

func (value PluginConnectorField) MarshalJSON() ([]byte, error)

func (*PluginConnectorField) UnmarshalJSON

func (value *PluginConnectorField) UnmarshalJSON(data []byte) error

type PluginConnectorFlow

type PluginConnectorFlow string
const (
	PluginConnectorFlowPkce       PluginConnectorFlow = "pkce"
	PluginConnectorFlowDeviceCode PluginConnectorFlow = "device_code"
)

func (PluginConnectorFlow) MarshalJSON

func (value PluginConnectorFlow) MarshalJSON() ([]byte, error)

func (PluginConnectorFlow) MarshalText

func (value PluginConnectorFlow) MarshalText() ([]byte, error)

func (*PluginConnectorFlow) UnmarshalJSON

func (value *PluginConnectorFlow) UnmarshalJSON(data []byte) error

func (*PluginConnectorFlow) UnmarshalText

func (value *PluginConnectorFlow) UnmarshalText(data []byte) error

type PluginConnectorHealthRequest

type PluginConnectorHealthRequest struct {
	Request string   `json:"request"`
	Ok      []uint16 `json:"ok"`
}

func DefaultPluginConnectorHealthRequest

func DefaultPluginConnectorHealthRequest() PluginConnectorHealthRequest

func (PluginConnectorHealthRequest) MarshalJSON

func (value PluginConnectorHealthRequest) MarshalJSON() ([]byte, error)

func (*PluginConnectorHealthRequest) UnmarshalJSON

func (value *PluginConnectorHealthRequest) UnmarshalJSON(data []byte) error

type PluginConnectorID

type PluginConnectorID = RequestID

type PluginConnectorIdentity

type PluginConnectorIdentity struct {
	Name string `json:"name"`
	ID   string `json:"id"`
}

func DefaultPluginConnectorIdentity

func DefaultPluginConnectorIdentity() PluginConnectorIdentity

func (PluginConnectorIdentity) MarshalJSON

func (value PluginConnectorIdentity) MarshalJSON() ([]byte, error)

func (*PluginConnectorIdentity) UnmarshalJSON

func (value *PluginConnectorIdentity) UnmarshalJSON(data []byte) error

type PluginConnectorIdentityRequest

type PluginConnectorIdentityRequest struct {
	Request string `json:"request"`
	Name    string `json:"name"`
	ID      string `json:"id"`
}

func DefaultPluginConnectorIdentityRequest

func DefaultPluginConnectorIdentityRequest() PluginConnectorIdentityRequest

func (PluginConnectorIdentityRequest) MarshalJSON

func (value PluginConnectorIdentityRequest) MarshalJSON() ([]byte, error)

func (*PluginConnectorIdentityRequest) UnmarshalJSON

func (value *PluginConnectorIdentityRequest) UnmarshalJSON(data []byte) error

type PluginConnectorInjection

type PluginConnectorInjection struct {
	Origin *string `json:"origin"`
	Server *string `json:"server"`
	Header *string `json:"header"`
	Env    *string `json:"env"`
	Prefix string  `json:"prefix"`
	Field  *string `json:"field"`
}

func DefaultPluginConnectorInjection

func DefaultPluginConnectorInjection() PluginConnectorInjection

func (PluginConnectorInjection) MarshalJSON

func (value PluginConnectorInjection) MarshalJSON() ([]byte, error)

func (*PluginConnectorInjection) UnmarshalJSON

func (value *PluginConnectorInjection) UnmarshalJSON(data []byte) error

type PluginConnectorInput

type PluginConnectorInput struct {
	Fields       map[string]string `json:"fields"`
	Secrets      map[string]Secret `json:"secrets"`
	Redirect     *string           `json:"redirect"`
	Registration bool              `json:"registration"`
}

func DefaultPluginConnectorInput

func DefaultPluginConnectorInput() PluginConnectorInput

func (PluginConnectorInput) MarshalJSON

func (value PluginConnectorInput) MarshalJSON() ([]byte, error)

func (*PluginConnectorInput) UnmarshalJSON

func (value *PluginConnectorInput) UnmarshalJSON(data []byte) error

type PluginConnectorKind

type PluginConnectorKind string
const (
	PluginConnectorKindOauth2      PluginConnectorKind = "oauth2"
	PluginConnectorKindApplication PluginConnectorKind = "application"
	PluginConnectorKindSecret      PluginConnectorKind = "secret"
	PluginConnectorKindMcpOauth    PluginConnectorKind = "mcp_oauth"
	PluginConnectorKindLocalCli    PluginConnectorKind = "local_cli"
)

func (PluginConnectorKind) MarshalJSON

func (value PluginConnectorKind) MarshalJSON() ([]byte, error)

func (PluginConnectorKind) MarshalText

func (value PluginConnectorKind) MarshalText() ([]byte, error)

func (*PluginConnectorKind) UnmarshalJSON

func (value *PluginConnectorKind) UnmarshalJSON(data []byte) error

func (*PluginConnectorKind) UnmarshalText

func (value *PluginConnectorKind) UnmarshalText(data []byte) error

type PluginConnectorLoginState

type PluginConnectorLoginState struct {
	Kind string
	Data any
}

func (PluginConnectorLoginState) MarshalJSON

func (value PluginConnectorLoginState) MarshalJSON() ([]byte, error)

func (*PluginConnectorLoginState) UnmarshalJSON

func (value *PluginConnectorLoginState) UnmarshalJSON(data []byte) error

type PluginConnectorLoginStateBrowserPayload

type PluginConnectorLoginStateBrowserPayload struct {
	Url         string `json:"url"`
	ExpiresAtMs uint64 `json:"expires_at_ms"`
}

func DefaultPluginConnectorLoginStateBrowserPayload

func DefaultPluginConnectorLoginStateBrowserPayload() PluginConnectorLoginStateBrowserPayload

func (PluginConnectorLoginStateBrowserPayload) MarshalJSON

func (value PluginConnectorLoginStateBrowserPayload) MarshalJSON() ([]byte, error)

func (*PluginConnectorLoginStateBrowserPayload) UnmarshalJSON

func (value *PluginConnectorLoginStateBrowserPayload) UnmarshalJSON(data []byte) error

type PluginConnectorLoginStateDevicePayload

type PluginConnectorLoginStateDevicePayload struct {
	Code        string `json:"code"`
	Url         string `json:"url"`
	ExpiresAtMs uint64 `json:"expires_at_ms"`
}

func DefaultPluginConnectorLoginStateDevicePayload

func DefaultPluginConnectorLoginStateDevicePayload() PluginConnectorLoginStateDevicePayload

func (PluginConnectorLoginStateDevicePayload) MarshalJSON

func (value PluginConnectorLoginStateDevicePayload) MarshalJSON() ([]byte, error)

func (*PluginConnectorLoginStateDevicePayload) UnmarshalJSON

func (value *PluginConnectorLoginStateDevicePayload) UnmarshalJSON(data []byte) error

type PluginConnectorLoginUpdate

type PluginConnectorLoginUpdate struct {
	Attempt  PluginConnectorAttempt    `json:"attempt"`
	Revision uint64                    `json:"revision"`
	State    PluginConnectorLoginState `json:"state"`
}

func DefaultPluginConnectorLoginUpdate

func DefaultPluginConnectorLoginUpdate() PluginConnectorLoginUpdate

func (PluginConnectorLoginUpdate) MarshalJSON

func (value PluginConnectorLoginUpdate) MarshalJSON() ([]byte, error)

func (*PluginConnectorLoginUpdate) UnmarshalJSON

func (value *PluginConnectorLoginUpdate) UnmarshalJSON(data []byte) error

type PluginConnectorParse

type PluginConnectorParse struct {
	Kind string
	Data any
}

func (PluginConnectorParse) MarshalJSON

func (value PluginConnectorParse) MarshalJSON() ([]byte, error)

func (*PluginConnectorParse) UnmarshalJSON

func (value *PluginConnectorParse) UnmarshalJSON(data []byte) error

type PluginConnectorPublicClient

type PluginConnectorPublicClient struct {
	ClientID string `json:"client_id"`
}

func DefaultPluginConnectorPublicClient

func DefaultPluginConnectorPublicClient() PluginConnectorPublicClient

func (PluginConnectorPublicClient) MarshalJSON

func (value PluginConnectorPublicClient) MarshalJSON() ([]byte, error)

func (*PluginConnectorPublicClient) UnmarshalJSON

func (value *PluginConnectorPublicClient) UnmarshalJSON(data []byte) error

type PluginConnectorRegistration

type PluginConnectorRegistration struct {
	Flow   PluginModelAuthFlow         `json:"flow"`
	Token  PluginModelAuthMapping      `json:"token"`
	Issues PluginConnectorClientFields `json:"issues"`
	Scopes []string                    `json:"scopes"`
}

func DefaultPluginConnectorRegistration

func DefaultPluginConnectorRegistration() PluginConnectorRegistration

func (PluginConnectorRegistration) MarshalJSON

func (value PluginConnectorRegistration) MarshalJSON() ([]byte, error)

func (*PluginConnectorRegistration) UnmarshalJSON

func (value *PluginConnectorRegistration) UnmarshalJSON(data []byte) error

type PluginConnectorState

type PluginConnectorState string
const (
	PluginConnectorStateConnected         PluginConnectorState = "connected"
	PluginConnectorStateNotConnected      PluginConnectorState = "not_connected"
	PluginConnectorStateConnecting        PluginConnectorState = "connecting"
	PluginConnectorStateExpired           PluginConnectorState = "expired"
	PluginConnectorStateNeedsConfirmation PluginConnectorState = "needs_confirmation"
	PluginConnectorStateFailed            PluginConnectorState = "failed"
)

func (PluginConnectorState) MarshalJSON

func (value PluginConnectorState) MarshalJSON() ([]byte, error)

func (PluginConnectorState) MarshalText

func (value PluginConnectorState) MarshalText() ([]byte, error)

func (*PluginConnectorState) UnmarshalJSON

func (value *PluginConnectorState) UnmarshalJSON(data []byte) error

func (*PluginConnectorState) UnmarshalText

func (value *PluginConnectorState) UnmarshalText(data []byte) error

type PluginConnectorToken

type PluginConnectorToken struct {
	Url       string            `json:"url"`
	Body      map[string]string `json:"body"`
	Access    string            `json:"access"`
	ExpiresIn string            `json:"expires_in"`
	Form      bool              `json:"form"`
}

func DefaultPluginConnectorToken

func DefaultPluginConnectorToken() PluginConnectorToken

func (PluginConnectorToken) MarshalJSON

func (value PluginConnectorToken) MarshalJSON() ([]byte, error)

func (*PluginConnectorToken) UnmarshalJSON

func (value *PluginConnectorToken) UnmarshalJSON(data []byte) error

type PluginConnectorType

type PluginConnectorType struct {
	Package     PluginReference            `json:"package"`
	Declaration PluginConnectorDeclaration `json:"declaration"`
	Enabled     bool                       `json:"enabled"`
}

func DefaultPluginConnectorType

func DefaultPluginConnectorType() PluginConnectorType

func (PluginConnectorType) MarshalJSON

func (value PluginConnectorType) MarshalJSON() ([]byte, error)

func (*PluginConnectorType) UnmarshalJSON

func (value *PluginConnectorType) UnmarshalJSON(data []byte) error

type PluginContext

type PluginContext struct {
	Invocation *RequestID           `json:"invocation,omitempty"`
	Turn       *TurnID              `json:"turn,omitempty"`
	Surface    PluginDesktopSurface `json:"surface"`
	Package    PluginReference      `json:"package"`
	Worktree   *WorktreeID          `json:"worktree"`
	Session    *SessionID           `json:"session"`
}

func DefaultPluginContext

func DefaultPluginContext() PluginContext

func (PluginContext) ControllerSettings

func (scope PluginContext) ControllerSettings() bool

func (*PluginContext) DecodeJSON

func (value *PluginContext) DecodeJSON(decoder *Decoder) error

func (PluginContext) MarshalJSON

func (value PluginContext) MarshalJSON() ([]byte, error)

func (*PluginContext) UnmarshalJSON

func (value *PluginContext) UnmarshalJSON(data []byte) error

type PluginConversationBinding

type PluginConversationBinding struct {
	Package PluginReference `json:"package"`
	ID      string          `json:"id"`
}

func DefaultPluginConversationBinding

func DefaultPluginConversationBinding() PluginConversationBinding

func (*PluginConversationBinding) DecodeJSON

func (value *PluginConversationBinding) DecodeJSON(decoder *Decoder) error

func (PluginConversationBinding) MarshalJSON

func (value PluginConversationBinding) MarshalJSON() ([]byte, error)

func (*PluginConversationBinding) UnmarshalJSON

func (value *PluginConversationBinding) UnmarshalJSON(data []byte) error

type PluginConversationDeclaration

type PluginConversationDeclaration struct {
	ID       string                     `json:"id"`
	Resource PluginConversationResource `json:"resource"`
	Tools    []PluginConversationTool   `json:"tools"`
	Context  string                     `json:"context"`
}

func DefaultPluginConversationDeclaration

func DefaultPluginConversationDeclaration() PluginConversationDeclaration

func (PluginConversationDeclaration) MarshalJSON

func (value PluginConversationDeclaration) MarshalJSON() ([]byte, error)

func (*PluginConversationDeclaration) UnmarshalJSON

func (value *PluginConversationDeclaration) UnmarshalJSON(data []byte) error

type PluginConversationResource

type PluginConversationResource string
const (
	PluginConversationResourcePlugin    PluginConversationResource = "plugin"
	PluginConversationResourceWorkspace PluginConversationResource = "workspace"
	PluginConversationResourceDatabase  PluginConversationResource = "database"
	PluginConversationResourceSsh       PluginConversationResource = "ssh"
)

func (PluginConversationResource) MarshalJSON

func (value PluginConversationResource) MarshalJSON() ([]byte, error)

func (PluginConversationResource) MarshalText

func (value PluginConversationResource) MarshalText() ([]byte, error)

func (*PluginConversationResource) UnmarshalJSON

func (value *PluginConversationResource) UnmarshalJSON(data []byte) error

func (*PluginConversationResource) UnmarshalText

func (value *PluginConversationResource) UnmarshalText(data []byte) error

type PluginConversationTool

type PluginConversationTool struct {
	Kind string
	Data any
}

func (*PluginConversationTool) DecodeJSON

func (value *PluginConversationTool) DecodeJSON(decoder *Decoder) error

func (PluginConversationTool) MarshalJSON

func (value PluginConversationTool) MarshalJSON() ([]byte, error)

func (*PluginConversationTool) UnmarshalJSON

func (value *PluginConversationTool) UnmarshalJSON(data []byte) error

type PluginConversationToolBuiltinPayload

type PluginConversationToolBuiltinPayload struct {
	Name string `json:"name"`
}

func DefaultPluginConversationToolBuiltinPayload

func DefaultPluginConversationToolBuiltinPayload() PluginConversationToolBuiltinPayload

func (PluginConversationToolBuiltinPayload) MarshalJSON

func (value PluginConversationToolBuiltinPayload) MarshalJSON() ([]byte, error)

func (*PluginConversationToolBuiltinPayload) UnmarshalJSON

func (value *PluginConversationToolBuiltinPayload) UnmarshalJSON(data []byte) error

type PluginConversationToolPackagePayload

type PluginConversationToolPackagePayload struct {
	Package string `json:"package"`
	Name    string `json:"name"`
}

func DefaultPluginConversationToolPackagePayload

func DefaultPluginConversationToolPackagePayload() PluginConversationToolPackagePayload

func (PluginConversationToolPackagePayload) MarshalJSON

func (value PluginConversationToolPackagePayload) MarshalJSON() ([]byte, error)

func (*PluginConversationToolPackagePayload) UnmarshalJSON

func (value *PluginConversationToolPackagePayload) UnmarshalJSON(data []byte) error

type PluginConversationToolPluginPayload

type PluginConversationToolPluginPayload struct {
	Name   string  `json:"name"`
	Server *string `json:"server"`
}

func DefaultPluginConversationToolPluginPayload

func DefaultPluginConversationToolPluginPayload() PluginConversationToolPluginPayload

func (PluginConversationToolPluginPayload) MarshalJSON

func (value PluginConversationToolPluginPayload) MarshalJSON() ([]byte, error)

func (*PluginConversationToolPluginPayload) UnmarshalJSON

func (value *PluginConversationToolPluginPayload) UnmarshalJSON(data []byte) error

type PluginDesktopBundle

type PluginDesktopBundle struct {
	Requirements *PluginRequirements `json:"requirements,omitempty"`
	Package      PluginReference     `json:"package"`
	Entry        string              `json:"entry"`
	Files        map[string]string   `json:"files"`
	Images       map[string]string   `json:"images"`
}

func DefaultPluginDesktopBundle

func DefaultPluginDesktopBundle() PluginDesktopBundle

func (PluginDesktopBundle) MarshalJSON

func (value PluginDesktopBundle) MarshalJSON() ([]byte, error)

func (*PluginDesktopBundle) UnmarshalJSON

func (value *PluginDesktopBundle) UnmarshalJSON(data []byte) error

type PluginDesktopIcon

type PluginDesktopIcon struct {
	Kind string
	Data any
}

func (PluginDesktopIcon) MarshalJSON

func (value PluginDesktopIcon) MarshalJSON() ([]byte, error)

func (*PluginDesktopIcon) UnmarshalJSON

func (value *PluginDesktopIcon) UnmarshalJSON(data []byte) error

func (PluginDesktopIcon) Valid

func (icon PluginDesktopIcon) Valid() bool

type PluginDesktopIconSvgPayload

type PluginDesktopIconSvgPayload struct {
	Svg string `json:"svg"`
}

func DefaultPluginDesktopIconSvgPayload

func DefaultPluginDesktopIconSvgPayload() PluginDesktopIconSvgPayload

func (PluginDesktopIconSvgPayload) MarshalJSON

func (value PluginDesktopIconSvgPayload) MarshalJSON() ([]byte, error)

func (*PluginDesktopIconSvgPayload) UnmarshalJSON

func (value *PluginDesktopIconSvgPayload) UnmarshalJSON(data []byte) error

type PluginDesktopManifest

type PluginDesktopManifest struct {
	Entry             *string                         `json:"entry"`
	UiEntry           *string                         `json:"ui_entry"`
	UiOverlay         bool                            `json:"ui_overlay"`
	UiShared          bool                            `json:"ui_shared"`
	Resources         []string                        `json:"resources"`
	Navigation        *PluginDesktopNavigation        `json:"navigation"`
	NavigationOptions PluginDesktopNavigationOptions  `json:"navigation_options"`
	Panel             *PluginDesktopNavigation        `json:"panel"`
	Conversations     []PluginConversationDeclaration `json:"conversations"`
	Renderers         []PluginDesktopRenderer         `json:"renderers"`
	Previews          []string                        `json:"previews"`
}

func DefaultPluginDesktopManifest

func DefaultPluginDesktopManifest() PluginDesktopManifest

func (PluginDesktopManifest) MarshalJSON

func (value PluginDesktopManifest) MarshalJSON() ([]byte, error)

func (*PluginDesktopManifest) UnmarshalJSON

func (value *PluginDesktopManifest) UnmarshalJSON(data []byte) error

type PluginDesktopNavigation

type PluginDesktopNavigation struct {
	Label   string             `json:"label"`
	Icon    *PluginDesktopIcon `json:"icon,omitempty"`
	Locales map[string]string  `json:"locales"`
}

func DefaultPluginDesktopNavigation

func DefaultPluginDesktopNavigation() PluginDesktopNavigation

func (PluginDesktopNavigation) MarshalJSON

func (value PluginDesktopNavigation) MarshalJSON() ([]byte, error)

func (*PluginDesktopNavigation) UnmarshalJSON

func (value *PluginDesktopNavigation) UnmarshalJSON(data []byte) error

func (PluginDesktopNavigation) Valid

func (navigation PluginDesktopNavigation) Valid() bool

type PluginDesktopNavigationOptions

type PluginDesktopNavigationOptions struct {
	Pinned  bool                          `json:"pinned"`
	Order   uint16                        `json:"order"`
	Target  PluginDesktopNavigationTarget `json:"target"`
	Surface PluginDesktopSurface          `json:"surface"`
	Details bool                          `json:"details"`
}

func DefaultPluginDesktopNavigationOptions

func DefaultPluginDesktopNavigationOptions() PluginDesktopNavigationOptions

func (PluginDesktopNavigationOptions) MarshalJSON

func (value PluginDesktopNavigationOptions) MarshalJSON() ([]byte, error)

func (*PluginDesktopNavigationOptions) UnmarshalJSON

func (value *PluginDesktopNavigationOptions) UnmarshalJSON(data []byte) error

type PluginDesktopNavigationTarget

type PluginDesktopNavigationTarget string
const (
	PluginDesktopNavigationTargetNode     PluginDesktopNavigationTarget = "node"
	PluginDesktopNavigationTargetWorktree PluginDesktopNavigationTarget = "worktree"
)

func (PluginDesktopNavigationTarget) MarshalJSON

func (value PluginDesktopNavigationTarget) MarshalJSON() ([]byte, error)

func (PluginDesktopNavigationTarget) MarshalText

func (value PluginDesktopNavigationTarget) MarshalText() ([]byte, error)

func (*PluginDesktopNavigationTarget) UnmarshalJSON

func (value *PluginDesktopNavigationTarget) UnmarshalJSON(data []byte) error

func (*PluginDesktopNavigationTarget) UnmarshalText

func (value *PluginDesktopNavigationTarget) UnmarshalText(data []byte) error

type PluginDesktopRenderer

type PluginDesktopRenderer struct {
	Resource PluginDesktopResourceKind `json:"resource"`
	Create   *string                   `json:"create"`
	Shortcut *string                   `json:"shortcut,omitempty"`
}

func DefaultPluginDesktopRenderer

func DefaultPluginDesktopRenderer() PluginDesktopRenderer

func (PluginDesktopRenderer) MarshalJSON

func (value PluginDesktopRenderer) MarshalJSON() ([]byte, error)

func (*PluginDesktopRenderer) UnmarshalJSON

func (value *PluginDesktopRenderer) UnmarshalJSON(data []byte) error

type PluginDesktopResourceKind

type PluginDesktopResourceKind string
const (
	PluginDesktopResourceKindTerminal  PluginDesktopResourceKind = "terminal"
	PluginDesktopResourceKindBrowser   PluginDesktopResourceKind = "browser"
	PluginDesktopResourceKindDocuments PluginDesktopResourceKind = "documents"
	PluginDesktopResourceKindGit       PluginDesktopResourceKind = "git"
)

func (PluginDesktopResourceKind) MarshalJSON

func (value PluginDesktopResourceKind) MarshalJSON() ([]byte, error)

func (PluginDesktopResourceKind) MarshalText

func (value PluginDesktopResourceKind) MarshalText() ([]byte, error)

func (*PluginDesktopResourceKind) UnmarshalJSON

func (value *PluginDesktopResourceKind) UnmarshalJSON(data []byte) error

func (*PluginDesktopResourceKind) UnmarshalText

func (value *PluginDesktopResourceKind) UnmarshalText(data []byte) error

type PluginDesktopSettings

type PluginDesktopSettings struct {
	FullWidth      bool                           `json:"full_width"`
	EnabledControl bool                           `json:"enabled_control"`
	Placement      PluginDesktopSettingsPlacement `json:"placement"`
	Navigation     PluginDesktopNavigation        `json:"navigation"`
	Entry          *string                        `json:"entry"`
}

func DefaultPluginDesktopSettings

func DefaultPluginDesktopSettings() PluginDesktopSettings

func (PluginDesktopSettings) MarshalJSON

func (value PluginDesktopSettings) MarshalJSON() ([]byte, error)

func (*PluginDesktopSettings) UnmarshalJSON

func (value *PluginDesktopSettings) UnmarshalJSON(data []byte) error

type PluginDesktopSettingsGroup

type PluginDesktopSettingsGroup string
const (
	PluginDesktopSettingsGroupApp    PluginDesktopSettingsGroup = "app"
	PluginDesktopSettingsGroupAi     PluginDesktopSettingsGroup = "ai"
	PluginDesktopSettingsGroupTools  PluginDesktopSettingsGroup = "tools"
	PluginDesktopSettingsGroupSystem PluginDesktopSettingsGroup = "system"
)

func (PluginDesktopSettingsGroup) MarshalJSON

func (value PluginDesktopSettingsGroup) MarshalJSON() ([]byte, error)

func (PluginDesktopSettingsGroup) MarshalText

func (value PluginDesktopSettingsGroup) MarshalText() ([]byte, error)

func (*PluginDesktopSettingsGroup) UnmarshalJSON

func (value *PluginDesktopSettingsGroup) UnmarshalJSON(data []byte) error

func (*PluginDesktopSettingsGroup) UnmarshalText

func (value *PluginDesktopSettingsGroup) UnmarshalText(data []byte) error

type PluginDesktopSettingsPlacement

type PluginDesktopSettingsPlacement struct {
	Group PluginDesktopSettingsGroup `json:"group"`
	Order uint16                     `json:"order"`
}

func DefaultPluginDesktopSettingsPlacement

func DefaultPluginDesktopSettingsPlacement() PluginDesktopSettingsPlacement

func (PluginDesktopSettingsPlacement) MarshalJSON

func (value PluginDesktopSettingsPlacement) MarshalJSON() ([]byte, error)

func (*PluginDesktopSettingsPlacement) UnmarshalJSON

func (value *PluginDesktopSettingsPlacement) UnmarshalJSON(data []byte) error

type PluginDesktopSurface

type PluginDesktopSurface struct {
	Kind string
	Data any
}

func (PluginDesktopSurface) MarshalJSON

func (value PluginDesktopSurface) MarshalJSON() ([]byte, error)

func (*PluginDesktopSurface) UnmarshalJSON

func (value *PluginDesktopSurface) UnmarshalJSON(data []byte) error

type PluginExtension

type PluginExtension struct {
	MinSailryVersion    *string                            `json:"min_sailry_version,omitempty"`
	ApiVersion          string                             `json:"api_version"`
	Permissions         []PermissionsContribution          `json:"permissions,omitempty"`
	Connectors          []PluginConnectorDeclaration       `json:"connectors,omitempty"`
	Category            *PluginCategory                    `json:"category,omitempty"`
	Tint                *PluginTint                        `json:"tint,omitempty"`
	Instructions        *string                            `json:"instructions,omitempty"`
	ContinuationMarker  *PluginDesktopNavigation           `json:"continuation_marker,omitempty"`
	ContinuationMarkers map[string]PluginDesktopNavigation `json:"continuation_markers,omitempty"`
	ArtifactView        *ArtifactView                      `json:"artifact_view,omitempty"`
	Display             *PluginDesktopNavigation           `json:"display"`
	Icon                *string                            `json:"icon,omitempty"`
	Description         *PluginDesktopNavigation           `json:"description,omitempty"`
	Scope               PluginScope                        `json:"scope"`
	Actions             []PluginAction                     `json:"actions"`
	EnabledService      *PluginService                     `json:"enabled_service,omitempty"`
	Desktop             *PluginDesktopManifest             `json:"desktop"`
	Host                *PluginHostManifest                `json:"host"`
	SettingsSchema      *string                            `json:"settings_schema"`
	ConversationOptions *json.RawMessage                   `json:"conversation_options,omitempty"`
	ConversationModes   []PluginModesDeclaration           `json:"conversation_modes,omitempty"`
	SettingsPage        *PluginDesktopSettings             `json:"settings_page"`
	Storage             *PluginStorageDeclaration          `json:"storage,omitempty"`
	Tools               []ToolDeclaration                  `json:"tools"`
	ModelProviders      []ConversationPresetsPreset        `json:"model_providers"`
	ModelAuth           []PluginModelAuthDeclaration       `json:"model_auth"`
	ModelResources      []PluginModelAuthResource          `json:"model_resources,omitempty"`
	ModelAdapters       []PluginModelAdapterDeclaration    `json:"model_adapters"`
	Programs            []PluginProgramDeclaration         `json:"programs,omitempty"`
	Ui                  []PluginUiContribution             `json:"ui"`
	Cards               []PluginCardDeclaration            `json:"cards,omitempty"`
}

func DefaultPluginExtension

func DefaultPluginExtension() PluginExtension

func (PluginExtension) MarshalJSON

func (value PluginExtension) MarshalJSON() ([]byte, error)

func (*PluginExtension) UnmarshalJSON

func (value *PluginExtension) UnmarshalJSON(data []byte) error

type PluginHostChange

type PluginHostChange string
const (
	PluginHostChangePackage      PluginHostChange = "package"
	PluginHostChangeConversation PluginHostChange = "conversation"
	PluginHostChangeRepository   PluginHostChange = "repository"
)

func (PluginHostChange) MarshalJSON

func (value PluginHostChange) MarshalJSON() ([]byte, error)

func (PluginHostChange) MarshalText

func (value PluginHostChange) MarshalText() ([]byte, error)

func (*PluginHostChange) UnmarshalJSON

func (value *PluginHostChange) UnmarshalJSON(data []byte) error

func (*PluginHostChange) UnmarshalText

func (value *PluginHostChange) UnmarshalText(data []byte) error

type PluginHostCommand

type PluginHostCommand struct {
	Name    string `json:"name"`
	Handler string `json:"handler"`
}

func DefaultPluginHostCommand

func DefaultPluginHostCommand() PluginHostCommand

func (PluginHostCommand) MarshalJSON

func (value PluginHostCommand) MarshalJSON() ([]byte, error)

func (*PluginHostCommand) UnmarshalJSON

func (value *PluginHostCommand) UnmarshalJSON(data []byte) error

type PluginHostManifest

type PluginHostManifest struct {
	Entry     string              `json:"entry"`
	Resources []string            `json:"resources"`
	Handlers  []string            `json:"handlers"`
	ReadOnly  []string            `json:"read_only,omitempty"`
	Turn      *PluginHostTurn     `json:"turn,omitempty"`
	Commands  []PluginHostCommand `json:"commands,omitempty"`
	Status    *PluginHostStatus   `json:"status,omitempty"`
}

func DefaultPluginHostManifest

func DefaultPluginHostManifest() PluginHostManifest

func (PluginHostManifest) MarshalJSON

func (value PluginHostManifest) MarshalJSON() ([]byte, error)

func (*PluginHostManifest) UnmarshalJSON

func (value *PluginHostManifest) UnmarshalJSON(data []byte) error

type PluginHostStatus

type PluginHostStatus struct {
	Read    string             `json:"read"`
	Invoke  *string            `json:"invoke,omitempty"`
	Changes []PluginHostChange `json:"changes,omitempty"`
}

func DefaultPluginHostStatus

func DefaultPluginHostStatus() PluginHostStatus

func (PluginHostStatus) MarshalJSON

func (value PluginHostStatus) MarshalJSON() ([]byte, error)

func (*PluginHostStatus) UnmarshalJSON

func (value *PluginHostStatus) UnmarshalJSON(data []byte) error

type PluginHostTurn

type PluginHostTurn struct {
	Initialize  string  `json:"initialize"`
	BeforeModel *string `json:"before_model"`
	AfterTurn   *string `json:"after_turn,omitempty"`
}

func DefaultPluginHostTurn

func DefaultPluginHostTurn() PluginHostTurn

func (PluginHostTurn) MarshalJSON

func (value PluginHostTurn) MarshalJSON() ([]byte, error)

func (*PluginHostTurn) UnmarshalJSON

func (value *PluginHostTurn) UnmarshalJSON(data []byte) error

type PluginHttpRequest

type PluginHttpRequest struct {
	Method     string             `json:"method"`
	Url        string             `json:"url"`
	Headers    map[string]string  `json:"headers"`
	Body       *string            `json:"body"`
	Credential *string            `json:"credential"`
	Connector  *string            `json:"connector"`
	Connection *PluginConnectorID `json:"connection"`
	Idempotent bool               `json:"idempotent"`
	TimeoutMs  uint32             `json:"timeout_ms"`
}

func DefaultPluginHttpRequest

func DefaultPluginHttpRequest() PluginHttpRequest

func (PluginHttpRequest) MarshalJSON

func (value PluginHttpRequest) MarshalJSON() ([]byte, error)

func (*PluginHttpRequest) UnmarshalJSON

func (value *PluginHttpRequest) UnmarshalJSON(data []byte) error

type PluginHttpResponse

type PluginHttpResponse struct {
	Status  uint16              `json:"status"`
	Headers map[string][]string `json:"headers"`
	Body    string              `json:"body"`
}

func DefaultPluginHttpResponse

func DefaultPluginHttpResponse() PluginHttpResponse

func (PluginHttpResponse) MarshalJSON

func (value PluginHttpResponse) MarshalJSON() ([]byte, error)

func (*PluginHttpResponse) UnmarshalJSON

func (value *PluginHttpResponse) UnmarshalJSON(data []byte) error

type PluginInfo

type PluginInfo struct {
	Requirements *PluginRequirements        `json:"requirements,omitempty"`
	UpdateSource *PluginOrigin              `json:"update_source,omitempty"`
	Versions     []PluginCatalogVersion     `json:"versions,omitempty"`
	ReleaseNotes *PluginCatalogReleaseNotes `json:"release_notes,omitempty"`
	Summary      PluginSummary              `json:"summary"`
	Origin       *PluginOrigin              `json:"origin,omitempty"`
	Icon         *string                    `json:"icon"`
	Skill        *PluginSkillsProvenance    `json:"skill"`
	McpSource    *PluginMcpDefinition       `json:"mcp_source,omitempty"`
	Extension    *PluginExtension           `json:"extension"`
	Skills       []PluginSkill              `json:"skills"`
	Mcp          []PluginMcp                `json:"mcp"`
	Settings     *PluginSettingsSchema      `json:"settings"`
	Issues       []PluginIssue              `json:"issues"`
}

func DefaultPluginInfo

func DefaultPluginInfo() PluginInfo

func (PluginInfo) MarshalJSON

func (value PluginInfo) MarshalJSON() ([]byte, error)

func (*PluginInfo) UnmarshalJSON

func (value *PluginInfo) UnmarshalJSON(data []byte) error

type PluginInstallMode

type PluginInstallMode string

PluginInstallMode separates automatic upgrades from an explicit code switch.

const (
	PluginInstallModeInstall PluginInstallMode = "install"
	PluginInstallModeUpdate  PluginInstallMode = "update"
	PluginInstallModeSwitch  PluginInstallMode = "switch"
)

func (PluginInstallMode) MarshalJSON

func (value PluginInstallMode) MarshalJSON() ([]byte, error)

func (*PluginInstallMode) UnmarshalJSON

func (value *PluginInstallMode) UnmarshalJSON(data []byte) error

type PluginIssue

type PluginIssue struct {
	Path string          `json:"path"`
	Kind PluginIssueKind `json:"kind"`
}

func DefaultPluginIssue

func DefaultPluginIssue() PluginIssue

func (PluginIssue) MarshalJSON

func (value PluginIssue) MarshalJSON() ([]byte, error)

func (*PluginIssue) UnmarshalJSON

func (value *PluginIssue) UnmarshalJSON(data []byte) error

type PluginIssueKind

type PluginIssueKind string
const (
	PluginIssueKindIgnoredManifestField PluginIssueKind = "ignored_manifest_field"
	PluginIssueKindInvalidExtensions    PluginIssueKind = "invalid_extensions"
	PluginIssueKindUnsupportedExtension PluginIssueKind = "unsupported_extension"
	PluginIssueKindUnavailablePath      PluginIssueKind = "unavailable_path"
	PluginIssueKindInvalidSkills        PluginIssueKind = "invalid_skills"
	PluginIssueKindInvalidSkill         PluginIssueKind = "invalid_skill"
	PluginIssueKindInvalidMcp           PluginIssueKind = "invalid_mcp"
	PluginIssueKindInvalidMcpServer     PluginIssueKind = "invalid_mcp_server"
)

func (PluginIssueKind) MarshalJSON

func (value PluginIssueKind) MarshalJSON() ([]byte, error)

func (PluginIssueKind) MarshalText

func (value PluginIssueKind) MarshalText() ([]byte, error)

func (*PluginIssueKind) UnmarshalJSON

func (value *PluginIssueKind) UnmarshalJSON(data []byte) error

func (*PluginIssueKind) UnmarshalText

func (value *PluginIssueKind) UnmarshalText(data []byte) error

type PluginMcp

type PluginMcp struct {
	Host         *string               `json:"host,omitempty"`
	Name         string                `json:"name"`
	Transport    PluginMcpTransport    `json:"transport"`
	Allowed      bool                  `json:"allowed"`
	Availability PluginMcpAvailability `json:"availability"`
	Runtime      *PluginMcpRuntime     `json:"runtime,omitempty"`
}

func DefaultPluginMcp

func DefaultPluginMcp() PluginMcp

func (PluginMcp) MarshalJSON

func (value PluginMcp) MarshalJSON() ([]byte, error)

func (*PluginMcp) UnmarshalJSON

func (value *PluginMcp) UnmarshalJSON(data []byte) error

type PluginMcpAvailability

type PluginMcpAvailability string
const (
	PluginMcpAvailabilityAvailable             PluginMcpAvailability = "available"
	PluginMcpAvailabilityPackageDisabled       PluginMcpAvailability = "package_disabled"
	PluginMcpAvailabilityServerDisabled        PluginMcpAvailability = "server_disabled"
	PluginMcpAvailabilityConfigurationRequired PluginMcpAvailability = "configuration_required"
	PluginMcpAvailabilityConnectionRequired    PluginMcpAvailability = "connection_required"
	PluginMcpAvailabilityConnectionDisabled    PluginMcpAvailability = "connection_disabled"
	PluginMcpAvailabilityAuthorizationExpired  PluginMcpAvailability = "authorization_expired"
	PluginMcpAvailabilityConsentRequired       PluginMcpAvailability = "consent_required"
	PluginMcpAvailabilityUnavailable           PluginMcpAvailability = "unavailable"
)

func (PluginMcpAvailability) MarshalJSON

func (value PluginMcpAvailability) MarshalJSON() ([]byte, error)

func (PluginMcpAvailability) MarshalText

func (value PluginMcpAvailability) MarshalText() ([]byte, error)

func (*PluginMcpAvailability) UnmarshalJSON

func (value *PluginMcpAvailability) UnmarshalJSON(data []byte) error

func (*PluginMcpAvailability) UnmarshalText

func (value *PluginMcpAvailability) UnmarshalText(data []byte) error

type PluginMcpCheck

type PluginMcpCheck struct {
	Package PluginReference `json:"package"`
	Server  string          `json:"server"`
	Tools   []PluginMcpTool `json:"tools"`
}

func DefaultPluginMcpCheck

func DefaultPluginMcpCheck() PluginMcpCheck

func (PluginMcpCheck) MarshalJSON

func (value PluginMcpCheck) MarshalJSON() ([]byte, error)

func (*PluginMcpCheck) UnmarshalJSON

func (value *PluginMcpCheck) UnmarshalJSON(data []byte) error

type PluginMcpConfiguration

type PluginMcpConfiguration struct {
	Schema  string                     `json:"$schema"`
	Servers map[string]PluginMcpServer `json:"mcpServers"`
}

func DefaultPluginMcpConfiguration

func DefaultPluginMcpConfiguration() PluginMcpConfiguration

func (PluginMcpConfiguration) MarshalJSON

func (value PluginMcpConfiguration) MarshalJSON() ([]byte, error)

func (*PluginMcpConfiguration) UnmarshalJSON

func (value *PluginMcpConfiguration) UnmarshalJSON(data []byte) error

type PluginMcpDefinition

type PluginMcpDefinition struct {
	Kind string
	Data any
}

func (PluginMcpDefinition) MarshalJSON

func (value PluginMcpDefinition) MarshalJSON() ([]byte, error)

func (*PluginMcpDefinition) UnmarshalJSON

func (value *PluginMcpDefinition) UnmarshalJSON(data []byte) error

type PluginMcpDefinitionSsePayload

type PluginMcpDefinitionSsePayload struct {
	Url     string   `json:"url"`
	Headers []string `json:"headers"`
}

func DefaultPluginMcpDefinitionSsePayload

func DefaultPluginMcpDefinitionSsePayload() PluginMcpDefinitionSsePayload

func (PluginMcpDefinitionSsePayload) MarshalJSON

func (value PluginMcpDefinitionSsePayload) MarshalJSON() ([]byte, error)

func (*PluginMcpDefinitionSsePayload) UnmarshalJSON

func (value *PluginMcpDefinitionSsePayload) UnmarshalJSON(data []byte) error

type PluginMcpDefinitionStdioPayload

type PluginMcpDefinitionStdioPayload struct {
	Command string   `json:"command"`
	Args    []string `json:"args"`
	Env     []string `json:"env"`
}

func DefaultPluginMcpDefinitionStdioPayload

func DefaultPluginMcpDefinitionStdioPayload() PluginMcpDefinitionStdioPayload

func (PluginMcpDefinitionStdioPayload) MarshalJSON

func (value PluginMcpDefinitionStdioPayload) MarshalJSON() ([]byte, error)

func (*PluginMcpDefinitionStdioPayload) UnmarshalJSON

func (value *PluginMcpDefinitionStdioPayload) UnmarshalJSON(data []byte) error

type PluginMcpDefinitionStreamableHttpPayload

type PluginMcpDefinitionStreamableHttpPayload struct {
	Url     string   `json:"url"`
	Headers []string `json:"headers"`
}

func DefaultPluginMcpDefinitionStreamableHttpPayload

func DefaultPluginMcpDefinitionStreamableHttpPayload() PluginMcpDefinitionStreamableHttpPayload

func (PluginMcpDefinitionStreamableHttpPayload) MarshalJSON

func (value PluginMcpDefinitionStreamableHttpPayload) MarshalJSON() ([]byte, error)

func (*PluginMcpDefinitionStreamableHttpPayload) UnmarshalJSON

func (value *PluginMcpDefinitionStreamableHttpPayload) UnmarshalJSON(data []byte) error

type PluginMcpOptions

type PluginMcpOptions struct {
	Exclusive  bool    `json:"exclusive"`
	KeepImages *uint64 `json:"keep_images"`
	Reuse      bool    `json:"reuse"`
}

func DefaultPluginMcpOptions

func DefaultPluginMcpOptions() PluginMcpOptions

func (PluginMcpOptions) MarshalJSON

func (value PluginMcpOptions) MarshalJSON() ([]byte, error)

func (*PluginMcpOptions) UnmarshalJSON

func (value *PluginMcpOptions) UnmarshalJSON(data []byte) error

type PluginMcpRuntime

type PluginMcpRuntime struct {
	State       PluginMcpRuntimeState `json:"state"`
	Tools       uint32                `json:"tools"`
	Fault       *Fault                `json:"fault,omitempty"`
	UpdatedAtMs uint64                `json:"updated_at_ms"`
}

func DefaultPluginMcpRuntime

func DefaultPluginMcpRuntime() PluginMcpRuntime

func (PluginMcpRuntime) MarshalJSON

func (value PluginMcpRuntime) MarshalJSON() ([]byte, error)

func (*PluginMcpRuntime) UnmarshalJSON

func (value *PluginMcpRuntime) UnmarshalJSON(data []byte) error

type PluginMcpRuntimeState

type PluginMcpRuntimeState string
const (
	PluginMcpRuntimeStateConnecting PluginMcpRuntimeState = "connecting"
	PluginMcpRuntimeStateConnected  PluginMcpRuntimeState = "connected"
	PluginMcpRuntimeStateFailed     PluginMcpRuntimeState = "failed"
)

func (PluginMcpRuntimeState) MarshalJSON

func (value PluginMcpRuntimeState) MarshalJSON() ([]byte, error)

func (PluginMcpRuntimeState) MarshalText

func (value PluginMcpRuntimeState) MarshalText() ([]byte, error)

func (*PluginMcpRuntimeState) UnmarshalJSON

func (value *PluginMcpRuntimeState) UnmarshalJSON(data []byte) error

func (*PluginMcpRuntimeState) UnmarshalText

func (value *PluginMcpRuntimeState) UnmarshalText(data []byte) error

type PluginMcpServer

type PluginMcpServer struct {
	Kind string
	Data any
}

func (PluginMcpServer) MarshalJSON

func (value PluginMcpServer) MarshalJSON() ([]byte, error)

func (*PluginMcpServer) UnmarshalJSON

func (value *PluginMcpServer) UnmarshalJSON(data []byte) error

type PluginMcpServerHttpPayload

type PluginMcpServerHttpPayload struct {
	Url        string            `json:"url"`
	Headers    map[string]string `json:"headers"`
	Exclusive  bool              `json:"exclusive,omitempty"`
	KeepImages *uint64           `json:"keep_images,omitempty"`
	Reuse      bool              `json:"reuse"`
	Tools      *[]string         `json:"tools,omitempty"`
}

func DefaultPluginMcpServerHttpPayload

func DefaultPluginMcpServerHttpPayload() PluginMcpServerHttpPayload

func (PluginMcpServerHttpPayload) MarshalJSON

func (value PluginMcpServerHttpPayload) MarshalJSON() ([]byte, error)

func (*PluginMcpServerHttpPayload) UnmarshalJSON

func (value *PluginMcpServerHttpPayload) UnmarshalJSON(data []byte) error

type PluginMcpServerSsePayload

type PluginMcpServerSsePayload struct {
	Url        string            `json:"url"`
	Headers    map[string]string `json:"headers"`
	Exclusive  bool              `json:"exclusive,omitempty"`
	KeepImages *uint64           `json:"keep_images,omitempty"`
	Reuse      bool              `json:"reuse"`
	Tools      *[]string         `json:"tools,omitempty"`
}

func DefaultPluginMcpServerSsePayload

func DefaultPluginMcpServerSsePayload() PluginMcpServerSsePayload

func (PluginMcpServerSsePayload) MarshalJSON

func (value PluginMcpServerSsePayload) MarshalJSON() ([]byte, error)

func (*PluginMcpServerSsePayload) UnmarshalJSON

func (value *PluginMcpServerSsePayload) UnmarshalJSON(data []byte) error

type PluginMcpServerStdioPayload

type PluginMcpServerStdioPayload struct {
	Command    string            `json:"command"`
	Args       []string          `json:"args"`
	Env        map[string]string `json:"env"`
	Cwd        string            `json:"cwd"`
	Exclusive  bool              `json:"exclusive,omitempty"`
	KeepImages *uint64           `json:"keep_images,omitempty"`
	Reuse      bool              `json:"reuse"`
	Tools      *[]string         `json:"tools,omitempty"`
}

func DefaultPluginMcpServerStdioPayload

func DefaultPluginMcpServerStdioPayload() PluginMcpServerStdioPayload

func (PluginMcpServerStdioPayload) MarshalJSON

func (value PluginMcpServerStdioPayload) MarshalJSON() ([]byte, error)

func (*PluginMcpServerStdioPayload) UnmarshalJSON

func (value *PluginMcpServerStdioPayload) UnmarshalJSON(data []byte) error

type PluginMcpState

type PluginMcpState struct {
	Package       PluginReference        `json:"package"`
	Configuration PluginMcpConfiguration `json:"configuration"`
}

func DefaultPluginMcpState

func DefaultPluginMcpState() PluginMcpState

func (PluginMcpState) MarshalJSON

func (value PluginMcpState) MarshalJSON() ([]byte, error)

func (*PluginMcpState) UnmarshalJSON

func (value *PluginMcpState) UnmarshalJSON(data []byte) error

type PluginMcpTool

type PluginMcpTool struct {
	Name        string  `json:"name"`
	Description *string `json:"description"`
}

func DefaultPluginMcpTool

func DefaultPluginMcpTool() PluginMcpTool

func (PluginMcpTool) MarshalJSON

func (value PluginMcpTool) MarshalJSON() ([]byte, error)

func (*PluginMcpTool) UnmarshalJSON

func (value *PluginMcpTool) UnmarshalJSON(data []byte) error

type PluginMcpTransport

type PluginMcpTransport string
const (
	PluginMcpTransportStdio          PluginMcpTransport = "stdio"
	PluginMcpTransportStreamableHttp PluginMcpTransport = "streamable-http"
	PluginMcpTransportSse            PluginMcpTransport = "sse"
)

func (PluginMcpTransport) MarshalJSON

func (value PluginMcpTransport) MarshalJSON() ([]byte, error)

func (PluginMcpTransport) MarshalText

func (value PluginMcpTransport) MarshalText() ([]byte, error)

func (*PluginMcpTransport) UnmarshalJSON

func (value *PluginMcpTransport) UnmarshalJSON(data []byte) error

func (*PluginMcpTransport) UnmarshalText

func (value *PluginMcpTransport) UnmarshalText(data []byte) error

type PluginMemorySample

type PluginMemorySample struct {
	Package     PluginReference `json:"package"`
	Kind        string          `json:"kind"`
	Bytes       *uint64         `json:"bytes"`
	SampledAtMs uint64          `json:"sampled_at_ms"`
	Instances   uint32          `json:"instances"`
	Busy        bool            `json:"busy"`
}

PluginMemorySample groups instances by their exact captured package and execution kind (tool, callback or model). A nil Bytes means that at least one instance has no complete safe sample yet. Busy preserves the last complete estimate and its timestamp while an instance executes.

func (*PluginMemorySample) UnmarshalJSON

func (value *PluginMemorySample) UnmarshalJSON(data []byte) error

type PluginMemorySnapshot

type PluginMemorySnapshot struct {
	Samples      []PluginMemorySample `json:"samples"`
	CapturedAtMs uint64               `json:"captured_at_ms"`
}

PluginMemorySnapshot contains only live Node JavaScript instances. These retained-heap estimates exclude shared, native and other Go-owned storage.

func DefaultPluginMemorySnapshot

func DefaultPluginMemorySnapshot() PluginMemorySnapshot

func (PluginMemorySnapshot) MarshalJSON

func (value PluginMemorySnapshot) MarshalJSON() ([]byte, error)

func (*PluginMemorySnapshot) UnmarshalJSON

func (value *PluginMemorySnapshot) UnmarshalJSON(data []byte) error

type PluginModelAdapterAcp

type PluginModelAdapterAcp struct {
	Program string `json:"program"`
	// SystemMeta is the dotted `_meta` path of `session/new` that carries the
	// system text. Without it the system text opens the session's first prompt.
	SystemMeta *string `json:"system_meta,omitempty"`
	// ModelArgument selects the model through the program's `{model}`
	// argument, one process per model, instead of a session request.
	ModelArgument bool `json:"model_argument,omitempty"`
	// Efforts maps an effort level to the suffix of the agent's model
	// identifier for that level.
	Efforts map[string]string `json:"efforts,omitempty"`
	// ReplayBytes bounds the text of one prompt.
	ReplayBytes uint32 `json:"replay_bytes"`
	// AuthMethod is the `authenticate` method tried once when the agent
	// requires authentication.
	AuthMethod *string `json:"auth_method,omitempty"`
	// SignIn tells the user how to sign in to the program.
	SignIn string `json:"sign_in"`
	// FailureMarkers are texts by which the agent reports its own failure
	// inside a reply.
	FailureMarkers []string `json:"failure_markers,omitempty"`
}

PluginModelAdapterAcp selects the Agent Client Protocol route: the adapter's transport is a declared program instead of HTTP, and it has no script.

func (*PluginModelAdapterAcp) UnmarshalJSON

func (value *PluginModelAdapterAcp) UnmarshalJSON(data []byte) error

type PluginModelAdapterBinding

type PluginModelAdapterBinding struct {
	Adapter      string                         `json:"adapter"`
	Capabilities PluginModelAdapterCapabilities `json:"capabilities"`
}

func DefaultPluginModelAdapterBinding

func DefaultPluginModelAdapterBinding() PluginModelAdapterBinding

func (PluginModelAdapterBinding) MarshalJSON

func (value PluginModelAdapterBinding) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterBinding) UnmarshalJSON

func (value *PluginModelAdapterBinding) UnmarshalJSON(data []byte) error

type PluginModelAdapterCapabilities

type PluginModelAdapterCapabilities struct {
	Vision    bool `json:"vision"`
	Files     bool `json:"files"`
	Tools     bool `json:"tools"`
	Reasoning bool `json:"reasoning"`
}

func DefaultPluginModelAdapterCapabilities

func DefaultPluginModelAdapterCapabilities() PluginModelAdapterCapabilities

func (PluginModelAdapterCapabilities) MarshalJSON

func (value PluginModelAdapterCapabilities) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterCapabilities) UnmarshalJSON

func (value *PluginModelAdapterCapabilities) UnmarshalJSON(data []byte) error

type PluginModelAdapterDeclaration

type PluginModelAdapterDeclaration struct {
	ID            string                         `json:"id"`
	Script        PluginModelAdapterScript       `json:"script"`
	Origins       []string                       `json:"origins"`
	Framing       PluginModelAdapterFraming      `json:"framing"`
	SchemaDialect PluginModelAdapterDialect      `json:"schema_dialect"`
	Capabilities  PluginModelAdapterCapabilities `json:"capabilities"`
	Discovery     bool                           `json:"discovery"`
	Acp           *PluginModelAdapterAcp         `json:"acp,omitempty"`
}

func DefaultPluginModelAdapterDeclaration

func DefaultPluginModelAdapterDeclaration() PluginModelAdapterDeclaration

func (PluginModelAdapterDeclaration) MarshalJSON

func (value PluginModelAdapterDeclaration) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterDeclaration) UnmarshalJSON

func (value *PluginModelAdapterDeclaration) UnmarshalJSON(data []byte) error

type PluginModelAdapterDialect

type PluginModelAdapterDialect string
const (
	PluginModelAdapterDialectGeneric PluginModelAdapterDialect = "generic"
	PluginModelAdapterDialectOpenAi  PluginModelAdapterDialect = "open_ai"
	PluginModelAdapterDialectGemini  PluginModelAdapterDialect = "gemini"
)

func (PluginModelAdapterDialect) MarshalJSON

func (value PluginModelAdapterDialect) MarshalJSON() ([]byte, error)

func (PluginModelAdapterDialect) MarshalText

func (value PluginModelAdapterDialect) MarshalText() ([]byte, error)

func (*PluginModelAdapterDialect) UnmarshalJSON

func (value *PluginModelAdapterDialect) UnmarshalJSON(data []byte) error

func (*PluginModelAdapterDialect) UnmarshalText

func (value *PluginModelAdapterDialect) UnmarshalText(data []byte) error

type PluginModelAdapterFraming

type PluginModelAdapterFraming string
const (
	PluginModelAdapterFramingSse    PluginModelAdapterFraming = "sse"
	PluginModelAdapterFramingNdjson PluginModelAdapterFraming = "ndjson"
	PluginModelAdapterFramingJson   PluginModelAdapterFraming = "json"
)

func (PluginModelAdapterFraming) MarshalJSON

func (value PluginModelAdapterFraming) MarshalJSON() ([]byte, error)

func (PluginModelAdapterFraming) MarshalText

func (value PluginModelAdapterFraming) MarshalText() ([]byte, error)

func (*PluginModelAdapterFraming) UnmarshalJSON

func (value *PluginModelAdapterFraming) UnmarshalJSON(data []byte) error

func (*PluginModelAdapterFraming) UnmarshalText

func (value *PluginModelAdapterFraming) UnmarshalText(data []byte) error

type PluginModelAdapterScript

type PluginModelAdapterScript struct {
	Entry     string   `json:"entry"`
	Resources []string `json:"resources"`
}

func DefaultPluginModelAdapterScript

func DefaultPluginModelAdapterScript() PluginModelAdapterScript

func (PluginModelAdapterScript) MarshalJSON

func (value PluginModelAdapterScript) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterScript) UnmarshalJSON

func (value *PluginModelAdapterScript) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireChoice

type PluginModelAdapterWireChoice struct {
	Kind string
	Data any
}

func (PluginModelAdapterWireChoice) MarshalJSON

func (value PluginModelAdapterWireChoice) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireChoice) UnmarshalJSON

func (value *PluginModelAdapterWireChoice) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireChoiceNamedPayload

type PluginModelAdapterWireChoiceNamedPayload struct {
	Name string `json:"name"`
}

func DefaultPluginModelAdapterWireChoiceNamedPayload

func DefaultPluginModelAdapterWireChoiceNamedPayload() PluginModelAdapterWireChoiceNamedPayload

func (PluginModelAdapterWireChoiceNamedPayload) MarshalJSON

func (value PluginModelAdapterWireChoiceNamedPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireChoiceNamedPayload) UnmarshalJSON

func (value *PluginModelAdapterWireChoiceNamedPayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireClass

type PluginModelAdapterWireClass string
const (
	PluginModelAdapterWireClassAuthentication  PluginModelAdapterWireClass = "authentication"
	PluginModelAdapterWireClassPermission      PluginModelAdapterWireClass = "permission"
	PluginModelAdapterWireClassRateLimited     PluginModelAdapterWireClass = "rate_limited"
	PluginModelAdapterWireClassQuota           PluginModelAdapterWireClass = "quota"
	PluginModelAdapterWireClassContextOverflow PluginModelAdapterWireClass = "context_overflow"
	PluginModelAdapterWireClassInvalidRequest  PluginModelAdapterWireClass = "invalid_request"
	PluginModelAdapterWireClassUnavailable     PluginModelAdapterWireClass = "unavailable"
	PluginModelAdapterWireClassUnsupported     PluginModelAdapterWireClass = "unsupported"
	PluginModelAdapterWireClassUnknown         PluginModelAdapterWireClass = "unknown"
)

func (PluginModelAdapterWireClass) MarshalJSON

func (value PluginModelAdapterWireClass) MarshalJSON() ([]byte, error)

func (PluginModelAdapterWireClass) MarshalText

func (value PluginModelAdapterWireClass) MarshalText() ([]byte, error)

func (*PluginModelAdapterWireClass) UnmarshalJSON

func (value *PluginModelAdapterWireClass) UnmarshalJSON(data []byte) error

func (*PluginModelAdapterWireClass) UnmarshalText

func (value *PluginModelAdapterWireClass) UnmarshalText(data []byte) error

type PluginModelAdapterWireDecode

type PluginModelAdapterWireDecode struct {
	State   json.RawMessage               `json:"state"`
	Events  []PluginModelAdapterWireEvent `json:"events"`
	Done    bool                          `json:"done"`
	Status  *uint16                       `json:"status"`
	Headers *map[string][]string          `json:"headers"`
}

func DefaultPluginModelAdapterWireDecode

func DefaultPluginModelAdapterWireDecode() PluginModelAdapterWireDecode

func (PluginModelAdapterWireDecode) MarshalJSON

func (value PluginModelAdapterWireDecode) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireDecode) UnmarshalJSON

func (value *PluginModelAdapterWireDecode) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireDecoded

type PluginModelAdapterWireDecoded struct {
	State  json.RawMessage               `json:"state"`
	Deltas []PluginModelAdapterWireDelta `json:"deltas"`
}

func DefaultPluginModelAdapterWireDecoded

func DefaultPluginModelAdapterWireDecoded() PluginModelAdapterWireDecoded

func (PluginModelAdapterWireDecoded) MarshalJSON

func (value PluginModelAdapterWireDecoded) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireDecoded) UnmarshalJSON

func (value *PluginModelAdapterWireDecoded) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireDelta

type PluginModelAdapterWireDelta struct {
	Kind string
	Data any
}

func (PluginModelAdapterWireDelta) MarshalJSON

func (value PluginModelAdapterWireDelta) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireDelta) UnmarshalJSON

func (value *PluginModelAdapterWireDelta) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireDeltaErrorPayload

type PluginModelAdapterWireDeltaErrorPayload struct {
	Class            PluginModelAdapterWireClass `json:"class"`
	Message          string                      `json:"message"`
	RetryAfterMs     *uint64                     `json:"retry_after_ms"`
	Code             *string                     `json:"code"`
	ErrorType        *string                     `json:"error_type"`
	EventType        *string                     `json:"event_type"`
	IncompleteReason *string                     `json:"incomplete_reason"`
}

func DefaultPluginModelAdapterWireDeltaErrorPayload

func DefaultPluginModelAdapterWireDeltaErrorPayload() PluginModelAdapterWireDeltaErrorPayload

func (PluginModelAdapterWireDeltaErrorPayload) MarshalJSON

func (value PluginModelAdapterWireDeltaErrorPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireDeltaErrorPayload) UnmarshalJSON

func (value *PluginModelAdapterWireDeltaErrorPayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireDeltaFinishPayload

type PluginModelAdapterWireDeltaFinishPayload struct {
	Reason PluginModelAdapterWireFinish `json:"reason"`
}

func DefaultPluginModelAdapterWireDeltaFinishPayload

func DefaultPluginModelAdapterWireDeltaFinishPayload() PluginModelAdapterWireDeltaFinishPayload

func (PluginModelAdapterWireDeltaFinishPayload) MarshalJSON

func (value PluginModelAdapterWireDeltaFinishPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireDeltaFinishPayload) UnmarshalJSON

func (value *PluginModelAdapterWireDeltaFinishPayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireDeltaReasoningPayload

type PluginModelAdapterWireDeltaReasoningPayload struct {
	Text   *string `json:"text"`
	Replay *string `json:"replay"`
}

func DefaultPluginModelAdapterWireDeltaReasoningPayload

func DefaultPluginModelAdapterWireDeltaReasoningPayload() PluginModelAdapterWireDeltaReasoningPayload

func (PluginModelAdapterWireDeltaReasoningPayload) MarshalJSON

func (value PluginModelAdapterWireDeltaReasoningPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireDeltaReasoningPayload) UnmarshalJSON

func (value *PluginModelAdapterWireDeltaReasoningPayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireDeltaTextPayload

type PluginModelAdapterWireDeltaTextPayload struct {
	Text string `json:"text"`
}

func DefaultPluginModelAdapterWireDeltaTextPayload

func DefaultPluginModelAdapterWireDeltaTextPayload() PluginModelAdapterWireDeltaTextPayload

func (PluginModelAdapterWireDeltaTextPayload) MarshalJSON

func (value PluginModelAdapterWireDeltaTextPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireDeltaTextPayload) UnmarshalJSON

func (value *PluginModelAdapterWireDeltaTextPayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireDeltaToolCallPayload

type PluginModelAdapterWireDeltaToolCallPayload struct {
	Index          uint64  `json:"index"`
	ID             *string `json:"id"`
	Name           *string `json:"name"`
	ArgumentsDelta *string `json:"arguments_delta"`
}

func DefaultPluginModelAdapterWireDeltaToolCallPayload

func DefaultPluginModelAdapterWireDeltaToolCallPayload() PluginModelAdapterWireDeltaToolCallPayload

func (PluginModelAdapterWireDeltaToolCallPayload) MarshalJSON

func (value PluginModelAdapterWireDeltaToolCallPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireDeltaToolCallPayload) UnmarshalJSON

func (value *PluginModelAdapterWireDeltaToolCallPayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireDeltaUsagePayload

type PluginModelAdapterWireDeltaUsagePayload struct {
	InputTokens       *uint64 `json:"input_tokens"`
	OutputTokens      *uint64 `json:"output_tokens"`
	CachedInputTokens *uint64 `json:"cached_input_tokens"`
	ReasoningTokens   *uint64 `json:"reasoning_tokens"`
}

func DefaultPluginModelAdapterWireDeltaUsagePayload

func DefaultPluginModelAdapterWireDeltaUsagePayload() PluginModelAdapterWireDeltaUsagePayload

func (PluginModelAdapterWireDeltaUsagePayload) MarshalJSON

func (value PluginModelAdapterWireDeltaUsagePayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireDeltaUsagePayload) UnmarshalJSON

func (value *PluginModelAdapterWireDeltaUsagePayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireEvent

type PluginModelAdapterWireEvent struct {
	Event *string `json:"event"`
	Data  string  `json:"data"`
}

func DefaultPluginModelAdapterWireEvent

func DefaultPluginModelAdapterWireEvent() PluginModelAdapterWireEvent

func (PluginModelAdapterWireEvent) MarshalJSON

func (value PluginModelAdapterWireEvent) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireEvent) UnmarshalJSON

func (value *PluginModelAdapterWireEvent) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireFinish

type PluginModelAdapterWireFinish string
const (
	PluginModelAdapterWireFinishStop          PluginModelAdapterWireFinish = "stop"
	PluginModelAdapterWireFinishLength        PluginModelAdapterWireFinish = "length"
	PluginModelAdapterWireFinishToolCalls     PluginModelAdapterWireFinish = "tool_calls"
	PluginModelAdapterWireFinishContentFilter PluginModelAdapterWireFinish = "content_filter"
	PluginModelAdapterWireFinishOther         PluginModelAdapterWireFinish = "other"
)

func (PluginModelAdapterWireFinish) MarshalJSON

func (value PluginModelAdapterWireFinish) MarshalJSON() ([]byte, error)

func (PluginModelAdapterWireFinish) MarshalText

func (value PluginModelAdapterWireFinish) MarshalText() ([]byte, error)

func (*PluginModelAdapterWireFinish) UnmarshalJSON

func (value *PluginModelAdapterWireFinish) UnmarshalJSON(data []byte) error

func (*PluginModelAdapterWireFinish) UnmarshalText

func (value *PluginModelAdapterWireFinish) UnmarshalText(data []byte) error

type PluginModelAdapterWireImage

type PluginModelAdapterWireImage struct {
	Kind string
	Data any
}

func (PluginModelAdapterWireImage) MarshalJSON

func (value PluginModelAdapterWireImage) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireImage) UnmarshalJSON

func (value *PluginModelAdapterWireImage) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireImageInlinePayload

type PluginModelAdapterWireImageInlinePayload struct {
	DataBase64 string `json:"data_base64"`
}

func DefaultPluginModelAdapterWireImageInlinePayload

func DefaultPluginModelAdapterWireImageInlinePayload() PluginModelAdapterWireImageInlinePayload

func (PluginModelAdapterWireImageInlinePayload) MarshalJSON

func (value PluginModelAdapterWireImageInlinePayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireImageInlinePayload) UnmarshalJSON

func (value *PluginModelAdapterWireImageInlinePayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireImageUrlPayload

type PluginModelAdapterWireImageUrlPayload struct {
	Url string `json:"url"`
}

func DefaultPluginModelAdapterWireImageUrlPayload

func DefaultPluginModelAdapterWireImageUrlPayload() PluginModelAdapterWireImageUrlPayload

func (PluginModelAdapterWireImageUrlPayload) MarshalJSON

func (value PluginModelAdapterWireImageUrlPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireImageUrlPayload) UnmarshalJSON

func (value *PluginModelAdapterWireImageUrlPayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireInjection

type PluginModelAdapterWireInjection struct {
	Header   string `json:"header"`
	Template string `json:"template"`
}

func DefaultPluginModelAdapterWireInjection

func DefaultPluginModelAdapterWireInjection() PluginModelAdapterWireInjection

func (PluginModelAdapterWireInjection) MarshalJSON

func (value PluginModelAdapterWireInjection) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireInjection) UnmarshalJSON

func (value *PluginModelAdapterWireInjection) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireMessage

type PluginModelAdapterWireMessage struct {
	Kind string
	Data any
}

func (PluginModelAdapterWireMessage) MarshalJSON

func (value PluginModelAdapterWireMessage) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireMessage) UnmarshalJSON

func (value *PluginModelAdapterWireMessage) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireMessageAssistantPayload

type PluginModelAdapterWireMessageAssistantPayload struct {
	Parts []PluginModelAdapterWirePart `json:"parts"`
}

func DefaultPluginModelAdapterWireMessageAssistantPayload

func DefaultPluginModelAdapterWireMessageAssistantPayload() PluginModelAdapterWireMessageAssistantPayload

func (PluginModelAdapterWireMessageAssistantPayload) MarshalJSON

func (value PluginModelAdapterWireMessageAssistantPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireMessageAssistantPayload) UnmarshalJSON

func (value *PluginModelAdapterWireMessageAssistantPayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireMessageToolPayload

type PluginModelAdapterWireMessageToolPayload struct {
	CallID  string                       `json:"call_id"`
	Name    string                       `json:"name"`
	Parts   []PluginModelAdapterWirePart `json:"parts"`
	IsError bool                         `json:"is_error"`
}

func DefaultPluginModelAdapterWireMessageToolPayload

func DefaultPluginModelAdapterWireMessageToolPayload() PluginModelAdapterWireMessageToolPayload

func (PluginModelAdapterWireMessageToolPayload) MarshalJSON

func (value PluginModelAdapterWireMessageToolPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireMessageToolPayload) UnmarshalJSON

func (value *PluginModelAdapterWireMessageToolPayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireMessageUserPayload

type PluginModelAdapterWireMessageUserPayload struct {
	Parts []PluginModelAdapterWirePart `json:"parts"`
}

func DefaultPluginModelAdapterWireMessageUserPayload

func DefaultPluginModelAdapterWireMessageUserPayload() PluginModelAdapterWireMessageUserPayload

func (PluginModelAdapterWireMessageUserPayload) MarshalJSON

func (value PluginModelAdapterWireMessageUserPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireMessageUserPayload) UnmarshalJSON

func (value *PluginModelAdapterWireMessageUserPayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWirePart

type PluginModelAdapterWirePart struct {
	Kind string
	Data any
}

func (PluginModelAdapterWirePart) MarshalJSON

func (value PluginModelAdapterWirePart) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWirePart) UnmarshalJSON

func (value *PluginModelAdapterWirePart) UnmarshalJSON(data []byte) error

type PluginModelAdapterWirePartFilePayload

type PluginModelAdapterWirePartFilePayload struct {
	MediaType  string  `json:"media_type"`
	Name       *string `json:"name"`
	DataBase64 string  `json:"data_base64"`
}

func DefaultPluginModelAdapterWirePartFilePayload

func DefaultPluginModelAdapterWirePartFilePayload() PluginModelAdapterWirePartFilePayload

func (PluginModelAdapterWirePartFilePayload) MarshalJSON

func (value PluginModelAdapterWirePartFilePayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWirePartFilePayload) UnmarshalJSON

func (value *PluginModelAdapterWirePartFilePayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWirePartImagePayload

type PluginModelAdapterWirePartImagePayload struct {
	MediaType string                      `json:"media_type"`
	Data      PluginModelAdapterWireImage `json:"data"`
}

func DefaultPluginModelAdapterWirePartImagePayload

func DefaultPluginModelAdapterWirePartImagePayload() PluginModelAdapterWirePartImagePayload

func (PluginModelAdapterWirePartImagePayload) MarshalJSON

func (value PluginModelAdapterWirePartImagePayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWirePartImagePayload) UnmarshalJSON

func (value *PluginModelAdapterWirePartImagePayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWirePartJsonPayload

type PluginModelAdapterWirePartJsonPayload struct {
	Value json.RawMessage `json:"value"`
}

func DefaultPluginModelAdapterWirePartJsonPayload

func DefaultPluginModelAdapterWirePartJsonPayload() PluginModelAdapterWirePartJsonPayload

func (PluginModelAdapterWirePartJsonPayload) MarshalJSON

func (value PluginModelAdapterWirePartJsonPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWirePartJsonPayload) UnmarshalJSON

func (value *PluginModelAdapterWirePartJsonPayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWirePartReasoningPayload

type PluginModelAdapterWirePartReasoningPayload struct {
	Text   *string `json:"text"`
	Replay *string `json:"replay"`
}

func DefaultPluginModelAdapterWirePartReasoningPayload

func DefaultPluginModelAdapterWirePartReasoningPayload() PluginModelAdapterWirePartReasoningPayload

func (PluginModelAdapterWirePartReasoningPayload) MarshalJSON

func (value PluginModelAdapterWirePartReasoningPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWirePartReasoningPayload) UnmarshalJSON

func (value *PluginModelAdapterWirePartReasoningPayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWirePartTextPayload

type PluginModelAdapterWirePartTextPayload struct {
	Text string `json:"text"`
}

func DefaultPluginModelAdapterWirePartTextPayload

func DefaultPluginModelAdapterWirePartTextPayload() PluginModelAdapterWirePartTextPayload

func (PluginModelAdapterWirePartTextPayload) MarshalJSON

func (value PluginModelAdapterWirePartTextPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWirePartTextPayload) UnmarshalJSON

func (value *PluginModelAdapterWirePartTextPayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWirePartToolCallPayload

type PluginModelAdapterWirePartToolCallPayload struct {
	ID        string          `json:"id"`
	Name      string          `json:"name"`
	Arguments json.RawMessage `json:"arguments"`
}

func DefaultPluginModelAdapterWirePartToolCallPayload

func DefaultPluginModelAdapterWirePartToolCallPayload() PluginModelAdapterWirePartToolCallPayload

func (PluginModelAdapterWirePartToolCallPayload) MarshalJSON

func (value PluginModelAdapterWirePartToolCallPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWirePartToolCallPayload) UnmarshalJSON

func (value *PluginModelAdapterWirePartToolCallPayload) UnmarshalJSON(data []byte) error

type PluginModelAdapterWirePrepared

type PluginModelAdapterWirePrepared struct {
	Method     PluginModelAuthMethod            `json:"method"`
	Url        string                           `json:"url"`
	Headers    map[string]string                `json:"headers"`
	Body       *string                          `json:"body"`
	Credential *PluginModelAdapterWireInjection `json:"credential"`
	Framing    *PluginModelAdapterFraming       `json:"framing"`
}

func DefaultPluginModelAdapterWirePrepared

func DefaultPluginModelAdapterWirePrepared() PluginModelAdapterWirePrepared

func (PluginModelAdapterWirePrepared) MarshalJSON

func (value PluginModelAdapterWirePrepared) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWirePrepared) UnmarshalJSON

func (value *PluginModelAdapterWirePrepared) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireReasoning

type PluginModelAdapterWireReasoning struct {
	Effort Effort `json:"effort"`
	Replay bool   `json:"replay"`
}

func DefaultPluginModelAdapterWireReasoning

func DefaultPluginModelAdapterWireReasoning() PluginModelAdapterWireReasoning

func (PluginModelAdapterWireReasoning) MarshalJSON

func (value PluginModelAdapterWireReasoning) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireReasoning) UnmarshalJSON

func (value *PluginModelAdapterWireReasoning) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireRequest

type PluginModelAdapterWireRequest struct {
	Version         string                          `json:"version"`
	Model           string                          `json:"model"`
	Messages        []PluginModelAdapterWireMessage `json:"messages"`
	System          *string                         `json:"system"`
	Tools           []PluginModelAdapterWireTool    `json:"tools"`
	ToolChoice      PluginModelAdapterWireChoice    `json:"tool_choice"`
	Reasoning       PluginModelAdapterWireReasoning `json:"reasoning"`
	Features        map[string]string               `json:"features"`
	MaxOutputTokens *uint64                         `json:"max_output_tokens"`
	Temperature     *float64                        `json:"temperature"`
	TopP            *float64                        `json:"top_p"`
	Stop            []string                        `json:"stop"`
	Stream          bool                            `json:"stream"`
	Session         string                          `json:"session"`
	Endpoint        string                          `json:"endpoint"`
	Options         map[string]json.RawMessage      `json:"options"`
	// Settings are the package's current public setting values.
	Settings map[string]json.RawMessage `json:"settings,omitempty"`
}

func DefaultPluginModelAdapterWireRequest

func DefaultPluginModelAdapterWireRequest() PluginModelAdapterWireRequest

func (PluginModelAdapterWireRequest) MarshalJSON

func (value PluginModelAdapterWireRequest) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireRequest) UnmarshalJSON

func (value *PluginModelAdapterWireRequest) UnmarshalJSON(data []byte) error

type PluginModelAdapterWireTool

type PluginModelAdapterWireTool struct {
	Name        string          `json:"name"`
	Description *string         `json:"description"`
	Parameters  json.RawMessage `json:"parameters"`
}

func DefaultPluginModelAdapterWireTool

func DefaultPluginModelAdapterWireTool() PluginModelAdapterWireTool

func (PluginModelAdapterWireTool) MarshalJSON

func (value PluginModelAdapterWireTool) MarshalJSON() ([]byte, error)

func (*PluginModelAdapterWireTool) UnmarshalJSON

func (value *PluginModelAdapterWireTool) UnmarshalJSON(data []byte) error

type PluginModelAuthBinding

type PluginModelAuthBinding struct {
	Flow string `json:"flow"`
}

func DefaultPluginModelAuthBinding

func DefaultPluginModelAuthBinding() PluginModelAuthBinding

func (PluginModelAuthBinding) MarshalJSON

func (value PluginModelAuthBinding) MarshalJSON() ([]byte, error)

func (*PluginModelAuthBinding) UnmarshalJSON

func (value *PluginModelAuthBinding) UnmarshalJSON(data []byte) error

type PluginModelAuthBody

type PluginModelAuthBody struct {
	Kind string
	Data any
}

func (PluginModelAuthBody) MarshalJSON

func (value PluginModelAuthBody) MarshalJSON() ([]byte, error)

func (*PluginModelAuthBody) UnmarshalJSON

func (value *PluginModelAuthBody) UnmarshalJSON(data []byte) error

type PluginModelAuthBodyFormPayload

type PluginModelAuthBodyFormPayload struct {
	Fields map[string]string `json:"fields"`
}

func DefaultPluginModelAuthBodyFormPayload

func DefaultPluginModelAuthBodyFormPayload() PluginModelAuthBodyFormPayload

func (PluginModelAuthBodyFormPayload) MarshalJSON

func (value PluginModelAuthBodyFormPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAuthBodyFormPayload) UnmarshalJSON

func (value *PluginModelAuthBodyFormPayload) UnmarshalJSON(data []byte) error

type PluginModelAuthBodyJsonPayload

type PluginModelAuthBodyJsonPayload struct {
	Value json.RawMessage `json:"value"`
}

func DefaultPluginModelAuthBodyJsonPayload

func DefaultPluginModelAuthBodyJsonPayload() PluginModelAuthBodyJsonPayload

func (PluginModelAuthBodyJsonPayload) MarshalJSON

func (value PluginModelAuthBodyJsonPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAuthBodyJsonPayload) UnmarshalJSON

func (value *PluginModelAuthBodyJsonPayload) UnmarshalJSON(data []byte) error

type PluginModelAuthCallback

type PluginModelAuthCallback struct {
	Path           string  `json:"path"`
	Port           *uint16 `json:"port,omitempty"`
	RedirectUri    *string `json:"redirect_uri"`
	Manual         bool    `json:"manual"`
	AllowLocalhost bool    `json:"allow_localhost,omitempty"`
}

func DefaultPluginModelAuthCallback

func DefaultPluginModelAuthCallback() PluginModelAuthCallback

func (PluginModelAuthCallback) MarshalJSON

func (value PluginModelAuthCallback) MarshalJSON() ([]byte, error)

func (*PluginModelAuthCallback) UnmarshalJSON

func (value *PluginModelAuthCallback) UnmarshalJSON(data []byte) error

type PluginModelAuthClient

type PluginModelAuthClient struct {
	ClientID            *string `json:"client_id"`
	ClientIdSetting     *string `json:"client_id_setting"`
	ClientSecretSetting *string `json:"client_secret_setting"`
}

func DefaultPluginModelAuthClient

func DefaultPluginModelAuthClient() PluginModelAuthClient

func (PluginModelAuthClient) MarshalJSON

func (value PluginModelAuthClient) MarshalJSON() ([]byte, error)

func (*PluginModelAuthClient) UnmarshalJSON

func (value *PluginModelAuthClient) UnmarshalJSON(data []byte) error

type PluginModelAuthCondition

type PluginModelAuthCondition struct {
	Pointer string            `json:"pointer"`
	Values  []json.RawMessage `json:"values"`
}

func DefaultPluginModelAuthCondition

func DefaultPluginModelAuthCondition() PluginModelAuthCondition

func (PluginModelAuthCondition) MarshalJSON

func (value PluginModelAuthCondition) MarshalJSON() ([]byte, error)

func (*PluginModelAuthCondition) UnmarshalJSON

func (value *PluginModelAuthCondition) UnmarshalJSON(data []byte) error

type PluginModelAuthDeclaration

type PluginModelAuthDeclaration struct {
	ID             string                             `json:"id"`
	Authentication *Authentication                    `json:"authentication,omitempty"`
	Display        PluginDesktopNavigation            `json:"display"`
	Flow           PluginModelAuthFlow                `json:"flow"`
	Client         PluginModelAuthClient              `json:"client"`
	Scopes         []string                           `json:"scopes"`
	Token          *PluginModelAuthMapping            `json:"token,omitempty"`
	Inject         []PluginModelAuthInjection         `json:"inject"`
	Refresh        *PluginModelAuthRefresh            `json:"refresh"`
	Exchange       *PluginModelAuthTransformation     `json:"exchange"`
	Requests       map[string]PluginModelAuthEndpoint `json:"requests"`
	Mutations      map[string]PluginModelAuthEndpoint `json:"mutations"`
	Warning        *PluginModelAuthWarning            `json:"warning,omitempty"`
}

func DefaultPluginModelAuthDeclaration

func DefaultPluginModelAuthDeclaration() PluginModelAuthDeclaration

func (PluginModelAuthDeclaration) MarshalJSON

func (value PluginModelAuthDeclaration) MarshalJSON() ([]byte, error)

func (*PluginModelAuthDeclaration) UnmarshalJSON

func (value *PluginModelAuthDeclaration) UnmarshalJSON(data []byte) error

type PluginModelAuthEndpoint

type PluginModelAuthEndpoint struct {
	CacheTtlMs *uint32               `json:"cache_ttl_ms,omitempty"`
	Url        string                `json:"url"`
	Method     PluginModelAuthMethod `json:"method"`
	Headers    map[string]string     `json:"headers"`
	Query      map[string]string     `json:"query"`
	Body       *PluginModelAuthBody  `json:"body"`
}

func DefaultPluginModelAuthEndpoint

func DefaultPluginModelAuthEndpoint() PluginModelAuthEndpoint

func (PluginModelAuthEndpoint) MarshalJSON

func (value PluginModelAuthEndpoint) MarshalJSON() ([]byte, error)

func (*PluginModelAuthEndpoint) UnmarshalJSON

func (value *PluginModelAuthEndpoint) UnmarshalJSON(data []byte) error

type PluginModelAuthFlow

type PluginModelAuthFlow struct {
	Kind string
	Data any
}

func (PluginModelAuthFlow) MarshalJSON

func (value PluginModelAuthFlow) MarshalJSON() ([]byte, error)

func (*PluginModelAuthFlow) UnmarshalJSON

func (value *PluginModelAuthFlow) UnmarshalJSON(data []byte) error

type PluginModelAuthFlowDeviceCodePayload

type PluginModelAuthFlowDeviceCodePayload struct {
	Device PluginModelAuthEndpoint `json:"device"`
	Token  PluginModelAuthEndpoint `json:"token"`
}

func DefaultPluginModelAuthFlowDeviceCodePayload

func DefaultPluginModelAuthFlowDeviceCodePayload() PluginModelAuthFlowDeviceCodePayload

func (PluginModelAuthFlowDeviceCodePayload) MarshalJSON

func (value PluginModelAuthFlowDeviceCodePayload) MarshalJSON() ([]byte, error)

func (*PluginModelAuthFlowDeviceCodePayload) UnmarshalJSON

func (value *PluginModelAuthFlowDeviceCodePayload) UnmarshalJSON(data []byte) error

type PluginModelAuthFlowPkcePayload

type PluginModelAuthFlowPkcePayload struct {
	Authorize   string                  `json:"authorize"`
	Token       PluginModelAuthEndpoint `json:"token"`
	Redirect    PluginModelAuthRedirect `json:"redirect"`
	RedirectUri *string                 `json:"redirect_uri"`
}

func DefaultPluginModelAuthFlowPkcePayload

func DefaultPluginModelAuthFlowPkcePayload() PluginModelAuthFlowPkcePayload

func (PluginModelAuthFlowPkcePayload) MarshalJSON

func (value PluginModelAuthFlowPkcePayload) MarshalJSON() ([]byte, error)

func (*PluginModelAuthFlowPkcePayload) UnmarshalJSON

func (value *PluginModelAuthFlowPkcePayload) UnmarshalJSON(data []byte) error

type PluginModelAuthFlowPollingPayload

type PluginModelAuthFlowPollingPayload struct {
	Start           PluginModelAuthEndpoint  `json:"start"`
	State           string                   `json:"state"`
	VerificationUrl string                   `json:"verification_url"`
	Token           PluginModelAuthEndpoint  `json:"token"`
	Success         PluginModelAuthCondition `json:"success"`
	IntervalMs      *uint64                  `json:"interval_ms"`
}

func DefaultPluginModelAuthFlowPollingPayload

func DefaultPluginModelAuthFlowPollingPayload() PluginModelAuthFlowPollingPayload

func (PluginModelAuthFlowPollingPayload) MarshalJSON

func (value PluginModelAuthFlowPollingPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAuthFlowPollingPayload) UnmarshalJSON

func (value *PluginModelAuthFlowPollingPayload) UnmarshalJSON(data []byte) error

type PluginModelAuthFlowScriptPayload

type PluginModelAuthFlowScriptPayload struct {
	Script   PluginModelAdapterScript           `json:"script"`
	Refresh  bool                               `json:"refresh,omitempty"`
	Handler  string                             `json:"handler"`
	Requests map[string]PluginModelAuthEndpoint `json:"requests"`
	Callback *PluginModelAuthCallback           `json:"callback"`
	Issuer   *string                            `json:"issuer"`
}

func DefaultPluginModelAuthFlowScriptPayload

func DefaultPluginModelAuthFlowScriptPayload() PluginModelAuthFlowScriptPayload

func (PluginModelAuthFlowScriptPayload) MarshalJSON

func (value PluginModelAuthFlowScriptPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAuthFlowScriptPayload) UnmarshalJSON

func (value *PluginModelAuthFlowScriptPayload) UnmarshalJSON(data []byte) error

type PluginModelAuthFlowTokenExchangePayload

type PluginModelAuthFlowTokenExchangePayload struct {
	Token PluginModelAuthEndpoint `json:"token"`
}

func DefaultPluginModelAuthFlowTokenExchangePayload

func DefaultPluginModelAuthFlowTokenExchangePayload() PluginModelAuthFlowTokenExchangePayload

func (PluginModelAuthFlowTokenExchangePayload) MarshalJSON

func (value PluginModelAuthFlowTokenExchangePayload) MarshalJSON() ([]byte, error)

func (*PluginModelAuthFlowTokenExchangePayload) UnmarshalJSON

func (value *PluginModelAuthFlowTokenExchangePayload) UnmarshalJSON(data []byte) error

type PluginModelAuthInjection

type PluginModelAuthInjection struct {
	Header   string `json:"header"`
	Template string `json:"template"`
}

func DefaultPluginModelAuthInjection

func DefaultPluginModelAuthInjection() PluginModelAuthInjection

func (PluginModelAuthInjection) MarshalJSON

func (value PluginModelAuthInjection) MarshalJSON() ([]byte, error)

func (*PluginModelAuthInjection) UnmarshalJSON

func (value *PluginModelAuthInjection) UnmarshalJSON(data []byte) error

type PluginModelAuthMapping

type PluginModelAuthMapping struct {
	Access       string            `json:"access"`
	Refresh      *string           `json:"refresh"`
	ExpiresIn    *string           `json:"expires_in"`
	AccountLabel *string           `json:"account_label,omitempty"`
	Extra        map[string]string `json:"extra"`
}

func DefaultPluginModelAuthMapping

func DefaultPluginModelAuthMapping() PluginModelAuthMapping

func (PluginModelAuthMapping) MarshalJSON

func (value PluginModelAuthMapping) MarshalJSON() ([]byte, error)

func (*PluginModelAuthMapping) UnmarshalJSON

func (value *PluginModelAuthMapping) UnmarshalJSON(data []byte) error

type PluginModelAuthMethod

type PluginModelAuthMethod string
const (
	PluginModelAuthMethodGet  PluginModelAuthMethod = "GET"
	PluginModelAuthMethodPost PluginModelAuthMethod = "POST"
)

func (PluginModelAuthMethod) MarshalJSON

func (value PluginModelAuthMethod) MarshalJSON() ([]byte, error)

func (PluginModelAuthMethod) MarshalText

func (value PluginModelAuthMethod) MarshalText() ([]byte, error)

func (*PluginModelAuthMethod) UnmarshalJSON

func (value *PluginModelAuthMethod) UnmarshalJSON(data []byte) error

func (*PluginModelAuthMethod) UnmarshalText

func (value *PluginModelAuthMethod) UnmarshalText(data []byte) error

type PluginModelAuthPresentation

type PluginModelAuthPresentation struct {
	Kind string
	Data any
}

func (PluginModelAuthPresentation) MarshalJSON

func (value PluginModelAuthPresentation) MarshalJSON() ([]byte, error)

func (*PluginModelAuthPresentation) UnmarshalJSON

func (value *PluginModelAuthPresentation) UnmarshalJSON(data []byte) error

type PluginModelAuthPresentationPkcePayload

type PluginModelAuthPresentationPkcePayload struct {
	Redirect PluginModelAuthRedirect `json:"redirect"`
}

func DefaultPluginModelAuthPresentationPkcePayload

func DefaultPluginModelAuthPresentationPkcePayload() PluginModelAuthPresentationPkcePayload

func (PluginModelAuthPresentationPkcePayload) MarshalJSON

func (value PluginModelAuthPresentationPkcePayload) MarshalJSON() ([]byte, error)

func (*PluginModelAuthPresentationPkcePayload) UnmarshalJSON

func (value *PluginModelAuthPresentationPkcePayload) UnmarshalJSON(data []byte) error

type PluginModelAuthPresentationScriptPayload

type PluginModelAuthPresentationScriptPayload struct {
	Callback *PluginModelAuthCallback `json:"callback"`
}

func DefaultPluginModelAuthPresentationScriptPayload

func DefaultPluginModelAuthPresentationScriptPayload() PluginModelAuthPresentationScriptPayload

func (PluginModelAuthPresentationScriptPayload) MarshalJSON

func (value PluginModelAuthPresentationScriptPayload) MarshalJSON() ([]byte, error)

func (*PluginModelAuthPresentationScriptPayload) UnmarshalJSON

func (value *PluginModelAuthPresentationScriptPayload) UnmarshalJSON(data []byte) error

type PluginModelAuthRedirect

type PluginModelAuthRedirect string
const (
	PluginModelAuthRedirectLoopback PluginModelAuthRedirect = "loopback"
	PluginModelAuthRedirectPaste    PluginModelAuthRedirect = "paste"
)

func (PluginModelAuthRedirect) MarshalJSON

func (value PluginModelAuthRedirect) MarshalJSON() ([]byte, error)

func (PluginModelAuthRedirect) MarshalText

func (value PluginModelAuthRedirect) MarshalText() ([]byte, error)

func (*PluginModelAuthRedirect) UnmarshalJSON

func (value *PluginModelAuthRedirect) UnmarshalJSON(data []byte) error

func (*PluginModelAuthRedirect) UnmarshalText

func (value *PluginModelAuthRedirect) UnmarshalText(data []byte) error

type PluginModelAuthRefresh

type PluginModelAuthRefresh struct {
	Request PluginModelAuthEndpoint `json:"request"`
	Token   PluginModelAuthMapping  `json:"token"`
}

func DefaultPluginModelAuthRefresh

func DefaultPluginModelAuthRefresh() PluginModelAuthRefresh

func (PluginModelAuthRefresh) MarshalJSON

func (value PluginModelAuthRefresh) MarshalJSON() ([]byte, error)

func (*PluginModelAuthRefresh) UnmarshalJSON

func (value *PluginModelAuthRefresh) UnmarshalJSON(data []byte) error

type PluginModelAuthResource

type PluginModelAuthResource struct {
	Authentication Authentication                     `json:"authentication"`
	Requests       map[string]PluginModelAuthEndpoint `json:"requests"`
}

func DefaultPluginModelAuthResource

func DefaultPluginModelAuthResource() PluginModelAuthResource

func (PluginModelAuthResource) MarshalJSON

func (value PluginModelAuthResource) MarshalJSON() ([]byte, error)

func (*PluginModelAuthResource) UnmarshalJSON

func (value *PluginModelAuthResource) UnmarshalJSON(data []byte) error

type PluginModelAuthTransformation

type PluginModelAuthTransformation struct {
	Script  PluginModelAdapterScript `json:"script"`
	Handler string                   `json:"handler"`
}

func DefaultPluginModelAuthTransformation

func DefaultPluginModelAuthTransformation() PluginModelAuthTransformation

func (PluginModelAuthTransformation) MarshalJSON

func (value PluginModelAuthTransformation) MarshalJSON() ([]byte, error)

func (*PluginModelAuthTransformation) UnmarshalJSON

func (value *PluginModelAuthTransformation) UnmarshalJSON(data []byte) error

type PluginModelAuthWarning

type PluginModelAuthWarning struct {
	Text    string            `json:"text"`
	Locales map[string]string `json:"locales"`
}

PluginModelAuthWarning is what a controller asks the user to accept before a sign-in of this declaration starts: one text and its translations.

func DefaultPluginModelAuthWarning

func DefaultPluginModelAuthWarning() PluginModelAuthWarning

func (PluginModelAuthWarning) MarshalJSON

func (value PluginModelAuthWarning) MarshalJSON() ([]byte, error)

func (*PluginModelAuthWarning) UnmarshalJSON

func (value *PluginModelAuthWarning) UnmarshalJSON(data []byte) error

type PluginModelsCatalog

type PluginModelsCatalog struct {
	Models []PluginModelsModel `json:"models"`
}

func DefaultPluginModelsCatalog

func DefaultPluginModelsCatalog() PluginModelsCatalog

func (PluginModelsCatalog) MarshalJSON

func (value PluginModelsCatalog) MarshalJSON() ([]byte, error)

func (*PluginModelsCatalog) UnmarshalJSON

func (value *PluginModelsCatalog) UnmarshalJSON(data []byte) error

type PluginModelsKind

type PluginModelsKind string
const (
	PluginModelsKindProvider PluginModelsKind = "provider"
)

func (PluginModelsKind) MarshalJSON

func (value PluginModelsKind) MarshalJSON() ([]byte, error)

func (PluginModelsKind) MarshalText

func (value PluginModelsKind) MarshalText() ([]byte, error)

func (*PluginModelsKind) UnmarshalJSON

func (value *PluginModelsKind) UnmarshalJSON(data []byte) error

func (*PluginModelsKind) UnmarshalText

func (value *PluginModelsKind) UnmarshalText(data []byte) error

type PluginModelsModel

type PluginModelsModel struct {
	Kind           PluginModelsKind      `json:"kind"`
	ID             string                `json:"id"`
	Provider       string                `json:"provider"`
	Model          string                `json:"model"`
	Api            *ConversationModelApi `json:"api,omitempty"`
	Authentication Authentication        `json:"authentication"`
	Default        bool                  `json:"default"`
	Reasoning      bool                  `json:"reasoning"`
	Efforts        []Effort              `json:"efforts"`
	DefaultEffort  Effort                `json:"default_effort"`
}

func DefaultPluginModelsModel

func DefaultPluginModelsModel() PluginModelsModel

func (PluginModelsModel) MarshalJSON

func (value PluginModelsModel) MarshalJSON() ([]byte, error)

func (*PluginModelsModel) UnmarshalJSON

func (value *PluginModelsModel) UnmarshalJSON(data []byte) error

type PluginModesDeclaration

type PluginModesDeclaration struct {
	ID           string                  `json:"id"`
	Option       string                  `json:"option"`
	Display      PluginDesktopNavigation `json:"display"`
	Permissions  PluginModesPermissions  `json:"permissions"`
	Instructions string                  `json:"instructions"`
}

func DefaultPluginModesDeclaration

func DefaultPluginModesDeclaration() PluginModesDeclaration

func (PluginModesDeclaration) MarshalJSON

func (value PluginModesDeclaration) MarshalJSON() ([]byte, error)

func (*PluginModesDeclaration) UnmarshalJSON

func (value *PluginModesDeclaration) UnmarshalJSON(data []byte) error

type PluginModesPermissions

type PluginModesPermissions struct {
	Write bool `json:"write"`
}

func DefaultPluginModesPermissions

func DefaultPluginModesPermissions() PluginModesPermissions

func (PluginModesPermissions) MarshalJSON

func (value PluginModesPermissions) MarshalJSON() ([]byte, error)

func (*PluginModesPermissions) UnmarshalJSON

func (value *PluginModesPermissions) UnmarshalJSON(data []byte) error

type PluginModesSelection

type PluginModesSelection struct {
	Package PluginReference `json:"package"`
	ID      string          `json:"id"`
}

func DefaultPluginModesSelection

func DefaultPluginModesSelection() PluginModesSelection

func (PluginModesSelection) MarshalJSON

func (value PluginModesSelection) MarshalJSON() ([]byte, error)

func (*PluginModesSelection) UnmarshalJSON

func (value *PluginModesSelection) UnmarshalJSON(data []byte) error

type PluginOrigin

type PluginOrigin struct {
	Kind string
	Data any
}

func (PluginOrigin) MarshalJSON

func (value PluginOrigin) MarshalJSON() ([]byte, error)

func (*PluginOrigin) UnmarshalJSON

func (value *PluginOrigin) UnmarshalJSON(data []byte) error

type PluginOriginOnlinePayload

type PluginOriginOnlinePayload struct {
	Source PluginSkillsResolved `json:"source"`
	Path   string               `json:"path"`
}

func DefaultPluginOriginOnlinePayload

func DefaultPluginOriginOnlinePayload() PluginOriginOnlinePayload

func (PluginOriginOnlinePayload) MarshalJSON

func (value PluginOriginOnlinePayload) MarshalJSON() ([]byte, error)

func (*PluginOriginOnlinePayload) UnmarshalJSON

func (value *PluginOriginOnlinePayload) UnmarshalJSON(data []byte) error

type PluginOriginRegistryPayload

type PluginOriginRegistryPayload struct {
	Source PluginSkillsRegistryResolved `json:"source"`
}

func DefaultPluginOriginRegistryPayload

func DefaultPluginOriginRegistryPayload() PluginOriginRegistryPayload

func (PluginOriginRegistryPayload) MarshalJSON

func (value PluginOriginRegistryPayload) MarshalJSON() ([]byte, error)

func (*PluginOriginRegistryPayload) UnmarshalJSON

func (value *PluginOriginRegistryPayload) UnmarshalJSON(data []byte) error

type PluginOriginWorktreePayload

type PluginOriginWorktreePayload struct {
	Worktree WorktreeID `json:"worktree"`
	Path     string     `json:"path"`
}

func DefaultPluginOriginWorktreePayload

func DefaultPluginOriginWorktreePayload() PluginOriginWorktreePayload

func (PluginOriginWorktreePayload) MarshalJSON

func (value PluginOriginWorktreePayload) MarshalJSON() ([]byte, error)

func (*PluginOriginWorktreePayload) UnmarshalJSON

func (value *PluginOriginWorktreePayload) UnmarshalJSON(data []byte) error

type PluginProgramDeclaration

type PluginProgramDeclaration struct {
	ID      string              `json:"id"`
	Command string              `json:"command"`
	Args    []string            `json:"args"`
	Env     map[string]string   `json:"env,omitempty"`
	Files   []PluginProgramFile `json:"files,omitempty"`
}

PluginProgramDeclaration names one executable a package may have the Node start. The Node resolves Command on its own search path and fills the placeholders of Args and Env; a package supplies no path and no shell.

func DefaultPluginProgramDeclaration

func DefaultPluginProgramDeclaration() PluginProgramDeclaration

func (PluginProgramDeclaration) MarshalJSON

func (value PluginProgramDeclaration) MarshalJSON() ([]byte, error)

func (*PluginProgramDeclaration) UnmarshalJSON

func (value *PluginProgramDeclaration) UnmarshalJSON(data []byte) error

type PluginProgramFile

type PluginProgramFile struct {
	Path    string `json:"path"`
	Content string `json:"content"`
}

PluginProgramFile is a file the Node writes into the program's own directory before the program starts.

func (*PluginProgramFile) UnmarshalJSON

func (value *PluginProgramFile) UnmarshalJSON(data []byte) error

type PluginReference

type PluginReference struct {
	Name             string `json:"name"`
	Digest           string `json:"digest"`
	SettingsRevision uint64 `json:"settings_revision"`
}

func DefaultPluginReference

func DefaultPluginReference() PluginReference

func (PluginReference) MarshalJSON

func (value PluginReference) MarshalJSON() ([]byte, error)

func (*PluginReference) UnmarshalJSON

func (value *PluginReference) UnmarshalJSON(data []byte) error

type PluginRequirements

type PluginRequirements struct {
	APIVersion       string  `json:"api_version"`
	MinSailryVersion *string `json:"min_sailry_version,omitempty"`
	Invalid          bool    `json:"invalid,omitempty"`
}

PluginRequirements survive extension decoding, including an unsupported API. Nil requirements identify a package with no Sailry platform extension.

func (*PluginRequirements) UnmarshalJSON

func (value *PluginRequirements) UnmarshalJSON(data []byte) error

type PluginScope

type PluginScope string
const (
	PluginScopeHost    PluginScope = "host"
	PluginScopeDesktop PluginScope = "desktop"
)

func (PluginScope) MarshalJSON

func (value PluginScope) MarshalJSON() ([]byte, error)

func (PluginScope) MarshalText

func (value PluginScope) MarshalText() ([]byte, error)

func (*PluginScope) UnmarshalJSON

func (value *PluginScope) UnmarshalJSON(data []byte) error

func (*PluginScope) UnmarshalText

func (value *PluginScope) UnmarshalText(data []byte) error

type PluginService

type PluginService string
const (
	PluginServiceCodeIndex PluginService = "code_index"
	PluginServiceLanguage  PluginService = "language"
)

func (PluginService) MarshalJSON

func (value PluginService) MarshalJSON() ([]byte, error)

func (PluginService) MarshalText

func (value PluginService) MarshalText() ([]byte, error)

func (*PluginService) UnmarshalJSON

func (value *PluginService) UnmarshalJSON(data []byte) error

func (*PluginService) UnmarshalText

func (value *PluginService) UnmarshalText(data []byte) error

type PluginSettingsBinding

type PluginSettingsBinding struct {
	Server      *string `json:"server,omitempty"`
	Env         *string `json:"env"`
	Header      *string `json:"header"`
	Origin      *string `json:"origin,omitempty"`
	Prefix      *string `json:"prefix,omitempty"`
	Unsupported bool    `json:"unsupported,omitempty"`
}

func DefaultPluginSettingsBinding

func DefaultPluginSettingsBinding() PluginSettingsBinding

func (PluginSettingsBinding) MarshalJSON

func (value PluginSettingsBinding) MarshalJSON() ([]byte, error)

func (*PluginSettingsBinding) UnmarshalJSON

func (value *PluginSettingsBinding) UnmarshalJSON(data []byte) error

type PluginSettingsField

type PluginSettingsField struct {
	Kind             PluginSettingsKind     `json:"type"`
	Time             bool                   `json:"x-sailry-time,omitempty"`
	ChildConcurrency bool                   `json:"x-sailry-child-concurrency,omitempty"`
	Import           *string                `json:"x-sailry-import,omitempty"`
	Model            bool                   `json:"x-sailry-model,omitempty"`
	Effort           *string                `json:"x-sailry-model-effort,omitempty"`
	Title            *string                `json:"title,omitempty"`
	Description      *string                `json:"description,omitempty"`
	Default          *json.RawMessage       `json:"default,omitempty"`
	Choices          *[]json.RawMessage     `json:"enum,omitempty"`
	MinLength        *uint64                `json:"minLength,omitempty"`
	MaxLength        *uint64                `json:"maxLength,omitempty"`
	Pattern          *string                `json:"pattern,omitempty"`
	Minimum          *json.Number           `json:"minimum,omitempty"`
	Maximum          *json.Number           `json:"maximum,omitempty"`
	Secret           *PluginSettingsBinding `json:"x-sailry-secret,omitempty"`
}

func DefaultPluginSettingsField

func DefaultPluginSettingsField() PluginSettingsField

func (PluginSettingsField) MarshalJSON

func (value PluginSettingsField) MarshalJSON() ([]byte, error)

func (*PluginSettingsField) UnmarshalJSON

func (value *PluginSettingsField) UnmarshalJSON(data []byte) error

type PluginSettingsKind

type PluginSettingsKind string
const (
	PluginSettingsKindString  PluginSettingsKind = "string"
	PluginSettingsKindInteger PluginSettingsKind = "integer"
	PluginSettingsKindNumber  PluginSettingsKind = "number"
	PluginSettingsKindBoolean PluginSettingsKind = "boolean"
)

func (PluginSettingsKind) MarshalJSON

func (value PluginSettingsKind) MarshalJSON() ([]byte, error)

func (PluginSettingsKind) MarshalText

func (value PluginSettingsKind) MarshalText() ([]byte, error)

func (*PluginSettingsKind) UnmarshalJSON

func (value *PluginSettingsKind) UnmarshalJSON(data []byte) error

func (*PluginSettingsKind) UnmarshalText

func (value *PluginSettingsKind) UnmarshalText(data []byte) error

type PluginSettingsObject

type PluginSettingsObject string
const (
	PluginSettingsObjectObject PluginSettingsObject = "object"
)

func (PluginSettingsObject) MarshalJSON

func (value PluginSettingsObject) MarshalJSON() ([]byte, error)

func (PluginSettingsObject) MarshalText

func (value PluginSettingsObject) MarshalText() ([]byte, error)

func (*PluginSettingsObject) UnmarshalJSON

func (value *PluginSettingsObject) UnmarshalJSON(data []byte) error

func (*PluginSettingsObject) UnmarshalText

func (value *PluginSettingsObject) UnmarshalText(data []byte) error

type PluginSettingsSchema

type PluginSettingsSchema struct {
	Schema               string                         `json:"$schema"`
	Kind                 PluginSettingsObject           `json:"type"`
	Title                *string                        `json:"title,omitempty"`
	Description          *string                        `json:"description,omitempty"`
	Locales              map[string]map[string]string   `json:"x-sailry-locales,omitempty"`
	Tabs                 []PluginSettingsTab            `json:"x-sailry-tabs,omitempty"`
	Properties           map[string]PluginSettingsField `json:"properties"`
	Required             []string                       `json:"required"`
	AdditionalProperties bool                           `json:"additionalProperties"`
}

func DefaultPluginSettingsSchema

func DefaultPluginSettingsSchema() PluginSettingsSchema

func (PluginSettingsSchema) MarshalJSON

func (value PluginSettingsSchema) MarshalJSON() ([]byte, error)

func (*PluginSettingsSchema) UnmarshalJSON

func (value *PluginSettingsSchema) UnmarshalJSON(data []byte) error

type PluginSettingsSecretUpdate

type PluginSettingsSecretUpdate struct {
	Kind string
	Data any
}

func (PluginSettingsSecretUpdate) MarshalJSON

func (value PluginSettingsSecretUpdate) MarshalJSON() ([]byte, error)

func (*PluginSettingsSecretUpdate) UnmarshalJSON

func (value *PluginSettingsSecretUpdate) UnmarshalJSON(data []byte) error

type PluginSettingsState

type PluginSettingsState struct {
	Package    PluginReference            `json:"package"`
	Values     map[string]json.RawMessage `json:"values"`
	Configured []string                   `json:"configured"`
	Keepable   []string                   `json:"keepable"`
	Ready      bool                       `json:"ready"`
}

func DefaultPluginSettingsState

func DefaultPluginSettingsState() PluginSettingsState

func (PluginSettingsState) MarshalJSON

func (value PluginSettingsState) MarshalJSON() ([]byte, error)

func (*PluginSettingsState) UnmarshalJSON

func (value *PluginSettingsState) UnmarshalJSON(data []byte) error

type PluginSettingsTab

type PluginSettingsTab struct {
	ID      string   `json:"id"`
	Title   string   `json:"title"`
	Fields  []string `json:"fields"`
	Enabled *string  `json:"enabled,omitempty"`
}

func DefaultPluginSettingsTab

func DefaultPluginSettingsTab() PluginSettingsTab

func (PluginSettingsTab) MarshalJSON

func (value PluginSettingsTab) MarshalJSON() ([]byte, error)

func (*PluginSettingsTab) UnmarshalJSON

func (value *PluginSettingsTab) UnmarshalJSON(data []byte) error

type PluginSkill

type PluginSkill struct {
	Name           string            `json:"name"`
	DisplayLocales map[string]string `json:"display_locales,omitempty"`
	DisplayName    *string           `json:"display_name,omitempty"`
	Description    string            `json:"description"`
	Path           string            `json:"path"`
	License        *string           `json:"license"`
	Compatibility  *string           `json:"compatibility"`
}

func DefaultPluginSkill

func DefaultPluginSkill() PluginSkill

func (PluginSkill) MarshalJSON

func (value PluginSkill) MarshalJSON() ([]byte, error)

func (*PluginSkill) UnmarshalJSON

func (value *PluginSkill) UnmarshalJSON(data []byte) error

type PluginSkillcatalogEntry

type PluginSkillcatalogEntry struct {
	ID                 string                           `json:"id"`
	Package            *string                          `json:"package"`
	Name               string                           `json:"name"`
	DisplayName        *string                          `json:"display_name"`
	Icon               *string                          `json:"icon"`
	DisplayLocales     map[string]string                `json:"display_locales"`
	Description        *string                          `json:"description"`
	DescriptionLocales map[string]string                `json:"description_locales"`
	Origin             string                           `json:"origin"`
	Url                *string                          `json:"url"`
	Source             *PluginSkillcatalogInstallSource `json:"source"`
	Bundled            bool                             `json:"bundled"`
	// Publisher is the directory's name for who publishes the skill, and
	// Avatar an https picture of them or of the skill.
	Publisher *string `json:"publisher,omitempty"`
	Avatar    *string `json:"avatar,omitempty"`
	// Installs and Stars are the directory's counts when it reports them.
	Installs *uint64 `json:"installs,omitempty"`
	Stars    *uint64 `json:"stars,omitempty"`
	// Verified is the directory's own official or verified mark.
	Verified bool `json:"verified,omitempty"`
}

func DefaultPluginSkillcatalogEntry

func DefaultPluginSkillcatalogEntry() PluginSkillcatalogEntry

func (PluginSkillcatalogEntry) MarshalJSON

func (value PluginSkillcatalogEntry) MarshalJSON() ([]byte, error)

func (*PluginSkillcatalogEntry) UnmarshalJSON

func (value *PluginSkillcatalogEntry) UnmarshalJSON(data []byte) error

type PluginSkillcatalogInstallSource

type PluginSkillcatalogInstallSource struct {
	Kind string
	Data any
}

func (PluginSkillcatalogInstallSource) MarshalJSON

func (value PluginSkillcatalogInstallSource) MarshalJSON() ([]byte, error)

func (*PluginSkillcatalogInstallSource) UnmarshalJSON

func (value *PluginSkillcatalogInstallSource) UnmarshalJSON(data []byte) error

type PluginSkillcatalogPage

type PluginSkillcatalogPage struct {
	QueryScope  PluginSkillcatalogQueryScope `json:"query_scope"`
	Entries     []PluginSkillcatalogEntry    `json:"entries"`
	Page        uint32                       `json:"page"`
	Next        *uint32                      `json:"next"`
	Total       *uint64                      `json:"total"`
	Unavailable bool                         `json:"unavailable"`
}

func DefaultPluginSkillcatalogPage

func DefaultPluginSkillcatalogPage() PluginSkillcatalogPage

func (PluginSkillcatalogPage) MarshalJSON

func (value PluginSkillcatalogPage) MarshalJSON() ([]byte, error)

func (*PluginSkillcatalogPage) UnmarshalJSON

func (value *PluginSkillcatalogPage) UnmarshalJSON(data []byte) error

type PluginSkillcatalogQueryScope

type PluginSkillcatalogQueryScope string
const (
	PluginSkillcatalogQueryScopeCatalog PluginSkillcatalogQueryScope = "catalog"
	PluginSkillcatalogQueryScopePage    PluginSkillcatalogQueryScope = "page"
)

func (PluginSkillcatalogQueryScope) MarshalJSON

func (value PluginSkillcatalogQueryScope) MarshalJSON() ([]byte, error)

func (PluginSkillcatalogQueryScope) MarshalText

func (value PluginSkillcatalogQueryScope) MarshalText() ([]byte, error)

func (*PluginSkillcatalogQueryScope) UnmarshalJSON

func (value *PluginSkillcatalogQueryScope) UnmarshalJSON(data []byte) error

func (*PluginSkillcatalogQueryScope) UnmarshalText

func (value *PluginSkillcatalogQueryScope) UnmarshalText(data []byte) error

type PluginSkillcatalogSource

type PluginSkillcatalogSource string
const (
	PluginSkillcatalogSourceOfficial PluginSkillcatalogSource = "official"
	PluginSkillcatalogSourceSkillsSh PluginSkillcatalogSource = "skills_sh"
	PluginSkillcatalogSourceSkillhub PluginSkillcatalogSource = "skillhub"
)

func (PluginSkillcatalogSource) MarshalJSON

func (value PluginSkillcatalogSource) MarshalJSON() ([]byte, error)

func (PluginSkillcatalogSource) MarshalText

func (value PluginSkillcatalogSource) MarshalText() ([]byte, error)

func (*PluginSkillcatalogSource) UnmarshalJSON

func (value *PluginSkillcatalogSource) UnmarshalJSON(data []byte) error

func (*PluginSkillcatalogSource) UnmarshalText

func (value *PluginSkillcatalogSource) UnmarshalText(data []byte) error

type PluginSkillsArchiveFormat

type PluginSkillsArchiveFormat string
const (
	PluginSkillsArchiveFormatZip   PluginSkillsArchiveFormat = "zip"
	PluginSkillsArchiveFormatTar   PluginSkillsArchiveFormat = "tar"
	PluginSkillsArchiveFormatTarGz PluginSkillsArchiveFormat = "tar_gz"
)

func (PluginSkillsArchiveFormat) MarshalJSON

func (value PluginSkillsArchiveFormat) MarshalJSON() ([]byte, error)

func (PluginSkillsArchiveFormat) MarshalText

func (value PluginSkillsArchiveFormat) MarshalText() ([]byte, error)

func (*PluginSkillsArchiveFormat) UnmarshalJSON

func (value *PluginSkillsArchiveFormat) UnmarshalJSON(data []byte) error

func (*PluginSkillsArchiveFormat) UnmarshalText

func (value *PluginSkillsArchiveFormat) UnmarshalText(data []byte) error

type PluginSkillsCandidate

type PluginSkillsCandidate struct {
	Name  string      `json:"name"`
	Path  string      `json:"path"`
	Skill PluginSkill `json:"skill"`
}

func DefaultPluginSkillsCandidate

func DefaultPluginSkillsCandidate() PluginSkillsCandidate

func (PluginSkillsCandidate) MarshalJSON

func (value PluginSkillsCandidate) MarshalJSON() ([]byte, error)

func (*PluginSkillsCandidate) UnmarshalJSON

func (value *PluginSkillsCandidate) UnmarshalJSON(data []byte) error

type PluginSkillsDiscovery

type PluginSkillsDiscovery struct {
	Source PluginSkillsResolved    `json:"source"`
	Skills []PluginSkillsCandidate `json:"skills"`
}

func DefaultPluginSkillsDiscovery

func DefaultPluginSkillsDiscovery() PluginSkillsDiscovery

func (PluginSkillsDiscovery) MarshalJSON

func (value PluginSkillsDiscovery) MarshalJSON() ([]byte, error)

func (*PluginSkillsDiscovery) UnmarshalJSON

func (value *PluginSkillsDiscovery) UnmarshalJSON(data []byte) error

type PluginSkillsDocument

type PluginSkillsDocument struct {
	Skill   PluginSkill `json:"skill"`
	Content string      `json:"content"`
}

func DefaultPluginSkillsDocument

func DefaultPluginSkillsDocument() PluginSkillsDocument

func (PluginSkillsDocument) MarshalJSON

func (value PluginSkillsDocument) MarshalJSON() ([]byte, error)

func (*PluginSkillsDocument) UnmarshalJSON

func (value *PluginSkillsDocument) UnmarshalJSON(data []byte) error

type PluginSkillsDocumentSource

type PluginSkillsDocumentSource struct {
	Kind string
	Data any
}

func (PluginSkillsDocumentSource) MarshalJSON

func (value PluginSkillsDocumentSource) MarshalJSON() ([]byte, error)

func (*PluginSkillsDocumentSource) UnmarshalJSON

func (value *PluginSkillsDocumentSource) UnmarshalJSON(data []byte) error

type PluginSkillsDocumentSourceBundledPayload

type PluginSkillsDocumentSourceBundledPayload struct {
	Package string `json:"package"`
	Skill   string `json:"skill"`
}

func DefaultPluginSkillsDocumentSourceBundledPayload

func DefaultPluginSkillsDocumentSourceBundledPayload() PluginSkillsDocumentSourceBundledPayload

func (PluginSkillsDocumentSourceBundledPayload) MarshalJSON

func (value PluginSkillsDocumentSourceBundledPayload) MarshalJSON() ([]byte, error)

func (*PluginSkillsDocumentSourceBundledPayload) UnmarshalJSON

func (value *PluginSkillsDocumentSourceBundledPayload) UnmarshalJSON(data []byte) error

type PluginSkillsDocumentSourceGitPayload

type PluginSkillsDocumentSourceGitPayload struct {
	Source PluginSkillsResolved `json:"source"`
	Path   string               `json:"path"`
}

func DefaultPluginSkillsDocumentSourceGitPayload

func DefaultPluginSkillsDocumentSourceGitPayload() PluginSkillsDocumentSourceGitPayload

func (PluginSkillsDocumentSourceGitPayload) MarshalJSON

func (value PluginSkillsDocumentSourceGitPayload) MarshalJSON() ([]byte, error)

func (*PluginSkillsDocumentSourceGitPayload) UnmarshalJSON

func (value *PluginSkillsDocumentSourceGitPayload) UnmarshalJSON(data []byte) error

type PluginSkillsDocumentSourceInstalledPayload

type PluginSkillsDocumentSourceInstalledPayload struct {
	Package PluginReference `json:"package"`
	Skill   string          `json:"skill"`
}

func DefaultPluginSkillsDocumentSourceInstalledPayload

func DefaultPluginSkillsDocumentSourceInstalledPayload() PluginSkillsDocumentSourceInstalledPayload

func (PluginSkillsDocumentSourceInstalledPayload) MarshalJSON

func (value PluginSkillsDocumentSourceInstalledPayload) MarshalJSON() ([]byte, error)

func (*PluginSkillsDocumentSourceInstalledPayload) UnmarshalJSON

func (value *PluginSkillsDocumentSourceInstalledPayload) UnmarshalJSON(data []byte) error

type PluginSkillsGitProvenance

type PluginSkillsGitProvenance struct {
	Source PluginSkillsResolved `json:"source"`
	Path   string               `json:"path"`
}

func DefaultPluginSkillsGitProvenance

func DefaultPluginSkillsGitProvenance() PluginSkillsGitProvenance

func (PluginSkillsGitProvenance) MarshalJSON

func (value PluginSkillsGitProvenance) MarshalJSON() ([]byte, error)

func (*PluginSkillsGitProvenance) UnmarshalJSON

func (value *PluginSkillsGitProvenance) UnmarshalJSON(data []byte) error

type PluginSkillsImportDiscovery

type PluginSkillsImportDiscovery struct {
	Stream StreamID                `json:"stream"`
	Digest string                  `json:"digest"`
	Kind   PluginUploadSource      `json:"kind"`
	Skills []PluginSkillsCandidate `json:"skills"`
}

func DefaultPluginSkillsImportDiscovery

func DefaultPluginSkillsImportDiscovery() PluginSkillsImportDiscovery

func (PluginSkillsImportDiscovery) MarshalJSON

func (value PluginSkillsImportDiscovery) MarshalJSON() ([]byte, error)

func (*PluginSkillsImportDiscovery) UnmarshalJSON

func (value *PluginSkillsImportDiscovery) UnmarshalJSON(data []byte) error

type PluginSkillsImported

type PluginSkillsImported struct {
	Digest string             `json:"digest"`
	Path   string             `json:"path"`
	Kind   PluginUploadSource `json:"kind"`
}

func DefaultPluginSkillsImported

func DefaultPluginSkillsImported() PluginSkillsImported

func (PluginSkillsImported) MarshalJSON

func (value PluginSkillsImported) MarshalJSON() ([]byte, error)

func (*PluginSkillsImported) UnmarshalJSON

func (value *PluginSkillsImported) UnmarshalJSON(data []byte) error

type PluginSkillsProvenance

type PluginSkillsProvenance struct {
	Kind string
	Data any
}

func (PluginSkillsProvenance) MarshalJSON

func (value PluginSkillsProvenance) MarshalJSON() ([]byte, error)

func (*PluginSkillsProvenance) UnmarshalJSON

func (value *PluginSkillsProvenance) UnmarshalJSON(data []byte) error

type PluginSkillsProvenanceImportedPayload

type PluginSkillsProvenanceImportedPayload struct {
	Imported PluginSkillsImported `json:"imported"`
}

func DefaultPluginSkillsProvenanceImportedPayload

func DefaultPluginSkillsProvenanceImportedPayload() PluginSkillsProvenanceImportedPayload

func (PluginSkillsProvenanceImportedPayload) MarshalJSON

func (value PluginSkillsProvenanceImportedPayload) MarshalJSON() ([]byte, error)

func (*PluginSkillsProvenanceImportedPayload) UnmarshalJSON

func (value *PluginSkillsProvenanceImportedPayload) UnmarshalJSON(data []byte) error

type PluginSkillsProvenanceRegistryPayload

type PluginSkillsProvenanceRegistryPayload struct {
	Registry PluginSkillsRegistryResolved `json:"registry"`
}

func DefaultPluginSkillsProvenanceRegistryPayload

func DefaultPluginSkillsProvenanceRegistryPayload() PluginSkillsProvenanceRegistryPayload

func (PluginSkillsProvenanceRegistryPayload) MarshalJSON

func (value PluginSkillsProvenanceRegistryPayload) MarshalJSON() ([]byte, error)

func (*PluginSkillsProvenanceRegistryPayload) UnmarshalJSON

func (value *PluginSkillsProvenanceRegistryPayload) UnmarshalJSON(data []byte) error

type PluginSkillsRegistryDiscovery

type PluginSkillsRegistryDiscovery struct {
	Source PluginSkillsRegistryResolved `json:"source"`
	Skills []PluginSkillsCandidate      `json:"skills"`
}

func DefaultPluginSkillsRegistryDiscovery

func DefaultPluginSkillsRegistryDiscovery() PluginSkillsRegistryDiscovery

func (PluginSkillsRegistryDiscovery) MarshalJSON

func (value PluginSkillsRegistryDiscovery) MarshalJSON() ([]byte, error)

func (*PluginSkillsRegistryDiscovery) UnmarshalJSON

func (value *PluginSkillsRegistryDiscovery) UnmarshalJSON(data []byte) error

type PluginSkillsRegistryResolved

type PluginSkillsRegistryResolved struct {
	Namespace     string `json:"namespace"`
	Slug          string `json:"slug"`
	Version       string `json:"version"`
	VersionID     string `json:"version_id"`
	ContentHash   string `json:"content_hash"`
	PackageMd5    string `json:"package_md5"`
	ArchiveSha256 string `json:"archive_sha256"`
}

func DefaultPluginSkillsRegistryResolved

func DefaultPluginSkillsRegistryResolved() PluginSkillsRegistryResolved

func (PluginSkillsRegistryResolved) MarshalJSON

func (value PluginSkillsRegistryResolved) MarshalJSON() ([]byte, error)

func (*PluginSkillsRegistryResolved) UnmarshalJSON

func (value *PluginSkillsRegistryResolved) UnmarshalJSON(data []byte) error

type PluginSkillsRegistrySource

type PluginSkillsRegistrySource struct {
	Namespace *string `json:"namespace"`
	Slug      string  `json:"slug"`
	Version   *string `json:"version"`
}

func DefaultPluginSkillsRegistrySource

func DefaultPluginSkillsRegistrySource() PluginSkillsRegistrySource

func (PluginSkillsRegistrySource) MarshalJSON

func (value PluginSkillsRegistrySource) MarshalJSON() ([]byte, error)

func (*PluginSkillsRegistrySource) UnmarshalJSON

func (value *PluginSkillsRegistrySource) UnmarshalJSON(data []byte) error

type PluginSkillsResolved

type PluginSkillsResolved struct {
	Repository string `json:"repository"`
	GitRef     string `json:"git_ref"`
	Commit     string `json:"commit"`
}

func DefaultPluginSkillsResolved

func DefaultPluginSkillsResolved() PluginSkillsResolved

func (PluginSkillsResolved) MarshalJSON

func (value PluginSkillsResolved) MarshalJSON() ([]byte, error)

func (*PluginSkillsResolved) UnmarshalJSON

func (value *PluginSkillsResolved) UnmarshalJSON(data []byte) error

type PluginSkillsSource

type PluginSkillsSource struct {
	Repository string  `json:"repository"`
	GitRef     *string `json:"git_ref"`
	Path       *string `json:"path"`
}

func DefaultPluginSkillsSource

func DefaultPluginSkillsSource() PluginSkillsSource

func (PluginSkillsSource) MarshalJSON

func (value PluginSkillsSource) MarshalJSON() ([]byte, error)

func (*PluginSkillsSource) UnmarshalJSON

func (value *PluginSkillsSource) UnmarshalJSON(data []byte) error

type PluginStorageCollection

type PluginStorageCollection struct {
	Scope  PluginStorageScope             `json:"scope"`
	Key    *string                        `json:"key,omitempty"`
	Prefix *string                        `json:"prefix,omitempty"`
	Schema json.RawMessage                `json:"schema"`
	Index  *PluginStorageDeclarationIndex `json:"index,omitempty"`
}

func DefaultPluginStorageCollection

func DefaultPluginStorageCollection() PluginStorageCollection

func (PluginStorageCollection) MarshalJSON

func (value PluginStorageCollection) MarshalJSON() ([]byte, error)

func (*PluginStorageCollection) UnmarshalJSON

func (value *PluginStorageCollection) UnmarshalJSON(data []byte) error

type PluginStorageConversationEntry

type PluginStorageConversationEntry struct {
	Key      string          `json:"key"`
	Revision uint64          `json:"revision"`
	Value    json.RawMessage `json:"value"`
	Present  bool            `json:"present"`
	Restored bool            `json:"restored"`
}

func DefaultPluginStorageConversationEntry

func DefaultPluginStorageConversationEntry() PluginStorageConversationEntry

func (PluginStorageConversationEntry) MarshalJSON

func (value PluginStorageConversationEntry) MarshalJSON() ([]byte, error)

func (*PluginStorageConversationEntry) UnmarshalJSON

func (value *PluginStorageConversationEntry) UnmarshalJSON(data []byte) error

type PluginStorageDeclaration

type PluginStorageDeclaration struct {
	Collections []PluginStorageCollection `json:"collections"`
}

func DefaultPluginStorageDeclaration

func DefaultPluginStorageDeclaration() PluginStorageDeclaration

func (PluginStorageDeclaration) MarshalJSON

func (value PluginStorageDeclaration) MarshalJSON() ([]byte, error)

func (*PluginStorageDeclaration) UnmarshalJSON

func (value *PluginStorageDeclaration) UnmarshalJSON(data []byte) error

type PluginStorageDeclarationIndex

type PluginStorageDeclarationIndex struct {
	Semantic bool `json:"semantic"`
}

func DefaultPluginStorageDeclarationIndex

func DefaultPluginStorageDeclarationIndex() PluginStorageDeclarationIndex

func (PluginStorageDeclarationIndex) MarshalJSON

func (value PluginStorageDeclarationIndex) MarshalJSON() ([]byte, error)

func (*PluginStorageDeclarationIndex) UnmarshalJSON

func (value *PluginStorageDeclarationIndex) UnmarshalJSON(data []byte) error

type PluginStorageEntry

type PluginStorageEntry struct {
	Key      string          `json:"key"`
	Revision uint64          `json:"revision"`
	Value    json.RawMessage `json:"value"`
	Present  bool            `json:"present"`
}

func DefaultPluginStorageEntry

func DefaultPluginStorageEntry() PluginStorageEntry

func (PluginStorageEntry) MarshalJSON

func (value PluginStorageEntry) MarshalJSON() ([]byte, error)

func (*PluginStorageEntry) UnmarshalJSON

func (value *PluginStorageEntry) UnmarshalJSON(data []byte) error

type PluginStorageIndex

type PluginStorageIndex struct {
	Fields [2]string            `json:"fields"`
	Tags   []string             `json:"tags"`
	Order  int64                `json:"order"`
	Source *PluginStorageSource `json:"source,omitempty"`
}

func DefaultPluginStorageIndex

func DefaultPluginStorageIndex() PluginStorageIndex

func (PluginStorageIndex) MarshalJSON

func (value PluginStorageIndex) MarshalJSON() ([]byte, error)

func (*PluginStorageIndex) UnmarshalJSON

func (value *PluginStorageIndex) UnmarshalJSON(data []byte) error

type PluginStoragePage

type PluginStoragePage struct {
	Keys  []string `json:"keys"`
	After *string  `json:"after"`
}

func DefaultPluginStoragePage

func DefaultPluginStoragePage() PluginStoragePage

func (PluginStoragePage) MarshalJSON

func (value PluginStoragePage) MarshalJSON() ([]byte, error)

func (*PluginStoragePage) UnmarshalJSON

func (value *PluginStoragePage) UnmarshalJSON(data []byte) error

type PluginStorageScope

type PluginStorageScope string
const (
	PluginStorageScopeNode         PluginStorageScope = "node"
	PluginStorageScopeProject      PluginStorageScope = "project"
	PluginStorageScopeConversation PluginStorageScope = "conversation"
)

func (PluginStorageScope) MarshalJSON

func (value PluginStorageScope) MarshalJSON() ([]byte, error)

func (PluginStorageScope) MarshalText

func (value PluginStorageScope) MarshalText() ([]byte, error)

func (*PluginStorageScope) UnmarshalJSON

func (value *PluginStorageScope) UnmarshalJSON(data []byte) error

func (*PluginStorageScope) UnmarshalText

func (value *PluginStorageScope) UnmarshalText(data []byte) error

type PluginStorageSearch

type PluginStorageSearch struct {
	Scope   PluginStorageScope `json:"scope,omitempty"`
	Terms   []string           `json:"terms"`
	Query   *string            `json:"query,omitempty"`
	Mode    KnowledgeMode      `json:"mode"`
	Weights [2]uint16          `json:"weights"`
	All     []string           `json:"all"`
	Any     []string           `json:"any"`
	Offset  uint16             `json:"offset"`
	Limit   uint16             `json:"limit"`
}

func DefaultPluginStorageSearch

func DefaultPluginStorageSearch() PluginStorageSearch

func (PluginStorageSearch) MarshalJSON

func (value PluginStorageSearch) MarshalJSON() ([]byte, error)

func (*PluginStorageSearch) UnmarshalJSON

func (value *PluginStorageSearch) UnmarshalJSON(data []byte) error

type PluginStorageSearchPage

type PluginStorageSearchPage struct {
	Entries  []PluginStorageEntry `json:"entries"`
	Next     *uint16              `json:"next"`
	NowMs    uint64               `json:"now_ms"`
	Mode     KnowledgeMode        `json:"mode"`
	Indexing bool                 `json:"indexing"`
}

func DefaultPluginStorageSearchPage

func DefaultPluginStorageSearchPage() PluginStorageSearchPage

func (PluginStorageSearchPage) MarshalJSON

func (value PluginStorageSearchPage) MarshalJSON() ([]byte, error)

func (*PluginStorageSearchPage) UnmarshalJSON

func (value *PluginStorageSearchPage) UnmarshalJSON(data []byte) error

type PluginStorageSource

type PluginStorageSource struct {
	Key     string `json:"key"`
	Pointer string `json:"pointer"`
}

func DefaultPluginStorageSource

func DefaultPluginStorageSource() PluginStorageSource

func (PluginStorageSource) MarshalJSON

func (value PluginStorageSource) MarshalJSON() ([]byte, error)

func (*PluginStorageSource) UnmarshalJSON

func (value *PluginStorageSource) UnmarshalJSON(data []byte) error

type PluginSummary

type PluginSummary struct {
	Pinned           bool                 `json:"pinned,omitempty"`
	Source           *ConfigurationOrigin `json:"source,omitempty"`
	Compatibility    PluginCompatibility  `json:"compatibility"`
	Name             string               `json:"name"`
	Revision         uint64               `json:"revision"`
	Digest           string               `json:"digest"`
	SettingsRevision uint64               `json:"settings_revision"`
	Enabled          bool                 `json:"enabled"`
	Version          *string              `json:"version"`
	Description      *string              `json:"description"`
}

func DefaultPluginSummary

func DefaultPluginSummary() PluginSummary

func (*PluginSummary) DecodeJSON

func (value *PluginSummary) DecodeJSON(decoder *Decoder) error

func (PluginSummary) MarshalJSON

func (value PluginSummary) MarshalJSON() ([]byte, error)

func (*PluginSummary) UnmarshalJSON

func (value *PluginSummary) UnmarshalJSON(data []byte) error

type PluginText

type PluginText struct {
	Text   string `json:"text"`
	Model  string `json:"model"`
	Tokens uint64 `json:"tokens"`
}

func DefaultPluginText

func DefaultPluginText() PluginText

func (PluginText) MarshalJSON

func (value PluginText) MarshalJSON() ([]byte, error)

func (*PluginText) UnmarshalJSON

func (value *PluginText) UnmarshalJSON(data []byte) error

type PluginTint

type PluginTint string
const (
	PluginTintBlue   PluginTint = "blue"
	PluginTintViolet PluginTint = "violet"
	PluginTintTeal   PluginTint = "teal"
	PluginTintAmber  PluginTint = "amber"
	PluginTintGray   PluginTint = "gray"
)

func (PluginTint) MarshalJSON

func (value PluginTint) MarshalJSON() ([]byte, error)

func (PluginTint) MarshalText

func (value PluginTint) MarshalText() ([]byte, error)

func (*PluginTint) UnmarshalJSON

func (value *PluginTint) UnmarshalJSON(data []byte) error

func (*PluginTint) UnmarshalText

func (value *PluginTint) UnmarshalText(data []byte) error

type PluginTransactionOperation

type PluginTransactionOperation struct {
	Kind string
	Data any
}

func (PluginTransactionOperation) MarshalJSON

func (value PluginTransactionOperation) MarshalJSON() ([]byte, error)

func (*PluginTransactionOperation) UnmarshalJSON

func (value *PluginTransactionOperation) UnmarshalJSON(data []byte) error

type PluginTransactionOperationContinuePayload

type PluginTransactionOperationContinuePayload struct {
	Session          SessionID          `json:"session"`
	After            *TurnID            `json:"after"`
	Message          ConversationInput  `json:"message"`
	Key              string             `json:"key"`
	ExpectedRevision uint64             `json:"expected_revision"`
	Scope            PluginStorageScope `json:"scope"`
	Marker           *string            `json:"marker,omitempty"`
	Limit            *uint32            `json:"limit,omitempty"`
	User             bool               `json:"user,omitempty"`
}

func DefaultPluginTransactionOperationContinuePayload

func DefaultPluginTransactionOperationContinuePayload() PluginTransactionOperationContinuePayload

func (PluginTransactionOperationContinuePayload) MarshalJSON

func (value PluginTransactionOperationContinuePayload) MarshalJSON() ([]byte, error)

func (*PluginTransactionOperationContinuePayload) UnmarshalJSON

func (value *PluginTransactionOperationContinuePayload) UnmarshalJSON(data []byte) error

type PluginTransactionOperationConversationRemovePayload

type PluginTransactionOperationConversationRemovePayload struct {
	Key              string `json:"key"`
	ExpectedRevision uint64 `json:"expected_revision"`
}

func DefaultPluginTransactionOperationConversationRemovePayload

func DefaultPluginTransactionOperationConversationRemovePayload() PluginTransactionOperationConversationRemovePayload

func (PluginTransactionOperationConversationRemovePayload) MarshalJSON

func (*PluginTransactionOperationConversationRemovePayload) UnmarshalJSON

func (value *PluginTransactionOperationConversationRemovePayload) UnmarshalJSON(data []byte) error

type PluginTransactionOperationConversationWritePayload

type PluginTransactionOperationConversationWritePayload struct {
	Key              string          `json:"key"`
	Value            json.RawMessage `json:"value"`
	ExpectedRevision uint64          `json:"expected_revision"`
}

func DefaultPluginTransactionOperationConversationWritePayload

func DefaultPluginTransactionOperationConversationWritePayload() PluginTransactionOperationConversationWritePayload

func (PluginTransactionOperationConversationWritePayload) MarshalJSON

func (*PluginTransactionOperationConversationWritePayload) UnmarshalJSON

func (value *PluginTransactionOperationConversationWritePayload) UnmarshalJSON(data []byte) error

type PluginTransactionOperationIndexPayload

type PluginTransactionOperationIndexPayload struct {
	Key              string             `json:"key"`
	Value            json.RawMessage    `json:"value"`
	Index            PluginStorageIndex `json:"index"`
	ExpectedRevision uint64             `json:"expected_revision"`
	Scope            PluginStorageScope `json:"scope,omitempty"`
}

func DefaultPluginTransactionOperationIndexPayload

func DefaultPluginTransactionOperationIndexPayload() PluginTransactionOperationIndexPayload

func (PluginTransactionOperationIndexPayload) MarshalJSON

func (value PluginTransactionOperationIndexPayload) MarshalJSON() ([]byte, error)

func (*PluginTransactionOperationIndexPayload) UnmarshalJSON

func (value *PluginTransactionOperationIndexPayload) UnmarshalJSON(data []byte) error

type PluginTransactionOperationQueuePausePayload

type PluginTransactionOperationQueuePausePayload struct {
	Session          SessionID `json:"session"`
	ExpectedRevision uint64    `json:"expected_revision"`
	Paused           bool      `json:"paused"`
}

func DefaultPluginTransactionOperationQueuePausePayload

func DefaultPluginTransactionOperationQueuePausePayload() PluginTransactionOperationQueuePausePayload

func (PluginTransactionOperationQueuePausePayload) MarshalJSON

func (value PluginTransactionOperationQueuePausePayload) MarshalJSON() ([]byte, error)

func (*PluginTransactionOperationQueuePausePayload) UnmarshalJSON

func (value *PluginTransactionOperationQueuePausePayload) UnmarshalJSON(data []byte) error

type PluginTransactionOperationRemovePayload

type PluginTransactionOperationRemovePayload struct {
	Key              string             `json:"key"`
	ExpectedRevision uint64             `json:"expected_revision"`
	Scope            PluginStorageScope `json:"scope,omitempty"`
}

func DefaultPluginTransactionOperationRemovePayload

func DefaultPluginTransactionOperationRemovePayload() PluginTransactionOperationRemovePayload

func (PluginTransactionOperationRemovePayload) MarshalJSON

func (value PluginTransactionOperationRemovePayload) MarshalJSON() ([]byte, error)

func (*PluginTransactionOperationRemovePayload) UnmarshalJSON

func (value *PluginTransactionOperationRemovePayload) UnmarshalJSON(data []byte) error

type PluginTransactionOperationStopPayload

type PluginTransactionOperationStopPayload struct {
	Turn TurnID `json:"turn"`
}

func DefaultPluginTransactionOperationStopPayload

func DefaultPluginTransactionOperationStopPayload() PluginTransactionOperationStopPayload

func (PluginTransactionOperationStopPayload) MarshalJSON

func (value PluginTransactionOperationStopPayload) MarshalJSON() ([]byte, error)

func (*PluginTransactionOperationStopPayload) UnmarshalJSON

func (value *PluginTransactionOperationStopPayload) UnmarshalJSON(data []byte) error

type PluginTransactionOperationSubmitPayload

type PluginTransactionOperationSubmitPayload struct {
	Session          SessionID         `json:"session"`
	ExpectedRevision uint64            `json:"expected_revision"`
	Message          ConversationInput `json:"message"`
}

func DefaultPluginTransactionOperationSubmitPayload

func DefaultPluginTransactionOperationSubmitPayload() PluginTransactionOperationSubmitPayload

func (PluginTransactionOperationSubmitPayload) MarshalJSON

func (value PluginTransactionOperationSubmitPayload) MarshalJSON() ([]byte, error)

func (*PluginTransactionOperationSubmitPayload) UnmarshalJSON

func (value *PluginTransactionOperationSubmitPayload) UnmarshalJSON(data []byte) error

type PluginTransactionOperationWritePayload

type PluginTransactionOperationWritePayload struct {
	Key              string             `json:"key"`
	Value            json.RawMessage    `json:"value"`
	ExpectedRevision uint64             `json:"expected_revision"`
	Scope            PluginStorageScope `json:"scope,omitempty"`
}

func DefaultPluginTransactionOperationWritePayload

func DefaultPluginTransactionOperationWritePayload() PluginTransactionOperationWritePayload

func (PluginTransactionOperationWritePayload) MarshalJSON

func (value PluginTransactionOperationWritePayload) MarshalJSON() ([]byte, error)

func (*PluginTransactionOperationWritePayload) UnmarshalJSON

func (value *PluginTransactionOperationWritePayload) UnmarshalJSON(data []byte) error

type PluginUiAlign

type PluginUiAlign string
const (
	PluginUiAlignStart PluginUiAlign = "start"
	PluginUiAlignEnd   PluginUiAlign = "end"
)

func (PluginUiAlign) MarshalJSON

func (value PluginUiAlign) MarshalJSON() ([]byte, error)

func (PluginUiAlign) MarshalText

func (value PluginUiAlign) MarshalText() ([]byte, error)

func (*PluginUiAlign) UnmarshalJSON

func (value *PluginUiAlign) UnmarshalJSON(data []byte) error

func (*PluginUiAlign) UnmarshalText

func (value *PluginUiAlign) UnmarshalText(data []byte) error

type PluginUiChoice

type PluginUiChoice struct {
	ID          string                   `json:"id"`
	Label       PluginDesktopNavigation  `json:"label"`
	Enabled     bool                     `json:"enabled"`
	Description *PluginDesktopNavigation `json:"description"`
	Icon        *string                  `json:"icon"`
	Group       *PluginDesktopNavigation `json:"group"`
	Children    []PluginUiChoice         `json:"children,omitempty"`
}

func DefaultPluginUiChoice

func DefaultPluginUiChoice() PluginUiChoice

func (PluginUiChoice) MarshalJSON

func (value PluginUiChoice) MarshalJSON() ([]byte, error)

func (*PluginUiChoice) UnmarshalJSON

func (value *PluginUiChoice) UnmarshalJSON(data []byte) error

type PluginUiCommand

type PluginUiCommand struct {
	Name string              `json:"name"`
	Kind PluginUiCommandKind `json:"kind"`
}

func DefaultPluginUiCommand

func DefaultPluginUiCommand() PluginUiCommand

func (PluginUiCommand) MarshalJSON

func (value PluginUiCommand) MarshalJSON() ([]byte, error)

func (*PluginUiCommand) UnmarshalJSON

func (value *PluginUiCommand) UnmarshalJSON(data []byte) error

type PluginUiCommandKind

type PluginUiCommandKind string
const (
	PluginUiCommandKindInvoke  PluginUiCommandKind = "invoke"
	PluginUiCommandKindMessage PluginUiCommandKind = "message"
)

func (PluginUiCommandKind) MarshalJSON

func (value PluginUiCommandKind) MarshalJSON() ([]byte, error)

func (PluginUiCommandKind) MarshalText

func (value PluginUiCommandKind) MarshalText() ([]byte, error)

func (*PluginUiCommandKind) UnmarshalJSON

func (value *PluginUiCommandKind) UnmarshalJSON(data []byte) error

func (*PluginUiCommandKind) UnmarshalText

func (value *PluginUiCommandKind) UnmarshalText(data []byte) error

type PluginUiContribution

type PluginUiContribution struct {
	Intent   *string                 `json:"intent"`
	ID       string                  `json:"id"`
	Slot     PluginUiSlot            `json:"slot"`
	Kind     PluginUiKind            `json:"kind"`
	Label    PluginDesktopNavigation `json:"label"`
	Icon     *string                 `json:"icon"`
	Handler  *string                 `json:"handler"`
	Order    int16                   `json:"order"`
	Overflow PluginUiOverflow        `json:"overflow"`
	Align    PluginUiAlign           `json:"align"`
	Choices  []PluginUiChoice        `json:"choices"`
	Command  *PluginUiCommand        `json:"command,omitempty"`
	Width    *uint16                 `json:"width,omitempty"`
	Hover    *PluginUiHover          `json:"hover,omitempty"`
}

func DefaultPluginUiContribution

func DefaultPluginUiContribution() PluginUiContribution

func (PluginUiContribution) MarshalJSON

func (value PluginUiContribution) MarshalJSON() ([]byte, error)

func (*PluginUiContribution) UnmarshalJSON

func (value *PluginUiContribution) UnmarshalJSON(data []byte) error

func (PluginUiContribution) Valid

func (declaration PluginUiContribution) Valid() bool

type PluginUiDetail

type PluginUiDetail struct {
	Label    PluginDesktopNavigation `json:"label"`
	Value    string                  `json:"value"`
	Progress *json.Number            `json:"progress,omitempty"`
}

func DefaultPluginUiDetail

func DefaultPluginUiDetail() PluginUiDetail

func (PluginUiDetail) MarshalJSON

func (value PluginUiDetail) MarshalJSON() ([]byte, error)

func (*PluginUiDetail) UnmarshalJSON

func (value *PluginUiDetail) UnmarshalJSON(data []byte) error

type PluginUiEvent

type PluginUiEvent struct {
	Sequence uint64            `json:"sequence"`
	ID       string            `json:"id"`
	Handler  string            `json:"handler"`
	Kind     PluginUiEventKind `json:"kind"`
	Value    json.RawMessage   `json:"value"`
}

func DefaultPluginUiEvent

func DefaultPluginUiEvent() PluginUiEvent

func (PluginUiEvent) MarshalJSON

func (value PluginUiEvent) MarshalJSON() ([]byte, error)

func (*PluginUiEvent) UnmarshalJSON

func (value *PluginUiEvent) UnmarshalJSON(data []byte) error

type PluginUiEventKind

type PluginUiEventKind string
const (
	PluginUiEventKindInvoke PluginUiEventKind = "invoke"
	PluginUiEventKindChange PluginUiEventKind = "change"
	PluginUiEventKindSearch PluginUiEventKind = "search"
)

func (PluginUiEventKind) MarshalJSON

func (value PluginUiEventKind) MarshalJSON() ([]byte, error)

func (PluginUiEventKind) MarshalText

func (value PluginUiEventKind) MarshalText() ([]byte, error)

func (*PluginUiEventKind) UnmarshalJSON

func (value *PluginUiEventKind) UnmarshalJSON(data []byte) error

func (*PluginUiEventKind) UnmarshalText

func (value *PluginUiEventKind) UnmarshalText(data []byte) error

type PluginUiHover

type PluginUiHover struct {
	OpenMs  uint16 `json:"open_ms"`
	CloseMs uint16 `json:"close_ms"`
}

func DefaultPluginUiHover

func DefaultPluginUiHover() PluginUiHover

func (PluginUiHover) MarshalJSON

func (value PluginUiHover) MarshalJSON() ([]byte, error)

func (*PluginUiHover) UnmarshalJSON

func (value *PluginUiHover) UnmarshalJSON(data []byte) error

type PluginUiIndicator

type PluginUiIndicator struct {
	Percent *float64     `json:"percent"`
	Open    bool         `json:"open"`
	Loading bool         `json:"loading"`
	Tone    PluginUiTone `json:"tone"`
	Hint    string       `json:"hint"`
}

func DefaultPluginUiIndicator

func DefaultPluginUiIndicator() PluginUiIndicator

func (PluginUiIndicator) MarshalJSON

func (value PluginUiIndicator) MarshalJSON() ([]byte, error)

func (*PluginUiIndicator) UnmarshalJSON

func (value *PluginUiIndicator) UnmarshalJSON(data []byte) error

type PluginUiIntent

type PluginUiIntent string
const (
	PluginUiIntentGitBranches    PluginUiIntent = "git_branches"
	PluginUiIntentWorktrees      PluginUiIntent = "worktrees"
	PluginUiIntentCreateWorktree PluginUiIntent = "create_worktree"
	PluginUiIntentForkWorktree   PluginUiIntent = "fork_worktree"
)

func (PluginUiIntent) MarshalJSON

func (value PluginUiIntent) MarshalJSON() ([]byte, error)

func (PluginUiIntent) MarshalText

func (value PluginUiIntent) MarshalText() ([]byte, error)

func (*PluginUiIntent) UnmarshalJSON

func (value *PluginUiIntent) UnmarshalJSON(data []byte) error

func (*PluginUiIntent) UnmarshalText

func (value *PluginUiIntent) UnmarshalText(data []byte) error

type PluginUiKind

type PluginUiKind string
const (
	PluginUiKindButton    PluginUiKind = "button"
	PluginUiKindPopover   PluginUiKind = "popover"
	PluginUiKindToggle    PluginUiKind = "toggle"
	PluginUiKindSelect    PluginUiKind = "select"
	PluginUiKindMenu      PluginUiKind = "menu"
	PluginUiKindPicker    PluginUiKind = "picker"
	PluginUiKindMetric    PluginUiKind = "metric"
	PluginUiKindIndicator PluginUiKind = "indicator"
)

func (PluginUiKind) MarshalJSON

func (value PluginUiKind) MarshalJSON() ([]byte, error)

func (PluginUiKind) MarshalText

func (value PluginUiKind) MarshalText() ([]byte, error)

func (*PluginUiKind) UnmarshalJSON

func (value *PluginUiKind) UnmarshalJSON(data []byte) error

func (*PluginUiKind) UnmarshalText

func (value *PluginUiKind) UnmarshalText(data []byte) error

type PluginUiOverflow

type PluginUiOverflow string
const (
	PluginUiOverflowAuto PluginUiOverflow = "auto"
	PluginUiOverflowMenu PluginUiOverflow = "menu"
)

func (PluginUiOverflow) MarshalJSON

func (value PluginUiOverflow) MarshalJSON() ([]byte, error)

func (PluginUiOverflow) MarshalText

func (value PluginUiOverflow) MarshalText() ([]byte, error)

func (*PluginUiOverflow) UnmarshalJSON

func (value *PluginUiOverflow) UnmarshalJSON(data []byte) error

func (*PluginUiOverflow) UnmarshalText

func (value *PluginUiOverflow) UnmarshalText(data []byte) error

type PluginUiProviderScope

type PluginUiProviderScope struct {
	Provider   ProviderID    `json:"provider"`
	Revision   string        `json:"revision"`
	Credential CredentialRef `json:"credential"`
}

func DefaultPluginUiProviderScope

func DefaultPluginUiProviderScope() PluginUiProviderScope

func (PluginUiProviderScope) MarshalJSON

func (value PluginUiProviderScope) MarshalJSON() ([]byte, error)

func (*PluginUiProviderScope) UnmarshalJSON

func (value *PluginUiProviderScope) UnmarshalJSON(data []byte) error

func (PluginUiProviderScope) Valid

func (scope PluginUiProviderScope) Valid() bool

type PluginUiSegment

type PluginUiSegment struct {
	Label PluginDesktopNavigation `json:"label"`
	Tone  PluginUiSegmentTone     `json:"tone"`
}

func DefaultPluginUiSegment

func DefaultPluginUiSegment() PluginUiSegment

func (PluginUiSegment) MarshalJSON

func (value PluginUiSegment) MarshalJSON() ([]byte, error)

func (*PluginUiSegment) UnmarshalJSON

func (value *PluginUiSegment) UnmarshalJSON(data []byte) error

type PluginUiSegmentTone

type PluginUiSegmentTone string
const (
	PluginUiSegmentToneAccent  PluginUiSegmentTone = "accent"
	PluginUiSegmentToneMuted   PluginUiSegmentTone = "muted"
	PluginUiSegmentToneSuccess PluginUiSegmentTone = "success"
	PluginUiSegmentToneWarning PluginUiSegmentTone = "warning"
	PluginUiSegmentToneDanger  PluginUiSegmentTone = "danger"
)

func (PluginUiSegmentTone) MarshalJSON

func (value PluginUiSegmentTone) MarshalJSON() ([]byte, error)

func (PluginUiSegmentTone) MarshalText

func (value PluginUiSegmentTone) MarshalText() ([]byte, error)

func (*PluginUiSegmentTone) UnmarshalJSON

func (value *PluginUiSegmentTone) UnmarshalJSON(data []byte) error

func (*PluginUiSegmentTone) UnmarshalText

func (value *PluginUiSegmentTone) UnmarshalText(data []byte) error

type PluginUiSlot

type PluginUiSlot string
const (
	PluginUiSlotHeader      PluginUiSlot = "header"
	PluginUiSlotComposer    PluginUiSlot = "composer"
	PluginUiSlotModel       PluginUiSlot = "model"
	PluginUiSlotContext     PluginUiSlot = "context"
	PluginUiSlotStatistics  PluginUiSlot = "statistics"
	PluginUiSlotFooter      PluginUiSlot = "footer"
	PluginUiSlotProvider    PluginUiSlot = "provider"
	PluginUiSlotStatus      PluginUiSlot = "status"
	PluginUiSlotProject     PluginUiSlot = "project"
	PluginUiSlotProjectMenu PluginUiSlot = "project_menu"
	PluginUiSlotCommands    PluginUiSlot = "commands"
)

func (PluginUiSlot) MarshalJSON

func (value PluginUiSlot) MarshalJSON() ([]byte, error)

func (PluginUiSlot) MarshalText

func (value PluginUiSlot) MarshalText() ([]byte, error)

func (*PluginUiSlot) UnmarshalJSON

func (value *PluginUiSlot) UnmarshalJSON(data []byte) error

func (*PluginUiSlot) UnmarshalText

func (value *PluginUiSlot) UnmarshalText(data []byte) error

type PluginUiState

type PluginUiState struct {
	ID       string                   `json:"id"`
	Scope    *PluginUiProviderScope   `json:"scope,omitempty"`
	Label    *PluginDesktopNavigation `json:"label"`
	Icon     *string                  `json:"icon"`
	Dropdown bool                     `json:"dropdown"`
	Visible  bool                     `json:"visible"`
	Enabled  bool                     `json:"enabled"`
	Loading  bool                     `json:"loading"`
	Value    json.RawMessage          `json:"value"`
	Choices  *[]PluginUiChoice        `json:"choices"`
	Details  []PluginUiDetail         `json:"details"`
	Segments []PluginUiSegment        `json:"segments"`
	ReplyTo  *uint64                  `json:"reply_to"`
}

func DefaultPluginUiState

func DefaultPluginUiState() PluginUiState

func (PluginUiState) MarshalJSON

func (value PluginUiState) MarshalJSON() ([]byte, error)

func (*PluginUiState) UnmarshalJSON

func (value *PluginUiState) UnmarshalJSON(data []byte) error

func (PluginUiState) Valid

func (state PluginUiState) Valid(declaration PluginUiContribution) bool

type PluginUiStatusEntry

type PluginUiStatusEntry struct {
	Package     PluginReference      `json:"package"`
	Declaration PluginUiContribution `json:"declaration"`
	State       PluginUiState        `json:"state"`
	Invoke      *string              `json:"invoke,omitempty"`
}

func DefaultPluginUiStatusEntry

func DefaultPluginUiStatusEntry() PluginUiStatusEntry

func (PluginUiStatusEntry) MarshalJSON

func (value PluginUiStatusEntry) MarshalJSON() ([]byte, error)

func (*PluginUiStatusEntry) UnmarshalJSON

func (value *PluginUiStatusEntry) UnmarshalJSON(data []byte) error

type PluginUiStatusFailure

type PluginUiStatusFailure struct {
	Package PluginReference `json:"package"`
	Fault   Fault           `json:"fault"`
}

func DefaultPluginUiStatusFailure

func DefaultPluginUiStatusFailure() PluginUiStatusFailure

func (PluginUiStatusFailure) MarshalJSON

func (value PluginUiStatusFailure) MarshalJSON() ([]byte, error)

func (*PluginUiStatusFailure) UnmarshalJSON

func (value *PluginUiStatusFailure) UnmarshalJSON(data []byte) error

type PluginUiStatusScope

type PluginUiStatusScope struct {
	Worktree *WorktreeID `json:"worktree"`
	Session  *SessionID  `json:"session"`
}

func DefaultPluginUiStatusScope

func DefaultPluginUiStatusScope() PluginUiStatusScope

func (PluginUiStatusScope) MarshalJSON

func (value PluginUiStatusScope) MarshalJSON() ([]byte, error)

func (*PluginUiStatusScope) UnmarshalJSON

func (value *PluginUiStatusScope) UnmarshalJSON(data []byte) error

func (PluginUiStatusScope) Valid

func (scope PluginUiStatusScope) Valid() bool

type PluginUiStatusSnapshot

type PluginUiStatusSnapshot struct {
	Node     NodeID                  `json:"node"`
	Scope    PluginUiStatusScope     `json:"scope"`
	Entries  []PluginUiStatusEntry   `json:"entries"`
	Failures []PluginUiStatusFailure `json:"failures"`
}

func DefaultPluginUiStatusSnapshot

func DefaultPluginUiStatusSnapshot() PluginUiStatusSnapshot

func (PluginUiStatusSnapshot) MarshalJSON

func (value PluginUiStatusSnapshot) MarshalJSON() ([]byte, error)

func (*PluginUiStatusSnapshot) UnmarshalJSON

func (value *PluginUiStatusSnapshot) UnmarshalJSON(data []byte) error

type PluginUiTone

type PluginUiTone string
const (
	PluginUiToneMuted   PluginUiTone = "muted"
	PluginUiToneWarning PluginUiTone = "warning"
	PluginUiToneDanger  PluginUiTone = "danger"
)

func (PluginUiTone) MarshalJSON

func (value PluginUiTone) MarshalJSON() ([]byte, error)

func (PluginUiTone) MarshalText

func (value PluginUiTone) MarshalText() ([]byte, error)

func (*PluginUiTone) UnmarshalJSON

func (value *PluginUiTone) UnmarshalJSON(data []byte) error

func (*PluginUiTone) UnmarshalText

func (value *PluginUiTone) UnmarshalText(data []byte) error

type PluginUpdatesBatch

type PluginUpdatesBatch struct {
	Reports  []PluginUpdatesReport  `json:"reports"`
	Failures []PluginUpdatesFailure `json:"failures"`
}

func DefaultPluginUpdatesBatch

func DefaultPluginUpdatesBatch() PluginUpdatesBatch

func (PluginUpdatesBatch) MarshalJSON

func (value PluginUpdatesBatch) MarshalJSON() ([]byte, error)

func (*PluginUpdatesBatch) UnmarshalJSON

func (value *PluginUpdatesBatch) UnmarshalJSON(data []byte) error

type PluginUpdatesBlocked

type PluginUpdatesBlocked struct {
	Version      string                     `json:"version"`
	Required     string                     `json:"required"`
	ReleaseNotes *PluginCatalogReleaseNotes `json:"release_notes"`
}

func DefaultPluginUpdatesBlocked

func DefaultPluginUpdatesBlocked() PluginUpdatesBlocked

func (PluginUpdatesBlocked) MarshalJSON

func (value PluginUpdatesBlocked) MarshalJSON() ([]byte, error)

func (*PluginUpdatesBlocked) UnmarshalJSON

func (value *PluginUpdatesBlocked) UnmarshalJSON(data []byte) error

type PluginUpdatesCandidate

type PluginUpdatesCandidate struct {
	Kind string
	Data any
}

func (PluginUpdatesCandidate) MarshalJSON

func (value PluginUpdatesCandidate) MarshalJSON() ([]byte, error)

func (*PluginUpdatesCandidate) UnmarshalJSON

func (value *PluginUpdatesCandidate) UnmarshalJSON(data []byte) error

type PluginUpdatesFailure

type PluginUpdatesFailure struct {
	Name  string `json:"name"`
	Error Fault  `json:"error"`
}

func DefaultPluginUpdatesFailure

func DefaultPluginUpdatesFailure() PluginUpdatesFailure

func (PluginUpdatesFailure) MarshalJSON

func (value PluginUpdatesFailure) MarshalJSON() ([]byte, error)

func (*PluginUpdatesFailure) UnmarshalJSON

func (value *PluginUpdatesFailure) UnmarshalJSON(data []byte) error

type PluginUpdatesReport

type PluginUpdatesReport struct {
	Blocked   *PluginUpdatesBlocked   `json:"blocked,omitempty"`
	Current   PluginSummary           `json:"current"`
	Available *PluginUpdatesCandidate `json:"available"`
	Manual    bool                    `json:"manual"`
}

func DefaultPluginUpdatesReport

func DefaultPluginUpdatesReport() PluginUpdatesReport

func (PluginUpdatesReport) MarshalJSON

func (value PluginUpdatesReport) MarshalJSON() ([]byte, error)

func (*PluginUpdatesReport) UnmarshalJSON

func (value *PluginUpdatesReport) UnmarshalJSON(data []byte) error

type PluginUpdatesRequest

type PluginUpdatesRequest struct {
	Name             string `json:"name"`
	ExpectedRevision uint64 `json:"expected_revision"`
}

func DefaultPluginUpdatesRequest

func DefaultPluginUpdatesRequest() PluginUpdatesRequest

func (PluginUpdatesRequest) MarshalJSON

func (value PluginUpdatesRequest) MarshalJSON() ([]byte, error)

func (*PluginUpdatesRequest) UnmarshalJSON

func (value *PluginUpdatesRequest) UnmarshalJSON(data []byte) error

type PluginUpload

type PluginUpload struct {
	Stream StreamID         `json:"stream"`
	Spec   PluginUploadSpec `json:"spec"`
}

func DefaultPluginUpload

func DefaultPluginUpload() PluginUpload

func (PluginUpload) MarshalJSON

func (value PluginUpload) MarshalJSON() ([]byte, error)

func (*PluginUpload) UnmarshalJSON

func (value *PluginUpload) UnmarshalJSON(data []byte) error

type PluginUploadSource

type PluginUploadSource string
const (
	PluginUploadSourceDirectory PluginUploadSource = "directory"
	PluginUploadSourceArchive   PluginUploadSource = "archive"
)

func (PluginUploadSource) MarshalJSON

func (value PluginUploadSource) MarshalJSON() ([]byte, error)

func (PluginUploadSource) MarshalText

func (value PluginUploadSource) MarshalText() ([]byte, error)

func (*PluginUploadSource) UnmarshalJSON

func (value *PluginUploadSource) UnmarshalJSON(data []byte) error

func (*PluginUploadSource) UnmarshalText

func (value *PluginUploadSource) UnmarshalText(data []byte) error

type PluginUploadSpec

type PluginUploadSpec struct {
	Size     uint64 `json:"size"`
	Revision string `json:"revision"`
}

func DefaultPluginUploadSpec

func DefaultPluginUploadSpec() PluginUploadSpec

func (PluginUploadSpec) MarshalJSON

func (value PluginUploadSpec) MarshalJSON() ([]byte, error)

func (*PluginUploadSpec) UnmarshalJSON

func (value *PluginUploadSpec) UnmarshalJSON(data []byte) error

type PowerSettings

type PowerSettings struct {
	Revision     uint64 `json:"revision"`
	PreventSleep bool   `json:"prevent_sleep"`
}

func DefaultPowerSettings

func DefaultPowerSettings() PowerSettings

func (PowerSettings) MarshalJSON

func (value PowerSettings) MarshalJSON() ([]byte, error)

func (*PowerSettings) UnmarshalJSON

func (value *PowerSettings) UnmarshalJSON(data []byte) error

type PreviewFile

type PreviewFile struct {
	Path        string     `json:"path"`
	Destination *string    `json:"destination,omitempty"`
	Kind        ChangeKind `json:"kind"`
	Additions   uint64     `json:"additions"`
	Deletions   uint64     `json:"deletions"`
	Diff        string     `json:"diff,omitempty"`
	Truncated   bool       `json:"truncated,omitempty"`
}

func DefaultPreviewFile

func DefaultPreviewFile() PreviewFile

func (PreviewFile) MarshalJSON

func (value PreviewFile) MarshalJSON() ([]byte, error)

func (*PreviewFile) UnmarshalJSON

func (value *PreviewFile) UnmarshalJSON(data []byte) error

type ProcessAccess

type ProcessAccess string
const (
	ProcessAccessWorkspace    ProcessAccess = "workspace"
	ProcessAccessUnrestricted ProcessAccess = "unrestricted"
)

func (ProcessAccess) MarshalJSON

func (value ProcessAccess) MarshalJSON() ([]byte, error)

func (ProcessAccess) MarshalText

func (value ProcessAccess) MarshalText() ([]byte, error)

func (*ProcessAccess) UnmarshalJSON

func (value *ProcessAccess) UnmarshalJSON(data []byte) error

func (*ProcessAccess) UnmarshalText

func (value *ProcessAccess) UnmarshalText(data []byte) error

type ProcessCapture

type ProcessCapture struct {
	Text        string `json:"text"`
	Truncated   bool   `json:"truncated"`
	InvalidUtf8 bool   `json:"invalid_utf8"`
}

func DefaultProcessCapture

func DefaultProcessCapture() ProcessCapture

func (ProcessCapture) MarshalJSON

func (value ProcessCapture) MarshalJSON() ([]byte, error)

func (*ProcessCapture) UnmarshalJSON

func (value *ProcessCapture) UnmarshalJSON(data []byte) error

type ProcessCompletion

type ProcessCompletion struct {
	Outcome   ProcessOutcome `json:"outcome"`
	Stdout    ProcessCapture `json:"stdout"`
	Stderr    ProcessCapture `json:"stderr"`
	ElapsedMs uint64         `json:"elapsed_ms"`
}

func DefaultProcessCompletion

func DefaultProcessCompletion() ProcessCompletion

func (ProcessCompletion) MarshalJSON

func (value ProcessCompletion) MarshalJSON() ([]byte, error)

func (*ProcessCompletion) UnmarshalJSON

func (value *ProcessCompletion) UnmarshalJSON(data []byte) error

type ProcessInfo

type ProcessInfo struct {
	ID        RequestID        `json:"id"`
	Session   SessionID        `json:"session"`
	Turn      TurnID           `json:"turn"`
	Command   string           `json:"command"`
	Access    ProcessAccess    `json:"access"`
	Pty       bool             `json:"pty"`
	Cwd       string           `json:"cwd"`
	StartedMs uint64           `json:"started_ms"`
	Status    ProcessStatus    `json:"status"`
	Services  []ProcessService `json:"services"`
}

func DefaultProcessInfo

func DefaultProcessInfo() ProcessInfo

func (ProcessInfo) MarshalJSON

func (value ProcessInfo) MarshalJSON() ([]byte, error)

func (*ProcessInfo) UnmarshalJSON

func (value *ProcessInfo) UnmarshalJSON(data []byte) error

type ProcessOutcome

type ProcessOutcome struct {
	Kind string
	Data any
}

func (ProcessOutcome) MarshalJSON

func (value ProcessOutcome) MarshalJSON() ([]byte, error)

func (*ProcessOutcome) UnmarshalJSON

func (value *ProcessOutcome) UnmarshalJSON(data []byte) error

type ProcessOutputOutputPage

type ProcessOutputOutputPage struct {
	Info        ProcessInfo               `json:"info"`
	Stream      ProcessOutputOutputStream `json:"stream"`
	Offset      uint64                    `json:"offset"`
	TotalBytes  uint64                    `json:"total_bytes"`
	NextOffset  *uint64                   `json:"next_offset"`
	Text        string                    `json:"text"`
	Truncated   bool                      `json:"truncated"`
	InvalidUtf8 bool                      `json:"invalid_utf8"`
	// Wait is set only when the read waited.
	Wait ProcessWait `json:"wait,omitempty"`
}

func DefaultProcessOutputOutputPage

func DefaultProcessOutputOutputPage() ProcessOutputOutputPage

func (ProcessOutputOutputPage) MarshalJSON

func (value ProcessOutputOutputPage) MarshalJSON() ([]byte, error)

func (*ProcessOutputOutputPage) UnmarshalJSON

func (value *ProcessOutputOutputPage) UnmarshalJSON(data []byte) error

type ProcessOutputOutputStream

type ProcessOutputOutputStream string
const (
	ProcessOutputOutputStreamStdout ProcessOutputOutputStream = "stdout"
	ProcessOutputOutputStreamStderr ProcessOutputOutputStream = "stderr"
)

func (ProcessOutputOutputStream) MarshalJSON

func (value ProcessOutputOutputStream) MarshalJSON() ([]byte, error)

func (ProcessOutputOutputStream) MarshalText

func (value ProcessOutputOutputStream) MarshalText() ([]byte, error)

func (*ProcessOutputOutputStream) UnmarshalJSON

func (value *ProcessOutputOutputStream) UnmarshalJSON(data []byte) error

func (*ProcessOutputOutputStream) UnmarshalText

func (value *ProcessOutputOutputStream) UnmarshalText(data []byte) error

type ProcessService

type ProcessService struct {
	Port uint16 `json:"port"`
	Url  string `json:"url"`
}

func DefaultProcessService

func DefaultProcessService() ProcessService

func (ProcessService) MarshalJSON

func (value ProcessService) MarshalJSON() ([]byte, error)

func (*ProcessService) UnmarshalJSON

func (value *ProcessService) UnmarshalJSON(data []byte) error

type ProcessSnapshot

type ProcessSnapshot struct {
	Info   ProcessInfo    `json:"info"`
	Stdout ProcessCapture `json:"stdout"`
	Stderr ProcessCapture `json:"stderr"`
	// Wait is set only when the read waited.
	Wait ProcessWait `json:"wait,omitempty"`
}

func DefaultProcessSnapshot

func DefaultProcessSnapshot() ProcessSnapshot

func (ProcessSnapshot) MarshalJSON

func (value ProcessSnapshot) MarshalJSON() ([]byte, error)

func (*ProcessSnapshot) UnmarshalJSON

func (value *ProcessSnapshot) UnmarshalJSON(data []byte) error

type ProcessStatus

type ProcessStatus struct {
	Kind string
	Data any
}

func (ProcessStatus) MarshalJSON

func (value ProcessStatus) MarshalJSON() ([]byte, error)

func (*ProcessStatus) UnmarshalJSON

func (value *ProcessStatus) UnmarshalJSON(data []byte) error

type ProcessWait added in v0.2.4

type ProcessWait string

ProcessWait says why a requested output wait ended.

const (
	ProcessWaitMatched  ProcessWait = "matched"
	ProcessWaitOutput   ProcessWait = "output"
	ProcessWaitExited   ProcessWait = "exited"
	ProcessWaitDeadline ProcessWait = "deadline"
)

func (ProcessWait) MarshalJSON added in v0.2.4

func (value ProcessWait) MarshalJSON() ([]byte, error)

func (*ProcessWait) UnmarshalJSON added in v0.2.4

func (value *ProcessWait) UnmarshalJSON(data []byte) error

type Project

type Project struct {
	ID         ProjectID          `json:"id"`
	Name       string             `json:"name"`
	Path       string             `json:"path"`
	Appearance ProjectsAppearance `json:"appearance"`
	Owner      *UserID            `json:"owner,omitempty"`
	Visibility ProjectVisibility  `json:"visibility,omitempty"`
}

func DefaultProject

func DefaultProject() Project

func (*Project) DecodeJSON

func (value *Project) DecodeJSON(decoder *Decoder) error

func (Project) MarshalJSON

func (value Project) MarshalJSON() ([]byte, error)

func (*Project) UnmarshalJSON

func (value *Project) UnmarshalJSON(data []byte) error

type ProjectID

type ProjectID [16]byte

func NewProjectID

func NewProjectID() ProjectID

func ParseProjectID

func ParseProjectID(value string) (ProjectID, error)

func (*ProjectID) DecodeJSON

func (identity *ProjectID) DecodeJSON(decoder *Decoder) error

func (ProjectID) MarshalJSON

func (identity ProjectID) MarshalJSON() ([]byte, error)

func (ProjectID) MarshalText

func (identity ProjectID) MarshalText() ([]byte, error)

func (ProjectID) String

func (identity ProjectID) String() string

func (*ProjectID) UnmarshalJSON

func (identity *ProjectID) UnmarshalJSON(data []byte) error

func (*ProjectID) UnmarshalText

func (identity *ProjectID) UnmarshalText(data []byte) error

type ProjectVisibility

type ProjectVisibility string
const (
	ProjectVisibilityPrivate ProjectVisibility = "private"
	ProjectVisibilityShared  ProjectVisibility = "shared"
)

func (ProjectVisibility) MarshalJSON

func (value ProjectVisibility) MarshalJSON() ([]byte, error)

func (*ProjectVisibility) UnmarshalJSON

func (value *ProjectVisibility) UnmarshalJSON(data []byte) error

type ProjectsAppearance

type ProjectsAppearance struct {
	Icon  string `json:"icon"`
	Color string `json:"color"`
}

func DefaultProjectsAppearance

func DefaultProjectsAppearance() ProjectsAppearance

func (*ProjectsAppearance) DecodeJSON

func (value *ProjectsAppearance) DecodeJSON(decoder *Decoder) error

func (ProjectsAppearance) MarshalJSON

func (value ProjectsAppearance) MarshalJSON() ([]byte, error)

func (*ProjectsAppearance) UnmarshalJSON

func (value *ProjectsAppearance) UnmarshalJSON(data []byte) error

type ProjectsCatalog

type ProjectsCatalog struct {
	Projects  []Project  `json:"projects"`
	Worktrees []Worktree `json:"worktrees"`
}

func DefaultProjectsCatalog

func DefaultProjectsCatalog() ProjectsCatalog

func (ProjectsCatalog) MarshalJSON

func (value ProjectsCatalog) MarshalJSON() ([]byte, error)

func (*ProjectsCatalog) UnmarshalJSON

func (value *ProjectsCatalog) UnmarshalJSON(data []byte) error

type ProjectsDraft

type ProjectsDraft struct {
	Name       string             `json:"name"`
	Path       string             `json:"path"`
	Appearance ProjectsAppearance `json:"appearance"`
	Source     ProjectsSource     `json:"source"`
	Visibility ProjectVisibility  `json:"visibility"`
}

ProjectsDraft creates a project; omitted visibility is shared. Stored Project values retain their legacy private default.

func DefaultProjectsDraft

func DefaultProjectsDraft() ProjectsDraft

func (ProjectsDraft) MarshalJSON

func (value ProjectsDraft) MarshalJSON() ([]byte, error)

func (*ProjectsDraft) UnmarshalJSON

func (value *ProjectsDraft) UnmarshalJSON(data []byte) error

type ProjectsSource

type ProjectsSource struct {
	Kind string
	Data any
}

func (ProjectsSource) MarshalJSON

func (value ProjectsSource) MarshalJSON() ([]byte, error)

func (*ProjectsSource) UnmarshalJSON

func (value *ProjectsSource) UnmarshalJSON(data []byte) error

type ProjectsSourceClonePayload

type ProjectsSourceClonePayload struct {
	Url    string  `json:"url"`
	Branch *string `json:"branch"`
}

func DefaultProjectsSourceClonePayload

func DefaultProjectsSourceClonePayload() ProjectsSourceClonePayload

func (ProjectsSourceClonePayload) MarshalJSON

func (value ProjectsSourceClonePayload) MarshalJSON() ([]byte, error)

func (*ProjectsSourceClonePayload) UnmarshalJSON

func (value *ProjectsSourceClonePayload) UnmarshalJSON(data []byte) error

type ProviderDirectory added in v0.2.7

type ProviderDirectory struct {
	Node      NodeID                      `json:"node"`
	Cursor    uint64                      `json:"cursor"`
	Providers []ConversationProvider      `json:"providers"`
	Quotas    []ConversationQuotaSnapshot `json:"quotas"`
}

ProviderDirectory is the caller's provider projection at one Node event cursor.

func (ProviderDirectory) MarshalJSON added in v0.2.7

func (value ProviderDirectory) MarshalJSON() ([]byte, error)

func (*ProviderDirectory) UnmarshalJSON added in v0.2.7

func (value *ProviderDirectory) UnmarshalJSON(data []byte) error

type ProviderID

type ProviderID [16]byte

func NewProviderID

func NewProviderID() ProviderID

func ParseProviderID

func ParseProviderID(value string) (ProviderID, error)

func (*ProviderID) DecodeJSON

func (identity *ProviderID) DecodeJSON(decoder *Decoder) error

func (ProviderID) MarshalJSON

func (identity ProviderID) MarshalJSON() ([]byte, error)

func (ProviderID) MarshalText

func (identity ProviderID) MarshalText() ([]byte, error)

func (ProviderID) String

func (identity ProviderID) String() string

func (*ProviderID) UnmarshalJSON

func (identity *ProviderID) UnmarshalJSON(data []byte) error

func (*ProviderID) UnmarshalText

func (identity *ProviderID) UnmarshalText(data []byte) error

type PythonInfo

type PythonInfo struct {
	Settings PythonSettings `json:"settings"`
	Version  string         `json:"version"`
}

func DefaultPythonInfo

func DefaultPythonInfo() PythonInfo

func (PythonInfo) MarshalJSON

func (value PythonInfo) MarshalJSON() ([]byte, error)

func (*PythonInfo) UnmarshalJSON

func (value *PythonInfo) UnmarshalJSON(data []byte) error

type PythonPreparation

type PythonPreparation struct {
	Package string      `json:"package"`
	Stage   PythonStage `json:"stage"`
}

func DefaultPythonPreparation

func DefaultPythonPreparation() PythonPreparation

func (PythonPreparation) MarshalJSON

func (value PythonPreparation) MarshalJSON() ([]byte, error)

func (*PythonPreparation) UnmarshalJSON

func (value *PythonPreparation) UnmarshalJSON(data []byte) error

type PythonSettings

type PythonSettings struct {
	Revision uint64  `json:"revision"`
	Index    *string `json:"index"`
}

func DefaultPythonSettings

func DefaultPythonSettings() PythonSettings

func (PythonSettings) MarshalJSON

func (value PythonSettings) MarshalJSON() ([]byte, error)

func (*PythonSettings) UnmarshalJSON

func (value *PythonSettings) UnmarshalJSON(data []byte) error

type PythonStage

type PythonStage string
const (
	PythonStageCreating   PythonStage = "creating"
	PythonStageInstalling PythonStage = "installing"
	PythonStageValidating PythonStage = "validating"
)

func (PythonStage) MarshalJSON

func (value PythonStage) MarshalJSON() ([]byte, error)

func (PythonStage) MarshalText

func (value PythonStage) MarshalText() ([]byte, error)

func (*PythonStage) UnmarshalJSON

func (value *PythonStage) UnmarshalJSON(data []byte) error

func (*PythonStage) UnmarshalText

func (value *PythonStage) UnmarshalText(data []byte) error

type QuestionID

type QuestionID [16]byte

func NewQuestionID

func NewQuestionID() QuestionID

func ParseQuestionID

func ParseQuestionID(value string) (QuestionID, error)

func (*QuestionID) DecodeJSON

func (identity *QuestionID) DecodeJSON(decoder *Decoder) error

func (QuestionID) MarshalJSON

func (identity QuestionID) MarshalJSON() ([]byte, error)

func (QuestionID) MarshalText

func (identity QuestionID) MarshalText() ([]byte, error)

func (QuestionID) String

func (identity QuestionID) String() string

func (*QuestionID) UnmarshalJSON

func (identity *QuestionID) UnmarshalJSON(data []byte) error

func (*QuestionID) UnmarshalText

func (identity *QuestionID) UnmarshalText(data []byte) error

type QueuedTurn

type QueuedTurn struct {
	ID       TurnID              `json:"id"`
	Kind     ConversationRunKind `json:"kind"`
	Session  SessionID           `json:"session"`
	Request  RequestID           `json:"request"`
	Revision uint64              `json:"revision"`
	Config   SessionConfig       `json:"config"`
	Roles    RoleSnapshot        `json:"roles"`
	Plugins  []PluginReference   `json:"plugins"`
}

func DefaultQueuedTurn

func DefaultQueuedTurn() QueuedTurn

func (QueuedTurn) MarshalJSON

func (value QueuedTurn) MarshalJSON() ([]byte, error)

func (*QueuedTurn) UnmarshalJSON

func (value *QueuedTurn) UnmarshalJSON(data []byte) error

type Range

type Range[T any] struct {
	Start T `json:"start"`
	End   T `json:"end"`
}

Range preserves Serde's start/end representation for a half-open range.

func (*Range[T]) UnmarshalJSON

func (value *Range[T]) UnmarshalJSON(data []byte) error

type Receipt

type Receipt struct {
	ID      RequestID `json:"id"`
	Durable bool      `json:"durable"`
}

func DefaultReceipt

func DefaultReceipt() Receipt

func (Receipt) MarshalJSON

func (value Receipt) MarshalJSON() ([]byte, error)

func (*Receipt) UnmarshalJSON

func (value *Receipt) UnmarshalJSON(data []byte) error

type RepositoryKind

type RepositoryKind string
const (
	RepositoryKindDirectory RepositoryKind = "directory"
	RepositoryKindUnborn    RepositoryKind = "unborn"
	RepositoryKindReady     RepositoryKind = "ready"
)

func (RepositoryKind) MarshalJSON

func (value RepositoryKind) MarshalJSON() ([]byte, error)

func (RepositoryKind) MarshalText

func (value RepositoryKind) MarshalText() ([]byte, error)

func (*RepositoryKind) UnmarshalJSON

func (value *RepositoryKind) UnmarshalJSON(data []byte) error

func (*RepositoryKind) UnmarshalText

func (value *RepositoryKind) UnmarshalText(data []byte) error

type Request

type Request struct {
	Version uint16         `json:"version"`
	ID      RequestID      `json:"id"`
	Target  NodeID         `json:"target"`
	Command Command        `json:"command"`
	Plugin  *PluginContext `json:"plugin,omitempty"`
}

func DefaultRequest

func DefaultRequest() Request

func NewRequest

func NewRequest(target NodeID, command Command) Request

NewRequest captures one command identity for dispatch and later reconciliation.

func (*Request) DecodeJSON

func (value *Request) DecodeJSON(decoder *Decoder) error

func (Request) MarshalJSON

func (value Request) MarshalJSON() ([]byte, error)

func (*Request) UnmarshalJSON

func (value *Request) UnmarshalJSON(data []byte) error

type RequestID

type RequestID [16]byte

func ConfigurationPageRequestID

func ConfigurationPageRequestID(root RequestID, index uint64) RequestID

ConfigurationPageRequestID preserves the identity of a page across retries and process restarts without creating a second effect ledger for cache data.

func NewRequestID

func NewRequestID() RequestID

func ParseRequestID

func ParseRequestID(value string) (RequestID, error)

func (RequestID) CreatedAt added in v0.2.3

func (id RequestID) CreatedAt() (time.Time, bool)

CreatedAt reports the capture time encoded in new request identifiers. Opaque identifiers remain valid for dispatch and exact replay.

func (*RequestID) DecodeJSON

func (identity *RequestID) DecodeJSON(decoder *Decoder) error

func (RequestID) MarshalJSON

func (identity RequestID) MarshalJSON() ([]byte, error)

func (RequestID) MarshalText

func (identity RequestID) MarshalText() ([]byte, error)

func (RequestID) String

func (identity RequestID) String() string

func (*RequestID) UnmarshalJSON

func (identity *RequestID) UnmarshalJSON(data []byte) error

func (*RequestID) UnmarshalText

func (identity *RequestID) UnmarshalText(data []byte) error

type RequestOutcome

type RequestOutcome struct {
	Kind string
	Data any
}

func (RequestOutcome) MarshalJSON

func (value RequestOutcome) MarshalJSON() ([]byte, error)

func (*RequestOutcome) UnmarshalJSON

func (value *RequestOutcome) UnmarshalJSON(data []byte) error

type ResourceCall

type ResourceCall struct {
	Local    bool           `json:"local,omitempty"`
	Request  Request        `json:"request"`
	Original *Request       `json:"original,omitempty"`
	Scope    *ResourceScope `json:"scope,omitempty"`
}

ResourceCall carries a resource operation to its owning Node. Request.Target retains the original storage identity for both management and recovery. Link authenticates the peer that sent the call.

func (*ResourceCall) UnmarshalJSON

func (value *ResourceCall) UnmarshalJSON(data []byte) error

func (ResourceCall) Validate

func (call ResourceCall) Validate() error

Validate binds recovery to the exact captured resource request. An inspection cannot turn this limited channel into a general request lookup.

type ResourceCatalog

type ResourceCatalog struct {
	Entry   NodeID           `json:"entry"`
	Sources []ResourceSource `json:"sources"`
}

ResourceCatalog is the initiating controller's unified resource directory. An unavailable source remains represented with its route and fault.

func (ResourceCatalog) MarshalJSON

func (value ResourceCatalog) MarshalJSON() ([]byte, error)

func (*ResourceCatalog) UnmarshalJSON

func (value *ResourceCatalog) UnmarshalJSON(data []byte) error

type ResourceScope

type ResourceScope struct {
	Plugin *PluginInfo    `json:"plugin,omitempty"`
	Origin *PluginContext `json:"origin,omitempty"`
}

ResourceScope is carried only by the trusted runtime's resource-call channel. The controller verifies its source before it supplies the captured package to the resource Node. Ordinary commands cannot nominate this scope.

func (*ResourceScope) UnmarshalJSON

func (value *ResourceScope) UnmarshalJSON(data []byte) error

type ResourceSource

type ResourceSource struct {
	Node      NodeID                `json:"node"`
	Route     RouteKey              `json:"route"`
	Name      string                `json:"name"`
	Platform  string                `json:"platform"`
	Projects  []Project             `json:"projects"`
	Worktrees []Worktree            `json:"worktrees"`
	Knowledge []KnowledgeCollection `json:"knowledge"`
	Fault     *Fault                `json:"fault,omitempty"`
	// Revision is the last complete source snapshot's cursor. Cached status is
	// historical whenever Fault reports that the source is unavailable.
	Revision       uint64  `json:"revision,omitempty"`
	LastSyncedAtMs *uint64 `json:"last_synced_at_ms,omitempty"`
}

ResourceSource retains routing identity separately from the resources' Node. A catalog contains the entry itself and only its directly connected hosts.

func (ResourceSource) MarshalJSON

func (value ResourceSource) MarshalJSON() ([]byte, error)

func (*ResourceSource) UnmarshalJSON

func (value *ResourceSource) UnmarshalJSON(data []byte) error

type ResourceSourceStatus

type ResourceSourceStatus struct {
	Node       NodeID  `json:"node"`
	Fault      *Fault  `json:"fault,omitempty"`
	NextOffset *uint32 `json:"next_offset,omitempty"`
}

ResourceSourceStatus reports one actual storage Node, including sources that could not answer. Availability is never inferred from an empty result set.

type Result

type Result[Success, Failure any] struct {
	Ok  *Success
	Err *Failure
}

func (Result[Success, Failure]) MarshalJSON

func (value Result[Success, Failure]) MarshalJSON() ([]byte, error)

func (*Result[Success, Failure]) UnmarshalJSON

func (value *Result[Success, Failure]) UnmarshalJSON(data []byte) error

type RevokeDevice

type RevokeDevice struct {
	Device      NodeID `json:"device"`
	ConfirmLast bool   `json:"confirm_last"`
	Sponsored   bool   `json:"sponsored"`
	Generation  uint64 `json:"generation"`
}

func (*RevokeDevice) UnmarshalJSON

func (value *RevokeDevice) UnmarshalJSON(data []byte) error

type RoleID

type RoleID [16]byte

func NewRoleID

func NewRoleID() RoleID

func ParseRoleID

func ParseRoleID(value string) (RoleID, error)

func (*RoleID) DecodeJSON

func (identity *RoleID) DecodeJSON(decoder *Decoder) error

func (RoleID) MarshalJSON

func (identity RoleID) MarshalJSON() ([]byte, error)

func (RoleID) MarshalText

func (identity RoleID) MarshalText() ([]byte, error)

func (RoleID) String

func (identity RoleID) String() string

func (*RoleID) UnmarshalJSON

func (identity *RoleID) UnmarshalJSON(data []byte) error

func (*RoleID) UnmarshalText

func (identity *RoleID) UnmarshalText(data []byte) error

type RoleModel

type RoleModel struct {
	Provider ProviderID         `json:"provider"`
	Model    string             `json:"model"`
	Effort   *Effort            `json:"effort"`
	Features *map[string]string `json:"features,omitempty"`
}

func DefaultRoleModel

func DefaultRoleModel() RoleModel

func (*RoleModel) DecodeJSON

func (value *RoleModel) DecodeJSON(decoder *Decoder) error

func (RoleModel) MarshalJSON

func (value RoleModel) MarshalJSON() ([]byte, error)

func (*RoleModel) UnmarshalJSON

func (value *RoleModel) UnmarshalJSON(data []byte) error

type RoleProfile

type RoleProfile struct {
	Source       *ConfigurationOrigin      `json:"source,omitempty"`
	ID           RoleID                    `json:"id"`
	Revision     uint64                    `json:"revision"`
	Key          string                    `json:"key"`
	Name         string                    `json:"name"`
	Appearance   *ProjectsAppearance       `json:"appearance"`
	Description  string                    `json:"description"`
	ReadOnly     bool                      `json:"read_only"`
	Model        *RoleModel                `json:"model"`
	MaxTurns     *uint32                   `json:"max_turns"`
	Skills       []string                  `json:"skills"`
	Tools        *[]PluginConversationTool `json:"tools,omitempty"`
	Instructions string                    `json:"instructions"`
}

func DefaultRoleProfile

func DefaultRoleProfile() RoleProfile

func (*RoleProfile) DecodeJSON

func (value *RoleProfile) DecodeJSON(decoder *Decoder) error

func (RoleProfile) MarshalJSON

func (value RoleProfile) MarshalJSON() ([]byte, error)

func (*RoleProfile) UnmarshalJSON

func (value *RoleProfile) UnmarshalJSON(data []byte) error

type RoleProviderSecret

type RoleProviderSecret struct {
	Provider    ProviderID `json:"provider"`
	Secret      Secret     `json:"secret"`
	ExpiresAtMs *uint64    `json:"expires_at_ms"`
}

func DefaultRoleProviderSecret

func DefaultRoleProviderSecret() RoleProviderSecret

func (RoleProviderSecret) MarshalJSON

func (value RoleProviderSecret) MarshalJSON() ([]byte, error)

func (*RoleProviderSecret) UnmarshalJSON

func (value *RoleProviderSecret) UnmarshalJSON(data []byte) error

type RoleReference

type RoleReference struct {
	ID       RoleID `json:"id"`
	Revision uint64 `json:"revision"`
}

func DefaultRoleReference

func DefaultRoleReference() RoleReference

func (RoleReference) MarshalJSON

func (value RoleReference) MarshalJSON() ([]byte, error)

func (*RoleReference) UnmarshalJSON

func (value *RoleReference) UnmarshalJSON(data []byte) error

type RoleSnapshot

type RoleSnapshot struct {
	Execution    ConversationExecution  `json:"execution"`
	Profiles     []RoleProfile          `json:"profiles"`
	Providers    []ConversationProvider `json:"providers"`
	Team         *TeamReference         `json:"team,omitempty"`
	Instructions string                 `json:"instructions,omitempty"`
	Models       map[RoleID]RoleModel   `json:"models,omitempty"`
}

func DefaultRoleSnapshot

func DefaultRoleSnapshot() RoleSnapshot

func (*RoleSnapshot) DecodeJSON

func (value *RoleSnapshot) DecodeJSON(decoder *Decoder) error

func (RoleSnapshot) MarshalJSON

func (value RoleSnapshot) MarshalJSON() ([]byte, error)

func (*RoleSnapshot) UnmarshalJSON

func (value *RoleSnapshot) UnmarshalJSON(data []byte) error

type RouteKey

type RouteKey struct {
	Entry  NodeID `json:"entry"`
	Target NodeID `json:"target"`
}

RouteKey distinguishes the identity used at an entry Node from the Node holding the resource. Resource records retain Target as their real Node ID.

type RuntimeCredential

type RuntimeCredential struct {
	Controller           NodeID               `json:"controller"`
	Kind                 string               `json:"kind"`
	ID                   string               `json:"id"`
	Generation           string               `json:"generation"`
	Revision             uint64               `json:"revision"`
	State                string               `json:"state"`
	Authentication       Authentication       `json:"authentication,omitempty"`
	Provider             *ProviderID          `json:"provider,omitempty"`
	Package              *PluginReference     `json:"package,omitempty"`
	Flow                 string               `json:"flow,omitempty"`
	Endpoint             string               `json:"endpoint,omitempty"`
	Access               Secret               `json:"access"`
	IssuedAtMs           *uint64              `json:"issued_at_ms,omitempty"`
	ExpiresAtMs          *uint64              `json:"expires_at_ms,omitempty"`
	AccountID            *string              `json:"account_id,omitempty"`
	InstallationID       *string              `json:"installation_id,omitempty"`
	Scopes               []string             `json:"scopes,omitempty"`
	Headers              map[string]Secret    `json:"headers,omitempty"`
	Slots                map[string]Secret    `json:"slots,omitempty"`
	AccountIdentity      string               `json:"account_identity,omitempty"`
	RefusedReplacement   *RuntimeLoginRefusal `json:"refused_replacement,omitempty"`
	AuthenticationTarget string               `json:"authentication_target,omitempty"`
}

RuntimeCredential is the execution-only projection of an authorization. Renewal material belongs to the controller and has no field in this contract.

func (RuntimeCredential) CacheID

func (value RuntimeCredential) CacheID() string

type RuntimeLoginRefusal

type RuntimeLoginRefusal struct {
	ID     CredentialID `json:"id"`
	Reason string       `json:"reason"`
}

RuntimeLoginRefusal lets a waiting turn report a definitive sign-in mismatch without transferring the replacement authorization.

type SSHFailureReason added in v0.2.7

type SSHFailureReason string
const (
	SSHCredentialInvalid          SSHFailureReason = "ssh_credential_invalid"
	SSHKeyFileUnavailable         SSHFailureReason = "ssh_key_file_unavailable"
	SSHAgentUnavailable           SSHFailureReason = "ssh_agent_unavailable"
	SSHDialFailed                 SSHFailureReason = "ssh_dial_failed"
	SSHDialTimeout                SSHFailureReason = "ssh_dial_timeout"
	SSHDialCancelled              SSHFailureReason = "ssh_dial_cancelled"
	SSHHandshakeFailed            SSHFailureReason = "ssh_handshake_failed"
	SSHHandshakeTimeout           SSHFailureReason = "ssh_handshake_timeout"
	SSHHandshakeCancelled         SSHFailureReason = "ssh_handshake_cancelled"
	SSHAuthFailed                 SSHFailureReason = "ssh_auth_failed"
	SSHAuthTimeout                SSHFailureReason = "ssh_auth_timeout"
	SSHAuthCancelled              SSHFailureReason = "ssh_auth_cancelled"
	SSHChannelUnavailable         SSHFailureReason = "ssh_channel_unavailable"
	SSHCommandNotSent             SSHFailureReason = "ssh_command_not_sent"
	SSHCommandRejected            SSHFailureReason = "ssh_command_rejected"
	SSHCommandReceiptLost         SSHFailureReason = "ssh_command_receipt_lost"
	SSHCommandInterrupted         SSHFailureReason = "ssh_command_interrupted"
	SSHCommandExitMissing         SSHFailureReason = "ssh_command_exit_missing"
	SSHCommandResultUnavailable   SSHFailureReason = "ssh_command_result_unavailable"
	SSHCommandNonzeroExit         SSHFailureReason = "ssh_command_nonzero_exit"
	SSHCommandOutputTruncated     SSHFailureReason = "ssh_command_output_truncated"
	SSHInstallRollbackUnconfirmed SSHFailureReason = "ssh_install_rollback_unconfirmed"
	SSHBootstrapTicketUnavailable SSHFailureReason = "ssh_bootstrap_ticket_unavailable"
	SSHPairingUnconfirmed         SSHFailureReason = "ssh_pairing_unconfirmed"
	SSHUpdateUnconfirmed          SSHFailureReason = "ssh_update_unconfirmed"
)

func (SSHFailureReason) MarshalJSON added in v0.2.7

func (reason SSHFailureReason) MarshalJSON() ([]byte, error)

func (SSHFailureReason) Stage added in v0.2.7

func (reason SSHFailureReason) Stage() string

func (*SSHFailureReason) UnmarshalJSON added in v0.2.7

func (reason *SSHFailureReason) UnmarshalJSON(data []byte) error

type SandboxSettings

type SandboxSettings struct {
	Revision uint64 `json:"revision"`
	Enabled  bool   `json:"enabled"`
}

func DefaultSandboxSettings

func DefaultSandboxSettings() SandboxSettings

func (SandboxSettings) MarshalJSON

func (value SandboxSettings) MarshalJSON() ([]byte, error)

func (*SandboxSettings) UnmarshalJSON

func (value *SandboxSettings) UnmarshalJSON(data []byte) error

type ScheduleID

type ScheduleID [16]byte

func NewScheduleID

func NewScheduleID() ScheduleID

func ParseScheduleID

func ParseScheduleID(value string) (ScheduleID, error)

func (*ScheduleID) DecodeJSON

func (identity *ScheduleID) DecodeJSON(decoder *Decoder) error

func (ScheduleID) MarshalJSON

func (identity ScheduleID) MarshalJSON() ([]byte, error)

func (ScheduleID) MarshalText

func (identity ScheduleID) MarshalText() ([]byte, error)

func (ScheduleID) String

func (identity ScheduleID) String() string

func (*ScheduleID) UnmarshalJSON

func (identity *ScheduleID) UnmarshalJSON(data []byte) error

func (*ScheduleID) UnmarshalText

func (identity *ScheduleID) UnmarshalText(data []byte) error

type ScopedKnowledgeCall

type ScopedKnowledgeCall struct {
	Request  Request  `json:"request"`
	Original *Request `json:"original,omitempty"`
}

ScopedKnowledgeCall sends a plugin operation to its execution Node for scope validation. Outcome inspection retains the original storage Node.

func (*ScopedKnowledgeCall) UnmarshalJSON

func (call *ScopedKnowledgeCall) UnmarshalJSON(data []byte) error

func (ScopedKnowledgeCall) Validate

func (call ScopedKnowledgeCall) Validate() error

type SearchCapability

type SearchCapability struct {
	KeyRequired bool        `json:"key_required"`
	Quota       SearchQuota `json:"quota"`
}

func DefaultSearchCapability

func DefaultSearchCapability() SearchCapability

func (SearchCapability) MarshalJSON

func (value SearchCapability) MarshalJSON() ([]byte, error)

func (*SearchCapability) UnmarshalJSON

func (value *SearchCapability) UnmarshalJSON(data []byte) error

type SearchConfig

type SearchConfig struct {
	Enabled         bool               `json:"enabled"`
	Endpoint        *string            `json:"endpoint"`
	KeyConfigured   bool               `json:"key_configured"`
	BasicConfigured bool               `json:"basic_configured"`
	Model           *SearchModelConfig `json:"model,omitempty"`
}

func DefaultSearchConfig

func DefaultSearchConfig() SearchConfig

func (SearchConfig) MarshalJSON

func (value SearchConfig) MarshalJSON() ([]byte, error)

func (*SearchConfig) UnmarshalJSON

func (value *SearchConfig) UnmarshalJSON(data []byte) error

type SearchCount

type SearchCount struct {
	Path  string `json:"path"`
	Count uint64 `json:"count"`
}

func DefaultSearchCount

func DefaultSearchCount() SearchCount

func (SearchCount) MarshalJSON

func (value SearchCount) MarshalJSON() ([]byte, error)

func (*SearchCount) UnmarshalJSON

func (value *SearchCount) UnmarshalJSON(data []byte) error

type SearchCredentials

type SearchCredentials struct {
	Key   PluginSettingsSecretUpdate `json:"key"`
	Basic PluginSettingsSecretUpdate `json:"basic"`
}

func DefaultSearchCredentials

func DefaultSearchCredentials() SearchCredentials

func (SearchCredentials) MarshalJSON

func (value SearchCredentials) MarshalJSON() ([]byte, error)

func (*SearchCredentials) UnmarshalJSON

func (value *SearchCredentials) UnmarshalJSON(data []byte) error

type SearchDiagnostic

type SearchDiagnostic struct {
	Path    string `json:"path"`
	Message string `json:"message"`
}

func DefaultSearchDiagnostic

func DefaultSearchDiagnostic() SearchDiagnostic

func (SearchDiagnostic) MarshalJSON

func (value SearchDiagnostic) MarshalJSON() ([]byte, error)

func (*SearchDiagnostic) UnmarshalJSON

func (value *SearchDiagnostic) UnmarshalJSON(data []byte) error

type SearchDriver

type SearchDriver string
const (
	SearchDriverExa        SearchDriver = "exa"
	SearchDriverTinyfish   SearchDriver = "tinyfish"
	SearchDriverTavily     SearchDriver = "tavily"
	SearchDriverBrave      SearchDriver = "brave"
	SearchDriverSearxng    SearchDriver = "searxng"
	SearchDriverBocha      SearchDriver = "bocha"
	SearchDriverVolcengine SearchDriver = "volcengine"
	SearchDriverDeepseek   SearchDriver = "deepseek"
	SearchDriverModel      SearchDriver = "model"
)

func (SearchDriver) MarshalJSON

func (value SearchDriver) MarshalJSON() ([]byte, error)

func (SearchDriver) MarshalText

func (value SearchDriver) MarshalText() ([]byte, error)

func (*SearchDriver) UnmarshalJSON

func (value *SearchDriver) UnmarshalJSON(data []byte) error

func (*SearchDriver) UnmarshalText

func (value *SearchDriver) UnmarshalText(data []byte) error

type SearchFreshness

type SearchFreshness string
const (
	SearchFreshnessHour  SearchFreshness = "hour"
	SearchFreshnessDay   SearchFreshness = "day"
	SearchFreshnessWeek  SearchFreshness = "week"
	SearchFreshnessMonth SearchFreshness = "month"
	SearchFreshnessYear  SearchFreshness = "year"
)

func (SearchFreshness) MarshalJSON

func (value SearchFreshness) MarshalJSON() ([]byte, error)

func (SearchFreshness) MarshalText

func (value SearchFreshness) MarshalText() ([]byte, error)

func (*SearchFreshness) UnmarshalJSON

func (value *SearchFreshness) UnmarshalJSON(data []byte) error

func (*SearchFreshness) UnmarshalText

func (value *SearchFreshness) UnmarshalText(data []byte) error

type SearchMatch

type SearchMatch struct {
	Path       string `json:"path"`
	LineNumber uint64 `json:"line_number"`
	Line       string `json:"line"`
	Matched    bool   `json:"matched"`
	Truncated  bool   `json:"truncated"`
}

func DefaultSearchMatch

func DefaultSearchMatch() SearchMatch

func (SearchMatch) MarshalJSON

func (value SearchMatch) MarshalJSON() ([]byte, error)

func (*SearchMatch) UnmarshalJSON

func (value *SearchMatch) UnmarshalJSON(data []byte) error

type SearchMode

type SearchMode string
const (
	SearchModeContent SearchMode = "content"
	SearchModeFiles   SearchMode = "files"
	SearchModeCount   SearchMode = "count"
)

func (SearchMode) MarshalJSON

func (value SearchMode) MarshalJSON() ([]byte, error)

func (SearchMode) MarshalText

func (value SearchMode) MarshalText() ([]byte, error)

func (*SearchMode) UnmarshalJSON

func (value *SearchMode) UnmarshalJSON(data []byte) error

func (*SearchMode) UnmarshalText

func (value *SearchMode) UnmarshalText(data []byte) error

type SearchModelConfig

type SearchModelConfig struct {
	Provider ProviderID `json:"provider"`
	Model    string     `json:"model"`
}

func DefaultSearchModelConfig

func DefaultSearchModelConfig() SearchModelConfig

func (SearchModelConfig) MarshalJSON

func (value SearchModelConfig) MarshalJSON() ([]byte, error)

func (*SearchModelConfig) UnmarshalJSON

func (value *SearchModelConfig) UnmarshalJSON(data []byte) error

type SearchPage

type SearchPage struct {
	Driver    SearchDriver   `json:"driver"`
	Results   []SearchResult `json:"results"`
	Summary   *string        `json:"summary,omitempty"`
	Untrusted bool           `json:"untrusted"`
	FetchHint string         `json:"fetch_hint"`
}

func DefaultSearchPage

func DefaultSearchPage() SearchPage

func (SearchPage) MarshalJSON

func (value SearchPage) MarshalJSON() ([]byte, error)

func (*SearchPage) UnmarshalJSON

func (value *SearchPage) UnmarshalJSON(data []byte) error

type SearchQuota

type SearchQuota string
const (
	SearchQuotaKeyless        SearchQuota = "keyless"
	SearchQuotaAnonymousQuota SearchQuota = "anonymous_quota"
	SearchQuotaFreeQuota      SearchQuota = "free_quota"
	SearchQuotaPaid           SearchQuota = "paid"
)

func (SearchQuota) MarshalJSON

func (value SearchQuota) MarshalJSON() ([]byte, error)

func (SearchQuota) MarshalText

func (value SearchQuota) MarshalText() ([]byte, error)

func (*SearchQuota) UnmarshalJSON

func (value *SearchQuota) UnmarshalJSON(data []byte) error

func (*SearchQuota) UnmarshalText

func (value *SearchQuota) UnmarshalText(data []byte) error

type SearchRequest

type SearchRequest struct {
	Query          string           `json:"query"`
	Limit          uint8            `json:"limit"`
	Freshness      *SearchFreshness `json:"freshness,omitempty"`
	IncludeDomains []string         `json:"include_domains,omitempty"`
	ExcludeDomains []string         `json:"exclude_domains,omitempty"`
}

func DefaultSearchRequest

func DefaultSearchRequest() SearchRequest

func (SearchRequest) MarshalJSON

func (value SearchRequest) MarshalJSON() ([]byte, error)

func (*SearchRequest) UnmarshalJSON

func (value *SearchRequest) UnmarshalJSON(data []byte) error

type SearchResult

type SearchResult struct {
	Title     string  `json:"title"`
	Url       string  `json:"url"`
	Snippet   string  `json:"snippet"`
	Published *string `json:"published,omitempty"`
}

func DefaultSearchResult

func DefaultSearchResult() SearchResult

func (SearchResult) MarshalJSON

func (value SearchResult) MarshalJSON() ([]byte, error)

func (*SearchResult) UnmarshalJSON

func (value *SearchResult) UnmarshalJSON(data []byte) error

type SearchResults

type SearchResults struct {
	Mode         SearchMode         `json:"mode"`
	Matches      []SearchMatch      `json:"matches"`
	Paths        []string           `json:"paths"`
	Counts       []SearchCount      `json:"counts"`
	ScannedFiles uint64             `json:"scanned_files"`
	Skipped      uint64             `json:"skipped"`
	Truncated    bool               `json:"truncated"`
	Partial      bool               `json:"partial"`
	Offset       uint64             `json:"offset"`
	NextOffset   *uint64            `json:"next_offset"`
	Diagnostics  []SearchDiagnostic `json:"diagnostics"`
}

func DefaultSearchResults

func DefaultSearchResults() SearchResults

func (SearchResults) MarshalJSON

func (value SearchResults) MarshalJSON() ([]byte, error)

func (*SearchResults) UnmarshalJSON

func (value *SearchResults) UnmarshalJSON(data []byte) error

type SearchSelection

type SearchSelection struct {
	Kind string
	Data any
}

func (SearchSelection) MarshalJSON

func (value SearchSelection) MarshalJSON() ([]byte, error)

func (*SearchSelection) UnmarshalJSON

func (value *SearchSelection) UnmarshalJSON(data []byte) error

type SearchSettings

type SearchSettings struct {
	Revision     uint64                            `json:"revision"`
	Driver       *SearchSelection                  `json:"driver"`
	Fallback     bool                              `json:"fallback"`
	Order        []SearchDriver                    `json:"order"`
	Providers    map[SearchDriver]SearchConfig     `json:"providers"`
	Capabilities map[SearchDriver]SearchCapability `json:"capabilities"`
}

func DefaultSearchSettings

func DefaultSearchSettings() SearchSettings

func (SearchSettings) MarshalJSON

func (value SearchSettings) MarshalJSON() ([]byte, error)

func (*SearchSettings) UnmarshalJSON

func (value *SearchSettings) UnmarshalJSON(data []byte) error

type SearchUpdate

type SearchUpdate struct {
	Settings    SearchSettings                     `json:"settings"`
	Credentials map[SearchDriver]SearchCredentials `json:"credentials"`
}

func DefaultSearchUpdate

func DefaultSearchUpdate() SearchUpdate

func (SearchUpdate) MarshalJSON

func (value SearchUpdate) MarshalJSON() ([]byte, error)

func (*SearchUpdate) UnmarshalJSON

func (value *SearchUpdate) UnmarshalJSON(data []byte) error

type Secret

type Secret struct {
	// contains filtered or unexported fields
}

Secret exposes its contents only through an explicit access or wire encoding.

func NewSecret

func NewSecret(value string) Secret

func (Secret) Expose

func (value Secret) Expose() string

func (Secret) GoString

func (Secret) GoString() string

func (Secret) MarshalJSON

func (value Secret) MarshalJSON() ([]byte, error)

func (Secret) String

func (Secret) String() string

func (*Secret) UnmarshalJSON

func (value *Secret) UnmarshalJSON(data []byte) error

type Session

type Session struct {
	ID            SessionID                `json:"id"`
	Association   *ConversationAssociation `json:"association,omitempty"`
	CreationOrder uint64                   `json:"creation_order"`
	Archived      bool                     `json:"archived"`
	Activity      ActivitySummary          `json:"activity"`
	Project       *ProjectID               `json:"project"`
	Worktree      WorktreeID               `json:"worktree"`
	Revision      uint64                   `json:"revision"`
	Config        SessionConfig            `json:"config"`
	Roles         RoleSnapshot             `json:"roles"`
	Profile       *SessionProfile          `json:"profile,omitempty"`
	Fork          *ConversationFork        `json:"fork,omitempty"`
	Delegation    **Delegation             `json:"delegation,omitempty"`
}

func DefaultSession

func DefaultSession() Session

func (*Session) DecodeJSON

func (value *Session) DecodeJSON(decoder *Decoder) error

func (Session) MarshalJSON

func (value Session) MarshalJSON() ([]byte, error)

func (*Session) UnmarshalJSON

func (value *Session) UnmarshalJSON(data []byte) error

type SessionConfig

type SessionConfig struct {
	Assistant  *PluginConversationBinding            `json:"assistant,omitempty"`
	Resource   *ConnectionResource                   `json:"resource,omitempty"`
	Provider   ProviderID                            `json:"provider"`
	Model      string                                `json:"model"`
	Effort     Effort                                `json:"effort"`
	Features   map[string]string                     `json:"features,omitempty"`
	Mode       WorkMode                              `json:"mode"`
	Options    map[string]map[string]json.RawMessage `json:"options"`
	Permission Permission                            `json:"permission"`
	Credential *CredentialRef                        `json:"credential"`
}

func DefaultSessionConfig

func DefaultSessionConfig() SessionConfig

func (*SessionConfig) DecodeJSON

func (value *SessionConfig) DecodeJSON(decoder *Decoder) error

func (SessionConfig) MarshalJSON

func (value SessionConfig) MarshalJSON() ([]byte, error)

func (*SessionConfig) UnmarshalJSON

func (value *SessionConfig) UnmarshalJSON(data []byte) error

type SessionID

type SessionID [16]byte

func NewSessionID

func NewSessionID() SessionID

func ParseSessionID

func ParseSessionID(value string) (SessionID, error)

func (*SessionID) DecodeJSON

func (identity *SessionID) DecodeJSON(decoder *Decoder) error

func (SessionID) MarshalJSON

func (identity SessionID) MarshalJSON() ([]byte, error)

func (SessionID) MarshalText

func (identity SessionID) MarshalText() ([]byte, error)

func (SessionID) String

func (identity SessionID) String() string

func (*SessionID) UnmarshalJSON

func (identity *SessionID) UnmarshalJSON(data []byte) error

func (*SessionID) UnmarshalText

func (identity *SessionID) UnmarshalText(data []byte) error

type SessionImport

type SessionImport struct {
	Source          NodeID               `json:"source"`
	Project         *ProjectID           `json:"project"`
	Worktree        *WorktreeID          `json:"worktree"`
	Config          SessionConfig        `json:"config"`
	Provider        ConversationProvider `json:"provider"`
	Secret          *Secret              `json:"secret"`
	ExpiresAtMs     *uint64              `json:"expires_at_ms"`
	Roles           RoleSnapshot         `json:"roles"`
	RoleCredentials []RoleProviderSecret `json:"role_credentials"`
}

func DefaultSessionImport

func DefaultSessionImport() SessionImport

func (SessionImport) MarshalJSON

func (value SessionImport) MarshalJSON() ([]byte, error)

func (*SessionImport) UnmarshalJSON

func (value *SessionImport) UnmarshalJSON(data []byte) error

type SessionProfile

type SessionProfile struct {
	Source   NodeID               `json:"source"`
	Provider ConversationProvider `json:"provider"`
}

func DefaultSessionProfile

func DefaultSessionProfile() SessionProfile

func (*SessionProfile) DecodeJSON

func (value *SessionProfile) DecodeJSON(decoder *Decoder) error

func (SessionProfile) MarshalJSON

func (value SessionProfile) MarshalJSON() ([]byte, error)

func (*SessionProfile) UnmarshalJSON

func (value *SessionProfile) UnmarshalJSON(data []byte) error

type SessionRevision

type SessionRevision struct {
	Session  SessionID `json:"session"`
	Revision uint64    `json:"revision"`
}

func DefaultSessionRevision

func DefaultSessionRevision() SessionRevision

func (SessionRevision) MarshalJSON

func (value SessionRevision) MarshalJSON() ([]byte, error)

func (*SessionRevision) UnmarshalJSON

func (value *SessionRevision) UnmarshalJSON(data []byte) error

type Snapshot

type Snapshot struct {
	User                            *User                       `json:"user,omitempty"`
	Node                            NodeID                      `json:"node"`
	Cursor                          uint64                      `json:"cursor"`
	Defaults                        Defaults                    `json:"defaults"`
	Projects                        []Project                   `json:"projects"`
	Worktrees                       []Worktree                  `json:"worktrees"`
	Sessions                        []Session                   `json:"sessions"`
	Terminals                       []TerminalInfo              `json:"terminals"`
	TerminalSettingsRevision        uint64                      `json:"terminal_settings_revision"`
	PowerSettingsRevision           uint64                      `json:"power_settings_revision"`
	SandboxSettingsRevision         uint64                      `json:"sandbox_settings_revision"`
	SearchSettingsRevision          uint64                      `json:"search_settings_revision"`
	MediaSettings                   MediaSettings               `json:"media_settings"`
	Providers                       []ConversationProvider      `json:"providers"`
	ProviderQuotas                  []ConversationQuotaSnapshot `json:"provider_quotas"`
	ProviderDirectory               bool                        `json:"provider_directory,omitempty"`
	ModelCatalog                    ConversationCatalogStatus   `json:"model_catalog"`
	Roles                           []RoleProfile               `json:"roles"`
	Teams                           []TeamProfile               `json:"teams"`
	TeamSettingsRevision            uint64                      `json:"team_settings_revision"`
	CompactionSettingsRevision      uint64                      `json:"compaction_settings_revision"`
	ComputerSettingsRevision        uint64                      `json:"computer_settings_revision,omitempty"`
	ExternalBrowserSettingsRevision uint64                      `json:"external_browser_settings_revision,omitempty"`
	MemoryRevision                  uint64                      `json:"memory_revision,omitempty"`
	NativeSkills                    []NativeSkill               `json:"native_skills,omitempty"`
	Ssh                             []SshProfile                `json:"ssh"`
	Databases                       []DatabaseProfile           `json:"databases"`
	Plugins                         []PluginSummary             `json:"plugins"`
	Notifications                   []NotificationNotice        `json:"notifications"`
	Turns                           []TurnSummary               `json:"turns"`
}

func DefaultSnapshot

func DefaultSnapshot() Snapshot

func (*Snapshot) DecodeJSON

func (value *Snapshot) DecodeJSON(decoder *Decoder) error

func (Snapshot) MarshalJSON

func (value Snapshot) MarshalJSON() ([]byte, error)

func (*Snapshot) UnmarshalJSON

func (value *Snapshot) UnmarshalJSON(data []byte) error

type SpeechAudio

type SpeechAudio struct {
	MediaType  string     `json:"media_type"`
	DataBase64 string     `json:"data_base64"`
	Provider   ProviderID `json:"provider"`
	Model      string     `json:"model"`
}

SpeechAudio is one synthesized clip and the model that produced it.

func DefaultSpeechAudio

func DefaultSpeechAudio() SpeechAudio

func (SpeechAudio) MarshalJSON

func (value SpeechAudio) MarshalJSON() ([]byte, error)

func (*SpeechAudio) UnmarshalJSON

func (value *SpeechAudio) UnmarshalJSON(data []byte) error

type SponsorDevice

type SponsorDevice struct {
	Device     NodeID `json:"device"`
	Address    string `json:"address"`
	Generation uint64 `json:"generation"`
}

func (*SponsorDevice) UnmarshalJSON

func (value *SponsorDevice) UnmarshalJSON(data []byte) error

type SshAuthentication

type SshAuthentication string
const (
	SshAuthenticationPassword   SshAuthentication = "password"
	SshAuthenticationPrivateKey SshAuthentication = "private_key"
	SshAuthenticationKeyPath    SshAuthentication = "key_path"
	SshAuthenticationAgent      SshAuthentication = "agent"
)

func (SshAuthentication) MarshalJSON

func (value SshAuthentication) MarshalJSON() ([]byte, error)

func (SshAuthentication) MarshalText

func (value SshAuthentication) MarshalText() ([]byte, error)

func (*SshAuthentication) UnmarshalJSON

func (value *SshAuthentication) UnmarshalJSON(data []byte) error

func (*SshAuthentication) UnmarshalText

func (value *SshAuthentication) UnmarshalText(data []byte) error

type SshCredential

type SshCredential struct {
	Kind string
	Data any
}

func (SshCredential) MarshalJSON

func (value SshCredential) MarshalJSON() ([]byte, error)

func (*SshCredential) UnmarshalJSON

func (value *SshCredential) UnmarshalJSON(data []byte) error

type SshCredentialKeyPathPayload

type SshCredentialKeyPathPayload struct {
	Path       Secret    `json:"path"`
	Passphrase *Secret   `json:"passphrase"`
	Location   *HostPath `json:"location,omitempty"`
}

func DefaultSshCredentialKeyPathPayload

func DefaultSshCredentialKeyPathPayload() SshCredentialKeyPathPayload

func (SshCredentialKeyPathPayload) MarshalJSON

func (value SshCredentialKeyPathPayload) MarshalJSON() ([]byte, error)

func (*SshCredentialKeyPathPayload) UnmarshalJSON

func (value *SshCredentialKeyPathPayload) UnmarshalJSON(data []byte) error

type SshCredentialPasswordPayload

type SshCredentialPasswordPayload struct {
	Password Secret `json:"password"`
}

func DefaultSshCredentialPasswordPayload

func DefaultSshCredentialPasswordPayload() SshCredentialPasswordPayload

func (SshCredentialPasswordPayload) MarshalJSON

func (value SshCredentialPasswordPayload) MarshalJSON() ([]byte, error)

func (*SshCredentialPasswordPayload) UnmarshalJSON

func (value *SshCredentialPasswordPayload) UnmarshalJSON(data []byte) error

type SshCredentialPrivateKeyPayload

type SshCredentialPrivateKeyPayload struct {
	Key        Secret  `json:"key"`
	Passphrase *Secret `json:"passphrase"`
}

func DefaultSshCredentialPrivateKeyPayload

func DefaultSshCredentialPrivateKeyPayload() SshCredentialPrivateKeyPayload

func (SshCredentialPrivateKeyPayload) MarshalJSON

func (value SshCredentialPrivateKeyPayload) MarshalJSON() ([]byte, error)

func (*SshCredentialPrivateKeyPayload) UnmarshalJSON

func (value *SshCredentialPrivateKeyPayload) UnmarshalJSON(data []byte) error

type SshCursor

type SshCursor struct {
	Directory bool   `json:"directory"`
	Name      string `json:"name"`
}

func DefaultSshCursor

func DefaultSshCursor() SshCursor

func (SshCursor) MarshalJSON

func (value SshCursor) MarshalJSON() ([]byte, error)

func (*SshCursor) UnmarshalJSON

func (value *SshCursor) UnmarshalJSON(data []byte) error

type SshDirection

type SshDirection string
const (
	SshDirectionUpload   SshDirection = "upload"
	SshDirectionDownload SshDirection = "download"
)

func (SshDirection) MarshalJSON

func (value SshDirection) MarshalJSON() ([]byte, error)

func (SshDirection) MarshalText

func (value SshDirection) MarshalText() ([]byte, error)

func (*SshDirection) UnmarshalJSON

func (value *SshDirection) UnmarshalJSON(data []byte) error

func (*SshDirection) UnmarshalText

func (value *SshDirection) UnmarshalText(data []byte) error

type SshDirectory

type SshDirectory struct {
	Path    string      `json:"path"`
	Entries []FileEntry `json:"entries"`
	Next    *SshCursor  `json:"next"`
}

func DefaultSshDirectory

func DefaultSshDirectory() SshDirectory

func (SshDirectory) MarshalJSON

func (value SshDirectory) MarshalJSON() ([]byte, error)

func (*SshDirectory) UnmarshalJSON

func (value *SshDirectory) UnmarshalJSON(data []byte) error

type SshDownload

type SshDownload struct {
	Stream   StreamID `json:"stream"`
	Path     string   `json:"path"`
	Size     uint64   `json:"size"`
	Revision string   `json:"revision"`
}

func DefaultSshDownload

func DefaultSshDownload() SshDownload

func (SshDownload) MarshalJSON

func (value SshDownload) MarshalJSON() ([]byte, error)

func (*SshDownload) UnmarshalJSON

func (value *SshDownload) UnmarshalJSON(data []byte) error

type SshFileAction

type SshFileAction struct {
	Kind string
	Data any
}

func (SshFileAction) MarshalJSON

func (value SshFileAction) MarshalJSON() ([]byte, error)

func (*SshFileAction) UnmarshalJSON

func (value *SshFileAction) UnmarshalJSON(data []byte) error

type SshFileActionCopyPayload

type SshFileActionCopyPayload struct {
	Destination string `json:"destination"`
}

func DefaultSshFileActionCopyPayload

func DefaultSshFileActionCopyPayload() SshFileActionCopyPayload

func (SshFileActionCopyPayload) MarshalJSON

func (value SshFileActionCopyPayload) MarshalJSON() ([]byte, error)

func (*SshFileActionCopyPayload) UnmarshalJSON

func (value *SshFileActionCopyPayload) UnmarshalJSON(data []byte) error

type SshFileActionCreatePayload

type SshFileActionCreatePayload struct {
	Directory bool `json:"directory"`
}

func DefaultSshFileActionCreatePayload

func DefaultSshFileActionCreatePayload() SshFileActionCreatePayload

func (SshFileActionCreatePayload) MarshalJSON

func (value SshFileActionCreatePayload) MarshalJSON() ([]byte, error)

func (*SshFileActionCreatePayload) UnmarshalJSON

func (value *SshFileActionCreatePayload) UnmarshalJSON(data []byte) error

type SshFileActionMovePayload

type SshFileActionMovePayload struct {
	Destination string `json:"destination"`
}

func DefaultSshFileActionMovePayload

func DefaultSshFileActionMovePayload() SshFileActionMovePayload

func (SshFileActionMovePayload) MarshalJSON

func (value SshFileActionMovePayload) MarshalJSON() ([]byte, error)

func (*SshFileActionMovePayload) UnmarshalJSON

func (value *SshFileActionMovePayload) UnmarshalJSON(data []byte) error

type SshHostKey

type SshHostKey struct {
	Algorithm   string `json:"algorithm"`
	Fingerprint string `json:"fingerprint"`
}

func DefaultSshHostKey

func DefaultSshHostKey() SshHostKey

func (SshHostKey) MarshalJSON

func (value SshHostKey) MarshalJSON() ([]byte, error)

func (*SshHostKey) UnmarshalJSON

func (value *SshHostKey) UnmarshalJSON(data []byte) error

type SshID

type SshID [16]byte

func NewSshID

func NewSshID() SshID

func ParseSshID

func ParseSshID(value string) (SshID, error)

func (*SshID) DecodeJSON

func (identity *SshID) DecodeJSON(decoder *Decoder) error

func (SshID) MarshalJSON

func (identity SshID) MarshalJSON() ([]byte, error)

func (SshID) MarshalText

func (identity SshID) MarshalText() ([]byte, error)

func (SshID) String

func (identity SshID) String() string

func (*SshID) UnmarshalJSON

func (identity *SshID) UnmarshalJSON(data []byte) error

func (*SshID) UnmarshalText

func (identity *SshID) UnmarshalText(data []byte) error

type SshInstallProgress

type SshInstallProgress struct {
	Kind string
	Data any
}

func (SshInstallProgress) MarshalJSON

func (value SshInstallProgress) MarshalJSON() ([]byte, error)

func (*SshInstallProgress) UnmarshalJSON

func (value *SshInstallProgress) UnmarshalJSON(data []byte) error

type SshOutcome

type SshOutcome struct {
	Kind string
	Data any
}

func (SshOutcome) MarshalJSON

func (value SshOutcome) MarshalJSON() ([]byte, error)

func (*SshOutcome) UnmarshalJSON

func (value *SshOutcome) UnmarshalJSON(data []byte) error

type SshOutcomeCompletedPayload

type SshOutcomeCompletedPayload struct {
	ExitCode  uint32 `json:"exit_code"`
	Stdout    string `json:"stdout"`
	Stderr    string `json:"stderr"`
	Truncated bool   `json:"truncated"`
}

func DefaultSshOutcomeCompletedPayload

func DefaultSshOutcomeCompletedPayload() SshOutcomeCompletedPayload

func (SshOutcomeCompletedPayload) MarshalJSON

func (value SshOutcomeCompletedPayload) MarshalJSON() ([]byte, error)

func (*SshOutcomeCompletedPayload) UnmarshalJSON

func (value *SshOutcomeCompletedPayload) UnmarshalJSON(data []byte) error

type SshOutcomeHostInstalledPayload

type SshOutcomeHostInstalledPayload struct {
	Node NodeID `json:"node"`
}

func DefaultSshOutcomeHostInstalledPayload

func DefaultSshOutcomeHostInstalledPayload() SshOutcomeHostInstalledPayload

func (SshOutcomeHostInstalledPayload) MarshalJSON

func (value SshOutcomeHostInstalledPayload) MarshalJSON() ([]byte, error)

func (*SshOutcomeHostInstalledPayload) UnmarshalJSON

func (value *SshOutcomeHostInstalledPayload) UnmarshalJSON(data []byte) error

type SshOutcomeHostKeyRequiredPayload

type SshOutcomeHostKeyRequiredPayload struct {
	Key     SshHostKey `json:"key"`
	Changed bool       `json:"changed"`
}

func DefaultSshOutcomeHostKeyRequiredPayload

func DefaultSshOutcomeHostKeyRequiredPayload() SshOutcomeHostKeyRequiredPayload

func (SshOutcomeHostKeyRequiredPayload) MarshalJSON

func (value SshOutcomeHostKeyRequiredPayload) MarshalJSON() ([]byte, error)

func (*SshOutcomeHostKeyRequiredPayload) UnmarshalJSON

func (value *SshOutcomeHostKeyRequiredPayload) UnmarshalJSON(data []byte) error

type SshOutcomeHostNetworkUnconfirmedPayload

type SshOutcomeHostNetworkUnconfirmedPayload struct {
	Node      NodeID           `json:"node"`
	Selection NetworkSelection `json:"selection"`
}

func DefaultSshOutcomeHostNetworkUnconfirmedPayload

func DefaultSshOutcomeHostNetworkUnconfirmedPayload() SshOutcomeHostNetworkUnconfirmedPayload

func (SshOutcomeHostNetworkUnconfirmedPayload) MarshalJSON

func (value SshOutcomeHostNetworkUnconfirmedPayload) MarshalJSON() ([]byte, error)

func (*SshOutcomeHostNetworkUnconfirmedPayload) UnmarshalJSON

func (value *SshOutcomeHostNetworkUnconfirmedPayload) UnmarshalJSON(data []byte) error

type SshOutcomeTransferredPayload

type SshOutcomeTransferredPayload struct {
	Bytes uint64 `json:"bytes"`
}

func DefaultSshOutcomeTransferredPayload

func DefaultSshOutcomeTransferredPayload() SshOutcomeTransferredPayload

func (SshOutcomeTransferredPayload) MarshalJSON

func (value SshOutcomeTransferredPayload) MarshalJSON() ([]byte, error)

func (*SshOutcomeTransferredPayload) UnmarshalJSON

func (value *SshOutcomeTransferredPayload) UnmarshalJSON(data []byte) error

type SshProfile

type SshProfile struct {
	Source             *ConfigurationOrigin `json:"source,omitempty"`
	Sharing            *ConnectionSharing   `json:"sharing,omitempty"`
	ID                 SshID                `json:"id"`
	Revision           uint64               `json:"revision"`
	Name               string               `json:"name"`
	Host               string               `json:"host"`
	Port               uint16               `json:"port"`
	Username           string               `json:"username"`
	Authentication     SshAuthentication    `json:"authentication"`
	HostKey            *SshHostKey          `json:"host_key"`
	AuthenticationNode *NodeID              `json:"authentication_node,omitempty"`
}

func DefaultSshProfile

func DefaultSshProfile() SshProfile

func (*SshProfile) DecodeJSON

func (value *SshProfile) DecodeJSON(decoder *Decoder) error

func (SshProfile) MarshalJSON

func (value SshProfile) MarshalJSON() ([]byte, error)

func (*SshProfile) UnmarshalJSON

func (value *SshProfile) UnmarshalJSON(data []byte) error

type SshTerminalLaunch

type SshTerminalLaunch struct {
	Viewport   TerminalViewport   `json:"viewport"`
	Appearance TerminalAppearance `json:"appearance"`
}

func DefaultSshTerminalLaunch

func DefaultSshTerminalLaunch() SshTerminalLaunch

func (SshTerminalLaunch) MarshalJSON

func (value SshTerminalLaunch) MarshalJSON() ([]byte, error)

func (*SshTerminalLaunch) UnmarshalJSON

func (value *SshTerminalLaunch) UnmarshalJSON(data []byte) error

type SshTransfer

type SshTransfer struct {
	Worktree   WorktreeID   `json:"worktree"`
	Path       string       `json:"path"`
	RemotePath string       `json:"remote_path"`
	Direction  SshDirection `json:"direction"`
}

func DefaultSshTransfer

func DefaultSshTransfer() SshTransfer

func (SshTransfer) MarshalJSON

func (value SshTransfer) MarshalJSON() ([]byte, error)

func (*SshTransfer) UnmarshalJSON

func (value *SshTransfer) UnmarshalJSON(data []byte) error

type SshTrust

type SshTrust struct {
	Profile          SshID      `json:"profile"`
	ExpectedRevision uint64     `json:"expected_revision"`
	Host             string     `json:"host"`
	Port             uint16     `json:"port"`
	Key              SshHostKey `json:"key"`
	Changed          bool       `json:"changed"`
}

func DefaultSshTrust

func DefaultSshTrust() SshTrust

func (SshTrust) MarshalJSON

func (value SshTrust) MarshalJSON() ([]byte, error)

func (*SshTrust) UnmarshalJSON

func (value *SshTrust) UnmarshalJSON(data []byte) error

type SshUpload

type SshUpload struct {
	Stream StreamID      `json:"stream"`
	Spec   SshUploadSpec `json:"spec"`
}

func DefaultSshUpload

func DefaultSshUpload() SshUpload

func (SshUpload) MarshalJSON

func (value SshUpload) MarshalJSON() ([]byte, error)

func (*SshUpload) UnmarshalJSON

func (value *SshUpload) UnmarshalJSON(data []byte) error

type SshUploadSpec

type SshUploadSpec struct {
	Profile          SshID  `json:"profile"`
	ExpectedRevision uint64 `json:"expected_revision"`
	Path             string `json:"path"`
	Size             uint64 `json:"size"`
	Revision         string `json:"revision"`
	Overwrite        bool   `json:"overwrite"`
}

func DefaultSshUploadSpec

func DefaultSshUploadSpec() SshUploadSpec

func (SshUploadSpec) MarshalJSON

func (value SshUploadSpec) MarshalJSON() ([]byte, error)

func (*SshUploadSpec) UnmarshalJSON

func (value *SshUploadSpec) UnmarshalJSON(data []byte) error

type StreamID

type StreamID [16]byte

func NewStreamID

func NewStreamID() StreamID

func ParseStreamID

func ParseStreamID(value string) (StreamID, error)

func (*StreamID) DecodeJSON

func (identity *StreamID) DecodeJSON(decoder *Decoder) error

func (StreamID) MarshalJSON

func (identity StreamID) MarshalJSON() ([]byte, error)

func (StreamID) MarshalText

func (identity StreamID) MarshalText() ([]byte, error)

func (StreamID) String

func (identity StreamID) String() string

func (*StreamID) UnmarshalJSON

func (identity *StreamID) UnmarshalJSON(data []byte) error

func (*StreamID) UnmarshalText

func (identity *StreamID) UnmarshalText(data []byte) error

type TeamID

type TeamID [16]byte

func NewTeamID

func NewTeamID() TeamID

func ParseTeamID

func ParseTeamID(value string) (TeamID, error)

func (*TeamID) DecodeJSON

func (identity *TeamID) DecodeJSON(decoder *Decoder) error

func (TeamID) MarshalJSON

func (identity TeamID) MarshalJSON() ([]byte, error)

func (TeamID) MarshalText

func (identity TeamID) MarshalText() ([]byte, error)

func (TeamID) String

func (identity TeamID) String() string

func (*TeamID) UnmarshalJSON

func (identity *TeamID) UnmarshalJSON(data []byte) error

func (*TeamID) UnmarshalText

func (identity *TeamID) UnmarshalText(data []byte) error

type TeamProfile

type TeamProfile struct {
	Source       *ConfigurationOrigin `json:"source,omitempty"`
	ID           TeamID               `json:"id"`
	Revision     uint64               `json:"revision"`
	Key          string               `json:"key"`
	Name         string               `json:"name"`
	Appearance   *ProjectsAppearance  `json:"appearance"`
	Description  string               `json:"description"`
	Model        *RoleModel           `json:"model"`
	Instructions string               `json:"instructions"`
	Members      []RoleID             `json:"members"`
}

func DefaultTeamProfile

func DefaultTeamProfile() TeamProfile

func (*TeamProfile) DecodeJSON

func (value *TeamProfile) DecodeJSON(decoder *Decoder) error

func (TeamProfile) MarshalJSON

func (value TeamProfile) MarshalJSON() ([]byte, error)

func (*TeamProfile) UnmarshalJSON

func (value *TeamProfile) UnmarshalJSON(data []byte) error

type TeamReference

type TeamReference struct {
	ID       TeamID `json:"id"`
	Revision uint64 `json:"revision"`
}

func DefaultTeamReference

func DefaultTeamReference() TeamReference

func (*TeamReference) DecodeJSON

func (value *TeamReference) DecodeJSON(decoder *Decoder) error

func (TeamReference) MarshalJSON

func (value TeamReference) MarshalJSON() ([]byte, error)

func (*TeamReference) UnmarshalJSON

func (value *TeamReference) UnmarshalJSON(data []byte) error

type TeamSelection

type TeamSelection struct {
	ID       TeamID  `json:"id"`
	Revision *uint64 `json:"revision"`
}

func DefaultTeamSelection

func DefaultTeamSelection() TeamSelection

func (TeamSelection) MarshalJSON

func (value TeamSelection) MarshalJSON() ([]byte, error)

func (*TeamSelection) UnmarshalJSON

func (value *TeamSelection) UnmarshalJSON(data []byte) error

type TeamSettings

type TeamSettings struct {
	Source           *ConfigurationOrigin `json:"source,omitempty"`
	Revision         uint64               `json:"revision"`
	ChildConcurrency uint64               `json:"child_concurrency"`
}

func DefaultTeamSettings

func DefaultTeamSettings() TeamSettings

func (TeamSettings) MarshalJSON

func (value TeamSettings) MarshalJSON() ([]byte, error)

func (*TeamSettings) UnmarshalJSON

func (value *TeamSettings) UnmarshalJSON(data []byte) error

type TelemetrySettings

type TelemetrySettings struct {
	Revision       uint64    `json:"revision"`
	Errors         bool      `json:"errors"`
	Metrics        bool      `json:"metrics"`
	InstallationID uuid.UUID `json:"installation_id"`
}

func DefaultTelemetrySettings

func DefaultTelemetrySettings() TelemetrySettings

func (TelemetrySettings) MarshalJSON

func (value TelemetrySettings) MarshalJSON() ([]byte, error)

func (*TelemetrySettings) UnmarshalJSON

func (value *TelemetrySettings) UnmarshalJSON(data []byte) error

type TelemetryUpdate

type TelemetryUpdate struct {
	Revision uint64 `json:"revision"`
	Errors   bool   `json:"errors"`
	Metrics  bool   `json:"metrics"`
}

func DefaultTelemetryUpdate

func DefaultTelemetryUpdate() TelemetryUpdate

func (TelemetryUpdate) MarshalJSON

func (value TelemetryUpdate) MarshalJSON() ([]byte, error)

func (*TelemetryUpdate) UnmarshalJSON

func (value *TelemetryUpdate) UnmarshalJSON(data []byte) error

type TerminalActivity

type TerminalActivity string
const (
	TerminalActivityIdle            TerminalActivity = "idle"
	TerminalActivityWorking         TerminalActivity = "working"
	TerminalActivityWaitingForInput TerminalActivity = "waiting_for_input"
	TerminalActivityCompleted       TerminalActivity = "completed"
	TerminalActivityFailed          TerminalActivity = "failed"
)

func (TerminalActivity) MarshalJSON

func (value TerminalActivity) MarshalJSON() ([]byte, error)

func (TerminalActivity) MarshalText

func (value TerminalActivity) MarshalText() ([]byte, error)

func (*TerminalActivity) UnmarshalJSON

func (value *TerminalActivity) UnmarshalJSON(data []byte) error

func (*TerminalActivity) UnmarshalText

func (value *TerminalActivity) UnmarshalText(data []byte) error

type TerminalActivityReport

type TerminalActivityReport struct {
	State    TerminalActivity `json:"state"`
	Sequence uint64           `json:"sequence"`
}

func DefaultTerminalActivityReport

func DefaultTerminalActivityReport() TerminalActivityReport

func (TerminalActivityReport) MarshalJSON

func (value TerminalActivityReport) MarshalJSON() ([]byte, error)

func (*TerminalActivityReport) UnmarshalJSON

func (value *TerminalActivityReport) UnmarshalJSON(data []byte) error

type TerminalAppearance

type TerminalAppearance struct {
	Foreground  TerminalRgb         `json:"foreground"`
	Background  TerminalRgb         `json:"background"`
	Palette     [16]TerminalRgb     `json:"palette"`
	ColorScheme TerminalColorScheme `json:"color_scheme"`
}

func DefaultTerminalAppearance

func DefaultTerminalAppearance() TerminalAppearance

func (TerminalAppearance) MarshalJSON

func (value TerminalAppearance) MarshalJSON() ([]byte, error)

func (*TerminalAppearance) UnmarshalJSON

func (value *TerminalAppearance) UnmarshalJSON(data []byte) error

type TerminalColorScheme

type TerminalColorScheme string
const (
	TerminalColorSchemeLight TerminalColorScheme = "light"
	TerminalColorSchemeDark  TerminalColorScheme = "dark"
)

func (TerminalColorScheme) MarshalJSON

func (value TerminalColorScheme) MarshalJSON() ([]byte, error)

func (TerminalColorScheme) MarshalText

func (value TerminalColorScheme) MarshalText() ([]byte, error)

func (*TerminalColorScheme) UnmarshalJSON

func (value *TerminalColorScheme) UnmarshalJSON(data []byte) error

func (*TerminalColorScheme) UnmarshalText

func (value *TerminalColorScheme) UnmarshalText(data []byte) error

type TerminalFeatures

type TerminalFeatures struct {
	FocusReporting  bool                       `json:"focus_reporting"`
	AlternateScroll bool                       `json:"alternate_scroll"`
	Title           string                     `json:"title"`
	Directory       string                     `json:"directory"`
	Bell            uint64                     `json:"bell"`
	Clipboard       *TerminalFeaturesClipboard `json:"clipboard"`
}

func DefaultTerminalFeatures

func DefaultTerminalFeatures() TerminalFeatures

func (TerminalFeatures) MarshalJSON

func (value TerminalFeatures) MarshalJSON() ([]byte, error)

func (*TerminalFeatures) UnmarshalJSON

func (value *TerminalFeatures) UnmarshalJSON(data []byte) error

type TerminalFeaturesClipboard

type TerminalFeaturesClipboard struct {
	Sequence uint64 `json:"sequence"`
	Text     string `json:"text"`
}

func DefaultTerminalFeaturesClipboard

func DefaultTerminalFeaturesClipboard() TerminalFeaturesClipboard

func (TerminalFeaturesClipboard) MarshalJSON

func (value TerminalFeaturesClipboard) MarshalJSON() ([]byte, error)

func (*TerminalFeaturesClipboard) UnmarshalJSON

func (value *TerminalFeaturesClipboard) UnmarshalJSON(data []byte) error

type TerminalFrame

type TerminalFrame struct {
	Node     NodeID                     `json:"node"`
	Info     TerminalInfo               `json:"info"`
	Sequence uint64                     `json:"sequence"`
	Screen   TerminalScreenScreenUpdate `json:"screen"`
}

func DefaultTerminalFrame

func DefaultTerminalFrame() TerminalFrame

func (TerminalFrame) MarshalJSON

func (value TerminalFrame) MarshalJSON() ([]byte, error)

func (*TerminalFrame) UnmarshalJSON

func (value *TerminalFrame) UnmarshalJSON(data []byte) error

type TerminalGraphics

type TerminalGraphics struct {
	Images     []TerminalGraphicsImage     `json:"images"`
	Placements []TerminalGraphicsPlacement `json:"placements"`
}

func DefaultTerminalGraphics

func DefaultTerminalGraphics() TerminalGraphics

func (TerminalGraphics) MarshalJSON

func (value TerminalGraphics) MarshalJSON() ([]byte, error)

func (*TerminalGraphics) UnmarshalJSON

func (value *TerminalGraphics) UnmarshalJSON(data []byte) error

type TerminalGraphicsImage

type TerminalGraphicsImage struct {
	ID         uint32 `json:"id"`
	Generation uint64 `json:"generation"`
	Width      uint32 `json:"width"`
	Height     uint32 `json:"height"`
	Png        string `json:"png"`
}

func DefaultTerminalGraphicsImage

func DefaultTerminalGraphicsImage() TerminalGraphicsImage

func (TerminalGraphicsImage) MarshalJSON

func (value TerminalGraphicsImage) MarshalJSON() ([]byte, error)

func (*TerminalGraphicsImage) UnmarshalJSON

func (value *TerminalGraphicsImage) UnmarshalJSON(data []byte) error

type TerminalGraphicsPlacement

type TerminalGraphicsPlacement struct {
	Image  uint32     `json:"image"`
	ID     uint32     `json:"id"`
	Column int32      `json:"column"`
	Row    int32      `json:"row"`
	Offset [2]uint32  `json:"offset"`
	Size   [2]uint32  `json:"size"`
	Source [4]uint32  `json:"source"`
	Tile   *[4]uint32 `json:"tile"`
	Cell   [2]uint32  `json:"cell"`
	Z      int32      `json:"z"`
}

func DefaultTerminalGraphicsPlacement

func DefaultTerminalGraphicsPlacement() TerminalGraphicsPlacement

func (TerminalGraphicsPlacement) MarshalJSON

func (value TerminalGraphicsPlacement) MarshalJSON() ([]byte, error)

func (*TerminalGraphicsPlacement) UnmarshalJSON

func (value *TerminalGraphicsPlacement) UnmarshalJSON(data []byte) error

type TerminalID

type TerminalID [16]byte

func NewTerminalID

func NewTerminalID() TerminalID

func ParseTerminalID

func ParseTerminalID(value string) (TerminalID, error)

func (*TerminalID) DecodeJSON

func (identity *TerminalID) DecodeJSON(decoder *Decoder) error

func (TerminalID) MarshalJSON

func (identity TerminalID) MarshalJSON() ([]byte, error)

func (TerminalID) MarshalText

func (identity TerminalID) MarshalText() ([]byte, error)

func (TerminalID) String

func (identity TerminalID) String() string

func (*TerminalID) UnmarshalJSON

func (identity *TerminalID) UnmarshalJSON(data []byte) error

func (*TerminalID) UnmarshalText

func (identity *TerminalID) UnmarshalText(data []byte) error

type TerminalInfo

type TerminalInfo struct {
	ID        TerminalID              `json:"id"`
	Worktree  *WorktreeID             `json:"worktree"`
	Ssh       *SshID                  `json:"ssh"`
	Tool      *TerminalToolsTool      `json:"tool"`
	Access    *ProcessAccess          `json:"access"`
	Status    TerminalStatus          `json:"status"`
	Activity  *TerminalActivityReport `json:"activity"`
	Title     *string                 `json:"title"`
	Directory *string                 `json:"directory"`
	Owner     *NodeID                 `json:"owner"`
	Revision  uint64                  `json:"revision"`
}

func DefaultTerminalInfo

func DefaultTerminalInfo() TerminalInfo

func (*TerminalInfo) DecodeJSON

func (value *TerminalInfo) DecodeJSON(decoder *Decoder) error

func (TerminalInfo) MarshalJSON

func (value TerminalInfo) MarshalJSON() ([]byte, error)

func (*TerminalInfo) UnmarshalJSON

func (value *TerminalInfo) UnmarshalJSON(data []byte) error

type TerminalInput

type TerminalInput struct {
	Kind string
	Data any
}

func (TerminalInput) MarshalJSON

func (value TerminalInput) MarshalJSON() ([]byte, error)

func (*TerminalInput) UnmarshalJSON

func (value *TerminalInput) UnmarshalJSON(data []byte) error

type TerminalInputAction

type TerminalInputAction string
const (
	TerminalInputActionPress   TerminalInputAction = "press"
	TerminalInputActionRepeat  TerminalInputAction = "repeat"
	TerminalInputActionRelease TerminalInputAction = "release"
)

func (TerminalInputAction) MarshalJSON

func (value TerminalInputAction) MarshalJSON() ([]byte, error)

func (TerminalInputAction) MarshalText

func (value TerminalInputAction) MarshalText() ([]byte, error)

func (*TerminalInputAction) UnmarshalJSON

func (value *TerminalInputAction) UnmarshalJSON(data []byte) error

func (*TerminalInputAction) UnmarshalText

func (value *TerminalInputAction) UnmarshalText(data []byte) error

type TerminalInputFocusPayload

type TerminalInputFocusPayload struct {
	Focused bool `json:"focused"`
}

func DefaultTerminalInputFocusPayload

func DefaultTerminalInputFocusPayload() TerminalInputFocusPayload

func (TerminalInputFocusPayload) MarshalJSON

func (value TerminalInputFocusPayload) MarshalJSON() ([]byte, error)

func (*TerminalInputFocusPayload) UnmarshalJSON

func (value *TerminalInputFocusPayload) UnmarshalJSON(data []byte) error

type TerminalInputKey

type TerminalInputKey struct {
	Kind string
	Data any
}

func (TerminalInputKey) MarshalJSON

func (value TerminalInputKey) MarshalJSON() ([]byte, error)

func (*TerminalInputKey) UnmarshalJSON

func (value *TerminalInputKey) UnmarshalJSON(data []byte) error

type TerminalInputKeyCharacterPayload

type TerminalInputKeyCharacterPayload struct {
	Codepoint uint32 `json:"codepoint"`
}

func DefaultTerminalInputKeyCharacterPayload

func DefaultTerminalInputKeyCharacterPayload() TerminalInputKeyCharacterPayload

func (TerminalInputKeyCharacterPayload) MarshalJSON

func (value TerminalInputKeyCharacterPayload) MarshalJSON() ([]byte, error)

func (*TerminalInputKeyCharacterPayload) UnmarshalJSON

func (value *TerminalInputKeyCharacterPayload) UnmarshalJSON(data []byte) error

type TerminalInputKeyEvent

type TerminalInputKeyEvent struct {
	Key                TerminalInputKey       `json:"key"`
	Action             TerminalInputAction    `json:"action"`
	Modifiers          TerminalInputModifiers `json:"modifiers"`
	Utf8               *string                `json:"utf8"`
	UnshiftedCodepoint *uint32                `json:"unshifted_codepoint"`
}

func DefaultTerminalInputKeyEvent

func DefaultTerminalInputKeyEvent() TerminalInputKeyEvent

func (TerminalInputKeyEvent) MarshalJSON

func (value TerminalInputKeyEvent) MarshalJSON() ([]byte, error)

func (*TerminalInputKeyEvent) UnmarshalJSON

func (value *TerminalInputKeyEvent) UnmarshalJSON(data []byte) error

type TerminalInputKeyFunctionPayload

type TerminalInputKeyFunctionPayload struct {
	Number uint8 `json:"number"`
}

func DefaultTerminalInputKeyFunctionPayload

func DefaultTerminalInputKeyFunctionPayload() TerminalInputKeyFunctionPayload

func (TerminalInputKeyFunctionPayload) MarshalJSON

func (value TerminalInputKeyFunctionPayload) MarshalJSON() ([]byte, error)

func (*TerminalInputKeyFunctionPayload) UnmarshalJSON

func (value *TerminalInputKeyFunctionPayload) UnmarshalJSON(data []byte) error

type TerminalInputKeyNamedPayload

type TerminalInputKeyNamedPayload struct {
	Key TerminalInputNamedKey `json:"key"`
}

func DefaultTerminalInputKeyNamedPayload

func DefaultTerminalInputKeyNamedPayload() TerminalInputKeyNamedPayload

func (TerminalInputKeyNamedPayload) MarshalJSON

func (value TerminalInputKeyNamedPayload) MarshalJSON() ([]byte, error)

func (*TerminalInputKeyNamedPayload) UnmarshalJSON

func (value *TerminalInputKeyNamedPayload) UnmarshalJSON(data []byte) error

type TerminalInputKeyPayload

type TerminalInputKeyPayload struct {
	Event TerminalInputKeyEvent `json:"event"`
}

func DefaultTerminalInputKeyPayload

func DefaultTerminalInputKeyPayload() TerminalInputKeyPayload

func (TerminalInputKeyPayload) MarshalJSON

func (value TerminalInputKeyPayload) MarshalJSON() ([]byte, error)

func (*TerminalInputKeyPayload) UnmarshalJSON

func (value *TerminalInputKeyPayload) UnmarshalJSON(data []byte) error

type TerminalInputModifiers

type TerminalInputModifiers struct {
	Shift    bool `json:"shift"`
	Control  bool `json:"control"`
	Alt      bool `json:"alt"`
	SuperKey bool `json:"super_key"`
	CapsLock bool `json:"caps_lock"`
	NumLock  bool `json:"num_lock"`
}

func DefaultTerminalInputModifiers

func DefaultTerminalInputModifiers() TerminalInputModifiers

func (TerminalInputModifiers) MarshalJSON

func (value TerminalInputModifiers) MarshalJSON() ([]byte, error)

func (*TerminalInputModifiers) UnmarshalJSON

func (value *TerminalInputModifiers) UnmarshalJSON(data []byte) error

type TerminalInputMouseAction

type TerminalInputMouseAction string
const (
	TerminalInputMouseActionPress   TerminalInputMouseAction = "press"
	TerminalInputMouseActionRelease TerminalInputMouseAction = "release"
	TerminalInputMouseActionMotion  TerminalInputMouseAction = "motion"
)

func (TerminalInputMouseAction) MarshalJSON

func (value TerminalInputMouseAction) MarshalJSON() ([]byte, error)

func (TerminalInputMouseAction) MarshalText

func (value TerminalInputMouseAction) MarshalText() ([]byte, error)

func (*TerminalInputMouseAction) UnmarshalJSON

func (value *TerminalInputMouseAction) UnmarshalJSON(data []byte) error

func (*TerminalInputMouseAction) UnmarshalText

func (value *TerminalInputMouseAction) UnmarshalText(data []byte) error

type TerminalInputMouseButton

type TerminalInputMouseButton string
const (
	TerminalInputMouseButtonLeft       TerminalInputMouseButton = "left"
	TerminalInputMouseButtonMiddle     TerminalInputMouseButton = "middle"
	TerminalInputMouseButtonRight      TerminalInputMouseButton = "right"
	TerminalInputMouseButtonWheelUp    TerminalInputMouseButton = "wheel_up"
	TerminalInputMouseButtonWheelDown  TerminalInputMouseButton = "wheel_down"
	TerminalInputMouseButtonWheelLeft  TerminalInputMouseButton = "wheel_left"
	TerminalInputMouseButtonWheelRight TerminalInputMouseButton = "wheel_right"
)

func (TerminalInputMouseButton) MarshalJSON

func (value TerminalInputMouseButton) MarshalJSON() ([]byte, error)

func (TerminalInputMouseButton) MarshalText

func (value TerminalInputMouseButton) MarshalText() ([]byte, error)

func (*TerminalInputMouseButton) UnmarshalJSON

func (value *TerminalInputMouseButton) UnmarshalJSON(data []byte) error

func (*TerminalInputMouseButton) UnmarshalText

func (value *TerminalInputMouseButton) UnmarshalText(data []byte) error

type TerminalInputMouseEvent

type TerminalInputMouseEvent struct {
	Action    TerminalInputMouseAction  `json:"action"`
	Button    *TerminalInputMouseButton `json:"button"`
	Modifiers TerminalInputModifiers    `json:"modifiers"`
	Column    uint16                    `json:"column"`
	Row       uint16                    `json:"row"`
	X         uint32                    `json:"x"`
	Y         uint32                    `json:"y"`
}

func DefaultTerminalInputMouseEvent

func DefaultTerminalInputMouseEvent() TerminalInputMouseEvent

func (TerminalInputMouseEvent) MarshalJSON

func (value TerminalInputMouseEvent) MarshalJSON() ([]byte, error)

func (*TerminalInputMouseEvent) UnmarshalJSON

func (value *TerminalInputMouseEvent) UnmarshalJSON(data []byte) error

type TerminalInputMousePayload

type TerminalInputMousePayload struct {
	Event TerminalInputMouseEvent `json:"event"`
}

func DefaultTerminalInputMousePayload

func DefaultTerminalInputMousePayload() TerminalInputMousePayload

func (TerminalInputMousePayload) MarshalJSON

func (value TerminalInputMousePayload) MarshalJSON() ([]byte, error)

func (*TerminalInputMousePayload) UnmarshalJSON

func (value *TerminalInputMousePayload) UnmarshalJSON(data []byte) error

type TerminalInputNamedKey

type TerminalInputNamedKey string
const (
	TerminalInputNamedKeyAltLeft        TerminalInputNamedKey = "alt_left"
	TerminalInputNamedKeyAltRight       TerminalInputNamedKey = "alt_right"
	TerminalInputNamedKeyControlLeft    TerminalInputNamedKey = "control_left"
	TerminalInputNamedKeyControlRight   TerminalInputNamedKey = "control_right"
	TerminalInputNamedKeyMetaLeft       TerminalInputNamedKey = "meta_left"
	TerminalInputNamedKeyMetaRight      TerminalInputNamedKey = "meta_right"
	TerminalInputNamedKeyShiftLeft      TerminalInputNamedKey = "shift_left"
	TerminalInputNamedKeyShiftRight     TerminalInputNamedKey = "shift_right"
	TerminalInputNamedKeyCapsLock       TerminalInputNamedKey = "caps_lock"
	TerminalInputNamedKeyNumLock        TerminalInputNamedKey = "num_lock"
	TerminalInputNamedKeyFn             TerminalInputNamedKey = "fn"
	TerminalInputNamedKeyPrintScreen    TerminalInputNamedKey = "print_screen"
	TerminalInputNamedKeyScrollLock     TerminalInputNamedKey = "scroll_lock"
	TerminalInputNamedKeyPause          TerminalInputNamedKey = "pause"
	TerminalInputNamedKeyContextMenu    TerminalInputNamedKey = "context_menu"
	TerminalInputNamedKeyNumpad0        TerminalInputNamedKey = "numpad0"
	TerminalInputNamedKeyNumpad1        TerminalInputNamedKey = "numpad1"
	TerminalInputNamedKeyNumpad2        TerminalInputNamedKey = "numpad2"
	TerminalInputNamedKeyNumpad3        TerminalInputNamedKey = "numpad3"
	TerminalInputNamedKeyNumpad4        TerminalInputNamedKey = "numpad4"
	TerminalInputNamedKeyNumpad5        TerminalInputNamedKey = "numpad5"
	TerminalInputNamedKeyNumpad6        TerminalInputNamedKey = "numpad6"
	TerminalInputNamedKeyNumpad7        TerminalInputNamedKey = "numpad7"
	TerminalInputNamedKeyNumpad8        TerminalInputNamedKey = "numpad8"
	TerminalInputNamedKeyNumpad9        TerminalInputNamedKey = "numpad9"
	TerminalInputNamedKeyNumpadAdd      TerminalInputNamedKey = "numpad_add"
	TerminalInputNamedKeyNumpadSubtract TerminalInputNamedKey = "numpad_subtract"
	TerminalInputNamedKeyNumpadMultiply TerminalInputNamedKey = "numpad_multiply"
	TerminalInputNamedKeyNumpadDivide   TerminalInputNamedKey = "numpad_divide"
	TerminalInputNamedKeyNumpadEnter    TerminalInputNamedKey = "numpad_enter"
	TerminalInputNamedKeyNumpadEqual    TerminalInputNamedKey = "numpad_equal"
	TerminalInputNamedKeyNumpadDecimal  TerminalInputNamedKey = "numpad_decimal"
	TerminalInputNamedKeyNumpadComma    TerminalInputNamedKey = "numpad_comma"
	TerminalInputNamedKeyNumpadClear    TerminalInputNamedKey = "numpad_clear"
)

func (TerminalInputNamedKey) MarshalJSON

func (value TerminalInputNamedKey) MarshalJSON() ([]byte, error)

func (TerminalInputNamedKey) MarshalText

func (value TerminalInputNamedKey) MarshalText() ([]byte, error)

func (*TerminalInputNamedKey) UnmarshalJSON

func (value *TerminalInputNamedKey) UnmarshalJSON(data []byte) error

func (*TerminalInputNamedKey) UnmarshalText

func (value *TerminalInputNamedKey) UnmarshalText(data []byte) error

type TerminalInputPastePayload

type TerminalInputPastePayload struct {
	Text string `json:"text"`
}

func DefaultTerminalInputPastePayload

func DefaultTerminalInputPastePayload() TerminalInputPastePayload

func (TerminalInputPastePayload) MarshalJSON

func (value TerminalInputPastePayload) MarshalJSON() ([]byte, error)

func (*TerminalInputPastePayload) UnmarshalJSON

func (value *TerminalInputPastePayload) UnmarshalJSON(data []byte) error

type TerminalInputTextPayload

type TerminalInputTextPayload struct {
	Text string `json:"text"`
}

func DefaultTerminalInputTextPayload

func DefaultTerminalInputTextPayload() TerminalInputTextPayload

func (TerminalInputTextPayload) MarshalJSON

func (value TerminalInputTextPayload) MarshalJSON() ([]byte, error)

func (*TerminalInputTextPayload) UnmarshalJSON

func (value *TerminalInputTextPayload) UnmarshalJSON(data []byte) error

type TerminalLaunch

type TerminalLaunch struct {
	Worktree   WorktreeID         `json:"worktree"`
	Access     ProcessAccess      `json:"access"`
	Viewport   TerminalViewport   `json:"viewport"`
	Appearance TerminalAppearance `json:"appearance"`
}

func DefaultTerminalLaunch

func DefaultTerminalLaunch() TerminalLaunch

func (TerminalLaunch) MarshalJSON

func (value TerminalLaunch) MarshalJSON() ([]byte, error)

func (*TerminalLaunch) UnmarshalJSON

func (value *TerminalLaunch) UnmarshalJSON(data []byte) error

type TerminalRgb

type TerminalRgb struct {
	Red   uint8 `json:"red"`
	Green uint8 `json:"green"`
	Blue  uint8 `json:"blue"`
}

func DefaultTerminalRgb

func DefaultTerminalRgb() TerminalRgb

func (TerminalRgb) MarshalJSON

func (value TerminalRgb) MarshalJSON() ([]byte, error)

func (*TerminalRgb) UnmarshalJSON

func (value *TerminalRgb) UnmarshalJSON(data []byte) error

type TerminalScreen

type TerminalScreen struct {
	VT             *TerminalVT           `json:"vt,omitempty"`
	Columns        uint16                `json:"columns"`
	Scrollback     []TerminalScreenLine  `json:"scrollback"`
	Rows           []TerminalScreenLine  `json:"rows"`
	Cursor         *TerminalScreenCursor `json:"cursor"`
	Foreground     TerminalRgb           `json:"foreground"`
	Background     TerminalRgb           `json:"background"`
	CursorColor    TerminalRgb           `json:"cursor_color"`
	BracketedPaste bool                  `json:"bracketed_paste"`
	MouseTracking  bool                  `json:"mouse_tracking"`
	Alternate      bool                  `json:"alternate"`
	Features       TerminalFeatures      `json:"features"`
	Graphics       TerminalGraphics      `json:"graphics"`
}

func DefaultTerminalScreen

func DefaultTerminalScreen() TerminalScreen

func (TerminalScreen) MarshalJSON

func (value TerminalScreen) MarshalJSON() ([]byte, error)

func (*TerminalScreen) UnmarshalJSON

func (value *TerminalScreen) UnmarshalJSON(data []byte) error

type TerminalScreenCursor

type TerminalScreenCursor struct {
	Column     uint16                    `json:"column"`
	Row        uint16                    `json:"row"`
	AtWideTail bool                      `json:"at_wide_tail"`
	Blinking   bool                      `json:"blinking"`
	Style      TerminalScreenCursorStyle `json:"style"`
}

func DefaultTerminalScreenCursor

func DefaultTerminalScreenCursor() TerminalScreenCursor

func (TerminalScreenCursor) MarshalJSON

func (value TerminalScreenCursor) MarshalJSON() ([]byte, error)

func (*TerminalScreenCursor) UnmarshalJSON

func (value *TerminalScreenCursor) UnmarshalJSON(data []byte) error

type TerminalScreenCursorStyle

type TerminalScreenCursorStyle string
const (
	TerminalScreenCursorStyleBar         TerminalScreenCursorStyle = "bar"
	TerminalScreenCursorStyleBlock       TerminalScreenCursorStyle = "block"
	TerminalScreenCursorStyleUnderline   TerminalScreenCursorStyle = "underline"
	TerminalScreenCursorStyleBlockHollow TerminalScreenCursorStyle = "block_hollow"
)

func (TerminalScreenCursorStyle) MarshalJSON

func (value TerminalScreenCursorStyle) MarshalJSON() ([]byte, error)

func (TerminalScreenCursorStyle) MarshalText

func (value TerminalScreenCursorStyle) MarshalText() ([]byte, error)

func (*TerminalScreenCursorStyle) UnmarshalJSON

func (value *TerminalScreenCursorStyle) UnmarshalJSON(data []byte) error

func (*TerminalScreenCursorStyle) UnmarshalText

func (value *TerminalScreenCursorStyle) UnmarshalText(data []byte) error

type TerminalScreenLine

type TerminalScreenLine struct {
	Spans   []TerminalScreenSpan `json:"spans"`
	Wrapped bool                 `json:"wrapped"`
}

func DefaultTerminalScreenLine

func DefaultTerminalScreenLine() TerminalScreenLine

func (TerminalScreenLine) MarshalJSON

func (value TerminalScreenLine) MarshalJSON() ([]byte, error)

func (*TerminalScreenLine) UnmarshalJSON

func (value *TerminalScreenLine) UnmarshalJSON(data []byte) error

type TerminalScreenPatch

type TerminalScreenPatch struct {
	DroppedScrollbackRows uint32                `json:"dropped_scrollback_rows"`
	AppendedScrollback    []TerminalScreenLine  `json:"appended_scrollback"`
	Columns               uint16                `json:"columns"`
	Rows                  []TerminalScreenLine  `json:"rows"`
	Cursor                *TerminalScreenCursor `json:"cursor"`
	Foreground            TerminalRgb           `json:"foreground"`
	Background            TerminalRgb           `json:"background"`
	CursorColor           TerminalRgb           `json:"cursor_color"`
	BracketedPaste        bool                  `json:"bracketed_paste"`
	MouseTracking         bool                  `json:"mouse_tracking"`
	Alternate             bool                  `json:"alternate"`
	Features              TerminalFeatures      `json:"features"`
	Graphics              *TerminalGraphics     `json:"graphics"`
}

func DefaultTerminalScreenPatch

func DefaultTerminalScreenPatch() TerminalScreenPatch

func (TerminalScreenPatch) MarshalJSON

func (value TerminalScreenPatch) MarshalJSON() ([]byte, error)

func (*TerminalScreenPatch) UnmarshalJSON

func (value *TerminalScreenPatch) UnmarshalJSON(data []byte) error

type TerminalScreenScreenUpdate

type TerminalScreenScreenUpdate struct {
	Kind string
	Data any
}

func (TerminalScreenScreenUpdate) MarshalJSON

func (value TerminalScreenScreenUpdate) MarshalJSON() ([]byte, error)

func (*TerminalScreenScreenUpdate) UnmarshalJSON

func (value *TerminalScreenScreenUpdate) UnmarshalJSON(data []byte) error

type TerminalScreenScreenUpdatePatchPayload

type TerminalScreenScreenUpdatePatchPayload struct {
	Patch TerminalScreenPatch `json:"patch"`
}

func DefaultTerminalScreenScreenUpdatePatchPayload

func DefaultTerminalScreenScreenUpdatePatchPayload() TerminalScreenScreenUpdatePatchPayload

func (TerminalScreenScreenUpdatePatchPayload) MarshalJSON

func (value TerminalScreenScreenUpdatePatchPayload) MarshalJSON() ([]byte, error)

func (*TerminalScreenScreenUpdatePatchPayload) UnmarshalJSON

func (value *TerminalScreenScreenUpdatePatchPayload) UnmarshalJSON(data []byte) error

type TerminalScreenScreenUpdateReplacePayload

type TerminalScreenScreenUpdateReplacePayload struct {
	Screen TerminalScreen `json:"screen"`
}

func DefaultTerminalScreenScreenUpdateReplacePayload

func DefaultTerminalScreenScreenUpdateReplacePayload() TerminalScreenScreenUpdateReplacePayload

func (TerminalScreenScreenUpdateReplacePayload) MarshalJSON

func (value TerminalScreenScreenUpdateReplacePayload) MarshalJSON() ([]byte, error)

func (*TerminalScreenScreenUpdateReplacePayload) UnmarshalJSON

func (value *TerminalScreenScreenUpdateReplacePayload) UnmarshalJSON(data []byte) error

type TerminalScreenSpan

type TerminalScreenSpan struct {
	Column    uint16                  `json:"column"`
	Columns   uint16                  `json:"columns"`
	Text      string                  `json:"text"`
	Style     TerminalScreenTextStyle `json:"style"`
	Hyperlink *string                 `json:"hyperlink"`
}

func DefaultTerminalScreenSpan

func DefaultTerminalScreenSpan() TerminalScreenSpan

func (TerminalScreenSpan) MarshalJSON

func (value TerminalScreenSpan) MarshalJSON() ([]byte, error)

func (*TerminalScreenSpan) UnmarshalJSON

func (value *TerminalScreenSpan) UnmarshalJSON(data []byte) error

type TerminalScreenTextStyle

type TerminalScreenTextStyle struct {
	Foreground     *TerminalRgb                 `json:"foreground"`
	Background     *TerminalRgb                 `json:"background"`
	UnderlineColor *TerminalRgb                 `json:"underline_color"`
	Bold           bool                         `json:"bold"`
	Faint          bool                         `json:"faint"`
	Italic         bool                         `json:"italic"`
	Blink          bool                         `json:"blink"`
	Underline      TerminalScreenUnderlineStyle `json:"underline"`
	Inverse        bool                         `json:"inverse"`
	Invisible      bool                         `json:"invisible"`
	Strikethrough  bool                         `json:"strikethrough"`
	Overline       bool                         `json:"overline"`
}

func DefaultTerminalScreenTextStyle

func DefaultTerminalScreenTextStyle() TerminalScreenTextStyle

func (TerminalScreenTextStyle) MarshalJSON

func (value TerminalScreenTextStyle) MarshalJSON() ([]byte, error)

func (*TerminalScreenTextStyle) UnmarshalJSON

func (value *TerminalScreenTextStyle) UnmarshalJSON(data []byte) error

type TerminalScreenUnderlineStyle

type TerminalScreenUnderlineStyle string
const (
	TerminalScreenUnderlineStyleNone   TerminalScreenUnderlineStyle = "none"
	TerminalScreenUnderlineStyleSingle TerminalScreenUnderlineStyle = "single"
	TerminalScreenUnderlineStyleDouble TerminalScreenUnderlineStyle = "double"
	TerminalScreenUnderlineStyleCurly  TerminalScreenUnderlineStyle = "curly"
	TerminalScreenUnderlineStyleDotted TerminalScreenUnderlineStyle = "dotted"
	TerminalScreenUnderlineStyleDashed TerminalScreenUnderlineStyle = "dashed"
)

func (TerminalScreenUnderlineStyle) MarshalJSON

func (value TerminalScreenUnderlineStyle) MarshalJSON() ([]byte, error)

func (TerminalScreenUnderlineStyle) MarshalText

func (value TerminalScreenUnderlineStyle) MarshalText() ([]byte, error)

func (*TerminalScreenUnderlineStyle) UnmarshalJSON

func (value *TerminalScreenUnderlineStyle) UnmarshalJSON(data []byte) error

func (*TerminalScreenUnderlineStyle) UnmarshalText

func (value *TerminalScreenUnderlineStyle) UnmarshalText(data []byte) error

type TerminalSettings

type TerminalSettings struct {
	Revision       uint64            `json:"revision"`
	Shell          string            `json:"shell"`
	ShellArguments []string          `json:"shell_arguments,omitempty"`
	Environment    map[string]string `json:"environment"`
}

func DefaultTerminalSettings

func DefaultTerminalSettings() TerminalSettings

func (TerminalSettings) MarshalJSON

func (value TerminalSettings) MarshalJSON() ([]byte, error)

func (*TerminalSettings) UnmarshalJSON

func (value *TerminalSettings) UnmarshalJSON(data []byte) error

type TerminalShell

type TerminalShell struct {
	Path      string   `json:"path"`
	Arguments []string `json:"arguments"`
}

func DefaultTerminalShell

func DefaultTerminalShell() TerminalShell

func (TerminalShell) MarshalJSON

func (value TerminalShell) MarshalJSON() ([]byte, error)

func (*TerminalShell) UnmarshalJSON

func (value *TerminalShell) UnmarshalJSON(data []byte) error

type TerminalSnapshot

type TerminalSnapshot struct {
	Node     NodeID         `json:"node"`
	Info     TerminalInfo   `json:"info"`
	Sequence uint64         `json:"sequence"`
	Screen   TerminalScreen `json:"screen"`
}

func DefaultTerminalSnapshot

func DefaultTerminalSnapshot() TerminalSnapshot

func (TerminalSnapshot) MarshalJSON

func (value TerminalSnapshot) MarshalJSON() ([]byte, error)

func (*TerminalSnapshot) UnmarshalJSON

func (value *TerminalSnapshot) UnmarshalJSON(data []byte) error

type TerminalStatus

type TerminalStatus struct {
	Kind string
	Data any
}

func (TerminalStatus) MarshalJSON

func (value TerminalStatus) MarshalJSON() ([]byte, error)

func (*TerminalStatus) UnmarshalJSON

func (value *TerminalStatus) UnmarshalJSON(data []byte) error

type TerminalStatusExitedPayload

type TerminalStatusExitedPayload struct {
	Code uint32 `json:"code"`
}

func DefaultTerminalStatusExitedPayload

func DefaultTerminalStatusExitedPayload() TerminalStatusExitedPayload

func (TerminalStatusExitedPayload) MarshalJSON

func (value TerminalStatusExitedPayload) MarshalJSON() ([]byte, error)

func (*TerminalStatusExitedPayload) UnmarshalJSON

func (value *TerminalStatusExitedPayload) UnmarshalJSON(data []byte) error

type TerminalStatusFailedPayload

type TerminalStatusFailedPayload struct {
	Message string `json:"message"`
}

func DefaultTerminalStatusFailedPayload

func DefaultTerminalStatusFailedPayload() TerminalStatusFailedPayload

func (TerminalStatusFailedPayload) MarshalJSON

func (value TerminalStatusFailedPayload) MarshalJSON() ([]byte, error)

func (*TerminalStatusFailedPayload) UnmarshalJSON

func (value *TerminalStatusFailedPayload) UnmarshalJSON(data []byte) error

type TerminalToolsTool

type TerminalToolsTool string
const (
	TerminalToolsToolCodex    TerminalToolsTool = "codex"
	TerminalToolsToolClaude   TerminalToolsTool = "claude"
	TerminalToolsToolGemini   TerminalToolsTool = "gemini"
	TerminalToolsToolAgy      TerminalToolsTool = "agy"
	TerminalToolsToolGrok     TerminalToolsTool = "grok"
	TerminalToolsToolOpencode TerminalToolsTool = "opencode"
	TerminalToolsToolKimi     TerminalToolsTool = "kimi"
)

func (TerminalToolsTool) MarshalJSON

func (value TerminalToolsTool) MarshalJSON() ([]byte, error)

func (TerminalToolsTool) MarshalText

func (value TerminalToolsTool) MarshalText() ([]byte, error)

func (*TerminalToolsTool) UnmarshalJSON

func (value *TerminalToolsTool) UnmarshalJSON(data []byte) error

func (*TerminalToolsTool) UnmarshalText

func (value *TerminalToolsTool) UnmarshalText(data []byte) error

type TerminalToolsToolInfo

type TerminalToolsToolInfo struct {
	Tool      TerminalToolsTool `json:"tool"`
	Available bool              `json:"available"`
}

func DefaultTerminalToolsToolInfo

func DefaultTerminalToolsToolInfo() TerminalToolsToolInfo

func (TerminalToolsToolInfo) MarshalJSON

func (value TerminalToolsToolInfo) MarshalJSON() ([]byte, error)

func (*TerminalToolsToolInfo) UnmarshalJSON

func (value *TerminalToolsToolInfo) UnmarshalJSON(data []byte) error

type TerminalVT

type TerminalVT struct {
	Viewport TerminalViewport `json:"viewport"`
	Bytes    Bytes            `json:"bytes"`
}

type TerminalViewport

type TerminalViewport struct {
	Columns     uint16 `json:"columns"`
	Rows        uint16 `json:"rows"`
	PixelWidth  uint32 `json:"pixel_width"`
	PixelHeight uint32 `json:"pixel_height"`
}

func DefaultTerminalViewport

func DefaultTerminalViewport() TerminalViewport

func (TerminalViewport) MarshalJSON

func (value TerminalViewport) MarshalJSON() ([]byte, error)

func (*TerminalViewport) UnmarshalJSON

func (value *TerminalViewport) UnmarshalJSON(data []byte) error

type ThumbnailTransfer added in v0.2.6

type ThumbnailTransfer struct {
	Size     uint64 `json:"size"`
	Revision string `json:"revision"`
}

ThumbnailTransfer describes the stream bytes without changing source facts. It is present only in response to a download with a nonzero thumbnail_edge.

func (*ThumbnailTransfer) UnmarshalJSON added in v0.2.6

func (value *ThumbnailTransfer) UnmarshalJSON(data []byte) error

type Tolerance

type Tolerance uint8

Tolerance is what a decode does with input this build does not declare.

A controller and a Host are compatible when their protocol versions are equal, and contracts change in place at that version. A peer of the same version may therefore send members, enum values and union variants this build was compiled without, and decoding them must not fail. Input that is not a peer's report is authored: a manifest, a settings file, a tool call, stored data. It is checked against exactly what this build declares.

const (
	// Authored is the default of every decoder in this package, including
	// json.Unmarshal on its types. An unknown member of a closed object, an
	// unknown enum value and an unknown union variant are errors.
	Authored Tolerance = iota
	// PeerCommand decodes what a peer asks this build to do. Unknown members
	// are ignored: the peer may know options this build does not have. Unknown
	// enum values and union variants are errors, because this build cannot
	// act on them.
	PeerCommand
	// PeerData decodes what a peer reports: replies, updates, snapshots.
	// Unknown members are ignored, an unknown enum value is kept as the value
	// the peer sent, and an unknown union variant decodes to its kind with an
	// UnknownVariant as content.
	PeerData
)

type ToolContent

type ToolContent struct {
	Version uint32             `json:"version"`
	Blocks  []ToolContentBlock `json:"blocks"`
}

func DefaultToolContent

func DefaultToolContent() ToolContent

func (ToolContent) MarshalJSON

func (value ToolContent) MarshalJSON() ([]byte, error)

func (*ToolContent) UnmarshalJSON

func (value *ToolContent) UnmarshalJSON(data []byte) error

type ToolContentBlock

type ToolContentBlock struct {
	Kind string
	Data any
}

func (ToolContentBlock) MarshalJSON

func (value ToolContentBlock) MarshalJSON() ([]byte, error)

func (*ToolContentBlock) UnmarshalJSON

func (value *ToolContentBlock) UnmarshalJSON(data []byte) error

type ToolContentBlockArtifactPayload

type ToolContentBlockArtifactPayload struct {
	Artifact ArtifactSummary `json:"artifact"`
}

func DefaultToolContentBlockArtifactPayload

func DefaultToolContentBlockArtifactPayload() ToolContentBlockArtifactPayload

func (ToolContentBlockArtifactPayload) MarshalJSON

func (value ToolContentBlockArtifactPayload) MarshalJSON() ([]byte, error)

func (*ToolContentBlockArtifactPayload) UnmarshalJSON

func (value *ToolContentBlockArtifactPayload) UnmarshalJSON(data []byte) error

type ToolContentBlockImagePayload

type ToolContentBlockImagePayload struct {
	Index uint64 `json:"index"`
}

func DefaultToolContentBlockImagePayload

func DefaultToolContentBlockImagePayload() ToolContentBlockImagePayload

func (ToolContentBlockImagePayload) MarshalJSON

func (value ToolContentBlockImagePayload) MarshalJSON() ([]byte, error)

func (*ToolContentBlockImagePayload) UnmarshalJSON

func (value *ToolContentBlockImagePayload) UnmarshalJSON(data []byte) error

type ToolContentBlockNoticePayload

type ToolContentBlockNoticePayload struct {
	Message PluginDesktopNavigation `json:"message"`
}

func DefaultToolContentBlockNoticePayload

func DefaultToolContentBlockNoticePayload() ToolContentBlockNoticePayload

func (ToolContentBlockNoticePayload) MarshalJSON

func (value ToolContentBlockNoticePayload) MarshalJSON() ([]byte, error)

func (*ToolContentBlockNoticePayload) UnmarshalJSON

func (value *ToolContentBlockNoticePayload) UnmarshalJSON(data []byte) error

type ToolContentDiff

type ToolContentDiff struct {
	Path      string `json:"path"`
	Text      string `json:"text"`
	Truncated bool   `json:"truncated"`
}

func DefaultToolContentDiff

func DefaultToolContentDiff() ToolContentDiff

func (ToolContentDiff) MarshalJSON

func (value ToolContentDiff) MarshalJSON() ([]byte, error)

func (*ToolContentDiff) UnmarshalJSON

func (value *ToolContentDiff) UnmarshalJSON(data []byte) error

type ToolContentFile

type ToolContentFile struct {
	Path     string  `json:"path"`
	Name     *string `json:"name"`
	Mime     string  `json:"mime"`
	Size     *uint64 `json:"size"`
	Revision *string `json:"revision"`
}

func DefaultToolContentFile

func DefaultToolContentFile() ToolContentFile

func (ToolContentFile) MarshalJSON

func (value ToolContentFile) MarshalJSON() ([]byte, error)

func (*ToolContentFile) UnmarshalJSON

func (value *ToolContentFile) UnmarshalJSON(data []byte) error

type ToolContentTable

type ToolContentTable struct {
	Columns   []string   `json:"columns"`
	Rows      [][]string `json:"rows"`
	Truncated bool       `json:"truncated"`
}

func DefaultToolContentTable

func DefaultToolContentTable() ToolContentTable

func (ToolContentTable) MarshalJSON

func (value ToolContentTable) MarshalJSON() ([]byte, error)

func (*ToolContentTable) UnmarshalJSON

func (value *ToolContentTable) UnmarshalJSON(data []byte) error

type ToolContentText

type ToolContentText struct {
	Path    string                    `json:"path"`
	Notices []PluginDesktopNavigation `json:"notices"`
}

func DefaultToolContentText

func DefaultToolContentText() ToolContentText

func (ToolContentText) MarshalJSON

func (value ToolContentText) MarshalJSON() ([]byte, error)

func (*ToolContentText) UnmarshalJSON

func (value *ToolContentText) UnmarshalJSON(data []byte) error

type ToolDeclaration

type ToolDeclaration struct {
	Name                 string                       `json:"name"`
	Server               *string                      `json:"server"`
	Presentation         ToolPresentation             `json:"presentation"`
	Grouping             ToolGrouping                 `json:"grouping"`
	Operation            *ToolOperation               `json:"operation"`
	Handler              *ToolHandler                 `json:"handler"`
	Description          *string                      `json:"description"`
	Display              *ToolDisplay                 `json:"display"`
	Platforms            []string                     `json:"platforms,omitempty"`
	Contexts             []PluginConversationResource `json:"contexts,omitempty"`
	PlatformDescriptions map[string]string            `json:"platform_descriptions,omitempty"`
	Initial              bool                         `json:"initial,omitempty"`
	KeepImages           *uint64                      `json:"keep_images,omitempty"`
}

func DefaultToolDeclaration

func DefaultToolDeclaration() ToolDeclaration

func (ToolDeclaration) MarshalJSON

func (value ToolDeclaration) MarshalJSON() ([]byte, error)

func (*ToolDeclaration) UnmarshalJSON

func (value *ToolDeclaration) UnmarshalJSON(data []byte) error

type ToolDetail

type ToolDetail struct {
	Arguments json.RawMessage     `json:"arguments"`
	Result    *json.RawMessage    `json:"result"`
	Resolved  *ToolDetailResolved `json:"resolved"`
	Content   *ToolContent        `json:"content"`
	Images    []ConversationImage `json:"images"`
}

func DefaultToolDetail

func DefaultToolDetail() ToolDetail

func (ToolDetail) MarshalJSON

func (value ToolDetail) MarshalJSON() ([]byte, error)

func (*ToolDetail) UnmarshalJSON

func (value *ToolDetail) UnmarshalJSON(data []byte) error

type ToolDetailBody

type ToolDetailBody struct {
	Text  string                       `json:"text"`
	Path  *string                      `json:"path"`
	Diff  *ToolDisplayProjectionFormat `json:"diff"`
	Empty *ToolResultLocalText         `json:"empty"`
}

func DefaultToolDetailBody

func DefaultToolDetailBody() ToolDetailBody

func (ToolDetailBody) MarshalJSON

func (value ToolDetailBody) MarshalJSON() ([]byte, error)

func (*ToolDetailBody) UnmarshalJSON

func (value *ToolDetailBody) UnmarshalJSON(data []byte) error

type ToolDetailDelegation

type ToolDetailDelegation struct {
	Session    *SessionID  `json:"session,omitempty"`
	Worktree   *WorktreeID `json:"worktree,omitempty"`
	Invalid    bool        `json:"invalid,omitempty"`
	Background bool        `json:"background,omitempty"`
}

func DefaultToolDetailDelegation

func DefaultToolDetailDelegation() ToolDetailDelegation

func (*ToolDetailDelegation) DecodeJSON

func (value *ToolDetailDelegation) DecodeJSON(decoder *Decoder) error

func (ToolDetailDelegation) MarshalJSON

func (value ToolDetailDelegation) MarshalJSON() ([]byte, error)

func (*ToolDetailDelegation) UnmarshalJSON

func (value *ToolDetailDelegation) UnmarshalJSON(data []byte) error

type ToolDetailInput

type ToolDetailInput struct {
	Summary *ToolDetailText `json:"summary"`
	Context *ToolDetailText `json:"context"`
	Target  *ToolDetailText `json:"target"`
	Content *ToolDetailText `json:"content"`
}

func DefaultToolDetailInput

func DefaultToolDetailInput() ToolDetailInput

func (ToolDetailInput) MarshalJSON

func (value ToolDetailInput) MarshalJSON() ([]byte, error)

func (*ToolDetailInput) UnmarshalJSON

func (value *ToolDetailInput) UnmarshalJSON(data []byte) error

type ToolDetailOutput

type ToolDetailOutput struct {
	Preview         string                `json:"preview"`
	PreviewDeferred bool                  `json:"preview_deferred,omitempty"`
	Notices         []ToolResultLocalText `json:"notices"`
	Paths           []string              `json:"paths"`
	PathCount       uint64                `json:"path_count,omitempty"`
	Body            *ToolDetailBody       `json:"body"`
	Table           *ToolContentTable     `json:"table"`
}

func DefaultToolDetailOutput

func DefaultToolDetailOutput() ToolDetailOutput

func (ToolDetailOutput) MarshalJSON

func (value ToolDetailOutput) MarshalJSON() ([]byte, error)

func (*ToolDetailOutput) UnmarshalJSON

func (value *ToolDetailOutput) UnmarshalJSON(data []byte) error

type ToolDetailPage

type ToolDetailPage struct {
	Reference  ToolDetailReference `json:"reference"`
	Offset     uint64              `json:"offset"`
	TotalBytes uint64              `json:"total_bytes"`
	NextOffset *uint64             `json:"next_offset"`
	Text       string              `json:"text"`
}

func DefaultToolDetailPage

func DefaultToolDetailPage() ToolDetailPage

func (ToolDetailPage) MarshalJSON

func (value ToolDetailPage) MarshalJSON() ([]byte, error)

func (*ToolDetailPage) UnmarshalJSON

func (value *ToolDetailPage) UnmarshalJSON(data []byte) error

type ToolDetailPublication

type ToolDetailPublication struct {
	Index uint64           `json:"index"`
	Block ToolContentBlock `json:"block"`
}

type ToolDetailReference

type ToolDetailReference struct {
	Session  SessionID `json:"session"`
	Turn     TurnID    `json:"turn"`
	Entry    string    `json:"entry"`
	Index    uint64    `json:"index"`
	Call     *string   `json:"call"`
	Revision string    `json:"revision"`
}

func DefaultToolDetailReference

func DefaultToolDetailReference() ToolDetailReference

func (ToolDetailReference) MarshalJSON

func (value ToolDetailReference) MarshalJSON() ([]byte, error)

func (*ToolDetailReference) UnmarshalJSON

func (value *ToolDetailReference) UnmarshalJSON(data []byte) error

type ToolDetailResolved

type ToolDetailResolved struct {
	Label       *ToolResultLocalText   `json:"label"`
	Input       ToolDetailInput        `json:"input"`
	Output      *ToolDetailOutput      `json:"output"`
	Approval    []ToolResultLocalText  `json:"approval"`
	Status      *ToolResultLocalText   `json:"status"`
	Command     *ProcessOutcome        `json:"command,omitempty"`
	Diagnostics []ToolResultDiagnostic `json:"diagnostics"`
}

func DefaultToolDetailResolved

func DefaultToolDetailResolved() ToolDetailResolved

func (*ToolDetailResolved) DecodeJSON

func (value *ToolDetailResolved) DecodeJSON(decoder *Decoder) error

func (ToolDetailResolved) MarshalJSON

func (value ToolDetailResolved) MarshalJSON() ([]byte, error)

func (*ToolDetailResolved) UnmarshalJSON

func (value *ToolDetailResolved) UnmarshalJSON(data []byte) error

type ToolDetailSummary

type ToolDetailSummary struct {
	Revision    string                     `json:"revision"`
	Icon        *PluginDesktopIcon         `json:"icon,omitempty"`
	Resolved    *ToolDetailResolved        `json:"resolved,omitempty"`
	HasDetails  bool                       `json:"has_details"`
	Published   bool                       `json:"published,omitempty"`
	Failure     *ToolFailure               `json:"failure,omitempty"`
	Diagnostics bool                       `json:"diagnostics"`
	Expected    *ToolResultExpected        `json:"expected,omitempty"`
	Error       *string                    `json:"error,omitempty"`
	RawResult   bool                       `json:"raw_result"`
	Images      uint64                     `json:"images"`
	Bytes       *uint64                    `json:"bytes,omitempty"`
	Lines       *uint64                    `json:"lines,omitempty"`
	Path        *string                    `json:"path,omitempty"`
	Title       *string                    `json:"title,omitempty"`
	Resource    *string                    `json:"resource,omitempty"`
	SummaryID   *string                    `json:"summary_id,omitempty"`
	Delegation  ToolDetailDelegation       `json:"delegation,omitzero"`
	Question    **ConversationQuestionSpec `json:"question,omitempty"`
	Progress    *ConversationProgress      `json:"progress,omitempty"`
	// Task is the id of the background task the call started: a command
	// that was sent to the background. It is absent for any other call.
	Task *string `json:"task,omitempty"`
	// Publications identifies file and artifact blocks by their index in the detail.
	// An empty list also covers a card-only publication. Older peers omit it.
	Publications []ToolDetailPublication `json:"publications,omitzero"`
}

func DefaultToolDetailSummary

func DefaultToolDetailSummary() ToolDetailSummary

func (*ToolDetailSummary) DecodeJSON

func (value *ToolDetailSummary) DecodeJSON(decoder *Decoder) error

func (*ToolDetailSummary) UnmarshalJSON

func (value *ToolDetailSummary) UnmarshalJSON(data []byte) error

type ToolDetailText

type ToolDetailText struct {
	Text string `json:"text"`
	Code bool   `json:"code"`
}

func DefaultToolDetailText

func DefaultToolDetailText() ToolDetailText

func (ToolDetailText) MarshalJSON

func (value ToolDetailText) MarshalJSON() ([]byte, error)

func (*ToolDetailText) UnmarshalJSON

func (value *ToolDetailText) UnmarshalJSON(data []byte) error

type ToolDisplay

type ToolDisplay struct {
	Label     string                        `json:"label"`
	Icon      *PluginDesktopIcon            `json:"icon,omitempty"`
	Locales   map[string]string             `json:"locales"`
	Input     *ToolDisplayInput             `json:"input,omitempty"`
	Output    *ToolDisplayProjectionOutput  `json:"output,omitempty"`
	Approval  []ToolDisplayProjectionPrompt `json:"approval,omitempty"`
	Aliases   []ToolDisplayAlias            `json:"aliases,omitempty"`
	RawResult bool                          `json:"raw_result,omitempty"`
}

func DefaultToolDisplay

func DefaultToolDisplay() ToolDisplay

func (ToolDisplay) MarshalJSON

func (value ToolDisplay) MarshalJSON() ([]byte, error)

func (*ToolDisplay) UnmarshalJSON

func (value *ToolDisplay) UnmarshalJSON(data []byte) error

type ToolDisplayAlias

type ToolDisplayAlias struct {
	Path string               `json:"path"`
	Kind ToolDisplayAliasKind `json:"kind"`
}

func DefaultToolDisplayAlias

func DefaultToolDisplayAlias() ToolDisplayAlias

func (ToolDisplayAlias) MarshalJSON

func (value ToolDisplayAlias) MarshalJSON() ([]byte, error)

func (*ToolDisplayAlias) UnmarshalJSON

func (value *ToolDisplayAlias) UnmarshalJSON(data []byte) error

type ToolDisplayAliasKind

type ToolDisplayAliasKind string
const (
	ToolDisplayAliasKindHome   ToolDisplayAliasKind = "home"
	ToolDisplayAliasKindPython ToolDisplayAliasKind = "python"
)

func (ToolDisplayAliasKind) MarshalJSON

func (value ToolDisplayAliasKind) MarshalJSON() ([]byte, error)

func (ToolDisplayAliasKind) MarshalText

func (value ToolDisplayAliasKind) MarshalText() ([]byte, error)

func (*ToolDisplayAliasKind) UnmarshalJSON

func (value *ToolDisplayAliasKind) UnmarshalJSON(data []byte) error

func (*ToolDisplayAliasKind) UnmarshalText

func (value *ToolDisplayAliasKind) UnmarshalText(data []byte) error

type ToolDisplayField

type ToolDisplayField struct {
	Path       string                  `json:"path"`
	Code       bool                    `json:"code"`
	Omit       []string                `json:"omit"`
	Format     *ToolDisplayInputFormat `json:"format,omitempty"`
	ResultPath *string                 `json:"result_path,omitempty"`
	Names      map[string]string       `json:"names,omitempty"`
}

func DefaultToolDisplayField

func DefaultToolDisplayField() ToolDisplayField

func (ToolDisplayField) MarshalJSON

func (value ToolDisplayField) MarshalJSON() ([]byte, error)

func (*ToolDisplayField) UnmarshalJSON

func (value *ToolDisplayField) UnmarshalJSON(data []byte) error

type ToolDisplayInput

type ToolDisplayInput struct {
	Summary *ToolDisplayField `json:"summary"`
	Context *ToolDisplayField `json:"context"`
	Target  *ToolDisplayField `json:"target"`
	Content *ToolDisplayField `json:"content"`
}

func DefaultToolDisplayInput

func DefaultToolDisplayInput() ToolDisplayInput

func (ToolDisplayInput) MarshalJSON

func (value ToolDisplayInput) MarshalJSON() ([]byte, error)

func (*ToolDisplayInput) UnmarshalJSON

func (value *ToolDisplayInput) UnmarshalJSON(data []byte) error

type ToolDisplayInputFormat

type ToolDisplayInputFormat string
const (
	ToolDisplayInputFormatCommand    ToolDisplayInputFormat = "command"
	ToolDisplayInputFormatSession    ToolDisplayInputFormat = "session"
	ToolDisplayInputFormatConnection ToolDisplayInputFormat = "connection"
)

func (ToolDisplayInputFormat) MarshalJSON

func (value ToolDisplayInputFormat) MarshalJSON() ([]byte, error)

func (ToolDisplayInputFormat) MarshalText

func (value ToolDisplayInputFormat) MarshalText() ([]byte, error)

func (*ToolDisplayInputFormat) UnmarshalJSON

func (value *ToolDisplayInputFormat) UnmarshalJSON(data []byte) error

func (*ToolDisplayInputFormat) UnmarshalText

func (value *ToolDisplayInputFormat) UnmarshalText(data []byte) error

type ToolDisplayProjectionBody

type ToolDisplayProjectionBody struct {
	Text  ToolDisplayProjectionReference  `json:"text"`
	Path  *ToolDisplayProjectionReference `json:"path"`
	Diff  *ToolDisplayProjectionDiff      `json:"diff"`
	Empty *PluginDesktopNavigation        `json:"empty"`
}

func DefaultToolDisplayProjectionBody

func DefaultToolDisplayProjectionBody() ToolDisplayProjectionBody

func (ToolDisplayProjectionBody) MarshalJSON

func (value ToolDisplayProjectionBody) MarshalJSON() ([]byte, error)

func (*ToolDisplayProjectionBody) UnmarshalJSON

func (value *ToolDisplayProjectionBody) UnmarshalJSON(data []byte) error

type ToolDisplayProjectionComparison

type ToolDisplayProjectionComparison struct {
	Value  ToolDisplayProjectionReference `json:"value"`
	Item   *string                        `json:"item"`
	Equals json.RawMessage                `json:"equals"`
	Negate bool                           `json:"negate"`
}

func DefaultToolDisplayProjectionComparison

func DefaultToolDisplayProjectionComparison() ToolDisplayProjectionComparison

func (ToolDisplayProjectionComparison) MarshalJSON

func (value ToolDisplayProjectionComparison) MarshalJSON() ([]byte, error)

func (*ToolDisplayProjectionComparison) UnmarshalJSON

func (value *ToolDisplayProjectionComparison) UnmarshalJSON(data []byte) error

type ToolDisplayProjectionCondition

type ToolDisplayProjectionCondition struct {
	Any []ToolDisplayProjectionComparison `json:"any"`
	All []ToolDisplayProjectionComparison `json:"all"`
}

func DefaultToolDisplayProjectionCondition

func DefaultToolDisplayProjectionCondition() ToolDisplayProjectionCondition

func (ToolDisplayProjectionCondition) MarshalJSON

func (value ToolDisplayProjectionCondition) MarshalJSON() ([]byte, error)

func (*ToolDisplayProjectionCondition) UnmarshalJSON

func (value *ToolDisplayProjectionCondition) UnmarshalJSON(data []byte) error

type ToolDisplayProjectionDiff

type ToolDisplayProjectionDiff struct {
	Format ToolDisplayProjectionFormat     `json:"format"`
	When   *ToolDisplayProjectionCondition `json:"when"`
}

func DefaultToolDisplayProjectionDiff

func DefaultToolDisplayProjectionDiff() ToolDisplayProjectionDiff

func (ToolDisplayProjectionDiff) MarshalJSON

func (value ToolDisplayProjectionDiff) MarshalJSON() ([]byte, error)

func (*ToolDisplayProjectionDiff) UnmarshalJSON

func (value *ToolDisplayProjectionDiff) UnmarshalJSON(data []byte) error

type ToolDisplayProjectionFormat

type ToolDisplayProjectionFormat string
const (
	ToolDisplayProjectionFormatAdded      ToolDisplayProjectionFormat = "added"
	ToolDisplayProjectionFormatUnified    ToolDisplayProjectionFormat = "unified"
	ToolDisplayProjectionFormatCheckpoint ToolDisplayProjectionFormat = "checkpoint"
)

func (ToolDisplayProjectionFormat) MarshalJSON

func (value ToolDisplayProjectionFormat) MarshalJSON() ([]byte, error)

func (ToolDisplayProjectionFormat) MarshalText

func (value ToolDisplayProjectionFormat) MarshalText() ([]byte, error)

func (*ToolDisplayProjectionFormat) UnmarshalJSON

func (value *ToolDisplayProjectionFormat) UnmarshalJSON(data []byte) error

func (*ToolDisplayProjectionFormat) UnmarshalText

func (value *ToolDisplayProjectionFormat) UnmarshalText(data []byte) error

type ToolDisplayProjectionNotice

type ToolDisplayProjectionNotice struct {
	Message PluginDesktopNavigation         `json:"message"`
	When    *ToolDisplayProjectionCondition `json:"when"`
}

func DefaultToolDisplayProjectionNotice

func DefaultToolDisplayProjectionNotice() ToolDisplayProjectionNotice

func (ToolDisplayProjectionNotice) MarshalJSON

func (value ToolDisplayProjectionNotice) MarshalJSON() ([]byte, error)

func (*ToolDisplayProjectionNotice) UnmarshalJSON

func (value *ToolDisplayProjectionNotice) UnmarshalJSON(data []byte) error

type ToolDisplayProjectionOutput

type ToolDisplayProjectionOutput struct {
	Preview *ToolDisplayProjectionText    `json:"preview"`
	Notices []ToolDisplayProjectionNotice `json:"notices"`
	Body    *ToolDisplayProjectionBody    `json:"body"`
	Paths   *ToolDisplayProjectionPaths   `json:"paths"`
	Table   *ToolDisplayProjectionTable   `json:"table"`
}

func DefaultToolDisplayProjectionOutput

func DefaultToolDisplayProjectionOutput() ToolDisplayProjectionOutput

func (ToolDisplayProjectionOutput) MarshalJSON

func (value ToolDisplayProjectionOutput) MarshalJSON() ([]byte, error)

func (*ToolDisplayProjectionOutput) UnmarshalJSON

func (value *ToolDisplayProjectionOutput) UnmarshalJSON(data []byte) error

type ToolDisplayProjectionPart

type ToolDisplayProjectionPart struct {
	Take   *uint64                           `json:"take"`
	Text   *string                           `json:"text"`
	Value  *ToolDisplayProjectionReference   `json:"value"`
	Format *ToolDisplayProjectionValueFormat `json:"format,omitempty"`
	Rows   *ToolDisplayProjectionRows        `json:"rows"`
	When   *ToolDisplayProjectionCondition   `json:"when"`
}

func DefaultToolDisplayProjectionPart

func DefaultToolDisplayProjectionPart() ToolDisplayProjectionPart

func (ToolDisplayProjectionPart) MarshalJSON

func (value ToolDisplayProjectionPart) MarshalJSON() ([]byte, error)

func (*ToolDisplayProjectionPart) UnmarshalJSON

func (value *ToolDisplayProjectionPart) UnmarshalJSON(data []byte) error

type ToolDisplayProjectionPaths

type ToolDisplayProjectionPaths struct {
	Value ToolDisplayProjectionReference `json:"value"`
	Item  *string                        `json:"item"`
}

func DefaultToolDisplayProjectionPaths

func DefaultToolDisplayProjectionPaths() ToolDisplayProjectionPaths

func (ToolDisplayProjectionPaths) MarshalJSON

func (value ToolDisplayProjectionPaths) MarshalJSON() ([]byte, error)

func (*ToolDisplayProjectionPaths) UnmarshalJSON

func (value *ToolDisplayProjectionPaths) UnmarshalJSON(data []byte) error

type ToolDisplayProjectionPrompt

type ToolDisplayProjectionPrompt struct {
	Message PluginDesktopNavigation                   `json:"message"`
	Values  map[string]ToolDisplayProjectionReference `json:"values"`
	When    *ToolDisplayProjectionCondition           `json:"when"`
}

func DefaultToolDisplayProjectionPrompt

func DefaultToolDisplayProjectionPrompt() ToolDisplayProjectionPrompt

func (ToolDisplayProjectionPrompt) MarshalJSON

func (value ToolDisplayProjectionPrompt) MarshalJSON() ([]byte, error)

func (*ToolDisplayProjectionPrompt) UnmarshalJSON

func (value *ToolDisplayProjectionPrompt) UnmarshalJSON(data []byte) error

type ToolDisplayProjectionReference

type ToolDisplayProjectionReference struct {
	Source ToolDisplayProjectionSource `json:"source"`
	Path   string                      `json:"path"`
}

func DefaultToolDisplayProjectionReference

func DefaultToolDisplayProjectionReference() ToolDisplayProjectionReference

func (ToolDisplayProjectionReference) MarshalJSON

func (value ToolDisplayProjectionReference) MarshalJSON() ([]byte, error)

func (*ToolDisplayProjectionReference) UnmarshalJSON

func (value *ToolDisplayProjectionReference) UnmarshalJSON(data []byte) error

type ToolDisplayProjectionRows

type ToolDisplayProjectionRows struct {
	Value     ToolDisplayProjectionReference `json:"value"`
	Text      ToolDisplayProjectionText      `json:"text"`
	Separator string                         `json:"separator"`
}

func DefaultToolDisplayProjectionRows

func DefaultToolDisplayProjectionRows() ToolDisplayProjectionRows

func (ToolDisplayProjectionRows) MarshalJSON

func (value ToolDisplayProjectionRows) MarshalJSON() ([]byte, error)

func (*ToolDisplayProjectionRows) UnmarshalJSON

func (value *ToolDisplayProjectionRows) UnmarshalJSON(data []byte) error

type ToolDisplayProjectionSource

type ToolDisplayProjectionSource string
const (
	ToolDisplayProjectionSourceArguments ToolDisplayProjectionSource = "arguments"
	ToolDisplayProjectionSourceResult    ToolDisplayProjectionSource = "result"
	ToolDisplayProjectionSourceItem      ToolDisplayProjectionSource = "item"
)

func (ToolDisplayProjectionSource) MarshalJSON

func (value ToolDisplayProjectionSource) MarshalJSON() ([]byte, error)

func (ToolDisplayProjectionSource) MarshalText

func (value ToolDisplayProjectionSource) MarshalText() ([]byte, error)

func (*ToolDisplayProjectionSource) UnmarshalJSON

func (value *ToolDisplayProjectionSource) UnmarshalJSON(data []byte) error

func (*ToolDisplayProjectionSource) UnmarshalText

func (value *ToolDisplayProjectionSource) UnmarshalText(data []byte) error

type ToolDisplayProjectionTable

type ToolDisplayProjectionTable struct {
	Columns   ToolDisplayProjectionReference  `json:"columns"`
	Rows      ToolDisplayProjectionReference  `json:"rows"`
	Truncated *ToolDisplayProjectionReference `json:"truncated"`
	Cell      ToolDisplayProjectionTableCell  `json:"cell"`
}

func DefaultToolDisplayProjectionTable

func DefaultToolDisplayProjectionTable() ToolDisplayProjectionTable

func (ToolDisplayProjectionTable) MarshalJSON

func (value ToolDisplayProjectionTable) MarshalJSON() ([]byte, error)

func (*ToolDisplayProjectionTable) UnmarshalJSON

func (value *ToolDisplayProjectionTable) UnmarshalJSON(data []byte) error

type ToolDisplayProjectionTableBytes

type ToolDisplayProjectionTableBytes string
const (
	ToolDisplayProjectionTableBytesHex ToolDisplayProjectionTableBytes = "hex"
)

func (ToolDisplayProjectionTableBytes) MarshalJSON

func (value ToolDisplayProjectionTableBytes) MarshalJSON() ([]byte, error)

func (ToolDisplayProjectionTableBytes) MarshalText

func (value ToolDisplayProjectionTableBytes) MarshalText() ([]byte, error)

func (*ToolDisplayProjectionTableBytes) UnmarshalJSON

func (value *ToolDisplayProjectionTableBytes) UnmarshalJSON(data []byte) error

func (*ToolDisplayProjectionTableBytes) UnmarshalText

func (value *ToolDisplayProjectionTableBytes) UnmarshalText(data []byte) error

type ToolDisplayProjectionTableCell

type ToolDisplayProjectionTableCell struct {
	Value   string                           `json:"value"`
	Missing string                           `json:"missing"`
	Bytes   *ToolDisplayProjectionTableBytes `json:"bytes"`
}

func DefaultToolDisplayProjectionTableCell

func DefaultToolDisplayProjectionTableCell() ToolDisplayProjectionTableCell

func (ToolDisplayProjectionTableCell) MarshalJSON

func (value ToolDisplayProjectionTableCell) MarshalJSON() ([]byte, error)

func (*ToolDisplayProjectionTableCell) UnmarshalJSON

func (value *ToolDisplayProjectionTableCell) UnmarshalJSON(data []byte) error

type ToolDisplayProjectionText

type ToolDisplayProjectionText struct {
	Parts     []ToolDisplayProjectionPart `json:"parts"`
	Separator string                      `json:"separator"`
}

func DefaultToolDisplayProjectionText

func DefaultToolDisplayProjectionText() ToolDisplayProjectionText

func (ToolDisplayProjectionText) MarshalJSON

func (value ToolDisplayProjectionText) MarshalJSON() ([]byte, error)

func (*ToolDisplayProjectionText) UnmarshalJSON

func (value *ToolDisplayProjectionText) UnmarshalJSON(data []byte) error

type ToolDisplayProjectionValueFormat

type ToolDisplayProjectionValueFormat string
const (
	ToolDisplayProjectionValueFormatJson ToolDisplayProjectionValueFormat = "json"
)

func (ToolDisplayProjectionValueFormat) MarshalJSON

func (value ToolDisplayProjectionValueFormat) MarshalJSON() ([]byte, error)

func (ToolDisplayProjectionValueFormat) MarshalText

func (value ToolDisplayProjectionValueFormat) MarshalText() ([]byte, error)

func (*ToolDisplayProjectionValueFormat) UnmarshalJSON

func (value *ToolDisplayProjectionValueFormat) UnmarshalJSON(data []byte) error

func (*ToolDisplayProjectionValueFormat) UnmarshalText

func (value *ToolDisplayProjectionValueFormat) UnmarshalText(data []byte) error

type ToolFailure

type ToolFailure struct {
	Code   *ErrorCode        `json:"code,omitempty"`
	Origin ToolFailureOrigin `json:"origin"`
}

func DefaultToolFailure

func DefaultToolFailure() ToolFailure

func (*ToolFailure) DecodeJSON

func (value *ToolFailure) DecodeJSON(decoder *Decoder) error

func (ToolFailure) MarshalJSON

func (value ToolFailure) MarshalJSON() ([]byte, error)

func (*ToolFailure) UnmarshalJSON

func (value *ToolFailure) UnmarshalJSON(data []byte) error

type ToolFailureOrigin

type ToolFailureOrigin string
const (
	ToolFailureOriginRuntime ToolFailureOrigin = "runtime"
	ToolFailureOriginTool    ToolFailureOrigin = "tool"
)

func (ToolFailureOrigin) MarshalJSON

func (value ToolFailureOrigin) MarshalJSON() ([]byte, error)

func (ToolFailureOrigin) MarshalText

func (value ToolFailureOrigin) MarshalText() ([]byte, error)

func (*ToolFailureOrigin) UnmarshalJSON

func (value *ToolFailureOrigin) UnmarshalJSON(data []byte) error

func (*ToolFailureOrigin) UnmarshalText

func (value *ToolFailureOrigin) UnmarshalText(data []byte) error

type ToolFlow

type ToolFlow struct {
	Operations   []ToolOperation `json:"operations"`
	MessageChars *uint64         `json:"message_chars"`
}

func DefaultToolFlow

func DefaultToolFlow() ToolFlow

func (ToolFlow) MarshalJSON

func (value ToolFlow) MarshalJSON() ([]byte, error)

func (*ToolFlow) UnmarshalJSON

func (value *ToolFlow) UnmarshalJSON(data []byte) error

type ToolGrouping

type ToolGrouping string
const (
	ToolGroupingSequence   ToolGrouping = "sequence"
	ToolGroupingStandalone ToolGrouping = "standalone"
)

func (*ToolGrouping) DecodeJSON

func (value *ToolGrouping) DecodeJSON(decoder *Decoder) error

func (ToolGrouping) MarshalJSON

func (value ToolGrouping) MarshalJSON() ([]byte, error)

func (ToolGrouping) MarshalText

func (value ToolGrouping) MarshalText() ([]byte, error)

func (*ToolGrouping) UnmarshalJSON

func (value *ToolGrouping) UnmarshalJSON(data []byte) error

func (*ToolGrouping) UnmarshalText

func (value *ToolGrouping) UnmarshalText(data []byte) error

type ToolHandler

type ToolHandler struct {
	Name       string          `json:"name"`
	Parameters json.RawMessage `json:"parameters"`
	ReadOnly   bool            `json:"read_only"`
	Operation  *ToolOperation  `json:"operation"`
	Flow       *ToolFlow       `json:"flow"`
	Result     *string         `json:"result"`
	// Approval makes a plain handler's call ask for the ordinary tool
	// approval, which it otherwise never does.
	Approval bool `json:"approval,omitempty"`
}

func DefaultToolHandler

func DefaultToolHandler() ToolHandler

func (ToolHandler) MarshalJSON

func (value ToolHandler) MarshalJSON() ([]byte, error)

func (*ToolHandler) UnmarshalJSON

func (value *ToolHandler) UnmarshalJSON(data []byte) error

type ToolOperation

type ToolOperation string
const (
	ToolOperationInstallModel            ToolOperation = "models.install"
	ToolOperationRemoveModel             ToolOperation = "models.remove"
	ToolOperationListRoles               ToolOperation = "roles.list"
	ToolOperationSaveRole                ToolOperation = "roles.save"
	ToolOperationRemoveRole              ToolOperation = "roles.remove"
	ToolOperationApplyRoles              ToolOperation = "roles.apply"
	ToolOperationReadArtifact            ToolOperation = "artifacts.read"
	ToolOperationListArtifacts           ToolOperation = "artifacts.list"
	ToolOperationListArtifactRevisions   ToolOperation = "artifacts.revisions"
	ToolOperationWriteArtifact           ToolOperation = "artifacts.write"
	ToolOperationSearchCode              ToolOperation = "code.search"
	ToolOperationOutlineCode             ToolOperation = "code.outline"
	ToolOperationGraphCode               ToolOperation = "code.graph"
	ToolOperationCodePackages            ToolOperation = "code.packages"
	ToolOperationCodeCatalog             ToolOperation = "code.catalog"
	ToolOperationCodeServers             ToolOperation = "code.servers"
	ToolOperationStartCodeServer         ToolOperation = "code.start"
	ToolOperationStopCodeServer          ToolOperation = "code.stop"
	ToolOperationInstallCodeServer       ToolOperation = "code.install"
	ToolOperationUninstallCodeServer     ToolOperation = "code.uninstall"
	ToolOperationCodeDiagnostics         ToolOperation = "code.diagnostics"
	ToolOperationCodeDefinition          ToolOperation = "code.definition"
	ToolOperationCodeReferences          ToolOperation = "code.references"
	ToolOperationCodeHover               ToolOperation = "code.hover"
	ToolOperationCodeSymbols             ToolOperation = "code.symbols"
	ToolOperationInspectGit              ToolOperation = "git.status"
	ToolOperationReadGitDiff             ToolOperation = "git.diff"
	ToolOperationReadGitLog              ToolOperation = "git.log"
	ToolOperationReadGitShow             ToolOperation = "git.show"
	ToolOperationReadGitBlame            ToolOperation = "git.blame"
	ToolOperationListGitChanges          ToolOperation = "git.changes"
	ToolOperationReadGitChange           ToolOperation = "git.change"
	ToolOperationListWorktrees           ToolOperation = "worktrees.list"
	ToolOperationCreateManagedWorktree   ToolOperation = "worktrees.create"
	ToolOperationRegisterWorktree        ToolOperation = "worktrees.register"
	ToolOperationRemoveWorktree          ToolOperation = "worktrees.remove"
	ToolOperationListDatabaseConnections ToolOperation = "databases.connections"
	ToolOperationSaveDatabaseConnection  ToolOperation = "databases.save"
	ToolOperationListSshConnections      ToolOperation = "ssh.connections"
	ToolOperationSaveSshConnection       ToolOperation = "ssh.save"
	ToolOperationBrowseDatabase          ToolOperation = "databases.catalog"
	ToolOperationQueryDatabase           ToolOperation = "databases.query"
	ToolOperationExecuteDatabase         ToolOperation = "databases.execute"
	ToolOperationRunSsh                  ToolOperation = "ssh.run"
	ToolOperationTransferSsh             ToolOperation = "ssh.transfer"
	ToolOperationDelegateAgent           ToolOperation = "agents.delegate"
	ToolOperationGuideAgent              ToolOperation = "agents.guide"
	ToolOperationWaitAgent               ToolOperation = "agents.wait"
	ToolOperationListDirectory           ToolOperation = "files.list"
	ToolOperationReadFile                ToolOperation = "files.read"
	ToolOperationReadFileLines           ToolOperation = "files.read_lines"
	ToolOperationWriteFile               ToolOperation = "files.write"
	ToolOperationEditFile                ToolOperation = "files.edit"
	ToolOperationDeleteFile              ToolOperation = "files.delete"
	ToolOperationMoveFile                ToolOperation = "files.move"
	ToolOperationApplyChanges            ToolOperation = "files.apply"
	ToolOperationCreateDirectory         ToolOperation = "files.mkdir"
	ToolOperationFindFiles               ToolOperation = "files.find"
	ToolOperationSearchFiles             ToolOperation = "files.search"
	ToolOperationReadOffice              ToolOperation = "office.read"
	ToolOperationReadNotebook            ToolOperation = "notebook.read"
	ToolOperationEditNotebook            ToolOperation = "notebook.edit"
	ToolOperationInspectMedia            ToolOperation = "media.inspect"
	ToolOperationGenerateImage           ToolOperation = "media.image"
	ToolOperationGenerateVideo           ToolOperation = "media.video"
	ToolOperationReadComputer            ToolOperation = "computer.read"
	ToolOperationControlComputer         ToolOperation = "computer.control"
	ToolOperationReadBrowser             ToolOperation = "browser.read"
	ToolOperationControlBrowser          ToolOperation = "browser.control"
	ToolOperationReadExternalBrowser     ToolOperation = "external_browser.read"
	ToolOperationControlExternalBrowser  ToolOperation = "external_browser.control"
	ToolOperationHttp                    ToolOperation = "http.request"
	ToolOperationFetchWeb                ToolOperation = "web.fetch"
	ToolOperationSearchWeb               ToolOperation = "web.search"
	ToolOperationProgress                ToolOperation = "progress.update"
	ToolOperationGetValue                ToolOperation = "storage.get"
	ToolOperationListKeys                ToolOperation = "storage.list"
	ToolOperationSetValue                ToolOperation = "storage.set"
	ToolOperationDeleteValue             ToolOperation = "storage.delete"
	ToolOperationStorageTransaction      ToolOperation = "storage.transaction"
	ToolOperationKnowledgeQuery          ToolOperation = "knowledge.query"
	ToolOperationKnowledgeRead           ToolOperation = "knowledge.read"
	ToolOperationKnowledgeCollections    ToolOperation = "knowledge.collections"
	ToolOperationKnowledgeCreate         ToolOperation = "knowledge.create"
	ToolOperationKnowledgeRebuild        ToolOperation = "knowledge.rebuild"
	ToolOperationKnowledgeRemove         ToolOperation = "knowledge.remove"
	ToolOperationReadSettings            ToolOperation = "settings.read"
	ToolOperationRunCommand              ToolOperation = "process.run"
	ToolOperationReadCommand             ToolOperation = "process.read"
	ToolOperationStopCommand             ToolOperation = "process.stop"
	ToolOperationWriteCommand            ToolOperation = "process.write"
)

func (ToolOperation) MarshalJSON

func (value ToolOperation) MarshalJSON() ([]byte, error)

func (ToolOperation) MarshalText

func (value ToolOperation) MarshalText() ([]byte, error)

func (*ToolOperation) UnmarshalJSON

func (value *ToolOperation) UnmarshalJSON(data []byte) error

func (*ToolOperation) UnmarshalText

func (value *ToolOperation) UnmarshalText(data []byte) error

type ToolOutputOutputPage

type ToolOutputOutputPage struct {
	Turn       TurnID                    `json:"turn"`
	Output     ToolOutputOutputReference `json:"output"`
	Offset     uint64                    `json:"offset"`
	TotalBytes uint64                    `json:"total_bytes"`
	NextOffset *uint64                   `json:"next_offset"`
	Text       string                    `json:"text"`
}

func DefaultToolOutputOutputPage

func DefaultToolOutputOutputPage() ToolOutputOutputPage

func (ToolOutputOutputPage) MarshalJSON

func (value ToolOutputOutputPage) MarshalJSON() ([]byte, error)

func (*ToolOutputOutputPage) UnmarshalJSON

func (value *ToolOutputOutputPage) UnmarshalJSON(data []byte) error

type ToolOutputOutputReference

type ToolOutputOutputReference struct {
	Call     string `json:"call"`
	Revision string `json:"revision"`
}

func DefaultToolOutputOutputReference

func DefaultToolOutputOutputReference() ToolOutputOutputReference

func (ToolOutputOutputReference) MarshalJSON

func (value ToolOutputOutputReference) MarshalJSON() ([]byte, error)

func (*ToolOutputOutputReference) UnmarshalJSON

func (value *ToolOutputOutputReference) UnmarshalJSON(data []byte) error

type ToolPresentation

type ToolPresentation string
const (
	ToolPresentationSummary  ToolPresentation = "summary"
	ToolPresentationHidden   ToolPresentation = "hidden"
	ToolPresentationProgress ToolPresentation = "progress"
	ToolPresentationContent  ToolPresentation = "content"
	ToolPresentationDetails  ToolPresentation = "details"
)

func (*ToolPresentation) DecodeJSON

func (value *ToolPresentation) DecodeJSON(decoder *Decoder) error

func (ToolPresentation) MarshalJSON

func (value ToolPresentation) MarshalJSON() ([]byte, error)

func (ToolPresentation) MarshalText

func (value ToolPresentation) MarshalText() ([]byte, error)

func (*ToolPresentation) UnmarshalJSON

func (value *ToolPresentation) UnmarshalJSON(data []byte) error

func (*ToolPresentation) UnmarshalText

func (value *ToolPresentation) UnmarshalText(data []byte) error

type ToolResultDiagnostic

type ToolResultDiagnostic struct {
	Text  string `json:"text"`
	Error bool   `json:"error"`
}

func DefaultToolResultDiagnostic

func DefaultToolResultDiagnostic() ToolResultDiagnostic

func (ToolResultDiagnostic) MarshalJSON

func (value ToolResultDiagnostic) MarshalJSON() ([]byte, error)

func (*ToolResultDiagnostic) UnmarshalJSON

func (value *ToolResultDiagnostic) UnmarshalJSON(data []byte) error

type ToolResultExpected

type ToolResultExpected string
const (
	ToolResultExpectedDirectoryNotFound ToolResultExpected = "directory_not_found"
	ToolResultExpectedFileNotFound      ToolResultExpected = "file_not_found"
)

func (*ToolResultExpected) DecodeJSON

func (value *ToolResultExpected) DecodeJSON(decoder *Decoder) error

func (ToolResultExpected) MarshalJSON

func (value ToolResultExpected) MarshalJSON() ([]byte, error)

func (ToolResultExpected) MarshalText

func (value ToolResultExpected) MarshalText() ([]byte, error)

func (*ToolResultExpected) UnmarshalJSON

func (value *ToolResultExpected) UnmarshalJSON(data []byte) error

func (*ToolResultExpected) UnmarshalText

func (value *ToolResultExpected) UnmarshalText(data []byte) error

type ToolResultLocalText

type ToolResultLocalText struct {
	Label   string            `json:"label"`
	Locales map[string]string `json:"locales"`
}

func DefaultToolResultLocalText

func DefaultToolResultLocalText() ToolResultLocalText

func (ToolResultLocalText) MarshalJSON

func (value ToolResultLocalText) MarshalJSON() ([]byte, error)

func (*ToolResultLocalText) UnmarshalJSON

func (value *ToolResultLocalText) UnmarshalJSON(data []byte) error

type ToolResultResultDisplay

type ToolResultResultDisplay struct {
	Version     uint32                 `json:"version"`
	Diagnostics []ToolResultDiagnostic `json:"diagnostics"`
	Status      *ToolResultLocalText   `json:"status"`
	Expected    *ToolResultExpected    `json:"expected,omitempty"`
}

func DefaultToolResultResultDisplay

func DefaultToolResultResultDisplay() ToolResultResultDisplay

func (ToolResultResultDisplay) MarshalJSON

func (value ToolResultResultDisplay) MarshalJSON() ([]byte, error)

func (*ToolResultResultDisplay) UnmarshalJSON

func (value *ToolResultResultDisplay) UnmarshalJSON(data []byte) error

type Topic

type Topic struct {
	Kind string
	Data any
}

func (Topic) MarshalJSON

func (value Topic) MarshalJSON() ([]byte, error)

func (*Topic) UnmarshalJSON

func (value *Topic) UnmarshalJSON(data []byte) error

type TurnID

type TurnID [16]byte

func NewTurnID

func NewTurnID() TurnID

func ParseTurnID

func ParseTurnID(value string) (TurnID, error)

func (*TurnID) DecodeJSON

func (identity *TurnID) DecodeJSON(decoder *Decoder) error

func (TurnID) MarshalJSON

func (identity TurnID) MarshalJSON() ([]byte, error)

func (TurnID) MarshalText

func (identity TurnID) MarshalText() ([]byte, error)

func (TurnID) String

func (identity TurnID) String() string

func (*TurnID) UnmarshalJSON

func (identity *TurnID) UnmarshalJSON(data []byte) error

func (*TurnID) UnmarshalText

func (identity *TurnID) UnmarshalText(data []byte) error

type TurnSummary

type TurnSummary struct {
	ID      TurnID    `json:"id"`
	Session SessionID `json:"session"`
	Request RequestID `json:"request"`
}

func DefaultTurnSummary

func DefaultTurnSummary() TurnSummary

func (*TurnSummary) DecodeJSON

func (value *TurnSummary) DecodeJSON(decoder *Decoder) error

func (TurnSummary) MarshalJSON

func (value TurnSummary) MarshalJSON() ([]byte, error)

func (*TurnSummary) UnmarshalJSON

func (value *TurnSummary) UnmarshalJSON(data []byte) error

type Unit

type Unit struct{}

Unit carries the JSON null used by Rust's unit type.

func (Unit) MarshalJSON

func (Unit) MarshalJSON() ([]byte, error)

func (*Unit) UnmarshalJSON

func (*Unit) UnmarshalJSON(data []byte) error

type UnknownVariant

type UnknownVariant json.RawMessage

UnknownVariant is the content of a union variant this build does not declare: the whole union value as the peer sent it. The union's Kind holds the undeclared name, so a switch over known kinds takes its default branch. Encoding the union writes these bytes back.

type Update

type Update struct {
	Kind string
	Data any
}

func (Update) MarshalJSON

func (value Update) MarshalJSON() ([]byte, error)

func (*Update) UnmarshalJSON

func (value *Update) UnmarshalJSON(data []byte) error

type UpdateCommandsPayload

type UpdateCommandsPayload struct {
	Node    NodeID        `json:"node"`
	Session SessionID     `json:"session"`
	Items   []ProcessInfo `json:"items"`
}

func DefaultUpdateCommandsPayload

func DefaultUpdateCommandsPayload() UpdateCommandsPayload

func (UpdateCommandsPayload) MarshalJSON

func (value UpdateCommandsPayload) MarshalJSON() ([]byte, error)

func (*UpdateCommandsPayload) UnmarshalJSON

func (value *UpdateCommandsPayload) UnmarshalJSON(data []byte) error

type UpdateFilesChangedPayload

type UpdateFilesChangedPayload struct {
	Node       NodeID     `json:"node"`
	Worktree   WorktreeID `json:"worktree"`
	References uint64     `json:"references"`
}

func DefaultUpdateFilesChangedPayload

func DefaultUpdateFilesChangedPayload() UpdateFilesChangedPayload

func (UpdateFilesChangedPayload) MarshalJSON

func (value UpdateFilesChangedPayload) MarshalJSON() ([]byte, error)

func (*UpdateFilesChangedPayload) UnmarshalJSON

func (value *UpdateFilesChangedPayload) UnmarshalJSON(data []byte) error

type UpdateInstallationsPayload

type UpdateInstallationsPayload struct {
	Node  NodeID             `json:"node"`
	Tasks []InstallationTask `json:"tasks"`
}

func DefaultUpdateInstallationsPayload

func DefaultUpdateInstallationsPayload() UpdateInstallationsPayload

func (UpdateInstallationsPayload) MarshalJSON

func (value UpdateInstallationsPayload) MarshalJSON() ([]byte, error)

func (*UpdateInstallationsPayload) UnmarshalJSON

func (value *UpdateInstallationsPayload) UnmarshalJSON(data []byte) error

type UpdatePythonPayload

type UpdatePythonPayload struct {
	Node         NodeID              `json:"node"`
	Preparations []PythonPreparation `json:"preparations"`
}

func DefaultUpdatePythonPayload

func DefaultUpdatePythonPayload() UpdatePythonPayload

func (UpdatePythonPayload) MarshalJSON

func (value UpdatePythonPayload) MarshalJSON() ([]byte, error)

func (*UpdatePythonPayload) UnmarshalJSON

func (value *UpdatePythonPayload) UnmarshalJSON(data []byte) error

type UsageCost

type UsageCost struct {
	UsdMicros uint64              `json:"usd_micros"`
	Responses uint64              `json:"responses"`
	Breakdown *UsageCostBreakdown `json:"breakdown"`
}

func DefaultUsageCost

func DefaultUsageCost() UsageCost

func (UsageCost) MarshalJSON

func (value UsageCost) MarshalJSON() ([]byte, error)

func (*UsageCost) UnmarshalJSON

func (value *UsageCost) UnmarshalJSON(data []byte) error

type UsageCostBreakdown

type UsageCostBreakdown struct {
	Input      uint64 `json:"input"`
	Output     uint64 `json:"output"`
	CacheRead  uint64 `json:"cache_read"`
	CacheWrite uint64 `json:"cache_write"`
}

func DefaultUsageCostBreakdown

func DefaultUsageCostBreakdown() UsageCostBreakdown

func (UsageCostBreakdown) MarshalJSON

func (value UsageCostBreakdown) MarshalJSON() ([]byte, error)

func (*UsageCostBreakdown) UnmarshalJSON

func (value *UsageCostBreakdown) UnmarshalJSON(data []byte) error

type UsageDimension

type UsageDimension string
const (
	UsageDimensionProvider UsageDimension = "provider"
	UsageDimensionModel    UsageDimension = "model"
	UsageDimensionProject  UsageDimension = "project"
	UsageDimensionWorktree UsageDimension = "worktree"
)

func (UsageDimension) MarshalJSON

func (value UsageDimension) MarshalJSON() ([]byte, error)

func (UsageDimension) MarshalText

func (value UsageDimension) MarshalText() ([]byte, error)

func (*UsageDimension) UnmarshalJSON

func (value *UsageDimension) UnmarshalJSON(data []byte) error

func (*UsageDimension) UnmarshalText

func (value *UsageDimension) UnmarshalText(data []byte) error

type UsageGeneration

type UsageGeneration struct {
	ElapsedUs    uint64 `json:"elapsed_us"`
	OutputTokens uint64 `json:"output_tokens"`
	Responses    uint64 `json:"responses"`
}

func DefaultUsageGeneration

func DefaultUsageGeneration() UsageGeneration

func (UsageGeneration) MarshalJSON

func (value UsageGeneration) MarshalJSON() ([]byte, error)

func (*UsageGeneration) UnmarshalJSON

func (value *UsageGeneration) UnmarshalJSON(data []byte) error

type UsageGroup

type UsageGroup struct {
	Key     UsageKey     `json:"key"`
	Name    *string      `json:"name"`
	Metrics UsageMetrics `json:"metrics"`
}

func DefaultUsageGroup

func DefaultUsageGroup() UsageGroup

func (UsageGroup) MarshalJSON

func (value UsageGroup) MarshalJSON() ([]byte, error)

func (*UsageGroup) UnmarshalJSON

func (value *UsageGroup) UnmarshalJSON(data []byte) error

type UsageKey

type UsageKey struct {
	Kind string
	Data any
}

func (UsageKey) MarshalJSON

func (value UsageKey) MarshalJSON() ([]byte, error)

func (*UsageKey) UnmarshalJSON

func (value *UsageKey) UnmarshalJSON(data []byte) error

type UsageKeyAssistantPayload

type UsageKeyAssistantPayload struct {
	Package string `json:"package"`
	ID      string `json:"id"`
}

func DefaultUsageKeyAssistantPayload

func DefaultUsageKeyAssistantPayload() UsageKeyAssistantPayload

func (UsageKeyAssistantPayload) MarshalJSON

func (value UsageKeyAssistantPayload) MarshalJSON() ([]byte, error)

func (*UsageKeyAssistantPayload) UnmarshalJSON

func (value *UsageKeyAssistantPayload) UnmarshalJSON(data []byte) error

type UsageKeyModelPayload

type UsageKeyModelPayload struct {
	Provider ProviderID `json:"provider"`
	Model    string     `json:"model"`
}

func DefaultUsageKeyModelPayload

func DefaultUsageKeyModelPayload() UsageKeyModelPayload

func (UsageKeyModelPayload) MarshalJSON

func (value UsageKeyModelPayload) MarshalJSON() ([]byte, error)

func (*UsageKeyModelPayload) UnmarshalJSON

func (value *UsageKeyModelPayload) UnmarshalJSON(data []byte) error

type UsageKeyWorktreePayload

type UsageKeyWorktreePayload struct {
	Project  ProjectID  `json:"project"`
	Worktree WorktreeID `json:"worktree"`
}

func DefaultUsageKeyWorktreePayload

func DefaultUsageKeyWorktreePayload() UsageKeyWorktreePayload

func (UsageKeyWorktreePayload) MarshalJSON

func (value UsageKeyWorktreePayload) MarshalJSON() ([]byte, error)

func (*UsageKeyWorktreePayload) UnmarshalJSON

func (value *UsageKeyWorktreePayload) UnmarshalJSON(data []byte) error

type UsageMetrics

type UsageMetrics struct {
	Responses  uint64             `json:"responses"`
	Tokens     *ConversationUsage `json:"tokens"`
	Cost       *UsageCost         `json:"cost"`
	Generation *UsageGeneration   `json:"generation"`
	// Throughput pairs upstream output with full request durations, including first-token waits.
	Throughput *UsageGeneration `json:"throughput,omitempty"`

	// IncompleteTokenResponses counts responses left out of the Tokens subtotal.
	IncompleteTokenResponses uint64 `json:"incomplete_token_responses,omitempty"`
}

func DefaultUsageMetrics

func DefaultUsageMetrics() UsageMetrics

func (UsageMetrics) MarshalJSON

func (value UsageMetrics) MarshalJSON() ([]byte, error)

func (*UsageMetrics) UnmarshalJSON

func (value *UsageMetrics) UnmarshalJSON(data []byte) error

type UsagePage

type UsagePage struct {
	Items   []UsageRequest `json:"items"`
	HasMore bool           `json:"has_more"`
}

func DefaultUsagePage

func DefaultUsagePage() UsagePage

func (UsagePage) MarshalJSON

func (value UsagePage) MarshalJSON() ([]byte, error)

func (*UsagePage) UnmarshalJSON

func (value *UsagePage) UnmarshalJSON(data []byte) error

type UsagePoint

type UsagePoint struct {
	StartMs int64                        `json:"start_ms"`
	Metrics UsageMetrics                 `json:"metrics"`
	Models  map[string]ConversationUsage `json:"models"`
}

func DefaultUsagePoint

func DefaultUsagePoint() UsagePoint

func (UsagePoint) MarshalJSON

func (value UsagePoint) MarshalJSON() ([]byte, error)

func (*UsagePoint) UnmarshalJSON

func (value *UsagePoint) UnmarshalJSON(data []byte) error

type UsagePosition

type UsagePosition struct {
	TimestampMs int64  `json:"timestamp_ms"`
	Node        NodeID `json:"node"`
	Sequence    uint64 `json:"sequence"`
}

func DefaultUsagePosition

func DefaultUsagePosition() UsagePosition

func (UsagePosition) MarshalJSON

func (value UsagePosition) MarshalJSON() ([]byte, error)

func (*UsagePosition) UnmarshalJSON

func (value *UsagePosition) UnmarshalJSON(data []byte) error

type UsageQuery

type UsageQuery struct {
	StartMs          int64          `json:"start_ms"`
	EndMs            int64          `json:"end_ms"`
	UtcOffsetMinutes int32          `json:"utc_offset_minutes"`
	Dimension        UsageDimension `json:"dimension"`
	Projects         []ProjectID    `json:"projects"`
	Worktrees        []WorktreeID   `json:"worktrees"`
	Providers        []ProviderID   `json:"providers"`
	Models           []string       `json:"models"`
	Before           *UsagePosition `json:"before"`
}

func DefaultUsageQuery

func DefaultUsageQuery() UsageQuery

func (UsageQuery) MarshalJSON

func (value UsageQuery) MarshalJSON() ([]byte, error)

func (*UsageQuery) UnmarshalJSON

func (value *UsageQuery) UnmarshalJSON(data []byte) error

type UsageReport

type UsageReport struct {
	Node               NodeID       `json:"node"`
	Cursor             uint64       `json:"cursor"`
	PricingUpdatedAtMs *uint64      `json:"pricing_updated_at_ms"`
	Query              UsageQuery   `json:"query"`
	Totals             UsageMetrics `json:"totals"`
	Days               []UsagePoint `json:"days"`
	Recent             []UsagePoint `json:"recent"`
	Groups             []UsageGroup `json:"groups"`
	Resources          []UsageKey   `json:"resources"`
	Requests           UsagePage    `json:"requests"`
}

func DefaultUsageReport

func DefaultUsageReport() UsageReport

func (UsageReport) MarshalJSON

func (value UsageReport) MarshalJSON() ([]byte, error)

func (*UsageReport) UnmarshalJSON

func (value *UsageReport) UnmarshalJSON(data []byte) error

type UsageRequest

type UsageRequest struct {
	Position     UsagePosition     `json:"position"`
	Session      SessionID         `json:"session"`
	SessionTitle *string           `json:"session_title"`
	Turn         TurnID            `json:"turn"`
	Project      *ProjectID        `json:"project"`
	ScopeName    string            `json:"scope_name"`
	Worktree     WorktreeID        `json:"worktree"`
	Provider     ProviderID        `json:"provider"`
	ProviderName string            `json:"provider_name"`
	Model        string            `json:"model"`
	Tokens       ConversationUsage `json:"tokens"`
	UsdMicros    *uint64           `json:"usd_micros"`
	ElapsedUs    *uint64           `json:"elapsed_us"`
	FirstTokenUs *uint64           `json:"first_token_us"`

	// A missing counter occupies the old wire's numeric slot but is not a measured zero.
	MissingInputTokens  bool `json:"missing_input_tokens,omitempty"`
	MissingOutputTokens bool `json:"missing_output_tokens,omitempty"`

	// The legacy cached_input slot cannot distinguish a reported zero from an absent count.
	CachedInputReported bool    `json:"cached_input_reported,omitempty"`
	CacheWrite          *uint64 `json:"cache_write,omitempty"`
}

func DefaultUsageRequest

func DefaultUsageRequest() UsageRequest

func (UsageRequest) MarshalJSON

func (value UsageRequest) MarshalJSON() ([]byte, error)

func (*UsageRequest) UnmarshalJSON

func (value *UsageRequest) UnmarshalJSON(data []byte) error

type User

type User struct {
	ID            UserID  `json:"id"`
	Name          string  `json:"name"`
	Administrator bool    `json:"administrator"`
	Local         bool    `json:"local"`
	State         string  `json:"state"`
	MergedInto    *UserID `json:"merged_into,omitempty"`
	Controller    *NodeID `json:"controller,omitempty"`
}

User identifies one local group of controller devices on an execution Node. Its identity has no meaning on another Node.

func (*User) DecodeJSON

func (value *User) DecodeJSON(decoder *Decoder) error

func (*User) UnmarshalJSON

func (value *User) UnmarshalJSON(data []byte) error

type UserAdministrator

type UserAdministrator struct {
	User          UserID `json:"user"`
	Administrator bool   `json:"administrator"`
}

func (*UserAdministrator) UnmarshalJSON

func (value *UserAdministrator) UnmarshalJSON(data []byte) error

type UserDevice

type UserDevice struct {
	Device    NodeID `json:"device"`
	User      UserID `json:"user"`
	Direction string `json:"direction"`
	MyDevice  bool   `json:"my_device"`
}

func (*UserDevice) UnmarshalJSON

func (value *UserDevice) UnmarshalJSON(data []byte) error

type UserID

type UserID [16]byte

func NewUserID

func NewUserID() UserID

func ParseUserID

func ParseUserID(value string) (UserID, error)

func (*UserID) DecodeJSON

func (identity *UserID) DecodeJSON(decoder *Decoder) error

func (UserID) MarshalJSON

func (identity UserID) MarshalJSON() ([]byte, error)

func (UserID) MarshalText

func (identity UserID) MarshalText() ([]byte, error)

func (UserID) String

func (identity UserID) String() string

func (*UserID) UnmarshalJSON

func (identity *UserID) UnmarshalJSON(data []byte) error

func (*UserID) UnmarshalText

func (identity *UserID) UnmarshalText(data []byte) error

type WebPage

type WebPage struct {
	Url         string  `json:"url"`
	Status      uint16  `json:"status"`
	ContentType string  `json:"content_type"`
	Content     string  `json:"content"`
	Title       *string `json:"title"`
	NextOffset  *uint64 `json:"next_offset"`
	Truncated   bool    `json:"truncated"`
	Untrusted   bool    `json:"untrusted"`
	Notice      *string `json:"notice,omitempty"`
}

func DefaultWebPage

func DefaultWebPage() WebPage

func (WebPage) MarshalJSON

func (value WebPage) MarshalJSON() ([]byte, error)

func (*WebPage) UnmarshalJSON

func (value *WebPage) UnmarshalJSON(data []byte) error

type WebRequest

type WebRequest struct {
	Url    string `json:"url"`
	Offset uint64 `json:"offset"`
}

func DefaultWebRequest

func DefaultWebRequest() WebRequest

func (WebRequest) MarshalJSON

func (value WebRequest) MarshalJSON() ([]byte, error)

func (*WebRequest) UnmarshalJSON

func (value *WebRequest) UnmarshalJSON(data []byte) error

type WorkMode

type WorkMode string
const (
	WorkModePlan     WorkMode = "plan"
	WorkModeCode     WorkMode = "code"
	WorkModeFlagship WorkMode = "flagship"
)

func (*WorkMode) DecodeJSON

func (value *WorkMode) DecodeJSON(decoder *Decoder) error

func (WorkMode) MarshalJSON

func (value WorkMode) MarshalJSON() ([]byte, error)

func (WorkMode) MarshalText

func (value WorkMode) MarshalText() ([]byte, error)

func (*WorkMode) UnmarshalJSON

func (value *WorkMode) UnmarshalJSON(data []byte) error

func (*WorkMode) UnmarshalText

func (value *WorkMode) UnmarshalText(data []byte) error

type Worktree

type Worktree struct {
	ID      WorktreeID `json:"id"`
	Project *ProjectID `json:"project"`
	Path    string     `json:"path"`
	Main    bool       `json:"main"`
}

func DefaultWorktree

func DefaultWorktree() Worktree

func (*Worktree) DecodeJSON

func (value *Worktree) DecodeJSON(decoder *Decoder) error

func (Worktree) MarshalJSON

func (value Worktree) MarshalJSON() ([]byte, error)

func (*Worktree) UnmarshalJSON

func (value *Worktree) UnmarshalJSON(data []byte) error

type WorktreeID

type WorktreeID [16]byte

func NewWorktreeID

func NewWorktreeID() WorktreeID

func ParseWorktreeID

func ParseWorktreeID(value string) (WorktreeID, error)

func (*WorktreeID) DecodeJSON

func (identity *WorktreeID) DecodeJSON(decoder *Decoder) error

func (WorktreeID) MarshalJSON

func (identity WorktreeID) MarshalJSON() ([]byte, error)

func (WorktreeID) MarshalText

func (identity WorktreeID) MarshalText() ([]byte, error)

func (WorktreeID) String

func (identity WorktreeID) String() string

func (*WorktreeID) UnmarshalJSON

func (identity *WorktreeID) UnmarshalJSON(data []byte) error

func (*WorktreeID) UnmarshalText

func (identity *WorktreeID) UnmarshalText(data []byte) error

type WslDistribution

type WslDistribution struct {
	Name    string `json:"name"`
	Version uint32 `json:"version"`
}

func DefaultWslDistribution

func DefaultWslDistribution() WslDistribution

func (WslDistribution) MarshalJSON

func (value WslDistribution) MarshalJSON() ([]byte, error)

func (*WslDistribution) UnmarshalJSON

func (value *WslDistribution) UnmarshalJSON(data []byte) error

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL