api

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: MIT Imports: 16 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 Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func PathToRawSpec

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

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

Types

type Accepted

type Accepted struct {
	// MessageID ID of the last accepted message in the ordered batch.
	MessageID openapi_types.UUID `json:"message_id"`
	RunID     openapi_types.UUID `json:"run_id"`
	SessionID openapi_types.UUID `json:"session_id"`
}

Accepted defines model for Accepted.

type AccountLimitBucket added in v0.1.7

type AccountLimitBucket struct {
	LimitID              string              `json:"limit_id"`
	LimitName            *string             `json:"limit_name"`
	PlanType             *string             `json:"plan_type"`
	Primary              *AccountLimitWindow `json:"primary"`
	RateLimitReachedType *string             `json:"rate_limit_reached_type"`
	Secondary            *AccountLimitWindow `json:"secondary"`
}

AccountLimitBucket defines model for AccountLimitBucket.

type AccountLimitItem added in v0.1.7

type AccountLimitItem struct {
	AccountID     string                     `json:"account_id"`
	Buckets       []AccountLimitBucket       `json:"buckets"`
	ErrorCode     *AccountLimitItemErrorCode `json:"error_code"`
	LastAttemptAt *time.Time                 `json:"last_attempt_at"`
	ObservedAt    *time.Time                 `json:"observed_at"`
	Profiles      []string                   `json:"profiles"`
	State         AccountLimitItemState      `json:"state"`
}

AccountLimitItem defines model for AccountLimitItem.

type AccountLimitItemErrorCode added in v0.1.7

type AccountLimitItemErrorCode string

AccountLimitItemErrorCode defines model for AccountLimitItem.ErrorCode.

const (
	AccountLimitItemErrorCodeAuthenticationUnavailable AccountLimitItemErrorCode = "authentication_unavailable"
	AccountLimitItemErrorCodeInvalidResponse           AccountLimitItemErrorCode = "invalid_response"
	AccountLimitItemErrorCodeNoData                    AccountLimitItemErrorCode = "no_data"
	AccountLimitItemErrorCodeTemporarilyUnavailable    AccountLimitItemErrorCode = "temporarily_unavailable"
	AccountLimitItemErrorCodeUnsupported               AccountLimitItemErrorCode = "unsupported"
)

Defines values for AccountLimitItemErrorCode.

func (AccountLimitItemErrorCode) Valid added in v0.1.7

func (e AccountLimitItemErrorCode) Valid() bool

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

type AccountLimitItemState added in v0.1.7

type AccountLimitItemState string

AccountLimitItemState defines model for AccountLimitItem.State.

const (
	AccountLimitItemStateFresh       AccountLimitItemState = "fresh"
	AccountLimitItemStateStale       AccountLimitItemState = "stale"
	AccountLimitItemStateUnavailable AccountLimitItemState = "unavailable"
	AccountLimitItemStateUnknown     AccountLimitItemState = "unknown"
)

Defines values for AccountLimitItemState.

func (AccountLimitItemState) Valid added in v0.1.7

func (e AccountLimitItemState) Valid() bool

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

type AccountLimitWindow added in v0.1.7

type AccountLimitWindow struct {
	RemainingPercent float64    `json:"remaining_percent"`
	ResetsAt         *time.Time `json:"resets_at"`
	UsedPercent      float64    `json:"used_percent"`
	WindowMinutes    *int       `json:"window_minutes"`
}

AccountLimitWindow defines model for AccountLimitWindow.

type AccountLimits added in v0.1.7

type AccountLimits struct {
	AsOf              time.Time          `json:"as_of"`
	Items             []AccountLimitItem `json:"items"`
	StaleAfterSeconds int                `json:"stale_after_seconds"`
}

AccountLimits defines model for AccountLimits.

type AgentConfiguration

type AgentConfiguration struct {
	Instructions string `json:"instructions"`
	Model        string `json:"model"`
	Profile      string `json:"profile"`
}

AgentConfiguration defines model for AgentConfiguration.

type AgentInput

type AgentInput struct {
	Instructions *string `json:"instructions,omitempty"`
	Model        *string `json:"model,omitempty"`
	Profile      string  `json:"profile"`
}

AgentInput defines model for AgentInput.

type AggregateUsage added in v0.1.7

type AggregateUsage struct {
	InputTokens  string `json:"input_tokens"`
	OutputTokens string `json:"output_tokens"`
	TotalTokens  string `json:"total_tokens"`
}

AggregateUsage Totals for runs accepted in the period. Decimal strings preserve values beyond JavaScript Number precision.

type AnalyticsBucket added in v0.1.7

type AnalyticsBucket struct {
	ByStatus  StatusCounts `json:"by_status"`
	From      time.Time    `json:"from"`
	RunsCount int64        `json:"runs_count"`
	To        time.Time    `json:"to"`
}

AnalyticsBucket defines model for AnalyticsBucket.

type AnalyticsOverview added in v0.1.7

type AnalyticsOverview struct {
	AsOf    time.Time               `json:"as_of"`
	Bucket  AnalyticsOverviewBucket `json:"bucket"`
	Current struct {
		ActiveSessions int64 `json:"active_sessions"`
	} `json:"current"`
	From      time.Time `json:"from"`
	Namespace *string   `json:"namespace"`

	// Period Runs accepted during [from,to), including their latest recorded usage and full lifetime through as_of.
	Period struct {
		ByStatus       StatusCounts `json:"by_status"`
		RunsCount      int64        `json:"runs_count"`
		RuntimeSeconds float64      `json:"runtime_seconds"`

		// Usage Totals for runs accepted in the period. Decimal strings preserve values beyond JavaScript Number precision.
		Usage AggregateUsage `json:"usage"`
	} `json:"period"`
	Series   []AnalyticsBucket `json:"series"`
	Timezone string            `json:"timezone"`
	To       time.Time         `json:"to"`
}

AnalyticsOverview defines model for AnalyticsOverview.

type AnalyticsOverviewBucket added in v0.1.7

type AnalyticsOverviewBucket string

AnalyticsOverviewBucket defines model for AnalyticsOverview.Bucket.

const (
	AnalyticsOverviewBucketDay  AnalyticsOverviewBucket = "day"
	AnalyticsOverviewBucketHour AnalyticsOverviewBucket = "hour"
)

Defines values for AnalyticsOverviewBucket.

func (AnalyticsOverviewBucket) Valid added in v0.1.7

func (e AnalyticsOverviewBucket) Valid() bool

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

type AuthSession200JSONResponse added in v0.1.7

type AuthSession200JSONResponse BrowserAuthSession

func (AuthSession200JSONResponse) VisitAuthSessionResponse added in v0.1.7

func (response AuthSession200JSONResponse) VisitAuthSessionResponse(w http.ResponseWriter) error

type AuthSessionRequestObject added in v0.1.7

type AuthSessionRequestObject struct {
}

type AuthSessionResponseObject added in v0.1.7

type AuthSessionResponseObject interface {
	VisitAuthSessionResponse(w http.ResponseWriter) error
}

type AuthSessiondefaultJSONResponse added in v0.1.7

type AuthSessiondefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AuthSessiondefaultJSONResponse) VisitAuthSessionResponse added in v0.1.7

func (response AuthSessiondefaultJSONResponse) VisitAuthSessionResponse(w http.ResponseWriter) error

type BrowserAuthSession added in v0.1.7

type BrowserAuthSession struct {
	Authenticated bool                   `json:"authenticated"`
	ExpiresAt     *time.Time             `json:"expires_at"`
	Mode          BrowserAuthSessionMode `json:"mode"`
	ReadAccess    bool                   `json:"read_access"`
	User          *struct {
		DisplayName string `json:"display_name"`
	} `json:"user"`
}

BrowserAuthSession defines model for BrowserAuthSession.

type BrowserAuthSessionMode added in v0.1.7

type BrowserAuthSessionMode string

BrowserAuthSessionMode defines model for BrowserAuthSession.Mode.

const (
	APIOnly   BrowserAuthSessionMode = "api_only"
	Anonymous BrowserAuthSessionMode = "anonymous"
	Saml      BrowserAuthSessionMode = "saml"
)

Defines values for BrowserAuthSessionMode.

func (BrowserAuthSessionMode) Valid added in v0.1.7

func (e BrowserAuthSessionMode) Valid() bool

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

type BrowserCallback303Response added in v0.1.7

type BrowserCallback303Response struct {
	Headers BrowserCallback303ResponseHeaders
}

func (BrowserCallback303Response) VisitBrowserCallbackResponse added in v0.1.7

func (response BrowserCallback303Response) VisitBrowserCallbackResponse(w http.ResponseWriter) error

type BrowserCallback303ResponseHeaders added in v0.1.7

type BrowserCallback303ResponseHeaders struct {
	Location *string
}

type BrowserCallbackRequestObject added in v0.1.7

type BrowserCallbackRequestObject struct {
}

type BrowserCallbackResponseObject added in v0.1.7

type BrowserCallbackResponseObject interface {
	VisitBrowserCallbackResponse(w http.ResponseWriter) error
}

type BrowserCallbackdefaultJSONResponse added in v0.1.7

type BrowserCallbackdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (BrowserCallbackdefaultJSONResponse) VisitBrowserCallbackResponse added in v0.1.7

func (response BrowserCallbackdefaultJSONResponse) VisitBrowserCallbackResponse(w http.ResponseWriter) error

type BrowserLogin302Response added in v0.1.7

type BrowserLogin302Response struct {
	Headers BrowserLogin302ResponseHeaders
}

func (BrowserLogin302Response) VisitBrowserLoginResponse added in v0.1.7

func (response BrowserLogin302Response) VisitBrowserLoginResponse(w http.ResponseWriter) error

type BrowserLogin302ResponseHeaders added in v0.1.7

type BrowserLogin302ResponseHeaders struct {
	Location *string
}

type BrowserLoginParams added in v0.1.7

type BrowserLoginParams struct {
	Next *string `form:"next,omitempty" json:"next,omitempty"`
}

BrowserLoginParams defines parameters for BrowserLogin.

type BrowserLoginRequestObject added in v0.1.7

type BrowserLoginRequestObject struct {
	Params BrowserLoginParams
}

type BrowserLoginResponseObject added in v0.1.7

type BrowserLoginResponseObject interface {
	VisitBrowserLoginResponse(w http.ResponseWriter) error
}

type BrowserLogindefaultJSONResponse added in v0.1.7

type BrowserLogindefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (BrowserLogindefaultJSONResponse) VisitBrowserLoginResponse added in v0.1.7

func (response BrowserLogindefaultJSONResponse) VisitBrowserLoginResponse(w http.ResponseWriter) error

type BrowserLogout204Response added in v0.1.7

type BrowserLogout204Response struct {
}

func (BrowserLogout204Response) VisitBrowserLogoutResponse added in v0.1.7

func (response BrowserLogout204Response) VisitBrowserLogoutResponse(w http.ResponseWriter) error

type BrowserLogoutRequestObject added in v0.1.7

type BrowserLogoutRequestObject struct {
}

type BrowserLogoutResponseObject added in v0.1.7

type BrowserLogoutResponseObject interface {
	VisitBrowserLogoutResponse(w http.ResponseWriter) error
}

type BrowserLogoutdefaultJSONResponse added in v0.1.7

type BrowserLogoutdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (BrowserLogoutdefaultJSONResponse) VisitBrowserLogoutResponse added in v0.1.7

func (response BrowserLogoutdefaultJSONResponse) VisitBrowserLogoutResponse(w http.ResponseWriter) error

type CancelRun200JSONResponse

type CancelRun200JSONResponse Cancelled

func (CancelRun200JSONResponse) VisitCancelRunResponse

func (response CancelRun200JSONResponse) VisitCancelRunResponse(w http.ResponseWriter) error

type CancelRun202JSONResponse

type CancelRun202JSONResponse Cancelled

func (CancelRun202JSONResponse) VisitCancelRunResponse

func (response CancelRun202JSONResponse) VisitCancelRunResponse(w http.ResponseWriter) error

type CancelRun400JSONResponse

type CancelRun400JSONResponse ErrorResponse

func (CancelRun400JSONResponse) VisitCancelRunResponse

func (response CancelRun400JSONResponse) VisitCancelRunResponse(w http.ResponseWriter) error

type CancelRun401JSONResponse

type CancelRun401JSONResponse ErrorResponse

func (CancelRun401JSONResponse) VisitCancelRunResponse

func (response CancelRun401JSONResponse) VisitCancelRunResponse(w http.ResponseWriter) error

type CancelRun403JSONResponse added in v0.1.7

type CancelRun403JSONResponse ErrorResponse

func (CancelRun403JSONResponse) VisitCancelRunResponse added in v0.1.7

func (response CancelRun403JSONResponse) VisitCancelRunResponse(w http.ResponseWriter) error

type CancelRun404JSONResponse

type CancelRun404JSONResponse ErrorResponse

func (CancelRun404JSONResponse) VisitCancelRunResponse

func (response CancelRun404JSONResponse) VisitCancelRunResponse(w http.ResponseWriter) error

type CancelRun409JSONResponse

type CancelRun409JSONResponse ErrorResponse

func (CancelRun409JSONResponse) VisitCancelRunResponse

func (response CancelRun409JSONResponse) VisitCancelRunResponse(w http.ResponseWriter) error

type CancelRun413JSONResponse

type CancelRun413JSONResponse ErrorResponse

func (CancelRun413JSONResponse) VisitCancelRunResponse

func (response CancelRun413JSONResponse) VisitCancelRunResponse(w http.ResponseWriter) error

type CancelRun415JSONResponse

type CancelRun415JSONResponse ErrorResponse

func (CancelRun415JSONResponse) VisitCancelRunResponse

func (response CancelRun415JSONResponse) VisitCancelRunResponse(w http.ResponseWriter) error

type CancelRun422JSONResponse

type CancelRun422JSONResponse ErrorResponse

func (CancelRun422JSONResponse) VisitCancelRunResponse

func (response CancelRun422JSONResponse) VisitCancelRunResponse(w http.ResponseWriter) error

type CancelRun503JSONResponse

type CancelRun503JSONResponse ErrorResponse

func (CancelRun503JSONResponse) VisitCancelRunResponse

func (response CancelRun503JSONResponse) VisitCancelRunResponse(w http.ResponseWriter) error

type CancelRunRequestObject

type CancelRunRequestObject struct {
	Sid openapi_types.UUID `json:"sid"`
	Rid openapi_types.UUID `json:"rid"`
}

type CancelRunResponseObject

type CancelRunResponseObject interface {
	VisitCancelRunResponse(w http.ResponseWriter) error
}

type Cancelled

type Cancelled struct {
	RunID  openapi_types.UUID `json:"run_id"`
	Status RunStatus          `json:"status"`
}

Cancelled defines model for Cancelled.

type Configuration

type Configuration struct {
	Agent   AgentConfiguration   `json:"agent"`
	Hooks   HooksConfiguration   `json:"hooks"`
	Limits  Limits               `json:"limits"`
	Sandbox SandboxConfiguration `json:"sandbox"`
}

Configuration defines model for Configuration.

type ConfigurationInput

type ConfigurationInput struct {
	Agent   AgentInput   `json:"agent"`
	Hooks   *HooksInput  `json:"hooks,omitempty"`
	Limits  *LimitsInput `json:"limits,omitempty"`
	Sandbox SandboxInput `json:"sandbox"`
}

ConfigurationInput defines model for ConfigurationInput.

type CreateRun

type CreateRun struct {
	// Env Explicit environment variables available only to this run's before_run and after_run hooks. Override session sources with the same names; never passed to the harness, after_create, or before_remove.
	Env *map[string]string `json:"env,omitempty"`

	// EnvFrom Allowlisted orchestrator environment variable names available only to this run's before_run and after_run hooks. Resolved before each hook; override session sources and are never passed to the harness, after_create, or before_remove.
	EnvFrom *[]string `json:"env_from,omitempty"`

	// InputFingerprint Opaque input snapshot version for this run; does not deduplicate requests. Opaque identifier, 1–256 UTF-8 bytes; no NUL or whitespace-only value. Compared exactly, without normalization.
	InputFingerprint *string `json:"input_fingerprint,omitempty"`

	// Messages Ordered user messages accepted atomically. The last starts the run; earlier messages are injected into the agent context first.
	Messages []TextMessage `json:"messages"`
}

CreateRun defines model for CreateRun.

type CreateRun202JSONResponse

type CreateRun202JSONResponse struct {
	Body    Accepted
	Headers CreateRun202ResponseHeaders
}

func (CreateRun202JSONResponse) VisitCreateRunResponse

func (response CreateRun202JSONResponse) VisitCreateRunResponse(w http.ResponseWriter) error

type CreateRun202ResponseHeaders

type CreateRun202ResponseHeaders struct {
	Location string
}

type CreateRun400JSONResponse

type CreateRun400JSONResponse ErrorResponse

func (CreateRun400JSONResponse) VisitCreateRunResponse

func (response CreateRun400JSONResponse) VisitCreateRunResponse(w http.ResponseWriter) error

type CreateRun401JSONResponse

type CreateRun401JSONResponse ErrorResponse

func (CreateRun401JSONResponse) VisitCreateRunResponse

func (response CreateRun401JSONResponse) VisitCreateRunResponse(w http.ResponseWriter) error

type CreateRun403JSONResponse added in v0.1.7

type CreateRun403JSONResponse ErrorResponse

func (CreateRun403JSONResponse) VisitCreateRunResponse added in v0.1.7

func (response CreateRun403JSONResponse) VisitCreateRunResponse(w http.ResponseWriter) error

type CreateRun404JSONResponse

type CreateRun404JSONResponse ErrorResponse

func (CreateRun404JSONResponse) VisitCreateRunResponse

func (response CreateRun404JSONResponse) VisitCreateRunResponse(w http.ResponseWriter) error

type CreateRun409JSONResponse

type CreateRun409JSONResponse ErrorResponse

func (CreateRun409JSONResponse) VisitCreateRunResponse

func (response CreateRun409JSONResponse) VisitCreateRunResponse(w http.ResponseWriter) error

type CreateRun413JSONResponse

type CreateRun413JSONResponse ErrorResponse

func (CreateRun413JSONResponse) VisitCreateRunResponse

func (response CreateRun413JSONResponse) VisitCreateRunResponse(w http.ResponseWriter) error

type CreateRun415JSONResponse

type CreateRun415JSONResponse ErrorResponse

func (CreateRun415JSONResponse) VisitCreateRunResponse

func (response CreateRun415JSONResponse) VisitCreateRunResponse(w http.ResponseWriter) error

type CreateRun422JSONResponse

type CreateRun422JSONResponse ErrorResponse

func (CreateRun422JSONResponse) VisitCreateRunResponse

func (response CreateRun422JSONResponse) VisitCreateRunResponse(w http.ResponseWriter) error

type CreateRun503JSONResponse

type CreateRun503JSONResponse ErrorResponse

func (CreateRun503JSONResponse) VisitCreateRunResponse

func (response CreateRun503JSONResponse) VisitCreateRunResponse(w http.ResponseWriter) error

type CreateRunJSONRequestBody

type CreateRunJSONRequestBody = CreateRun

CreateRunJSONRequestBody defines body for CreateRun for application/json ContentType.

type CreateRunParams

type CreateRunParams struct {
	IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

CreateRunParams defines parameters for CreateRun.

type CreateRunRequestObject

type CreateRunRequestObject struct {
	Sid    openapi_types.UUID `json:"sid"`
	Params CreateRunParams
	Body   *CreateRunJSONRequestBody
}

type CreateRunResponseObject

type CreateRunResponseObject interface {
	VisitCreateRunResponse(w http.ResponseWriter) error
}

type CreateSession

type CreateSession struct {
	Configuration ConfigurationInput `json:"configuration"`

	// Env Explicit environment variables for the first run's before_run and after_run hooks only. Override session sources with the same names; never passed to the harness, after_create, or before_remove.
	Env *map[string]string `json:"env,omitempty"`

	// EnvFrom Allowlisted orchestrator environment variable names for the first run's before_run and after_run hooks only. Resolved before each hook; override session sources and are never passed to the harness, after_create, or before_remove.
	EnvFrom *[]string `json:"env_from,omitempty"`

	// ExternalKey Source-qualified external object key; not unique across sessions. Opaque identifier, 1–512 UTF-8 bytes; no NUL or whitespace-only value. Compared exactly, without normalization.
	ExternalKey *string `json:"external_key,omitempty"`

	// InputFingerprint Opaque input snapshot version for the first run; does not deduplicate requests. Opaque identifier, 1–256 UTF-8 bytes; no NUL or whitespace-only value. Compared exactly, without normalization.
	InputFingerprint *string `json:"input_fingerprint,omitempty"`

	// Messages Ordered user messages accepted atomically. The last starts the run; earlier messages are injected into the agent context first.
	Messages []TextMessage `json:"messages"`

	// Namespace Logical integration or workflow name. Opaque identifier, 1–128 UTF-8 bytes; no NUL or whitespace-only value. Compared exactly, without normalization.
	Namespace *string `json:"namespace,omitempty"`
}

CreateSession defines model for CreateSession.

type CreateSession202JSONResponse

type CreateSession202JSONResponse struct {
	Body    Accepted
	Headers CreateSession202ResponseHeaders
}

func (CreateSession202JSONResponse) VisitCreateSessionResponse

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

type CreateSession202ResponseHeaders

type CreateSession202ResponseHeaders struct {
	Location string
}

type CreateSession400JSONResponse

type CreateSession400JSONResponse ErrorResponse

func (CreateSession400JSONResponse) VisitCreateSessionResponse

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

type CreateSession401JSONResponse

type CreateSession401JSONResponse ErrorResponse

func (CreateSession401JSONResponse) VisitCreateSessionResponse

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

type CreateSession403JSONResponse added in v0.1.7

type CreateSession403JSONResponse ErrorResponse

func (CreateSession403JSONResponse) VisitCreateSessionResponse added in v0.1.7

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

type CreateSession404JSONResponse

type CreateSession404JSONResponse ErrorResponse

func (CreateSession404JSONResponse) VisitCreateSessionResponse

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

type CreateSession409JSONResponse

type CreateSession409JSONResponse ErrorResponse

func (CreateSession409JSONResponse) VisitCreateSessionResponse

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

type CreateSession413JSONResponse

type CreateSession413JSONResponse ErrorResponse

func (CreateSession413JSONResponse) VisitCreateSessionResponse

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

type CreateSession415JSONResponse

type CreateSession415JSONResponse ErrorResponse

func (CreateSession415JSONResponse) VisitCreateSessionResponse

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

type CreateSession422JSONResponse

type CreateSession422JSONResponse ErrorResponse

func (CreateSession422JSONResponse) VisitCreateSessionResponse

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

type CreateSession503JSONResponse

type CreateSession503JSONResponse ErrorResponse

func (CreateSession503JSONResponse) VisitCreateSessionResponse

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

type CreateSessionJSONRequestBody

type CreateSessionJSONRequestBody = CreateSession

CreateSessionJSONRequestBody defines body for CreateSession for application/json ContentType.

type CreateSessionParams

type CreateSessionParams struct {
	IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

CreateSessionParams defines parameters for CreateSession.

type CreateSessionRequestObject

type CreateSessionRequestObject struct {
	Params CreateSessionParams
	Body   *CreateSessionJSONRequestBody
}

type CreateSessionResponseObject

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

type Error

type Error struct {
	Code    string        `json:"code"`
	Details []ErrorDetail `json:"details"`
	Message string        `json:"message"`
	Phase   *ErrorPhase   `json:"phase"`
}

Error defines model for Error.

type ErrorDetail

type ErrorDetail struct {
	Code ErrorDetailCode         `json:"code"`
	Path []ErrorDetail_Path_Item `json:"path"`
}

ErrorDetail Validation paths start with body, header, query, or path. Hook execution errors identify configuration.hooks.<name>; codes never contain input values or native validator messages.

type ErrorDetailCode

type ErrorDetailCode string

ErrorDetailCode defines model for ErrorDetail.Code.

const (
	InvalidType  ErrorDetailCode = "invalid_type"
	InvalidValue ErrorDetailCode = "invalid_value"
	Required     ErrorDetailCode = "required"
	UnknownField ErrorDetailCode = "unknown_field"
)

Defines values for ErrorDetailCode.

func (ErrorDetailCode) Valid

func (e ErrorDetailCode) Valid() bool

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

type ErrorDetailPath0

type ErrorDetailPath0 = string

ErrorDetailPath0 defines model for ErrorDetail.Path.0.

type ErrorDetailPath1

type ErrorDetailPath1 = int

ErrorDetailPath1 defines model for ErrorDetail.Path.1.

type ErrorDetail_Path_Item

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

ErrorDetail_Path_Item defines model for ErrorDetail.path.Item.

func (ErrorDetail_Path_Item) AsErrorDetailPath0

func (t ErrorDetail_Path_Item) AsErrorDetailPath0() (ErrorDetailPath0, error)

AsErrorDetailPath0 returns the union data inside the ErrorDetail_Path_Item as a ErrorDetailPath0

func (ErrorDetail_Path_Item) AsErrorDetailPath1

func (t ErrorDetail_Path_Item) AsErrorDetailPath1() (ErrorDetailPath1, error)

AsErrorDetailPath1 returns the union data inside the ErrorDetail_Path_Item as a ErrorDetailPath1

func (*ErrorDetail_Path_Item) FromErrorDetailPath0

func (t *ErrorDetail_Path_Item) FromErrorDetailPath0(v ErrorDetailPath0) error

FromErrorDetailPath0 overwrites any union data inside the ErrorDetail_Path_Item as the provided ErrorDetailPath0

func (*ErrorDetail_Path_Item) FromErrorDetailPath1

func (t *ErrorDetail_Path_Item) FromErrorDetailPath1(v ErrorDetailPath1) error

FromErrorDetailPath1 overwrites any union data inside the ErrorDetail_Path_Item as the provided ErrorDetailPath1

func (ErrorDetail_Path_Item) MarshalJSON

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

func (*ErrorDetail_Path_Item) MergeErrorDetailPath0

func (t *ErrorDetail_Path_Item) MergeErrorDetailPath0(v ErrorDetailPath0) error

MergeErrorDetailPath0 performs a merge with any union data inside the ErrorDetail_Path_Item, using the provided ErrorDetailPath0

func (*ErrorDetail_Path_Item) MergeErrorDetailPath1

func (t *ErrorDetail_Path_Item) MergeErrorDetailPath1(v ErrorDetailPath1) error

MergeErrorDetailPath1 performs a merge with any union data inside the ErrorDetail_Path_Item, using the provided ErrorDetailPath1

func (*ErrorDetail_Path_Item) UnmarshalJSON

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

type ErrorPhase

type ErrorPhase string

ErrorPhase defines model for Error.Phase.

const (
	ErrorPhaseExecution    ErrorPhase = "execution"
	ErrorPhaseFinalization ErrorPhase = "finalization"
	ErrorPhasePreparation  ErrorPhase = "preparation"
	ErrorPhaseRecovery     ErrorPhase = "recovery"
)

Defines values for ErrorPhase.

func (ErrorPhase) Valid

func (e ErrorPhase) Valid() bool

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

type ErrorResponse

type ErrorResponse struct {
	Error Error `json:"error"`
}

ErrorResponse defines model for ErrorResponse.

type Event

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

Event defines model for Event.

func (Event) AsMessageEvent

func (t Event) AsMessageEvent() (MessageEvent, error)

AsMessageEvent returns the union data inside the Event as a MessageEvent

func (Event) AsRunEvent

func (t Event) AsRunEvent() (RunEvent, error)

AsRunEvent returns the union data inside the Event as a RunEvent

func (Event) AsSandboxEvent

func (t Event) AsSandboxEvent() (SandboxEvent, error)

AsSandboxEvent returns the union data inside the Event as a SandboxEvent

func (Event) AsToolCallEvent

func (t Event) AsToolCallEvent() (ToolCallEvent, error)

AsToolCallEvent returns the union data inside the Event as a ToolCallEvent

func (Event) Discriminator

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

func (*Event) FromMessageEvent

func (t *Event) FromMessageEvent(v MessageEvent) error

FromMessageEvent overwrites any union data inside the Event as the provided MessageEvent

func (*Event) FromRunEvent

func (t *Event) FromRunEvent(v RunEvent) error

FromRunEvent overwrites any union data inside the Event as the provided RunEvent

func (*Event) FromSandboxEvent

func (t *Event) FromSandboxEvent(v SandboxEvent) error

FromSandboxEvent overwrites any union data inside the Event as the provided SandboxEvent

func (*Event) FromToolCallEvent

func (t *Event) FromToolCallEvent(v ToolCallEvent) error

FromToolCallEvent overwrites any union data inside the Event as the provided ToolCallEvent

func (Event) MarshalJSON

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

func (*Event) MergeMessageEvent

func (t *Event) MergeMessageEvent(v MessageEvent) error

MergeMessageEvent performs a merge with any union data inside the Event, using the provided MessageEvent

func (*Event) MergeRunEvent

func (t *Event) MergeRunEvent(v RunEvent) error

MergeRunEvent performs a merge with any union data inside the Event, using the provided RunEvent

func (*Event) MergeSandboxEvent

func (t *Event) MergeSandboxEvent(v SandboxEvent) error

MergeSandboxEvent performs a merge with any union data inside the Event, using the provided SandboxEvent

func (*Event) MergeToolCallEvent

func (t *Event) MergeToolCallEvent(v ToolCallEvent) error

MergeToolCallEvent performs a merge with any union data inside the Event, using the provided ToolCallEvent

func (*Event) UnmarshalJSON

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

func (Event) ValueByDiscriminator

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

type EventPage

type EventPage struct {
	HasMore    bool    `json:"has_more"`
	Items      []Event `json:"items"`
	NextCursor string  `json:"next_cursor"`
}

EventPage defines model for EventPage.

type GetAccountLimits200JSONResponse added in v0.1.7

type GetAccountLimits200JSONResponse AccountLimits

func (GetAccountLimits200JSONResponse) VisitGetAccountLimitsResponse added in v0.1.7

func (response GetAccountLimits200JSONResponse) VisitGetAccountLimitsResponse(w http.ResponseWriter) error

type GetAccountLimits401JSONResponse added in v0.1.7

type GetAccountLimits401JSONResponse ErrorResponse

func (GetAccountLimits401JSONResponse) VisitGetAccountLimitsResponse added in v0.1.7

func (response GetAccountLimits401JSONResponse) VisitGetAccountLimitsResponse(w http.ResponseWriter) error

type GetAccountLimits503JSONResponse added in v0.1.7

type GetAccountLimits503JSONResponse ErrorResponse

func (GetAccountLimits503JSONResponse) VisitGetAccountLimitsResponse added in v0.1.7

func (response GetAccountLimits503JSONResponse) VisitGetAccountLimitsResponse(w http.ResponseWriter) error

type GetAccountLimitsRequestObject added in v0.1.7

type GetAccountLimitsRequestObject struct {
}

type GetAccountLimitsResponseObject added in v0.1.7

type GetAccountLimitsResponseObject interface {
	VisitGetAccountLimitsResponse(w http.ResponseWriter) error
}

type GetAnalyticsOverview200JSONResponse added in v0.1.7

type GetAnalyticsOverview200JSONResponse AnalyticsOverview

func (GetAnalyticsOverview200JSONResponse) VisitGetAnalyticsOverviewResponse added in v0.1.7

func (response GetAnalyticsOverview200JSONResponse) VisitGetAnalyticsOverviewResponse(w http.ResponseWriter) error

type GetAnalyticsOverview401JSONResponse added in v0.1.7

type GetAnalyticsOverview401JSONResponse ErrorResponse

func (GetAnalyticsOverview401JSONResponse) VisitGetAnalyticsOverviewResponse added in v0.1.7

func (response GetAnalyticsOverview401JSONResponse) VisitGetAnalyticsOverviewResponse(w http.ResponseWriter) error

type GetAnalyticsOverview422JSONResponse added in v0.1.7

type GetAnalyticsOverview422JSONResponse ErrorResponse

func (GetAnalyticsOverview422JSONResponse) VisitGetAnalyticsOverviewResponse added in v0.1.7

func (response GetAnalyticsOverview422JSONResponse) VisitGetAnalyticsOverviewResponse(w http.ResponseWriter) error

type GetAnalyticsOverview503JSONResponse added in v0.1.7

type GetAnalyticsOverview503JSONResponse ErrorResponse

func (GetAnalyticsOverview503JSONResponse) VisitGetAnalyticsOverviewResponse added in v0.1.7

func (response GetAnalyticsOverview503JSONResponse) VisitGetAnalyticsOverviewResponse(w http.ResponseWriter) error

type GetAnalyticsOverviewParams added in v0.1.7

type GetAnalyticsOverviewParams struct {
	// Window Server-relative sliding window. Defaults to 24h; cannot be combined with from/to.
	Window *GetAnalyticsOverviewParamsWindow `form:"window,omitempty" json:"window,omitempty"`

	// From Inclusive RFC 3339 timestamp with offset; requires to.
	From *time.Time `form:"from,omitempty" json:"from,omitempty"`

	// To Exclusive RFC 3339 timestamp with offset; requires from and cannot be later than as_of. Range at most 31 days.
	To *time.Time `form:"to,omitempty" json:"to,omitempty"`

	// Bucket Local calendar hour or day; at most 800 buckets.
	Bucket *GetAnalyticsOverviewParamsBucket `form:"bucket,omitempty" json:"bucket,omitempty"`

	// Timezone IANA timezone for bucket boundaries; timestamps in the response are UTC.
	Timezone *string `form:"timezone,omitempty" json:"timezone,omitempty"`

	// Namespace Exact namespace match; omission includes every namespace and null.
	Namespace *string `form:"namespace,omitempty" json:"namespace,omitempty"`
}

GetAnalyticsOverviewParams defines parameters for GetAnalyticsOverview.

type GetAnalyticsOverviewParamsBucket added in v0.1.7

type GetAnalyticsOverviewParamsBucket string

GetAnalyticsOverviewParamsBucket defines parameters for GetAnalyticsOverview.

const (
	GetAnalyticsOverviewParamsBucketDay  GetAnalyticsOverviewParamsBucket = "day"
	GetAnalyticsOverviewParamsBucketHour GetAnalyticsOverviewParamsBucket = "hour"
)

Defines values for GetAnalyticsOverviewParamsBucket.

func (GetAnalyticsOverviewParamsBucket) Valid added in v0.1.7

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

type GetAnalyticsOverviewParamsWindow added in v0.1.7

type GetAnalyticsOverviewParamsWindow string

GetAnalyticsOverviewParamsWindow defines parameters for GetAnalyticsOverview.

Defines values for GetAnalyticsOverviewParamsWindow.

func (GetAnalyticsOverviewParamsWindow) Valid added in v0.1.7

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

type GetAnalyticsOverviewRequestObject added in v0.1.7

type GetAnalyticsOverviewRequestObject struct {
	Params GetAnalyticsOverviewParams
}

type GetAnalyticsOverviewResponseObject added in v0.1.7

type GetAnalyticsOverviewResponseObject interface {
	VisitGetAnalyticsOverviewResponse(w http.ResponseWriter) error
}

type GetEvents200JSONResponse

type GetEvents200JSONResponse EventPage

func (GetEvents200JSONResponse) VisitGetEventsResponse

func (response GetEvents200JSONResponse) VisitGetEventsResponse(w http.ResponseWriter) error

type GetEvents400JSONResponse

type GetEvents400JSONResponse ErrorResponse

func (GetEvents400JSONResponse) VisitGetEventsResponse

func (response GetEvents400JSONResponse) VisitGetEventsResponse(w http.ResponseWriter) error

type GetEvents401JSONResponse

type GetEvents401JSONResponse ErrorResponse

func (GetEvents401JSONResponse) VisitGetEventsResponse

func (response GetEvents401JSONResponse) VisitGetEventsResponse(w http.ResponseWriter) error

type GetEvents404JSONResponse

type GetEvents404JSONResponse ErrorResponse

func (GetEvents404JSONResponse) VisitGetEventsResponse

func (response GetEvents404JSONResponse) VisitGetEventsResponse(w http.ResponseWriter) error

type GetEvents409JSONResponse

type GetEvents409JSONResponse ErrorResponse

func (GetEvents409JSONResponse) VisitGetEventsResponse

func (response GetEvents409JSONResponse) VisitGetEventsResponse(w http.ResponseWriter) error

type GetEvents413JSONResponse

type GetEvents413JSONResponse ErrorResponse

func (GetEvents413JSONResponse) VisitGetEventsResponse

func (response GetEvents413JSONResponse) VisitGetEventsResponse(w http.ResponseWriter) error

type GetEvents415JSONResponse

type GetEvents415JSONResponse ErrorResponse

func (GetEvents415JSONResponse) VisitGetEventsResponse

func (response GetEvents415JSONResponse) VisitGetEventsResponse(w http.ResponseWriter) error

type GetEvents422JSONResponse

type GetEvents422JSONResponse ErrorResponse

func (GetEvents422JSONResponse) VisitGetEventsResponse

func (response GetEvents422JSONResponse) VisitGetEventsResponse(w http.ResponseWriter) error

type GetEvents503JSONResponse

type GetEvents503JSONResponse ErrorResponse

func (GetEvents503JSONResponse) VisitGetEventsResponse

func (response GetEvents503JSONResponse) VisitGetEventsResponse(w http.ResponseWriter) error

type GetEventsParams

type GetEventsParams struct {
	After *string `form:"after,omitempty" json:"after,omitempty"`
	Limit *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

GetEventsParams defines parameters for GetEvents.

type GetEventsRequestObject

type GetEventsRequestObject struct {
	Sid    openapi_types.UUID `json:"sid"`
	Params GetEventsParams
}

type GetEventsResponseObject

type GetEventsResponseObject interface {
	VisitGetEventsResponse(w http.ResponseWriter) error
}

type GetHistory200JSONResponse

type GetHistory200JSONResponse HistoryPage

func (GetHistory200JSONResponse) VisitGetHistoryResponse

func (response GetHistory200JSONResponse) VisitGetHistoryResponse(w http.ResponseWriter) error

type GetHistory400JSONResponse

type GetHistory400JSONResponse ErrorResponse

func (GetHistory400JSONResponse) VisitGetHistoryResponse

func (response GetHistory400JSONResponse) VisitGetHistoryResponse(w http.ResponseWriter) error

type GetHistory401JSONResponse

type GetHistory401JSONResponse ErrorResponse

func (GetHistory401JSONResponse) VisitGetHistoryResponse

func (response GetHistory401JSONResponse) VisitGetHistoryResponse(w http.ResponseWriter) error

type GetHistory404JSONResponse

type GetHistory404JSONResponse ErrorResponse

func (GetHistory404JSONResponse) VisitGetHistoryResponse

func (response GetHistory404JSONResponse) VisitGetHistoryResponse(w http.ResponseWriter) error

type GetHistory409JSONResponse

type GetHistory409JSONResponse ErrorResponse

func (GetHistory409JSONResponse) VisitGetHistoryResponse

func (response GetHistory409JSONResponse) VisitGetHistoryResponse(w http.ResponseWriter) error

type GetHistory413JSONResponse

type GetHistory413JSONResponse ErrorResponse

func (GetHistory413JSONResponse) VisitGetHistoryResponse

func (response GetHistory413JSONResponse) VisitGetHistoryResponse(w http.ResponseWriter) error

type GetHistory415JSONResponse

type GetHistory415JSONResponse ErrorResponse

func (GetHistory415JSONResponse) VisitGetHistoryResponse

func (response GetHistory415JSONResponse) VisitGetHistoryResponse(w http.ResponseWriter) error

type GetHistory422JSONResponse

type GetHistory422JSONResponse ErrorResponse

func (GetHistory422JSONResponse) VisitGetHistoryResponse

func (response GetHistory422JSONResponse) VisitGetHistoryResponse(w http.ResponseWriter) error

type GetHistory503JSONResponse

type GetHistory503JSONResponse ErrorResponse

func (GetHistory503JSONResponse) VisitGetHistoryResponse

func (response GetHistory503JSONResponse) VisitGetHistoryResponse(w http.ResponseWriter) error

type GetHistoryParams

type GetHistoryParams struct {
	MessageExternalKey *string             `form:"message_external_key,omitempty" json:"message_external_key,omitempty"`
	Limit              *int                `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor             *string             `form:"cursor,omitempty" json:"cursor,omitempty"`
	RunID              *openapi_types.UUID `form:"run_id,omitempty" json:"run_id,omitempty"`
}

GetHistoryParams defines parameters for GetHistory.

type GetHistoryRequestObject

type GetHistoryRequestObject struct {
	Sid    openapi_types.UUID `json:"sid"`
	Params GetHistoryParams
}

type GetHistoryResponseObject

type GetHistoryResponseObject interface {
	VisitGetHistoryResponse(w http.ResponseWriter) error
}

type GetRun200JSONResponse

type GetRun200JSONResponse Run

func (GetRun200JSONResponse) VisitGetRunResponse

func (response GetRun200JSONResponse) VisitGetRunResponse(w http.ResponseWriter) error

type GetRun400JSONResponse

type GetRun400JSONResponse ErrorResponse

func (GetRun400JSONResponse) VisitGetRunResponse

func (response GetRun400JSONResponse) VisitGetRunResponse(w http.ResponseWriter) error

type GetRun401JSONResponse

type GetRun401JSONResponse ErrorResponse

func (GetRun401JSONResponse) VisitGetRunResponse

func (response GetRun401JSONResponse) VisitGetRunResponse(w http.ResponseWriter) error

type GetRun404JSONResponse

type GetRun404JSONResponse ErrorResponse

func (GetRun404JSONResponse) VisitGetRunResponse

func (response GetRun404JSONResponse) VisitGetRunResponse(w http.ResponseWriter) error

type GetRun409JSONResponse

type GetRun409JSONResponse ErrorResponse

func (GetRun409JSONResponse) VisitGetRunResponse

func (response GetRun409JSONResponse) VisitGetRunResponse(w http.ResponseWriter) error

type GetRun413JSONResponse

type GetRun413JSONResponse ErrorResponse

func (GetRun413JSONResponse) VisitGetRunResponse

func (response GetRun413JSONResponse) VisitGetRunResponse(w http.ResponseWriter) error

type GetRun415JSONResponse

type GetRun415JSONResponse ErrorResponse

func (GetRun415JSONResponse) VisitGetRunResponse

func (response GetRun415JSONResponse) VisitGetRunResponse(w http.ResponseWriter) error

type GetRun422JSONResponse

type GetRun422JSONResponse ErrorResponse

func (GetRun422JSONResponse) VisitGetRunResponse

func (response GetRun422JSONResponse) VisitGetRunResponse(w http.ResponseWriter) error

type GetRun503JSONResponse

type GetRun503JSONResponse ErrorResponse

func (GetRun503JSONResponse) VisitGetRunResponse

func (response GetRun503JSONResponse) VisitGetRunResponse(w http.ResponseWriter) error

type GetRunRequestObject

type GetRunRequestObject struct {
	Sid openapi_types.UUID `json:"sid"`
	Rid openapi_types.UUID `json:"rid"`
}

type GetRunResponseObject

type GetRunResponseObject interface {
	VisitGetRunResponse(w http.ResponseWriter) error
}

type GetSession200JSONResponse

type GetSession200JSONResponse Session

func (GetSession200JSONResponse) VisitGetSessionResponse

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

type GetSession400JSONResponse

type GetSession400JSONResponse ErrorResponse

func (GetSession400JSONResponse) VisitGetSessionResponse

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

type GetSession401JSONResponse

type GetSession401JSONResponse ErrorResponse

func (GetSession401JSONResponse) VisitGetSessionResponse

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

type GetSession404JSONResponse

type GetSession404JSONResponse ErrorResponse

func (GetSession404JSONResponse) VisitGetSessionResponse

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

type GetSession409JSONResponse

type GetSession409JSONResponse ErrorResponse

func (GetSession409JSONResponse) VisitGetSessionResponse

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

type GetSession413JSONResponse

type GetSession413JSONResponse ErrorResponse

func (GetSession413JSONResponse) VisitGetSessionResponse

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

type GetSession415JSONResponse

type GetSession415JSONResponse ErrorResponse

func (GetSession415JSONResponse) VisitGetSessionResponse

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

type GetSession422JSONResponse

type GetSession422JSONResponse ErrorResponse

func (GetSession422JSONResponse) VisitGetSessionResponse

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

type GetSession503JSONResponse

type GetSession503JSONResponse ErrorResponse

func (GetSession503JSONResponse) VisitGetSessionResponse

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

type GetSessionRequestObject

type GetSessionRequestObject struct {
	Sid openapi_types.UUID `json:"sid"`
}

type GetSessionResponseObject

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

type Health200JSONResponse

type Health200JSONResponse HealthResponse

func (Health200JSONResponse) VisitHealthResponse

func (response Health200JSONResponse) VisitHealthResponse(w http.ResponseWriter) error

type HealthRequestObject

type HealthRequestObject struct {
}

type HealthResponse

type HealthResponse struct {
	Status HealthResponseStatus `json:"status"`
}

HealthResponse defines model for HealthResponse.

type HealthResponseObject

type HealthResponseObject interface {
	VisitHealthResponse(w http.ResponseWriter) error
}

type HealthResponseStatus

type HealthResponseStatus string

HealthResponseStatus defines model for HealthResponse.Status.

const (
	Ok HealthResponseStatus = "ok"
)

Defines values for HealthResponseStatus.

func (HealthResponseStatus) Valid

func (e HealthResponseStatus) Valid() bool

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

type HistoryPage

type HistoryPage struct {
	EventCursor string                   `json:"event_cursor"`
	Items       []HistoryPage_Items_Item `json:"items"`
	NextCursor  *string                  `json:"next_cursor"`
}

HistoryPage defines model for HistoryPage.

type HistoryPage_Items_Item

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

HistoryPage_Items_Item defines model for HistoryPage.items.Item.

func (HistoryPage_Items_Item) AsMessageItem

func (t HistoryPage_Items_Item) AsMessageItem() (MessageItem, error)

AsMessageItem returns the union data inside the HistoryPage_Items_Item as a MessageItem

func (HistoryPage_Items_Item) AsToolItem

func (t HistoryPage_Items_Item) AsToolItem() (ToolItem, error)

AsToolItem returns the union data inside the HistoryPage_Items_Item as a ToolItem

func (HistoryPage_Items_Item) Discriminator

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

func (*HistoryPage_Items_Item) FromMessageItem

func (t *HistoryPage_Items_Item) FromMessageItem(v MessageItem) error

FromMessageItem overwrites any union data inside the HistoryPage_Items_Item as the provided MessageItem

func (*HistoryPage_Items_Item) FromToolItem

func (t *HistoryPage_Items_Item) FromToolItem(v ToolItem) error

FromToolItem overwrites any union data inside the HistoryPage_Items_Item as the provided ToolItem

func (HistoryPage_Items_Item) MarshalJSON

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

func (*HistoryPage_Items_Item) MergeMessageItem

func (t *HistoryPage_Items_Item) MergeMessageItem(v MessageItem) error

MergeMessageItem performs a merge with any union data inside the HistoryPage_Items_Item, using the provided MessageItem

func (*HistoryPage_Items_Item) MergeToolItem

func (t *HistoryPage_Items_Item) MergeToolItem(v ToolItem) error

MergeToolItem performs a merge with any union data inside the HistoryPage_Items_Item, using the provided ToolItem

func (*HistoryPage_Items_Item) UnmarshalJSON

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

func (HistoryPage_Items_Item) ValueByDiscriminator

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

type HookResult

type HookResult struct {
	DeadlineAt         *time.Time                   `json:"deadline_at"`
	Error              *Error                       `json:"error"`
	ExitCode           *int                         `json:"exit_code"`
	FinishedAt         *time.Time                   `json:"finished_at"`
	ID                 openapi_types.UUID           `json:"id"`
	Name               HookResultName               `json:"name"`
	Output             *HookResult_Output           `json:"output"`
	OutputCompleteness HookResultOutputCompleteness `json:"output_completeness"`
	Signal             *int                         `json:"signal"`
	StartedAt          *time.Time                   `json:"started_at"`
	Status             HookResultStatus             `json:"status"`
	TruncationReason   *HookResultTruncationReason  `json:"truncation_reason"`
}

HookResult defines model for HookResult.

type HookResultName

type HookResultName string

HookResultName defines model for HookResult.Name.

const (
	HookResultNameAfterCreate  HookResultName = "after_create"
	HookResultNameAfterRun     HookResultName = "after_run"
	HookResultNameBeforeRemove HookResultName = "before_remove"
	HookResultNameBeforeRun    HookResultName = "before_run"
)

Defines values for HookResultName.

func (HookResultName) Valid

func (e HookResultName) Valid() bool

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

type HookResultOutputCompleteness

type HookResultOutputCompleteness string

HookResultOutputCompleteness defines model for HookResult.OutputCompleteness.

const (
	HookResultOutputCompletenessComplete    HookResultOutputCompleteness = "complete"
	HookResultOutputCompletenessTruncated   HookResultOutputCompleteness = "truncated"
	HookResultOutputCompletenessUnavailable HookResultOutputCompleteness = "unavailable"
	HookResultOutputCompletenessUnknown     HookResultOutputCompleteness = "unknown"
)

Defines values for HookResultOutputCompleteness.

func (HookResultOutputCompleteness) Valid

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

type HookResultStatus

type HookResultStatus string

HookResultStatus defines model for HookResult.Status.

const (
	HookResultStatusCancelled HookResultStatus = "cancelled"
	HookResultStatusCompleted HookResultStatus = "completed"
	HookResultStatusFailed    HookResultStatus = "failed"
	HookResultStatusPending   HookResultStatus = "pending"
	HookResultStatusRunning   HookResultStatus = "running"
	HookResultStatusSkipped   HookResultStatus = "skipped"
)

Defines values for HookResultStatus.

func (HookResultStatus) Valid

func (e HookResultStatus) Valid() bool

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

type HookResultTruncationReason

type HookResultTruncationReason string

HookResultTruncationReason defines model for HookResult.TruncationReason.

const (
	HookResultTruncationReasonOrpheusLimit HookResultTruncationReason = "orpheus_limit"
)

Defines values for HookResultTruncationReason.

func (HookResultTruncationReason) Valid

func (e HookResultTruncationReason) Valid() bool

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

type HookResult_Output

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

HookResult_Output defines model for HookResult.Output.

func (HookResult_Output) AsTextResult

func (t HookResult_Output) AsTextResult() (TextResult, error)

AsTextResult returns the union data inside the HookResult_Output as a TextResult

func (HookResult_Output) AsTruncatedResult

func (t HookResult_Output) AsTruncatedResult() (TruncatedResult, error)

AsTruncatedResult returns the union data inside the HookResult_Output as a TruncatedResult

func (*HookResult_Output) FromTextResult

func (t *HookResult_Output) FromTextResult(v TextResult) error

FromTextResult overwrites any union data inside the HookResult_Output as the provided TextResult

func (*HookResult_Output) FromTruncatedResult

func (t *HookResult_Output) FromTruncatedResult(v TruncatedResult) error

FromTruncatedResult overwrites any union data inside the HookResult_Output as the provided TruncatedResult

func (HookResult_Output) MarshalJSON

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

func (*HookResult_Output) MergeTextResult

func (t *HookResult_Output) MergeTextResult(v TextResult) error

MergeTextResult performs a merge with any union data inside the HookResult_Output, using the provided TextResult

func (*HookResult_Output) MergeTruncatedResult

func (t *HookResult_Output) MergeTruncatedResult(v TruncatedResult) error

MergeTruncatedResult performs a merge with any union data inside the HookResult_Output, using the provided TruncatedResult

func (*HookResult_Output) UnmarshalJSON

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

type HooksConfiguration

type HooksConfiguration struct {
	AfterCreate    *string `json:"after_create,omitempty"`
	AfterRun       *string `json:"after_run,omitempty"`
	BeforeRemove   *string `json:"before_remove,omitempty"`
	BeforeRun      *string `json:"before_run,omitempty"`
	TimeoutSeconds int     `json:"timeout_seconds"`
}

HooksConfiguration defines model for HooksConfiguration.

type HooksInput

type HooksInput struct {
	// AfterCreate Executable script text with a shebang; runs once after workspace creation.
	AfterCreate *string `json:"after_create,omitempty"`

	// AfterRun Executable script text with a shebang; runs after confirmed agent completion, before pause.
	AfterRun *string `json:"after_run,omitempty"`

	// BeforeRemove Accepted for future explicit sandbox removal; never called by this API version.
	BeforeRemove *string `json:"before_remove,omitempty"`

	// BeforeRun Executable script text with a shebang; runs before every assignment.
	BeforeRun *string `json:"before_run,omitempty"`

	// TimeoutSeconds Timeout for each hook invocation.
	TimeoutSeconds *int `json:"timeout_seconds,omitempty"`
}

HooksInput defines model for HooksInput.

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type JSONResult

type JSONResult struct {
	OriginalBytes *int            `json:"original_bytes"`
	Type          JSONResultType  `json:"type"`
	Value         json.RawMessage `json:"value"`
}

JSONResult defines model for JSONResult.

type JSONResultType

type JSONResultType string

JSONResultType defines model for JSONResult.Type.

const (
	JSONResultTypeJSON JSONResultType = "json"
)

Defines values for JSONResultType.

func (JSONResultType) Valid

func (e JSONResultType) Valid() bool

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

type Limits

type Limits struct {
	// MaxSessionTokens Session-wide input and output token budget. Omission uses DEFAULT_MAX_SESSION_TOKENS (100000000 by default); explicit null is invalid.
	MaxSessionTokens int64 `json:"max_session_tokens"`

	// RunTimeoutSeconds Agent execution deadline, independent of the periodically renewed sandbox timeout. AgentBox plan limits on uninterrupted sandbox lifetime still apply.
	RunTimeoutSeconds int `json:"run_timeout_seconds"`
}

Limits defines model for Limits.

type LimitsInput

type LimitsInput struct {
	// MaxSessionTokens Session-wide input and output token budget. Omission uses DEFAULT_MAX_SESSION_TOKENS (100000000 by default); explicit null is invalid.
	MaxSessionTokens *int64 `json:"max_session_tokens,omitempty"`

	// RunTimeoutSeconds Agent execution deadline, independent of the periodically renewed sandbox timeout. AgentBox plan limits on uninterrupted sandbox lifetime still apply.
	RunTimeoutSeconds *int `json:"run_timeout_seconds,omitempty"`
}

LimitsInput defines model for LimitsInput.

type ListAllRuns200JSONResponse

type ListAllRuns200JSONResponse RunPage

func (ListAllRuns200JSONResponse) VisitListAllRunsResponse

func (response ListAllRuns200JSONResponse) VisitListAllRunsResponse(w http.ResponseWriter) error

type ListAllRuns400JSONResponse

type ListAllRuns400JSONResponse ErrorResponse

func (ListAllRuns400JSONResponse) VisitListAllRunsResponse

func (response ListAllRuns400JSONResponse) VisitListAllRunsResponse(w http.ResponseWriter) error

type ListAllRuns401JSONResponse

type ListAllRuns401JSONResponse ErrorResponse

func (ListAllRuns401JSONResponse) VisitListAllRunsResponse

func (response ListAllRuns401JSONResponse) VisitListAllRunsResponse(w http.ResponseWriter) error

type ListAllRuns404JSONResponse

type ListAllRuns404JSONResponse ErrorResponse

func (ListAllRuns404JSONResponse) VisitListAllRunsResponse

func (response ListAllRuns404JSONResponse) VisitListAllRunsResponse(w http.ResponseWriter) error

type ListAllRuns409JSONResponse

type ListAllRuns409JSONResponse ErrorResponse

func (ListAllRuns409JSONResponse) VisitListAllRunsResponse

func (response ListAllRuns409JSONResponse) VisitListAllRunsResponse(w http.ResponseWriter) error

type ListAllRuns413JSONResponse

type ListAllRuns413JSONResponse ErrorResponse

func (ListAllRuns413JSONResponse) VisitListAllRunsResponse

func (response ListAllRuns413JSONResponse) VisitListAllRunsResponse(w http.ResponseWriter) error

type ListAllRuns415JSONResponse

type ListAllRuns415JSONResponse ErrorResponse

func (ListAllRuns415JSONResponse) VisitListAllRunsResponse

func (response ListAllRuns415JSONResponse) VisitListAllRunsResponse(w http.ResponseWriter) error

type ListAllRuns422JSONResponse

type ListAllRuns422JSONResponse ErrorResponse

func (ListAllRuns422JSONResponse) VisitListAllRunsResponse

func (response ListAllRuns422JSONResponse) VisitListAllRunsResponse(w http.ResponseWriter) error

type ListAllRuns503JSONResponse

type ListAllRuns503JSONResponse ErrorResponse

func (ListAllRuns503JSONResponse) VisitListAllRunsResponse

func (response ListAllRuns503JSONResponse) VisitListAllRunsResponse(w http.ResponseWriter) error

type ListAllRunsParams

type ListAllRunsParams struct {
	Namespace        *string                 `form:"namespace,omitempty" json:"namespace,omitempty"`
	ExternalKey      *string                 `form:"external_key,omitempty" json:"external_key,omitempty"`
	InputFingerprint *string                 `form:"input_fingerprint,omitempty" json:"input_fingerprint,omitempty"`
	Status           *RunStatus              `form:"status,omitempty" json:"status,omitempty"`
	Order            *ListAllRunsParamsOrder `form:"order,omitempty" json:"order,omitempty"`
	Limit            *int                    `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor           *string                 `form:"cursor,omitempty" json:"cursor,omitempty"`
}

ListAllRunsParams defines parameters for ListAllRuns.

type ListAllRunsParamsOrder

type ListAllRunsParamsOrder string

ListAllRunsParamsOrder defines parameters for ListAllRuns.

const (
	ListAllRunsParamsOrderAsc  ListAllRunsParamsOrder = "asc"
	ListAllRunsParamsOrderDesc ListAllRunsParamsOrder = "desc"
)

Defines values for ListAllRunsParamsOrder.

func (ListAllRunsParamsOrder) Valid

func (e ListAllRunsParamsOrder) Valid() bool

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

type ListAllRunsRequestObject

type ListAllRunsRequestObject struct {
	Params ListAllRunsParams
}

type ListAllRunsResponseObject

type ListAllRunsResponseObject interface {
	VisitListAllRunsResponse(w http.ResponseWriter) error
}

type ListRuns200JSONResponse

type ListRuns200JSONResponse RunPage

func (ListRuns200JSONResponse) VisitListRunsResponse

func (response ListRuns200JSONResponse) VisitListRunsResponse(w http.ResponseWriter) error

type ListRuns400JSONResponse

type ListRuns400JSONResponse ErrorResponse

func (ListRuns400JSONResponse) VisitListRunsResponse

func (response ListRuns400JSONResponse) VisitListRunsResponse(w http.ResponseWriter) error

type ListRuns401JSONResponse

type ListRuns401JSONResponse ErrorResponse

func (ListRuns401JSONResponse) VisitListRunsResponse

func (response ListRuns401JSONResponse) VisitListRunsResponse(w http.ResponseWriter) error

type ListRuns404JSONResponse

type ListRuns404JSONResponse ErrorResponse

func (ListRuns404JSONResponse) VisitListRunsResponse

func (response ListRuns404JSONResponse) VisitListRunsResponse(w http.ResponseWriter) error

type ListRuns409JSONResponse

type ListRuns409JSONResponse ErrorResponse

func (ListRuns409JSONResponse) VisitListRunsResponse

func (response ListRuns409JSONResponse) VisitListRunsResponse(w http.ResponseWriter) error

type ListRuns413JSONResponse

type ListRuns413JSONResponse ErrorResponse

func (ListRuns413JSONResponse) VisitListRunsResponse

func (response ListRuns413JSONResponse) VisitListRunsResponse(w http.ResponseWriter) error

type ListRuns415JSONResponse

type ListRuns415JSONResponse ErrorResponse

func (ListRuns415JSONResponse) VisitListRunsResponse

func (response ListRuns415JSONResponse) VisitListRunsResponse(w http.ResponseWriter) error

type ListRuns422JSONResponse

type ListRuns422JSONResponse ErrorResponse

func (ListRuns422JSONResponse) VisitListRunsResponse

func (response ListRuns422JSONResponse) VisitListRunsResponse(w http.ResponseWriter) error

type ListRuns503JSONResponse

type ListRuns503JSONResponse ErrorResponse

func (ListRuns503JSONResponse) VisitListRunsResponse

func (response ListRuns503JSONResponse) VisitListRunsResponse(w http.ResponseWriter) error

type ListRunsParams

type ListRunsParams struct {
	InputFingerprint *string              `form:"input_fingerprint,omitempty" json:"input_fingerprint,omitempty"`
	Status           *RunStatus           `form:"status,omitempty" json:"status,omitempty"`
	Order            *ListRunsParamsOrder `form:"order,omitempty" json:"order,omitempty"`
	Limit            *int                 `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor           *string              `form:"cursor,omitempty" json:"cursor,omitempty"`
}

ListRunsParams defines parameters for ListRuns.

type ListRunsParamsOrder

type ListRunsParamsOrder string

ListRunsParamsOrder defines parameters for ListRuns.

const (
	ListRunsParamsOrderAsc  ListRunsParamsOrder = "asc"
	ListRunsParamsOrderDesc ListRunsParamsOrder = "desc"
)

Defines values for ListRunsParamsOrder.

func (ListRunsParamsOrder) Valid

func (e ListRunsParamsOrder) Valid() bool

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

type ListRunsRequestObject

type ListRunsRequestObject struct {
	Sid    openapi_types.UUID `json:"sid"`
	Params ListRunsParams
}

type ListRunsResponseObject

type ListRunsResponseObject interface {
	VisitListRunsResponse(w http.ResponseWriter) error
}

type ListSessions200JSONResponse

type ListSessions200JSONResponse SessionPage

func (ListSessions200JSONResponse) VisitListSessionsResponse

func (response ListSessions200JSONResponse) VisitListSessionsResponse(w http.ResponseWriter) error

type ListSessions400JSONResponse

type ListSessions400JSONResponse ErrorResponse

func (ListSessions400JSONResponse) VisitListSessionsResponse

func (response ListSessions400JSONResponse) VisitListSessionsResponse(w http.ResponseWriter) error

type ListSessions401JSONResponse

type ListSessions401JSONResponse ErrorResponse

func (ListSessions401JSONResponse) VisitListSessionsResponse

func (response ListSessions401JSONResponse) VisitListSessionsResponse(w http.ResponseWriter) error

type ListSessions404JSONResponse

type ListSessions404JSONResponse ErrorResponse

func (ListSessions404JSONResponse) VisitListSessionsResponse

func (response ListSessions404JSONResponse) VisitListSessionsResponse(w http.ResponseWriter) error

type ListSessions409JSONResponse

type ListSessions409JSONResponse ErrorResponse

func (ListSessions409JSONResponse) VisitListSessionsResponse

func (response ListSessions409JSONResponse) VisitListSessionsResponse(w http.ResponseWriter) error

type ListSessions413JSONResponse

type ListSessions413JSONResponse ErrorResponse

func (ListSessions413JSONResponse) VisitListSessionsResponse

func (response ListSessions413JSONResponse) VisitListSessionsResponse(w http.ResponseWriter) error

type ListSessions415JSONResponse

type ListSessions415JSONResponse ErrorResponse

func (ListSessions415JSONResponse) VisitListSessionsResponse

func (response ListSessions415JSONResponse) VisitListSessionsResponse(w http.ResponseWriter) error

type ListSessions422JSONResponse

type ListSessions422JSONResponse ErrorResponse

func (ListSessions422JSONResponse) VisitListSessionsResponse

func (response ListSessions422JSONResponse) VisitListSessionsResponse(w http.ResponseWriter) error

type ListSessions503JSONResponse

type ListSessions503JSONResponse ErrorResponse

func (ListSessions503JSONResponse) VisitListSessionsResponse

func (response ListSessions503JSONResponse) VisitListSessionsResponse(w http.ResponseWriter) error

type ListSessionsParams

type ListSessionsParams struct {
	// Activity Whether the latest run is unfinished; combined with status using AND.
	Activity *ListSessionsParamsActivity `form:"activity,omitempty" json:"activity,omitempty"`

	// Sort Timestamp used for order and cursor position.
	Sort *ListSessionsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// LastRunCreatedFrom Inclusive lower bound for the latest run creation time; requires last_run_created_to.
	LastRunCreatedFrom *time.Time `form:"last_run_created_from,omitempty" json:"last_run_created_from,omitempty"`

	// LastRunCreatedTo Exclusive upper bound for the latest run creation time; requires last_run_created_from. Range at most 31 days.
	LastRunCreatedTo *time.Time               `form:"last_run_created_to,omitempty" json:"last_run_created_to,omitempty"`
	Namespace        *string                  `form:"namespace,omitempty" json:"namespace,omitempty"`
	ExternalKey      *string                  `form:"external_key,omitempty" json:"external_key,omitempty"`
	Status           *RunStatus               `form:"status,omitempty" json:"status,omitempty"`
	Order            *ListSessionsParamsOrder `form:"order,omitempty" json:"order,omitempty"`
	Limit            *int                     `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor           *string                  `form:"cursor,omitempty" json:"cursor,omitempty"`
}

ListSessionsParams defines parameters for ListSessions.

type ListSessionsParamsActivity added in v0.1.7

type ListSessionsParamsActivity string

ListSessionsParamsActivity defines parameters for ListSessions.

const (
	Active   ListSessionsParamsActivity = "active"
	All      ListSessionsParamsActivity = "all"
	Inactive ListSessionsParamsActivity = "inactive"
)

Defines values for ListSessionsParamsActivity.

func (ListSessionsParamsActivity) Valid added in v0.1.7

func (e ListSessionsParamsActivity) Valid() bool

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

type ListSessionsParamsOrder

type ListSessionsParamsOrder string

ListSessionsParamsOrder defines parameters for ListSessions.

const (
	ListSessionsParamsOrderAsc  ListSessionsParamsOrder = "asc"
	ListSessionsParamsOrderDesc ListSessionsParamsOrder = "desc"
)

Defines values for ListSessionsParamsOrder.

func (ListSessionsParamsOrder) Valid

func (e ListSessionsParamsOrder) Valid() bool

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

type ListSessionsParamsSort added in v0.1.7

type ListSessionsParamsSort string

ListSessionsParamsSort defines parameters for ListSessions.

const (
	CreatedAt        ListSessionsParamsSort = "created_at"
	LastRunCreatedAt ListSessionsParamsSort = "last_run_created_at"
)

Defines values for ListSessionsParamsSort.

func (ListSessionsParamsSort) Valid added in v0.1.7

func (e ListSessionsParamsSort) Valid() bool

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

type ListSessionsRequestObject

type ListSessionsRequestObject struct {
	Params ListSessionsParams
}

type ListSessionsResponseObject

type ListSessionsResponseObject interface {
	VisitListSessionsResponse(w http.ResponseWriter) error
}

type Message

type Message struct {
	CreatedAt      time.Time              `json:"created_at"`
	DeliveryStatus *MessageDeliveryStatus `json:"delivery_status"`
	Error          *Error                 `json:"error"`

	// ExternalKey External key supplied for an incoming message; null for agent messages. Opaque identifier, 1–512 UTF-8 bytes; no NUL or whitespace-only value. Compared exactly, without normalization.
	ExternalKey *string            `json:"external_key"`
	ID          openapi_types.UUID `json:"id"`
	Kind        *MessageKind       `json:"kind"`

	// Metadata Opaque integration data for an incoming message; never sent to the agent. Null for messages without metadata and agent messages.
	Metadata           *json.RawMessage   `json:"metadata"`
	Position           *Position          `json:"position"`
	RegisteredSequence string             `json:"registered_sequence"`
	Role               MessageRole        `json:"role"`
	RunID              openapi_types.UUID `json:"run_id"`
	SessionID          openapi_types.UUID `json:"session_id"`
	Text               string             `json:"text"`
}

Message defines model for Message.

type MessageDeliveryStatus

type MessageDeliveryStatus string

MessageDeliveryStatus defines model for Message.DeliveryStatus.

const (
	MessageDeliveryStatusDelivered MessageDeliveryStatus = "delivered"
	MessageDeliveryStatusPending   MessageDeliveryStatus = "pending"
	MessageDeliveryStatusRejected  MessageDeliveryStatus = "rejected"
	MessageDeliveryStatusSending   MessageDeliveryStatus = "sending"
	MessageDeliveryStatusUncertain MessageDeliveryStatus = "uncertain"
)

Defines values for MessageDeliveryStatus.

func (MessageDeliveryStatus) Valid

func (e MessageDeliveryStatus) Valid() bool

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

type MessageEvent

type MessageEvent struct {
	CreatedAt time.Time          `json:"created_at"`
	Data      Message            `json:"data"`
	ID        string             `json:"id"`
	SessionID openapi_types.UUID `json:"session_id"`
	Type      MessageEventType   `json:"type"`
}

MessageEvent defines model for MessageEvent.

type MessageEventType

type MessageEventType string

MessageEventType defines model for MessageEvent.Type.

const (
	MessageUpdated MessageEventType = "message.updated"
)

Defines values for MessageEventType.

func (MessageEventType) Valid

func (e MessageEventType) Valid() bool

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

type MessageItem

type MessageItem struct {
	Message Message         `json:"message"`
	Type    MessageItemType `json:"type"`
}

MessageItem defines model for MessageItem.

type MessageItemType

type MessageItemType string

MessageItemType defines model for MessageItem.Type.

const (
	MessageItemTypeMessage MessageItemType = "message"
)

Defines values for MessageItemType.

func (MessageItemType) Valid

func (e MessageItemType) Valid() bool

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

type MessageKind

type MessageKind string

MessageKind defines model for Message.Kind.

const (
	Answer   MessageKind = "answer"
	Progress MessageKind = "progress"
)

Defines values for MessageKind.

func (MessageKind) Valid

func (e MessageKind) Valid() bool

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

type MessageRole

type MessageRole string

MessageRole defines model for Message.Role.

const (
	Assistant MessageRole = "assistant"
	User      MessageRole = "user"
)

Defines values for MessageRole.

func (MessageRole) Valid

func (e MessageRole) Valid() bool

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

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type Position

type Position struct {
	ItemIndex int `json:"item_index"`
	RunNumber int `json:"run_number"`
}

Position defines model for Position.

type Ready200JSONResponse

type Ready200JSONResponse HealthResponse

func (Ready200JSONResponse) VisitReadyResponse

func (response Ready200JSONResponse) VisitReadyResponse(w http.ResponseWriter) error

type Ready503JSONResponse

type Ready503JSONResponse UnavailableResponse

func (Ready503JSONResponse) VisitReadyResponse

func (response Ready503JSONResponse) VisitReadyResponse(w http.ResponseWriter) error

type ReadyRequestObject

type ReadyRequestObject struct {
}

type ReadyResponseObject

type ReadyResponseObject interface {
	VisitReadyResponse(w http.ResponseWriter) error
}

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type Run

type Run struct {
	AgentError        *Error          `json:"agent_error"`
	AgentStatus       *RunAgentStatus `json:"agent_status"`
	CancelRequestedAt *time.Time      `json:"cancel_requested_at"`
	CreatedAt         time.Time       `json:"created_at"`
	DeadlineAt        *time.Time      `json:"deadline_at"`

	// EnvFrom Sorted orchestrator environment variable names supplied for this run.
	EnvFrom []string `json:"env_from"`

	// EnvNames Sorted names of explicit variables supplied for this run; values are never returned.
	EnvNames           []string           `json:"env_names"`
	Error              *Error             `json:"error"`
	ExecutionStartedAt *time.Time         `json:"execution_started_at"`
	FinalMessage       *Message           `json:"final_message"`
	FinishedAt         *time.Time         `json:"finished_at"`
	Hooks              []HookResult       `json:"hooks"`
	ID                 openapi_types.UUID `json:"id"`

	// InputFingerprint Input snapshot version supplied when the run was accepted. Opaque identifier, 1–256 UTF-8 bytes; no NUL or whitespace-only value. Compared exactly, without normalization.
	InputFingerprint *string            `json:"input_fingerprint"`
	Number           int                `json:"number"`
	Observation      *RunObservation    `json:"observation"`
	Phase            *RunPhase          `json:"phase"`
	SessionID        openapi_types.UUID `json:"session_id"`
	Status           RunStatus          `json:"status"`

	// StopMethod How cancellation stopped agent execution. Null until confirmed, or if the run was cancelled before the first dispatch attempt, including user-requested cancellation.
	StopMethod *RunStopMethod `json:"stop_method"`
	StopReason *RunStopReason `json:"stop_reason"`

	// Usage Last reported token consumption; missed reports are not reconstructed from history. Cached input and reasoning output are already included.
	Usage Usage `json:"usage"`
}

Run defines model for Run.

type RunAgentStatus

type RunAgentStatus string

RunAgentStatus defines model for Run.AgentStatus.

const (
	RunAgentStatusCancelled RunAgentStatus = "cancelled"
	RunAgentStatusCompleted RunAgentStatus = "completed"
	RunAgentStatusFailed    RunAgentStatus = "failed"
)

Defines values for RunAgentStatus.

func (RunAgentStatus) Valid

func (e RunAgentStatus) Valid() bool

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

type RunEvent

type RunEvent struct {
	CreatedAt time.Time          `json:"created_at"`
	Data      Run                `json:"data"`
	ID        string             `json:"id"`
	SessionID openapi_types.UUID `json:"session_id"`
	Type      RunEventType       `json:"type"`
}

RunEvent defines model for RunEvent.

type RunEventType

type RunEventType string

RunEventType defines model for RunEvent.Type.

const (
	RunUpdated RunEventType = "run.updated"
)

Defines values for RunEventType.

func (RunEventType) Valid

func (e RunEventType) Valid() bool

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

type RunObservation

type RunObservation string

RunObservation defines model for Run.Observation.

const (
	RunObservationAttached     RunObservation = "attached"
	RunObservationReconnecting RunObservation = "reconnecting"
	RunObservationUncertain    RunObservation = "uncertain"
)

Defines values for RunObservation.

func (RunObservation) Valid

func (e RunObservation) Valid() bool

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

type RunPage

type RunPage struct {
	Items      []Run   `json:"items"`
	NextCursor *string `json:"next_cursor"`
}

RunPage defines model for RunPage.

type RunPhase

type RunPhase string

RunPhase defines model for Run.Phase.

const (
	RunPhaseAfterCreate RunPhase = "after_create"
	RunPhaseAfterRun    RunPhase = "after_run"
	RunPhaseAgent       RunPhase = "agent"
	RunPhaseBeforeRun   RunPhase = "before_run"
	RunPhasePreparation RunPhase = "preparation"
)

Defines values for RunPhase.

func (RunPhase) Valid

func (e RunPhase) Valid() bool

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

type RunStatus

type RunStatus string

RunStatus defines model for RunStatus.

const (
	RunStatusAccepted   RunStatus = "accepted"
	RunStatusCancelled  RunStatus = "cancelled"
	RunStatusCancelling RunStatus = "cancelling"
	RunStatusCompleted  RunStatus = "completed"
	RunStatusFailed     RunStatus = "failed"
	RunStatusFinalizing RunStatus = "finalizing"
	RunStatusRunning    RunStatus = "running"
	RunStatusStarting   RunStatus = "starting"
)

Defines values for RunStatus.

func (RunStatus) Valid

func (e RunStatus) Valid() bool

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

type RunStopMethod

type RunStopMethod string

RunStopMethod defines model for Run.StopMethod.

const (
	Forced   RunStopMethod = "forced"
	Graceful RunStopMethod = "graceful"
)

Defines values for RunStopMethod.

func (RunStopMethod) Valid

func (e RunStopMethod) Valid() bool

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

type RunStopReason

type RunStopReason string

RunStopReason defines model for Run.StopReason.

const (
	RunTimeout  RunStopReason = "run_timeout"
	TokenLimit  RunStopReason = "token_limit"
	UserRequest RunStopReason = "user_request"
)

Defines values for RunStopReason.

func (RunStopReason) Valid

func (e RunStopReason) Valid() bool

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

type SamlMetadata200ApplicationSamlmetadataXMLResponse added in v0.1.7

type SamlMetadata200ApplicationSamlmetadataXMLResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (SamlMetadata200ApplicationSamlmetadataXMLResponse) VisitSamlMetadataResponse added in v0.1.7

func (response SamlMetadata200ApplicationSamlmetadataXMLResponse) VisitSamlMetadataResponse(w http.ResponseWriter) error

type SamlMetadataRequestObject added in v0.1.7

type SamlMetadataRequestObject struct {
}

type SamlMetadataResponseObject added in v0.1.7

type SamlMetadataResponseObject interface {
	VisitSamlMetadataResponse(w http.ResponseWriter) error
}

type SamlMetadatadefaultJSONResponse added in v0.1.7

type SamlMetadatadefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (SamlMetadatadefaultJSONResponse) VisitSamlMetadataResponse added in v0.1.7

func (response SamlMetadatadefaultJSONResponse) VisitSamlMetadataResponse(w http.ResponseWriter) error

type SandboxConfiguration

type SandboxConfiguration struct {
	EnvFrom  []string `json:"env_from"`
	EnvNames []string `json:"env_names"`
	Template string   `json:"template"`
}

SandboxConfiguration defines model for SandboxConfiguration.

type SandboxEvent

type SandboxEvent struct {
	CreatedAt time.Time          `json:"created_at"`
	Data      SandboxState       `json:"data"`
	ID        string             `json:"id"`
	SessionID openapi_types.UUID `json:"session_id"`
	Type      SandboxEventType   `json:"type"`
}

SandboxEvent defines model for SandboxEvent.

type SandboxEventType

type SandboxEventType string

SandboxEventType defines model for SandboxEvent.Type.

const (
	SandboxUpdated SandboxEventType = "sandbox.updated"
)

Defines values for SandboxEventType.

func (SandboxEventType) Valid

func (e SandboxEventType) Valid() bool

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

type SandboxInput

type SandboxInput struct {
	Env      *map[string]string `json:"env,omitempty"`
	EnvFrom  *[]string          `json:"env_from,omitempty"`
	Template string             `json:"template"`
}

SandboxInput defines model for SandboxInput.

type SandboxState

type SandboxState struct {
	Error *Error `json:"error"`

	// ID AgentBox sandbox ID, if known. A retained ID does not guarantee that an unavailable sandbox is accessible.
	ID             *string           `json:"id"`
	LastKnownState *string           `json:"last_known_state"`
	State          SandboxStateState `json:"state"`

	// Workspace Absolute workspace path resolved during sandbox preparation, if known.
	Workspace *string `json:"workspace"`
}

SandboxState defines model for SandboxState.

type SandboxStateState

type SandboxStateState string

SandboxStateState defines model for SandboxState.State.

const (
	SandboxStateStateNotCreated   SandboxStateState = "not_created"
	SandboxStateStatePaused       SandboxStateState = "paused"
	SandboxStateStatePausing      SandboxStateState = "pausing"
	SandboxStateStateProvisioning SandboxStateState = "provisioning"
	SandboxStateStateReady        SandboxStateState = "ready"
	SandboxStateStateResuming     SandboxStateState = "resuming"
	SandboxStateStateUnavailable  SandboxStateState = "unavailable"
)

Defines values for SandboxStateState.

func (SandboxStateState) Valid

func (e SandboxStateState) Valid() bool

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

type SendMessage

type SendMessage struct {
	// Messages Ordered user messages accepted atomically for the active run.
	Messages []TextMessage `json:"messages"`
}

SendMessage defines model for SendMessage.

type SendMessage202JSONResponse

type SendMessage202JSONResponse struct {
	Body    Accepted
	Headers SendMessage202ResponseHeaders
}

func (SendMessage202JSONResponse) VisitSendMessageResponse

func (response SendMessage202JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error

type SendMessage202ResponseHeaders

type SendMessage202ResponseHeaders struct {
	Location string
}

type SendMessage400JSONResponse

type SendMessage400JSONResponse ErrorResponse

func (SendMessage400JSONResponse) VisitSendMessageResponse

func (response SendMessage400JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error

type SendMessage401JSONResponse

type SendMessage401JSONResponse ErrorResponse

func (SendMessage401JSONResponse) VisitSendMessageResponse

func (response SendMessage401JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error

type SendMessage403JSONResponse added in v0.1.7

type SendMessage403JSONResponse ErrorResponse

func (SendMessage403JSONResponse) VisitSendMessageResponse added in v0.1.7

func (response SendMessage403JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error

type SendMessage404JSONResponse

type SendMessage404JSONResponse ErrorResponse

func (SendMessage404JSONResponse) VisitSendMessageResponse

func (response SendMessage404JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error

type SendMessage409JSONResponse

type SendMessage409JSONResponse ErrorResponse

func (SendMessage409JSONResponse) VisitSendMessageResponse

func (response SendMessage409JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error

type SendMessage413JSONResponse

type SendMessage413JSONResponse ErrorResponse

func (SendMessage413JSONResponse) VisitSendMessageResponse

func (response SendMessage413JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error

type SendMessage415JSONResponse

type SendMessage415JSONResponse ErrorResponse

func (SendMessage415JSONResponse) VisitSendMessageResponse

func (response SendMessage415JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error

type SendMessage422JSONResponse

type SendMessage422JSONResponse ErrorResponse

func (SendMessage422JSONResponse) VisitSendMessageResponse

func (response SendMessage422JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error

type SendMessage503JSONResponse

type SendMessage503JSONResponse ErrorResponse

func (SendMessage503JSONResponse) VisitSendMessageResponse

func (response SendMessage503JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error

type SendMessageJSONRequestBody

type SendMessageJSONRequestBody = SendMessage

SendMessageJSONRequestBody defines body for SendMessage for application/json ContentType.

type SendMessageParams

type SendMessageParams struct {
	IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}

SendMessageParams defines parameters for SendMessage.

type SendMessageRequestObject

type SendMessageRequestObject struct {
	Sid    openapi_types.UUID `json:"sid"`
	Rid    openapi_types.UUID `json:"rid"`
	Params SendMessageParams
	Body   *SendMessageJSONRequestBody
}

type SendMessageResponseObject

type SendMessageResponseObject interface {
	VisitSendMessageResponse(w http.ResponseWriter) error
}

type ServeMux

type ServeMux interface {
	HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
	http.Handler
}

ServeMux is an abstraction of http.ServeMux.

type ServerInterface

type ServerInterface interface {
	// GetAccountLimits Current provider limits by configured account
	// (GET /api/v1/accounts/limits)
	GetAccountLimits(w http.ResponseWriter, r *http.Request)
	// GetAnalyticsOverview Dashboard analytics snapshot
	// (GET /api/v1/analytics/overview)
	GetAnalyticsOverview(w http.ResponseWriter, r *http.Request, params GetAnalyticsOverviewParams)
	// AuthSession Read browser authentication state
	// (GET /api/v1/auth/session)
	AuthSession(w http.ResponseWriter, r *http.Request)
	// ListAllRuns List All Runs
	// (GET /api/v1/runs)
	ListAllRuns(w http.ResponseWriter, r *http.Request, params ListAllRunsParams)
	// ListSessions List Sessions
	// (GET /api/v1/sessions)
	ListSessions(w http.ResponseWriter, r *http.Request, params ListSessionsParams)
	// CreateSession Create Session
	// (POST /api/v1/sessions)
	CreateSession(w http.ResponseWriter, r *http.Request, params CreateSessionParams)
	// GetSession Read Session
	// (GET /api/v1/sessions/{sid})
	GetSession(w http.ResponseWriter, r *http.Request, sid openapi_types.UUID)
	// GetEvents Events
	// (GET /api/v1/sessions/{sid}/events)
	GetEvents(w http.ResponseWriter, r *http.Request, sid openapi_types.UUID, params GetEventsParams)
	// StreamEvents Stream Events
	// (GET /api/v1/sessions/{sid}/events/stream)
	StreamEvents(w http.ResponseWriter, r *http.Request, sid openapi_types.UUID, params StreamEventsParams)
	// GetHistory History
	// (GET /api/v1/sessions/{sid}/history)
	GetHistory(w http.ResponseWriter, r *http.Request, sid openapi_types.UUID, params GetHistoryParams)
	// ListRuns List Runs
	// (GET /api/v1/sessions/{sid}/runs)
	ListRuns(w http.ResponseWriter, r *http.Request, sid openapi_types.UUID, params ListRunsParams)
	// CreateRun Create Run
	// (POST /api/v1/sessions/{sid}/runs)
	CreateRun(w http.ResponseWriter, r *http.Request, sid openapi_types.UUID, params CreateRunParams)
	// GetRun Read Run
	// (GET /api/v1/sessions/{sid}/runs/{rid})
	GetRun(w http.ResponseWriter, r *http.Request, sid openapi_types.UUID, rid openapi_types.UUID)
	// CancelRun Cancel Run
	// (POST /api/v1/sessions/{sid}/runs/{rid}/cancel)
	CancelRun(w http.ResponseWriter, r *http.Request, sid openapi_types.UUID, rid openapi_types.UUID)
	// SendMessage Send Message
	// (POST /api/v1/sessions/{sid}/runs/{rid}/messages)
	SendMessage(w http.ResponseWriter, r *http.Request, sid openapi_types.UUID, rid openapi_types.UUID, params SendMessageParams)
	// BrowserCallback Consume a signed SAML HTTP-POST response
	// (POST /auth/callback)
	BrowserCallback(w http.ResponseWriter, r *http.Request)
	// BrowserLogin Start SP-initiated SAML login
	// (GET /auth/login)
	BrowserLogin(w http.ResponseWriter, r *http.Request, params BrowserLoginParams)
	// BrowserLogout Revoke the local browser session
	// (POST /auth/logout)
	BrowserLogout(w http.ResponseWriter, r *http.Request)
	// Health Health
	// (GET /health)
	Health(w http.ResponseWriter, r *http.Request)
	// Ready Ready
	// (GET /ready)
	Ready(w http.ResponseWriter, r *http.Request)
	// SamlMetadata Read service provider metadata
	// (GET /saml/metadata)
	SamlMetadata(w http.ResponseWriter, r *http.Request)
}

ServerInterface represents all server handlers.

func NewStrictHandler

func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface

func NewStrictHandlerWithOptions

func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) AuthSession added in v0.1.7

func (siw *ServerInterfaceWrapper) AuthSession(w http.ResponseWriter, r *http.Request)

AuthSession operation middleware

func (*ServerInterfaceWrapper) BrowserCallback added in v0.1.7

func (siw *ServerInterfaceWrapper) BrowserCallback(w http.ResponseWriter, r *http.Request)

BrowserCallback operation middleware

func (*ServerInterfaceWrapper) BrowserLogin added in v0.1.7

func (siw *ServerInterfaceWrapper) BrowserLogin(w http.ResponseWriter, r *http.Request)

BrowserLogin operation middleware

func (*ServerInterfaceWrapper) BrowserLogout added in v0.1.7

func (siw *ServerInterfaceWrapper) BrowserLogout(w http.ResponseWriter, r *http.Request)

BrowserLogout operation middleware

func (*ServerInterfaceWrapper) CancelRun

func (siw *ServerInterfaceWrapper) CancelRun(w http.ResponseWriter, r *http.Request)

CancelRun operation middleware

func (*ServerInterfaceWrapper) CreateRun

func (siw *ServerInterfaceWrapper) CreateRun(w http.ResponseWriter, r *http.Request)

CreateRun operation middleware

func (*ServerInterfaceWrapper) CreateSession

func (siw *ServerInterfaceWrapper) CreateSession(w http.ResponseWriter, r *http.Request)

CreateSession operation middleware

func (*ServerInterfaceWrapper) GetAccountLimits added in v0.1.7

func (siw *ServerInterfaceWrapper) GetAccountLimits(w http.ResponseWriter, r *http.Request)

GetAccountLimits operation middleware

func (*ServerInterfaceWrapper) GetAnalyticsOverview added in v0.1.7

func (siw *ServerInterfaceWrapper) GetAnalyticsOverview(w http.ResponseWriter, r *http.Request)

GetAnalyticsOverview operation middleware

func (*ServerInterfaceWrapper) GetEvents

func (siw *ServerInterfaceWrapper) GetEvents(w http.ResponseWriter, r *http.Request)

GetEvents operation middleware

func (*ServerInterfaceWrapper) GetHistory

func (siw *ServerInterfaceWrapper) GetHistory(w http.ResponseWriter, r *http.Request)

GetHistory operation middleware

func (*ServerInterfaceWrapper) GetRun

GetRun operation middleware

func (*ServerInterfaceWrapper) GetSession

func (siw *ServerInterfaceWrapper) GetSession(w http.ResponseWriter, r *http.Request)

GetSession operation middleware

func (*ServerInterfaceWrapper) Health

Health operation middleware

func (*ServerInterfaceWrapper) ListAllRuns

func (siw *ServerInterfaceWrapper) ListAllRuns(w http.ResponseWriter, r *http.Request)

ListAllRuns operation middleware

func (*ServerInterfaceWrapper) ListRuns

func (siw *ServerInterfaceWrapper) ListRuns(w http.ResponseWriter, r *http.Request)

ListRuns operation middleware

func (*ServerInterfaceWrapper) ListSessions

func (siw *ServerInterfaceWrapper) ListSessions(w http.ResponseWriter, r *http.Request)

ListSessions operation middleware

func (*ServerInterfaceWrapper) Ready

Ready operation middleware

func (*ServerInterfaceWrapper) SamlMetadata added in v0.1.7

func (siw *ServerInterfaceWrapper) SamlMetadata(w http.ResponseWriter, r *http.Request)

SamlMetadata operation middleware

func (*ServerInterfaceWrapper) SendMessage

func (siw *ServerInterfaceWrapper) SendMessage(w http.ResponseWriter, r *http.Request)

SendMessage operation middleware

func (*ServerInterfaceWrapper) StreamEvents

func (siw *ServerInterfaceWrapper) StreamEvents(w http.ResponseWriter, r *http.Request)

StreamEvents operation middleware

type Session

type Session struct {
	ActiveRunID   *openapi_types.UUID `json:"active_run_id"`
	Configuration Configuration       `json:"configuration"`
	CreatedAt     time.Time           `json:"created_at"`
	Error         *Error              `json:"error"`

	// ExternalKey Source-qualified external object key; not unique across sessions. Opaque identifier, 1–512 UTF-8 bytes; no NUL or whitespace-only value. Compared exactly, without normalization.
	ExternalKey  *string            `json:"external_key"`
	FinalMessage *Message           `json:"final_message"`
	ID           openapi_types.UUID `json:"id"`

	// LastRunCreatedAt Creation time of the latest run, not the last activity time.
	LastRunCreatedAt time.Time          `json:"last_run_created_at"`
	LastRunID        openapi_types.UUID `json:"last_run_id"`

	// Namespace Logical integration or workflow name. Opaque identifier, 1–128 UTF-8 bytes; no NUL or whitespace-only value. Compared exactly, without normalization.
	Namespace *string       `json:"namespace"`
	Phase     *SessionPhase `json:"phase"`
	Sandbox   SandboxState  `json:"sandbox"`
	Status    RunStatus     `json:"status"`

	// Usage Last reported token consumption; missed reports are not reconstructed from history. Cached input and reasoning output are already included.
	Usage Usage `json:"usage"`
}

Session defines model for Session.

type SessionPage

type SessionPage struct {
	Items      []Session `json:"items"`
	NextCursor *string   `json:"next_cursor"`
}

SessionPage defines model for SessionPage.

type SessionPhase

type SessionPhase string

SessionPhase defines model for Session.Phase.

const (
	SessionPhaseAfterCreate SessionPhase = "after_create"
	SessionPhaseAfterRun    SessionPhase = "after_run"
	SessionPhaseAgent       SessionPhase = "agent"
	SessionPhaseBeforeRun   SessionPhase = "before_run"
	SessionPhasePreparation SessionPhase = "preparation"
)

Defines values for SessionPhase.

func (SessionPhase) Valid

func (e SessionPhase) Valid() bool

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

type StatusCounts added in v0.1.7

type StatusCounts struct {
	Accepted   int64 `json:"accepted"`
	Cancelled  int64 `json:"cancelled"`
	Cancelling int64 `json:"cancelling"`
	Completed  int64 `json:"completed"`
	Failed     int64 `json:"failed"`
	Finalizing int64 `json:"finalizing"`
	Running    int64 `json:"running"`
	Starting   int64 `json:"starting"`
}

StatusCounts defines model for StatusCounts.

type StdHTTPServerOptions

type StdHTTPServerOptions struct {
	BaseURL          string
	BaseRouter       ServeMux
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StreamEvents200TextEventStreamResponse

type StreamEvents200TextEventStreamResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (StreamEvents200TextEventStreamResponse) VisitStreamEventsResponse

func (response StreamEvents200TextEventStreamResponse) VisitStreamEventsResponse(w http.ResponseWriter) error

type StreamEvents400JSONResponse

type StreamEvents400JSONResponse ErrorResponse

func (StreamEvents400JSONResponse) VisitStreamEventsResponse

func (response StreamEvents400JSONResponse) VisitStreamEventsResponse(w http.ResponseWriter) error

type StreamEvents401JSONResponse

type StreamEvents401JSONResponse ErrorResponse

func (StreamEvents401JSONResponse) VisitStreamEventsResponse

func (response StreamEvents401JSONResponse) VisitStreamEventsResponse(w http.ResponseWriter) error

type StreamEvents404JSONResponse

type StreamEvents404JSONResponse ErrorResponse

func (StreamEvents404JSONResponse) VisitStreamEventsResponse

func (response StreamEvents404JSONResponse) VisitStreamEventsResponse(w http.ResponseWriter) error

type StreamEvents409JSONResponse

type StreamEvents409JSONResponse ErrorResponse

func (StreamEvents409JSONResponse) VisitStreamEventsResponse

func (response StreamEvents409JSONResponse) VisitStreamEventsResponse(w http.ResponseWriter) error

type StreamEvents413JSONResponse

type StreamEvents413JSONResponse ErrorResponse

func (StreamEvents413JSONResponse) VisitStreamEventsResponse

func (response StreamEvents413JSONResponse) VisitStreamEventsResponse(w http.ResponseWriter) error

type StreamEvents415JSONResponse

type StreamEvents415JSONResponse ErrorResponse

func (StreamEvents415JSONResponse) VisitStreamEventsResponse

func (response StreamEvents415JSONResponse) VisitStreamEventsResponse(w http.ResponseWriter) error

type StreamEvents422JSONResponse

type StreamEvents422JSONResponse ErrorResponse

func (StreamEvents422JSONResponse) VisitStreamEventsResponse

func (response StreamEvents422JSONResponse) VisitStreamEventsResponse(w http.ResponseWriter) error

type StreamEvents503JSONResponse

type StreamEvents503JSONResponse ErrorResponse

func (StreamEvents503JSONResponse) VisitStreamEventsResponse

func (response StreamEvents503JSONResponse) VisitStreamEventsResponse(w http.ResponseWriter) error

type StreamEventsParams

type StreamEventsParams struct {
	After       *string `form:"after,omitempty" json:"after,omitempty"`
	LastEventID *string `json:"last-event-id,omitempty"`
}

StreamEventsParams defines parameters for StreamEvents.

type StreamEventsRequestObject

type StreamEventsRequestObject struct {
	Sid    openapi_types.UUID `json:"sid"`
	Params StreamEventsParams
}

type StreamEventsResponseObject

type StreamEventsResponseObject interface {
	VisitStreamEventsResponse(w http.ResponseWriter) error
}

type StrictHTTPServerOptions

type StrictHTTPServerOptions struct {
	RequestErrorHandlerFunc  func(w http.ResponseWriter, r *http.Request, err error)
	ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StrictHandlerFunc

type StrictHandlerFunc func(ctx context.Context, w http.ResponseWriter, r *http.Request, request any) (any, error)

type StrictMiddlewareFunc

type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc

type StrictServerInterface

type StrictServerInterface interface {
	// GetAccountLimits Current provider limits by configured account
	// (GET /api/v1/accounts/limits)
	GetAccountLimits(ctx context.Context, request GetAccountLimitsRequestObject) (GetAccountLimitsResponseObject, error)
	// GetAnalyticsOverview Dashboard analytics snapshot
	// (GET /api/v1/analytics/overview)
	GetAnalyticsOverview(ctx context.Context, request GetAnalyticsOverviewRequestObject) (GetAnalyticsOverviewResponseObject, error)
	// AuthSession Read browser authentication state
	// (GET /api/v1/auth/session)
	AuthSession(ctx context.Context, request AuthSessionRequestObject) (AuthSessionResponseObject, error)
	// ListAllRuns List All Runs
	// (GET /api/v1/runs)
	ListAllRuns(ctx context.Context, request ListAllRunsRequestObject) (ListAllRunsResponseObject, error)
	// ListSessions List Sessions
	// (GET /api/v1/sessions)
	ListSessions(ctx context.Context, request ListSessionsRequestObject) (ListSessionsResponseObject, error)
	// CreateSession Create Session
	// (POST /api/v1/sessions)
	CreateSession(ctx context.Context, request CreateSessionRequestObject) (CreateSessionResponseObject, error)
	// GetSession Read Session
	// (GET /api/v1/sessions/{sid})
	GetSession(ctx context.Context, request GetSessionRequestObject) (GetSessionResponseObject, error)
	// GetEvents Events
	// (GET /api/v1/sessions/{sid}/events)
	GetEvents(ctx context.Context, request GetEventsRequestObject) (GetEventsResponseObject, error)
	// StreamEvents Stream Events
	// (GET /api/v1/sessions/{sid}/events/stream)
	StreamEvents(ctx context.Context, request StreamEventsRequestObject) (StreamEventsResponseObject, error)
	// GetHistory History
	// (GET /api/v1/sessions/{sid}/history)
	GetHistory(ctx context.Context, request GetHistoryRequestObject) (GetHistoryResponseObject, error)
	// ListRuns List Runs
	// (GET /api/v1/sessions/{sid}/runs)
	ListRuns(ctx context.Context, request ListRunsRequestObject) (ListRunsResponseObject, error)
	// CreateRun Create Run
	// (POST /api/v1/sessions/{sid}/runs)
	CreateRun(ctx context.Context, request CreateRunRequestObject) (CreateRunResponseObject, error)
	// GetRun Read Run
	// (GET /api/v1/sessions/{sid}/runs/{rid})
	GetRun(ctx context.Context, request GetRunRequestObject) (GetRunResponseObject, error)
	// CancelRun Cancel Run
	// (POST /api/v1/sessions/{sid}/runs/{rid}/cancel)
	CancelRun(ctx context.Context, request CancelRunRequestObject) (CancelRunResponseObject, error)
	// SendMessage Send Message
	// (POST /api/v1/sessions/{sid}/runs/{rid}/messages)
	SendMessage(ctx context.Context, request SendMessageRequestObject) (SendMessageResponseObject, error)
	// BrowserCallback Consume a signed SAML HTTP-POST response
	// (POST /auth/callback)
	BrowserCallback(ctx context.Context, request BrowserCallbackRequestObject) (BrowserCallbackResponseObject, error)
	// BrowserLogin Start SP-initiated SAML login
	// (GET /auth/login)
	BrowserLogin(ctx context.Context, request BrowserLoginRequestObject) (BrowserLoginResponseObject, error)
	// BrowserLogout Revoke the local browser session
	// (POST /auth/logout)
	BrowserLogout(ctx context.Context, request BrowserLogoutRequestObject) (BrowserLogoutResponseObject, error)
	// Health Health
	// (GET /health)
	Health(ctx context.Context, request HealthRequestObject) (HealthResponseObject, error)
	// Ready Ready
	// (GET /ready)
	Ready(ctx context.Context, request ReadyRequestObject) (ReadyResponseObject, error)
	// SamlMetadata Read service provider metadata
	// (GET /saml/metadata)
	SamlMetadata(ctx context.Context, request SamlMetadataRequestObject) (SamlMetadataResponseObject, error)
}

StrictServerInterface represents all server handlers.

type TextMessage

type TextMessage struct {
	// ExternalKey External message or event key; not unique and not sent to the harness. Opaque identifier, 1–512 UTF-8 bytes; no NUL or whitespace-only value. Compared exactly, without normalization.
	ExternalKey *string `json:"external_key,omitempty"`

	// Metadata Opaque integration data retained with the message, never sent to the agent. If present, must be a JSON object.
	Metadata *json.RawMessage `json:"metadata,omitempty"`
	Text     string           `json:"text"`
}

TextMessage defines model for TextMessage.

type TextResult

type TextResult struct {
	ExitCode      *int           `json:"exit_code,omitempty"`
	OriginalBytes *int           `json:"original_bytes"`
	Text          string         `json:"text"`
	Type          TextResultType `json:"type"`
}

TextResult defines model for TextResult.

type TextResultType

type TextResultType string

TextResultType defines model for TextResult.Type.

const (
	TextResultTypeText TextResultType = "text"
)

Defines values for TextResultType.

func (TextResultType) Valid

func (e TextResultType) Valid() bool

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

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type ToolCall

type ToolCall struct {
	CreatedAt          time.Time                  `json:"created_at"`
	ID                 openapi_types.UUID         `json:"id"`
	Input              json.RawMessage            `json:"input"`
	Name               string                     `json:"name"`
	OutputCompleteness ToolCallOutputCompleteness `json:"output_completeness"`
	Position           *Position                  `json:"position"`
	RegisteredSequence string                     `json:"registered_sequence"`
	Result             *ToolResult                `json:"result"`
	RunID              openapi_types.UUID         `json:"run_id"`
	SessionID          openapi_types.UUID         `json:"session_id"`
	Status             ToolCallStatus             `json:"status"`
	TruncationReason   *ToolCallTruncationReason  `json:"truncation_reason"`
}

ToolCall defines model for ToolCall.

type ToolCallEvent

type ToolCallEvent struct {
	CreatedAt time.Time          `json:"created_at"`
	Data      ToolCall           `json:"data"`
	ID        string             `json:"id"`
	SessionID openapi_types.UUID `json:"session_id"`
	Type      ToolCallEventType  `json:"type"`
}

ToolCallEvent defines model for ToolCallEvent.

type ToolCallEventType

type ToolCallEventType string

ToolCallEventType defines model for ToolCallEvent.Type.

const (
	ToolCallUpdated ToolCallEventType = "tool_call.updated"
)

Defines values for ToolCallEventType.

func (ToolCallEventType) Valid

func (e ToolCallEventType) Valid() bool

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

type ToolCallOutputCompleteness

type ToolCallOutputCompleteness string

ToolCallOutputCompleteness defines model for ToolCall.OutputCompleteness.

const (
	ToolCallOutputCompletenessComplete    ToolCallOutputCompleteness = "complete"
	ToolCallOutputCompletenessTruncated   ToolCallOutputCompleteness = "truncated"
	ToolCallOutputCompletenessUnavailable ToolCallOutputCompleteness = "unavailable"
	ToolCallOutputCompletenessUnknown     ToolCallOutputCompleteness = "unknown"
)

Defines values for ToolCallOutputCompleteness.

func (ToolCallOutputCompleteness) Valid

func (e ToolCallOutputCompleteness) Valid() bool

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

type ToolCallStatus

type ToolCallStatus string

ToolCallStatus defines model for ToolCall.Status.

const (
	ToolCallStatusCancelled ToolCallStatus = "cancelled"
	ToolCallStatusCompleted ToolCallStatus = "completed"
	ToolCallStatusFailed    ToolCallStatus = "failed"
	ToolCallStatusRunning   ToolCallStatus = "running"
	ToolCallStatusUnknown   ToolCallStatus = "unknown"
)

Defines values for ToolCallStatus.

func (ToolCallStatus) Valid

func (e ToolCallStatus) Valid() bool

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

type ToolCallTruncationReason

type ToolCallTruncationReason string

ToolCallTruncationReason defines model for ToolCall.TruncationReason.

const (
	ToolCallTruncationReasonHarnessLimit ToolCallTruncationReason = "harness_limit"
	ToolCallTruncationReasonOrpheusLimit ToolCallTruncationReason = "orpheus_limit"
)

Defines values for ToolCallTruncationReason.

func (ToolCallTruncationReason) Valid

func (e ToolCallTruncationReason) Valid() bool

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

type ToolItem

type ToolItem struct {
	ToolCall ToolCall     `json:"tool_call"`
	Type     ToolItemType `json:"type"`
}

ToolItem defines model for ToolItem.

type ToolItemType

type ToolItemType string

ToolItemType defines model for ToolItem.Type.

const (
	ToolItemTypeToolCall ToolItemType = "tool_call"
)

Defines values for ToolItemType.

func (ToolItemType) Valid

func (e ToolItemType) Valid() bool

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

type ToolResult

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

ToolResult defines model for ToolResult.

func (ToolResult) AsJSONResult

func (t ToolResult) AsJSONResult() (JSONResult, error)

AsJSONResult returns the union data inside the ToolResult as a JSONResult

func (ToolResult) AsTextResult

func (t ToolResult) AsTextResult() (TextResult, error)

AsTextResult returns the union data inside the ToolResult as a TextResult

func (ToolResult) AsTruncatedResult

func (t ToolResult) AsTruncatedResult() (TruncatedResult, error)

AsTruncatedResult returns the union data inside the ToolResult as a TruncatedResult

func (ToolResult) Discriminator

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

func (*ToolResult) FromJSONResult

func (t *ToolResult) FromJSONResult(v JSONResult) error

FromJSONResult overwrites any union data inside the ToolResult as the provided JSONResult

func (*ToolResult) FromTextResult

func (t *ToolResult) FromTextResult(v TextResult) error

FromTextResult overwrites any union data inside the ToolResult as the provided TextResult

func (*ToolResult) FromTruncatedResult

func (t *ToolResult) FromTruncatedResult(v TruncatedResult) error

FromTruncatedResult overwrites any union data inside the ToolResult as the provided TruncatedResult

func (ToolResult) MarshalJSON

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

func (*ToolResult) MergeJSONResult

func (t *ToolResult) MergeJSONResult(v JSONResult) error

MergeJSONResult performs a merge with any union data inside the ToolResult, using the provided JSONResult

func (*ToolResult) MergeTextResult

func (t *ToolResult) MergeTextResult(v TextResult) error

MergeTextResult performs a merge with any union data inside the ToolResult, using the provided TextResult

func (*ToolResult) MergeTruncatedResult

func (t *ToolResult) MergeTruncatedResult(v TruncatedResult) error

MergeTruncatedResult performs a merge with any union data inside the ToolResult, using the provided TruncatedResult

func (*ToolResult) UnmarshalJSON

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

func (ToolResult) ValueByDiscriminator

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

type TruncatedResult

type TruncatedResult struct {
	ExitCode      *int                       `json:"exit_code,omitempty"`
	Head          string                     `json:"head"`
	OriginalBytes *int                       `json:"original_bytes"`
	SourceType    *TruncatedResultSourceType `json:"source_type,omitempty"`
	Tail          string                     `json:"tail"`
	Type          TruncatedResultType        `json:"type"`
}

TruncatedResult defines model for TruncatedResult.

type TruncatedResultSourceType

type TruncatedResultSourceType string

TruncatedResultSourceType defines model for TruncatedResult.SourceType.

const (
	TruncatedResultSourceTypeJSON TruncatedResultSourceType = "json"
	TruncatedResultSourceTypeText TruncatedResultSourceType = "text"
)

Defines values for TruncatedResultSourceType.

func (TruncatedResultSourceType) Valid

func (e TruncatedResultSourceType) Valid() bool

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

type TruncatedResultType

type TruncatedResultType string

TruncatedResultType defines model for TruncatedResult.Type.

const (
	TruncatedText TruncatedResultType = "truncated_text"
)

Defines values for TruncatedResultType.

func (TruncatedResultType) Valid

func (e TruncatedResultType) Valid() bool

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

type UnavailableResponse

type UnavailableResponse struct {
	Status UnavailableResponseStatus `json:"status"`
}

UnavailableResponse defines model for UnavailableResponse.

type UnavailableResponseStatus

type UnavailableResponseStatus string

UnavailableResponseStatus defines model for UnavailableResponse.Status.

const (
	UnavailableResponseStatusUnavailable UnavailableResponseStatus = "unavailable"
)

Defines values for UnavailableResponseStatus.

func (UnavailableResponseStatus) Valid

func (e UnavailableResponseStatus) Valid() bool

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

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

type Usage

type Usage struct {
	InputTokens  int64 `json:"input_tokens"`
	OutputTokens int64 `json:"output_tokens"`
	TotalTokens  int64 `json:"total_tokens"`
}

Usage Last reported token consumption; missed reports are not reconstructed from history. Cached input and reasoning output are already included.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL