api

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSpec

func GetSpec() (swagger *openapi3.T, err error)

GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.

func GetSpecJSON

func GetSpecJSON() ([]byte, error)

GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.

func GetSwagger deprecated

func GetSwagger() (*openapi3.T, error)

GetSwagger returns the OpenAPI specification corresponding to the generated code in this file.

Deprecated: GetSwagger predates kin-openapi renaming openapi3.Swagger to openapi3.T. Use GetSpec instead. This wrapper is retained for backwards compatibility.

func NewAbortTurnRequest

func NewAbortTurnRequest(server string, sessionId SessionId, body AbortTurnJSONRequestBody) (*http.Request, error)

NewAbortTurnRequest calls the generic AbortTurn builder with application/json body

func NewAbortTurnRequestWithBody

func NewAbortTurnRequestWithBody(server string, sessionId SessionId, contentType string, body io.Reader) (*http.Request, error)

NewAbortTurnRequestWithBody constructs an http.Request for the AbortTurn method, with any body, and a specified content type

func NewCreateChatScheduleRequest

func NewCreateChatScheduleRequest(server string, body CreateChatScheduleJSONRequestBody) (*http.Request, error)

NewCreateChatScheduleRequest calls the generic CreateChatSchedule builder with application/json body

func NewCreateChatScheduleRequestWithBody

func NewCreateChatScheduleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateChatScheduleRequestWithBody constructs an http.Request for the CreateChatSchedule method, with any body, and a specified content type

func NewCreateSessionRequest

func NewCreateSessionRequest(server string, body CreateSessionJSONRequestBody) (*http.Request, error)

NewCreateSessionRequest calls the generic CreateSession builder with application/json body

func NewCreateSessionRequestWithBody

func NewCreateSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateSessionRequestWithBody constructs an http.Request for the CreateSession method, with any body, and a specified content type

func NewCreateTerminalRequest

func NewCreateTerminalRequest(server string, worktreeId WorktreeId, body CreateTerminalJSONRequestBody) (*http.Request, error)

NewCreateTerminalRequest calls the generic CreateTerminal builder with application/json body

func NewCreateTerminalRequestWithBody

func NewCreateTerminalRequestWithBody(server string, worktreeId WorktreeId, contentType string, body io.Reader) (*http.Request, error)

NewCreateTerminalRequestWithBody constructs an http.Request for the CreateTerminal method, with any body, and a specified content type

func NewDeleteChatScheduleRequest

func NewDeleteChatScheduleRequest(server string, scheduleId ScheduleId) (*http.Request, error)

NewDeleteChatScheduleRequest constructs an http.Request for the DeleteChatSchedule method

func NewEndSessionRequest

func NewEndSessionRequest(server string, sessionId SessionId) (*http.Request, error)

NewEndSessionRequest constructs an http.Request for the EndSession method

func NewGetActiveTurnRequest

func NewGetActiveTurnRequest(server string, sessionId SessionId) (*http.Request, error)

NewGetActiveTurnRequest constructs an http.Request for the GetActiveTurn method

func NewGetChatScheduleRequest

func NewGetChatScheduleRequest(server string, scheduleId ScheduleId) (*http.Request, error)

NewGetChatScheduleRequest constructs an http.Request for the GetChatSchedule method

func NewGetHealthRequest

func NewGetHealthRequest(server string) (*http.Request, error)

NewGetHealthRequest constructs an http.Request for the GetHealth method

func NewGetSessionRequest

func NewGetSessionRequest(server string, sessionId SessionId) (*http.Request, error)

NewGetSessionRequest constructs an http.Request for the GetSession method

func NewGetSubagentRequest

func NewGetSubagentRequest(server string, sessionId SessionId, subagentId SubagentId) (*http.Request, error)

NewGetSubagentRequest constructs an http.Request for the GetSubagent method

func NewGetTelemetryRequest

func NewGetTelemetryRequest(server string) (*http.Request, error)

NewGetTelemetryRequest constructs an http.Request for the GetTelemetry method

func NewGetTerminalRequest

func NewGetTerminalRequest(server string, worktreeId WorktreeId, terminalId TerminalId) (*http.Request, error)

NewGetTerminalRequest constructs an http.Request for the GetTerminal method

func NewGetWorkspaceRequest

func NewGetWorkspaceRequest(server string) (*http.Request, error)

NewGetWorkspaceRequest constructs an http.Request for the GetWorkspace method

func NewGetWorktreeChangesRequest

func NewGetWorktreeChangesRequest(server string, worktreeId WorktreeId) (*http.Request, error)

NewGetWorktreeChangesRequest constructs an http.Request for the GetWorktreeChanges method

func NewGetWorktreeRequest

func NewGetWorktreeRequest(server string, worktreeId WorktreeId) (*http.Request, error)

NewGetWorktreeRequest constructs an http.Request for the GetWorktree method

func NewLinkSessionTaskRequest

func NewLinkSessionTaskRequest(server string, sessionId openapi_types.UUID, body LinkSessionTaskJSONRequestBody) (*http.Request, error)

NewLinkSessionTaskRequest calls the generic LinkSessionTask builder with application/json body

func NewLinkSessionTaskRequestWithBody

func NewLinkSessionTaskRequestWithBody(server string, sessionId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewLinkSessionTaskRequestWithBody constructs an http.Request for the LinkSessionTask method, with any body, and a specified content type

func NewListChatSchedulesRequest

func NewListChatSchedulesRequest(server string) (*http.Request, error)

NewListChatSchedulesRequest constructs an http.Request for the ListChatSchedules method

func NewListModelsRequest

func NewListModelsRequest(server string) (*http.Request, error)

NewListModelsRequest constructs an http.Request for the ListModels method

func NewListRepositoriesRequest

func NewListRepositoriesRequest(server string) (*http.Request, error)

NewListRepositoriesRequest constructs an http.Request for the ListRepositories method

func NewListSessionRequestsRequest

func NewListSessionRequestsRequest(server string, sessionId SessionId) (*http.Request, error)

NewListSessionRequestsRequest constructs an http.Request for the ListSessionRequests method

func NewListSessionsRequest

func NewListSessionsRequest(server string, params *ListSessionsParams) (*http.Request, error)

NewListSessionsRequest constructs an http.Request for the ListSessions method

func NewListSubagentActivityRequest

func NewListSubagentActivityRequest(server string, sessionId SessionId, subagentId SubagentId, params *ListSubagentActivityParams) (*http.Request, error)

NewListSubagentActivityRequest constructs an http.Request for the ListSubagentActivity method

func NewListSubagentsRequest

func NewListSubagentsRequest(server string, sessionId SessionId) (*http.Request, error)

NewListSubagentsRequest constructs an http.Request for the ListSubagents method

func NewListTerminalsRequest

func NewListTerminalsRequest(server string, worktreeId WorktreeId) (*http.Request, error)

NewListTerminalsRequest constructs an http.Request for the ListTerminals method

func NewListTranscriptRequest

func NewListTranscriptRequest(server string, sessionId SessionId, params *ListTranscriptParams) (*http.Request, error)

NewListTranscriptRequest constructs an http.Request for the ListTranscript method

func NewListWorktreesRequest

func NewListWorktreesRequest(server string) (*http.Request, error)

NewListWorktreesRequest constructs an http.Request for the ListWorktrees method

func NewRefreshWorkspaceRequest

func NewRefreshWorkspaceRequest(server string) (*http.Request, error)

NewRefreshWorkspaceRequest constructs an http.Request for the RefreshWorkspace method

func NewResizeTerminalRequest

func NewResizeTerminalRequest(server string, worktreeId WorktreeId, terminalId TerminalId, body ResizeTerminalJSONRequestBody) (*http.Request, error)

NewResizeTerminalRequest calls the generic ResizeTerminal builder with application/json body

func NewResizeTerminalRequestWithBody

func NewResizeTerminalRequestWithBody(server string, worktreeId WorktreeId, terminalId TerminalId, contentType string, body io.Reader) (*http.Request, error)

NewResizeTerminalRequestWithBody constructs an http.Request for the ResizeTerminal method, with any body, and a specified content type

func NewResolveSessionRequestRequest

func NewResolveSessionRequestRequest(server string, sessionId SessionId, requestId RequestId, body ResolveSessionRequestJSONRequestBody) (*http.Request, error)

NewResolveSessionRequestRequest calls the generic ResolveSessionRequest builder with application/json body

func NewResolveSessionRequestRequestWithBody

func NewResolveSessionRequestRequestWithBody(server string, sessionId SessionId, requestId RequestId, contentType string, body io.Reader) (*http.Request, error)

NewResolveSessionRequestRequestWithBody constructs an http.Request for the ResolveSessionRequest method, with any body, and a specified content type

func NewStopTerminalRequest

func NewStopTerminalRequest(server string, worktreeId WorktreeId, terminalId TerminalId) (*http.Request, error)

NewStopTerminalRequest constructs an http.Request for the StopTerminal method

func NewStreamSessionEventsRequest

func NewStreamSessionEventsRequest(server string, sessionId SessionId, params *StreamSessionEventsParams) (*http.Request, error)

NewStreamSessionEventsRequest constructs an http.Request for the StreamSessionEvents method

func NewStreamTerminalEventsRequest

func NewStreamTerminalEventsRequest(server string, worktreeId WorktreeId, terminalId TerminalId, params *StreamTerminalEventsParams) (*http.Request, error)

NewStreamTerminalEventsRequest constructs an http.Request for the StreamTerminalEvents method

func NewSubmitPromptRequest

func NewSubmitPromptRequest(server string, sessionId SessionId, body SubmitPromptJSONRequestBody) (*http.Request, error)

NewSubmitPromptRequest calls the generic SubmitPrompt builder with application/json body

func NewSubmitPromptRequestWithBody

func NewSubmitPromptRequestWithBody(server string, sessionId SessionId, contentType string, body io.Reader) (*http.Request, error)

NewSubmitPromptRequestWithBody constructs an http.Request for the SubmitPrompt method, with any body, and a specified content type

func NewUpdateChatScheduleRequest

func NewUpdateChatScheduleRequest(server string, scheduleId ScheduleId, body UpdateChatScheduleJSONRequestBody) (*http.Request, error)

NewUpdateChatScheduleRequest calls the generic UpdateChatSchedule builder with application/json body

func NewUpdateChatScheduleRequestWithBody

func NewUpdateChatScheduleRequestWithBody(server string, scheduleId ScheduleId, contentType string, body io.Reader) (*http.Request, error)

NewUpdateChatScheduleRequestWithBody constructs an http.Request for the UpdateChatSchedule method, with any body, and a specified content type

func NewUpdateSessionRequest

func NewUpdateSessionRequest(server string, sessionId SessionId, body UpdateSessionJSONRequestBody) (*http.Request, error)

NewUpdateSessionRequest calls the generic UpdateSession builder with application/json body

func NewUpdateSessionRequestWithBody

func NewUpdateSessionRequestWithBody(server string, sessionId SessionId, contentType string, body io.Reader) (*http.Request, error)

NewUpdateSessionRequestWithBody constructs an http.Request for the UpdateSession method, with any body, and a specified content type

func NewWriteTerminalInputRequest

func NewWriteTerminalInputRequest(server string, worktreeId WorktreeId, terminalId TerminalId, body WriteTerminalInputJSONRequestBody) (*http.Request, error)

NewWriteTerminalInputRequest calls the generic WriteTerminalInput builder with application/json body

func NewWriteTerminalInputRequestWithBody

func NewWriteTerminalInputRequestWithBody(server string, worktreeId WorktreeId, terminalId TerminalId, contentType string, body io.Reader) (*http.Request, error)

NewWriteTerminalInputRequestWithBody constructs an http.Request for the WriteTerminalInput method, with any body, and a specified content type

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

func RegisterHandlers

func RegisterHandlers(router gin.IRouter, si ServerInterface)

RegisterHandlers creates http.Handler with routing matching OpenAPI spec.

func RegisterHandlersWithOptions

func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)

RegisterHandlersWithOptions creates http.Handler with additional options

Types

type AbortTurn200JSONResponse

type AbortTurn200JSONResponse Turn

func (AbortTurn200JSONResponse) VisitAbortTurnResponse

func (response AbortTurn200JSONResponse) VisitAbortTurnResponse(w http.ResponseWriter) error

type AbortTurn400JSONResponse

type AbortTurn400JSONResponse struct{ BadRequestJSONResponse }

func (AbortTurn400JSONResponse) VisitAbortTurnResponse

func (response AbortTurn400JSONResponse) VisitAbortTurnResponse(w http.ResponseWriter) error

type AbortTurn404JSONResponse

type AbortTurn404JSONResponse struct{ NotFoundJSONResponse }

func (AbortTurn404JSONResponse) VisitAbortTurnResponse

func (response AbortTurn404JSONResponse) VisitAbortTurnResponse(w http.ResponseWriter) error

type AbortTurn409JSONResponse

type AbortTurn409JSONResponse struct{ ConflictJSONResponse }

func (AbortTurn409JSONResponse) VisitAbortTurnResponse

func (response AbortTurn409JSONResponse) VisitAbortTurnResponse(w http.ResponseWriter) error

type AbortTurn500JSONResponse

type AbortTurn500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (AbortTurn500JSONResponse) VisitAbortTurnResponse

func (response AbortTurn500JSONResponse) VisitAbortTurnResponse(w http.ResponseWriter) error

type AbortTurnJSONRequestBody

type AbortTurnJSONRequestBody = AbortTurnRequest

AbortTurnJSONRequestBody defines body for AbortTurn for application/json ContentType.

type AbortTurnRequest

type AbortTurnRequest struct {
	// IdempotencyKey Client-generated identity bound to this exact abort target.
	IdempotencyKey openapi_types.UUID `json:"idempotencyKey"`

	// TurnId Exact active turn the client intends to stop.
	TurnId openapi_types.UUID `json:"turnId"`
}

AbortTurnRequest defines model for AbortTurnRequest.

type AbortTurnRequestObject

type AbortTurnRequestObject struct {
	SessionId SessionId `json:"sessionId"`
	Body      *AbortTurnJSONRequestBody
}

type AbortTurnResponse

type AbortTurnResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Turn
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseAbortTurnResponse

func ParseAbortTurnResponse(rsp *http.Response) (*AbortTurnResponse, error)

ParseAbortTurnResponse parses an HTTP response from a AbortTurnWithResponse call

func (AbortTurnResponse) ContentType

func (r AbortTurnResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AbortTurnResponse) GetBody

func (r AbortTurnResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (AbortTurnResponse) GetJSON200

func (r AbortTurnResponse) GetJSON200() *Turn

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (AbortTurnResponse) GetJSON400

func (r AbortTurnResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (AbortTurnResponse) GetJSON404

func (r AbortTurnResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (AbortTurnResponse) GetJSON409

func (r AbortTurnResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (AbortTurnResponse) GetJSON500

func (r AbortTurnResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (AbortTurnResponse) Status

func (r AbortTurnResponse) Status() string

Status returns HTTPResponse.Status

func (AbortTurnResponse) StatusCode

func (r AbortTurnResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AbortTurnResponseObject

type AbortTurnResponseObject interface {
	VisitAbortTurnResponse(w http.ResponseWriter) error
}

type AfterSeq

type AfterSeq = int64

AfterSeq defines model for AfterSeq.

type AssistantDelta

type AssistantDelta struct {
	Text   string             `json:"text"`
	TurnId openapi_types.UUID `json:"turnId"`
}

AssistantDelta defines model for AssistantDelta.

type AssistantDeltaEvent

type AssistantDeltaEvent struct {
	Kind       AssistantDeltaEventKind `json:"kind"`
	OccurredAt time.Time               `json:"occurredAt"`
	Payload    AssistantDelta          `json:"payload"`
	Seq        int64                   `json:"seq"`
	SessionId  openapi_types.UUID      `json:"sessionId"`
}

AssistantDeltaEvent defines model for AssistantDeltaEvent.

type AssistantDeltaEventKind

type AssistantDeltaEventKind string

AssistantDeltaEventKind defines model for AssistantDeltaEvent.Kind.

const (
	AssistantDeltaEventKindAssistantDelta AssistantDeltaEventKind = "assistantDelta"
)

Defines values for AssistantDeltaEventKind.

func (AssistantDeltaEventKind) Valid

func (e AssistantDeltaEventKind) Valid() bool

Valid indicates whether the value is a known member of the AssistantDeltaEventKind enum.

type BadGateway

type BadGateway = Error

BadGateway defines model for BadGateway.

type BadGatewayJSONResponse

type BadGatewayJSONResponse Error

type BadRequest

type BadRequest = Error

BadRequest defines model for BadRequest.

type BadRequestJSONResponse

type BadRequestJSONResponse Error

type ChatSchedule

type ChatSchedule struct {
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// CronExpression Five-field expression validated by candace/pkg/cron.Raw.
	CronExpression string              `json:"cronExpression"`
	DisplayName    string              `json:"displayName"`
	Id             *openapi_types.UUID `json:"id,omitempty"`

	// LastError Human-readable failure or skip reason from the most recent occurrence.
	LastError     *string                `json:"lastError,omitempty"`
	LastRunAt     *time.Time             `json:"lastRunAt,omitempty"`
	LastRunStatus *ChatScheduleRunStatus `json:"lastRunStatus,omitempty"`

	// NextRunAt Absent while paused.
	NextRunAt *time.Time          `json:"nextRunAt,omitempty"`
	Prompt    string              `json:"prompt"`
	SessionId *openapi_types.UUID `json:"sessionId,omitempty"`
	Status    ChatScheduleStatus  `json:"status"`

	// Timezone Portable IANA zone; Local is rejected.
	Timezone  string     `json:"timezone"`
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

ChatSchedule defines model for ChatSchedule.

type ChatScheduleList

type ChatScheduleList struct {
	Data []ChatSchedule `json:"data"`
}

ChatScheduleList defines model for ChatScheduleList.

type ChatScheduleRunStatus

type ChatScheduleRunStatus string

ChatScheduleRunStatus defines model for ChatScheduleRunStatus.

const (
	ChatScheduleRunStatusCanceled  ChatScheduleRunStatus = "canceled"
	ChatScheduleRunStatusFailed    ChatScheduleRunStatus = "failed"
	ChatScheduleRunStatusRunning   ChatScheduleRunStatus = "running"
	ChatScheduleRunStatusSkipped   ChatScheduleRunStatus = "skipped"
	ChatScheduleRunStatusSucceeded ChatScheduleRunStatus = "succeeded"
)

Defines values for ChatScheduleRunStatus.

func (ChatScheduleRunStatus) Valid

func (e ChatScheduleRunStatus) Valid() bool

Valid indicates whether the value is a known member of the ChatScheduleRunStatus enum.

type ChatScheduleStatus

type ChatScheduleStatus string

ChatScheduleStatus defines model for ChatScheduleStatus.

const (
	ChatScheduleStatusActive ChatScheduleStatus = "active"
	ChatScheduleStatusPaused ChatScheduleStatus = "paused"
)

Defines values for ChatScheduleStatus.

func (ChatScheduleStatus) Valid

func (e ChatScheduleStatus) Valid() bool

Valid indicates whether the value is a known member of the ChatScheduleStatus enum.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) AbortTurn

func (c *Client) AbortTurn(ctx context.Context, sessionId SessionId, body AbortTurnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

AbortTurn Stop the turn in flight

The client binds the request to the exact turn it observed. Retrying an exact idempotencyKey and turnId returns that turn's durable abort result; key reuse with another turn, or a successor becoming active before the request reaches the CLI, returns 409 without aborting the successor.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/sessions/{sessionId}/abort (the `AbortTurn` operationId).

func (*Client) AbortTurnWithBody

func (c *Client) AbortTurnWithBody(ctx context.Context, sessionId SessionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

AbortTurnWithBody Stop the turn in flight

The client binds the request to the exact turn it observed. Retrying an exact idempotencyKey and turnId returns that turn's durable abort result; key reuse with another turn, or a successor becoming active before the request reaches the CLI, returns 409 without aborting the successor.

Takes any type of body and a specified content type.

Corresponds with POST /v1/sessions/{sessionId}/abort (the `AbortTurn` operationId).

func (*Client) CreateChatSchedule

func (c *Client) CreateChatSchedule(ctx context.Context, body CreateChatScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateChatSchedule Schedule a recurring prompt

Persists the prompt and recurrence, then hands due occurrences to the existing Candace cron runtime. It does not create a browser timer or a second in-process scheduler. An exact retry with the same idempotencyKey and normalized request returns the original schedule; reusing that key for a different normalized request returns a 409 with code idempotency_key_reused.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/schedules (the `CreateChatSchedule` operationId).

func (*Client) CreateChatScheduleWithBody

func (c *Client) CreateChatScheduleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateChatScheduleWithBody Schedule a recurring prompt

Persists the prompt and recurrence, then hands due occurrences to the existing Candace cron runtime. It does not create a browser timer or a second in-process scheduler. An exact retry with the same idempotencyKey and normalized request returns the original schedule; reusing that key for a different normalized request returns a 409 with code idempotency_key_reused.

Takes any type of body and a specified content type.

Corresponds with POST /v1/schedules (the `CreateChatSchedule` operationId).

func (*Client) CreateSession

func (c *Client) CreateSession(ctx context.Context, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateSession Start a Copilot CLI session

idempotencyKey is a client-generated UUID bound to the complete request. Retrying the exact body with the same key returns the original session without provisioning another worktree or CLI session; reusing the key for different content returns 409. A retry of an admitted identity reuses that admission without revalidating a model catalog that may have changed. A new identity is accepted only when model exactly matches the same live catalog returned by listModels; an unknown model returns 400 and an unavailable provider catalog returns 502 before any session or worktree side effect. worktreeMode selects one generated request branch, so mode-incompatible fields are rejected by the schema. permissions defaults to ask when absent, so omission never broadens tool authority.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/sessions (the `CreateSession` operationId).

func (*Client) CreateSessionWithBody

func (c *Client) CreateSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateSessionWithBody Start a Copilot CLI session

idempotencyKey is a client-generated UUID bound to the complete request. Retrying the exact body with the same key returns the original session without provisioning another worktree or CLI session; reusing the key for different content returns 409. A retry of an admitted identity reuses that admission without revalidating a model catalog that may have changed. A new identity is accepted only when model exactly matches the same live catalog returned by listModels; an unknown model returns 400 and an unavailable provider catalog returns 502 before any session or worktree side effect. worktreeMode selects one generated request branch, so mode-incompatible fields are rejected by the schema. permissions defaults to ask when absent, so omission never broadens tool authority.

Takes any type of body and a specified content type.

Corresponds with POST /v1/sessions (the `CreateSession` operationId).

func (*Client) CreateTerminal

func (c *Client) CreateTerminal(ctx context.Context, worktreeId WorktreeId, body CreateTerminalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateTerminal Start a bounded terminal in a worktree

Starts the configured shell with its working directory fixed to the worktree. The server owns the child process, output bound and cleanup; clients cannot choose an executable or a different directory.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/worktrees/{worktreeId}/terminals (the `CreateTerminal` operationId).

func (*Client) CreateTerminalWithBody

func (c *Client) CreateTerminalWithBody(ctx context.Context, worktreeId WorktreeId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateTerminalWithBody Start a bounded terminal in a worktree

Starts the configured shell with its working directory fixed to the worktree. The server owns the child process, output bound and cleanup; clients cannot choose an executable or a different directory.

Takes any type of body and a specified content type.

Corresponds with POST /v1/worktrees/{worktreeId}/terminals (the `CreateTerminal` operationId).

func (*Client) DeleteChatSchedule

func (c *Client) DeleteChatSchedule(ctx context.Context, scheduleId ScheduleId, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteChatSchedule Delete a chat schedule

Future occurrences stop; completed run records remain durable.

Corresponds with DELETE /v1/schedules/{scheduleId} (the `DeleteChatSchedule` operationId).

func (*Client) EndSession

func (c *Client) EndSession(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*http.Response, error)

EndSession End a session

Ends the underlying CLI session. The metadata persists with status ended, so the transcript stays readable afterwards.

Corresponds with DELETE /v1/sessions/{sessionId} (the `EndSession` operationId).

func (*Client) GetActiveTurn

func (c *Client) GetActiveTurn(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetActiveTurn Read the exact turn currently running

Returns the durable running turn a client must bind into an abort request. A turn that has not started or already became terminal is not an abort target and returns 404.

Corresponds with GET /v1/sessions/{sessionId}/active-turn (the `GetActiveTurn` operationId).

func (*Client) GetChatSchedule

func (c *Client) GetChatSchedule(ctx context.Context, scheduleId ScheduleId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetChatSchedule Read one chat schedule

Corresponds with GET /v1/schedules/{scheduleId} (the `GetChatSchedule` operationId).

func (*Client) GetHealth

func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetHealth Report adapter liveness

Corresponds with GET /healthz (the `GetHealth` operationId).

func (*Client) GetSession

func (c *Client) GetSession(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetSession Get one session

Corresponds with GET /v1/sessions/{sessionId} (the `GetSession` operationId).

func (*Client) GetSubagent

func (c *Client) GetSubagent(ctx context.Context, sessionId SessionId, subagentId SubagentId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetSubagent Read one subagent's current lifecycle state

Corresponds with GET /v1/sessions/{sessionId}/subagents/{subagentId} (the `GetSubagent` operationId).

func (*Client) GetTelemetry

func (c *Client) GetTelemetry(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetTelemetry Retained provider usage and observed execution timing

Missing usage fields are unknown. Premium requests are cumulative provider checkpoints, never inferred currency. Durations exclude queue time.

Corresponds with GET /v1/telemetry (the `GetTelemetry` operationId).

func (*Client) GetTerminal

func (c *Client) GetTerminal(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetTerminal Read terminal lifecycle state

Corresponds with GET /v1/worktrees/{worktreeId}/terminals/{terminalId} (the `GetTerminal` operationId).

func (*Client) GetWorkspace

func (c *Client) GetWorkspace(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetWorkspace Read the current workspace snapshot used by live widgets

Reads retained session and worktree identities without inspecting git or starting processes. Live widgets subscribe to committed changes in the same Go process.

Corresponds with GET /v1/workspace (the `GetWorkspace` operationId).

func (*Client) GetWorktree

func (c *Client) GetWorktree(ctx context.Context, worktreeId WorktreeId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetWorktree Read current worktree metadata

The branch, HEAD, cleanliness and presence are inspected from git for this response; they are not stale creation-time labels.

Corresponds with GET /v1/worktrees/{worktreeId} (the `GetWorktree` operationId).

func (*Client) GetWorktreeChanges

func (c *Client) GetWorktreeChanges(ctx context.Context, worktreeId WorktreeId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetWorktreeChanges Inspect repository status and diff

Returns real porcelain status and a bounded patch from the addressed worktree. When the patch reaches the server limit, truncated is true; file status remains complete.

Corresponds with GET /v1/worktrees/{worktreeId}/changes (the `GetWorktreeChanges` operationId).

func (*Client) LinkSessionTask

func (c *Client) LinkSessionTask(ctx context.Context, sessionId openapi_types.UUID, body LinkSessionTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

LinkSessionTask Associate an exact session with its authoritative GitHub task

Takes a body of the `application/json` content type.

Corresponds with PUT /v1/sessions/{sessionId}/task (the `LinkSessionTask` operationId).

func (*Client) LinkSessionTaskWithBody

func (c *Client) LinkSessionTaskWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

LinkSessionTaskWithBody Associate an exact session with its authoritative GitHub task

Takes any type of body and a specified content type.

Corresponds with PUT /v1/sessions/{sessionId}/task (the `LinkSessionTask` operationId).

func (*Client) ListChatSchedules

func (c *Client) ListChatSchedules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListChatSchedules List durable chat schedules

Corresponds with GET /v1/schedules (the `ListChatSchedules` operationId).

func (*Client) ListModels

func (c *Client) ListModels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListModels List the models the CLI can use

The host CLI is the source of truth. When it cannot enumerate models the adapter returns the empty list and the UI falls back to free text.

Corresponds with GET /v1/models (the `ListModels` operationId).

func (*Client) ListRepositories

func (c *Client) ListRepositories(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListRepositories List configured repository roots

Only repositories in this list may be selected when a chat asks the adapter to create or reuse a worktree. The adapter configuration, not a browser-supplied path, owns this trust boundary.

Corresponds with GET /v1/repositories (the `ListRepositories` operationId).

func (*Client) ListSessionRequests

func (c *Client) ListSessionRequests(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSessionRequests List the requests awaiting a decision

Permission requests the session is blocked on, oldest first. Each request is derived from the SDK event's exact request identifier. The list is short by construction, so it is not paged.

Corresponds with GET /v1/sessions/{sessionId}/requests (the `ListSessionRequests` operationId).

func (*Client) ListSessions

func (c *Client) ListSessions(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSessions List sessions

Corresponds with GET /v1/sessions (the `ListSessions` operationId).

func (*Client) ListSubagentActivity

func (c *Client) ListSubagentActivity(ctx context.Context, sessionId SessionId, subagentId SubagentId, params *ListSubagentActivityParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSubagentActivity Read one subagent's progress activity

Corresponds with GET /v1/sessions/{sessionId}/subagents/{subagentId}/activity (the `ListSubagentActivity` operationId).

func (*Client) ListSubagents

func (c *Client) ListSubagents(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSubagents List actual subagents reported by a session

Rows come from SDK or adapter events persisted for this session. The adapter never synthesizes active work merely to populate the pane.

Corresponds with GET /v1/sessions/{sessionId}/subagents (the `ListSubagents` operationId).

func (*Client) ListTerminals

func (c *Client) ListTerminals(ctx context.Context, worktreeId WorktreeId, reqEditors ...RequestEditorFn) (*http.Response, error)

ListTerminals List terminal sessions for a worktree

Corresponds with GET /v1/worktrees/{worktreeId}/terminals (the `ListTerminals` operationId).

func (*Client) ListTranscript

func (c *Client) ListTranscript(ctx context.Context, sessionId SessionId, params *ListTranscriptParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListTranscript Read a session's persisted transcript

Items are ordered by seq, which is monotonic and gapless within a session. Page forward with afterSeq; assistant token deltas are collapsed into one item per assistant message before persistence.

Corresponds with GET /v1/sessions/{sessionId}/transcript (the `ListTranscript` operationId).

func (*Client) ListWorktrees

func (c *Client) ListWorktrees(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListWorktrees List worktrees containing chats

Worktrees are returned by most-recent activity so a client can group the persistent session list into a stable sidebar without inventing browser-local workspace state.

Corresponds with GET /v1/worktrees (the `ListWorktrees` operationId).

func (*Client) RefreshWorkspace

func (c *Client) RefreshWorkspace(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

RefreshWorkspace Ingest current linked issue checkpoints and notify live widgets

Explicit external-change ingestion. Invoke after publishing or editing a linked checkpoint. Fetches the issue authority; does not trust checkpoint payloads supplied by a caller.

Corresponds with POST /v1/workspace/refresh (the `RefreshWorkspace` operationId).

func (*Client) ResizeTerminal

func (c *Client) ResizeTerminal(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, body ResizeTerminalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ResizeTerminal Resize a running terminal

Takes a body of the `application/json` content type.

Corresponds with PATCH /v1/worktrees/{worktreeId}/terminals/{terminalId} (the `ResizeTerminal` operationId).

func (*Client) ResizeTerminalWithBody

func (c *Client) ResizeTerminalWithBody(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ResizeTerminalWithBody Resize a running terminal

Takes any type of body and a specified content type.

Corresponds with PATCH /v1/worktrees/{worktreeId}/terminals/{terminalId} (the `ResizeTerminal` operationId).

func (*Client) ResolveSessionRequest

func (c *Client) ResolveSessionRequest(ctx context.Context, sessionId SessionId, requestId RequestId, body ResolveSessionRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ResolveSessionRequest Resolve a pending permission request

Permission requests accept approve or deny. Resolution is delivered to the exact SDK request identifier and succeeds only after the SDK acknowledges it. Repeating the same delivered decision is idempotent and returns 200; a different decision is 409.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/sessions/{sessionId}/requests/{requestId}/resolve (the `ResolveSessionRequest` operationId).

func (*Client) ResolveSessionRequestWithBody

func (c *Client) ResolveSessionRequestWithBody(ctx context.Context, sessionId SessionId, requestId RequestId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ResolveSessionRequestWithBody Resolve a pending permission request

Permission requests accept approve or deny. Resolution is delivered to the exact SDK request identifier and succeeds only after the SDK acknowledges it. Repeating the same delivered decision is idempotent and returns 200; a different decision is 409.

Takes any type of body and a specified content type.

Corresponds with POST /v1/sessions/{sessionId}/requests/{requestId}/resolve (the `ResolveSessionRequest` operationId).

func (*Client) StopTerminal

func (c *Client) StopTerminal(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, reqEditors ...RequestEditorFn) (*http.Response, error)

StopTerminal Stop a terminal and release its process

Corresponds with DELETE /v1/worktrees/{worktreeId}/terminals/{terminalId} (the `StopTerminal` operationId).

func (*Client) StreamSessionEvents

func (c *Client) StreamSessionEvents(ctx context.Context, sessionId SessionId, params *StreamSessionEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

StreamSessionEvents Stream session events as Server-Sent Events

A text/event-stream of SessionEvent envelopes, one JSON object per SSE data frame, with the event's seq as its SSE id. A client that reconnects sends Last-Event-ID and receives everything after that sequence number, so a replica never has to be rebuilt from scratch.

The generated strict server cannot produce a streaming body, so this is the ONE handler the backend stage writes by hand against the same envelope schema; every other operation is served through the generated strict interface. SessionEvent is declared under components/schemas purely so the generator emits the Go and TypeScript types for it: no generated handler ever returns it.

Corresponds with GET /v1/sessions/{sessionId}/events (the `StreamSessionEvents` operationId).

func (*Client) StreamTerminalEvents

func (c *Client) StreamTerminalEvents(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, params *StreamTerminalEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

StreamTerminalEvents Stream bounded terminal output and exit state

A text/event-stream of TerminalEvent envelopes. Last-Event-ID resumes from the terminal's bounded replay buffer. A cursor older than retained output receives the oldest retained event with replayTruncated true.

Corresponds with GET /v1/worktrees/{worktreeId}/terminals/{terminalId}/events (the `StreamTerminalEvents` operationId).

func (*Client) SubmitPrompt

func (c *Client) SubmitPrompt(ctx context.Context, sessionId SessionId, body SubmitPromptJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SubmitPrompt Send a prompt to a session

queue appends the prompt behind whatever the session is doing; steer interrupts the current turn with it immediately. idempotencyKey is a client-generated UUID scoped to this session. Retrying the exact body with the same key returns the original turn without a second SDK handoff; reusing the key for a different body returns 409.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/sessions/{sessionId}/prompts (the `SubmitPrompt` operationId).

func (*Client) SubmitPromptWithBody

func (c *Client) SubmitPromptWithBody(ctx context.Context, sessionId SessionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SubmitPromptWithBody Send a prompt to a session

queue appends the prompt behind whatever the session is doing; steer interrupts the current turn with it immediately. idempotencyKey is a client-generated UUID scoped to this session. Retrying the exact body with the same key returns the original turn without a second SDK handoff; reusing the key for a different body returns 409.

Takes any type of body and a specified content type.

Corresponds with POST /v1/sessions/{sessionId}/prompts (the `SubmitPrompt` operationId).

func (*Client) UpdateChatSchedule

func (c *Client) UpdateChatSchedule(ctx context.Context, scheduleId ScheduleId, body UpdateChatScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateChatSchedule Edit or pause a chat schedule

Setting status to paused prevents future handoffs while preserving the schedule and its run history. Re-activating recomputes nextRunAt from the current time rather than replaying paused occurrences.

Takes a body of the `application/json` content type.

Corresponds with PATCH /v1/schedules/{scheduleId} (the `UpdateChatSchedule` operationId).

func (*Client) UpdateChatScheduleWithBody

func (c *Client) UpdateChatScheduleWithBody(ctx context.Context, scheduleId ScheduleId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateChatScheduleWithBody Edit or pause a chat schedule

Setting status to paused prevents future handoffs while preserving the schedule and its run history. Re-activating recomputes nextRunAt from the current time rather than replaying paused occurrences.

Takes any type of body and a specified content type.

Corresponds with PATCH /v1/schedules/{scheduleId} (the `UpdateChatSchedule` operationId).

func (*Client) UpdateSession

func (c *Client) UpdateSession(ctx context.Context, sessionId SessionId, body UpdateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateSession Change a session model or display name

Takes a body of the `application/json` content type.

Corresponds with PATCH /v1/sessions/{sessionId} (the `UpdateSession` operationId).

func (*Client) UpdateSessionWithBody

func (c *Client) UpdateSessionWithBody(ctx context.Context, sessionId SessionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateSessionWithBody Change a session model or display name

Takes any type of body and a specified content type.

Corresponds with PATCH /v1/sessions/{sessionId} (the `UpdateSession` operationId).

func (*Client) WriteTerminalInput

func (c *Client) WriteTerminalInput(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, body WriteTerminalInputJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

WriteTerminalInput Write input to a running terminal

Takes a body of the `application/json` content type.

Corresponds with POST /v1/worktrees/{worktreeId}/terminals/{terminalId}/input (the `WriteTerminalInput` operationId).

func (*Client) WriteTerminalInputWithBody

func (c *Client) WriteTerminalInputWithBody(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

WriteTerminalInputWithBody Write input to a running terminal

Takes any type of body and a specified content type.

Corresponds with POST /v1/worktrees/{worktreeId}/terminals/{terminalId}/input (the `WriteTerminalInput` operationId).

type ClientInterface

type ClientInterface interface {

	// GetHealth Report adapter liveness
	//
	// Corresponds with GET /healthz (the `GetHealth` operationId).
	GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListModels List the models the CLI can use
	//
	// The host CLI is the source of truth. When it cannot enumerate models the
	// adapter returns the empty list and the UI falls back to free text.
	//
	// Corresponds with GET /v1/models (the `ListModels` operationId).
	ListModels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRepositories List configured repository roots
	//
	// Only repositories in this list may be selected when a chat asks the
	// adapter to create or reuse a worktree. The adapter configuration, not a
	// browser-supplied path, owns this trust boundary.
	//
	// Corresponds with GET /v1/repositories (the `ListRepositories` operationId).
	ListRepositories(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListChatSchedules List durable chat schedules
	//
	// Corresponds with GET /v1/schedules (the `ListChatSchedules` operationId).
	ListChatSchedules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateChatScheduleWithBody Schedule a recurring prompt
	//
	// Persists the prompt and recurrence, then hands due occurrences to the
	// existing Candace cron runtime. It does not create a browser timer or a
	// second in-process scheduler. An exact retry with the same
	// idempotencyKey and normalized request returns the original schedule;
	// reusing that key for a different normalized request returns a 409 with
	// code idempotency_key_reused.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/schedules (the `CreateChatSchedule` operationId).
	CreateChatScheduleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateChatSchedule Schedule a recurring prompt
	//
	// Persists the prompt and recurrence, then hands due occurrences to the
	// existing Candace cron runtime. It does not create a browser timer or a
	// second in-process scheduler. An exact retry with the same
	// idempotencyKey and normalized request returns the original schedule;
	// reusing that key for a different normalized request returns a 409 with
	// code idempotency_key_reused.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/schedules (the `CreateChatSchedule` operationId).
	CreateChatSchedule(ctx context.Context, body CreateChatScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteChatSchedule Delete a chat schedule
	//
	// Future occurrences stop; completed run records remain durable.
	//
	// Corresponds with DELETE /v1/schedules/{scheduleId} (the `DeleteChatSchedule` operationId).
	DeleteChatSchedule(ctx context.Context, scheduleId ScheduleId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetChatSchedule Read one chat schedule
	//
	// Corresponds with GET /v1/schedules/{scheduleId} (the `GetChatSchedule` operationId).
	GetChatSchedule(ctx context.Context, scheduleId ScheduleId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateChatScheduleWithBody Edit or pause a chat schedule
	//
	// Setting status to paused prevents future handoffs while preserving the
	// schedule and its run history. Re-activating recomputes nextRunAt from
	// the current time rather than replaying paused occurrences.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /v1/schedules/{scheduleId} (the `UpdateChatSchedule` operationId).
	UpdateChatScheduleWithBody(ctx context.Context, scheduleId ScheduleId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateChatSchedule Edit or pause a chat schedule
	//
	// Setting status to paused prevents future handoffs while preserving the
	// schedule and its run history. Re-activating recomputes nextRunAt from
	// the current time rather than replaying paused occurrences.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /v1/schedules/{scheduleId} (the `UpdateChatSchedule` operationId).
	UpdateChatSchedule(ctx context.Context, scheduleId ScheduleId, body UpdateChatScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSessions List sessions
	//
	// Corresponds with GET /v1/sessions (the `ListSessions` operationId).
	ListSessions(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSessionWithBody Start a Copilot CLI session
	//
	// idempotencyKey is a client-generated UUID bound to the complete request.
	// Retrying the exact body with the same key returns the original session
	// without provisioning another worktree or CLI session; reusing the key
	// for different content returns 409. A retry of an admitted identity reuses
	// that admission without revalidating a model catalog that may have changed.
	// A new identity is accepted only when model exactly matches the same live
	// catalog returned by listModels; an unknown model returns 400 and an
	// unavailable provider catalog returns 502 before any session or worktree
	// side effect. worktreeMode selects one generated request branch, so
	// mode-incompatible fields are rejected by the schema. permissions defaults
	// to ask when absent, so omission never broadens tool authority.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/sessions (the `CreateSession` operationId).
	CreateSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSession Start a Copilot CLI session
	//
	// idempotencyKey is a client-generated UUID bound to the complete request.
	// Retrying the exact body with the same key returns the original session
	// without provisioning another worktree or CLI session; reusing the key
	// for different content returns 409. A retry of an admitted identity reuses
	// that admission without revalidating a model catalog that may have changed.
	// A new identity is accepted only when model exactly matches the same live
	// catalog returned by listModels; an unknown model returns 400 and an
	// unavailable provider catalog returns 502 before any session or worktree
	// side effect. worktreeMode selects one generated request branch, so
	// mode-incompatible fields are rejected by the schema. permissions defaults
	// to ask when absent, so omission never broadens tool authority.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/sessions (the `CreateSession` operationId).
	CreateSession(ctx context.Context, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// EndSession End a session
	//
	// Ends the underlying CLI session. The metadata persists with status
	// ended, so the transcript stays readable afterwards.
	//
	// Corresponds with DELETE /v1/sessions/{sessionId} (the `EndSession` operationId).
	EndSession(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSession Get one session
	//
	// Corresponds with GET /v1/sessions/{sessionId} (the `GetSession` operationId).
	GetSession(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateSessionWithBody Change a session model or display name
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /v1/sessions/{sessionId} (the `UpdateSession` operationId).
	UpdateSessionWithBody(ctx context.Context, sessionId SessionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateSession Change a session model or display name
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /v1/sessions/{sessionId} (the `UpdateSession` operationId).
	UpdateSession(ctx context.Context, sessionId SessionId, body UpdateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AbortTurnWithBody Stop the turn in flight
	//
	// The client binds the request to the exact turn it observed. Retrying an
	// exact idempotencyKey and turnId returns that turn's durable abort result;
	// key reuse with another turn, or a successor becoming active before the
	// request reaches the CLI, returns 409 without aborting the successor.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/sessions/{sessionId}/abort (the `AbortTurn` operationId).
	AbortTurnWithBody(ctx context.Context, sessionId SessionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AbortTurn Stop the turn in flight
	//
	// The client binds the request to the exact turn it observed. Retrying an
	// exact idempotencyKey and turnId returns that turn's durable abort result;
	// key reuse with another turn, or a successor becoming active before the
	// request reaches the CLI, returns 409 without aborting the successor.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/sessions/{sessionId}/abort (the `AbortTurn` operationId).
	AbortTurn(ctx context.Context, sessionId SessionId, body AbortTurnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetActiveTurn Read the exact turn currently running
	//
	// Returns the durable running turn a client must bind into an abort
	// request. A turn that has not started or already became terminal is not
	// an abort target and returns 404.
	//
	// Corresponds with GET /v1/sessions/{sessionId}/active-turn (the `GetActiveTurn` operationId).
	GetActiveTurn(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StreamSessionEvents Stream session events as Server-Sent Events
	//
	// A text/event-stream of SessionEvent envelopes, one JSON object per SSE
	// data frame, with the event's seq as its SSE id. A client that
	// reconnects sends Last-Event-ID and receives everything after that
	// sequence number, so a replica never has to be rebuilt from scratch.
	//
	// The generated strict server cannot produce a streaming body, so this is
	// the ONE handler the backend stage writes by hand against the same
	// envelope schema; every other operation is served through the generated
	// strict interface. SessionEvent is declared under components/schemas
	// purely so the generator emits the Go and TypeScript types for it: no
	// generated handler ever returns it.
	//
	// Corresponds with GET /v1/sessions/{sessionId}/events (the `StreamSessionEvents` operationId).
	StreamSessionEvents(ctx context.Context, sessionId SessionId, params *StreamSessionEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SubmitPromptWithBody Send a prompt to a session
	//
	// queue appends the prompt behind whatever the session is doing; steer
	// interrupts the current turn with it immediately. idempotencyKey is a
	// client-generated UUID scoped to this session. Retrying the exact body
	// with the same key returns the original turn without a second SDK
	// handoff; reusing the key for a different body returns 409.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/sessions/{sessionId}/prompts (the `SubmitPrompt` operationId).
	SubmitPromptWithBody(ctx context.Context, sessionId SessionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SubmitPrompt Send a prompt to a session
	//
	// queue appends the prompt behind whatever the session is doing; steer
	// interrupts the current turn with it immediately. idempotencyKey is a
	// client-generated UUID scoped to this session. Retrying the exact body
	// with the same key returns the original turn without a second SDK
	// handoff; reusing the key for a different body returns 409.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/sessions/{sessionId}/prompts (the `SubmitPrompt` operationId).
	SubmitPrompt(ctx context.Context, sessionId SessionId, body SubmitPromptJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSessionRequests List the requests awaiting a decision
	//
	// Permission requests the session is blocked on, oldest first. Each
	// request is derived from the SDK event's exact request identifier. The
	// list is short by construction, so it is not paged.
	//
	// Corresponds with GET /v1/sessions/{sessionId}/requests (the `ListSessionRequests` operationId).
	ListSessionRequests(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResolveSessionRequestWithBody Resolve a pending permission request
	//
	// Permission requests accept approve or deny. Resolution is delivered to
	// the exact SDK request identifier and succeeds only after the SDK
	// acknowledges it. Repeating the same delivered decision is idempotent
	// and returns 200; a different decision is 409.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/sessions/{sessionId}/requests/{requestId}/resolve (the `ResolveSessionRequest` operationId).
	ResolveSessionRequestWithBody(ctx context.Context, sessionId SessionId, requestId RequestId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResolveSessionRequest Resolve a pending permission request
	//
	// Permission requests accept approve or deny. Resolution is delivered to
	// the exact SDK request identifier and succeeds only after the SDK
	// acknowledges it. Repeating the same delivered decision is idempotent
	// and returns 200; a different decision is 409.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/sessions/{sessionId}/requests/{requestId}/resolve (the `ResolveSessionRequest` operationId).
	ResolveSessionRequest(ctx context.Context, sessionId SessionId, requestId RequestId, body ResolveSessionRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSubagents List actual subagents reported by a session
	//
	// Rows come from SDK or adapter events persisted for this session. The
	// adapter never synthesizes active work merely to populate the pane.
	//
	// Corresponds with GET /v1/sessions/{sessionId}/subagents (the `ListSubagents` operationId).
	ListSubagents(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSubagent Read one subagent's current lifecycle state
	//
	// Corresponds with GET /v1/sessions/{sessionId}/subagents/{subagentId} (the `GetSubagent` operationId).
	GetSubagent(ctx context.Context, sessionId SessionId, subagentId SubagentId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSubagentActivity Read one subagent's progress activity
	//
	// Corresponds with GET /v1/sessions/{sessionId}/subagents/{subagentId}/activity (the `ListSubagentActivity` operationId).
	ListSubagentActivity(ctx context.Context, sessionId SessionId, subagentId SubagentId, params *ListSubagentActivityParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LinkSessionTaskWithBody Associate an exact session with its authoritative GitHub task
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /v1/sessions/{sessionId}/task (the `LinkSessionTask` operationId).
	LinkSessionTaskWithBody(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LinkSessionTask Associate an exact session with its authoritative GitHub task
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /v1/sessions/{sessionId}/task (the `LinkSessionTask` operationId).
	LinkSessionTask(ctx context.Context, sessionId openapi_types.UUID, body LinkSessionTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTranscript Read a session's persisted transcript
	//
	// Items are ordered by seq, which is monotonic and gapless within a
	// session. Page forward with afterSeq; assistant token deltas are
	// collapsed into one item per assistant message before persistence.
	//
	// Corresponds with GET /v1/sessions/{sessionId}/transcript (the `ListTranscript` operationId).
	ListTranscript(ctx context.Context, sessionId SessionId, params *ListTranscriptParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTelemetry Retained provider usage and observed execution timing
	//
	// Missing usage fields are unknown. Premium requests are cumulative provider checkpoints, never inferred currency. Durations exclude queue time.
	//
	// Corresponds with GET /v1/telemetry (the `GetTelemetry` operationId).
	GetTelemetry(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWorkspace Read the current workspace snapshot used by live widgets
	//
	// Reads retained session and worktree identities without inspecting git or starting processes. Live widgets subscribe to committed changes in the same Go process.
	//
	// Corresponds with GET /v1/workspace (the `GetWorkspace` operationId).
	GetWorkspace(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RefreshWorkspace Ingest current linked issue checkpoints and notify live widgets
	//
	// Explicit external-change ingestion. Invoke after publishing or editing a linked checkpoint. Fetches the issue authority; does not trust checkpoint payloads supplied by a caller.
	//
	// Corresponds with POST /v1/workspace/refresh (the `RefreshWorkspace` operationId).
	RefreshWorkspace(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWorktrees List worktrees containing chats
	//
	// Worktrees are returned by most-recent activity so a client can group
	// the persistent session list into a stable sidebar without inventing
	// browser-local workspace state.
	//
	// Corresponds with GET /v1/worktrees (the `ListWorktrees` operationId).
	ListWorktrees(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWorktree Read current worktree metadata
	//
	// The branch, HEAD, cleanliness and presence are inspected from git for
	// this response; they are not stale creation-time labels.
	//
	// Corresponds with GET /v1/worktrees/{worktreeId} (the `GetWorktree` operationId).
	GetWorktree(ctx context.Context, worktreeId WorktreeId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWorktreeChanges Inspect repository status and diff
	//
	// Returns real porcelain status and a bounded patch from the addressed
	// worktree. When the patch reaches the server limit, truncated is true;
	// file status remains complete.
	//
	// Corresponds with GET /v1/worktrees/{worktreeId}/changes (the `GetWorktreeChanges` operationId).
	GetWorktreeChanges(ctx context.Context, worktreeId WorktreeId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTerminals List terminal sessions for a worktree
	//
	// Corresponds with GET /v1/worktrees/{worktreeId}/terminals (the `ListTerminals` operationId).
	ListTerminals(ctx context.Context, worktreeId WorktreeId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTerminalWithBody Start a bounded terminal in a worktree
	//
	// Starts the configured shell with its working directory fixed to the
	// worktree. The server owns the child process, output bound and cleanup;
	// clients cannot choose an executable or a different directory.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/worktrees/{worktreeId}/terminals (the `CreateTerminal` operationId).
	CreateTerminalWithBody(ctx context.Context, worktreeId WorktreeId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTerminal Start a bounded terminal in a worktree
	//
	// Starts the configured shell with its working directory fixed to the
	// worktree. The server owns the child process, output bound and cleanup;
	// clients cannot choose an executable or a different directory.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/worktrees/{worktreeId}/terminals (the `CreateTerminal` operationId).
	CreateTerminal(ctx context.Context, worktreeId WorktreeId, body CreateTerminalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StopTerminal Stop a terminal and release its process
	//
	// Corresponds with DELETE /v1/worktrees/{worktreeId}/terminals/{terminalId} (the `StopTerminal` operationId).
	StopTerminal(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTerminal Read terminal lifecycle state
	//
	// Corresponds with GET /v1/worktrees/{worktreeId}/terminals/{terminalId} (the `GetTerminal` operationId).
	GetTerminal(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResizeTerminalWithBody Resize a running terminal
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /v1/worktrees/{worktreeId}/terminals/{terminalId} (the `ResizeTerminal` operationId).
	ResizeTerminalWithBody(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResizeTerminal Resize a running terminal
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /v1/worktrees/{worktreeId}/terminals/{terminalId} (the `ResizeTerminal` operationId).
	ResizeTerminal(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, body ResizeTerminalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StreamTerminalEvents Stream bounded terminal output and exit state
	//
	// A text/event-stream of TerminalEvent envelopes. Last-Event-ID resumes
	// from the terminal's bounded replay buffer. A cursor older than retained
	// output receives the oldest retained event with replayTruncated true.
	//
	// Corresponds with GET /v1/worktrees/{worktreeId}/terminals/{terminalId}/events (the `StreamTerminalEvents` operationId).
	StreamTerminalEvents(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, params *StreamTerminalEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WriteTerminalInputWithBody Write input to a running terminal
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/worktrees/{worktreeId}/terminals/{terminalId}/input (the `WriteTerminalInput` operationId).
	WriteTerminalInputWithBody(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WriteTerminalInput Write input to a running terminal
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/worktrees/{worktreeId}/terminals/{terminalId}/input (the `WriteTerminalInput` operationId).
	WriteTerminalInput(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, body WriteTerminalInputJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) AbortTurnWithBodyWithResponse

func (c *ClientWithResponses) AbortTurnWithBodyWithResponse(ctx context.Context, sessionId SessionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AbortTurnResponse, error)

AbortTurnWithBodyWithResponse Stop the turn in flight

The client binds the request to the exact turn it observed. Retrying an exact idempotencyKey and turnId returns that turn's durable abort result; key reuse with another turn, or a successor becoming active before the request reaches the CLI, returns 409 without aborting the successor.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/sessions/{sessionId}/abort (the `AbortTurn` operationId).

func (*ClientWithResponses) AbortTurnWithResponse

func (c *ClientWithResponses) AbortTurnWithResponse(ctx context.Context, sessionId SessionId, body AbortTurnJSONRequestBody, reqEditors ...RequestEditorFn) (*AbortTurnResponse, error)

AbortTurnWithResponse Stop the turn in flight

The client binds the request to the exact turn it observed. Retrying an exact idempotencyKey and turnId returns that turn's durable abort result; key reuse with another turn, or a successor becoming active before the request reaches the CLI, returns 409 without aborting the successor.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/sessions/{sessionId}/abort (the `AbortTurn` operationId).

func (*ClientWithResponses) CreateChatScheduleWithBodyWithResponse

func (c *ClientWithResponses) CreateChatScheduleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateChatScheduleResponse, error)

CreateChatScheduleWithBodyWithResponse Schedule a recurring prompt

Persists the prompt and recurrence, then hands due occurrences to the existing Candace cron runtime. It does not create a browser timer or a second in-process scheduler. An exact retry with the same idempotencyKey and normalized request returns the original schedule; reusing that key for a different normalized request returns a 409 with code idempotency_key_reused.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/schedules (the `CreateChatSchedule` operationId).

func (*ClientWithResponses) CreateChatScheduleWithResponse

func (c *ClientWithResponses) CreateChatScheduleWithResponse(ctx context.Context, body CreateChatScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateChatScheduleResponse, error)

CreateChatScheduleWithResponse Schedule a recurring prompt

Persists the prompt and recurrence, then hands due occurrences to the existing Candace cron runtime. It does not create a browser timer or a second in-process scheduler. An exact retry with the same idempotencyKey and normalized request returns the original schedule; reusing that key for a different normalized request returns a 409 with code idempotency_key_reused.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/schedules (the `CreateChatSchedule` operationId).

func (*ClientWithResponses) CreateSessionWithBodyWithResponse

func (c *ClientWithResponses) CreateSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)

CreateSessionWithBodyWithResponse Start a Copilot CLI session

idempotencyKey is a client-generated UUID bound to the complete request. Retrying the exact body with the same key returns the original session without provisioning another worktree or CLI session; reusing the key for different content returns 409. A retry of an admitted identity reuses that admission without revalidating a model catalog that may have changed. A new identity is accepted only when model exactly matches the same live catalog returned by listModels; an unknown model returns 400 and an unavailable provider catalog returns 502 before any session or worktree side effect. worktreeMode selects one generated request branch, so mode-incompatible fields are rejected by the schema. permissions defaults to ask when absent, so omission never broadens tool authority.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/sessions (the `CreateSession` operationId).

func (*ClientWithResponses) CreateSessionWithResponse

func (c *ClientWithResponses) CreateSessionWithResponse(ctx context.Context, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)

CreateSessionWithResponse Start a Copilot CLI session

idempotencyKey is a client-generated UUID bound to the complete request. Retrying the exact body with the same key returns the original session without provisioning another worktree or CLI session; reusing the key for different content returns 409. A retry of an admitted identity reuses that admission without revalidating a model catalog that may have changed. A new identity is accepted only when model exactly matches the same live catalog returned by listModels; an unknown model returns 400 and an unavailable provider catalog returns 502 before any session or worktree side effect. worktreeMode selects one generated request branch, so mode-incompatible fields are rejected by the schema. permissions defaults to ask when absent, so omission never broadens tool authority.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/sessions (the `CreateSession` operationId).

func (*ClientWithResponses) CreateTerminalWithBodyWithResponse

func (c *ClientWithResponses) CreateTerminalWithBodyWithResponse(ctx context.Context, worktreeId WorktreeId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTerminalResponse, error)

CreateTerminalWithBodyWithResponse Start a bounded terminal in a worktree

Starts the configured shell with its working directory fixed to the worktree. The server owns the child process, output bound and cleanup; clients cannot choose an executable or a different directory.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/worktrees/{worktreeId}/terminals (the `CreateTerminal` operationId).

func (*ClientWithResponses) CreateTerminalWithResponse

func (c *ClientWithResponses) CreateTerminalWithResponse(ctx context.Context, worktreeId WorktreeId, body CreateTerminalJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTerminalResponse, error)

CreateTerminalWithResponse Start a bounded terminal in a worktree

Starts the configured shell with its working directory fixed to the worktree. The server owns the child process, output bound and cleanup; clients cannot choose an executable or a different directory.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/worktrees/{worktreeId}/terminals (the `CreateTerminal` operationId).

func (*ClientWithResponses) DeleteChatScheduleWithResponse

func (c *ClientWithResponses) DeleteChatScheduleWithResponse(ctx context.Context, scheduleId ScheduleId, reqEditors ...RequestEditorFn) (*DeleteChatScheduleResponse, error)

DeleteChatScheduleWithResponse Delete a chat schedule

Future occurrences stop; completed run records remain durable.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /v1/schedules/{scheduleId} (the `DeleteChatSchedule` operationId).

func (*ClientWithResponses) EndSessionWithResponse

func (c *ClientWithResponses) EndSessionWithResponse(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*EndSessionResponse, error)

EndSessionWithResponse End a session

Ends the underlying CLI session. The metadata persists with status ended, so the transcript stays readable afterwards.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /v1/sessions/{sessionId} (the `EndSession` operationId).

func (*ClientWithResponses) GetActiveTurnWithResponse

func (c *ClientWithResponses) GetActiveTurnWithResponse(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*GetActiveTurnResponse, error)

GetActiveTurnWithResponse Read the exact turn currently running

Returns the durable running turn a client must bind into an abort request. A turn that has not started or already became terminal is not an abort target and returns 404.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/sessions/{sessionId}/active-turn (the `GetActiveTurn` operationId).

func (*ClientWithResponses) GetChatScheduleWithResponse

func (c *ClientWithResponses) GetChatScheduleWithResponse(ctx context.Context, scheduleId ScheduleId, reqEditors ...RequestEditorFn) (*GetChatScheduleResponse, error)

GetChatScheduleWithResponse Read one chat schedule

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/schedules/{scheduleId} (the `GetChatSchedule` operationId).

func (*ClientWithResponses) GetHealthWithResponse

func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)

GetHealthWithResponse Report adapter liveness

Returns a wrapper object for the known response body format(s).

Corresponds with GET /healthz (the `GetHealth` operationId).

func (*ClientWithResponses) GetSessionWithResponse

func (c *ClientWithResponses) GetSessionWithResponse(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*GetSessionResponse, error)

GetSessionWithResponse Get one session

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/sessions/{sessionId} (the `GetSession` operationId).

func (*ClientWithResponses) GetSubagentWithResponse

func (c *ClientWithResponses) GetSubagentWithResponse(ctx context.Context, sessionId SessionId, subagentId SubagentId, reqEditors ...RequestEditorFn) (*GetSubagentResponse, error)

GetSubagentWithResponse Read one subagent's current lifecycle state

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/sessions/{sessionId}/subagents/{subagentId} (the `GetSubagent` operationId).

func (*ClientWithResponses) GetTelemetryWithResponse

func (c *ClientWithResponses) GetTelemetryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTelemetryResponse, error)

GetTelemetryWithResponse Retained provider usage and observed execution timing

Missing usage fields are unknown. Premium requests are cumulative provider checkpoints, never inferred currency. Durations exclude queue time.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/telemetry (the `GetTelemetry` operationId).

func (*ClientWithResponses) GetTerminalWithResponse

func (c *ClientWithResponses) GetTerminalWithResponse(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, reqEditors ...RequestEditorFn) (*GetTerminalResponse, error)

GetTerminalWithResponse Read terminal lifecycle state

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/worktrees/{worktreeId}/terminals/{terminalId} (the `GetTerminal` operationId).

func (*ClientWithResponses) GetWorkspaceWithResponse

func (c *ClientWithResponses) GetWorkspaceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWorkspaceResponse, error)

GetWorkspaceWithResponse Read the current workspace snapshot used by live widgets

Reads retained session and worktree identities without inspecting git or starting processes. Live widgets subscribe to committed changes in the same Go process.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/workspace (the `GetWorkspace` operationId).

func (*ClientWithResponses) GetWorktreeChangesWithResponse

func (c *ClientWithResponses) GetWorktreeChangesWithResponse(ctx context.Context, worktreeId WorktreeId, reqEditors ...RequestEditorFn) (*GetWorktreeChangesResponse, error)

GetWorktreeChangesWithResponse Inspect repository status and diff

Returns real porcelain status and a bounded patch from the addressed worktree. When the patch reaches the server limit, truncated is true; file status remains complete.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/worktrees/{worktreeId}/changes (the `GetWorktreeChanges` operationId).

func (*ClientWithResponses) GetWorktreeWithResponse

func (c *ClientWithResponses) GetWorktreeWithResponse(ctx context.Context, worktreeId WorktreeId, reqEditors ...RequestEditorFn) (*GetWorktreeResponse, error)

GetWorktreeWithResponse Read current worktree metadata

The branch, HEAD, cleanliness and presence are inspected from git for this response; they are not stale creation-time labels.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/worktrees/{worktreeId} (the `GetWorktree` operationId).

func (*ClientWithResponses) LinkSessionTaskWithBodyWithResponse

func (c *ClientWithResponses) LinkSessionTaskWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LinkSessionTaskResponse, error)

LinkSessionTaskWithBodyWithResponse Associate an exact session with its authoritative GitHub task

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /v1/sessions/{sessionId}/task (the `LinkSessionTask` operationId).

func (*ClientWithResponses) LinkSessionTaskWithResponse

func (c *ClientWithResponses) LinkSessionTaskWithResponse(ctx context.Context, sessionId openapi_types.UUID, body LinkSessionTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*LinkSessionTaskResponse, error)

LinkSessionTaskWithResponse Associate an exact session with its authoritative GitHub task

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /v1/sessions/{sessionId}/task (the `LinkSessionTask` operationId).

func (*ClientWithResponses) ListChatSchedulesWithResponse

func (c *ClientWithResponses) ListChatSchedulesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListChatSchedulesResponse, error)

ListChatSchedulesWithResponse List durable chat schedules

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/schedules (the `ListChatSchedules` operationId).

func (*ClientWithResponses) ListModelsWithResponse

func (c *ClientWithResponses) ListModelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListModelsResponse, error)

ListModelsWithResponse List the models the CLI can use

The host CLI is the source of truth. When it cannot enumerate models the adapter returns the empty list and the UI falls back to free text.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/models (the `ListModels` operationId).

func (*ClientWithResponses) ListRepositoriesWithResponse

func (c *ClientWithResponses) ListRepositoriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRepositoriesResponse, error)

ListRepositoriesWithResponse List configured repository roots

Only repositories in this list may be selected when a chat asks the adapter to create or reuse a worktree. The adapter configuration, not a browser-supplied path, owns this trust boundary.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/repositories (the `ListRepositories` operationId).

func (*ClientWithResponses) ListSessionRequestsWithResponse

func (c *ClientWithResponses) ListSessionRequestsWithResponse(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*ListSessionRequestsResponse, error)

ListSessionRequestsWithResponse List the requests awaiting a decision

Permission requests the session is blocked on, oldest first. Each request is derived from the SDK event's exact request identifier. The list is short by construction, so it is not paged.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/sessions/{sessionId}/requests (the `ListSessionRequests` operationId).

func (*ClientWithResponses) ListSessionsWithResponse

func (c *ClientWithResponses) ListSessionsWithResponse(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*ListSessionsResponse, error)

ListSessionsWithResponse List sessions

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/sessions (the `ListSessions` operationId).

func (*ClientWithResponses) ListSubagentActivityWithResponse

func (c *ClientWithResponses) ListSubagentActivityWithResponse(ctx context.Context, sessionId SessionId, subagentId SubagentId, params *ListSubagentActivityParams, reqEditors ...RequestEditorFn) (*ListSubagentActivityResponse, error)

ListSubagentActivityWithResponse Read one subagent's progress activity

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/sessions/{sessionId}/subagents/{subagentId}/activity (the `ListSubagentActivity` operationId).

func (*ClientWithResponses) ListSubagentsWithResponse

func (c *ClientWithResponses) ListSubagentsWithResponse(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*ListSubagentsResponse, error)

ListSubagentsWithResponse List actual subagents reported by a session

Rows come from SDK or adapter events persisted for this session. The adapter never synthesizes active work merely to populate the pane.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/sessions/{sessionId}/subagents (the `ListSubagents` operationId).

func (*ClientWithResponses) ListTerminalsWithResponse

func (c *ClientWithResponses) ListTerminalsWithResponse(ctx context.Context, worktreeId WorktreeId, reqEditors ...RequestEditorFn) (*ListTerminalsResponse, error)

ListTerminalsWithResponse List terminal sessions for a worktree

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/worktrees/{worktreeId}/terminals (the `ListTerminals` operationId).

func (*ClientWithResponses) ListTranscriptWithResponse

func (c *ClientWithResponses) ListTranscriptWithResponse(ctx context.Context, sessionId SessionId, params *ListTranscriptParams, reqEditors ...RequestEditorFn) (*ListTranscriptResponse, error)

ListTranscriptWithResponse Read a session's persisted transcript

Items are ordered by seq, which is monotonic and gapless within a session. Page forward with afterSeq; assistant token deltas are collapsed into one item per assistant message before persistence.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/sessions/{sessionId}/transcript (the `ListTranscript` operationId).

func (*ClientWithResponses) ListWorktreesWithResponse

func (c *ClientWithResponses) ListWorktreesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListWorktreesResponse, error)

ListWorktreesWithResponse List worktrees containing chats

Worktrees are returned by most-recent activity so a client can group the persistent session list into a stable sidebar without inventing browser-local workspace state.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/worktrees (the `ListWorktrees` operationId).

func (*ClientWithResponses) RefreshWorkspaceWithResponse

func (c *ClientWithResponses) RefreshWorkspaceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshWorkspaceResponse, error)

RefreshWorkspaceWithResponse Ingest current linked issue checkpoints and notify live widgets

Explicit external-change ingestion. Invoke after publishing or editing a linked checkpoint. Fetches the issue authority; does not trust checkpoint payloads supplied by a caller.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/workspace/refresh (the `RefreshWorkspace` operationId).

func (*ClientWithResponses) ResizeTerminalWithBodyWithResponse

func (c *ClientWithResponses) ResizeTerminalWithBodyWithResponse(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResizeTerminalResponse, error)

ResizeTerminalWithBodyWithResponse Resize a running terminal

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v1/worktrees/{worktreeId}/terminals/{terminalId} (the `ResizeTerminal` operationId).

func (*ClientWithResponses) ResizeTerminalWithResponse

func (c *ClientWithResponses) ResizeTerminalWithResponse(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, body ResizeTerminalJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeTerminalResponse, error)

ResizeTerminalWithResponse Resize a running terminal

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v1/worktrees/{worktreeId}/terminals/{terminalId} (the `ResizeTerminal` operationId).

func (*ClientWithResponses) ResolveSessionRequestWithBodyWithResponse

func (c *ClientWithResponses) ResolveSessionRequestWithBodyWithResponse(ctx context.Context, sessionId SessionId, requestId RequestId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResolveSessionRequestResponse, error)

ResolveSessionRequestWithBodyWithResponse Resolve a pending permission request

Permission requests accept approve or deny. Resolution is delivered to the exact SDK request identifier and succeeds only after the SDK acknowledges it. Repeating the same delivered decision is idempotent and returns 200; a different decision is 409.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/sessions/{sessionId}/requests/{requestId}/resolve (the `ResolveSessionRequest` operationId).

func (*ClientWithResponses) ResolveSessionRequestWithResponse

func (c *ClientWithResponses) ResolveSessionRequestWithResponse(ctx context.Context, sessionId SessionId, requestId RequestId, body ResolveSessionRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolveSessionRequestResponse, error)

ResolveSessionRequestWithResponse Resolve a pending permission request

Permission requests accept approve or deny. Resolution is delivered to the exact SDK request identifier and succeeds only after the SDK acknowledges it. Repeating the same delivered decision is idempotent and returns 200; a different decision is 409.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/sessions/{sessionId}/requests/{requestId}/resolve (the `ResolveSessionRequest` operationId).

func (*ClientWithResponses) StopTerminalWithResponse

func (c *ClientWithResponses) StopTerminalWithResponse(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, reqEditors ...RequestEditorFn) (*StopTerminalResponse, error)

StopTerminalWithResponse Stop a terminal and release its process

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /v1/worktrees/{worktreeId}/terminals/{terminalId} (the `StopTerminal` operationId).

func (*ClientWithResponses) StreamSessionEventsWithResponse

func (c *ClientWithResponses) StreamSessionEventsWithResponse(ctx context.Context, sessionId SessionId, params *StreamSessionEventsParams, reqEditors ...RequestEditorFn) (*StreamSessionEventsResponse, error)

StreamSessionEventsWithResponse Stream session events as Server-Sent Events

A text/event-stream of SessionEvent envelopes, one JSON object per SSE data frame, with the event's seq as its SSE id. A client that reconnects sends Last-Event-ID and receives everything after that sequence number, so a replica never has to be rebuilt from scratch.

The generated strict server cannot produce a streaming body, so this is the ONE handler the backend stage writes by hand against the same envelope schema; every other operation is served through the generated strict interface. SessionEvent is declared under components/schemas purely so the generator emits the Go and TypeScript types for it: no generated handler ever returns it.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/sessions/{sessionId}/events (the `StreamSessionEvents` operationId).

func (*ClientWithResponses) StreamTerminalEventsWithResponse

func (c *ClientWithResponses) StreamTerminalEventsWithResponse(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, params *StreamTerminalEventsParams, reqEditors ...RequestEditorFn) (*StreamTerminalEventsResponse, error)

StreamTerminalEventsWithResponse Stream bounded terminal output and exit state

A text/event-stream of TerminalEvent envelopes. Last-Event-ID resumes from the terminal's bounded replay buffer. A cursor older than retained output receives the oldest retained event with replayTruncated true.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/worktrees/{worktreeId}/terminals/{terminalId}/events (the `StreamTerminalEvents` operationId).

func (*ClientWithResponses) SubmitPromptWithBodyWithResponse

func (c *ClientWithResponses) SubmitPromptWithBodyWithResponse(ctx context.Context, sessionId SessionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitPromptResponse, error)

SubmitPromptWithBodyWithResponse Send a prompt to a session

queue appends the prompt behind whatever the session is doing; steer interrupts the current turn with it immediately. idempotencyKey is a client-generated UUID scoped to this session. Retrying the exact body with the same key returns the original turn without a second SDK handoff; reusing the key for a different body returns 409.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/sessions/{sessionId}/prompts (the `SubmitPrompt` operationId).

func (*ClientWithResponses) SubmitPromptWithResponse

func (c *ClientWithResponses) SubmitPromptWithResponse(ctx context.Context, sessionId SessionId, body SubmitPromptJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitPromptResponse, error)

SubmitPromptWithResponse Send a prompt to a session

queue appends the prompt behind whatever the session is doing; steer interrupts the current turn with it immediately. idempotencyKey is a client-generated UUID scoped to this session. Retrying the exact body with the same key returns the original turn without a second SDK handoff; reusing the key for a different body returns 409.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/sessions/{sessionId}/prompts (the `SubmitPrompt` operationId).

func (*ClientWithResponses) UpdateChatScheduleWithBodyWithResponse

func (c *ClientWithResponses) UpdateChatScheduleWithBodyWithResponse(ctx context.Context, scheduleId ScheduleId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateChatScheduleResponse, error)

UpdateChatScheduleWithBodyWithResponse Edit or pause a chat schedule

Setting status to paused prevents future handoffs while preserving the schedule and its run history. Re-activating recomputes nextRunAt from the current time rather than replaying paused occurrences.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v1/schedules/{scheduleId} (the `UpdateChatSchedule` operationId).

func (*ClientWithResponses) UpdateChatScheduleWithResponse

func (c *ClientWithResponses) UpdateChatScheduleWithResponse(ctx context.Context, scheduleId ScheduleId, body UpdateChatScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateChatScheduleResponse, error)

UpdateChatScheduleWithResponse Edit or pause a chat schedule

Setting status to paused prevents future handoffs while preserving the schedule and its run history. Re-activating recomputes nextRunAt from the current time rather than replaying paused occurrences.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v1/schedules/{scheduleId} (the `UpdateChatSchedule` operationId).

func (*ClientWithResponses) UpdateSessionWithBodyWithResponse

func (c *ClientWithResponses) UpdateSessionWithBodyWithResponse(ctx context.Context, sessionId SessionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSessionResponse, error)

UpdateSessionWithBodyWithResponse Change a session model or display name

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v1/sessions/{sessionId} (the `UpdateSession` operationId).

func (*ClientWithResponses) UpdateSessionWithResponse

func (c *ClientWithResponses) UpdateSessionWithResponse(ctx context.Context, sessionId SessionId, body UpdateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSessionResponse, error)

UpdateSessionWithResponse Change a session model or display name

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v1/sessions/{sessionId} (the `UpdateSession` operationId).

func (*ClientWithResponses) WriteTerminalInputWithBodyWithResponse

func (c *ClientWithResponses) WriteTerminalInputWithBodyWithResponse(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WriteTerminalInputResponse, error)

WriteTerminalInputWithBodyWithResponse Write input to a running terminal

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/worktrees/{worktreeId}/terminals/{terminalId}/input (the `WriteTerminalInput` operationId).

func (*ClientWithResponses) WriteTerminalInputWithResponse

func (c *ClientWithResponses) WriteTerminalInputWithResponse(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, body WriteTerminalInputJSONRequestBody, reqEditors ...RequestEditorFn) (*WriteTerminalInputResponse, error)

WriteTerminalInputWithResponse Write input to a running terminal

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/worktrees/{worktreeId}/terminals/{terminalId}/input (the `WriteTerminalInput` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// GetHealthWithResponse Report adapter liveness
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /healthz (the `GetHealth` operationId).
	GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)

	// ListModelsWithResponse List the models the CLI can use
	//
	// The host CLI is the source of truth. When it cannot enumerate models the
	// adapter returns the empty list and the UI falls back to free text.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/models (the `ListModels` operationId).
	ListModelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListModelsResponse, error)

	// ListRepositoriesWithResponse List configured repository roots
	//
	// Only repositories in this list may be selected when a chat asks the
	// adapter to create or reuse a worktree. The adapter configuration, not a
	// browser-supplied path, owns this trust boundary.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/repositories (the `ListRepositories` operationId).
	ListRepositoriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRepositoriesResponse, error)

	// ListChatSchedulesWithResponse List durable chat schedules
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/schedules (the `ListChatSchedules` operationId).
	ListChatSchedulesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListChatSchedulesResponse, error)

	// CreateChatScheduleWithBodyWithResponse Schedule a recurring prompt
	//
	// Persists the prompt and recurrence, then hands due occurrences to the
	// existing Candace cron runtime. It does not create a browser timer or a
	// second in-process scheduler. An exact retry with the same
	// idempotencyKey and normalized request returns the original schedule;
	// reusing that key for a different normalized request returns a 409 with
	// code idempotency_key_reused.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/schedules (the `CreateChatSchedule` operationId).
	CreateChatScheduleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateChatScheduleResponse, error)

	// CreateChatScheduleWithResponse Schedule a recurring prompt
	//
	// Persists the prompt and recurrence, then hands due occurrences to the
	// existing Candace cron runtime. It does not create a browser timer or a
	// second in-process scheduler. An exact retry with the same
	// idempotencyKey and normalized request returns the original schedule;
	// reusing that key for a different normalized request returns a 409 with
	// code idempotency_key_reused.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/schedules (the `CreateChatSchedule` operationId).
	CreateChatScheduleWithResponse(ctx context.Context, body CreateChatScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateChatScheduleResponse, error)

	// DeleteChatScheduleWithResponse Delete a chat schedule
	//
	// Future occurrences stop; completed run records remain durable.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v1/schedules/{scheduleId} (the `DeleteChatSchedule` operationId).
	DeleteChatScheduleWithResponse(ctx context.Context, scheduleId ScheduleId, reqEditors ...RequestEditorFn) (*DeleteChatScheduleResponse, error)

	// GetChatScheduleWithResponse Read one chat schedule
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/schedules/{scheduleId} (the `GetChatSchedule` operationId).
	GetChatScheduleWithResponse(ctx context.Context, scheduleId ScheduleId, reqEditors ...RequestEditorFn) (*GetChatScheduleResponse, error)

	// UpdateChatScheduleWithBodyWithResponse Edit or pause a chat schedule
	//
	// Setting status to paused prevents future handoffs while preserving the
	// schedule and its run history. Re-activating recomputes nextRunAt from
	// the current time rather than replaying paused occurrences.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v1/schedules/{scheduleId} (the `UpdateChatSchedule` operationId).
	UpdateChatScheduleWithBodyWithResponse(ctx context.Context, scheduleId ScheduleId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateChatScheduleResponse, error)

	// UpdateChatScheduleWithResponse Edit or pause a chat schedule
	//
	// Setting status to paused prevents future handoffs while preserving the
	// schedule and its run history. Re-activating recomputes nextRunAt from
	// the current time rather than replaying paused occurrences.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v1/schedules/{scheduleId} (the `UpdateChatSchedule` operationId).
	UpdateChatScheduleWithResponse(ctx context.Context, scheduleId ScheduleId, body UpdateChatScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateChatScheduleResponse, error)

	// ListSessionsWithResponse List sessions
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/sessions (the `ListSessions` operationId).
	ListSessionsWithResponse(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*ListSessionsResponse, error)

	// CreateSessionWithBodyWithResponse Start a Copilot CLI session
	//
	// idempotencyKey is a client-generated UUID bound to the complete request.
	// Retrying the exact body with the same key returns the original session
	// without provisioning another worktree or CLI session; reusing the key
	// for different content returns 409. A retry of an admitted identity reuses
	// that admission without revalidating a model catalog that may have changed.
	// A new identity is accepted only when model exactly matches the same live
	// catalog returned by listModels; an unknown model returns 400 and an
	// unavailable provider catalog returns 502 before any session or worktree
	// side effect. worktreeMode selects one generated request branch, so
	// mode-incompatible fields are rejected by the schema. permissions defaults
	// to ask when absent, so omission never broadens tool authority.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/sessions (the `CreateSession` operationId).
	CreateSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)

	// CreateSessionWithResponse Start a Copilot CLI session
	//
	// idempotencyKey is a client-generated UUID bound to the complete request.
	// Retrying the exact body with the same key returns the original session
	// without provisioning another worktree or CLI session; reusing the key
	// for different content returns 409. A retry of an admitted identity reuses
	// that admission without revalidating a model catalog that may have changed.
	// A new identity is accepted only when model exactly matches the same live
	// catalog returned by listModels; an unknown model returns 400 and an
	// unavailable provider catalog returns 502 before any session or worktree
	// side effect. worktreeMode selects one generated request branch, so
	// mode-incompatible fields are rejected by the schema. permissions defaults
	// to ask when absent, so omission never broadens tool authority.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/sessions (the `CreateSession` operationId).
	CreateSessionWithResponse(ctx context.Context, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)

	// EndSessionWithResponse End a session
	//
	// Ends the underlying CLI session. The metadata persists with status
	// ended, so the transcript stays readable afterwards.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v1/sessions/{sessionId} (the `EndSession` operationId).
	EndSessionWithResponse(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*EndSessionResponse, error)

	// GetSessionWithResponse Get one session
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/sessions/{sessionId} (the `GetSession` operationId).
	GetSessionWithResponse(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*GetSessionResponse, error)

	// UpdateSessionWithBodyWithResponse Change a session model or display name
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v1/sessions/{sessionId} (the `UpdateSession` operationId).
	UpdateSessionWithBodyWithResponse(ctx context.Context, sessionId SessionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSessionResponse, error)

	// UpdateSessionWithResponse Change a session model or display name
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v1/sessions/{sessionId} (the `UpdateSession` operationId).
	UpdateSessionWithResponse(ctx context.Context, sessionId SessionId, body UpdateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSessionResponse, error)

	// AbortTurnWithBodyWithResponse Stop the turn in flight
	//
	// The client binds the request to the exact turn it observed. Retrying an
	// exact idempotencyKey and turnId returns that turn's durable abort result;
	// key reuse with another turn, or a successor becoming active before the
	// request reaches the CLI, returns 409 without aborting the successor.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/sessions/{sessionId}/abort (the `AbortTurn` operationId).
	AbortTurnWithBodyWithResponse(ctx context.Context, sessionId SessionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AbortTurnResponse, error)

	// AbortTurnWithResponse Stop the turn in flight
	//
	// The client binds the request to the exact turn it observed. Retrying an
	// exact idempotencyKey and turnId returns that turn's durable abort result;
	// key reuse with another turn, or a successor becoming active before the
	// request reaches the CLI, returns 409 without aborting the successor.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/sessions/{sessionId}/abort (the `AbortTurn` operationId).
	AbortTurnWithResponse(ctx context.Context, sessionId SessionId, body AbortTurnJSONRequestBody, reqEditors ...RequestEditorFn) (*AbortTurnResponse, error)

	// GetActiveTurnWithResponse Read the exact turn currently running
	//
	// Returns the durable running turn a client must bind into an abort
	// request. A turn that has not started or already became terminal is not
	// an abort target and returns 404.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/sessions/{sessionId}/active-turn (the `GetActiveTurn` operationId).
	GetActiveTurnWithResponse(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*GetActiveTurnResponse, error)

	// StreamSessionEventsWithResponse Stream session events as Server-Sent Events
	//
	// A text/event-stream of SessionEvent envelopes, one JSON object per SSE
	// data frame, with the event's seq as its SSE id. A client that
	// reconnects sends Last-Event-ID and receives everything after that
	// sequence number, so a replica never has to be rebuilt from scratch.
	//
	// The generated strict server cannot produce a streaming body, so this is
	// the ONE handler the backend stage writes by hand against the same
	// envelope schema; every other operation is served through the generated
	// strict interface. SessionEvent is declared under components/schemas
	// purely so the generator emits the Go and TypeScript types for it: no
	// generated handler ever returns it.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/sessions/{sessionId}/events (the `StreamSessionEvents` operationId).
	StreamSessionEventsWithResponse(ctx context.Context, sessionId SessionId, params *StreamSessionEventsParams, reqEditors ...RequestEditorFn) (*StreamSessionEventsResponse, error)

	// SubmitPromptWithBodyWithResponse Send a prompt to a session
	//
	// queue appends the prompt behind whatever the session is doing; steer
	// interrupts the current turn with it immediately. idempotencyKey is a
	// client-generated UUID scoped to this session. Retrying the exact body
	// with the same key returns the original turn without a second SDK
	// handoff; reusing the key for a different body returns 409.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/sessions/{sessionId}/prompts (the `SubmitPrompt` operationId).
	SubmitPromptWithBodyWithResponse(ctx context.Context, sessionId SessionId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitPromptResponse, error)

	// SubmitPromptWithResponse Send a prompt to a session
	//
	// queue appends the prompt behind whatever the session is doing; steer
	// interrupts the current turn with it immediately. idempotencyKey is a
	// client-generated UUID scoped to this session. Retrying the exact body
	// with the same key returns the original turn without a second SDK
	// handoff; reusing the key for a different body returns 409.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/sessions/{sessionId}/prompts (the `SubmitPrompt` operationId).
	SubmitPromptWithResponse(ctx context.Context, sessionId SessionId, body SubmitPromptJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitPromptResponse, error)

	// ListSessionRequestsWithResponse List the requests awaiting a decision
	//
	// Permission requests the session is blocked on, oldest first. Each
	// request is derived from the SDK event's exact request identifier. The
	// list is short by construction, so it is not paged.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/sessions/{sessionId}/requests (the `ListSessionRequests` operationId).
	ListSessionRequestsWithResponse(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*ListSessionRequestsResponse, error)

	// ResolveSessionRequestWithBodyWithResponse Resolve a pending permission request
	//
	// Permission requests accept approve or deny. Resolution is delivered to
	// the exact SDK request identifier and succeeds only after the SDK
	// acknowledges it. Repeating the same delivered decision is idempotent
	// and returns 200; a different decision is 409.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/sessions/{sessionId}/requests/{requestId}/resolve (the `ResolveSessionRequest` operationId).
	ResolveSessionRequestWithBodyWithResponse(ctx context.Context, sessionId SessionId, requestId RequestId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResolveSessionRequestResponse, error)

	// ResolveSessionRequestWithResponse Resolve a pending permission request
	//
	// Permission requests accept approve or deny. Resolution is delivered to
	// the exact SDK request identifier and succeeds only after the SDK
	// acknowledges it. Repeating the same delivered decision is idempotent
	// and returns 200; a different decision is 409.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/sessions/{sessionId}/requests/{requestId}/resolve (the `ResolveSessionRequest` operationId).
	ResolveSessionRequestWithResponse(ctx context.Context, sessionId SessionId, requestId RequestId, body ResolveSessionRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolveSessionRequestResponse, error)

	// ListSubagentsWithResponse List actual subagents reported by a session
	//
	// Rows come from SDK or adapter events persisted for this session. The
	// adapter never synthesizes active work merely to populate the pane.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/sessions/{sessionId}/subagents (the `ListSubagents` operationId).
	ListSubagentsWithResponse(ctx context.Context, sessionId SessionId, reqEditors ...RequestEditorFn) (*ListSubagentsResponse, error)

	// GetSubagentWithResponse Read one subagent's current lifecycle state
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/sessions/{sessionId}/subagents/{subagentId} (the `GetSubagent` operationId).
	GetSubagentWithResponse(ctx context.Context, sessionId SessionId, subagentId SubagentId, reqEditors ...RequestEditorFn) (*GetSubagentResponse, error)

	// ListSubagentActivityWithResponse Read one subagent's progress activity
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/sessions/{sessionId}/subagents/{subagentId}/activity (the `ListSubagentActivity` operationId).
	ListSubagentActivityWithResponse(ctx context.Context, sessionId SessionId, subagentId SubagentId, params *ListSubagentActivityParams, reqEditors ...RequestEditorFn) (*ListSubagentActivityResponse, error)

	// LinkSessionTaskWithBodyWithResponse Associate an exact session with its authoritative GitHub task
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /v1/sessions/{sessionId}/task (the `LinkSessionTask` operationId).
	LinkSessionTaskWithBodyWithResponse(ctx context.Context, sessionId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LinkSessionTaskResponse, error)

	// LinkSessionTaskWithResponse Associate an exact session with its authoritative GitHub task
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /v1/sessions/{sessionId}/task (the `LinkSessionTask` operationId).
	LinkSessionTaskWithResponse(ctx context.Context, sessionId openapi_types.UUID, body LinkSessionTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*LinkSessionTaskResponse, error)

	// ListTranscriptWithResponse Read a session's persisted transcript
	//
	// Items are ordered by seq, which is monotonic and gapless within a
	// session. Page forward with afterSeq; assistant token deltas are
	// collapsed into one item per assistant message before persistence.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/sessions/{sessionId}/transcript (the `ListTranscript` operationId).
	ListTranscriptWithResponse(ctx context.Context, sessionId SessionId, params *ListTranscriptParams, reqEditors ...RequestEditorFn) (*ListTranscriptResponse, error)

	// GetTelemetryWithResponse Retained provider usage and observed execution timing
	//
	// Missing usage fields are unknown. Premium requests are cumulative provider checkpoints, never inferred currency. Durations exclude queue time.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/telemetry (the `GetTelemetry` operationId).
	GetTelemetryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTelemetryResponse, error)

	// GetWorkspaceWithResponse Read the current workspace snapshot used by live widgets
	//
	// Reads retained session and worktree identities without inspecting git or starting processes. Live widgets subscribe to committed changes in the same Go process.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/workspace (the `GetWorkspace` operationId).
	GetWorkspaceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWorkspaceResponse, error)

	// RefreshWorkspaceWithResponse Ingest current linked issue checkpoints and notify live widgets
	//
	// Explicit external-change ingestion. Invoke after publishing or editing a linked checkpoint. Fetches the issue authority; does not trust checkpoint payloads supplied by a caller.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/workspace/refresh (the `RefreshWorkspace` operationId).
	RefreshWorkspaceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshWorkspaceResponse, error)

	// ListWorktreesWithResponse List worktrees containing chats
	//
	// Worktrees are returned by most-recent activity so a client can group
	// the persistent session list into a stable sidebar without inventing
	// browser-local workspace state.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/worktrees (the `ListWorktrees` operationId).
	ListWorktreesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListWorktreesResponse, error)

	// GetWorktreeWithResponse Read current worktree metadata
	//
	// The branch, HEAD, cleanliness and presence are inspected from git for
	// this response; they are not stale creation-time labels.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/worktrees/{worktreeId} (the `GetWorktree` operationId).
	GetWorktreeWithResponse(ctx context.Context, worktreeId WorktreeId, reqEditors ...RequestEditorFn) (*GetWorktreeResponse, error)

	// GetWorktreeChangesWithResponse Inspect repository status and diff
	//
	// Returns real porcelain status and a bounded patch from the addressed
	// worktree. When the patch reaches the server limit, truncated is true;
	// file status remains complete.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/worktrees/{worktreeId}/changes (the `GetWorktreeChanges` operationId).
	GetWorktreeChangesWithResponse(ctx context.Context, worktreeId WorktreeId, reqEditors ...RequestEditorFn) (*GetWorktreeChangesResponse, error)

	// ListTerminalsWithResponse List terminal sessions for a worktree
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/worktrees/{worktreeId}/terminals (the `ListTerminals` operationId).
	ListTerminalsWithResponse(ctx context.Context, worktreeId WorktreeId, reqEditors ...RequestEditorFn) (*ListTerminalsResponse, error)

	// CreateTerminalWithBodyWithResponse Start a bounded terminal in a worktree
	//
	// Starts the configured shell with its working directory fixed to the
	// worktree. The server owns the child process, output bound and cleanup;
	// clients cannot choose an executable or a different directory.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/worktrees/{worktreeId}/terminals (the `CreateTerminal` operationId).
	CreateTerminalWithBodyWithResponse(ctx context.Context, worktreeId WorktreeId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTerminalResponse, error)

	// CreateTerminalWithResponse Start a bounded terminal in a worktree
	//
	// Starts the configured shell with its working directory fixed to the
	// worktree. The server owns the child process, output bound and cleanup;
	// clients cannot choose an executable or a different directory.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/worktrees/{worktreeId}/terminals (the `CreateTerminal` operationId).
	CreateTerminalWithResponse(ctx context.Context, worktreeId WorktreeId, body CreateTerminalJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTerminalResponse, error)

	// StopTerminalWithResponse Stop a terminal and release its process
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v1/worktrees/{worktreeId}/terminals/{terminalId} (the `StopTerminal` operationId).
	StopTerminalWithResponse(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, reqEditors ...RequestEditorFn) (*StopTerminalResponse, error)

	// GetTerminalWithResponse Read terminal lifecycle state
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/worktrees/{worktreeId}/terminals/{terminalId} (the `GetTerminal` operationId).
	GetTerminalWithResponse(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, reqEditors ...RequestEditorFn) (*GetTerminalResponse, error)

	// ResizeTerminalWithBodyWithResponse Resize a running terminal
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v1/worktrees/{worktreeId}/terminals/{terminalId} (the `ResizeTerminal` operationId).
	ResizeTerminalWithBodyWithResponse(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResizeTerminalResponse, error)

	// ResizeTerminalWithResponse Resize a running terminal
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v1/worktrees/{worktreeId}/terminals/{terminalId} (the `ResizeTerminal` operationId).
	ResizeTerminalWithResponse(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, body ResizeTerminalJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeTerminalResponse, error)

	// StreamTerminalEventsWithResponse Stream bounded terminal output and exit state
	//
	// A text/event-stream of TerminalEvent envelopes. Last-Event-ID resumes
	// from the terminal's bounded replay buffer. A cursor older than retained
	// output receives the oldest retained event with replayTruncated true.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/worktrees/{worktreeId}/terminals/{terminalId}/events (the `StreamTerminalEvents` operationId).
	StreamTerminalEventsWithResponse(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, params *StreamTerminalEventsParams, reqEditors ...RequestEditorFn) (*StreamTerminalEventsResponse, error)

	// WriteTerminalInputWithBodyWithResponse Write input to a running terminal
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/worktrees/{worktreeId}/terminals/{terminalId}/input (the `WriteTerminalInput` operationId).
	WriteTerminalInputWithBodyWithResponse(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WriteTerminalInputResponse, error)

	// WriteTerminalInputWithResponse Write input to a running terminal
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/worktrees/{worktreeId}/terminals/{terminalId}/input (the `WriteTerminalInput` operationId).
	WriteTerminalInputWithResponse(ctx context.Context, worktreeId WorktreeId, terminalId TerminalId, body WriteTerminalInputJSONRequestBody, reqEditors ...RequestEditorFn) (*WriteTerminalInputResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Conflict

type Conflict = Error

Conflict defines model for Conflict.

type ConflictJSONResponse

type ConflictJSONResponse Error

type CreateChatSchedule201JSONResponse

type CreateChatSchedule201JSONResponse ChatSchedule

func (CreateChatSchedule201JSONResponse) VisitCreateChatScheduleResponse

func (response CreateChatSchedule201JSONResponse) VisitCreateChatScheduleResponse(w http.ResponseWriter) error

type CreateChatSchedule400JSONResponse

type CreateChatSchedule400JSONResponse struct{ BadRequestJSONResponse }

func (CreateChatSchedule400JSONResponse) VisitCreateChatScheduleResponse

func (response CreateChatSchedule400JSONResponse) VisitCreateChatScheduleResponse(w http.ResponseWriter) error

type CreateChatSchedule404JSONResponse

type CreateChatSchedule404JSONResponse struct{ NotFoundJSONResponse }

func (CreateChatSchedule404JSONResponse) VisitCreateChatScheduleResponse

func (response CreateChatSchedule404JSONResponse) VisitCreateChatScheduleResponse(w http.ResponseWriter) error

type CreateChatSchedule409JSONResponse

type CreateChatSchedule409JSONResponse struct{ ConflictJSONResponse }

func (CreateChatSchedule409JSONResponse) VisitCreateChatScheduleResponse

func (response CreateChatSchedule409JSONResponse) VisitCreateChatScheduleResponse(w http.ResponseWriter) error

type CreateChatSchedule500JSONResponse

type CreateChatSchedule500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (CreateChatSchedule500JSONResponse) VisitCreateChatScheduleResponse

func (response CreateChatSchedule500JSONResponse) VisitCreateChatScheduleResponse(w http.ResponseWriter) error

type CreateChatScheduleJSONRequestBody

type CreateChatScheduleJSONRequestBody = CreateChatScheduleRequest

CreateChatScheduleJSONRequestBody defines body for CreateChatSchedule for application/json ContentType.

type CreateChatScheduleRequest

type CreateChatScheduleRequest struct {
	CronExpression string `json:"cronExpression"`
	DisplayName    string `json:"displayName"`

	// IdempotencyKey Stable identity for one create attempt. Exact retries return the
	// original schedule; reusing the key for a different normalized
	// request returns idempotency_key_reused.
	IdempotencyKey openapi_types.UUID `json:"idempotencyKey"`
	Prompt         string             `json:"prompt"`
	SessionId      openapi_types.UUID `json:"sessionId"`
	Timezone       string             `json:"timezone"`
}

CreateChatScheduleRequest defines model for CreateChatScheduleRequest.

type CreateChatScheduleRequestObject

type CreateChatScheduleRequestObject struct {
	Body *CreateChatScheduleJSONRequestBody
}

type CreateChatScheduleResponse

type CreateChatScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *ChatSchedule
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseCreateChatScheduleResponse

func ParseCreateChatScheduleResponse(rsp *http.Response) (*CreateChatScheduleResponse, error)

ParseCreateChatScheduleResponse parses an HTTP response from a CreateChatScheduleWithResponse call

func (CreateChatScheduleResponse) ContentType

func (r CreateChatScheduleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateChatScheduleResponse) GetBody

func (r CreateChatScheduleResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateChatScheduleResponse) GetJSON201

func (r CreateChatScheduleResponse) GetJSON201() *ChatSchedule

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateChatScheduleResponse) GetJSON400

func (r CreateChatScheduleResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateChatScheduleResponse) GetJSON404

func (r CreateChatScheduleResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateChatScheduleResponse) GetJSON409

func (r CreateChatScheduleResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateChatScheduleResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CreateChatScheduleResponse) Status

Status returns HTTPResponse.Status

func (CreateChatScheduleResponse) StatusCode

func (r CreateChatScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateChatScheduleResponseObject

type CreateChatScheduleResponseObject interface {
	VisitCreateChatScheduleResponse(w http.ResponseWriter) error
}

type CreateSession201JSONResponse

type CreateSession201JSONResponse Session

func (CreateSession201JSONResponse) VisitCreateSessionResponse

func (response CreateSession201JSONResponse) VisitCreateSessionResponse(w http.ResponseWriter) error

type CreateSession400JSONResponse

type CreateSession400JSONResponse struct{ BadRequestJSONResponse }

func (CreateSession400JSONResponse) VisitCreateSessionResponse

func (response CreateSession400JSONResponse) VisitCreateSessionResponse(w http.ResponseWriter) error

type CreateSession404JSONResponse

type CreateSession404JSONResponse struct{ NotFoundJSONResponse }

func (CreateSession404JSONResponse) VisitCreateSessionResponse

func (response CreateSession404JSONResponse) VisitCreateSessionResponse(w http.ResponseWriter) error

type CreateSession409JSONResponse

type CreateSession409JSONResponse struct{ ConflictJSONResponse }

func (CreateSession409JSONResponse) VisitCreateSessionResponse

func (response CreateSession409JSONResponse) VisitCreateSessionResponse(w http.ResponseWriter) error

type CreateSession500JSONResponse

type CreateSession500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (CreateSession500JSONResponse) VisitCreateSessionResponse

func (response CreateSession500JSONResponse) VisitCreateSessionResponse(w http.ResponseWriter) error

type CreateSession502JSONResponse

type CreateSession502JSONResponse struct{ BadGatewayJSONResponse }

func (CreateSession502JSONResponse) VisitCreateSessionResponse

func (response CreateSession502JSONResponse) VisitCreateSessionResponse(w http.ResponseWriter) error

type CreateSessionJSONRequestBody

type CreateSessionJSONRequestBody = CreateSessionRequest

CreateSessionJSONRequestBody defines body for CreateSession for application/json ContentType.

type CreateSessionRequest

type CreateSessionRequest struct {
	// contains filtered or unexported fields
}

CreateSessionRequest A generated discriminated union. Every branch carries the complete session creation request and only the worktree fields valid for its required worktreeMode discriminator.

func (CreateSessionRequest) AsCurrentWorktreeSessionRequest

func (t CreateSessionRequest) AsCurrentWorktreeSessionRequest() (CurrentWorktreeSessionRequest, error)

AsCurrentWorktreeSessionRequest returns the union data inside the CreateSessionRequest as a CurrentWorktreeSessionRequest

func (CreateSessionRequest) AsExistingWorktreeSessionRequest

func (t CreateSessionRequest) AsExistingWorktreeSessionRequest() (ExistingWorktreeSessionRequest, error)

AsExistingWorktreeSessionRequest returns the union data inside the CreateSessionRequest as a ExistingWorktreeSessionRequest

func (CreateSessionRequest) AsNewWorktreeSessionRequest

func (t CreateSessionRequest) AsNewWorktreeSessionRequest() (NewWorktreeSessionRequest, error)

AsNewWorktreeSessionRequest returns the union data inside the CreateSessionRequest as a NewWorktreeSessionRequest

func (CreateSessionRequest) Discriminator

func (t CreateSessionRequest) Discriminator() (string, error)

func (*CreateSessionRequest) FromCurrentWorktreeSessionRequest

func (t *CreateSessionRequest) FromCurrentWorktreeSessionRequest(v CurrentWorktreeSessionRequest) error

FromCurrentWorktreeSessionRequest overwrites any union data inside the CreateSessionRequest as the provided CurrentWorktreeSessionRequest

func (*CreateSessionRequest) FromExistingWorktreeSessionRequest

func (t *CreateSessionRequest) FromExistingWorktreeSessionRequest(v ExistingWorktreeSessionRequest) error

FromExistingWorktreeSessionRequest overwrites any union data inside the CreateSessionRequest as the provided ExistingWorktreeSessionRequest

func (*CreateSessionRequest) FromNewWorktreeSessionRequest

func (t *CreateSessionRequest) FromNewWorktreeSessionRequest(v NewWorktreeSessionRequest) error

FromNewWorktreeSessionRequest overwrites any union data inside the CreateSessionRequest as the provided NewWorktreeSessionRequest

func (CreateSessionRequest) MarshalJSON

func (t CreateSessionRequest) MarshalJSON() ([]byte, error)

func (*CreateSessionRequest) MergeCurrentWorktreeSessionRequest

func (t *CreateSessionRequest) MergeCurrentWorktreeSessionRequest(v CurrentWorktreeSessionRequest) error

MergeCurrentWorktreeSessionRequest performs a merge with any union data inside the CreateSessionRequest, using the provided CurrentWorktreeSessionRequest

func (*CreateSessionRequest) MergeExistingWorktreeSessionRequest

func (t *CreateSessionRequest) MergeExistingWorktreeSessionRequest(v ExistingWorktreeSessionRequest) error

MergeExistingWorktreeSessionRequest performs a merge with any union data inside the CreateSessionRequest, using the provided ExistingWorktreeSessionRequest

func (*CreateSessionRequest) MergeNewWorktreeSessionRequest

func (t *CreateSessionRequest) MergeNewWorktreeSessionRequest(v NewWorktreeSessionRequest) error

MergeNewWorktreeSessionRequest performs a merge with any union data inside the CreateSessionRequest, using the provided NewWorktreeSessionRequest

func (*CreateSessionRequest) UnmarshalJSON

func (t *CreateSessionRequest) UnmarshalJSON(b []byte) error

func (CreateSessionRequest) ValueByDiscriminator

func (t CreateSessionRequest) ValueByDiscriminator() (interface{}, error)

type CreateSessionRequestObject

type CreateSessionRequestObject struct {
	Body *CreateSessionJSONRequestBody
}

type CreateSessionResponse

type CreateSessionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Session
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
	// JSON502 the response for an HTTP 502 `application/json` response
	JSON502 *BadGateway
}

func ParseCreateSessionResponse

func ParseCreateSessionResponse(rsp *http.Response) (*CreateSessionResponse, error)

ParseCreateSessionResponse parses an HTTP response from a CreateSessionWithResponse call

func (CreateSessionResponse) ContentType

func (r CreateSessionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateSessionResponse) GetBody

func (r CreateSessionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateSessionResponse) GetJSON201

func (r CreateSessionResponse) GetJSON201() *Session

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateSessionResponse) GetJSON400

func (r CreateSessionResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateSessionResponse) GetJSON404

func (r CreateSessionResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateSessionResponse) GetJSON409

func (r CreateSessionResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateSessionResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CreateSessionResponse) GetJSON502

func (r CreateSessionResponse) GetJSON502() *BadGateway

GetJSON502 returns the response for an HTTP 502 `application/json` response

func (CreateSessionResponse) Status

func (r CreateSessionResponse) Status() string

Status returns HTTPResponse.Status

func (CreateSessionResponse) StatusCode

func (r CreateSessionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSessionResponseObject

type CreateSessionResponseObject interface {
	VisitCreateSessionResponse(w http.ResponseWriter) error
}

type CreateTerminal201JSONResponse

type CreateTerminal201JSONResponse Terminal

func (CreateTerminal201JSONResponse) VisitCreateTerminalResponse

func (response CreateTerminal201JSONResponse) VisitCreateTerminalResponse(w http.ResponseWriter) error

type CreateTerminal400JSONResponse

type CreateTerminal400JSONResponse struct{ BadRequestJSONResponse }

func (CreateTerminal400JSONResponse) VisitCreateTerminalResponse

func (response CreateTerminal400JSONResponse) VisitCreateTerminalResponse(w http.ResponseWriter) error

type CreateTerminal404JSONResponse

type CreateTerminal404JSONResponse struct{ NotFoundJSONResponse }

func (CreateTerminal404JSONResponse) VisitCreateTerminalResponse

func (response CreateTerminal404JSONResponse) VisitCreateTerminalResponse(w http.ResponseWriter) error

type CreateTerminal409JSONResponse

type CreateTerminal409JSONResponse struct{ ConflictJSONResponse }

func (CreateTerminal409JSONResponse) VisitCreateTerminalResponse

func (response CreateTerminal409JSONResponse) VisitCreateTerminalResponse(w http.ResponseWriter) error

type CreateTerminal500JSONResponse

type CreateTerminal500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (CreateTerminal500JSONResponse) VisitCreateTerminalResponse

func (response CreateTerminal500JSONResponse) VisitCreateTerminalResponse(w http.ResponseWriter) error

type CreateTerminalJSONRequestBody

type CreateTerminalJSONRequestBody = CreateTerminalRequest

CreateTerminalJSONRequestBody defines body for CreateTerminal for application/json ContentType.

type CreateTerminalRequest

type CreateTerminalRequest struct {
	Columns int32 `json:"columns"`
	Rows    int32 `json:"rows"`
}

CreateTerminalRequest defines model for CreateTerminalRequest.

type CreateTerminalRequestObject

type CreateTerminalRequestObject struct {
	WorktreeId WorktreeId `json:"worktreeId"`
	Body       *CreateTerminalJSONRequestBody
}

type CreateTerminalResponse

type CreateTerminalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Terminal
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseCreateTerminalResponse

func ParseCreateTerminalResponse(rsp *http.Response) (*CreateTerminalResponse, error)

ParseCreateTerminalResponse parses an HTTP response from a CreateTerminalWithResponse call

func (CreateTerminalResponse) ContentType

func (r CreateTerminalResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateTerminalResponse) GetBody

func (r CreateTerminalResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateTerminalResponse) GetJSON201

func (r CreateTerminalResponse) GetJSON201() *Terminal

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateTerminalResponse) GetJSON400

func (r CreateTerminalResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateTerminalResponse) GetJSON404

func (r CreateTerminalResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateTerminalResponse) GetJSON409

func (r CreateTerminalResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateTerminalResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CreateTerminalResponse) Status

func (r CreateTerminalResponse) Status() string

Status returns HTTPResponse.Status

func (CreateTerminalResponse) StatusCode

func (r CreateTerminalResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateTerminalResponseObject

type CreateTerminalResponseObject interface {
	VisitCreateTerminalResponse(w http.ResponseWriter) error
}

type CurrentWorktreeSessionRequest

type CurrentWorktreeSessionRequest struct {
	// AgentId Optional CSF agent identity used to resolve that session's MCP configuration.
	AgentId     *string `json:"agentId,omitempty"`
	DisplayName *string `json:"displayName,omitempty"`

	// IdempotencyKey Client-generated identity bound to this complete request.
	IdempotencyKey openapi_types.UUID `json:"idempotencyKey"`
	Model          string             `json:"model"`

	// Permissions ask leaves every request pending for an operator. approveAll approves
	// requests the provider permits a host to approve automatically. allowlist
	// approves only an exact tool name or a matching full shell-command glob;
	// every other request remains pending.
	Permissions *PermissionPolicyMode `json:"permissions,omitempty"`

	// RepositoryId Identifier from listRepositories, never an arbitrary path.
	RepositoryId string `json:"repositoryId"`

	// ShellAllowlist Globs matched against the complete shell command in allowlist mode.
	ShellAllowlist     *PermissionShellAllowlist `json:"shellAllowlist,omitempty"`
	SystemInstructions *string                   `json:"systemInstructions,omitempty"`

	// ToolAllowlist Exact, case-sensitive SDK tool names approved in allowlist mode.
	ToolAllowlist *PermissionToolAllowlist                  `json:"toolAllowlist,omitempty"`
	WorktreeMode  CurrentWorktreeSessionRequestWorktreeMode `json:"worktreeMode"`
}

CurrentWorktreeSessionRequest defines model for CurrentWorktreeSessionRequest.

type CurrentWorktreeSessionRequestWorktreeMode

type CurrentWorktreeSessionRequestWorktreeMode string

CurrentWorktreeSessionRequestWorktreeMode defines model for CurrentWorktreeSessionRequest.WorktreeMode.

const (
	CurrentWorktreeRequestMode CurrentWorktreeSessionRequestWorktreeMode = "reuseCurrentWorktree"
)

Defines values for CurrentWorktreeSessionRequestWorktreeMode.

func (CurrentWorktreeSessionRequestWorktreeMode) Valid

Valid indicates whether the value is a known member of the CurrentWorktreeSessionRequestWorktreeMode enum.

type Cursor

type Cursor = string

Cursor defines model for Cursor.

type DeleteChatSchedule204Response

type DeleteChatSchedule204Response struct {
}

func (DeleteChatSchedule204Response) VisitDeleteChatScheduleResponse

func (response DeleteChatSchedule204Response) VisitDeleteChatScheduleResponse(w http.ResponseWriter) error

type DeleteChatSchedule400JSONResponse

type DeleteChatSchedule400JSONResponse struct{ BadRequestJSONResponse }

func (DeleteChatSchedule400JSONResponse) VisitDeleteChatScheduleResponse

func (response DeleteChatSchedule400JSONResponse) VisitDeleteChatScheduleResponse(w http.ResponseWriter) error

type DeleteChatSchedule404JSONResponse

type DeleteChatSchedule404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteChatSchedule404JSONResponse) VisitDeleteChatScheduleResponse

func (response DeleteChatSchedule404JSONResponse) VisitDeleteChatScheduleResponse(w http.ResponseWriter) error

type DeleteChatSchedule409JSONResponse

type DeleteChatSchedule409JSONResponse struct{ ConflictJSONResponse }

func (DeleteChatSchedule409JSONResponse) VisitDeleteChatScheduleResponse

func (response DeleteChatSchedule409JSONResponse) VisitDeleteChatScheduleResponse(w http.ResponseWriter) error

type DeleteChatSchedule500JSONResponse

type DeleteChatSchedule500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (DeleteChatSchedule500JSONResponse) VisitDeleteChatScheduleResponse

func (response DeleteChatSchedule500JSONResponse) VisitDeleteChatScheduleResponse(w http.ResponseWriter) error

type DeleteChatScheduleRequestObject

type DeleteChatScheduleRequestObject struct {
	ScheduleId ScheduleId `json:"scheduleId"`
}

type DeleteChatScheduleResponse

type DeleteChatScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseDeleteChatScheduleResponse

func ParseDeleteChatScheduleResponse(rsp *http.Response) (*DeleteChatScheduleResponse, error)

ParseDeleteChatScheduleResponse parses an HTTP response from a DeleteChatScheduleWithResponse call

func (DeleteChatScheduleResponse) ContentType

func (r DeleteChatScheduleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteChatScheduleResponse) GetBody

func (r DeleteChatScheduleResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteChatScheduleResponse) GetJSON400

func (r DeleteChatScheduleResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DeleteChatScheduleResponse) GetJSON404

func (r DeleteChatScheduleResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteChatScheduleResponse) GetJSON409

func (r DeleteChatScheduleResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (DeleteChatScheduleResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (DeleteChatScheduleResponse) Status

Status returns HTTPResponse.Status

func (DeleteChatScheduleResponse) StatusCode

func (r DeleteChatScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteChatScheduleResponseObject

type DeleteChatScheduleResponseObject interface {
	VisitDeleteChatScheduleResponse(w http.ResponseWriter) error
}

type EndSession200JSONResponse

type EndSession200JSONResponse Session

func (EndSession200JSONResponse) VisitEndSessionResponse

func (response EndSession200JSONResponse) VisitEndSessionResponse(w http.ResponseWriter) error

type EndSession400JSONResponse

type EndSession400JSONResponse struct{ BadRequestJSONResponse }

func (EndSession400JSONResponse) VisitEndSessionResponse

func (response EndSession400JSONResponse) VisitEndSessionResponse(w http.ResponseWriter) error

type EndSession404JSONResponse

type EndSession404JSONResponse struct{ NotFoundJSONResponse }

func (EndSession404JSONResponse) VisitEndSessionResponse

func (response EndSession404JSONResponse) VisitEndSessionResponse(w http.ResponseWriter) error

type EndSession409JSONResponse

type EndSession409JSONResponse struct{ ConflictJSONResponse }

func (EndSession409JSONResponse) VisitEndSessionResponse

func (response EndSession409JSONResponse) VisitEndSessionResponse(w http.ResponseWriter) error

type EndSession500JSONResponse

type EndSession500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (EndSession500JSONResponse) VisitEndSessionResponse

func (response EndSession500JSONResponse) VisitEndSessionResponse(w http.ResponseWriter) error

type EndSessionRequestObject

type EndSessionRequestObject struct {
	SessionId SessionId `json:"sessionId"`
}

type EndSessionResponse

type EndSessionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Session
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseEndSessionResponse

func ParseEndSessionResponse(rsp *http.Response) (*EndSessionResponse, error)

ParseEndSessionResponse parses an HTTP response from a EndSessionWithResponse call

func (EndSessionResponse) ContentType

func (r EndSessionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (EndSessionResponse) GetBody

func (r EndSessionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (EndSessionResponse) GetJSON200

func (r EndSessionResponse) GetJSON200() *Session

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (EndSessionResponse) GetJSON400

func (r EndSessionResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (EndSessionResponse) GetJSON404

func (r EndSessionResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (EndSessionResponse) GetJSON409

func (r EndSessionResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (EndSessionResponse) GetJSON500

func (r EndSessionResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (EndSessionResponse) Status

func (r EndSessionResponse) Status() string

Status returns HTTPResponse.Status

func (EndSessionResponse) StatusCode

func (r EndSessionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EndSessionResponseObject

type EndSessionResponseObject interface {
	VisitEndSessionResponse(w http.ResponseWriter) error
}

type Error

type Error struct {
	// Code Stable machine-readable reason, such as session_not_found.
	Code string `json:"code"`

	// Details Optional per-code context, such as the offending field.
	Details *map[string]interface{} `json:"details,omitempty"`
	Message string                  `json:"message"`
}

Error defines model for Error.

type ExistingWorktreeSessionRequest

type ExistingWorktreeSessionRequest struct {
	// AgentId Optional CSF agent identity used to resolve that session's MCP configuration.
	AgentId     *string `json:"agentId,omitempty"`
	DisplayName *string `json:"displayName,omitempty"`

	// IdempotencyKey Client-generated identity bound to this complete request.
	IdempotencyKey openapi_types.UUID `json:"idempotencyKey"`
	Model          string             `json:"model"`

	// Permissions ask leaves every request pending for an operator. approveAll approves
	// requests the provider permits a host to approve automatically. allowlist
	// approves only an exact tool name or a matching full shell-command glob;
	// every other request remains pending.
	Permissions *PermissionPolicyMode `json:"permissions,omitempty"`

	// RepositoryId Identifier from listRepositories, never an arbitrary path.
	RepositoryId string `json:"repositoryId"`

	// ShellAllowlist Globs matched against the complete shell command in allowlist mode.
	ShellAllowlist     *PermissionShellAllowlist `json:"shellAllowlist,omitempty"`
	SystemInstructions *string                   `json:"systemInstructions,omitempty"`

	// ToolAllowlist Exact, case-sensitive SDK tool names approved in allowlist mode.
	ToolAllowlist *PermissionToolAllowlist `json:"toolAllowlist,omitempty"`

	// WorktreeId Required server-recorded worktree selected by identifier.
	WorktreeId   openapi_types.UUID                         `json:"worktreeId"`
	WorktreeMode ExistingWorktreeSessionRequestWorktreeMode `json:"worktreeMode"`
}

ExistingWorktreeSessionRequest defines model for ExistingWorktreeSessionRequest.

type ExistingWorktreeSessionRequestWorktreeMode

type ExistingWorktreeSessionRequestWorktreeMode string

ExistingWorktreeSessionRequestWorktreeMode defines model for ExistingWorktreeSessionRequest.WorktreeMode.

const (
	ExistingWorktreeRequestMode ExistingWorktreeSessionRequestWorktreeMode = "reuseExistingWorktree"
)

Defines values for ExistingWorktreeSessionRequestWorktreeMode.

func (ExistingWorktreeSessionRequestWorktreeMode) Valid

Valid indicates whether the value is a known member of the ExistingWorktreeSessionRequestWorktreeMode enum.

type FailureCode

type FailureCode int32

FailureCode Stable session failure identity. Codes are assigned monotonically and never renumbered or reused: 0 none, 1 provider shutdown, 2 session creation failed, 3 provider session missing, 4 worktree unavailable. Classify by this value; failureReason is diagnostic text for a human.

const (
	FailureCodeNone                   FailureCode = 0
	FailureCodeProviderSessionMissing FailureCode = 3
	FailureCodeProviderShutdown       FailureCode = 1
	FailureCodeSessionCreationFailed  FailureCode = 2
	FailureCodeWorktreeUnavailable    FailureCode = 4
)

Defines values for FailureCode.

func (FailureCode) Valid

func (e FailureCode) Valid() bool

Valid indicates whether the value is a known member of the FailureCode enum.

type GetActiveTurn200JSONResponse

type GetActiveTurn200JSONResponse Turn

func (GetActiveTurn200JSONResponse) VisitGetActiveTurnResponse

func (response GetActiveTurn200JSONResponse) VisitGetActiveTurnResponse(w http.ResponseWriter) error

type GetActiveTurn400JSONResponse

type GetActiveTurn400JSONResponse struct{ BadRequestJSONResponse }

func (GetActiveTurn400JSONResponse) VisitGetActiveTurnResponse

func (response GetActiveTurn400JSONResponse) VisitGetActiveTurnResponse(w http.ResponseWriter) error

type GetActiveTurn404JSONResponse

type GetActiveTurn404JSONResponse struct{ NotFoundJSONResponse }

func (GetActiveTurn404JSONResponse) VisitGetActiveTurnResponse

func (response GetActiveTurn404JSONResponse) VisitGetActiveTurnResponse(w http.ResponseWriter) error

type GetActiveTurn500JSONResponse

type GetActiveTurn500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (GetActiveTurn500JSONResponse) VisitGetActiveTurnResponse

func (response GetActiveTurn500JSONResponse) VisitGetActiveTurnResponse(w http.ResponseWriter) error

type GetActiveTurnRequestObject

type GetActiveTurnRequestObject struct {
	SessionId SessionId `json:"sessionId"`
}

type GetActiveTurnResponse

type GetActiveTurnResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Turn
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseGetActiveTurnResponse

func ParseGetActiveTurnResponse(rsp *http.Response) (*GetActiveTurnResponse, error)

ParseGetActiveTurnResponse parses an HTTP response from a GetActiveTurnWithResponse call

func (GetActiveTurnResponse) ContentType

func (r GetActiveTurnResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetActiveTurnResponse) GetBody

func (r GetActiveTurnResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetActiveTurnResponse) GetJSON200

func (r GetActiveTurnResponse) GetJSON200() *Turn

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetActiveTurnResponse) GetJSON400

func (r GetActiveTurnResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetActiveTurnResponse) GetJSON404

func (r GetActiveTurnResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetActiveTurnResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetActiveTurnResponse) Status

func (r GetActiveTurnResponse) Status() string

Status returns HTTPResponse.Status

func (GetActiveTurnResponse) StatusCode

func (r GetActiveTurnResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetActiveTurnResponseObject

type GetActiveTurnResponseObject interface {
	VisitGetActiveTurnResponse(w http.ResponseWriter) error
}

type GetChatSchedule200JSONResponse

type GetChatSchedule200JSONResponse ChatSchedule

func (GetChatSchedule200JSONResponse) VisitGetChatScheduleResponse

func (response GetChatSchedule200JSONResponse) VisitGetChatScheduleResponse(w http.ResponseWriter) error

type GetChatSchedule400JSONResponse

type GetChatSchedule400JSONResponse struct{ BadRequestJSONResponse }

func (GetChatSchedule400JSONResponse) VisitGetChatScheduleResponse

func (response GetChatSchedule400JSONResponse) VisitGetChatScheduleResponse(w http.ResponseWriter) error

type GetChatSchedule404JSONResponse

type GetChatSchedule404JSONResponse struct{ NotFoundJSONResponse }

func (GetChatSchedule404JSONResponse) VisitGetChatScheduleResponse

func (response GetChatSchedule404JSONResponse) VisitGetChatScheduleResponse(w http.ResponseWriter) error

type GetChatSchedule500JSONResponse

type GetChatSchedule500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (GetChatSchedule500JSONResponse) VisitGetChatScheduleResponse

func (response GetChatSchedule500JSONResponse) VisitGetChatScheduleResponse(w http.ResponseWriter) error

type GetChatScheduleRequestObject

type GetChatScheduleRequestObject struct {
	ScheduleId ScheduleId `json:"scheduleId"`
}

type GetChatScheduleResponse

type GetChatScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ChatSchedule
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseGetChatScheduleResponse

func ParseGetChatScheduleResponse(rsp *http.Response) (*GetChatScheduleResponse, error)

ParseGetChatScheduleResponse parses an HTTP response from a GetChatScheduleWithResponse call

func (GetChatScheduleResponse) ContentType

func (r GetChatScheduleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetChatScheduleResponse) GetBody

func (r GetChatScheduleResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetChatScheduleResponse) GetJSON200

func (r GetChatScheduleResponse) GetJSON200() *ChatSchedule

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetChatScheduleResponse) GetJSON400

func (r GetChatScheduleResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetChatScheduleResponse) GetJSON404

func (r GetChatScheduleResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetChatScheduleResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetChatScheduleResponse) Status

func (r GetChatScheduleResponse) Status() string

Status returns HTTPResponse.Status

func (GetChatScheduleResponse) StatusCode

func (r GetChatScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetChatScheduleResponseObject

type GetChatScheduleResponseObject interface {
	VisitGetChatScheduleResponse(w http.ResponseWriter) error
}

type GetHealth200JSONResponse

type GetHealth200JSONResponse Health

func (GetHealth200JSONResponse) VisitGetHealthResponse

func (response GetHealth200JSONResponse) VisitGetHealthResponse(w http.ResponseWriter) error

type GetHealth500JSONResponse

type GetHealth500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (GetHealth500JSONResponse) VisitGetHealthResponse

func (response GetHealth500JSONResponse) VisitGetHealthResponse(w http.ResponseWriter) error

type GetHealthRequestObject

type GetHealthRequestObject struct {
}

type GetHealthResponse

type GetHealthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Health
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseGetHealthResponse

func ParseGetHealthResponse(rsp *http.Response) (*GetHealthResponse, error)

ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call

func (GetHealthResponse) ContentType

func (r GetHealthResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetHealthResponse) GetBody

func (r GetHealthResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetHealthResponse) GetJSON200

func (r GetHealthResponse) GetJSON200() *Health

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetHealthResponse) GetJSON500

func (r GetHealthResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetHealthResponse) Status

func (r GetHealthResponse) Status() string

Status returns HTTPResponse.Status

func (GetHealthResponse) StatusCode

func (r GetHealthResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHealthResponseObject

type GetHealthResponseObject interface {
	VisitGetHealthResponse(w http.ResponseWriter) error
}

type GetSession200JSONResponse

type GetSession200JSONResponse Session

func (GetSession200JSONResponse) VisitGetSessionResponse

func (response GetSession200JSONResponse) VisitGetSessionResponse(w http.ResponseWriter) error

type GetSession400JSONResponse

type GetSession400JSONResponse struct{ BadRequestJSONResponse }

func (GetSession400JSONResponse) VisitGetSessionResponse

func (response GetSession400JSONResponse) VisitGetSessionResponse(w http.ResponseWriter) error

type GetSession404JSONResponse

type GetSession404JSONResponse struct{ NotFoundJSONResponse }

func (GetSession404JSONResponse) VisitGetSessionResponse

func (response GetSession404JSONResponse) VisitGetSessionResponse(w http.ResponseWriter) error

type GetSession500JSONResponse

type GetSession500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (GetSession500JSONResponse) VisitGetSessionResponse

func (response GetSession500JSONResponse) VisitGetSessionResponse(w http.ResponseWriter) error

type GetSessionRequestObject

type GetSessionRequestObject struct {
	SessionId SessionId `json:"sessionId"`
}

type GetSessionResponse

type GetSessionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Session
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseGetSessionResponse

func ParseGetSessionResponse(rsp *http.Response) (*GetSessionResponse, error)

ParseGetSessionResponse parses an HTTP response from a GetSessionWithResponse call

func (GetSessionResponse) ContentType

func (r GetSessionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetSessionResponse) GetBody

func (r GetSessionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetSessionResponse) GetJSON200

func (r GetSessionResponse) GetJSON200() *Session

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetSessionResponse) GetJSON400

func (r GetSessionResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetSessionResponse) GetJSON404

func (r GetSessionResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetSessionResponse) GetJSON500

func (r GetSessionResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetSessionResponse) Status

func (r GetSessionResponse) Status() string

Status returns HTTPResponse.Status

func (GetSessionResponse) StatusCode

func (r GetSessionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSessionResponseObject

type GetSessionResponseObject interface {
	VisitGetSessionResponse(w http.ResponseWriter) error
}

type GetSubagent200JSONResponse

type GetSubagent200JSONResponse Subagent

func (GetSubagent200JSONResponse) VisitGetSubagentResponse

func (response GetSubagent200JSONResponse) VisitGetSubagentResponse(w http.ResponseWriter) error

type GetSubagent400JSONResponse

type GetSubagent400JSONResponse struct{ BadRequestJSONResponse }

func (GetSubagent400JSONResponse) VisitGetSubagentResponse

func (response GetSubagent400JSONResponse) VisitGetSubagentResponse(w http.ResponseWriter) error

type GetSubagent404JSONResponse

type GetSubagent404JSONResponse struct{ NotFoundJSONResponse }

func (GetSubagent404JSONResponse) VisitGetSubagentResponse

func (response GetSubagent404JSONResponse) VisitGetSubagentResponse(w http.ResponseWriter) error

type GetSubagent500JSONResponse

type GetSubagent500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (GetSubagent500JSONResponse) VisitGetSubagentResponse

func (response GetSubagent500JSONResponse) VisitGetSubagentResponse(w http.ResponseWriter) error

type GetSubagentRequestObject

type GetSubagentRequestObject struct {
	SessionId  SessionId  `json:"sessionId"`
	SubagentId SubagentId `json:"subagentId"`
}

type GetSubagentResponse

type GetSubagentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Subagent
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseGetSubagentResponse

func ParseGetSubagentResponse(rsp *http.Response) (*GetSubagentResponse, error)

ParseGetSubagentResponse parses an HTTP response from a GetSubagentWithResponse call

func (GetSubagentResponse) ContentType

func (r GetSubagentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetSubagentResponse) GetBody

func (r GetSubagentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetSubagentResponse) GetJSON200

func (r GetSubagentResponse) GetJSON200() *Subagent

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetSubagentResponse) GetJSON400

func (r GetSubagentResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetSubagentResponse) GetJSON404

func (r GetSubagentResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetSubagentResponse) GetJSON500

func (r GetSubagentResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetSubagentResponse) Status

func (r GetSubagentResponse) Status() string

Status returns HTTPResponse.Status

func (GetSubagentResponse) StatusCode

func (r GetSubagentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSubagentResponseObject

type GetSubagentResponseObject interface {
	VisitGetSubagentResponse(w http.ResponseWriter) error
}

type GetTelemetry200JSONResponse

type GetTelemetry200JSONResponse TelemetrySnapshot

func (GetTelemetry200JSONResponse) VisitGetTelemetryResponse

func (response GetTelemetry200JSONResponse) VisitGetTelemetryResponse(w http.ResponseWriter) error

type GetTelemetry500JSONResponse

type GetTelemetry500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (GetTelemetry500JSONResponse) VisitGetTelemetryResponse

func (response GetTelemetry500JSONResponse) VisitGetTelemetryResponse(w http.ResponseWriter) error

type GetTelemetryRequestObject

type GetTelemetryRequestObject struct {
}

type GetTelemetryResponse

type GetTelemetryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TelemetrySnapshot
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseGetTelemetryResponse

func ParseGetTelemetryResponse(rsp *http.Response) (*GetTelemetryResponse, error)

ParseGetTelemetryResponse parses an HTTP response from a GetTelemetryWithResponse call

func (GetTelemetryResponse) ContentType

func (r GetTelemetryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTelemetryResponse) GetBody

func (r GetTelemetryResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetTelemetryResponse) GetJSON200

func (r GetTelemetryResponse) GetJSON200() *TelemetrySnapshot

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetTelemetryResponse) GetJSON500

func (r GetTelemetryResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetTelemetryResponse) Status

func (r GetTelemetryResponse) Status() string

Status returns HTTPResponse.Status

func (GetTelemetryResponse) StatusCode

func (r GetTelemetryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTelemetryResponseObject

type GetTelemetryResponseObject interface {
	VisitGetTelemetryResponse(w http.ResponseWriter) error
}

type GetTerminal200JSONResponse

type GetTerminal200JSONResponse Terminal

func (GetTerminal200JSONResponse) VisitGetTerminalResponse

func (response GetTerminal200JSONResponse) VisitGetTerminalResponse(w http.ResponseWriter) error

type GetTerminal400JSONResponse

type GetTerminal400JSONResponse struct{ BadRequestJSONResponse }

func (GetTerminal400JSONResponse) VisitGetTerminalResponse

func (response GetTerminal400JSONResponse) VisitGetTerminalResponse(w http.ResponseWriter) error

type GetTerminal404JSONResponse

type GetTerminal404JSONResponse struct{ NotFoundJSONResponse }

func (GetTerminal404JSONResponse) VisitGetTerminalResponse

func (response GetTerminal404JSONResponse) VisitGetTerminalResponse(w http.ResponseWriter) error

type GetTerminal500JSONResponse

type GetTerminal500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (GetTerminal500JSONResponse) VisitGetTerminalResponse

func (response GetTerminal500JSONResponse) VisitGetTerminalResponse(w http.ResponseWriter) error

type GetTerminalRequestObject

type GetTerminalRequestObject struct {
	WorktreeId WorktreeId `json:"worktreeId"`
	TerminalId TerminalId `json:"terminalId"`
}

type GetTerminalResponse

type GetTerminalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Terminal
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseGetTerminalResponse

func ParseGetTerminalResponse(rsp *http.Response) (*GetTerminalResponse, error)

ParseGetTerminalResponse parses an HTTP response from a GetTerminalWithResponse call

func (GetTerminalResponse) ContentType

func (r GetTerminalResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTerminalResponse) GetBody

func (r GetTerminalResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetTerminalResponse) GetJSON200

func (r GetTerminalResponse) GetJSON200() *Terminal

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetTerminalResponse) GetJSON400

func (r GetTerminalResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetTerminalResponse) GetJSON404

func (r GetTerminalResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetTerminalResponse) GetJSON500

func (r GetTerminalResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetTerminalResponse) Status

func (r GetTerminalResponse) Status() string

Status returns HTTPResponse.Status

func (GetTerminalResponse) StatusCode

func (r GetTerminalResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTerminalResponseObject

type GetTerminalResponseObject interface {
	VisitGetTerminalResponse(w http.ResponseWriter) error
}

type GetWorkspace200JSONResponse

type GetWorkspace200JSONResponse WorkspaceSnapshot

func (GetWorkspace200JSONResponse) VisitGetWorkspaceResponse

func (response GetWorkspace200JSONResponse) VisitGetWorkspaceResponse(w http.ResponseWriter) error

type GetWorkspace500JSONResponse

type GetWorkspace500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (GetWorkspace500JSONResponse) VisitGetWorkspaceResponse

func (response GetWorkspace500JSONResponse) VisitGetWorkspaceResponse(w http.ResponseWriter) error

type GetWorkspaceRequestObject

type GetWorkspaceRequestObject struct {
}

type GetWorkspaceResponse

type GetWorkspaceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WorkspaceSnapshot
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseGetWorkspaceResponse

func ParseGetWorkspaceResponse(rsp *http.Response) (*GetWorkspaceResponse, error)

ParseGetWorkspaceResponse parses an HTTP response from a GetWorkspaceWithResponse call

func (GetWorkspaceResponse) ContentType

func (r GetWorkspaceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetWorkspaceResponse) GetBody

func (r GetWorkspaceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetWorkspaceResponse) GetJSON200

func (r GetWorkspaceResponse) GetJSON200() *WorkspaceSnapshot

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetWorkspaceResponse) GetJSON500

func (r GetWorkspaceResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetWorkspaceResponse) Status

func (r GetWorkspaceResponse) Status() string

Status returns HTTPResponse.Status

func (GetWorkspaceResponse) StatusCode

func (r GetWorkspaceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWorkspaceResponseObject

type GetWorkspaceResponseObject interface {
	VisitGetWorkspaceResponse(w http.ResponseWriter) error
}

type GetWorktree200JSONResponse

type GetWorktree200JSONResponse Worktree

func (GetWorktree200JSONResponse) VisitGetWorktreeResponse

func (response GetWorktree200JSONResponse) VisitGetWorktreeResponse(w http.ResponseWriter) error

type GetWorktree400JSONResponse

type GetWorktree400JSONResponse struct{ BadRequestJSONResponse }

func (GetWorktree400JSONResponse) VisitGetWorktreeResponse

func (response GetWorktree400JSONResponse) VisitGetWorktreeResponse(w http.ResponseWriter) error

type GetWorktree404JSONResponse

type GetWorktree404JSONResponse struct{ NotFoundJSONResponse }

func (GetWorktree404JSONResponse) VisitGetWorktreeResponse

func (response GetWorktree404JSONResponse) VisitGetWorktreeResponse(w http.ResponseWriter) error

type GetWorktree500JSONResponse

type GetWorktree500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (GetWorktree500JSONResponse) VisitGetWorktreeResponse

func (response GetWorktree500JSONResponse) VisitGetWorktreeResponse(w http.ResponseWriter) error

type GetWorktreeChanges200JSONResponse

type GetWorktreeChanges200JSONResponse WorktreeChanges

func (GetWorktreeChanges200JSONResponse) VisitGetWorktreeChangesResponse

func (response GetWorktreeChanges200JSONResponse) VisitGetWorktreeChangesResponse(w http.ResponseWriter) error

type GetWorktreeChanges400JSONResponse

type GetWorktreeChanges400JSONResponse struct{ BadRequestJSONResponse }

func (GetWorktreeChanges400JSONResponse) VisitGetWorktreeChangesResponse

func (response GetWorktreeChanges400JSONResponse) VisitGetWorktreeChangesResponse(w http.ResponseWriter) error

type GetWorktreeChanges404JSONResponse

type GetWorktreeChanges404JSONResponse struct{ NotFoundJSONResponse }

func (GetWorktreeChanges404JSONResponse) VisitGetWorktreeChangesResponse

func (response GetWorktreeChanges404JSONResponse) VisitGetWorktreeChangesResponse(w http.ResponseWriter) error

type GetWorktreeChanges500JSONResponse

type GetWorktreeChanges500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (GetWorktreeChanges500JSONResponse) VisitGetWorktreeChangesResponse

func (response GetWorktreeChanges500JSONResponse) VisitGetWorktreeChangesResponse(w http.ResponseWriter) error

type GetWorktreeChangesRequestObject

type GetWorktreeChangesRequestObject struct {
	WorktreeId WorktreeId `json:"worktreeId"`
}

type GetWorktreeChangesResponse

type GetWorktreeChangesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WorktreeChanges
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseGetWorktreeChangesResponse

func ParseGetWorktreeChangesResponse(rsp *http.Response) (*GetWorktreeChangesResponse, error)

ParseGetWorktreeChangesResponse parses an HTTP response from a GetWorktreeChangesWithResponse call

func (GetWorktreeChangesResponse) ContentType

func (r GetWorktreeChangesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetWorktreeChangesResponse) GetBody

func (r GetWorktreeChangesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetWorktreeChangesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetWorktreeChangesResponse) GetJSON400

func (r GetWorktreeChangesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetWorktreeChangesResponse) GetJSON404

func (r GetWorktreeChangesResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetWorktreeChangesResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetWorktreeChangesResponse) Status

Status returns HTTPResponse.Status

func (GetWorktreeChangesResponse) StatusCode

func (r GetWorktreeChangesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWorktreeChangesResponseObject

type GetWorktreeChangesResponseObject interface {
	VisitGetWorktreeChangesResponse(w http.ResponseWriter) error
}

type GetWorktreeRequestObject

type GetWorktreeRequestObject struct {
	WorktreeId WorktreeId `json:"worktreeId"`
}

type GetWorktreeResponse

type GetWorktreeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Worktree
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseGetWorktreeResponse

func ParseGetWorktreeResponse(rsp *http.Response) (*GetWorktreeResponse, error)

ParseGetWorktreeResponse parses an HTTP response from a GetWorktreeWithResponse call

func (GetWorktreeResponse) ContentType

func (r GetWorktreeResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetWorktreeResponse) GetBody

func (r GetWorktreeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetWorktreeResponse) GetJSON200

func (r GetWorktreeResponse) GetJSON200() *Worktree

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetWorktreeResponse) GetJSON400

func (r GetWorktreeResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetWorktreeResponse) GetJSON404

func (r GetWorktreeResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetWorktreeResponse) GetJSON500

func (r GetWorktreeResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetWorktreeResponse) Status

func (r GetWorktreeResponse) Status() string

Status returns HTTPResponse.Status

func (GetWorktreeResponse) StatusCode

func (r GetWorktreeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWorktreeResponseObject

type GetWorktreeResponseObject interface {
	VisitGetWorktreeResponse(w http.ResponseWriter) error
}

type GinServerOptions

type GinServerOptions struct {
	BaseURL      string
	Middlewares  []MiddlewareFunc
	ErrorHandler func(*gin.Context, error, int)
}

GinServerOptions provides options for the Gin server.

type GitChange

type GitChange struct {
	IndexState GitFileState `json:"indexState"`
	Path       string       `json:"path"`

	// PreviousPath Original path for a rename or copy.
	PreviousPath  *string      `json:"previousPath,omitempty"`
	WorktreeState GitFileState `json:"worktreeState"`
}

GitChange defines model for GitChange.

type GitFileState

type GitFileState string

GitFileState defines model for GitFileState.

const (
	Added      GitFileState = "added"
	Copied     GitFileState = "copied"
	Deleted    GitFileState = "deleted"
	Ignored    GitFileState = "ignored"
	Modified   GitFileState = "modified"
	Renamed    GitFileState = "renamed"
	Unmerged   GitFileState = "unmerged"
	Unmodified GitFileState = "unmodified"
	Untracked  GitFileState = "untracked"
)

Defines values for GitFileState.

func (GitFileState) Valid

func (e GitFileState) Valid() bool

Valid indicates whether the value is a known member of the GitFileState enum.

type Health

type Health struct {
	// CliAvailable Whether the host Copilot CLI answered its last probe.
	CliAvailable *bool        `json:"cliAvailable,omitempty"`
	Status       HealthStatus `json:"status"`

	// Version Build version of the adapter binary.
	Version *string `json:"version,omitempty"`
}

Health defines model for Health.

type HealthStatus

type HealthStatus string

HealthStatus defines model for Health.Status.

const (
	Degraded HealthStatus = "degraded"
	Ok       HealthStatus = "ok"
)

Defines values for HealthStatus.

func (HealthStatus) Valid

func (e HealthStatus) Valid() bool

Valid indicates whether the value is a known member of the HealthStatus enum.

type HeartbeatEvent

type HeartbeatEvent struct {
	Kind       HeartbeatEventKind `json:"kind"`
	OccurredAt time.Time          `json:"occurredAt"`
	Seq        int64              `json:"seq"`
	SessionId  openapi_types.UUID `json:"sessionId"`
}

HeartbeatEvent defines model for HeartbeatEvent.

type HeartbeatEventKind

type HeartbeatEventKind string

HeartbeatEventKind defines model for HeartbeatEvent.Kind.

const (
	HeartbeatEventKindHeartbeat HeartbeatEventKind = "heartbeat"
)

Defines values for HeartbeatEventKind.

func (HeartbeatEventKind) Valid

func (e HeartbeatEventKind) Valid() bool

Valid indicates whether the value is a known member of the HeartbeatEventKind enum.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InternalServerError

type InternalServerError = Error

InternalServerError defines model for InternalServerError.

type InternalServerErrorJSONResponse

type InternalServerErrorJSONResponse Error

type LastEventId

type LastEventId = int64

LastEventId defines model for LastEventId.

type Limit

type Limit = int32

Limit defines model for Limit.

type LinkSessionTask200JSONResponse

type LinkSessionTask200JSONResponse WorkspaceTaskLink

func (LinkSessionTask200JSONResponse) VisitLinkSessionTaskResponse

func (response LinkSessionTask200JSONResponse) VisitLinkSessionTaskResponse(w http.ResponseWriter) error

type LinkSessionTask400JSONResponse

type LinkSessionTask400JSONResponse struct{ BadRequestJSONResponse }

func (LinkSessionTask400JSONResponse) VisitLinkSessionTaskResponse

func (response LinkSessionTask400JSONResponse) VisitLinkSessionTaskResponse(w http.ResponseWriter) error

type LinkSessionTask404JSONResponse

type LinkSessionTask404JSONResponse struct{ NotFoundJSONResponse }

func (LinkSessionTask404JSONResponse) VisitLinkSessionTaskResponse

func (response LinkSessionTask404JSONResponse) VisitLinkSessionTaskResponse(w http.ResponseWriter) error

type LinkSessionTask409JSONResponse

type LinkSessionTask409JSONResponse struct{ ConflictJSONResponse }

func (LinkSessionTask409JSONResponse) VisitLinkSessionTaskResponse

func (response LinkSessionTask409JSONResponse) VisitLinkSessionTaskResponse(w http.ResponseWriter) error

type LinkSessionTask500JSONResponse

type LinkSessionTask500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (LinkSessionTask500JSONResponse) VisitLinkSessionTaskResponse

func (response LinkSessionTask500JSONResponse) VisitLinkSessionTaskResponse(w http.ResponseWriter) error

type LinkSessionTaskJSONRequestBody

type LinkSessionTaskJSONRequestBody = LinkSessionTaskRequest

LinkSessionTaskJSONRequestBody defines body for LinkSessionTask for application/json ContentType.

type LinkSessionTaskRequest

type LinkSessionTaskRequest struct {
	ExpectedGeneration int64  `json:"expectedGeneration"`
	TaskUrl            string `json:"taskUrl"`
}

LinkSessionTaskRequest defines model for LinkSessionTaskRequest.

type LinkSessionTaskRequestObject

type LinkSessionTaskRequestObject struct {
	SessionId openapi_types.UUID `json:"sessionId"`
	Body      *LinkSessionTaskJSONRequestBody
}

type LinkSessionTaskResponse

type LinkSessionTaskResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WorkspaceTaskLink
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseLinkSessionTaskResponse

func ParseLinkSessionTaskResponse(rsp *http.Response) (*LinkSessionTaskResponse, error)

ParseLinkSessionTaskResponse parses an HTTP response from a LinkSessionTaskWithResponse call

func (LinkSessionTaskResponse) ContentType

func (r LinkSessionTaskResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (LinkSessionTaskResponse) GetBody

func (r LinkSessionTaskResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (LinkSessionTaskResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (LinkSessionTaskResponse) GetJSON400

func (r LinkSessionTaskResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (LinkSessionTaskResponse) GetJSON404

func (r LinkSessionTaskResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (LinkSessionTaskResponse) GetJSON409

func (r LinkSessionTaskResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (LinkSessionTaskResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (LinkSessionTaskResponse) Status

func (r LinkSessionTaskResponse) Status() string

Status returns HTTPResponse.Status

func (LinkSessionTaskResponse) StatusCode

func (r LinkSessionTaskResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LinkSessionTaskResponseObject

type LinkSessionTaskResponseObject interface {
	VisitLinkSessionTaskResponse(w http.ResponseWriter) error
}

type ListChatSchedules200JSONResponse

type ListChatSchedules200JSONResponse ChatScheduleList

func (ListChatSchedules200JSONResponse) VisitListChatSchedulesResponse

func (response ListChatSchedules200JSONResponse) VisitListChatSchedulesResponse(w http.ResponseWriter) error

type ListChatSchedules500JSONResponse

type ListChatSchedules500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (ListChatSchedules500JSONResponse) VisitListChatSchedulesResponse

func (response ListChatSchedules500JSONResponse) VisitListChatSchedulesResponse(w http.ResponseWriter) error

type ListChatSchedulesRequestObject

type ListChatSchedulesRequestObject struct {
}

type ListChatSchedulesResponse

type ListChatSchedulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ChatScheduleList
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseListChatSchedulesResponse

func ParseListChatSchedulesResponse(rsp *http.Response) (*ListChatSchedulesResponse, error)

ParseListChatSchedulesResponse parses an HTTP response from a ListChatSchedulesWithResponse call

func (ListChatSchedulesResponse) ContentType

func (r ListChatSchedulesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListChatSchedulesResponse) GetBody

func (r ListChatSchedulesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListChatSchedulesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListChatSchedulesResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListChatSchedulesResponse) Status

func (r ListChatSchedulesResponse) Status() string

Status returns HTTPResponse.Status

func (ListChatSchedulesResponse) StatusCode

func (r ListChatSchedulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListChatSchedulesResponseObject

type ListChatSchedulesResponseObject interface {
	VisitListChatSchedulesResponse(w http.ResponseWriter) error
}

type ListModels200JSONResponse

type ListModels200JSONResponse ModelList

func (ListModels200JSONResponse) VisitListModelsResponse

func (response ListModels200JSONResponse) VisitListModelsResponse(w http.ResponseWriter) error

type ListModels500JSONResponse

type ListModels500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (ListModels500JSONResponse) VisitListModelsResponse

func (response ListModels500JSONResponse) VisitListModelsResponse(w http.ResponseWriter) error

type ListModels502JSONResponse

type ListModels502JSONResponse struct{ BadGatewayJSONResponse }

func (ListModels502JSONResponse) VisitListModelsResponse

func (response ListModels502JSONResponse) VisitListModelsResponse(w http.ResponseWriter) error

type ListModelsRequestObject

type ListModelsRequestObject struct {
}

type ListModelsResponse

type ListModelsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ModelList
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
	// JSON502 the response for an HTTP 502 `application/json` response
	JSON502 *BadGateway
}

func ParseListModelsResponse

func ParseListModelsResponse(rsp *http.Response) (*ListModelsResponse, error)

ParseListModelsResponse parses an HTTP response from a ListModelsWithResponse call

func (ListModelsResponse) ContentType

func (r ListModelsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListModelsResponse) GetBody

func (r ListModelsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListModelsResponse) GetJSON200

func (r ListModelsResponse) GetJSON200() *ModelList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListModelsResponse) GetJSON500

func (r ListModelsResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListModelsResponse) GetJSON502

func (r ListModelsResponse) GetJSON502() *BadGateway

GetJSON502 returns the response for an HTTP 502 `application/json` response

func (ListModelsResponse) Status

func (r ListModelsResponse) Status() string

Status returns HTTPResponse.Status

func (ListModelsResponse) StatusCode

func (r ListModelsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListModelsResponseObject

type ListModelsResponseObject interface {
	VisitListModelsResponse(w http.ResponseWriter) error
}

type ListRepositories200JSONResponse

type ListRepositories200JSONResponse RepositoryList

func (ListRepositories200JSONResponse) VisitListRepositoriesResponse

func (response ListRepositories200JSONResponse) VisitListRepositoriesResponse(w http.ResponseWriter) error

type ListRepositories500JSONResponse

type ListRepositories500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (ListRepositories500JSONResponse) VisitListRepositoriesResponse

func (response ListRepositories500JSONResponse) VisitListRepositoriesResponse(w http.ResponseWriter) error

type ListRepositoriesRequestObject

type ListRepositoriesRequestObject struct {
}

type ListRepositoriesResponse

type ListRepositoriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RepositoryList
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseListRepositoriesResponse

func ParseListRepositoriesResponse(rsp *http.Response) (*ListRepositoriesResponse, error)

ParseListRepositoriesResponse parses an HTTP response from a ListRepositoriesWithResponse call

func (ListRepositoriesResponse) ContentType

func (r ListRepositoriesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListRepositoriesResponse) GetBody

func (r ListRepositoriesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListRepositoriesResponse) GetJSON200

func (r ListRepositoriesResponse) GetJSON200() *RepositoryList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListRepositoriesResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListRepositoriesResponse) Status

func (r ListRepositoriesResponse) Status() string

Status returns HTTPResponse.Status

func (ListRepositoriesResponse) StatusCode

func (r ListRepositoriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRepositoriesResponseObject

type ListRepositoriesResponseObject interface {
	VisitListRepositoriesResponse(w http.ResponseWriter) error
}

type ListSessionRequests200JSONResponse

type ListSessionRequests200JSONResponse SessionRequestList

func (ListSessionRequests200JSONResponse) VisitListSessionRequestsResponse

func (response ListSessionRequests200JSONResponse) VisitListSessionRequestsResponse(w http.ResponseWriter) error

type ListSessionRequests400JSONResponse

type ListSessionRequests400JSONResponse struct{ BadRequestJSONResponse }

func (ListSessionRequests400JSONResponse) VisitListSessionRequestsResponse

func (response ListSessionRequests400JSONResponse) VisitListSessionRequestsResponse(w http.ResponseWriter) error

type ListSessionRequests404JSONResponse

type ListSessionRequests404JSONResponse struct{ NotFoundJSONResponse }

func (ListSessionRequests404JSONResponse) VisitListSessionRequestsResponse

func (response ListSessionRequests404JSONResponse) VisitListSessionRequestsResponse(w http.ResponseWriter) error

type ListSessionRequests500JSONResponse

type ListSessionRequests500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (ListSessionRequests500JSONResponse) VisitListSessionRequestsResponse

func (response ListSessionRequests500JSONResponse) VisitListSessionRequestsResponse(w http.ResponseWriter) error

type ListSessionRequestsRequestObject

type ListSessionRequestsRequestObject struct {
	SessionId SessionId `json:"sessionId"`
}

type ListSessionRequestsResponse

type ListSessionRequestsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SessionRequestList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseListSessionRequestsResponse

func ParseListSessionRequestsResponse(rsp *http.Response) (*ListSessionRequestsResponse, error)

ParseListSessionRequestsResponse parses an HTTP response from a ListSessionRequestsWithResponse call

func (ListSessionRequestsResponse) ContentType

func (r ListSessionRequestsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSessionRequestsResponse) GetBody

func (r ListSessionRequestsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSessionRequestsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSessionRequestsResponse) GetJSON400

func (r ListSessionRequestsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListSessionRequestsResponse) GetJSON404

func (r ListSessionRequestsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListSessionRequestsResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListSessionRequestsResponse) Status

Status returns HTTPResponse.Status

func (ListSessionRequestsResponse) StatusCode

func (r ListSessionRequestsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSessionRequestsResponseObject

type ListSessionRequestsResponseObject interface {
	VisitListSessionRequestsResponse(w http.ResponseWriter) error
}

type ListSessions200JSONResponse

type ListSessions200JSONResponse SessionList

func (ListSessions200JSONResponse) VisitListSessionsResponse

func (response ListSessions200JSONResponse) VisitListSessionsResponse(w http.ResponseWriter) error

type ListSessions400JSONResponse

type ListSessions400JSONResponse struct{ BadRequestJSONResponse }

func (ListSessions400JSONResponse) VisitListSessionsResponse

func (response ListSessions400JSONResponse) VisitListSessionsResponse(w http.ResponseWriter) error

type ListSessions500JSONResponse

type ListSessions500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (ListSessions500JSONResponse) VisitListSessionsResponse

func (response ListSessions500JSONResponse) VisitListSessionsResponse(w http.ResponseWriter) error

type ListSessionsParams

type ListSessionsParams struct {
	// Limit Maximum items to return in one page.
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque cursor taken from a previous page's nextCursor.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Status Return only sessions in this status.
	Status *SessionStatusFilter `form:"status,omitempty" json:"status,omitempty"`
}

ListSessionsParams defines parameters for ListSessions.

type ListSessionsRequestObject

type ListSessionsRequestObject struct {
	Params ListSessionsParams
}

type ListSessionsResponse

type ListSessionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SessionList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseListSessionsResponse

func ParseListSessionsResponse(rsp *http.Response) (*ListSessionsResponse, error)

ParseListSessionsResponse parses an HTTP response from a ListSessionsWithResponse call

func (ListSessionsResponse) ContentType

func (r ListSessionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSessionsResponse) GetBody

func (r ListSessionsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSessionsResponse) GetJSON200

func (r ListSessionsResponse) GetJSON200() *SessionList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSessionsResponse) GetJSON400

func (r ListSessionsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListSessionsResponse) GetJSON500

func (r ListSessionsResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListSessionsResponse) Status

func (r ListSessionsResponse) Status() string

Status returns HTTPResponse.Status

func (ListSessionsResponse) StatusCode

func (r ListSessionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSessionsResponseObject

type ListSessionsResponseObject interface {
	VisitListSessionsResponse(w http.ResponseWriter) error
}

type ListSubagentActivity200JSONResponse

type ListSubagentActivity200JSONResponse SubagentActivityPage

func (ListSubagentActivity200JSONResponse) VisitListSubagentActivityResponse

func (response ListSubagentActivity200JSONResponse) VisitListSubagentActivityResponse(w http.ResponseWriter) error

type ListSubagentActivity400JSONResponse

type ListSubagentActivity400JSONResponse struct{ BadRequestJSONResponse }

func (ListSubagentActivity400JSONResponse) VisitListSubagentActivityResponse

func (response ListSubagentActivity400JSONResponse) VisitListSubagentActivityResponse(w http.ResponseWriter) error

type ListSubagentActivity404JSONResponse

type ListSubagentActivity404JSONResponse struct{ NotFoundJSONResponse }

func (ListSubagentActivity404JSONResponse) VisitListSubagentActivityResponse

func (response ListSubagentActivity404JSONResponse) VisitListSubagentActivityResponse(w http.ResponseWriter) error

type ListSubagentActivity500JSONResponse

type ListSubagentActivity500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (ListSubagentActivity500JSONResponse) VisitListSubagentActivityResponse

func (response ListSubagentActivity500JSONResponse) VisitListSubagentActivityResponse(w http.ResponseWriter) error

type ListSubagentActivityParams

type ListSubagentActivityParams struct {
	// Limit Maximum items to return in one page.
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// AfterSeq Return only transcript items with a seq greater than this.
	AfterSeq *AfterSeq `form:"afterSeq,omitempty" json:"afterSeq,omitempty"`
}

ListSubagentActivityParams defines parameters for ListSubagentActivity.

type ListSubagentActivityRequestObject

type ListSubagentActivityRequestObject struct {
	SessionId  SessionId  `json:"sessionId"`
	SubagentId SubagentId `json:"subagentId"`
	Params     ListSubagentActivityParams
}

type ListSubagentActivityResponse

type ListSubagentActivityResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SubagentActivityPage
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseListSubagentActivityResponse

func ParseListSubagentActivityResponse(rsp *http.Response) (*ListSubagentActivityResponse, error)

ParseListSubagentActivityResponse parses an HTTP response from a ListSubagentActivityWithResponse call

func (ListSubagentActivityResponse) ContentType

func (r ListSubagentActivityResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSubagentActivityResponse) GetBody

func (r ListSubagentActivityResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSubagentActivityResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSubagentActivityResponse) GetJSON400

func (r ListSubagentActivityResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListSubagentActivityResponse) GetJSON404

func (r ListSubagentActivityResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListSubagentActivityResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListSubagentActivityResponse) Status

Status returns HTTPResponse.Status

func (ListSubagentActivityResponse) StatusCode

func (r ListSubagentActivityResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSubagentActivityResponseObject

type ListSubagentActivityResponseObject interface {
	VisitListSubagentActivityResponse(w http.ResponseWriter) error
}

type ListSubagents200JSONResponse

type ListSubagents200JSONResponse SubagentList

func (ListSubagents200JSONResponse) VisitListSubagentsResponse

func (response ListSubagents200JSONResponse) VisitListSubagentsResponse(w http.ResponseWriter) error

type ListSubagents400JSONResponse

type ListSubagents400JSONResponse struct{ BadRequestJSONResponse }

func (ListSubagents400JSONResponse) VisitListSubagentsResponse

func (response ListSubagents400JSONResponse) VisitListSubagentsResponse(w http.ResponseWriter) error

type ListSubagents404JSONResponse

type ListSubagents404JSONResponse struct{ NotFoundJSONResponse }

func (ListSubagents404JSONResponse) VisitListSubagentsResponse

func (response ListSubagents404JSONResponse) VisitListSubagentsResponse(w http.ResponseWriter) error

type ListSubagents500JSONResponse

type ListSubagents500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (ListSubagents500JSONResponse) VisitListSubagentsResponse

func (response ListSubagents500JSONResponse) VisitListSubagentsResponse(w http.ResponseWriter) error

type ListSubagentsRequestObject

type ListSubagentsRequestObject struct {
	SessionId SessionId `json:"sessionId"`
}

type ListSubagentsResponse

type ListSubagentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SubagentList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseListSubagentsResponse

func ParseListSubagentsResponse(rsp *http.Response) (*ListSubagentsResponse, error)

ParseListSubagentsResponse parses an HTTP response from a ListSubagentsWithResponse call

func (ListSubagentsResponse) ContentType

func (r ListSubagentsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSubagentsResponse) GetBody

func (r ListSubagentsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSubagentsResponse) GetJSON200

func (r ListSubagentsResponse) GetJSON200() *SubagentList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSubagentsResponse) GetJSON400

func (r ListSubagentsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListSubagentsResponse) GetJSON404

func (r ListSubagentsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListSubagentsResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListSubagentsResponse) Status

func (r ListSubagentsResponse) Status() string

Status returns HTTPResponse.Status

func (ListSubagentsResponse) StatusCode

func (r ListSubagentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSubagentsResponseObject

type ListSubagentsResponseObject interface {
	VisitListSubagentsResponse(w http.ResponseWriter) error
}

type ListTerminals200JSONResponse

type ListTerminals200JSONResponse TerminalList

func (ListTerminals200JSONResponse) VisitListTerminalsResponse

func (response ListTerminals200JSONResponse) VisitListTerminalsResponse(w http.ResponseWriter) error

type ListTerminals400JSONResponse

type ListTerminals400JSONResponse struct{ BadRequestJSONResponse }

func (ListTerminals400JSONResponse) VisitListTerminalsResponse

func (response ListTerminals400JSONResponse) VisitListTerminalsResponse(w http.ResponseWriter) error

type ListTerminals404JSONResponse

type ListTerminals404JSONResponse struct{ NotFoundJSONResponse }

func (ListTerminals404JSONResponse) VisitListTerminalsResponse

func (response ListTerminals404JSONResponse) VisitListTerminalsResponse(w http.ResponseWriter) error

type ListTerminals500JSONResponse

type ListTerminals500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (ListTerminals500JSONResponse) VisitListTerminalsResponse

func (response ListTerminals500JSONResponse) VisitListTerminalsResponse(w http.ResponseWriter) error

type ListTerminalsRequestObject

type ListTerminalsRequestObject struct {
	WorktreeId WorktreeId `json:"worktreeId"`
}

type ListTerminalsResponse

type ListTerminalsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TerminalList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseListTerminalsResponse

func ParseListTerminalsResponse(rsp *http.Response) (*ListTerminalsResponse, error)

ParseListTerminalsResponse parses an HTTP response from a ListTerminalsWithResponse call

func (ListTerminalsResponse) ContentType

func (r ListTerminalsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListTerminalsResponse) GetBody

func (r ListTerminalsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListTerminalsResponse) GetJSON200

func (r ListTerminalsResponse) GetJSON200() *TerminalList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListTerminalsResponse) GetJSON400

func (r ListTerminalsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListTerminalsResponse) GetJSON404

func (r ListTerminalsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListTerminalsResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListTerminalsResponse) Status

func (r ListTerminalsResponse) Status() string

Status returns HTTPResponse.Status

func (ListTerminalsResponse) StatusCode

func (r ListTerminalsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTerminalsResponseObject

type ListTerminalsResponseObject interface {
	VisitListTerminalsResponse(w http.ResponseWriter) error
}

type ListTranscript200JSONResponse

type ListTranscript200JSONResponse TranscriptPage

func (ListTranscript200JSONResponse) VisitListTranscriptResponse

func (response ListTranscript200JSONResponse) VisitListTranscriptResponse(w http.ResponseWriter) error

type ListTranscript400JSONResponse

type ListTranscript400JSONResponse struct{ BadRequestJSONResponse }

func (ListTranscript400JSONResponse) VisitListTranscriptResponse

func (response ListTranscript400JSONResponse) VisitListTranscriptResponse(w http.ResponseWriter) error

type ListTranscript404JSONResponse

type ListTranscript404JSONResponse struct{ NotFoundJSONResponse }

func (ListTranscript404JSONResponse) VisitListTranscriptResponse

func (response ListTranscript404JSONResponse) VisitListTranscriptResponse(w http.ResponseWriter) error

type ListTranscript500JSONResponse

type ListTranscript500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (ListTranscript500JSONResponse) VisitListTranscriptResponse

func (response ListTranscript500JSONResponse) VisitListTranscriptResponse(w http.ResponseWriter) error

type ListTranscriptParams

type ListTranscriptParams struct {
	// Limit Maximum items to return in one page.
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`

	// AfterSeq Return only transcript items with a seq greater than this.
	AfterSeq *AfterSeq `form:"afterSeq,omitempty" json:"afterSeq,omitempty"`
}

ListTranscriptParams defines parameters for ListTranscript.

type ListTranscriptRequestObject

type ListTranscriptRequestObject struct {
	SessionId SessionId `json:"sessionId"`
	Params    ListTranscriptParams
}

type ListTranscriptResponse

type ListTranscriptResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TranscriptPage
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseListTranscriptResponse

func ParseListTranscriptResponse(rsp *http.Response) (*ListTranscriptResponse, error)

ParseListTranscriptResponse parses an HTTP response from a ListTranscriptWithResponse call

func (ListTranscriptResponse) ContentType

func (r ListTranscriptResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListTranscriptResponse) GetBody

func (r ListTranscriptResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListTranscriptResponse) GetJSON200

func (r ListTranscriptResponse) GetJSON200() *TranscriptPage

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListTranscriptResponse) GetJSON400

func (r ListTranscriptResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListTranscriptResponse) GetJSON404

func (r ListTranscriptResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListTranscriptResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListTranscriptResponse) Status

func (r ListTranscriptResponse) Status() string

Status returns HTTPResponse.Status

func (ListTranscriptResponse) StatusCode

func (r ListTranscriptResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTranscriptResponseObject

type ListTranscriptResponseObject interface {
	VisitListTranscriptResponse(w http.ResponseWriter) error
}

type ListWorktrees200JSONResponse

type ListWorktrees200JSONResponse WorktreeList

func (ListWorktrees200JSONResponse) VisitListWorktreesResponse

func (response ListWorktrees200JSONResponse) VisitListWorktreesResponse(w http.ResponseWriter) error

type ListWorktrees500JSONResponse

type ListWorktrees500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (ListWorktrees500JSONResponse) VisitListWorktreesResponse

func (response ListWorktrees500JSONResponse) VisitListWorktreesResponse(w http.ResponseWriter) error

type ListWorktreesRequestObject

type ListWorktreesRequestObject struct {
}

type ListWorktreesResponse

type ListWorktreesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WorktreeList
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseListWorktreesResponse

func ParseListWorktreesResponse(rsp *http.Response) (*ListWorktreesResponse, error)

ParseListWorktreesResponse parses an HTTP response from a ListWorktreesWithResponse call

func (ListWorktreesResponse) ContentType

func (r ListWorktreesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWorktreesResponse) GetBody

func (r ListWorktreesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListWorktreesResponse) GetJSON200

func (r ListWorktreesResponse) GetJSON200() *WorktreeList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListWorktreesResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListWorktreesResponse) Status

func (r ListWorktreesResponse) Status() string

Status returns HTTPResponse.Status

func (ListWorktreesResponse) StatusCode

func (r ListWorktreesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWorktreesResponseObject

type ListWorktreesResponseObject interface {
	VisitListWorktreesResponse(w http.ResponseWriter) error
}

type MiddlewareFunc

type MiddlewareFunc func(c *gin.Context)

type Model

type Model struct {
	// Capabilities Capability tags the CLI reports for this model.
	Capabilities []ModelCapability `json:"capabilities"`
	DisplayName  string            `json:"displayName"`

	// Id The model identifier the CLI accepts.
	Id string `json:"id"`
}

Model defines model for Model.

type ModelCapability

type ModelCapability string

ModelCapability A capability the CLI reports for a model.

const (
	Chat      ModelCapability = "chat"
	Reasoning ModelCapability = "reasoning"
	Tools     ModelCapability = "tools"
	Vision    ModelCapability = "vision"
)

Defines values for ModelCapability.

func (ModelCapability) Valid

func (e ModelCapability) Valid() bool

Valid indicates whether the value is a known member of the ModelCapability enum.

type ModelList

type ModelList struct {
	Data []Model `json:"data"`
}

ModelList defines model for ModelList.

type NewWorktreeSessionRequest

type NewWorktreeSessionRequest struct {
	// AgentId Optional CSF agent identity used to resolve that session's MCP configuration.
	AgentId *string `json:"agentId,omitempty"`

	// BaseRef Ref used for a new worktree. Absent means the repository's
	// configured defaultRef. Invalid or remote-only refs are rejected.
	BaseRef     *string `json:"baseRef,omitempty"`
	DisplayName *string `json:"displayName,omitempty"`

	// IdempotencyKey Client-generated identity bound to this complete request.
	IdempotencyKey openapi_types.UUID `json:"idempotencyKey"`
	Model          string             `json:"model"`

	// Permissions ask leaves every request pending for an operator. approveAll approves
	// requests the provider permits a host to approve automatically. allowlist
	// approves only an exact tool name or a matching full shell-command glob;
	// every other request remains pending.
	Permissions *PermissionPolicyMode `json:"permissions,omitempty"`

	// RepositoryId Identifier from listRepositories, never an arbitrary path.
	RepositoryId string `json:"repositoryId"`

	// ShellAllowlist Globs matched against the complete shell command in allowlist mode.
	ShellAllowlist     *PermissionShellAllowlist `json:"shellAllowlist,omitempty"`
	SystemInstructions *string                   `json:"systemInstructions,omitempty"`

	// ToolAllowlist Exact, case-sensitive SDK tool names approved in allowlist mode.
	ToolAllowlist *PermissionToolAllowlist              `json:"toolAllowlist,omitempty"`
	WorktreeMode  NewWorktreeSessionRequestWorktreeMode `json:"worktreeMode"`
}

NewWorktreeSessionRequest defines model for NewWorktreeSessionRequest.

type NewWorktreeSessionRequestWorktreeMode

type NewWorktreeSessionRequestWorktreeMode string

NewWorktreeSessionRequestWorktreeMode defines model for NewWorktreeSessionRequest.WorktreeMode.

const (
	NewWorktreeRequestMode NewWorktreeSessionRequestWorktreeMode = "newWorktree"
)

Defines values for NewWorktreeSessionRequestWorktreeMode.

func (NewWorktreeSessionRequestWorktreeMode) Valid

Valid indicates whether the value is a known member of the NewWorktreeSessionRequestWorktreeMode enum.

type NotFound

type NotFound = Error

NotFound defines model for NotFound.

type NotFoundJSONResponse

type NotFoundJSONResponse Error

type PermissionPolicyMode

type PermissionPolicyMode string

PermissionPolicyMode ask leaves every request pending for an operator. approveAll approves requests the provider permits a host to approve automatically. allowlist approves only an exact tool name or a matching full shell-command glob; every other request remains pending.

const (
	Allowlist  PermissionPolicyMode = "allowlist"
	ApproveAll PermissionPolicyMode = "approveAll"
	Ask        PermissionPolicyMode = "ask"
)

Defines values for PermissionPolicyMode.

func (PermissionPolicyMode) Valid

func (e PermissionPolicyMode) Valid() bool

Valid indicates whether the value is a known member of the PermissionPolicyMode enum.

type PermissionShellAllowlist

type PermissionShellAllowlist = []string

PermissionShellAllowlist Globs matched against the complete shell command in allowlist mode.

type PermissionToolAllowlist

type PermissionToolAllowlist = []string

PermissionToolAllowlist Exact, case-sensitive SDK tool names approved in allowlist mode.

type PromptMode

type PromptMode string

PromptMode queue appends behind the current work; steer interrupts it.

const (
	Queue PromptMode = "queue"
	Steer PromptMode = "steer"
)

Defines values for PromptMode.

func (PromptMode) Valid

func (e PromptMode) Valid() bool

Valid indicates whether the value is a known member of the PromptMode enum.

type PromptRequest

type PromptRequest struct {
	// Author Display name the prompt is attributed to in the shared transcript.
	// Absent means the adapter attributes it to the session owner.
	Author *string `json:"author,omitempty"`

	// IdempotencyKey Non-zero client-generated retry identity scoped to the session.
	IdempotencyKey openapi_types.UUID `json:"idempotencyKey"`

	// Mode queue appends behind the current work; steer interrupts it.
	Mode PromptMode `json:"mode"`
	Text string     `json:"text"`
}

PromptRequest One prompt submission. idempotencyKey identifies this exact text, mode, and optional author within the session so a client can safely retry after losing the response.

type RefreshWorkspace204Response

type RefreshWorkspace204Response struct {
}

func (RefreshWorkspace204Response) VisitRefreshWorkspaceResponse

func (response RefreshWorkspace204Response) VisitRefreshWorkspaceResponse(w http.ResponseWriter) error

type RefreshWorkspace500JSONResponse

type RefreshWorkspace500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (RefreshWorkspace500JSONResponse) VisitRefreshWorkspaceResponse

func (response RefreshWorkspace500JSONResponse) VisitRefreshWorkspaceResponse(w http.ResponseWriter) error

type RefreshWorkspaceRequestObject

type RefreshWorkspaceRequestObject struct {
}

type RefreshWorkspaceResponse

type RefreshWorkspaceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseRefreshWorkspaceResponse

func ParseRefreshWorkspaceResponse(rsp *http.Response) (*RefreshWorkspaceResponse, error)

ParseRefreshWorkspaceResponse parses an HTTP response from a RefreshWorkspaceWithResponse call

func (RefreshWorkspaceResponse) ContentType

func (r RefreshWorkspaceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RefreshWorkspaceResponse) GetBody

func (r RefreshWorkspaceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RefreshWorkspaceResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (RefreshWorkspaceResponse) Status

func (r RefreshWorkspaceResponse) Status() string

Status returns HTTPResponse.Status

func (RefreshWorkspaceResponse) StatusCode

func (r RefreshWorkspaceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RefreshWorkspaceResponseObject

type RefreshWorkspaceResponseObject interface {
	VisitRefreshWorkspaceResponse(w http.ResponseWriter) error
}

type Repository

type Repository struct {
	DefaultRef  *string `json:"defaultRef,omitempty"`
	DisplayName string  `json:"displayName"`

	// Id Stable configured identifier accepted by createSession.
	Id string `json:"id"`

	// Root Canonical absolute repository path configured by the operator.
	Root *string `json:"root,omitempty"`
}

Repository defines model for Repository.

type RepositoryList

type RepositoryList struct {
	Data []Repository `json:"data"`
}

RepositoryList defines model for RepositoryList.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RequestId

type RequestId = openapi_types.UUID

RequestId defines model for RequestId.

type RequestOpenedEvent

type RequestOpenedEvent struct {
	Kind       RequestOpenedEventKind `json:"kind"`
	OccurredAt time.Time              `json:"occurredAt"`
	Payload    SessionRequest         `json:"payload"`
	Seq        int64                  `json:"seq"`
	SessionId  openapi_types.UUID     `json:"sessionId"`
}

RequestOpenedEvent defines model for RequestOpenedEvent.

type RequestOpenedEventKind

type RequestOpenedEventKind string

RequestOpenedEventKind defines model for RequestOpenedEvent.Kind.

const (
	RequestOpenedEventKindRequestOpened RequestOpenedEventKind = "requestOpened"
)

Defines values for RequestOpenedEventKind.

func (RequestOpenedEventKind) Valid

func (e RequestOpenedEventKind) Valid() bool

Valid indicates whether the value is a known member of the RequestOpenedEventKind enum.

type RequestResolvedEvent

type RequestResolvedEvent struct {
	Kind       RequestResolvedEventKind `json:"kind"`
	OccurredAt time.Time                `json:"occurredAt"`
	Payload    SessionRequest           `json:"payload"`
	Seq        int64                    `json:"seq"`
	SessionId  openapi_types.UUID       `json:"sessionId"`
}

RequestResolvedEvent defines model for RequestResolvedEvent.

type RequestResolvedEventKind

type RequestResolvedEventKind string

RequestResolvedEventKind defines model for RequestResolvedEvent.Kind.

const (
	RequestResolvedEventKindRequestResolved RequestResolvedEventKind = "requestResolved"
)

Defines values for RequestResolvedEventKind.

func (RequestResolvedEventKind) Valid

func (e RequestResolvedEventKind) Valid() bool

Valid indicates whether the value is a known member of the RequestResolvedEventKind enum.

type ResizeTerminal200JSONResponse

type ResizeTerminal200JSONResponse Terminal

func (ResizeTerminal200JSONResponse) VisitResizeTerminalResponse

func (response ResizeTerminal200JSONResponse) VisitResizeTerminalResponse(w http.ResponseWriter) error

type ResizeTerminal400JSONResponse

type ResizeTerminal400JSONResponse struct{ BadRequestJSONResponse }

func (ResizeTerminal400JSONResponse) VisitResizeTerminalResponse

func (response ResizeTerminal400JSONResponse) VisitResizeTerminalResponse(w http.ResponseWriter) error

type ResizeTerminal404JSONResponse

type ResizeTerminal404JSONResponse struct{ NotFoundJSONResponse }

func (ResizeTerminal404JSONResponse) VisitResizeTerminalResponse

func (response ResizeTerminal404JSONResponse) VisitResizeTerminalResponse(w http.ResponseWriter) error

type ResizeTerminal409JSONResponse

type ResizeTerminal409JSONResponse struct{ ConflictJSONResponse }

func (ResizeTerminal409JSONResponse) VisitResizeTerminalResponse

func (response ResizeTerminal409JSONResponse) VisitResizeTerminalResponse(w http.ResponseWriter) error

type ResizeTerminal500JSONResponse

type ResizeTerminal500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (ResizeTerminal500JSONResponse) VisitResizeTerminalResponse

func (response ResizeTerminal500JSONResponse) VisitResizeTerminalResponse(w http.ResponseWriter) error

type ResizeTerminalJSONRequestBody

type ResizeTerminalJSONRequestBody = ResizeTerminalRequest

ResizeTerminalJSONRequestBody defines body for ResizeTerminal for application/json ContentType.

type ResizeTerminalRequest

type ResizeTerminalRequest struct {
	Columns int32 `json:"columns"`
	Rows    int32 `json:"rows"`
}

ResizeTerminalRequest defines model for ResizeTerminalRequest.

type ResizeTerminalRequestObject

type ResizeTerminalRequestObject struct {
	WorktreeId WorktreeId `json:"worktreeId"`
	TerminalId TerminalId `json:"terminalId"`
	Body       *ResizeTerminalJSONRequestBody
}

type ResizeTerminalResponse

type ResizeTerminalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Terminal
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseResizeTerminalResponse

func ParseResizeTerminalResponse(rsp *http.Response) (*ResizeTerminalResponse, error)

ParseResizeTerminalResponse parses an HTTP response from a ResizeTerminalWithResponse call

func (ResizeTerminalResponse) ContentType

func (r ResizeTerminalResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ResizeTerminalResponse) GetBody

func (r ResizeTerminalResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ResizeTerminalResponse) GetJSON200

func (r ResizeTerminalResponse) GetJSON200() *Terminal

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ResizeTerminalResponse) GetJSON400

func (r ResizeTerminalResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ResizeTerminalResponse) GetJSON404

func (r ResizeTerminalResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ResizeTerminalResponse) GetJSON409

func (r ResizeTerminalResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (ResizeTerminalResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ResizeTerminalResponse) Status

func (r ResizeTerminalResponse) Status() string

Status returns HTTPResponse.Status

func (ResizeTerminalResponse) StatusCode

func (r ResizeTerminalResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResizeTerminalResponseObject

type ResizeTerminalResponseObject interface {
	VisitResizeTerminalResponse(w http.ResponseWriter) error
}

type ResolveDecision

type ResolveDecision string

ResolveDecision A pending permission request accepts approve or deny.

const (
	Approve ResolveDecision = "approve"
	Deny    ResolveDecision = "deny"
)

Defines values for ResolveDecision.

func (ResolveDecision) Valid

func (e ResolveDecision) Valid() bool

Valid indicates whether the value is a known member of the ResolveDecision enum.

type ResolveSessionRequest200JSONResponse

type ResolveSessionRequest200JSONResponse SessionRequest

func (ResolveSessionRequest200JSONResponse) VisitResolveSessionRequestResponse

func (response ResolveSessionRequest200JSONResponse) VisitResolveSessionRequestResponse(w http.ResponseWriter) error

type ResolveSessionRequest400JSONResponse

type ResolveSessionRequest400JSONResponse struct{ BadRequestJSONResponse }

func (ResolveSessionRequest400JSONResponse) VisitResolveSessionRequestResponse

func (response ResolveSessionRequest400JSONResponse) VisitResolveSessionRequestResponse(w http.ResponseWriter) error

type ResolveSessionRequest404JSONResponse

type ResolveSessionRequest404JSONResponse struct{ NotFoundJSONResponse }

func (ResolveSessionRequest404JSONResponse) VisitResolveSessionRequestResponse

func (response ResolveSessionRequest404JSONResponse) VisitResolveSessionRequestResponse(w http.ResponseWriter) error

type ResolveSessionRequest409JSONResponse

type ResolveSessionRequest409JSONResponse struct{ ConflictJSONResponse }

func (ResolveSessionRequest409JSONResponse) VisitResolveSessionRequestResponse

func (response ResolveSessionRequest409JSONResponse) VisitResolveSessionRequestResponse(w http.ResponseWriter) error

type ResolveSessionRequest500JSONResponse

type ResolveSessionRequest500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (ResolveSessionRequest500JSONResponse) VisitResolveSessionRequestResponse

func (response ResolveSessionRequest500JSONResponse) VisitResolveSessionRequestResponse(w http.ResponseWriter) error

type ResolveSessionRequestBody

type ResolveSessionRequestBody struct {
	// Decision A pending permission request accepts approve or deny.
	Decision ResolveDecision `json:"decision"`
}

ResolveSessionRequestBody defines model for ResolveSessionRequestBody.

type ResolveSessionRequestJSONRequestBody

type ResolveSessionRequestJSONRequestBody = ResolveSessionRequestBody

ResolveSessionRequestJSONRequestBody defines body for ResolveSessionRequest for application/json ContentType.

type ResolveSessionRequestRequestObject

type ResolveSessionRequestRequestObject struct {
	SessionId SessionId `json:"sessionId"`
	RequestId RequestId `json:"requestId"`
	Body      *ResolveSessionRequestJSONRequestBody
}

type ResolveSessionRequestResponse

type ResolveSessionRequestResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SessionRequest
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseResolveSessionRequestResponse

func ParseResolveSessionRequestResponse(rsp *http.Response) (*ResolveSessionRequestResponse, error)

ParseResolveSessionRequestResponse parses an HTTP response from a ResolveSessionRequestWithResponse call

func (ResolveSessionRequestResponse) ContentType

func (r ResolveSessionRequestResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ResolveSessionRequestResponse) GetBody

func (r ResolveSessionRequestResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ResolveSessionRequestResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ResolveSessionRequestResponse) GetJSON400

func (r ResolveSessionRequestResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ResolveSessionRequestResponse) GetJSON404

func (r ResolveSessionRequestResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ResolveSessionRequestResponse) GetJSON409

func (r ResolveSessionRequestResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (ResolveSessionRequestResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ResolveSessionRequestResponse) Status

Status returns HTTPResponse.Status

func (ResolveSessionRequestResponse) StatusCode

func (r ResolveSessionRequestResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResolveSessionRequestResponseObject

type ResolveSessionRequestResponseObject interface {
	VisitResolveSessionRequestResponse(w http.ResponseWriter) error
}

type ScheduleId

type ScheduleId = openapi_types.UUID

ScheduleId defines model for ScheduleId.

type ServerInterface

type ServerInterface interface {
	// GetHealth Report adapter liveness
	// (GET /healthz)
	GetHealth(c *gin.Context)
	// ListModels List the models the CLI can use
	// (GET /v1/models)
	ListModels(c *gin.Context)
	// ListRepositories List configured repository roots
	// (GET /v1/repositories)
	ListRepositories(c *gin.Context)
	// ListChatSchedules List durable chat schedules
	// (GET /v1/schedules)
	ListChatSchedules(c *gin.Context)
	// CreateChatSchedule Schedule a recurring prompt
	// (POST /v1/schedules)
	CreateChatSchedule(c *gin.Context)
	// DeleteChatSchedule Delete a chat schedule
	// (DELETE /v1/schedules/{scheduleId})
	DeleteChatSchedule(c *gin.Context, scheduleId ScheduleId)
	// GetChatSchedule Read one chat schedule
	// (GET /v1/schedules/{scheduleId})
	GetChatSchedule(c *gin.Context, scheduleId ScheduleId)
	// UpdateChatSchedule Edit or pause a chat schedule
	// (PATCH /v1/schedules/{scheduleId})
	UpdateChatSchedule(c *gin.Context, scheduleId ScheduleId)
	// ListSessions List sessions
	// (GET /v1/sessions)
	ListSessions(c *gin.Context, params ListSessionsParams)
	// CreateSession Start a Copilot CLI session
	// (POST /v1/sessions)
	CreateSession(c *gin.Context)
	// EndSession End a session
	// (DELETE /v1/sessions/{sessionId})
	EndSession(c *gin.Context, sessionId SessionId)
	// GetSession Get one session
	// (GET /v1/sessions/{sessionId})
	GetSession(c *gin.Context, sessionId SessionId)
	// UpdateSession Change a session model or display name
	// (PATCH /v1/sessions/{sessionId})
	UpdateSession(c *gin.Context, sessionId SessionId)
	// AbortTurn Stop the turn in flight
	// (POST /v1/sessions/{sessionId}/abort)
	AbortTurn(c *gin.Context, sessionId SessionId)
	// GetActiveTurn Read the exact turn currently running
	// (GET /v1/sessions/{sessionId}/active-turn)
	GetActiveTurn(c *gin.Context, sessionId SessionId)
	// StreamSessionEvents Stream session events as Server-Sent Events
	// (GET /v1/sessions/{sessionId}/events)
	StreamSessionEvents(c *gin.Context, sessionId SessionId, params StreamSessionEventsParams)
	// SubmitPrompt Send a prompt to a session
	// (POST /v1/sessions/{sessionId}/prompts)
	SubmitPrompt(c *gin.Context, sessionId SessionId)
	// ListSessionRequests List the requests awaiting a decision
	// (GET /v1/sessions/{sessionId}/requests)
	ListSessionRequests(c *gin.Context, sessionId SessionId)
	// ResolveSessionRequest Resolve a pending permission request
	// (POST /v1/sessions/{sessionId}/requests/{requestId}/resolve)
	ResolveSessionRequest(c *gin.Context, sessionId SessionId, requestId RequestId)
	// ListSubagents List actual subagents reported by a session
	// (GET /v1/sessions/{sessionId}/subagents)
	ListSubagents(c *gin.Context, sessionId SessionId)
	// GetSubagent Read one subagent's current lifecycle state
	// (GET /v1/sessions/{sessionId}/subagents/{subagentId})
	GetSubagent(c *gin.Context, sessionId SessionId, subagentId SubagentId)
	// ListSubagentActivity Read one subagent's progress activity
	// (GET /v1/sessions/{sessionId}/subagents/{subagentId}/activity)
	ListSubagentActivity(c *gin.Context, sessionId SessionId, subagentId SubagentId, params ListSubagentActivityParams)
	// LinkSessionTask Associate an exact session with its authoritative GitHub task
	// (PUT /v1/sessions/{sessionId}/task)
	LinkSessionTask(c *gin.Context, sessionId openapi_types.UUID)
	// ListTranscript Read a session's persisted transcript
	// (GET /v1/sessions/{sessionId}/transcript)
	ListTranscript(c *gin.Context, sessionId SessionId, params ListTranscriptParams)
	// GetTelemetry Retained provider usage and observed execution timing
	// (GET /v1/telemetry)
	GetTelemetry(c *gin.Context)
	// GetWorkspace Read the current workspace snapshot used by live widgets
	// (GET /v1/workspace)
	GetWorkspace(c *gin.Context)
	// RefreshWorkspace Ingest current linked issue checkpoints and notify live widgets
	// (POST /v1/workspace/refresh)
	RefreshWorkspace(c *gin.Context)
	// ListWorktrees List worktrees containing chats
	// (GET /v1/worktrees)
	ListWorktrees(c *gin.Context)
	// GetWorktree Read current worktree metadata
	// (GET /v1/worktrees/{worktreeId})
	GetWorktree(c *gin.Context, worktreeId WorktreeId)
	// GetWorktreeChanges Inspect repository status and diff
	// (GET /v1/worktrees/{worktreeId}/changes)
	GetWorktreeChanges(c *gin.Context, worktreeId WorktreeId)
	// ListTerminals List terminal sessions for a worktree
	// (GET /v1/worktrees/{worktreeId}/terminals)
	ListTerminals(c *gin.Context, worktreeId WorktreeId)
	// CreateTerminal Start a bounded terminal in a worktree
	// (POST /v1/worktrees/{worktreeId}/terminals)
	CreateTerminal(c *gin.Context, worktreeId WorktreeId)
	// StopTerminal Stop a terminal and release its process
	// (DELETE /v1/worktrees/{worktreeId}/terminals/{terminalId})
	StopTerminal(c *gin.Context, worktreeId WorktreeId, terminalId TerminalId)
	// GetTerminal Read terminal lifecycle state
	// (GET /v1/worktrees/{worktreeId}/terminals/{terminalId})
	GetTerminal(c *gin.Context, worktreeId WorktreeId, terminalId TerminalId)
	// ResizeTerminal Resize a running terminal
	// (PATCH /v1/worktrees/{worktreeId}/terminals/{terminalId})
	ResizeTerminal(c *gin.Context, worktreeId WorktreeId, terminalId TerminalId)
	// StreamTerminalEvents Stream bounded terminal output and exit state
	// (GET /v1/worktrees/{worktreeId}/terminals/{terminalId}/events)
	StreamTerminalEvents(c *gin.Context, worktreeId WorktreeId, terminalId TerminalId, params StreamTerminalEventsParams)
	// WriteTerminalInput Write input to a running terminal
	// (POST /v1/worktrees/{worktreeId}/terminals/{terminalId}/input)
	WriteTerminalInput(c *gin.Context, worktreeId WorktreeId, terminalId TerminalId)
}

ServerInterface represents all server handlers.

func NewStrictHandler

func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface

func NewStrictHandlerWithOptions

func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictGinServerOptions) ServerInterface

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandler       func(*gin.Context, error, int)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) AbortTurn

func (siw *ServerInterfaceWrapper) AbortTurn(c *gin.Context)

AbortTurn operation middleware

func (*ServerInterfaceWrapper) CreateChatSchedule

func (siw *ServerInterfaceWrapper) CreateChatSchedule(c *gin.Context)

CreateChatSchedule operation middleware

func (*ServerInterfaceWrapper) CreateSession

func (siw *ServerInterfaceWrapper) CreateSession(c *gin.Context)

CreateSession operation middleware

func (*ServerInterfaceWrapper) CreateTerminal

func (siw *ServerInterfaceWrapper) CreateTerminal(c *gin.Context)

CreateTerminal operation middleware

func (*ServerInterfaceWrapper) DeleteChatSchedule

func (siw *ServerInterfaceWrapper) DeleteChatSchedule(c *gin.Context)

DeleteChatSchedule operation middleware

func (*ServerInterfaceWrapper) EndSession

func (siw *ServerInterfaceWrapper) EndSession(c *gin.Context)

EndSession operation middleware

func (*ServerInterfaceWrapper) GetActiveTurn

func (siw *ServerInterfaceWrapper) GetActiveTurn(c *gin.Context)

GetActiveTurn operation middleware

func (*ServerInterfaceWrapper) GetChatSchedule

func (siw *ServerInterfaceWrapper) GetChatSchedule(c *gin.Context)

GetChatSchedule operation middleware

func (*ServerInterfaceWrapper) GetHealth

func (siw *ServerInterfaceWrapper) GetHealth(c *gin.Context)

GetHealth operation middleware

func (*ServerInterfaceWrapper) GetSession

func (siw *ServerInterfaceWrapper) GetSession(c *gin.Context)

GetSession operation middleware

func (*ServerInterfaceWrapper) GetSubagent

func (siw *ServerInterfaceWrapper) GetSubagent(c *gin.Context)

GetSubagent operation middleware

func (*ServerInterfaceWrapper) GetTelemetry

func (siw *ServerInterfaceWrapper) GetTelemetry(c *gin.Context)

GetTelemetry operation middleware

func (*ServerInterfaceWrapper) GetTerminal

func (siw *ServerInterfaceWrapper) GetTerminal(c *gin.Context)

GetTerminal operation middleware

func (*ServerInterfaceWrapper) GetWorkspace

func (siw *ServerInterfaceWrapper) GetWorkspace(c *gin.Context)

GetWorkspace operation middleware

func (*ServerInterfaceWrapper) GetWorktree

func (siw *ServerInterfaceWrapper) GetWorktree(c *gin.Context)

GetWorktree operation middleware

func (*ServerInterfaceWrapper) GetWorktreeChanges

func (siw *ServerInterfaceWrapper) GetWorktreeChanges(c *gin.Context)

GetWorktreeChanges operation middleware

func (*ServerInterfaceWrapper) LinkSessionTask

func (siw *ServerInterfaceWrapper) LinkSessionTask(c *gin.Context)

LinkSessionTask operation middleware

func (*ServerInterfaceWrapper) ListChatSchedules

func (siw *ServerInterfaceWrapper) ListChatSchedules(c *gin.Context)

ListChatSchedules operation middleware

func (*ServerInterfaceWrapper) ListModels

func (siw *ServerInterfaceWrapper) ListModels(c *gin.Context)

ListModels operation middleware

func (*ServerInterfaceWrapper) ListRepositories

func (siw *ServerInterfaceWrapper) ListRepositories(c *gin.Context)

ListRepositories operation middleware

func (*ServerInterfaceWrapper) ListSessionRequests

func (siw *ServerInterfaceWrapper) ListSessionRequests(c *gin.Context)

ListSessionRequests operation middleware

func (*ServerInterfaceWrapper) ListSessions

func (siw *ServerInterfaceWrapper) ListSessions(c *gin.Context)

ListSessions operation middleware

func (*ServerInterfaceWrapper) ListSubagentActivity

func (siw *ServerInterfaceWrapper) ListSubagentActivity(c *gin.Context)

ListSubagentActivity operation middleware

func (*ServerInterfaceWrapper) ListSubagents

func (siw *ServerInterfaceWrapper) ListSubagents(c *gin.Context)

ListSubagents operation middleware

func (*ServerInterfaceWrapper) ListTerminals

func (siw *ServerInterfaceWrapper) ListTerminals(c *gin.Context)

ListTerminals operation middleware

func (*ServerInterfaceWrapper) ListTranscript

func (siw *ServerInterfaceWrapper) ListTranscript(c *gin.Context)

ListTranscript operation middleware

func (*ServerInterfaceWrapper) ListWorktrees

func (siw *ServerInterfaceWrapper) ListWorktrees(c *gin.Context)

ListWorktrees operation middleware

func (*ServerInterfaceWrapper) RefreshWorkspace

func (siw *ServerInterfaceWrapper) RefreshWorkspace(c *gin.Context)

RefreshWorkspace operation middleware

func (*ServerInterfaceWrapper) ResizeTerminal

func (siw *ServerInterfaceWrapper) ResizeTerminal(c *gin.Context)

ResizeTerminal operation middleware

func (*ServerInterfaceWrapper) ResolveSessionRequest

func (siw *ServerInterfaceWrapper) ResolveSessionRequest(c *gin.Context)

ResolveSessionRequest operation middleware

func (*ServerInterfaceWrapper) StopTerminal

func (siw *ServerInterfaceWrapper) StopTerminal(c *gin.Context)

StopTerminal operation middleware

func (*ServerInterfaceWrapper) StreamSessionEvents

func (siw *ServerInterfaceWrapper) StreamSessionEvents(c *gin.Context)

StreamSessionEvents operation middleware

func (*ServerInterfaceWrapper) StreamTerminalEvents

func (siw *ServerInterfaceWrapper) StreamTerminalEvents(c *gin.Context)

StreamTerminalEvents operation middleware

func (*ServerInterfaceWrapper) SubmitPrompt

func (siw *ServerInterfaceWrapper) SubmitPrompt(c *gin.Context)

SubmitPrompt operation middleware

func (*ServerInterfaceWrapper) UpdateChatSchedule

func (siw *ServerInterfaceWrapper) UpdateChatSchedule(c *gin.Context)

UpdateChatSchedule operation middleware

func (*ServerInterfaceWrapper) UpdateSession

func (siw *ServerInterfaceWrapper) UpdateSession(c *gin.Context)

UpdateSession operation middleware

func (*ServerInterfaceWrapper) WriteTerminalInput

func (siw *ServerInterfaceWrapper) WriteTerminalInput(c *gin.Context)

WriteTerminalInput operation middleware

type Session

type Session struct {
	// CreatedAt RFC 3339 timestamp in UTC, ending in Z.
	CreatedAt   *time.Time `json:"createdAt,omitempty"`
	DisplayName string     `json:"displayName"`

	// FailureCode Stable session failure identity. Codes are assigned monotonically and never renumbered or reused: 0 none, 1 provider shutdown, 2 session creation failed, 3 provider session missing, 4 worktree unavailable. Classify by this value; failureReason is diagnostic text for a human.
	FailureCode FailureCode `json:"failureCode"`

	// FailureReason Human-readable diagnostic detail. Classify failures by failureCode, never by matching this text. Present only when status is failed.
	FailureReason *string             `json:"failureReason,omitempty"`
	Id            *openapi_types.UUID `json:"id,omitempty"`

	// LastTurnAt When the most recent turn started. Absent until the first prompt.
	LastTurnAt *time.Time `json:"lastTurnAt,omitempty"`
	Model      string     `json:"model"`

	// Permissions ask leaves every request pending for an operator. approveAll approves
	// requests the provider permits a host to approve automatically. allowlist
	// approves only an exact tool name or a matching full shell-command glob;
	// every other request remains pending.
	Permissions PermissionPolicyMode `json:"permissions"`

	// ShellAllowlist Globs matched against the complete shell command in allowlist mode.
	ShellAllowlist PermissionShellAllowlist `json:"shellAllowlist"`

	// Status starting until the CLI is ready, then idle between turns and running
	// during one. ended and failed are terminal.
	Status SessionStatus `json:"status"`

	// ToolAllowlist Exact, case-sensitive SDK tool names approved in allowlist mode.
	ToolAllowlist PermissionToolAllowlist `json:"toolAllowlist"`
	TurnCount     *int64                  `json:"turnCount,omitempty"`

	// UpdatedAt RFC 3339 timestamp in UTC, ending in Z.
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`

	// WorkingDirectory Absolute path the CLI session was started in.
	WorkingDirectory string `json:"workingDirectory"`

	// WorktreeId Worktree grouping this chat in the workbench sidebar.
	WorktreeId *openapi_types.UUID `json:"worktreeId,omitempty"`
}

Session defines model for Session.

type SessionEvent

type SessionEvent struct {
	// contains filtered or unexported fields
}

SessionEvent The generated discriminated union of SSE frames. Each kind carries one exact payload type; clients never cast an untyped map into a response model. heartbeat is the only variant without a payload.

func (SessionEvent) AsAssistantDeltaEvent

func (t SessionEvent) AsAssistantDeltaEvent() (AssistantDeltaEvent, error)

AsAssistantDeltaEvent returns the union data inside the SessionEvent as a AssistantDeltaEvent

func (SessionEvent) AsHeartbeatEvent

func (t SessionEvent) AsHeartbeatEvent() (HeartbeatEvent, error)

AsHeartbeatEvent returns the union data inside the SessionEvent as a HeartbeatEvent

func (SessionEvent) AsRequestOpenedEvent

func (t SessionEvent) AsRequestOpenedEvent() (RequestOpenedEvent, error)

AsRequestOpenedEvent returns the union data inside the SessionEvent as a RequestOpenedEvent

func (SessionEvent) AsRequestResolvedEvent

func (t SessionEvent) AsRequestResolvedEvent() (RequestResolvedEvent, error)

AsRequestResolvedEvent returns the union data inside the SessionEvent as a RequestResolvedEvent

func (SessionEvent) AsSessionUpdatedEvent

func (t SessionEvent) AsSessionUpdatedEvent() (SessionUpdatedEvent, error)

AsSessionUpdatedEvent returns the union data inside the SessionEvent as a SessionUpdatedEvent

func (SessionEvent) AsSubagentActivityAppendedEvent

func (t SessionEvent) AsSubagentActivityAppendedEvent() (SubagentActivityAppendedEvent, error)

AsSubagentActivityAppendedEvent returns the union data inside the SessionEvent as a SubagentActivityAppendedEvent

func (SessionEvent) AsSubagentUpdatedEvent

func (t SessionEvent) AsSubagentUpdatedEvent() (SubagentUpdatedEvent, error)

AsSubagentUpdatedEvent returns the union data inside the SessionEvent as a SubagentUpdatedEvent

func (SessionEvent) AsTranscriptAppendedEvent

func (t SessionEvent) AsTranscriptAppendedEvent() (TranscriptAppendedEvent, error)

AsTranscriptAppendedEvent returns the union data inside the SessionEvent as a TranscriptAppendedEvent

func (SessionEvent) AsTurnCompletedEvent

func (t SessionEvent) AsTurnCompletedEvent() (TurnCompletedEvent, error)

AsTurnCompletedEvent returns the union data inside the SessionEvent as a TurnCompletedEvent

func (SessionEvent) AsTurnStartedEvent

func (t SessionEvent) AsTurnStartedEvent() (TurnStartedEvent, error)

AsTurnStartedEvent returns the union data inside the SessionEvent as a TurnStartedEvent

func (SessionEvent) Discriminator

func (t SessionEvent) Discriminator() (string, error)

func (*SessionEvent) FromAssistantDeltaEvent

func (t *SessionEvent) FromAssistantDeltaEvent(v AssistantDeltaEvent) error

FromAssistantDeltaEvent overwrites any union data inside the SessionEvent as the provided AssistantDeltaEvent

func (*SessionEvent) FromHeartbeatEvent

func (t *SessionEvent) FromHeartbeatEvent(v HeartbeatEvent) error

FromHeartbeatEvent overwrites any union data inside the SessionEvent as the provided HeartbeatEvent

func (*SessionEvent) FromRequestOpenedEvent

func (t *SessionEvent) FromRequestOpenedEvent(v RequestOpenedEvent) error

FromRequestOpenedEvent overwrites any union data inside the SessionEvent as the provided RequestOpenedEvent

func (*SessionEvent) FromRequestResolvedEvent

func (t *SessionEvent) FromRequestResolvedEvent(v RequestResolvedEvent) error

FromRequestResolvedEvent overwrites any union data inside the SessionEvent as the provided RequestResolvedEvent

func (*SessionEvent) FromSessionUpdatedEvent

func (t *SessionEvent) FromSessionUpdatedEvent(v SessionUpdatedEvent) error

FromSessionUpdatedEvent overwrites any union data inside the SessionEvent as the provided SessionUpdatedEvent

func (*SessionEvent) FromSubagentActivityAppendedEvent

func (t *SessionEvent) FromSubagentActivityAppendedEvent(v SubagentActivityAppendedEvent) error

FromSubagentActivityAppendedEvent overwrites any union data inside the SessionEvent as the provided SubagentActivityAppendedEvent

func (*SessionEvent) FromSubagentUpdatedEvent

func (t *SessionEvent) FromSubagentUpdatedEvent(v SubagentUpdatedEvent) error

FromSubagentUpdatedEvent overwrites any union data inside the SessionEvent as the provided SubagentUpdatedEvent

func (*SessionEvent) FromTranscriptAppendedEvent

func (t *SessionEvent) FromTranscriptAppendedEvent(v TranscriptAppendedEvent) error

FromTranscriptAppendedEvent overwrites any union data inside the SessionEvent as the provided TranscriptAppendedEvent

func (*SessionEvent) FromTurnCompletedEvent

func (t *SessionEvent) FromTurnCompletedEvent(v TurnCompletedEvent) error

FromTurnCompletedEvent overwrites any union data inside the SessionEvent as the provided TurnCompletedEvent

func (*SessionEvent) FromTurnStartedEvent

func (t *SessionEvent) FromTurnStartedEvent(v TurnStartedEvent) error

FromTurnStartedEvent overwrites any union data inside the SessionEvent as the provided TurnStartedEvent

func (SessionEvent) MarshalJSON

func (t SessionEvent) MarshalJSON() ([]byte, error)

func (*SessionEvent) MergeAssistantDeltaEvent

func (t *SessionEvent) MergeAssistantDeltaEvent(v AssistantDeltaEvent) error

MergeAssistantDeltaEvent performs a merge with any union data inside the SessionEvent, using the provided AssistantDeltaEvent

func (*SessionEvent) MergeHeartbeatEvent

func (t *SessionEvent) MergeHeartbeatEvent(v HeartbeatEvent) error

MergeHeartbeatEvent performs a merge with any union data inside the SessionEvent, using the provided HeartbeatEvent

func (*SessionEvent) MergeRequestOpenedEvent

func (t *SessionEvent) MergeRequestOpenedEvent(v RequestOpenedEvent) error

MergeRequestOpenedEvent performs a merge with any union data inside the SessionEvent, using the provided RequestOpenedEvent

func (*SessionEvent) MergeRequestResolvedEvent

func (t *SessionEvent) MergeRequestResolvedEvent(v RequestResolvedEvent) error

MergeRequestResolvedEvent performs a merge with any union data inside the SessionEvent, using the provided RequestResolvedEvent

func (*SessionEvent) MergeSessionUpdatedEvent

func (t *SessionEvent) MergeSessionUpdatedEvent(v SessionUpdatedEvent) error

MergeSessionUpdatedEvent performs a merge with any union data inside the SessionEvent, using the provided SessionUpdatedEvent

func (*SessionEvent) MergeSubagentActivityAppendedEvent

func (t *SessionEvent) MergeSubagentActivityAppendedEvent(v SubagentActivityAppendedEvent) error

MergeSubagentActivityAppendedEvent performs a merge with any union data inside the SessionEvent, using the provided SubagentActivityAppendedEvent

func (*SessionEvent) MergeSubagentUpdatedEvent

func (t *SessionEvent) MergeSubagentUpdatedEvent(v SubagentUpdatedEvent) error

MergeSubagentUpdatedEvent performs a merge with any union data inside the SessionEvent, using the provided SubagentUpdatedEvent

func (*SessionEvent) MergeTranscriptAppendedEvent

func (t *SessionEvent) MergeTranscriptAppendedEvent(v TranscriptAppendedEvent) error

MergeTranscriptAppendedEvent performs a merge with any union data inside the SessionEvent, using the provided TranscriptAppendedEvent

func (*SessionEvent) MergeTurnCompletedEvent

func (t *SessionEvent) MergeTurnCompletedEvent(v TurnCompletedEvent) error

MergeTurnCompletedEvent performs a merge with any union data inside the SessionEvent, using the provided TurnCompletedEvent

func (*SessionEvent) MergeTurnStartedEvent

func (t *SessionEvent) MergeTurnStartedEvent(v TurnStartedEvent) error

MergeTurnStartedEvent performs a merge with any union data inside the SessionEvent, using the provided TurnStartedEvent

func (*SessionEvent) UnmarshalJSON

func (t *SessionEvent) UnmarshalJSON(b []byte) error

func (SessionEvent) ValueByDiscriminator

func (t SessionEvent) ValueByDiscriminator() (interface{}, error)

type SessionEventKind

type SessionEventKind string

SessionEventKind The kind of change an SSE frame reports.

const (
	SessionEventKindAssistantDelta           SessionEventKind = "assistantDelta"
	SessionEventKindHeartbeat                SessionEventKind = "heartbeat"
	SessionEventKindRequestOpened            SessionEventKind = "requestOpened"
	SessionEventKindRequestResolved          SessionEventKind = "requestResolved"
	SessionEventKindSessionUpdated           SessionEventKind = "sessionUpdated"
	SessionEventKindSubagentActivityAppended SessionEventKind = "subagentActivityAppended"
	SessionEventKindSubagentUpdated          SessionEventKind = "subagentUpdated"
	SessionEventKindTranscriptAppended       SessionEventKind = "transcriptAppended"
	SessionEventKindTurnCompleted            SessionEventKind = "turnCompleted"
	SessionEventKindTurnStarted              SessionEventKind = "turnStarted"
)

Defines values for SessionEventKind.

func (SessionEventKind) Valid

func (e SessionEventKind) Valid() bool

Valid indicates whether the value is a known member of the SessionEventKind enum.

type SessionId

type SessionId = openapi_types.UUID

SessionId defines model for SessionId.

type SessionList

type SessionList struct {
	Data []Session `json:"data"`

	// NextCursor Pass as cursor for the next page. Absent on the last page.
	NextCursor *string `json:"nextCursor,omitempty"`
}

SessionList defines model for SessionList.

type SessionRequest

type SessionRequest struct {
	// CreatedAt RFC 3339 timestamp in UTC, ending in Z.
	CreatedAt *time.Time          `json:"createdAt,omitempty"`
	Id        *openapi_types.UUID `json:"id,omitempty"`
	Kind      SessionRequestKind  `json:"kind"`

	// Prompt What the CLI is asking, rendered for a human.
	Prompt string `json:"prompt"`

	// ResolvedAt Absent while status is pending.
	ResolvedAt *time.Time           `json:"resolvedAt,omitempty"`
	SessionId  *openapi_types.UUID  `json:"sessionId,omitempty"`
	Status     SessionRequestStatus `json:"status"`

	// ToolName Present on permission; the tool asking for it.
	ToolName *string `json:"toolName,omitempty"`

	// TurnId The turn the request was raised in, when there is one.
	TurnId *openapi_types.UUID `json:"turnId,omitempty"`
}

SessionRequest defines model for SessionRequest.

type SessionRequestKind

type SessionRequestKind string

SessionRequestKind defines model for SessionRequestKind.

const (
	Permission SessionRequestKind = "permission"
)

Defines values for SessionRequestKind.

func (SessionRequestKind) Valid

func (e SessionRequestKind) Valid() bool

Valid indicates whether the value is a known member of the SessionRequestKind enum.

type SessionRequestList

type SessionRequestList struct {
	Data []SessionRequest `json:"data"`
}

SessionRequestList defines model for SessionRequestList.

type SessionRequestStatus

type SessionRequestStatus string

SessionRequestStatus defines model for SessionRequestStatus.

const (
	Approved SessionRequestStatus = "approved"
	Denied   SessionRequestStatus = "denied"
	Pending  SessionRequestStatus = "pending"
)

Defines values for SessionRequestStatus.

func (SessionRequestStatus) Valid

func (e SessionRequestStatus) Valid() bool

Valid indicates whether the value is a known member of the SessionRequestStatus enum.

type SessionStatus

type SessionStatus string

SessionStatus starting until the CLI is ready, then idle between turns and running during one. ended and failed are terminal.

const (
	SessionStatusEnded    SessionStatus = "ended"
	SessionStatusFailed   SessionStatus = "failed"
	SessionStatusIdle     SessionStatus = "idle"
	SessionStatusRunning  SessionStatus = "running"
	SessionStatusStarting SessionStatus = "starting"
)

Defines values for SessionStatus.

func (SessionStatus) Valid

func (e SessionStatus) Valid() bool

Valid indicates whether the value is a known member of the SessionStatus enum.

type SessionStatusFilter

type SessionStatusFilter = SessionStatus

SessionStatusFilter starting until the CLI is ready, then idle between turns and running during one. ended and failed are terminal.

type SessionTelemetry

type SessionTelemetry struct {
	ApiDurationMs           *int64              `json:"apiDurationMs,omitempty"`
	CacheReadTokens         *int64              `json:"cacheReadTokens,omitempty"`
	CacheWriteTokens        *int64              `json:"cacheWriteTokens,omitempty"`
	CreatedAt               time.Time           `json:"createdAt"`
	DisplayName             string              `json:"displayName"`
	DurationKnownTurnCount  int64               `json:"durationKnownTurnCount"`
	DurationSeconds         *float64            `json:"durationSeconds,omitempty"`
	InputTokens             *int64              `json:"inputTokens,omitempty"`
	KnownCompletedTurnCount int64               `json:"knownCompletedTurnCount"`
	KnownStartedTurnCount   int64               `json:"knownStartedTurnCount"`
	LatestCompletedAt       *time.Time          `json:"latestCompletedAt,omitempty"`
	LatestStartedAt         *time.Time          `json:"latestStartedAt,omitempty"`
	LatestTurnId            *openapi_types.UUID `json:"latestTurnId,omitempty"`
	LatestTurnStatus        *string             `json:"latestTurnStatus,omitempty"`
	LatestUsageAt           *time.Time          `json:"latestUsageAt,omitempty"`
	Model                   string              `json:"model"`
	ObservedModelCallCount  int64               `json:"observedModelCallCount"`
	OutputTokens            *int64              `json:"outputTokens,omitempty"`
	PremiumRequests         *float64            `json:"premiumRequests,omitempty"`
	ReasoningTokens         *int64              `json:"reasoningTokens,omitempty"`
	SessionId               openapi_types.UUID  `json:"sessionId"`
	Status                  string              `json:"status"`
	TurnCount               int64               `json:"turnCount"`
	UncorrelatedUsageCount  int64               `json:"uncorrelatedUsageCount"`
	UpdatedAt               time.Time           `json:"updatedAt"`
}

SessionTelemetry defines model for SessionTelemetry.

type SessionUpdatedEvent

type SessionUpdatedEvent struct {
	Kind       SessionUpdatedEventKind `json:"kind"`
	OccurredAt time.Time               `json:"occurredAt"`
	Payload    Session                 `json:"payload"`
	Seq        int64                   `json:"seq"`
	SessionId  openapi_types.UUID      `json:"sessionId"`
}

SessionUpdatedEvent defines model for SessionUpdatedEvent.

type SessionUpdatedEventKind

type SessionUpdatedEventKind string

SessionUpdatedEventKind defines model for SessionUpdatedEvent.Kind.

const (
	SessionUpdatedEventKindSessionUpdated SessionUpdatedEventKind = "sessionUpdated"
)

Defines values for SessionUpdatedEventKind.

func (SessionUpdatedEventKind) Valid

func (e SessionUpdatedEventKind) Valid() bool

Valid indicates whether the value is a known member of the SessionUpdatedEventKind enum.

type StopTerminal200JSONResponse

type StopTerminal200JSONResponse Terminal

func (StopTerminal200JSONResponse) VisitStopTerminalResponse

func (response StopTerminal200JSONResponse) VisitStopTerminalResponse(w http.ResponseWriter) error

type StopTerminal400JSONResponse

type StopTerminal400JSONResponse struct{ BadRequestJSONResponse }

func (StopTerminal400JSONResponse) VisitStopTerminalResponse

func (response StopTerminal400JSONResponse) VisitStopTerminalResponse(w http.ResponseWriter) error

type StopTerminal404JSONResponse

type StopTerminal404JSONResponse struct{ NotFoundJSONResponse }

func (StopTerminal404JSONResponse) VisitStopTerminalResponse

func (response StopTerminal404JSONResponse) VisitStopTerminalResponse(w http.ResponseWriter) error

type StopTerminal500JSONResponse

type StopTerminal500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (StopTerminal500JSONResponse) VisitStopTerminalResponse

func (response StopTerminal500JSONResponse) VisitStopTerminalResponse(w http.ResponseWriter) error

type StopTerminalRequestObject

type StopTerminalRequestObject struct {
	WorktreeId WorktreeId `json:"worktreeId"`
	TerminalId TerminalId `json:"terminalId"`
}

type StopTerminalResponse

type StopTerminalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Terminal
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseStopTerminalResponse

func ParseStopTerminalResponse(rsp *http.Response) (*StopTerminalResponse, error)

ParseStopTerminalResponse parses an HTTP response from a StopTerminalWithResponse call

func (StopTerminalResponse) ContentType

func (r StopTerminalResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StopTerminalResponse) GetBody

func (r StopTerminalResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StopTerminalResponse) GetJSON200

func (r StopTerminalResponse) GetJSON200() *Terminal

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (StopTerminalResponse) GetJSON400

func (r StopTerminalResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (StopTerminalResponse) GetJSON404

func (r StopTerminalResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (StopTerminalResponse) GetJSON500

func (r StopTerminalResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (StopTerminalResponse) Status

func (r StopTerminalResponse) Status() string

Status returns HTTPResponse.Status

func (StopTerminalResponse) StatusCode

func (r StopTerminalResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StopTerminalResponseObject

type StopTerminalResponseObject interface {
	VisitStopTerminalResponse(w http.ResponseWriter) error
}

type StreamSessionEvents200TexteventStreamResponse

type StreamSessionEvents200TexteventStreamResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (StreamSessionEvents200TexteventStreamResponse) VisitStreamSessionEventsResponse

func (response StreamSessionEvents200TexteventStreamResponse) VisitStreamSessionEventsResponse(w http.ResponseWriter) error

type StreamSessionEvents400JSONResponse

type StreamSessionEvents400JSONResponse struct{ BadRequestJSONResponse }

func (StreamSessionEvents400JSONResponse) VisitStreamSessionEventsResponse

func (response StreamSessionEvents400JSONResponse) VisitStreamSessionEventsResponse(w http.ResponseWriter) error

type StreamSessionEvents404JSONResponse

type StreamSessionEvents404JSONResponse struct{ NotFoundJSONResponse }

func (StreamSessionEvents404JSONResponse) VisitStreamSessionEventsResponse

func (response StreamSessionEvents404JSONResponse) VisitStreamSessionEventsResponse(w http.ResponseWriter) error

type StreamSessionEvents500JSONResponse

type StreamSessionEvents500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (StreamSessionEvents500JSONResponse) VisitStreamSessionEventsResponse

func (response StreamSessionEvents500JSONResponse) VisitStreamSessionEventsResponse(w http.ResponseWriter) error

type StreamSessionEventsParams

type StreamSessionEventsParams struct {
	// LastEventID The seq of the last event the client already holds. The stream resumes
	// immediately after it.
	LastEventID *LastEventId `json:"Last-Event-ID,omitempty"`
}

StreamSessionEventsParams defines parameters for StreamSessionEvents.

type StreamSessionEventsRequestObject

type StreamSessionEventsRequestObject struct {
	SessionId SessionId `json:"sessionId"`
	Params    StreamSessionEventsParams
}

type StreamSessionEventsResponse

type StreamSessionEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseStreamSessionEventsResponse

func ParseStreamSessionEventsResponse(rsp *http.Response) (*StreamSessionEventsResponse, error)

ParseStreamSessionEventsResponse parses an HTTP response from a StreamSessionEventsWithResponse call

func (StreamSessionEventsResponse) ContentType

func (r StreamSessionEventsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StreamSessionEventsResponse) GetBody

func (r StreamSessionEventsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StreamSessionEventsResponse) GetJSON400

func (r StreamSessionEventsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (StreamSessionEventsResponse) GetJSON404

func (r StreamSessionEventsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (StreamSessionEventsResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (StreamSessionEventsResponse) Status

Status returns HTTPResponse.Status

func (StreamSessionEventsResponse) StatusCode

func (r StreamSessionEventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StreamSessionEventsResponseObject

type StreamSessionEventsResponseObject interface {
	VisitStreamSessionEventsResponse(w http.ResponseWriter) error
}

type StreamTerminalEvents200TexteventStreamResponse

type StreamTerminalEvents200TexteventStreamResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (StreamTerminalEvents200TexteventStreamResponse) VisitStreamTerminalEventsResponse

func (response StreamTerminalEvents200TexteventStreamResponse) VisitStreamTerminalEventsResponse(w http.ResponseWriter) error

type StreamTerminalEvents400JSONResponse

type StreamTerminalEvents400JSONResponse struct{ BadRequestJSONResponse }

func (StreamTerminalEvents400JSONResponse) VisitStreamTerminalEventsResponse

func (response StreamTerminalEvents400JSONResponse) VisitStreamTerminalEventsResponse(w http.ResponseWriter) error

type StreamTerminalEvents404JSONResponse

type StreamTerminalEvents404JSONResponse struct{ NotFoundJSONResponse }

func (StreamTerminalEvents404JSONResponse) VisitStreamTerminalEventsResponse

func (response StreamTerminalEvents404JSONResponse) VisitStreamTerminalEventsResponse(w http.ResponseWriter) error

type StreamTerminalEvents500JSONResponse

type StreamTerminalEvents500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (StreamTerminalEvents500JSONResponse) VisitStreamTerminalEventsResponse

func (response StreamTerminalEvents500JSONResponse) VisitStreamTerminalEventsResponse(w http.ResponseWriter) error

type StreamTerminalEventsParams

type StreamTerminalEventsParams struct {
	// LastEventID The seq of the last event the client already holds. The stream resumes
	// immediately after it.
	LastEventID *LastEventId `json:"Last-Event-ID,omitempty"`
}

StreamTerminalEventsParams defines parameters for StreamTerminalEvents.

type StreamTerminalEventsRequestObject

type StreamTerminalEventsRequestObject struct {
	WorktreeId WorktreeId `json:"worktreeId"`
	TerminalId TerminalId `json:"terminalId"`
	Params     StreamTerminalEventsParams
}

type StreamTerminalEventsResponse

type StreamTerminalEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseStreamTerminalEventsResponse

func ParseStreamTerminalEventsResponse(rsp *http.Response) (*StreamTerminalEventsResponse, error)

ParseStreamTerminalEventsResponse parses an HTTP response from a StreamTerminalEventsWithResponse call

func (StreamTerminalEventsResponse) ContentType

func (r StreamTerminalEventsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StreamTerminalEventsResponse) GetBody

func (r StreamTerminalEventsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StreamTerminalEventsResponse) GetJSON400

func (r StreamTerminalEventsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (StreamTerminalEventsResponse) GetJSON404

func (r StreamTerminalEventsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (StreamTerminalEventsResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (StreamTerminalEventsResponse) Status

Status returns HTTPResponse.Status

func (StreamTerminalEventsResponse) StatusCode

func (r StreamTerminalEventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StreamTerminalEventsResponseObject

type StreamTerminalEventsResponseObject interface {
	VisitStreamTerminalEventsResponse(w http.ResponseWriter) error
}

type StrictGinServerOptions

type StrictGinServerOptions struct {
	// RequestErrorHandlerFunc is called when a request cannot be parsed or
	// decoded. It is invoked for JSON bind failures, form parse/bind errors,
	// multipart reader errors, media type parse errors, missing multipart
	// boundaries, and request body read errors. The default returns 400.
	RequestErrorHandlerFunc func(ctx *gin.Context, err error)
	// HandlerErrorFunc is called when the application handler (or any
	// middleware wrapping it) returns a non-nil error. The default returns 500.
	HandlerErrorFunc func(ctx *gin.Context, err error)
	// ResponseErrorHandlerFunc is called when the response object fails to
	// serialize (Visit*Response returns an error) or when the handler returns
	// an unexpected response type. The default returns 500.
	ResponseErrorHandlerFunc func(ctx *gin.Context, err error)
}

type StrictHandlerFunc

type StrictHandlerFunc func(ctx *gin.Context, request any) (any, error)

type StrictMiddlewareFunc

type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc

type StrictServerInterface

type StrictServerInterface interface {
	// GetHealth Report adapter liveness
	// (GET /healthz)
	GetHealth(ctx context.Context, request GetHealthRequestObject) (GetHealthResponseObject, error)
	// ListModels List the models the CLI can use
	// (GET /v1/models)
	ListModels(ctx context.Context, request ListModelsRequestObject) (ListModelsResponseObject, error)
	// ListRepositories List configured repository roots
	// (GET /v1/repositories)
	ListRepositories(ctx context.Context, request ListRepositoriesRequestObject) (ListRepositoriesResponseObject, error)
	// ListChatSchedules List durable chat schedules
	// (GET /v1/schedules)
	ListChatSchedules(ctx context.Context, request ListChatSchedulesRequestObject) (ListChatSchedulesResponseObject, error)
	// CreateChatSchedule Schedule a recurring prompt
	// (POST /v1/schedules)
	CreateChatSchedule(ctx context.Context, request CreateChatScheduleRequestObject) (CreateChatScheduleResponseObject, error)
	// DeleteChatSchedule Delete a chat schedule
	// (DELETE /v1/schedules/{scheduleId})
	DeleteChatSchedule(ctx context.Context, request DeleteChatScheduleRequestObject) (DeleteChatScheduleResponseObject, error)
	// GetChatSchedule Read one chat schedule
	// (GET /v1/schedules/{scheduleId})
	GetChatSchedule(ctx context.Context, request GetChatScheduleRequestObject) (GetChatScheduleResponseObject, error)
	// UpdateChatSchedule Edit or pause a chat schedule
	// (PATCH /v1/schedules/{scheduleId})
	UpdateChatSchedule(ctx context.Context, request UpdateChatScheduleRequestObject) (UpdateChatScheduleResponseObject, error)
	// ListSessions List sessions
	// (GET /v1/sessions)
	ListSessions(ctx context.Context, request ListSessionsRequestObject) (ListSessionsResponseObject, error)
	// CreateSession Start a Copilot CLI session
	// (POST /v1/sessions)
	CreateSession(ctx context.Context, request CreateSessionRequestObject) (CreateSessionResponseObject, error)
	// EndSession End a session
	// (DELETE /v1/sessions/{sessionId})
	EndSession(ctx context.Context, request EndSessionRequestObject) (EndSessionResponseObject, error)
	// GetSession Get one session
	// (GET /v1/sessions/{sessionId})
	GetSession(ctx context.Context, request GetSessionRequestObject) (GetSessionResponseObject, error)
	// UpdateSession Change a session model or display name
	// (PATCH /v1/sessions/{sessionId})
	UpdateSession(ctx context.Context, request UpdateSessionRequestObject) (UpdateSessionResponseObject, error)
	// AbortTurn Stop the turn in flight
	// (POST /v1/sessions/{sessionId}/abort)
	AbortTurn(ctx context.Context, request AbortTurnRequestObject) (AbortTurnResponseObject, error)
	// GetActiveTurn Read the exact turn currently running
	// (GET /v1/sessions/{sessionId}/active-turn)
	GetActiveTurn(ctx context.Context, request GetActiveTurnRequestObject) (GetActiveTurnResponseObject, error)
	// StreamSessionEvents Stream session events as Server-Sent Events
	// (GET /v1/sessions/{sessionId}/events)
	StreamSessionEvents(ctx context.Context, request StreamSessionEventsRequestObject) (StreamSessionEventsResponseObject, error)
	// SubmitPrompt Send a prompt to a session
	// (POST /v1/sessions/{sessionId}/prompts)
	SubmitPrompt(ctx context.Context, request SubmitPromptRequestObject) (SubmitPromptResponseObject, error)
	// ListSessionRequests List the requests awaiting a decision
	// (GET /v1/sessions/{sessionId}/requests)
	ListSessionRequests(ctx context.Context, request ListSessionRequestsRequestObject) (ListSessionRequestsResponseObject, error)
	// ResolveSessionRequest Resolve a pending permission request
	// (POST /v1/sessions/{sessionId}/requests/{requestId}/resolve)
	ResolveSessionRequest(ctx context.Context, request ResolveSessionRequestRequestObject) (ResolveSessionRequestResponseObject, error)
	// ListSubagents List actual subagents reported by a session
	// (GET /v1/sessions/{sessionId}/subagents)
	ListSubagents(ctx context.Context, request ListSubagentsRequestObject) (ListSubagentsResponseObject, error)
	// GetSubagent Read one subagent's current lifecycle state
	// (GET /v1/sessions/{sessionId}/subagents/{subagentId})
	GetSubagent(ctx context.Context, request GetSubagentRequestObject) (GetSubagentResponseObject, error)
	// ListSubagentActivity Read one subagent's progress activity
	// (GET /v1/sessions/{sessionId}/subagents/{subagentId}/activity)
	ListSubagentActivity(ctx context.Context, request ListSubagentActivityRequestObject) (ListSubagentActivityResponseObject, error)
	// LinkSessionTask Associate an exact session with its authoritative GitHub task
	// (PUT /v1/sessions/{sessionId}/task)
	LinkSessionTask(ctx context.Context, request LinkSessionTaskRequestObject) (LinkSessionTaskResponseObject, error)
	// ListTranscript Read a session's persisted transcript
	// (GET /v1/sessions/{sessionId}/transcript)
	ListTranscript(ctx context.Context, request ListTranscriptRequestObject) (ListTranscriptResponseObject, error)
	// GetTelemetry Retained provider usage and observed execution timing
	// (GET /v1/telemetry)
	GetTelemetry(ctx context.Context, request GetTelemetryRequestObject) (GetTelemetryResponseObject, error)
	// GetWorkspace Read the current workspace snapshot used by live widgets
	// (GET /v1/workspace)
	GetWorkspace(ctx context.Context, request GetWorkspaceRequestObject) (GetWorkspaceResponseObject, error)
	// RefreshWorkspace Ingest current linked issue checkpoints and notify live widgets
	// (POST /v1/workspace/refresh)
	RefreshWorkspace(ctx context.Context, request RefreshWorkspaceRequestObject) (RefreshWorkspaceResponseObject, error)
	// ListWorktrees List worktrees containing chats
	// (GET /v1/worktrees)
	ListWorktrees(ctx context.Context, request ListWorktreesRequestObject) (ListWorktreesResponseObject, error)
	// GetWorktree Read current worktree metadata
	// (GET /v1/worktrees/{worktreeId})
	GetWorktree(ctx context.Context, request GetWorktreeRequestObject) (GetWorktreeResponseObject, error)
	// GetWorktreeChanges Inspect repository status and diff
	// (GET /v1/worktrees/{worktreeId}/changes)
	GetWorktreeChanges(ctx context.Context, request GetWorktreeChangesRequestObject) (GetWorktreeChangesResponseObject, error)
	// ListTerminals List terminal sessions for a worktree
	// (GET /v1/worktrees/{worktreeId}/terminals)
	ListTerminals(ctx context.Context, request ListTerminalsRequestObject) (ListTerminalsResponseObject, error)
	// CreateTerminal Start a bounded terminal in a worktree
	// (POST /v1/worktrees/{worktreeId}/terminals)
	CreateTerminal(ctx context.Context, request CreateTerminalRequestObject) (CreateTerminalResponseObject, error)
	// StopTerminal Stop a terminal and release its process
	// (DELETE /v1/worktrees/{worktreeId}/terminals/{terminalId})
	StopTerminal(ctx context.Context, request StopTerminalRequestObject) (StopTerminalResponseObject, error)
	// GetTerminal Read terminal lifecycle state
	// (GET /v1/worktrees/{worktreeId}/terminals/{terminalId})
	GetTerminal(ctx context.Context, request GetTerminalRequestObject) (GetTerminalResponseObject, error)
	// ResizeTerminal Resize a running terminal
	// (PATCH /v1/worktrees/{worktreeId}/terminals/{terminalId})
	ResizeTerminal(ctx context.Context, request ResizeTerminalRequestObject) (ResizeTerminalResponseObject, error)
	// StreamTerminalEvents Stream bounded terminal output and exit state
	// (GET /v1/worktrees/{worktreeId}/terminals/{terminalId}/events)
	StreamTerminalEvents(ctx context.Context, request StreamTerminalEventsRequestObject) (StreamTerminalEventsResponseObject, error)
	// WriteTerminalInput Write input to a running terminal
	// (POST /v1/worktrees/{worktreeId}/terminals/{terminalId}/input)
	WriteTerminalInput(ctx context.Context, request WriteTerminalInputRequestObject) (WriteTerminalInputResponseObject, error)
}

StrictServerInterface represents all server handlers.

type Subagent

type Subagent struct {
	ActivityCount *int64     `json:"activityCount,omitempty"`
	CompletedAt   *time.Time `json:"completedAt,omitempty"`
	DisplayName   *string    `json:"displayName,omitempty"`

	// Id Opaque identifier retained from the SDK or adapter seam.
	Id        *string             `json:"id,omitempty"`
	SessionId *openapi_types.UUID `json:"sessionId,omitempty"`
	StartedAt *time.Time          `json:"startedAt,omitempty"`
	Status    SubagentStatus      `json:"status"`

	// Summary Latest actual progress text, absent when none was reported.
	Summary   *string             `json:"summary,omitempty"`
	TurnId    *openapi_types.UUID `json:"turnId,omitempty"`
	UpdatedAt *time.Time          `json:"updatedAt,omitempty"`
}

Subagent defines model for Subagent.

type SubagentActivity

type SubagentActivity struct {
	Kind       SubagentActivityKind `json:"kind"`
	OccurredAt *time.Time           `json:"occurredAt,omitempty"`

	// Seq Monotonic, gapless position within this subagent.
	Seq        *int64              `json:"seq,omitempty"`
	SessionId  *openapi_types.UUID `json:"sessionId,omitempty"`
	SubagentId *string             `json:"subagentId,omitempty"`

	// Text Actual progress, message, arguments, output, or failure text.
	Text       string  `json:"text"`
	ToolCallId *string `json:"toolCallId,omitempty"`
	ToolName   *string `json:"toolName,omitempty"`
}

SubagentActivity defines model for SubagentActivity.

type SubagentActivityAppendedEvent

type SubagentActivityAppendedEvent struct {
	Kind       SubagentActivityAppendedEventKind `json:"kind"`
	OccurredAt time.Time                         `json:"occurredAt"`
	Payload    SubagentActivity                  `json:"payload"`
	Seq        int64                             `json:"seq"`
	SessionId  openapi_types.UUID                `json:"sessionId"`
}

SubagentActivityAppendedEvent defines model for SubagentActivityAppendedEvent.

type SubagentActivityAppendedEventKind

type SubagentActivityAppendedEventKind string

SubagentActivityAppendedEventKind defines model for SubagentActivityAppendedEvent.Kind.

const (
	SubagentActivityAppendedEventKindSubagentActivityAppended SubagentActivityAppendedEventKind = "subagentActivityAppended"
)

Defines values for SubagentActivityAppendedEventKind.

func (SubagentActivityAppendedEventKind) Valid

Valid indicates whether the value is a known member of the SubagentActivityAppendedEventKind enum.

type SubagentActivityKind

type SubagentActivityKind string

SubagentActivityKind defines model for SubagentActivityKind.

const (
	SubagentActivityKindCompleted  SubagentActivityKind = "completed"
	SubagentActivityKindFailed     SubagentActivityKind = "failed"
	SubagentActivityKindMessage    SubagentActivityKind = "message"
	SubagentActivityKindProgress   SubagentActivityKind = "progress"
	SubagentActivityKindStarted    SubagentActivityKind = "started"
	SubagentActivityKindToolCall   SubagentActivityKind = "toolCall"
	SubagentActivityKindToolResult SubagentActivityKind = "toolResult"
)

Defines values for SubagentActivityKind.

func (SubagentActivityKind) Valid

func (e SubagentActivityKind) Valid() bool

Valid indicates whether the value is a known member of the SubagentActivityKind enum.

type SubagentActivityPage

type SubagentActivityPage struct {
	Data         []SubagentActivity `json:"data"`
	NextAfterSeq *int64             `json:"nextAfterSeq,omitempty"`
}

SubagentActivityPage defines model for SubagentActivityPage.

type SubagentId

type SubagentId = string

SubagentId defines model for SubagentId.

type SubagentList

type SubagentList struct {
	Data []Subagent `json:"data"`
}

SubagentList defines model for SubagentList.

type SubagentStatus

type SubagentStatus string

SubagentStatus defines model for SubagentStatus.

const (
	SubagentStatusActive    SubagentStatus = "active"
	SubagentStatusCompleted SubagentStatus = "completed"
	SubagentStatusFailed    SubagentStatus = "failed"
)

Defines values for SubagentStatus.

func (SubagentStatus) Valid

func (e SubagentStatus) Valid() bool

Valid indicates whether the value is a known member of the SubagentStatus enum.

type SubagentUpdatedEvent

type SubagentUpdatedEvent struct {
	Kind       SubagentUpdatedEventKind `json:"kind"`
	OccurredAt time.Time                `json:"occurredAt"`
	Payload    Subagent                 `json:"payload"`
	Seq        int64                    `json:"seq"`
	SessionId  openapi_types.UUID       `json:"sessionId"`
}

SubagentUpdatedEvent defines model for SubagentUpdatedEvent.

type SubagentUpdatedEventKind

type SubagentUpdatedEventKind string

SubagentUpdatedEventKind defines model for SubagentUpdatedEvent.Kind.

const (
	SubagentUpdatedEventKindSubagentUpdated SubagentUpdatedEventKind = "subagentUpdated"
)

Defines values for SubagentUpdatedEventKind.

func (SubagentUpdatedEventKind) Valid

func (e SubagentUpdatedEventKind) Valid() bool

Valid indicates whether the value is a known member of the SubagentUpdatedEventKind enum.

type SubmitPrompt202JSONResponse

type SubmitPrompt202JSONResponse Turn

func (SubmitPrompt202JSONResponse) VisitSubmitPromptResponse

func (response SubmitPrompt202JSONResponse) VisitSubmitPromptResponse(w http.ResponseWriter) error

type SubmitPrompt400JSONResponse

type SubmitPrompt400JSONResponse struct{ BadRequestJSONResponse }

func (SubmitPrompt400JSONResponse) VisitSubmitPromptResponse

func (response SubmitPrompt400JSONResponse) VisitSubmitPromptResponse(w http.ResponseWriter) error

type SubmitPrompt404JSONResponse

type SubmitPrompt404JSONResponse struct{ NotFoundJSONResponse }

func (SubmitPrompt404JSONResponse) VisitSubmitPromptResponse

func (response SubmitPrompt404JSONResponse) VisitSubmitPromptResponse(w http.ResponseWriter) error

type SubmitPrompt409JSONResponse

type SubmitPrompt409JSONResponse struct{ ConflictJSONResponse }

func (SubmitPrompt409JSONResponse) VisitSubmitPromptResponse

func (response SubmitPrompt409JSONResponse) VisitSubmitPromptResponse(w http.ResponseWriter) error

type SubmitPrompt500JSONResponse

type SubmitPrompt500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (SubmitPrompt500JSONResponse) VisitSubmitPromptResponse

func (response SubmitPrompt500JSONResponse) VisitSubmitPromptResponse(w http.ResponseWriter) error

type SubmitPrompt502JSONResponse

type SubmitPrompt502JSONResponse struct{ BadGatewayJSONResponse }

func (SubmitPrompt502JSONResponse) VisitSubmitPromptResponse

func (response SubmitPrompt502JSONResponse) VisitSubmitPromptResponse(w http.ResponseWriter) error

type SubmitPromptJSONRequestBody

type SubmitPromptJSONRequestBody = PromptRequest

SubmitPromptJSONRequestBody defines body for SubmitPrompt for application/json ContentType.

type SubmitPromptRequestObject

type SubmitPromptRequestObject struct {
	SessionId SessionId `json:"sessionId"`
	Body      *SubmitPromptJSONRequestBody
}

type SubmitPromptResponse

type SubmitPromptResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *Turn
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
	// JSON502 the response for an HTTP 502 `application/json` response
	JSON502 *BadGateway
}

func ParseSubmitPromptResponse

func ParseSubmitPromptResponse(rsp *http.Response) (*SubmitPromptResponse, error)

ParseSubmitPromptResponse parses an HTTP response from a SubmitPromptWithResponse call

func (SubmitPromptResponse) ContentType

func (r SubmitPromptResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SubmitPromptResponse) GetBody

func (r SubmitPromptResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SubmitPromptResponse) GetJSON202

func (r SubmitPromptResponse) GetJSON202() *Turn

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (SubmitPromptResponse) GetJSON400

func (r SubmitPromptResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SubmitPromptResponse) GetJSON404

func (r SubmitPromptResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SubmitPromptResponse) GetJSON409

func (r SubmitPromptResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (SubmitPromptResponse) GetJSON500

func (r SubmitPromptResponse) GetJSON500() *InternalServerError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (SubmitPromptResponse) GetJSON502

func (r SubmitPromptResponse) GetJSON502() *BadGateway

GetJSON502 returns the response for an HTTP 502 `application/json` response

func (SubmitPromptResponse) Status

func (r SubmitPromptResponse) Status() string

Status returns HTTPResponse.Status

func (SubmitPromptResponse) StatusCode

func (r SubmitPromptResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SubmitPromptResponseObject

type SubmitPromptResponseObject interface {
	VisitSubmitPromptResponse(w http.ResponseWriter) error
}

type TelemetrySnapshot

type TelemetrySnapshot struct {
	ObservedAt time.Time            `json:"observedAt"`
	Sessions   []SessionTelemetry   `json:"sessions"`
	Traces     []TraceDeliveryCount `json:"traces"`
}

TelemetrySnapshot defines model for TelemetrySnapshot.

type Terminal

type Terminal struct {
	Columns   int32      `json:"columns"`
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// ExitCode Present after a normal process exit.
	ExitCode *int32              `json:"exitCode,omitempty"`
	Id       *openapi_types.UUID `json:"id,omitempty"`
	Rows     int32               `json:"rows"`

	// Shell Configured executable; clients cannot select it.
	Shell *string `json:"shell,omitempty"`

	// Status starting and running are live; exited and failed are terminal.
	Status     TerminalStatus      `json:"status"`
	UpdatedAt  *time.Time          `json:"updatedAt,omitempty"`
	WorktreeId *openapi_types.UUID `json:"worktreeId,omitempty"`
}

Terminal defines model for Terminal.

type TerminalEvent

type TerminalEvent struct {
	// Data UTF-8 output chunk; present only for output.
	Data *string `json:"data,omitempty"`

	// ExitCode Present on exited.
	ExitCode   *int32            `json:"exitCode,omitempty"`
	Kind       TerminalEventKind `json:"kind"`
	OccurredAt *time.Time        `json:"occurredAt,omitempty"`

	// ReplayTruncated True on the first replayed event when older output was evicted.
	ReplayTruncated *bool               `json:"replayTruncated,omitempty"`
	Seq             *int64              `json:"seq,omitempty"`
	TerminalId      *openapi_types.UUID `json:"terminalId,omitempty"`
}

TerminalEvent defines model for TerminalEvent.

type TerminalEventKind

type TerminalEventKind string

TerminalEventKind defines model for TerminalEventKind.

const (
	TerminalEventKindExited    TerminalEventKind = "exited"
	TerminalEventKindFailed    TerminalEventKind = "failed"
	TerminalEventKindHeartbeat TerminalEventKind = "heartbeat"
	TerminalEventKindOutput    TerminalEventKind = "output"
)

Defines values for TerminalEventKind.

func (TerminalEventKind) Valid

func (e TerminalEventKind) Valid() bool

Valid indicates whether the value is a known member of the TerminalEventKind enum.

type TerminalId

type TerminalId = openapi_types.UUID

TerminalId defines model for TerminalId.

type TerminalInputRequest

type TerminalInputRequest struct {
	// Data UTF-8 input written to the terminal's pseudo-terminal.
	Data string `json:"data"`
}

TerminalInputRequest defines model for TerminalInputRequest.

type TerminalList

type TerminalList struct {
	Data []Terminal `json:"data"`
}

TerminalList defines model for TerminalList.

type TerminalStatus

type TerminalStatus string

TerminalStatus starting and running are live; exited and failed are terminal.

const (
	TerminalStatusExited   TerminalStatus = "exited"
	TerminalStatusFailed   TerminalStatus = "failed"
	TerminalStatusRunning  TerminalStatus = "running"
	TerminalStatusStarting TerminalStatus = "starting"
)

Defines values for TerminalStatus.

func (TerminalStatus) Valid

func (e TerminalStatus) Valid() bool

Valid indicates whether the value is a known member of the TerminalStatus enum.

type TraceDeliveryCount

type TraceDeliveryCount struct {
	Count int64                   `json:"count"`
	State TraceDeliveryCountState `json:"state"`
}

TraceDeliveryCount defines model for TraceDeliveryCount.

type TraceDeliveryCountState

type TraceDeliveryCountState string

TraceDeliveryCountState defines model for TraceDeliveryCount.State.

const (
	TraceAccepted TraceDeliveryCountState = "accepted"
	TraceFailed   TraceDeliveryCountState = "failed"
	TracePending  TraceDeliveryCountState = "pending"
	TraceRunning  TraceDeliveryCountState = "running"
)

Defines values for TraceDeliveryCountState.

func (TraceDeliveryCountState) Valid

func (e TraceDeliveryCountState) Valid() bool

Valid indicates whether the value is a known member of the TraceDeliveryCountState enum.

type TranscriptAppendedEvent

type TranscriptAppendedEvent struct {
	Kind       TranscriptAppendedEventKind `json:"kind"`
	OccurredAt time.Time                   `json:"occurredAt"`
	Payload    TranscriptItem              `json:"payload"`
	Seq        int64                       `json:"seq"`
	SessionId  openapi_types.UUID          `json:"sessionId"`
}

TranscriptAppendedEvent defines model for TranscriptAppendedEvent.

type TranscriptAppendedEventKind

type TranscriptAppendedEventKind string

TranscriptAppendedEventKind defines model for TranscriptAppendedEvent.Kind.

const (
	TranscriptAppendedEventKindTranscriptAppended TranscriptAppendedEventKind = "transcriptAppended"
)

Defines values for TranscriptAppendedEventKind.

func (TranscriptAppendedEventKind) Valid

Valid indicates whether the value is a known member of the TranscriptAppendedEventKind enum.

type TranscriptItem

type TranscriptItem struct {
	// Author Present on userMessage; the display name that sent it.
	Author *string `json:"author,omitempty"`

	// Kind assistantMessage is delta-collapsed: the stream's token deltas are
	// already joined into one persisted item.
	Kind TranscriptItemKind `json:"kind"`

	// OccurredAt RFC 3339 timestamp in UTC, ending in Z.
	OccurredAt *time.Time `json:"occurredAt,omitempty"`

	// Seq Monotonic, gapless position within the session.
	Seq       *int64              `json:"seq,omitempty"`
	SessionId *openapi_types.UUID `json:"sessionId,omitempty"`

	// Text The rendered body: message Markdown, the tool's arguments, the
	// tool's output, or the notice. Empty when the item carries no body.
	Text string `json:"text"`

	// ToolCallId The CLI's identifier for one tool invocation. Present on toolCall
	// and toolResult; a result carries the same value as its call, so a
	// client pairs them on this rather than on toolName.
	ToolCallId *string `json:"toolCallId,omitempty"`

	// ToolName Present on toolCall and toolResult.
	ToolName *string `json:"toolName,omitempty"`

	// TurnId Absent for items that belong to no turn.
	TurnId *openapi_types.UUID `json:"turnId,omitempty"`
}

TranscriptItem defines model for TranscriptItem.

type TranscriptItemKind

type TranscriptItemKind string

TranscriptItemKind assistantMessage is delta-collapsed: the stream's token deltas are already joined into one persisted item.

const (
	TranscriptItemKindAssistantMessage TranscriptItemKind = "assistantMessage"
	TranscriptItemKindSystemNotice     TranscriptItemKind = "systemNotice"
	TranscriptItemKindToolCall         TranscriptItemKind = "toolCall"
	TranscriptItemKindToolResult       TranscriptItemKind = "toolResult"
	TranscriptItemKindUserMessage      TranscriptItemKind = "userMessage"
)

Defines values for TranscriptItemKind.

func (TranscriptItemKind) Valid

func (e TranscriptItemKind) Valid() bool

Valid indicates whether the value is a known member of the TranscriptItemKind enum.

type TranscriptPage

type TranscriptPage struct {
	Data []TranscriptItem `json:"data"`

	// NextAfterSeq Pass as afterSeq for the next page. Absent when the page reached
	// the end of the transcript.
	NextAfterSeq *int64 `json:"nextAfterSeq,omitempty"`
}

TranscriptPage defines model for TranscriptPage.

type Turn

type Turn struct {
	// CompletedAt Absent while the turn is queued or running.
	CompletedAt *time.Time `json:"completedAt,omitempty"`

	// CreatedAt RFC 3339 timestamp in UTC, ending in Z.
	CreatedAt *time.Time          `json:"createdAt,omitempty"`
	Id        *openapi_types.UUID `json:"id,omitempty"`
	SessionId *openapi_types.UUID `json:"sessionId,omitempty"`

	// StartedAt First observed provider turn start; absent when historical evidence is unavailable.
	StartedAt *time.Time `json:"startedAt,omitempty"`
	Status    TurnStatus `json:"status"`
}

Turn defines model for Turn.

type TurnCompletedEvent

type TurnCompletedEvent struct {
	Kind       TurnCompletedEventKind `json:"kind"`
	OccurredAt time.Time              `json:"occurredAt"`
	Payload    Turn                   `json:"payload"`
	Seq        int64                  `json:"seq"`
	SessionId  openapi_types.UUID     `json:"sessionId"`
}

TurnCompletedEvent defines model for TurnCompletedEvent.

type TurnCompletedEventKind

type TurnCompletedEventKind string

TurnCompletedEventKind defines model for TurnCompletedEvent.Kind.

const (
	TurnCompletedEventKindTurnCompleted TurnCompletedEventKind = "turnCompleted"
)

Defines values for TurnCompletedEventKind.

func (TurnCompletedEventKind) Valid

func (e TurnCompletedEventKind) Valid() bool

Valid indicates whether the value is a known member of the TurnCompletedEventKind enum.

type TurnStartedEvent

type TurnStartedEvent struct {
	Kind       TurnStartedEventKind `json:"kind"`
	OccurredAt time.Time            `json:"occurredAt"`
	Payload    Turn                 `json:"payload"`
	Seq        int64                `json:"seq"`
	SessionId  openapi_types.UUID   `json:"sessionId"`
}

TurnStartedEvent defines model for TurnStartedEvent.

type TurnStartedEventKind

type TurnStartedEventKind string

TurnStartedEventKind defines model for TurnStartedEvent.Kind.

const (
	TurnStartedEventKindTurnStarted TurnStartedEventKind = "turnStarted"
)

Defines values for TurnStartedEventKind.

func (TurnStartedEventKind) Valid

func (e TurnStartedEventKind) Valid() bool

Valid indicates whether the value is a known member of the TurnStartedEventKind enum.

type TurnStatus

type TurnStatus string

TurnStatus defines model for TurnStatus.

const (
	TurnStatusAborted   TurnStatus = "aborted"
	TurnStatusCompleted TurnStatus = "completed"
	TurnStatusFailed    TurnStatus = "failed"
	TurnStatusQueued    TurnStatus = "queued"
	TurnStatusRunning   TurnStatus = "running"
)

Defines values for TurnStatus.

func (TurnStatus) Valid

func (e TurnStatus) Valid() bool

Valid indicates whether the value is a known member of the TurnStatus enum.

type UpdateChatSchedule200JSONResponse

type UpdateChatSchedule200JSONResponse ChatSchedule

func (UpdateChatSchedule200JSONResponse) VisitUpdateChatScheduleResponse

func (response UpdateChatSchedule200JSONResponse) VisitUpdateChatScheduleResponse(w http.ResponseWriter) error

type UpdateChatSchedule400JSONResponse

type UpdateChatSchedule400JSONResponse struct{ BadRequestJSONResponse }

func (UpdateChatSchedule400JSONResponse) VisitUpdateChatScheduleResponse

func (response UpdateChatSchedule400JSONResponse) VisitUpdateChatScheduleResponse(w http.ResponseWriter) error

type UpdateChatSchedule404JSONResponse

type UpdateChatSchedule404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateChatSchedule404JSONResponse) VisitUpdateChatScheduleResponse

func (response UpdateChatSchedule404JSONResponse) VisitUpdateChatScheduleResponse(w http.ResponseWriter) error

type UpdateChatSchedule409JSONResponse

type UpdateChatSchedule409JSONResponse struct{ ConflictJSONResponse }

func (UpdateChatSchedule409JSONResponse) VisitUpdateChatScheduleResponse

func (response UpdateChatSchedule409JSONResponse) VisitUpdateChatScheduleResponse(w http.ResponseWriter) error

type UpdateChatSchedule500JSONResponse

type UpdateChatSchedule500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (UpdateChatSchedule500JSONResponse) VisitUpdateChatScheduleResponse

func (response UpdateChatSchedule500JSONResponse) VisitUpdateChatScheduleResponse(w http.ResponseWriter) error

type UpdateChatScheduleJSONRequestBody

type UpdateChatScheduleJSONRequestBody = UpdateChatScheduleRequest

UpdateChatScheduleJSONRequestBody defines body for UpdateChatSchedule for application/json ContentType.

type UpdateChatScheduleRequest

type UpdateChatScheduleRequest struct {
	CronExpression *string             `json:"cronExpression,omitempty"`
	DisplayName    *string             `json:"displayName,omitempty"`
	Prompt         *string             `json:"prompt,omitempty"`
	Status         *ChatScheduleStatus `json:"status,omitempty"`
	Timezone       *string             `json:"timezone,omitempty"`
}

UpdateChatScheduleRequest defines model for UpdateChatScheduleRequest.

type UpdateChatScheduleRequestObject

type UpdateChatScheduleRequestObject struct {
	ScheduleId ScheduleId `json:"scheduleId"`
	Body       *UpdateChatScheduleJSONRequestBody
}

type UpdateChatScheduleResponse

type UpdateChatScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ChatSchedule
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseUpdateChatScheduleResponse

func ParseUpdateChatScheduleResponse(rsp *http.Response) (*UpdateChatScheduleResponse, error)

ParseUpdateChatScheduleResponse parses an HTTP response from a UpdateChatScheduleWithResponse call

func (UpdateChatScheduleResponse) ContentType

func (r UpdateChatScheduleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateChatScheduleResponse) GetBody

func (r UpdateChatScheduleResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateChatScheduleResponse) GetJSON200

func (r UpdateChatScheduleResponse) GetJSON200() *ChatSchedule

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateChatScheduleResponse) GetJSON400

func (r UpdateChatScheduleResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateChatScheduleResponse) GetJSON404

func (r UpdateChatScheduleResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateChatScheduleResponse) GetJSON409

func (r UpdateChatScheduleResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateChatScheduleResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (UpdateChatScheduleResponse) Status

Status returns HTTPResponse.Status

func (UpdateChatScheduleResponse) StatusCode

func (r UpdateChatScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateChatScheduleResponseObject

type UpdateChatScheduleResponseObject interface {
	VisitUpdateChatScheduleResponse(w http.ResponseWriter) error
}

type UpdateSession200JSONResponse

type UpdateSession200JSONResponse Session

func (UpdateSession200JSONResponse) VisitUpdateSessionResponse

func (response UpdateSession200JSONResponse) VisitUpdateSessionResponse(w http.ResponseWriter) error

type UpdateSession400JSONResponse

type UpdateSession400JSONResponse struct{ BadRequestJSONResponse }

func (UpdateSession400JSONResponse) VisitUpdateSessionResponse

func (response UpdateSession400JSONResponse) VisitUpdateSessionResponse(w http.ResponseWriter) error

type UpdateSession404JSONResponse

type UpdateSession404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateSession404JSONResponse) VisitUpdateSessionResponse

func (response UpdateSession404JSONResponse) VisitUpdateSessionResponse(w http.ResponseWriter) error

type UpdateSession409JSONResponse

type UpdateSession409JSONResponse struct{ ConflictJSONResponse }

func (UpdateSession409JSONResponse) VisitUpdateSessionResponse

func (response UpdateSession409JSONResponse) VisitUpdateSessionResponse(w http.ResponseWriter) error

type UpdateSession500JSONResponse

type UpdateSession500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (UpdateSession500JSONResponse) VisitUpdateSessionResponse

func (response UpdateSession500JSONResponse) VisitUpdateSessionResponse(w http.ResponseWriter) error

type UpdateSessionJSONRequestBody

type UpdateSessionJSONRequestBody = UpdateSessionRequest

UpdateSessionJSONRequestBody defines body for UpdateSession for application/json ContentType.

type UpdateSessionRequest

type UpdateSessionRequest struct {
	DisplayName *string `json:"displayName,omitempty"`
	Model       *string `json:"model,omitempty"`
}

UpdateSessionRequest At least one property must be present.

type UpdateSessionRequestObject

type UpdateSessionRequestObject struct {
	SessionId SessionId `json:"sessionId"`
	Body      *UpdateSessionJSONRequestBody
}

type UpdateSessionResponse

type UpdateSessionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Session
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseUpdateSessionResponse

func ParseUpdateSessionResponse(rsp *http.Response) (*UpdateSessionResponse, error)

ParseUpdateSessionResponse parses an HTTP response from a UpdateSessionWithResponse call

func (UpdateSessionResponse) ContentType

func (r UpdateSessionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateSessionResponse) GetBody

func (r UpdateSessionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateSessionResponse) GetJSON200

func (r UpdateSessionResponse) GetJSON200() *Session

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateSessionResponse) GetJSON400

func (r UpdateSessionResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateSessionResponse) GetJSON404

func (r UpdateSessionResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateSessionResponse) GetJSON409

func (r UpdateSessionResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateSessionResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (UpdateSessionResponse) Status

func (r UpdateSessionResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateSessionResponse) StatusCode

func (r UpdateSessionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateSessionResponseObject

type UpdateSessionResponseObject interface {
	VisitUpdateSessionResponse(w http.ResponseWriter) error
}

type UsageObservation

type UsageObservation struct {
	ApiCallId     *string `json:"apiCallId,omitempty"`
	ApiDurationMs *int64  `json:"apiDurationMs,omitempty"`

	// BillingMultiplier Provider model multiplier; not USD or premium request consumption.
	BillingMultiplier *float64             `json:"billingMultiplier,omitempty"`
	CacheReadTokens   *int64               `json:"cacheReadTokens,omitempty"`
	CacheWriteTokens  *int64               `json:"cacheWriteTokens,omitempty"`
	InputTokens       *int64               `json:"inputTokens,omitempty"`
	Kind              UsageObservationKind `json:"kind"`
	Model             *string              `json:"model,omitempty"`

	// NanoAiu Provider-reported nano AI units; incremental for modelCall and cumulative for sessionCheckpoint.
	NanoAiu      *float64 `json:"nanoAiu,omitempty"`
	OutputTokens *int64   `json:"outputTokens,omitempty"`

	// PremiumRequests Cumulative session premium requests explicitly reported by the provider.
	PremiumRequests  *float64 `json:"premiumRequests,omitempty"`
	ProviderCallId   *string  `json:"providerCallId,omitempty"`
	ReasoningTokens  *int64   `json:"reasoningTokens,omitempty"`
	ServiceRequestId *string  `json:"serviceRequestId,omitempty"`
}

UsageObservation Source SDK usage; omitted fields are unknown. modelCall is incremental; sessionCheckpoint is cumulative.

type UsageObservationKind

type UsageObservationKind string

UsageObservationKind defines model for UsageObservation.Kind.

const (
	ModelCall         UsageObservationKind = "modelCall"
	SessionCheckpoint UsageObservationKind = "sessionCheckpoint"
)

Defines values for UsageObservationKind.

func (UsageObservationKind) Valid

func (e UsageObservationKind) Valid() bool

Valid indicates whether the value is a known member of the UsageObservationKind enum.

type WorkspaceSnapshot

type WorkspaceSnapshot struct {
	Repositories []Repository        `json:"repositories"`
	Sessions     []Session           `json:"sessions"`
	TaskLinks    []WorkspaceTaskLink `json:"taskLinks"`
	Worktrees    []WorkspaceWorktree `json:"worktrees"`
}

WorkspaceSnapshot defines model for WorkspaceSnapshot.

type WorkspaceTaskLink struct {
	Generation int64              `json:"generation"`
	SessionId  openapi_types.UUID `json:"sessionId"`
	TaskUrl    string             `json:"taskUrl"`
}

WorkspaceTaskLink defines model for WorkspaceTaskLink.

type WorkspaceWorktree

type WorkspaceWorktree struct {
	BaseRef      string             `json:"baseRef"`
	Id           openapi_types.UUID `json:"id"`
	Managed      bool               `json:"managed"`
	Path         string             `json:"path"`
	RepositoryId string             `json:"repositoryId"`
}

WorkspaceWorktree Retained worktree identity; does not assert current filesystem or Git state.

type Worktree

type Worktree struct {
	BaseRef *string `json:"baseRef,omitempty"`

	// Branch Empty for a detached HEAD or a missing or released worktree.
	Branch    *string    `json:"branch,omitempty"`
	Clean     *bool      `json:"clean,omitempty"`
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// HeadSha Empty only when the worktree is missing or released.
	HeadSha *string             `json:"headSha,omitempty"`
	Id      *openapi_types.UUID `json:"id,omitempty"`

	// Managed Whether the adapter created and owns cleanup of this worktree.
	Managed        *bool   `json:"managed,omitempty"`
	Path           *string `json:"path,omitempty"`
	RepositoryId   *string `json:"repositoryId,omitempty"`
	RepositoryRoot *string `json:"repositoryRoot,omitempty"`
	SessionCount   *int64  `json:"sessionCount,omitempty"`

	// State active is present on disk; missing means its recorded path disappeared;
	// released is an adapter-managed worktree that was intentionally removed.
	State     WorktreeState `json:"state"`
	UpdatedAt *time.Time    `json:"updatedAt,omitempty"`
}

Worktree defines model for Worktree.

type WorktreeChanges

type WorktreeChanges struct {
	CapturedAt *time.Time  `json:"capturedAt,omitempty"`
	Clean      *bool       `json:"clean,omitempty"`
	Files      []GitChange `json:"files"`
	HeadSha    *string     `json:"headSha,omitempty"`

	// Patch Bounded `git diff HEAD --no-ext-diff --binary` output.
	Patch      string              `json:"patch"`
	Truncated  *bool               `json:"truncated,omitempty"`
	WorktreeId *openapi_types.UUID `json:"worktreeId,omitempty"`
}

WorktreeChanges defines model for WorktreeChanges.

type WorktreeId

type WorktreeId = openapi_types.UUID

WorktreeId defines model for WorktreeId.

type WorktreeList

type WorktreeList struct {
	Data []Worktree `json:"data"`
}

WorktreeList defines model for WorktreeList.

type WorktreeMode

type WorktreeMode string

WorktreeMode newWorktree is the default and creates an isolated git worktree for the chat. reuseCurrentWorktree explicitly runs in the configured root. reuseExistingWorktree selects a server-recorded worktree by worktreeId; the browser never supplies its filesystem path.

const (
	NewWorktree           WorktreeMode = "newWorktree"
	ReuseCurrentWorktree  WorktreeMode = "reuseCurrentWorktree"
	ReuseExistingWorktree WorktreeMode = "reuseExistingWorktree"
)

Defines values for WorktreeMode.

func (WorktreeMode) Valid

func (e WorktreeMode) Valid() bool

Valid indicates whether the value is a known member of the WorktreeMode enum.

type WorktreeState

type WorktreeState string

WorktreeState active is present on disk; missing means its recorded path disappeared; released is an adapter-managed worktree that was intentionally removed.

const (
	WorktreeStateActive   WorktreeState = "active"
	WorktreeStateMissing  WorktreeState = "missing"
	WorktreeStateReleased WorktreeState = "released"
)

Defines values for WorktreeState.

func (WorktreeState) Valid

func (e WorktreeState) Valid() bool

Valid indicates whether the value is a known member of the WorktreeState enum.

type WriteTerminalInput202JSONResponse

type WriteTerminalInput202JSONResponse Terminal

func (WriteTerminalInput202JSONResponse) VisitWriteTerminalInputResponse

func (response WriteTerminalInput202JSONResponse) VisitWriteTerminalInputResponse(w http.ResponseWriter) error

type WriteTerminalInput400JSONResponse

type WriteTerminalInput400JSONResponse struct{ BadRequestJSONResponse }

func (WriteTerminalInput400JSONResponse) VisitWriteTerminalInputResponse

func (response WriteTerminalInput400JSONResponse) VisitWriteTerminalInputResponse(w http.ResponseWriter) error

type WriteTerminalInput404JSONResponse

type WriteTerminalInput404JSONResponse struct{ NotFoundJSONResponse }

func (WriteTerminalInput404JSONResponse) VisitWriteTerminalInputResponse

func (response WriteTerminalInput404JSONResponse) VisitWriteTerminalInputResponse(w http.ResponseWriter) error

type WriteTerminalInput409JSONResponse

type WriteTerminalInput409JSONResponse struct{ ConflictJSONResponse }

func (WriteTerminalInput409JSONResponse) VisitWriteTerminalInputResponse

func (response WriteTerminalInput409JSONResponse) VisitWriteTerminalInputResponse(w http.ResponseWriter) error

type WriteTerminalInput500JSONResponse

type WriteTerminalInput500JSONResponse struct {
	InternalServerErrorJSONResponse
}

func (WriteTerminalInput500JSONResponse) VisitWriteTerminalInputResponse

func (response WriteTerminalInput500JSONResponse) VisitWriteTerminalInputResponse(w http.ResponseWriter) error

type WriteTerminalInputJSONRequestBody

type WriteTerminalInputJSONRequestBody = TerminalInputRequest

WriteTerminalInputJSONRequestBody defines body for WriteTerminalInput for application/json ContentType.

type WriteTerminalInputRequestObject

type WriteTerminalInputRequestObject struct {
	WorktreeId WorktreeId `json:"worktreeId"`
	TerminalId TerminalId `json:"terminalId"`
	Body       *WriteTerminalInputJSONRequestBody
}

type WriteTerminalInputResponse

type WriteTerminalInputResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *Terminal
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalServerError
}

func ParseWriteTerminalInputResponse

func ParseWriteTerminalInputResponse(rsp *http.Response) (*WriteTerminalInputResponse, error)

ParseWriteTerminalInputResponse parses an HTTP response from a WriteTerminalInputWithResponse call

func (WriteTerminalInputResponse) ContentType

func (r WriteTerminalInputResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WriteTerminalInputResponse) GetBody

func (r WriteTerminalInputResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (WriteTerminalInputResponse) GetJSON202

func (r WriteTerminalInputResponse) GetJSON202() *Terminal

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (WriteTerminalInputResponse) GetJSON400

func (r WriteTerminalInputResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (WriteTerminalInputResponse) GetJSON404

func (r WriteTerminalInputResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (WriteTerminalInputResponse) GetJSON409

func (r WriteTerminalInputResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (WriteTerminalInputResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (WriteTerminalInputResponse) Status

Status returns HTTPResponse.Status

func (WriteTerminalInputResponse) StatusCode

func (r WriteTerminalInputResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WriteTerminalInputResponseObject

type WriteTerminalInputResponseObject interface {
	VisitWriteTerminalInputResponse(w http.ResponseWriter) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL