Documentation
¶
Overview ¶
Package client 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.
Package client provides the HTTP client and wire types generated from the Orpheus OpenAPI specification. Its version matches the repository's release tag.
NewClientWithResponses parses JSON responses. A nil error only means that the HTTP exchange and parsing succeeded: callers must also check StatusCode and the appropriate JSON field. Retries, pagination and durable delivery are owned by the integration, not the transport client.
Use the raw StreamEvents method for SSE and close its response body when done. StreamEventsWithResponse buffers the entire response and must not be used for a long-lived stream. Set request deadlines or supply a custom HTTP client; the generated client's default transport has no overall timeout.
Index ¶
- func NewAuthSessionRequest(server string) (*http.Request, error)
- func NewBrowserCallbackRequest(server string) (*http.Request, error)
- func NewBrowserLoginRequest(server string, params *BrowserLoginParams) (*http.Request, error)
- func NewBrowserLogoutRequest(server string) (*http.Request, error)
- func NewCancelRunRequest(server string, sid openapi_types.UUID, rid openapi_types.UUID) (*http.Request, error)
- func NewCreateLlmAccountRequest(server string, body CreateLlmAccountJSONRequestBody) (*http.Request, error)
- func NewCreateLlmAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateProfileRequest(server string, body CreateProfileJSONRequestBody) (*http.Request, error)
- func NewCreateProfileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateRunRequest(server string, sid openapi_types.UUID, params *CreateRunParams, ...) (*http.Request, error)
- func NewCreateRunRequestWithBody(server string, sid openapi_types.UUID, params *CreateRunParams, ...) (*http.Request, error)
- func NewCreateSessionRequest(server string, params *CreateSessionParams, body CreateSessionJSONRequestBody) (*http.Request, error)
- func NewCreateSessionRequestWithBody(server string, params *CreateSessionParams, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateTemplateRequest(server string, body CreateTemplateJSONRequestBody) (*http.Request, error)
- func NewCreateTemplateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteLlmAccountRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewDeleteProfileRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewDeleteTemplateRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetAccountLimitsRequest(server string, params *GetAccountLimitsParams) (*http.Request, error)
- func NewGetAnalyticsOverviewRequest(server string, params *GetAnalyticsOverviewParams) (*http.Request, error)
- func NewGetAuthFileRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetCredentialStoresRequest(server string) (*http.Request, error)
- func NewGetEventsRequest(server string, sid openapi_types.UUID, params *GetEventsParams) (*http.Request, error)
- func NewGetHistoryRequest(server string, sid openapi_types.UUID, params *GetHistoryParams) (*http.Request, error)
- func NewGetLlmAccountRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetLlmAccountsRequest(server string, params *GetLlmAccountsParams) (*http.Request, error)
- func NewGetProfileRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetProfilesRequest(server string, params *GetProfilesParams) (*http.Request, error)
- func NewGetRunRequest(server string, sid openapi_types.UUID, rid openapi_types.UUID) (*http.Request, error)
- func NewGetServicesRequest(server string) (*http.Request, error)
- func NewGetSessionRequest(server string, sid openapi_types.UUID) (*http.Request, error)
- func NewGetTemplateRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetTemplatesRequest(server string, params *GetTemplatesParams) (*http.Request, error)
- func NewListAllRunsRequest(server string, params *ListAllRunsParams) (*http.Request, error)
- func NewListRunsRequest(server string, sid openapi_types.UUID, params *ListRunsParams) (*http.Request, error)
- func NewListSessionsRequest(server string, params *ListSessionsParams) (*http.Request, error)
- func NewReplaceAPIKeyRequest(server string, id openapi_types.UUID, body ReplaceAPIKeyJSONRequestBody) (*http.Request, error)
- func NewReplaceAPIKeyRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewReplaceAuthFileRequest(server string, id openapi_types.UUID, params *ReplaceAuthFileParams, ...) (*http.Request, error)
- func NewReplaceAuthFileRequestWithBody(server string, id openapi_types.UUID, params *ReplaceAuthFileParams, ...) (*http.Request, error)
- func NewSamlMetadataRequest(server string) (*http.Request, error)
- func NewSendMessageRequest(server string, sid openapi_types.UUID, rid openapi_types.UUID, ...) (*http.Request, error)
- func NewSendMessageRequestWithBody(server string, sid openapi_types.UUID, rid openapi_types.UUID, ...) (*http.Request, error)
- func NewStreamEventsRequest(server string, sid openapi_types.UUID, params *StreamEventsParams) (*http.Request, error)
- func NewUpdateLlmAccountRequest(server string, id openapi_types.UUID, body UpdateLlmAccountJSONRequestBody) (*http.Request, error)
- func NewUpdateLlmAccountRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateProfileRequest(server string, id openapi_types.UUID, body UpdateProfileJSONRequestBody) (*http.Request, error)
- func NewUpdateProfileRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateTemplateRequest(server string, id openapi_types.UUID, body UpdateTemplateJSONRequestBody) (*http.Request, error)
- func NewUpdateTemplateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- type Accepted
- type AccountLimitBucket
- type AccountLimitItem
- type AccountLimitItemErrorCode
- type AccountLimitItemState
- type AccountLimitWindow
- type AccountLimits
- type AgentConfiguration
- type AgentInput
- type AggregateUsage
- type AnalyticsBucket
- type AnalyticsNamespace
- type AnalyticsOverview
- type AnalyticsOverviewBucket
- type AuthFile
- type AuthSessionHTTPResponse
- func (r AuthSessionHTTPResponse) ContentType() string
- func (r AuthSessionHTTPResponse) GetBody() []byte
- func (r AuthSessionHTTPResponse) GetJSON200() *BrowserAuthSession
- func (r AuthSessionHTTPResponse) GetJSONDefault() *ErrorResponse
- func (r AuthSessionHTTPResponse) Status() string
- func (r AuthSessionHTTPResponse) StatusCode() int
- type BrowserAuthSession
- type BrowserAuthSessionMode
- type BrowserCallbackHTTPResponse
- type BrowserCallbackHTTPResponse303Headers
- type BrowserLoginHTTPResponse
- type BrowserLoginHTTPResponse302Headers
- type BrowserLoginParams
- type BrowserLogoutHTTPResponse
- type CancelRunHTTPResponse
- func (r CancelRunHTTPResponse) ContentType() string
- func (r CancelRunHTTPResponse) GetBody() []byte
- func (r CancelRunHTTPResponse) GetJSON200() *Cancelled
- func (r CancelRunHTTPResponse) GetJSON202() *Cancelled
- func (r CancelRunHTTPResponse) GetJSON400() *ErrorResponse
- func (r CancelRunHTTPResponse) GetJSON401() *ErrorResponse
- func (r CancelRunHTTPResponse) GetJSON403() *ErrorResponse
- func (r CancelRunHTTPResponse) GetJSON404() *ErrorResponse
- func (r CancelRunHTTPResponse) GetJSON409() *ErrorResponse
- func (r CancelRunHTTPResponse) GetJSON413() *ErrorResponse
- func (r CancelRunHTTPResponse) GetJSON415() *ErrorResponse
- func (r CancelRunHTTPResponse) GetJSON422() *ErrorResponse
- func (r CancelRunHTTPResponse) GetJSON503() *ErrorResponse
- func (r CancelRunHTTPResponse) Status() string
- func (r CancelRunHTTPResponse) StatusCode() int
- type Cancelled
- type Client
- func (c *Client) AuthSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) BrowserCallback(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) BrowserLogin(ctx context.Context, params *BrowserLoginParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) BrowserLogout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CancelRun(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) CreateLlmAccount(ctx context.Context, body CreateLlmAccountJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateLlmAccountWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateProfile(ctx context.Context, body CreateProfileJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateProfileWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateRun(ctx context.Context, sid openapi_types.UUID, params *CreateRunParams, ...) (*http.Response, error)
- func (c *Client) CreateRunWithBody(ctx context.Context, sid openapi_types.UUID, params *CreateRunParams, ...) (*http.Response, error)
- func (c *Client) CreateSession(ctx context.Context, params *CreateSessionParams, ...) (*http.Response, error)
- func (c *Client) CreateSessionWithBody(ctx context.Context, params *CreateSessionParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateTemplate(ctx context.Context, body CreateTemplateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateTemplateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteLlmAccount(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteProfile(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteTemplate(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAccountLimits(ctx context.Context, params *GetAccountLimitsParams, ...) (*http.Response, error)
- func (c *Client) GetAnalyticsOverview(ctx context.Context, params *GetAnalyticsOverviewParams, ...) (*http.Response, error)
- func (c *Client) GetAuthFile(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCredentialStores(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEvents(ctx context.Context, sid openapi_types.UUID, params *GetEventsParams, ...) (*http.Response, error)
- func (c *Client) GetHistory(ctx context.Context, sid openapi_types.UUID, params *GetHistoryParams, ...) (*http.Response, error)
- func (c *Client) GetLlmAccount(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLlmAccounts(ctx context.Context, params *GetLlmAccountsParams, ...) (*http.Response, error)
- func (c *Client) GetProfile(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProfiles(ctx context.Context, params *GetProfilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetRun(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetServices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSession(ctx context.Context, sid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTemplate(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTemplates(ctx context.Context, params *GetTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAllRuns(ctx context.Context, params *ListAllRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListRuns(ctx context.Context, sid openapi_types.UUID, params *ListRunsParams, ...) (*http.Response, error)
- func (c *Client) ListSessions(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ReplaceAPIKey(ctx context.Context, id openapi_types.UUID, body ReplaceAPIKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ReplaceAPIKeyWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ReplaceAuthFile(ctx context.Context, id openapi_types.UUID, params *ReplaceAuthFileParams, ...) (*http.Response, error)
- func (c *Client) ReplaceAuthFileWithBody(ctx context.Context, id openapi_types.UUID, params *ReplaceAuthFileParams, ...) (*http.Response, error)
- func (c *Client) SamlMetadata(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SendMessage(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) SendMessageWithBody(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) StreamEvents(ctx context.Context, sid openapi_types.UUID, params *StreamEventsParams, ...) (*http.Response, error)
- func (c *Client) UpdateLlmAccount(ctx context.Context, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) UpdateLlmAccountWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateProfile(ctx context.Context, id openapi_types.UUID, body UpdateProfileJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateProfileWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateTemplate(ctx context.Context, id openapi_types.UUID, body UpdateTemplateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateTemplateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AuthSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthSessionHTTPResponse, error)
- func (c *ClientWithResponses) BrowserCallbackWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BrowserCallbackHTTPResponse, error)
- func (c *ClientWithResponses) BrowserLoginWithResponse(ctx context.Context, params *BrowserLoginParams, reqEditors ...RequestEditorFn) (*BrowserLoginHTTPResponse, error)
- func (c *ClientWithResponses) BrowserLogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BrowserLogoutHTTPResponse, error)
- func (c *ClientWithResponses) CancelRunWithResponse(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, ...) (*CancelRunHTTPResponse, error)
- func (c *ClientWithResponses) CreateLlmAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateLlmAccountHTTPResponse, error)
- func (c *ClientWithResponses) CreateLlmAccountWithResponse(ctx context.Context, body CreateLlmAccountJSONRequestBody, ...) (*CreateLlmAccountHTTPResponse, error)
- func (c *ClientWithResponses) CreateProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateProfileHTTPResponse, error)
- func (c *ClientWithResponses) CreateProfileWithResponse(ctx context.Context, body CreateProfileJSONRequestBody, ...) (*CreateProfileHTTPResponse, error)
- func (c *ClientWithResponses) CreateRunWithBodyWithResponse(ctx context.Context, sid openapi_types.UUID, params *CreateRunParams, ...) (*CreateRunHTTPResponse, error)
- func (c *ClientWithResponses) CreateRunWithResponse(ctx context.Context, sid openapi_types.UUID, params *CreateRunParams, ...) (*CreateRunHTTPResponse, error)
- func (c *ClientWithResponses) CreateSessionWithBodyWithResponse(ctx context.Context, params *CreateSessionParams, contentType string, ...) (*CreateSessionHTTPResponse, error)
- func (c *ClientWithResponses) CreateSessionWithResponse(ctx context.Context, params *CreateSessionParams, ...) (*CreateSessionHTTPResponse, error)
- func (c *ClientWithResponses) CreateTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateTemplateHTTPResponse, error)
- func (c *ClientWithResponses) CreateTemplateWithResponse(ctx context.Context, body CreateTemplateJSONRequestBody, ...) (*CreateTemplateHTTPResponse, error)
- func (c *ClientWithResponses) DeleteLlmAccountWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteLlmAccountHTTPResponse, error)
- func (c *ClientWithResponses) DeleteProfileWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProfileHTTPResponse, error)
- func (c *ClientWithResponses) DeleteTemplateWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTemplateHTTPResponse, error)
- func (c *ClientWithResponses) GetAccountLimitsWithResponse(ctx context.Context, params *GetAccountLimitsParams, ...) (*GetAccountLimitsHTTPResponse, error)
- func (c *ClientWithResponses) GetAnalyticsOverviewWithResponse(ctx context.Context, params *GetAnalyticsOverviewParams, ...) (*GetAnalyticsOverviewHTTPResponse, error)
- func (c *ClientWithResponses) GetAuthFileWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuthFileHTTPResponse, error)
- func (c *ClientWithResponses) GetCredentialStoresWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCredentialStoresHTTPResponse, error)
- func (c *ClientWithResponses) GetEventsWithResponse(ctx context.Context, sid openapi_types.UUID, params *GetEventsParams, ...) (*GetEventsHTTPResponse, error)
- func (c *ClientWithResponses) GetHistoryWithResponse(ctx context.Context, sid openapi_types.UUID, params *GetHistoryParams, ...) (*GetHistoryHTTPResponse, error)
- func (c *ClientWithResponses) GetLlmAccountWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetLlmAccountHTTPResponse, error)
- func (c *ClientWithResponses) GetLlmAccountsWithResponse(ctx context.Context, params *GetLlmAccountsParams, ...) (*GetLlmAccountsHTTPResponse, error)
- func (c *ClientWithResponses) GetProfileWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProfileHTTPResponse, error)
- func (c *ClientWithResponses) GetProfilesWithResponse(ctx context.Context, params *GetProfilesParams, reqEditors ...RequestEditorFn) (*GetProfilesHTTPResponse, error)
- func (c *ClientWithResponses) GetRunWithResponse(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, ...) (*GetRunHTTPResponse, error)
- func (c *ClientWithResponses) GetServicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServicesHTTPResponse, error)
- func (c *ClientWithResponses) GetSessionWithResponse(ctx context.Context, sid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSessionHTTPResponse, error)
- func (c *ClientWithResponses) GetTemplateWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTemplateHTTPResponse, error)
- func (c *ClientWithResponses) GetTemplatesWithResponse(ctx context.Context, params *GetTemplatesParams, reqEditors ...RequestEditorFn) (*GetTemplatesHTTPResponse, error)
- func (c *ClientWithResponses) ListAllRunsWithResponse(ctx context.Context, params *ListAllRunsParams, reqEditors ...RequestEditorFn) (*ListAllRunsHTTPResponse, error)
- func (c *ClientWithResponses) ListRunsWithResponse(ctx context.Context, sid openapi_types.UUID, params *ListRunsParams, ...) (*ListRunsHTTPResponse, error)
- func (c *ClientWithResponses) ListSessionsWithResponse(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*ListSessionsHTTPResponse, error)
- func (c *ClientWithResponses) ReplaceAPIKeyWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*ReplaceAPIKeyHTTPResponse, error)
- func (c *ClientWithResponses) ReplaceAPIKeyWithResponse(ctx context.Context, id openapi_types.UUID, body ReplaceAPIKeyJSONRequestBody, ...) (*ReplaceAPIKeyHTTPResponse, error)
- func (c *ClientWithResponses) ReplaceAuthFileWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *ReplaceAuthFileParams, ...) (*ReplaceAuthFileHTTPResponse, error)
- func (c *ClientWithResponses) ReplaceAuthFileWithResponse(ctx context.Context, id openapi_types.UUID, params *ReplaceAuthFileParams, ...) (*ReplaceAuthFileHTTPResponse, error)
- func (c *ClientWithResponses) SamlMetadataWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SamlMetadataHTTPResponse, error)
- func (c *ClientWithResponses) SendMessageWithBodyWithResponse(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, ...) (*SendMessageHTTPResponse, error)
- func (c *ClientWithResponses) SendMessageWithResponse(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, ...) (*SendMessageHTTPResponse, error)
- func (c *ClientWithResponses) StreamEventsWithResponse(ctx context.Context, sid openapi_types.UUID, params *StreamEventsParams, ...) (*StreamEventsHTTPResponse, error)
- func (c *ClientWithResponses) UpdateLlmAccountWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*UpdateLlmAccountHTTPResponse, error)
- func (c *ClientWithResponses) UpdateLlmAccountWithResponse(ctx context.Context, id openapi_types.UUID, ...) (*UpdateLlmAccountHTTPResponse, error)
- func (c *ClientWithResponses) UpdateProfileWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*UpdateProfileHTTPResponse, error)
- func (c *ClientWithResponses) UpdateProfileWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateProfileJSONRequestBody, ...) (*UpdateProfileHTTPResponse, error)
- func (c *ClientWithResponses) UpdateTemplateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*UpdateTemplateHTTPResponse, error)
- func (c *ClientWithResponses) UpdateTemplateWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateTemplateJSONRequestBody, ...) (*UpdateTemplateHTTPResponse, error)
- type ClientWithResponsesInterface
- type CodexProfile
- type CodexProfileEffort
- type CodexProfilePersonality
- type CodexProfileSummary
- type Configuration
- type ConfigurationInput
- type CreateLLMAccount
- type CreateLlmAccountHTTPResponse
- func (r CreateLlmAccountHTTPResponse) ContentType() string
- func (r CreateLlmAccountHTTPResponse) GetBody() []byte
- func (r CreateLlmAccountHTTPResponse) GetJSON201() *LLMAccountDetails
- func (r CreateLlmAccountHTTPResponse) GetJSONDefault() *ErrorResponse
- func (r CreateLlmAccountHTTPResponse) Status() string
- func (r CreateLlmAccountHTTPResponse) StatusCode() int
- type CreateLlmAccountJSONRequestBody
- type CreateProfile
- type CreateProfileHTTPResponse
- func (r CreateProfileHTTPResponse) ContentType() string
- func (r CreateProfileHTTPResponse) GetBody() []byte
- func (r CreateProfileHTTPResponse) GetJSON201() *Profile
- func (r CreateProfileHTTPResponse) GetJSONDefault() *ErrorResponse
- func (r CreateProfileHTTPResponse) Status() string
- func (r CreateProfileHTTPResponse) StatusCode() int
- type CreateProfileJSONRequestBody
- type CreateRun
- type CreateRunHTTPResponse
- func (r CreateRunHTTPResponse) ContentType() string
- func (r CreateRunHTTPResponse) GetBody() []byte
- func (r CreateRunHTTPResponse) GetJSON202() *Accepted
- func (r CreateRunHTTPResponse) GetJSON400() *ErrorResponse
- func (r CreateRunHTTPResponse) GetJSON401() *ErrorResponse
- func (r CreateRunHTTPResponse) GetJSON403() *ErrorResponse
- func (r CreateRunHTTPResponse) GetJSON404() *ErrorResponse
- func (r CreateRunHTTPResponse) GetJSON409() *ErrorResponse
- func (r CreateRunHTTPResponse) GetJSON413() *ErrorResponse
- func (r CreateRunHTTPResponse) GetJSON415() *ErrorResponse
- func (r CreateRunHTTPResponse) GetJSON422() *ErrorResponse
- func (r CreateRunHTTPResponse) GetJSON503() *ErrorResponse
- func (r CreateRunHTTPResponse) Status() string
- func (r CreateRunHTTPResponse) StatusCode() int
- type CreateRunHTTPResponse202Headers
- type CreateRunJSONRequestBody
- type CreateRunParams
- type CreateSession
- type CreateSessionHTTPResponse
- func (r CreateSessionHTTPResponse) ContentType() string
- func (r CreateSessionHTTPResponse) GetBody() []byte
- func (r CreateSessionHTTPResponse) GetJSON202() *Accepted
- func (r CreateSessionHTTPResponse) GetJSON400() *ErrorResponse
- func (r CreateSessionHTTPResponse) GetJSON401() *ErrorResponse
- func (r CreateSessionHTTPResponse) GetJSON403() *ErrorResponse
- func (r CreateSessionHTTPResponse) GetJSON404() *ErrorResponse
- func (r CreateSessionHTTPResponse) GetJSON409() *ErrorResponse
- func (r CreateSessionHTTPResponse) GetJSON413() *ErrorResponse
- func (r CreateSessionHTTPResponse) GetJSON415() *ErrorResponse
- func (r CreateSessionHTTPResponse) GetJSON422() *ErrorResponse
- func (r CreateSessionHTTPResponse) GetJSON503() *ErrorResponse
- func (r CreateSessionHTTPResponse) Status() string
- func (r CreateSessionHTTPResponse) StatusCode() int
- type CreateSessionHTTPResponse202Headers
- type CreateSessionJSONRequestBody
- type CreateSessionParams
- type CreateTemplate
- type CreateTemplateHTTPResponse
- func (r CreateTemplateHTTPResponse) ContentType() string
- func (r CreateTemplateHTTPResponse) GetBody() []byte
- func (r CreateTemplateHTTPResponse) GetJSON201() *Template
- func (r CreateTemplateHTTPResponse) GetJSONDefault() *ErrorResponse
- func (r CreateTemplateHTTPResponse) Status() string
- func (r CreateTemplateHTTPResponse) StatusCode() int
- type CreateTemplateJSONRequestBody
- type CredentialStores
- type DeleteLlmAccountHTTPResponse
- type DeleteProfileHTTPResponse
- type DeleteTemplateHTTPResponse
- type Error
- type ErrorDetail
- type ErrorDetailCode
- type ErrorDetailPath0
- type ErrorDetailPath1
- type ErrorDetail_Path_Item
- func (t ErrorDetail_Path_Item) AsErrorDetailPath0() (ErrorDetailPath0, error)
- func (t ErrorDetail_Path_Item) AsErrorDetailPath1() (ErrorDetailPath1, error)
- func (t *ErrorDetail_Path_Item) FromErrorDetailPath0(v ErrorDetailPath0) error
- func (t *ErrorDetail_Path_Item) FromErrorDetailPath1(v ErrorDetailPath1) error
- func (t ErrorDetail_Path_Item) MarshalJSON() ([]byte, error)
- func (t *ErrorDetail_Path_Item) MergeErrorDetailPath0(v ErrorDetailPath0) error
- func (t *ErrorDetail_Path_Item) MergeErrorDetailPath1(v ErrorDetailPath1) error
- func (t *ErrorDetail_Path_Item) UnmarshalJSON(b []byte) error
- type ErrorPhase
- type ErrorResponse
- type Event
- func (t Event) AsMessageEvent() (MessageEvent, error)
- func (t Event) AsRunEvent() (RunEvent, error)
- func (t Event) AsSandboxEvent() (SandboxEvent, error)
- func (t Event) AsToolCallEvent() (ToolCallEvent, error)
- func (t Event) Discriminator() (string, error)
- func (t *Event) FromMessageEvent(v MessageEvent) error
- func (t *Event) FromRunEvent(v RunEvent) error
- func (t *Event) FromSandboxEvent(v SandboxEvent) error
- func (t *Event) FromToolCallEvent(v ToolCallEvent) error
- func (t Event) MarshalJSON() ([]byte, error)
- func (t *Event) MergeMessageEvent(v MessageEvent) error
- func (t *Event) MergeRunEvent(v RunEvent) error
- func (t *Event) MergeSandboxEvent(v SandboxEvent) error
- func (t *Event) MergeToolCallEvent(v ToolCallEvent) error
- func (t *Event) UnmarshalJSON(b []byte) error
- func (t Event) ValueByDiscriminator() (interface{}, error)
- type EventPage
- type GetAccountLimitsHTTPResponse
- func (r GetAccountLimitsHTTPResponse) ContentType() string
- func (r GetAccountLimitsHTTPResponse) GetBody() []byte
- func (r GetAccountLimitsHTTPResponse) GetJSON200() *AccountLimits
- func (r GetAccountLimitsHTTPResponse) GetJSON401() *ErrorResponse
- func (r GetAccountLimitsHTTPResponse) GetJSON503() *ErrorResponse
- func (r GetAccountLimitsHTTPResponse) GetJSONDefault() *ErrorResponse
- func (r GetAccountLimitsHTTPResponse) Status() string
- func (r GetAccountLimitsHTTPResponse) StatusCode() int
- type GetAccountLimitsParams
- type GetAnalyticsOverviewHTTPResponse
- func (r GetAnalyticsOverviewHTTPResponse) ContentType() string
- func (r GetAnalyticsOverviewHTTPResponse) GetBody() []byte
- func (r GetAnalyticsOverviewHTTPResponse) GetJSON200() *AnalyticsOverview
- func (r GetAnalyticsOverviewHTTPResponse) GetJSON401() *ErrorResponse
- func (r GetAnalyticsOverviewHTTPResponse) GetJSON422() *ErrorResponse
- func (r GetAnalyticsOverviewHTTPResponse) GetJSON503() *ErrorResponse
- func (r GetAnalyticsOverviewHTTPResponse) Status() string
- func (r GetAnalyticsOverviewHTTPResponse) StatusCode() int
- type GetAnalyticsOverviewParams
- type GetAnalyticsOverviewParamsBucket
- type GetAnalyticsOverviewParamsWindow
- type GetAuthFileHTTPResponse
- func (r GetAuthFileHTTPResponse) ContentType() string
- func (r GetAuthFileHTTPResponse) GetBody() []byte
- func (r GetAuthFileHTTPResponse) GetJSON200() *AuthFile
- func (r GetAuthFileHTTPResponse) GetJSONDefault() *ErrorResponse
- func (r GetAuthFileHTTPResponse) Status() string
- func (r GetAuthFileHTTPResponse) StatusCode() int
- type GetAuthFileHTTPResponse200Headers
- type GetCredentialStoresHTTPResponse
- func (r GetCredentialStoresHTTPResponse) ContentType() string
- func (r GetCredentialStoresHTTPResponse) GetBody() []byte
- func (r GetCredentialStoresHTTPResponse) GetJSON200() *CredentialStores
- func (r GetCredentialStoresHTTPResponse) GetJSONDefault() *ErrorResponse
- func (r GetCredentialStoresHTTPResponse) Status() string
- func (r GetCredentialStoresHTTPResponse) StatusCode() int
- type GetEventsHTTPResponse
- func (r GetEventsHTTPResponse) ContentType() string
- func (r GetEventsHTTPResponse) GetBody() []byte
- func (r GetEventsHTTPResponse) GetJSON200() *EventPage
- func (r GetEventsHTTPResponse) GetJSON400() *ErrorResponse
- func (r GetEventsHTTPResponse) GetJSON401() *ErrorResponse
- func (r GetEventsHTTPResponse) GetJSON404() *ErrorResponse
- func (r GetEventsHTTPResponse) GetJSON409() *ErrorResponse
- func (r GetEventsHTTPResponse) GetJSON413() *ErrorResponse
- func (r GetEventsHTTPResponse) GetJSON415() *ErrorResponse
- func (r GetEventsHTTPResponse) GetJSON422() *ErrorResponse
- func (r GetEventsHTTPResponse) GetJSON503() *ErrorResponse
- func (r GetEventsHTTPResponse) Status() string
- func (r GetEventsHTTPResponse) StatusCode() int
- type GetEventsParams
- type GetHistoryHTTPResponse
- func (r GetHistoryHTTPResponse) ContentType() string
- func (r GetHistoryHTTPResponse) GetBody() []byte
- func (r GetHistoryHTTPResponse) GetJSON200() *HistoryPage
- func (r GetHistoryHTTPResponse) GetJSON400() *ErrorResponse
- func (r GetHistoryHTTPResponse) GetJSON401() *ErrorResponse
- func (r GetHistoryHTTPResponse) GetJSON404() *ErrorResponse
- func (r GetHistoryHTTPResponse) GetJSON409() *ErrorResponse
- func (r GetHistoryHTTPResponse) GetJSON413() *ErrorResponse
- func (r GetHistoryHTTPResponse) GetJSON415() *ErrorResponse
- func (r GetHistoryHTTPResponse) GetJSON422() *ErrorResponse
- func (r GetHistoryHTTPResponse) GetJSON503() *ErrorResponse
- func (r GetHistoryHTTPResponse) Status() string
- func (r GetHistoryHTTPResponse) StatusCode() int
- type GetHistoryParams
- type GetLlmAccountHTTPResponse
- func (r GetLlmAccountHTTPResponse) ContentType() string
- func (r GetLlmAccountHTTPResponse) GetBody() []byte
- func (r GetLlmAccountHTTPResponse) GetJSON200() *LLMAccountDetails
- func (r GetLlmAccountHTTPResponse) GetJSONDefault() *ErrorResponse
- func (r GetLlmAccountHTTPResponse) Status() string
- func (r GetLlmAccountHTTPResponse) StatusCode() int
- type GetLlmAccountsHTTPResponse
- func (r GetLlmAccountsHTTPResponse) ContentType() string
- func (r GetLlmAccountsHTTPResponse) GetBody() []byte
- func (r GetLlmAccountsHTTPResponse) GetJSON200() *LLMAccounts
- func (r GetLlmAccountsHTTPResponse) GetJSONDefault() *ErrorResponse
- func (r GetLlmAccountsHTTPResponse) Status() string
- func (r GetLlmAccountsHTTPResponse) StatusCode() int
- type GetLlmAccountsParams
- type GetProfileHTTPResponse
- func (r GetProfileHTTPResponse) ContentType() string
- func (r GetProfileHTTPResponse) GetBody() []byte
- func (r GetProfileHTTPResponse) GetJSON200() *Profile
- func (r GetProfileHTTPResponse) GetJSONDefault() *ErrorResponse
- func (r GetProfileHTTPResponse) Status() string
- func (r GetProfileHTTPResponse) StatusCode() int
- type GetProfilesHTTPResponse
- func (r GetProfilesHTTPResponse) ContentType() string
- func (r GetProfilesHTTPResponse) GetBody() []byte
- func (r GetProfilesHTTPResponse) GetJSON200() *Profiles
- func (r GetProfilesHTTPResponse) GetJSONDefault() *ErrorResponse
- func (r GetProfilesHTTPResponse) Status() string
- func (r GetProfilesHTTPResponse) StatusCode() int
- type GetProfilesParams
- type GetRunHTTPResponse
- func (r GetRunHTTPResponse) ContentType() string
- func (r GetRunHTTPResponse) GetBody() []byte
- func (r GetRunHTTPResponse) GetJSON200() *Run
- func (r GetRunHTTPResponse) GetJSON400() *ErrorResponse
- func (r GetRunHTTPResponse) GetJSON401() *ErrorResponse
- func (r GetRunHTTPResponse) GetJSON404() *ErrorResponse
- func (r GetRunHTTPResponse) GetJSON409() *ErrorResponse
- func (r GetRunHTTPResponse) GetJSON413() *ErrorResponse
- func (r GetRunHTTPResponse) GetJSON415() *ErrorResponse
- func (r GetRunHTTPResponse) GetJSON422() *ErrorResponse
- func (r GetRunHTTPResponse) GetJSON503() *ErrorResponse
- func (r GetRunHTTPResponse) Status() string
- func (r GetRunHTTPResponse) StatusCode() int
- type GetServicesHTTPResponse
- func (r GetServicesHTTPResponse) ContentType() string
- func (r GetServicesHTTPResponse) GetBody() []byte
- func (r GetServicesHTTPResponse) GetJSON200() *Services
- func (r GetServicesHTTPResponse) GetJSON401() *ErrorResponse
- func (r GetServicesHTTPResponse) GetJSON503() *ErrorResponse
- func (r GetServicesHTTPResponse) Status() string
- func (r GetServicesHTTPResponse) StatusCode() int
- type GetSessionHTTPResponse
- func (r GetSessionHTTPResponse) ContentType() string
- func (r GetSessionHTTPResponse) GetBody() []byte
- func (r GetSessionHTTPResponse) GetJSON200() *Session
- func (r GetSessionHTTPResponse) GetJSON400() *ErrorResponse
- func (r GetSessionHTTPResponse) GetJSON401() *ErrorResponse
- func (r GetSessionHTTPResponse) GetJSON404() *ErrorResponse
- func (r GetSessionHTTPResponse) GetJSON409() *ErrorResponse
- func (r GetSessionHTTPResponse) GetJSON413() *ErrorResponse
- func (r GetSessionHTTPResponse) GetJSON415() *ErrorResponse
- func (r GetSessionHTTPResponse) GetJSON422() *ErrorResponse
- func (r GetSessionHTTPResponse) GetJSON503() *ErrorResponse
- func (r GetSessionHTTPResponse) Status() string
- func (r GetSessionHTTPResponse) StatusCode() int
- type GetTemplateHTTPResponse
- func (r GetTemplateHTTPResponse) ContentType() string
- func (r GetTemplateHTTPResponse) GetBody() []byte
- func (r GetTemplateHTTPResponse) GetJSON200() *Template
- func (r GetTemplateHTTPResponse) GetJSONDefault() *ErrorResponse
- func (r GetTemplateHTTPResponse) Status() string
- func (r GetTemplateHTTPResponse) StatusCode() int
- type GetTemplatesHTTPResponse
- func (r GetTemplatesHTTPResponse) ContentType() string
- func (r GetTemplatesHTTPResponse) GetBody() []byte
- func (r GetTemplatesHTTPResponse) GetJSON200() *Templates
- func (r GetTemplatesHTTPResponse) GetJSONDefault() *ErrorResponse
- func (r GetTemplatesHTTPResponse) Status() string
- func (r GetTemplatesHTTPResponse) StatusCode() int
- type GetTemplatesParams
- type HistoryPage
- type HistoryPage_Items_Item
- func (t HistoryPage_Items_Item) AsMessageItem() (MessageItem, error)
- func (t HistoryPage_Items_Item) AsToolItem() (ToolItem, error)
- func (t HistoryPage_Items_Item) Discriminator() (string, error)
- func (t *HistoryPage_Items_Item) FromMessageItem(v MessageItem) error
- func (t *HistoryPage_Items_Item) FromToolItem(v ToolItem) error
- func (t HistoryPage_Items_Item) MarshalJSON() ([]byte, error)
- func (t *HistoryPage_Items_Item) MergeMessageItem(v MessageItem) error
- func (t *HistoryPage_Items_Item) MergeToolItem(v ToolItem) error
- func (t *HistoryPage_Items_Item) UnmarshalJSON(b []byte) error
- func (t HistoryPage_Items_Item) ValueByDiscriminator() (interface{}, error)
- type HookResult
- type HookResultName
- type HookResultOutputCompleteness
- type HookResultStatus
- type HookResultTruncationReason
- type HookResult_Output
- func (t HookResult_Output) AsTextResult() (TextResult, error)
- func (t HookResult_Output) AsTruncatedResult() (TruncatedResult, error)
- func (t *HookResult_Output) FromTextResult(v TextResult) error
- func (t *HookResult_Output) FromTruncatedResult(v TruncatedResult) error
- func (t HookResult_Output) MarshalJSON() ([]byte, error)
- func (t *HookResult_Output) MergeTextResult(v TextResult) error
- func (t *HookResult_Output) MergeTruncatedResult(v TruncatedResult) error
- func (t *HookResult_Output) UnmarshalJSON(b []byte) error
- type HooksConfiguration
- type HooksInput
- type HttpRequestDoer
- type JSONResult
- type JSONResultType
- type LLMAccount
- type LLMAccountAuthMode
- type LLMAccountDetails
- type LLMAccountDetailsAuthMode
- type LLMAccountDetailsHarness
- type LLMAccountHarness
- type LLMAccounts
- type Limits
- type LimitsInput
- type ListAllRunsHTTPResponse
- func (r ListAllRunsHTTPResponse) ContentType() string
- func (r ListAllRunsHTTPResponse) GetBody() []byte
- func (r ListAllRunsHTTPResponse) GetJSON200() *RunPage
- func (r ListAllRunsHTTPResponse) GetJSON400() *ErrorResponse
- func (r ListAllRunsHTTPResponse) GetJSON401() *ErrorResponse
- func (r ListAllRunsHTTPResponse) GetJSON404() *ErrorResponse
- func (r ListAllRunsHTTPResponse) GetJSON409() *ErrorResponse
- func (r ListAllRunsHTTPResponse) GetJSON413() *ErrorResponse
- func (r ListAllRunsHTTPResponse) GetJSON415() *ErrorResponse
- func (r ListAllRunsHTTPResponse) GetJSON422() *ErrorResponse
- func (r ListAllRunsHTTPResponse) GetJSON503() *ErrorResponse
- func (r ListAllRunsHTTPResponse) Status() string
- func (r ListAllRunsHTTPResponse) StatusCode() int
- type ListAllRunsParams
- type ListAllRunsParamsOrder
- type ListRunsHTTPResponse
- func (r ListRunsHTTPResponse) ContentType() string
- func (r ListRunsHTTPResponse) GetBody() []byte
- func (r ListRunsHTTPResponse) GetJSON200() *RunPage
- func (r ListRunsHTTPResponse) GetJSON400() *ErrorResponse
- func (r ListRunsHTTPResponse) GetJSON401() *ErrorResponse
- func (r ListRunsHTTPResponse) GetJSON404() *ErrorResponse
- func (r ListRunsHTTPResponse) GetJSON409() *ErrorResponse
- func (r ListRunsHTTPResponse) GetJSON413() *ErrorResponse
- func (r ListRunsHTTPResponse) GetJSON415() *ErrorResponse
- func (r ListRunsHTTPResponse) GetJSON422() *ErrorResponse
- func (r ListRunsHTTPResponse) GetJSON503() *ErrorResponse
- func (r ListRunsHTTPResponse) Status() string
- func (r ListRunsHTTPResponse) StatusCode() int
- type ListRunsParams
- type ListRunsParamsOrder
- type ListSessionsHTTPResponse
- func (r ListSessionsHTTPResponse) ContentType() string
- func (r ListSessionsHTTPResponse) GetBody() []byte
- func (r ListSessionsHTTPResponse) GetJSON200() *SessionPage
- func (r ListSessionsHTTPResponse) GetJSON400() *ErrorResponse
- func (r ListSessionsHTTPResponse) GetJSON401() *ErrorResponse
- func (r ListSessionsHTTPResponse) GetJSON404() *ErrorResponse
- func (r ListSessionsHTTPResponse) GetJSON409() *ErrorResponse
- func (r ListSessionsHTTPResponse) GetJSON413() *ErrorResponse
- func (r ListSessionsHTTPResponse) GetJSON415() *ErrorResponse
- func (r ListSessionsHTTPResponse) GetJSON422() *ErrorResponse
- func (r ListSessionsHTTPResponse) GetJSON503() *ErrorResponse
- func (r ListSessionsHTTPResponse) Status() string
- func (r ListSessionsHTTPResponse) StatusCode() int
- type ListSessionsParams
- type ListSessionsParamsActivity
- type ListSessionsParamsOrder
- type ListSessionsParamsSort
- type Message
- type MessageDeliveryStatus
- type MessageEvent
- type MessageEventType
- type MessageItem
- type MessageItemType
- type MessageKind
- type MessageRole
- type Position
- type Profile
- type ProfileHarness
- type Profiles
- type ReplaceAPIKey
- type ReplaceAPIKeyHTTPResponse
- type ReplaceAPIKeyJSONRequestBody
- type ReplaceAuthFileHTTPResponse
- type ReplaceAuthFileHTTPResponse204Headers
- type ReplaceAuthFileJSONRequestBody
- type ReplaceAuthFileParams
- type RequestEditorFn
- type Run
- type RunAgentStatus
- type RunEvent
- type RunEventType
- type RunObservation
- type RunPage
- type RunPhase
- type RunStatus
- type RunStopMethod
- type RunStopReason
- type SamlMetadataHTTPResponse
- type SandboxConfiguration
- type SandboxEvent
- type SandboxEventType
- type SandboxInput
- type SandboxState
- type SandboxStateState
- type SendMessage
- type SendMessageHTTPResponse
- func (r SendMessageHTTPResponse) ContentType() string
- func (r SendMessageHTTPResponse) GetBody() []byte
- func (r SendMessageHTTPResponse) GetJSON202() *Accepted
- func (r SendMessageHTTPResponse) GetJSON400() *ErrorResponse
- func (r SendMessageHTTPResponse) GetJSON401() *ErrorResponse
- func (r SendMessageHTTPResponse) GetJSON403() *ErrorResponse
- func (r SendMessageHTTPResponse) GetJSON404() *ErrorResponse
- func (r SendMessageHTTPResponse) GetJSON409() *ErrorResponse
- func (r SendMessageHTTPResponse) GetJSON413() *ErrorResponse
- func (r SendMessageHTTPResponse) GetJSON415() *ErrorResponse
- func (r SendMessageHTTPResponse) GetJSON422() *ErrorResponse
- func (r SendMessageHTTPResponse) GetJSON503() *ErrorResponse
- func (r SendMessageHTTPResponse) Status() string
- func (r SendMessageHTTPResponse) StatusCode() int
- type SendMessageHTTPResponse202Headers
- type SendMessageJSONRequestBody
- type SendMessageParams
- type Service
- type ServiceCodes
- type Services
- type Session
- type SessionPage
- type SessionPhase
- type StatusCounts
- type StreamEventsHTTPResponse
- func (r StreamEventsHTTPResponse) ContentType() string
- func (r StreamEventsHTTPResponse) GetBody() []byte
- func (r StreamEventsHTTPResponse) GetJSON400() *ErrorResponse
- func (r StreamEventsHTTPResponse) GetJSON401() *ErrorResponse
- func (r StreamEventsHTTPResponse) GetJSON404() *ErrorResponse
- func (r StreamEventsHTTPResponse) GetJSON409() *ErrorResponse
- func (r StreamEventsHTTPResponse) GetJSON413() *ErrorResponse
- func (r StreamEventsHTTPResponse) GetJSON415() *ErrorResponse
- func (r StreamEventsHTTPResponse) GetJSON422() *ErrorResponse
- func (r StreamEventsHTTPResponse) GetJSON503() *ErrorResponse
- func (r StreamEventsHTTPResponse) Status() string
- func (r StreamEventsHTTPResponse) StatusCode() int
- type StreamEventsParams
- type Template
- type Templates
- type TextMessage
- type TextResult
- type TextResultType
- type ToolCall
- type ToolCallEvent
- type ToolCallEventType
- type ToolCallOutputCompleteness
- type ToolCallStatus
- type ToolCallTruncationReason
- type ToolItem
- type ToolItemType
- type ToolResult
- func (t ToolResult) AsJSONResult() (JSONResult, error)
- func (t ToolResult) AsTextResult() (TextResult, error)
- func (t ToolResult) AsTruncatedResult() (TruncatedResult, error)
- func (t ToolResult) Discriminator() (string, error)
- func (t *ToolResult) FromJSONResult(v JSONResult) error
- func (t *ToolResult) FromTextResult(v TextResult) error
- func (t *ToolResult) FromTruncatedResult(v TruncatedResult) error
- func (t ToolResult) MarshalJSON() ([]byte, error)
- func (t *ToolResult) MergeJSONResult(v JSONResult) error
- func (t *ToolResult) MergeTextResult(v TextResult) error
- func (t *ToolResult) MergeTruncatedResult(v TruncatedResult) error
- func (t *ToolResult) UnmarshalJSON(b []byte) error
- func (t ToolResult) ValueByDiscriminator() (interface{}, error)
- type TruncatedResult
- type TruncatedResultSourceType
- type TruncatedResultType
- type UpdateLLMAccount
- type UpdateLlmAccountHTTPResponse
- func (r UpdateLlmAccountHTTPResponse) ContentType() string
- func (r UpdateLlmAccountHTTPResponse) GetBody() []byte
- func (r UpdateLlmAccountHTTPResponse) GetJSON200() *LLMAccountDetails
- func (r UpdateLlmAccountHTTPResponse) GetJSONDefault() *ErrorResponse
- func (r UpdateLlmAccountHTTPResponse) Status() string
- func (r UpdateLlmAccountHTTPResponse) StatusCode() int
- type UpdateLlmAccountJSONRequestBody
- type UpdateProfile
- type UpdateProfileHTTPResponse
- func (r UpdateProfileHTTPResponse) ContentType() string
- func (r UpdateProfileHTTPResponse) GetBody() []byte
- func (r UpdateProfileHTTPResponse) GetJSON200() *Profile
- func (r UpdateProfileHTTPResponse) GetJSONDefault() *ErrorResponse
- func (r UpdateProfileHTTPResponse) Status() string
- func (r UpdateProfileHTTPResponse) StatusCode() int
- type UpdateProfileJSONRequestBody
- type UpdateTemplate
- type UpdateTemplateHTTPResponse
- func (r UpdateTemplateHTTPResponse) ContentType() string
- func (r UpdateTemplateHTTPResponse) GetBody() []byte
- func (r UpdateTemplateHTTPResponse) GetJSON200() *Template
- func (r UpdateTemplateHTTPResponse) GetJSONDefault() *ErrorResponse
- func (r UpdateTemplateHTTPResponse) Status() string
- func (r UpdateTemplateHTTPResponse) StatusCode() int
- type UpdateTemplateJSONRequestBody
- type Usage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthSessionRequest ¶ added in v0.1.7
NewAuthSessionRequest constructs an http.Request for the AuthSession method
func NewBrowserCallbackRequest ¶ added in v0.1.7
NewBrowserCallbackRequest constructs an http.Request for the BrowserCallback method
func NewBrowserLoginRequest ¶ added in v0.1.7
func NewBrowserLoginRequest(server string, params *BrowserLoginParams) (*http.Request, error)
NewBrowserLoginRequest constructs an http.Request for the BrowserLogin method
func NewBrowserLogoutRequest ¶ added in v0.1.7
NewBrowserLogoutRequest constructs an http.Request for the BrowserLogout method
func NewCancelRunRequest ¶
func NewCancelRunRequest(server string, sid openapi_types.UUID, rid openapi_types.UUID) (*http.Request, error)
NewCancelRunRequest constructs an http.Request for the CancelRun method
func NewCreateLlmAccountRequest ¶ added in v0.15.0
func NewCreateLlmAccountRequest(server string, body CreateLlmAccountJSONRequestBody) (*http.Request, error)
NewCreateLlmAccountRequest calls the generic CreateLlmAccount builder with application/json body
func NewCreateLlmAccountRequestWithBody ¶ added in v0.15.0
func NewCreateLlmAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateLlmAccountRequestWithBody constructs an http.Request for the CreateLlmAccount method, with any body, and a specified content type
func NewCreateProfileRequest ¶ added in v0.15.0
func NewCreateProfileRequest(server string, body CreateProfileJSONRequestBody) (*http.Request, error)
NewCreateProfileRequest calls the generic CreateProfile builder with application/json body
func NewCreateProfileRequestWithBody ¶ added in v0.15.0
func NewCreateProfileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateProfileRequestWithBody constructs an http.Request for the CreateProfile method, with any body, and a specified content type
func NewCreateRunRequest ¶
func NewCreateRunRequest(server string, sid openapi_types.UUID, params *CreateRunParams, body CreateRunJSONRequestBody) (*http.Request, error)
NewCreateRunRequest calls the generic CreateRun builder with application/json body
func NewCreateRunRequestWithBody ¶
func NewCreateRunRequestWithBody(server string, sid openapi_types.UUID, params *CreateRunParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateRunRequestWithBody constructs an http.Request for the CreateRun method, with any body, and a specified content type
func NewCreateSessionRequest ¶
func NewCreateSessionRequest(server string, params *CreateSessionParams, body CreateSessionJSONRequestBody) (*http.Request, error)
NewCreateSessionRequest calls the generic CreateSession builder with application/json body
func NewCreateSessionRequestWithBody ¶
func NewCreateSessionRequestWithBody(server string, params *CreateSessionParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateSessionRequestWithBody constructs an http.Request for the CreateSession method, with any body, and a specified content type
func NewCreateTemplateRequest ¶ added in v0.11.0
func NewCreateTemplateRequest(server string, body CreateTemplateJSONRequestBody) (*http.Request, error)
NewCreateTemplateRequest calls the generic CreateTemplate builder with application/json body
func NewCreateTemplateRequestWithBody ¶ added in v0.11.0
func NewCreateTemplateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateTemplateRequestWithBody constructs an http.Request for the CreateTemplate method, with any body, and a specified content type
func NewDeleteLlmAccountRequest ¶ added in v0.15.0
NewDeleteLlmAccountRequest constructs an http.Request for the DeleteLlmAccount method
func NewDeleteProfileRequest ¶ added in v0.15.0
NewDeleteProfileRequest constructs an http.Request for the DeleteProfile method
func NewDeleteTemplateRequest ¶ added in v0.11.0
NewDeleteTemplateRequest constructs an http.Request for the DeleteTemplate method
func NewGetAccountLimitsRequest ¶ added in v0.1.7
func NewGetAccountLimitsRequest(server string, params *GetAccountLimitsParams) (*http.Request, error)
NewGetAccountLimitsRequest constructs an http.Request for the GetAccountLimits method
func NewGetAnalyticsOverviewRequest ¶ added in v0.1.7
func NewGetAnalyticsOverviewRequest(server string, params *GetAnalyticsOverviewParams) (*http.Request, error)
NewGetAnalyticsOverviewRequest constructs an http.Request for the GetAnalyticsOverview method
func NewGetAuthFileRequest ¶ added in v0.15.0
NewGetAuthFileRequest constructs an http.Request for the GetAuthFile method
func NewGetCredentialStoresRequest ¶ added in v0.15.0
NewGetCredentialStoresRequest constructs an http.Request for the GetCredentialStores method
func NewGetEventsRequest ¶
func NewGetEventsRequest(server string, sid openapi_types.UUID, params *GetEventsParams) (*http.Request, error)
NewGetEventsRequest constructs an http.Request for the GetEvents method
func NewGetHistoryRequest ¶
func NewGetHistoryRequest(server string, sid openapi_types.UUID, params *GetHistoryParams) (*http.Request, error)
NewGetHistoryRequest constructs an http.Request for the GetHistory method
func NewGetLlmAccountRequest ¶ added in v0.15.0
NewGetLlmAccountRequest constructs an http.Request for the GetLlmAccount method
func NewGetLlmAccountsRequest ¶ added in v0.15.0
func NewGetLlmAccountsRequest(server string, params *GetLlmAccountsParams) (*http.Request, error)
NewGetLlmAccountsRequest constructs an http.Request for the GetLlmAccounts method
func NewGetProfileRequest ¶ added in v0.15.0
NewGetProfileRequest constructs an http.Request for the GetProfile method
func NewGetProfilesRequest ¶ added in v0.5.0
func NewGetProfilesRequest(server string, params *GetProfilesParams) (*http.Request, error)
NewGetProfilesRequest constructs an http.Request for the GetProfiles method
func NewGetRunRequest ¶
func NewGetRunRequest(server string, sid openapi_types.UUID, rid openapi_types.UUID) (*http.Request, error)
NewGetRunRequest constructs an http.Request for the GetRun method
func NewGetServicesRequest ¶ added in v0.6.0
NewGetServicesRequest constructs an http.Request for the GetServices method
func NewGetSessionRequest ¶
NewGetSessionRequest constructs an http.Request for the GetSession method
func NewGetTemplateRequest ¶ added in v0.11.0
NewGetTemplateRequest constructs an http.Request for the GetTemplate method
func NewGetTemplatesRequest ¶ added in v0.5.0
func NewGetTemplatesRequest(server string, params *GetTemplatesParams) (*http.Request, error)
NewGetTemplatesRequest constructs an http.Request for the GetTemplates method
func NewListAllRunsRequest ¶
func NewListAllRunsRequest(server string, params *ListAllRunsParams) (*http.Request, error)
NewListAllRunsRequest constructs an http.Request for the ListAllRuns method
func NewListRunsRequest ¶
func NewListRunsRequest(server string, sid openapi_types.UUID, params *ListRunsParams) (*http.Request, error)
NewListRunsRequest constructs an http.Request for the ListRuns method
func NewListSessionsRequest ¶
func NewListSessionsRequest(server string, params *ListSessionsParams) (*http.Request, error)
NewListSessionsRequest constructs an http.Request for the ListSessions method
func NewReplaceAPIKeyRequest ¶ added in v0.15.0
func NewReplaceAPIKeyRequest(server string, id openapi_types.UUID, body ReplaceAPIKeyJSONRequestBody) (*http.Request, error)
NewReplaceAPIKeyRequest calls the generic ReplaceAPIKey builder with application/json body
func NewReplaceAPIKeyRequestWithBody ¶ added in v0.15.0
func NewReplaceAPIKeyRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewReplaceAPIKeyRequestWithBody constructs an http.Request for the ReplaceAPIKey method, with any body, and a specified content type
func NewReplaceAuthFileRequest ¶ added in v0.15.0
func NewReplaceAuthFileRequest(server string, id openapi_types.UUID, params *ReplaceAuthFileParams, body ReplaceAuthFileJSONRequestBody) (*http.Request, error)
NewReplaceAuthFileRequest calls the generic ReplaceAuthFile builder with application/json body
func NewReplaceAuthFileRequestWithBody ¶ added in v0.15.0
func NewReplaceAuthFileRequestWithBody(server string, id openapi_types.UUID, params *ReplaceAuthFileParams, contentType string, body io.Reader) (*http.Request, error)
NewReplaceAuthFileRequestWithBody constructs an http.Request for the ReplaceAuthFile method, with any body, and a specified content type
func NewSamlMetadataRequest ¶ added in v0.1.7
NewSamlMetadataRequest constructs an http.Request for the SamlMetadata method
func NewSendMessageRequest ¶
func NewSendMessageRequest(server string, sid openapi_types.UUID, rid openapi_types.UUID, params *SendMessageParams, body SendMessageJSONRequestBody) (*http.Request, error)
NewSendMessageRequest calls the generic SendMessage builder with application/json body
func NewSendMessageRequestWithBody ¶
func NewSendMessageRequestWithBody(server string, sid openapi_types.UUID, rid openapi_types.UUID, params *SendMessageParams, contentType string, body io.Reader) (*http.Request, error)
NewSendMessageRequestWithBody constructs an http.Request for the SendMessage method, with any body, and a specified content type
func NewStreamEventsRequest ¶
func NewStreamEventsRequest(server string, sid openapi_types.UUID, params *StreamEventsParams) (*http.Request, error)
NewStreamEventsRequest constructs an http.Request for the StreamEvents method
func NewUpdateLlmAccountRequest ¶ added in v0.15.0
func NewUpdateLlmAccountRequest(server string, id openapi_types.UUID, body UpdateLlmAccountJSONRequestBody) (*http.Request, error)
NewUpdateLlmAccountRequest calls the generic UpdateLlmAccount builder with application/json body
func NewUpdateLlmAccountRequestWithBody ¶ added in v0.15.0
func NewUpdateLlmAccountRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateLlmAccountRequestWithBody constructs an http.Request for the UpdateLlmAccount method, with any body, and a specified content type
func NewUpdateProfileRequest ¶ added in v0.15.0
func NewUpdateProfileRequest(server string, id openapi_types.UUID, body UpdateProfileJSONRequestBody) (*http.Request, error)
NewUpdateProfileRequest calls the generic UpdateProfile builder with application/json body
func NewUpdateProfileRequestWithBody ¶ added in v0.15.0
func NewUpdateProfileRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateProfileRequestWithBody constructs an http.Request for the UpdateProfile method, with any body, and a specified content type
func NewUpdateTemplateRequest ¶ added in v0.11.0
func NewUpdateTemplateRequest(server string, id openapi_types.UUID, body UpdateTemplateJSONRequestBody) (*http.Request, error)
NewUpdateTemplateRequest calls the generic UpdateTemplate builder with application/json body
func NewUpdateTemplateRequestWithBody ¶ added in v0.11.0
func NewUpdateTemplateRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateTemplateRequestWithBody constructs an http.Request for the UpdateTemplate method, with any body, and a specified content type
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"`
// ResetCreditsAvailable Available earned rate-limit resets for the account; null when unknown. Uses the same observation time and freshness state as the quota windows.
ResetCreditsAvailable *int64 `json:"reset_credits_available"`
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 ( AccountLimitItemErrorCodeInvalidResponse AccountLimitItemErrorCode = "invalid_response" AccountLimitItemErrorCodeNoData AccountLimitItemErrorCode = "no_data" 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" 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 {
CachedInputTokens string `json:"cached_input_tokens"`
InputTokens string `json:"input_tokens"`
OutputTokens string `json:"output_tokens"`
ReasoningOutputTokens string `json:"reasoning_output_tokens"`
TotalTokens string `json:"total_tokens"`
}
AggregateUsage Totals for runs accepted in the period. Cached input and reasoning output are included in input and output respectively. The breakdown is recorded only since collection began; historical usage is not reconstructed. 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 AnalyticsNamespace ¶ added in v0.2.3
type AnalyticsNamespace struct {
ByStatus StatusCounts `json:"by_status"`
Namespace *string `json:"namespace"`
RunsCount int64 `json:"runs_count"`
RuntimeSeconds float64 `json:"runtime_seconds"`
// Usage Totals for runs accepted in the period. Cached input and reasoning output are included in input and output respectively. The breakdown is recorded only since collection began; historical usage is not reconstructed. Decimal strings preserve values beyond JavaScript Number precision.
Usage AggregateUsage `json:"usage"`
}
AnalyticsNamespace Runs accepted during [from,to) whose session has this namespace, with the same definitions as period.
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"`
// Namespaces The period's runs grouped by session namespace, most runs first; null is the group of sessions without a namespace. The groups add up to period.
Namespaces []AnalyticsNamespace `json:"namespaces"`
// 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. Cached input and reasoning output are included in input and output respectively. The breakdown is recorded only since collection began; historical usage is not reconstructed. 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 AuthFile ¶ added in v0.15.0
type AuthFile = json.RawMessage
AuthFile defines model for AuthFile.
type AuthSessionHTTPResponse ¶ added in v0.1.7
type AuthSessionHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BrowserAuthSession
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseAuthSessionHTTPResponse ¶ added in v0.1.7
func ParseAuthSessionHTTPResponse(rsp *http.Response) (*AuthSessionHTTPResponse, error)
ParseAuthSessionHTTPResponse parses an HTTP response from a AuthSessionWithResponse call
func (AuthSessionHTTPResponse) ContentType ¶ added in v0.1.7
func (r AuthSessionHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AuthSessionHTTPResponse) GetBody ¶ added in v0.1.7
func (r AuthSessionHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AuthSessionHTTPResponse) GetJSON200 ¶ added in v0.1.7
func (r AuthSessionHTTPResponse) GetJSON200() *BrowserAuthSession
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AuthSessionHTTPResponse) GetJSONDefault ¶ added in v0.1.7
func (r AuthSessionHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (AuthSessionHTTPResponse) Status ¶ added in v0.1.7
func (r AuthSessionHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (AuthSessionHTTPResponse) StatusCode ¶ added in v0.1.7
func (r AuthSessionHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 BrowserCallbackHTTPResponse ¶ added in v0.1.7
type BrowserCallbackHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
// Headers303 the parsed response headers for an HTTP 303 response
Headers303 *BrowserCallbackHTTPResponse303Headers
}
func ParseBrowserCallbackHTTPResponse ¶ added in v0.1.7
func ParseBrowserCallbackHTTPResponse(rsp *http.Response) (*BrowserCallbackHTTPResponse, error)
ParseBrowserCallbackHTTPResponse parses an HTTP response from a BrowserCallbackWithResponse call
func (BrowserCallbackHTTPResponse) ContentType ¶ added in v0.1.7
func (r BrowserCallbackHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (BrowserCallbackHTTPResponse) GetBody ¶ added in v0.1.7
func (r BrowserCallbackHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (BrowserCallbackHTTPResponse) GetJSONDefault ¶ added in v0.1.7
func (r BrowserCallbackHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (BrowserCallbackHTTPResponse) Status ¶ added in v0.1.7
func (r BrowserCallbackHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (BrowserCallbackHTTPResponse) StatusCode ¶ added in v0.1.7
func (r BrowserCallbackHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BrowserCallbackHTTPResponse303Headers ¶ added in v0.1.7
type BrowserCallbackHTTPResponse303Headers struct {
Location *string
}
BrowserCallbackHTTPResponse303Headers the declared response headers of an HTTP 303 response for BrowserCallback
type BrowserLoginHTTPResponse ¶ added in v0.1.7
type BrowserLoginHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
// Headers302 the parsed response headers for an HTTP 302 response
Headers302 *BrowserLoginHTTPResponse302Headers
}
func ParseBrowserLoginHTTPResponse ¶ added in v0.1.7
func ParseBrowserLoginHTTPResponse(rsp *http.Response) (*BrowserLoginHTTPResponse, error)
ParseBrowserLoginHTTPResponse parses an HTTP response from a BrowserLoginWithResponse call
func (BrowserLoginHTTPResponse) ContentType ¶ added in v0.1.7
func (r BrowserLoginHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (BrowserLoginHTTPResponse) GetBody ¶ added in v0.1.7
func (r BrowserLoginHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (BrowserLoginHTTPResponse) GetJSONDefault ¶ added in v0.1.7
func (r BrowserLoginHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (BrowserLoginHTTPResponse) Status ¶ added in v0.1.7
func (r BrowserLoginHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (BrowserLoginHTTPResponse) StatusCode ¶ added in v0.1.7
func (r BrowserLoginHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BrowserLoginHTTPResponse302Headers ¶ added in v0.1.7
type BrowserLoginHTTPResponse302Headers struct {
Location *string
}
BrowserLoginHTTPResponse302Headers the declared response headers of an HTTP 302 response for BrowserLogin
type BrowserLoginParams ¶ added in v0.1.7
type BrowserLoginParams struct {
Next *string `form:"next,omitempty" json:"next,omitempty"`
}
BrowserLoginParams defines parameters for BrowserLogin.
type BrowserLogoutHTTPResponse ¶ added in v0.1.7
type BrowserLogoutHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseBrowserLogoutHTTPResponse ¶ added in v0.1.7
func ParseBrowserLogoutHTTPResponse(rsp *http.Response) (*BrowserLogoutHTTPResponse, error)
ParseBrowserLogoutHTTPResponse parses an HTTP response from a BrowserLogoutWithResponse call
func (BrowserLogoutHTTPResponse) ContentType ¶ added in v0.1.7
func (r BrowserLogoutHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (BrowserLogoutHTTPResponse) GetBody ¶ added in v0.1.7
func (r BrowserLogoutHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (BrowserLogoutHTTPResponse) GetJSONDefault ¶ added in v0.1.7
func (r BrowserLogoutHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (BrowserLogoutHTTPResponse) Status ¶ added in v0.1.7
func (r BrowserLogoutHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (BrowserLogoutHTTPResponse) StatusCode ¶ added in v0.1.7
func (r BrowserLogoutHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CancelRunHTTPResponse ¶
type CancelRunHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Cancelled
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *Cancelled
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ErrorResponse
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *ErrorResponse
// JSON415 the response for an HTTP 415 `application/json` response
JSON415 *ErrorResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
}
func ParseCancelRunHTTPResponse ¶
func ParseCancelRunHTTPResponse(rsp *http.Response) (*CancelRunHTTPResponse, error)
ParseCancelRunHTTPResponse parses an HTTP response from a CancelRunWithResponse call
func (CancelRunHTTPResponse) ContentType ¶
func (r CancelRunHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CancelRunHTTPResponse) GetBody ¶
func (r CancelRunHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CancelRunHTTPResponse) GetJSON200 ¶
func (r CancelRunHTTPResponse) GetJSON200() *Cancelled
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CancelRunHTTPResponse) GetJSON202 ¶
func (r CancelRunHTTPResponse) GetJSON202() *Cancelled
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (CancelRunHTTPResponse) GetJSON400 ¶
func (r CancelRunHTTPResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CancelRunHTTPResponse) GetJSON401 ¶
func (r CancelRunHTTPResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CancelRunHTTPResponse) GetJSON403 ¶ added in v0.1.7
func (r CancelRunHTTPResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CancelRunHTTPResponse) GetJSON404 ¶
func (r CancelRunHTTPResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (CancelRunHTTPResponse) GetJSON409 ¶
func (r CancelRunHTTPResponse) GetJSON409() *ErrorResponse
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CancelRunHTTPResponse) GetJSON413 ¶
func (r CancelRunHTTPResponse) GetJSON413() *ErrorResponse
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (CancelRunHTTPResponse) GetJSON415 ¶
func (r CancelRunHTTPResponse) GetJSON415() *ErrorResponse
GetJSON415 returns the response for an HTTP 415 `application/json` response
func (CancelRunHTTPResponse) GetJSON422 ¶
func (r CancelRunHTTPResponse) GetJSON422() *ErrorResponse
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (CancelRunHTTPResponse) GetJSON503 ¶
func (r CancelRunHTTPResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (CancelRunHTTPResponse) Status ¶
func (r CancelRunHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CancelRunHTTPResponse) StatusCode ¶
func (r CancelRunHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Cancelled ¶
type Cancelled struct {
RunID openapi_types.UUID `json:"run_id"`
Status RunStatus `json:"status"`
}
Cancelled defines model for Cancelled.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AuthSession ¶ added in v0.1.7
func (c *Client) AuthSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
AuthSession Read browser authentication state
Public browser state; Authorization is ignored. Invalid cookies are cleared. All responses use Cache-Control no-store.
Corresponds with GET /api/v1/auth/session (the `AuthSession` operationId).
func (*Client) BrowserCallback ¶ added in v0.1.7
func (c *Client) BrowserCallback(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
BrowserCallback Consume a signed SAML HTTP-POST response
SAML mode only. Body is application/x-www-form-urlencoded with exactly one SAMLResponse and RelayState, at most 1 MiB. One-time request and browser nonce are required. Unsolicited responses are rejected.
Corresponds with POST /auth/callback (the `BrowserCallback` operationId).
func (*Client) BrowserLogin ¶ added in v0.1.7
func (c *Client) BrowserLogin(ctx context.Context, params *BrowserLoginParams, reqEditors ...RequestEditorFn) (*http.Response, error)
BrowserLogin Start SP-initiated SAML login
SAML mode only; otherwise 404 auth_not_enabled. next must be a local absolute path (not auth routes); default /api/v1/auth/session. No Host or proxy header trust.
Corresponds with GET /auth/login (the `BrowserLogin` operationId).
func (*Client) BrowserLogout ¶ added in v0.1.7
func (c *Client) BrowserLogout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
BrowserLogout Revoke the local browser session
Requires the configured Origin and X-Orpheus-CSRF header equal to 1. Idempotent; clears the cookie. Does not terminate the IdP session.
Corresponds with POST /auth/logout (the `BrowserLogout` operationId).
func (*Client) CancelRun ¶
func (c *Client) CancelRun(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
CancelRun Cancel Run
Corresponds with POST /api/v1/sessions/{sid}/runs/{rid}/cancel (the `CancelRun` operationId).
func (*Client) CreateLlmAccount ¶ added in v0.15.0
func (c *Client) CreateLlmAccount(ctx context.Context, body CreateLlmAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateLlmAccount Create llm account
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/llm-accounts (the `CreateLlmAccount` operationId).
func (*Client) CreateLlmAccountWithBody ¶ added in v0.15.0
func (c *Client) CreateLlmAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateLlmAccountWithBody Create llm account
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/llm-accounts (the `CreateLlmAccount` operationId).
func (*Client) CreateProfile ¶ added in v0.15.0
func (c *Client) CreateProfile(ctx context.Context, body CreateProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateProfile Create profile
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/profiles (the `CreateProfile` operationId).
func (*Client) CreateProfileWithBody ¶ added in v0.15.0
func (c *Client) CreateProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateProfileWithBody Create profile
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/profiles (the `CreateProfile` operationId).
func (*Client) CreateRun ¶
func (c *Client) CreateRun(ctx context.Context, sid openapi_types.UUID, params *CreateRunParams, body CreateRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateRun Create Run
Create a subsequent run. Sessions created with allow_multiple_runs=false reject this operation with 409 multiple_runs_not_allowed. Deleting, deleted or unavailable environments reject new input with 409 session_unavailable; create a new session with the required context. If external sandbox loss is discovered after acceptance, the run fails asynchronously with sandbox_lost. Idempotent replay of an accepted request returns the original acceptance, regardless of sandbox state.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/sessions/{sid}/runs (the `CreateRun` operationId).
func (*Client) CreateRunWithBody ¶
func (c *Client) CreateRunWithBody(ctx context.Context, sid openapi_types.UUID, params *CreateRunParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateRunWithBody Create Run
Create a subsequent run. Sessions created with allow_multiple_runs=false reject this operation with 409 multiple_runs_not_allowed. Deleting, deleted or unavailable environments reject new input with 409 session_unavailable; create a new session with the required context. If external sandbox loss is discovered after acceptance, the run fails asynchronously with sandbox_lost. Idempotent replay of an accepted request returns the original acceptance, regardless of sandbox state.
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/sessions/{sid}/runs (the `CreateRun` operationId).
func (*Client) CreateSession ¶
func (c *Client) CreateSession(ctx context.Context, params *CreateSessionParams, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSession Create Session
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/sessions (the `CreateSession` operationId).
func (*Client) CreateSessionWithBody ¶
func (c *Client) CreateSessionWithBody(ctx context.Context, params *CreateSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSessionWithBody Create Session
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/sessions (the `CreateSession` operationId).
func (*Client) CreateTemplate ¶ added in v0.11.0
func (c *Client) CreateTemplate(ctx context.Context, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateTemplate Register an own-project AgentBox template
Requires successful alias and tag lookups. Browser writes require the configured Origin and X-Orpheus-CSRF header set to 1. Active records become available to new sessions immediately, without restarting API or worker.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/templates (the `CreateTemplate` operationId).
func (*Client) CreateTemplateWithBody ¶ added in v0.11.0
func (c *Client) CreateTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateTemplateWithBody Register an own-project AgentBox template
Requires successful alias and tag lookups. Browser writes require the configured Origin and X-Orpheus-CSRF header set to 1. Active records become available to new sessions immediately, without restarting API or worker.
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/templates (the `CreateTemplate` operationId).
func (*Client) DeleteLlmAccount ¶ added in v0.15.0
func (c *Client) DeleteLlmAccount(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteLlmAccount Delete llm account
Corresponds with DELETE /api/v1/llm-accounts/{id} (the `DeleteLlmAccount` operationId).
func (*Client) DeleteProfile ¶ added in v0.15.0
func (c *Client) DeleteProfile(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteProfile Delete profile
Corresponds with DELETE /api/v1/profiles/{id} (the `DeleteProfile` operationId).
func (*Client) DeleteTemplate ¶ added in v0.11.0
func (c *Client) DeleteTemplate(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteTemplate Delete an Orpheus catalog record
Does not modify AgentBox or accepted sessions. Browser writes require Origin and X-Orpheus-CSRF.
Corresponds with DELETE /api/v1/templates/{id} (the `DeleteTemplate` operationId).
func (*Client) GetAccountLimits ¶ added in v0.1.7
func (c *Client) GetAccountLimits(ctx context.Context, params *GetAccountLimitsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAccountLimits Current provider limits by account
Read-only snapshot from worker observations. Does not contact the provider or refresh credentials. Responses use Cache-Control no-store.
Corresponds with GET /api/v1/accounts/limits (the `GetAccountLimits` operationId).
func (*Client) GetAnalyticsOverview ¶ added in v0.1.7
func (c *Client) GetAnalyticsOverview(ctx context.Context, params *GetAnalyticsOverviewParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAnalyticsOverview Dashboard analytics snapshot
Counts and usage of runs accepted during [from,to), the same totals per namespace, plus current active sessions. All timestamps are UTC.
Corresponds with GET /api/v1/analytics/overview (the `GetAnalyticsOverview` operationId).
func (*Client) GetAuthFile ¶ added in v0.15.0
func (c *Client) GetAuthFile(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAuthFile Read the account authorization file
Corresponds with GET /api/v1/llm-accounts/{id}/auth-file (the `GetAuthFile` operationId).
func (*Client) GetCredentialStores ¶ added in v0.15.0
func (c *Client) GetCredentialStores(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetCredentialStores List configured credential store names
Corresponds with GET /api/v1/credential-stores (the `GetCredentialStores` operationId).
func (*Client) GetEvents ¶
func (c *Client) GetEvents(ctx context.Context, sid openapi_types.UUID, params *GetEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetEvents Events
Corresponds with GET /api/v1/sessions/{sid}/events (the `GetEvents` operationId).
func (*Client) GetHistory ¶
func (c *Client) GetHistory(ctx context.Context, sid openapi_types.UUID, params *GetHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistory History
Corresponds with GET /api/v1/sessions/{sid}/history (the `GetHistory` operationId).
func (*Client) GetLlmAccount ¶ added in v0.15.0
func (c *Client) GetLlmAccount(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetLlmAccount Read llm account
Corresponds with GET /api/v1/llm-accounts/{id} (the `GetLlmAccount` operationId).
func (*Client) GetLlmAccounts ¶ added in v0.15.0
func (c *Client) GetLlmAccounts(ctx context.Context, params *GetLlmAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetLlmAccounts List llm-accounts
Database catalog ordered by (name, id), with filters bound to forward/backward cursors. Changes apply to new sessions; accepted sessions retain their account and execution snapshot.
Corresponds with GET /api/v1/llm-accounts (the `GetLlmAccounts` operationId).
func (*Client) GetProfile ¶ added in v0.15.0
func (c *Client) GetProfile(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetProfile Read profile
Corresponds with GET /api/v1/profiles/{id} (the `GetProfile` operationId).
func (*Client) GetProfiles ¶ added in v0.5.0
func (c *Client) GetProfiles(ctx context.Context, params *GetProfilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetProfiles List profiles
Database catalog ordered by (name, id), with filters bound to forward/backward cursors. Changes apply to new sessions; accepted sessions retain their account and execution snapshot.
Corresponds with GET /api/v1/profiles (the `GetProfiles` operationId).
func (*Client) GetRun ¶
func (c *Client) GetRun(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetRun Read Run
Corresponds with GET /api/v1/sessions/{sid}/runs/{rid} (the `GetRun` operationId).
func (*Client) GetServices ¶ added in v0.6.0
func (c *Client) GetServices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetServices List configured services
Returns the complete catalog sorted by code from local configuration. No provider or credential lookups are performed.
Corresponds with GET /api/v1/services (the `GetServices` operationId).
func (*Client) GetSession ¶
func (c *Client) GetSession(ctx context.Context, sid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetSession Read Session
Corresponds with GET /api/v1/sessions/{sid} (the `GetSession` operationId).
func (*Client) GetTemplate ¶ added in v0.11.0
func (c *Client) GetTemplate(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetTemplate Read a registered template
Corresponds with GET /api/v1/templates/{id} (the `GetTemplate` operationId).
func (*Client) GetTemplates ¶ added in v0.5.0
func (c *Client) GetTemplates(ctx context.Context, params *GetTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetTemplates List registered templates
Database catalog ordered by (name, id). Filters are bound to opaque forward/backward cursors; no provider calls. New sessions require an exact active name from this catalog. Changes do not affect accepted sessions or idempotent replays.
Corresponds with GET /api/v1/templates (the `GetTemplates` operationId).
func (*Client) ListAllRuns ¶
func (c *Client) ListAllRuns(ctx context.Context, params *ListAllRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAllRuns List All Runs
Corresponds with GET /api/v1/runs (the `ListAllRuns` operationId).
func (*Client) ListRuns ¶
func (c *Client) ListRuns(ctx context.Context, sid openapi_types.UUID, params *ListRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListRuns List Runs
Corresponds with GET /api/v1/sessions/{sid}/runs (the `ListRuns` operationId).
func (*Client) ListSessions ¶
func (c *Client) ListSessions(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSessions List Sessions
Corresponds with GET /api/v1/sessions (the `ListSessions` operationId).
func (*Client) ReplaceAPIKey ¶ added in v0.15.0
func (c *Client) ReplaceAPIKey(ctx context.Context, id openapi_types.UUID, body ReplaceAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ReplaceAPIKey Replace an account API key
Takes a body of the `application/json` content type.
Corresponds with PUT /api/v1/llm-accounts/{id}/api-key (the `ReplaceAPIKey` operationId).
func (*Client) ReplaceAPIKeyWithBody ¶ added in v0.15.0
func (c *Client) ReplaceAPIKeyWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReplaceAPIKeyWithBody Replace an account API key
Takes any type of body and a specified content type.
Corresponds with PUT /api/v1/llm-accounts/{id}/api-key (the `ReplaceAPIKey` operationId).
func (*Client) ReplaceAuthFile ¶ added in v0.15.0
func (c *Client) ReplaceAuthFile(ctx context.Context, id openapi_types.UUID, params *ReplaceAuthFileParams, body ReplaceAuthFileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ReplaceAuthFile Conditionally replace the account authorization file
Takes a body of the `application/json` content type.
Corresponds with PUT /api/v1/llm-accounts/{id}/auth-file (the `ReplaceAuthFile` operationId).
func (*Client) ReplaceAuthFileWithBody ¶ added in v0.15.0
func (c *Client) ReplaceAuthFileWithBody(ctx context.Context, id openapi_types.UUID, params *ReplaceAuthFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReplaceAuthFileWithBody Conditionally replace the account authorization file
Takes any type of body and a specified content type.
Corresponds with PUT /api/v1/llm-accounts/{id}/auth-file (the `ReplaceAuthFile` operationId).
func (*Client) SamlMetadata ¶ added in v0.1.7
func (c *Client) SamlMetadata(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
SamlMetadata Read service provider metadata
Corresponds with GET /saml/metadata (the `SamlMetadata` operationId).
func (*Client) SendMessage ¶
func (c *Client) SendMessage(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, params *SendMessageParams, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SendMessage Send Message
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/sessions/{sid}/runs/{rid}/messages (the `SendMessage` operationId).
func (*Client) SendMessageWithBody ¶
func (c *Client) SendMessageWithBody(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, params *SendMessageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendMessageWithBody Send Message
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/sessions/{sid}/runs/{rid}/messages (the `SendMessage` operationId).
func (*Client) StreamEvents ¶
func (c *Client) StreamEvents(ctx context.Context, sid openapi_types.UUID, params *StreamEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
StreamEvents Stream Events
Corresponds with GET /api/v1/sessions/{sid}/events/stream (the `StreamEvents` operationId).
func (*Client) UpdateLlmAccount ¶ added in v0.15.0
func (c *Client) UpdateLlmAccount(ctx context.Context, id openapi_types.UUID, body UpdateLlmAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateLlmAccount Update llm account
Takes a body of the `application/json` content type.
Corresponds with PATCH /api/v1/llm-accounts/{id} (the `UpdateLlmAccount` operationId).
func (*Client) UpdateLlmAccountWithBody ¶ added in v0.15.0
func (c *Client) UpdateLlmAccountWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateLlmAccountWithBody Update llm account
Takes any type of body and a specified content type.
Corresponds with PATCH /api/v1/llm-accounts/{id} (the `UpdateLlmAccount` operationId).
func (*Client) UpdateProfile ¶ added in v0.15.0
func (c *Client) UpdateProfile(ctx context.Context, id openapi_types.UUID, body UpdateProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateProfile Update profile
Takes a body of the `application/json` content type.
Corresponds with PATCH /api/v1/profiles/{id} (the `UpdateProfile` operationId).
func (*Client) UpdateProfileWithBody ¶ added in v0.15.0
func (c *Client) UpdateProfileWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateProfileWithBody Update profile
Takes any type of body and a specified content type.
Corresponds with PATCH /api/v1/profiles/{id} (the `UpdateProfile` operationId).
func (*Client) UpdateTemplate ¶ added in v0.11.0
func (c *Client) UpdateTemplate(ctx context.Context, id openapi_types.UUID, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateTemplate Update template activity or description
Name and tag are immutable. Empty or whitespace-only descriptions become null. No AgentBox lookup. Browser writes require Origin and X-Orpheus-CSRF.
Takes a body of the `application/json` content type.
Corresponds with PATCH /api/v1/templates/{id} (the `UpdateTemplate` operationId).
func (*Client) UpdateTemplateWithBody ¶ added in v0.11.0
func (c *Client) UpdateTemplateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateTemplateWithBody Update template activity or description
Name and tag are immutable. Empty or whitespace-only descriptions become null. No AgentBox lookup. Browser writes require Origin and X-Orpheus-CSRF.
Takes any type of body and a specified content type.
Corresponds with PATCH /api/v1/templates/{id} (the `UpdateTemplate` operationId).
type ClientInterface ¶
type ClientInterface interface {
// GetAccountLimits Current provider limits by account
//
// Read-only snapshot from worker observations. Does not contact the provider or refresh credentials. Responses use Cache-Control no-store.
//
// Corresponds with GET /api/v1/accounts/limits (the `GetAccountLimits` operationId).
GetAccountLimits(ctx context.Context, params *GetAccountLimitsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAnalyticsOverview Dashboard analytics snapshot
//
// Counts and usage of runs accepted during [from,to), the same totals per namespace, plus current active sessions. All timestamps are UTC.
//
// Corresponds with GET /api/v1/analytics/overview (the `GetAnalyticsOverview` operationId).
GetAnalyticsOverview(ctx context.Context, params *GetAnalyticsOverviewParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthSession Read browser authentication state
//
// Public browser state; Authorization is ignored. Invalid cookies are cleared. All responses use Cache-Control no-store.
//
// Corresponds with GET /api/v1/auth/session (the `AuthSession` operationId).
AuthSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCredentialStores List configured credential store names
//
// Corresponds with GET /api/v1/credential-stores (the `GetCredentialStores` operationId).
GetCredentialStores(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLlmAccounts List llm-accounts
//
// Database catalog ordered by (name, id), with filters bound to forward/backward cursors. Changes apply to new sessions; accepted sessions retain their account and execution snapshot.
//
// Corresponds with GET /api/v1/llm-accounts (the `GetLlmAccounts` operationId).
GetLlmAccounts(ctx context.Context, params *GetLlmAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateLlmAccountWithBody Create llm account
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/llm-accounts (the `CreateLlmAccount` operationId).
CreateLlmAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateLlmAccount Create llm account
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/llm-accounts (the `CreateLlmAccount` operationId).
CreateLlmAccount(ctx context.Context, body CreateLlmAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteLlmAccount Delete llm account
//
// Corresponds with DELETE /api/v1/llm-accounts/{id} (the `DeleteLlmAccount` operationId).
DeleteLlmAccount(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLlmAccount Read llm account
//
// Corresponds with GET /api/v1/llm-accounts/{id} (the `GetLlmAccount` operationId).
GetLlmAccount(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateLlmAccountWithBody Update llm account
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /api/v1/llm-accounts/{id} (the `UpdateLlmAccount` operationId).
UpdateLlmAccountWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateLlmAccount Update llm account
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /api/v1/llm-accounts/{id} (the `UpdateLlmAccount` operationId).
UpdateLlmAccount(ctx context.Context, id openapi_types.UUID, body UpdateLlmAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReplaceAPIKeyWithBody Replace an account API key
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/v1/llm-accounts/{id}/api-key (the `ReplaceAPIKey` operationId).
ReplaceAPIKeyWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReplaceAPIKey Replace an account API key
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/v1/llm-accounts/{id}/api-key (the `ReplaceAPIKey` operationId).
ReplaceAPIKey(ctx context.Context, id openapi_types.UUID, body ReplaceAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAuthFile Read the account authorization file
//
// Corresponds with GET /api/v1/llm-accounts/{id}/auth-file (the `GetAuthFile` operationId).
GetAuthFile(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReplaceAuthFileWithBody Conditionally replace the account authorization file
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/v1/llm-accounts/{id}/auth-file (the `ReplaceAuthFile` operationId).
ReplaceAuthFileWithBody(ctx context.Context, id openapi_types.UUID, params *ReplaceAuthFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReplaceAuthFile Conditionally replace the account authorization file
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/v1/llm-accounts/{id}/auth-file (the `ReplaceAuthFile` operationId).
ReplaceAuthFile(ctx context.Context, id openapi_types.UUID, params *ReplaceAuthFileParams, body ReplaceAuthFileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetProfiles List profiles
//
// Database catalog ordered by (name, id), with filters bound to forward/backward cursors. Changes apply to new sessions; accepted sessions retain their account and execution snapshot.
//
// Corresponds with GET /api/v1/profiles (the `GetProfiles` operationId).
GetProfiles(ctx context.Context, params *GetProfilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateProfileWithBody Create profile
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/profiles (the `CreateProfile` operationId).
CreateProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateProfile Create profile
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/profiles (the `CreateProfile` operationId).
CreateProfile(ctx context.Context, body CreateProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteProfile Delete profile
//
// Corresponds with DELETE /api/v1/profiles/{id} (the `DeleteProfile` operationId).
DeleteProfile(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetProfile Read profile
//
// Corresponds with GET /api/v1/profiles/{id} (the `GetProfile` operationId).
GetProfile(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateProfileWithBody Update profile
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /api/v1/profiles/{id} (the `UpdateProfile` operationId).
UpdateProfileWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateProfile Update profile
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /api/v1/profiles/{id} (the `UpdateProfile` operationId).
UpdateProfile(ctx context.Context, id openapi_types.UUID, body UpdateProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAllRuns List All Runs
//
// Corresponds with GET /api/v1/runs (the `ListAllRuns` operationId).
ListAllRuns(ctx context.Context, params *ListAllRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetServices List configured services
//
// Returns the complete catalog sorted by code from local configuration. No provider or credential lookups are performed.
//
// Corresponds with GET /api/v1/services (the `GetServices` operationId).
GetServices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSessions List Sessions
//
// Corresponds with GET /api/v1/sessions (the `ListSessions` operationId).
ListSessions(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSessionWithBody Create Session
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/sessions (the `CreateSession` operationId).
CreateSessionWithBody(ctx context.Context, params *CreateSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSession Create Session
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/sessions (the `CreateSession` operationId).
CreateSession(ctx context.Context, params *CreateSessionParams, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSession Read Session
//
// Corresponds with GET /api/v1/sessions/{sid} (the `GetSession` operationId).
GetSession(ctx context.Context, sid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEvents Events
//
// Corresponds with GET /api/v1/sessions/{sid}/events (the `GetEvents` operationId).
GetEvents(ctx context.Context, sid openapi_types.UUID, params *GetEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// StreamEvents Stream Events
//
// Corresponds with GET /api/v1/sessions/{sid}/events/stream (the `StreamEvents` operationId).
StreamEvents(ctx context.Context, sid openapi_types.UUID, params *StreamEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistory History
//
// Corresponds with GET /api/v1/sessions/{sid}/history (the `GetHistory` operationId).
GetHistory(ctx context.Context, sid openapi_types.UUID, params *GetHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListRuns List Runs
//
// Corresponds with GET /api/v1/sessions/{sid}/runs (the `ListRuns` operationId).
ListRuns(ctx context.Context, sid openapi_types.UUID, params *ListRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateRunWithBody Create Run
//
// Create a subsequent run. Sessions created with allow_multiple_runs=false reject this operation with 409 multiple_runs_not_allowed. Deleting, deleted or unavailable environments reject new input with 409 session_unavailable; create a new session with the required context. If external sandbox loss is discovered after acceptance, the run fails asynchronously with sandbox_lost. Idempotent replay of an accepted request returns the original acceptance, regardless of sandbox state.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/sessions/{sid}/runs (the `CreateRun` operationId).
CreateRunWithBody(ctx context.Context, sid openapi_types.UUID, params *CreateRunParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateRun Create Run
//
// Create a subsequent run. Sessions created with allow_multiple_runs=false reject this operation with 409 multiple_runs_not_allowed. Deleting, deleted or unavailable environments reject new input with 409 session_unavailable; create a new session with the required context. If external sandbox loss is discovered after acceptance, the run fails asynchronously with sandbox_lost. Idempotent replay of an accepted request returns the original acceptance, regardless of sandbox state.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/sessions/{sid}/runs (the `CreateRun` operationId).
CreateRun(ctx context.Context, sid openapi_types.UUID, params *CreateRunParams, body CreateRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetRun Read Run
//
// Corresponds with GET /api/v1/sessions/{sid}/runs/{rid} (the `GetRun` operationId).
GetRun(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// CancelRun Cancel Run
//
// Corresponds with POST /api/v1/sessions/{sid}/runs/{rid}/cancel (the `CancelRun` operationId).
CancelRun(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendMessageWithBody Send Message
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/sessions/{sid}/runs/{rid}/messages (the `SendMessage` operationId).
SendMessageWithBody(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, params *SendMessageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendMessage Send Message
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/sessions/{sid}/runs/{rid}/messages (the `SendMessage` operationId).
SendMessage(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, params *SendMessageParams, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTemplates List registered templates
//
// Database catalog ordered by (name, id). Filters are bound to opaque forward/backward cursors; no provider calls. New sessions require an exact active name from this catalog. Changes do not affect accepted sessions or idempotent replays.
//
// Corresponds with GET /api/v1/templates (the `GetTemplates` operationId).
GetTemplates(ctx context.Context, params *GetTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateTemplateWithBody Register an own-project AgentBox template
//
// Requires successful alias and tag lookups. Browser writes require the configured Origin and X-Orpheus-CSRF header set to 1. Active records become available to new sessions immediately, without restarting API or worker.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/templates (the `CreateTemplate` operationId).
CreateTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateTemplate Register an own-project AgentBox template
//
// Requires successful alias and tag lookups. Browser writes require the configured Origin and X-Orpheus-CSRF header set to 1. Active records become available to new sessions immediately, without restarting API or worker.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/templates (the `CreateTemplate` operationId).
CreateTemplate(ctx context.Context, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteTemplate Delete an Orpheus catalog record
//
// Does not modify AgentBox or accepted sessions. Browser writes require Origin and X-Orpheus-CSRF.
//
// Corresponds with DELETE /api/v1/templates/{id} (the `DeleteTemplate` operationId).
DeleteTemplate(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTemplate Read a registered template
//
// Corresponds with GET /api/v1/templates/{id} (the `GetTemplate` operationId).
GetTemplate(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateTemplateWithBody Update template activity or description
//
// Name and tag are immutable. Empty or whitespace-only descriptions become null. No AgentBox lookup. Browser writes require Origin and X-Orpheus-CSRF.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /api/v1/templates/{id} (the `UpdateTemplate` operationId).
UpdateTemplateWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateTemplate Update template activity or description
//
// Name and tag are immutable. Empty or whitespace-only descriptions become null. No AgentBox lookup. Browser writes require Origin and X-Orpheus-CSRF.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /api/v1/templates/{id} (the `UpdateTemplate` operationId).
UpdateTemplate(ctx context.Context, id openapi_types.UUID, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// BrowserCallback Consume a signed SAML HTTP-POST response
//
// SAML mode only. Body is application/x-www-form-urlencoded with exactly one SAMLResponse and RelayState, at most 1 MiB. One-time request and browser nonce are required. Unsolicited responses are rejected.
//
// Corresponds with POST /auth/callback (the `BrowserCallback` operationId).
BrowserCallback(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// BrowserLogin Start SP-initiated SAML login
//
// SAML mode only; otherwise 404 auth_not_enabled. next must be a local absolute path (not auth routes); default /api/v1/auth/session. No Host or proxy header trust.
//
// Corresponds with GET /auth/login (the `BrowserLogin` operationId).
BrowserLogin(ctx context.Context, params *BrowserLoginParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// BrowserLogout Revoke the local browser session
//
// Requires the configured Origin and X-Orpheus-CSRF header equal to 1. Idempotent; clears the cookie. Does not terminate the IdP session.
//
// Corresponds with POST /auth/logout (the `BrowserLogout` operationId).
BrowserLogout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// SamlMetadata Read service provider metadata
//
// Corresponds with GET /saml/metadata (the `SamlMetadata` operationId).
SamlMetadata(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AuthSessionWithResponse ¶ added in v0.1.7
func (c *ClientWithResponses) AuthSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthSessionHTTPResponse, error)
AuthSessionWithResponse Read browser authentication state
Public browser state; Authorization is ignored. Invalid cookies are cleared. All responses use Cache-Control no-store.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/auth/session (the `AuthSession` operationId).
func (*ClientWithResponses) BrowserCallbackWithResponse ¶ added in v0.1.7
func (c *ClientWithResponses) BrowserCallbackWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BrowserCallbackHTTPResponse, error)
BrowserCallbackWithResponse Consume a signed SAML HTTP-POST response
SAML mode only. Body is application/x-www-form-urlencoded with exactly one SAMLResponse and RelayState, at most 1 MiB. One-time request and browser nonce are required. Unsolicited responses are rejected.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /auth/callback (the `BrowserCallback` operationId).
func (*ClientWithResponses) BrowserLoginWithResponse ¶ added in v0.1.7
func (c *ClientWithResponses) BrowserLoginWithResponse(ctx context.Context, params *BrowserLoginParams, reqEditors ...RequestEditorFn) (*BrowserLoginHTTPResponse, error)
BrowserLoginWithResponse Start SP-initiated SAML login
SAML mode only; otherwise 404 auth_not_enabled. next must be a local absolute path (not auth routes); default /api/v1/auth/session. No Host or proxy header trust.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /auth/login (the `BrowserLogin` operationId).
func (*ClientWithResponses) BrowserLogoutWithResponse ¶ added in v0.1.7
func (c *ClientWithResponses) BrowserLogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BrowserLogoutHTTPResponse, error)
BrowserLogoutWithResponse Revoke the local browser session
Requires the configured Origin and X-Orpheus-CSRF header equal to 1. Idempotent; clears the cookie. Does not terminate the IdP session.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /auth/logout (the `BrowserLogout` operationId).
func (*ClientWithResponses) CancelRunWithResponse ¶
func (c *ClientWithResponses) CancelRunWithResponse(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, reqEditors ...RequestEditorFn) (*CancelRunHTTPResponse, error)
CancelRunWithResponse Cancel Run
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/sessions/{sid}/runs/{rid}/cancel (the `CancelRun` operationId).
func (*ClientWithResponses) CreateLlmAccountWithBodyWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) CreateLlmAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLlmAccountHTTPResponse, error)
CreateLlmAccountWithBodyWithResponse Create llm account
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/llm-accounts (the `CreateLlmAccount` operationId).
func (*ClientWithResponses) CreateLlmAccountWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) CreateLlmAccountWithResponse(ctx context.Context, body CreateLlmAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLlmAccountHTTPResponse, error)
CreateLlmAccountWithResponse Create llm account
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/llm-accounts (the `CreateLlmAccount` operationId).
func (*ClientWithResponses) CreateProfileWithBodyWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) CreateProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProfileHTTPResponse, error)
CreateProfileWithBodyWithResponse Create profile
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/profiles (the `CreateProfile` operationId).
func (*ClientWithResponses) CreateProfileWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) CreateProfileWithResponse(ctx context.Context, body CreateProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProfileHTTPResponse, error)
CreateProfileWithResponse Create profile
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/profiles (the `CreateProfile` operationId).
func (*ClientWithResponses) CreateRunWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateRunWithBodyWithResponse(ctx context.Context, sid openapi_types.UUID, params *CreateRunParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRunHTTPResponse, error)
CreateRunWithBodyWithResponse Create Run
Create a subsequent run. Sessions created with allow_multiple_runs=false reject this operation with 409 multiple_runs_not_allowed. Deleting, deleted or unavailable environments reject new input with 409 session_unavailable; create a new session with the required context. If external sandbox loss is discovered after acceptance, the run fails asynchronously with sandbox_lost. Idempotent replay of an accepted request returns the original acceptance, regardless of sandbox state.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/sessions/{sid}/runs (the `CreateRun` operationId).
func (*ClientWithResponses) CreateRunWithResponse ¶
func (c *ClientWithResponses) CreateRunWithResponse(ctx context.Context, sid openapi_types.UUID, params *CreateRunParams, body CreateRunJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRunHTTPResponse, error)
CreateRunWithResponse Create Run
Create a subsequent run. Sessions created with allow_multiple_runs=false reject this operation with 409 multiple_runs_not_allowed. Deleting, deleted or unavailable environments reject new input with 409 session_unavailable; create a new session with the required context. If external sandbox loss is discovered after acceptance, the run fails asynchronously with sandbox_lost. Idempotent replay of an accepted request returns the original acceptance, regardless of sandbox state.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/sessions/{sid}/runs (the `CreateRun` operationId).
func (*ClientWithResponses) CreateSessionWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSessionWithBodyWithResponse(ctx context.Context, params *CreateSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSessionHTTPResponse, error)
CreateSessionWithBodyWithResponse Create Session
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/sessions (the `CreateSession` operationId).
func (*ClientWithResponses) CreateSessionWithResponse ¶
func (c *ClientWithResponses) CreateSessionWithResponse(ctx context.Context, params *CreateSessionParams, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSessionHTTPResponse, error)
CreateSessionWithResponse Create Session
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/sessions (the `CreateSession` operationId).
func (*ClientWithResponses) CreateTemplateWithBodyWithResponse ¶ added in v0.11.0
func (c *ClientWithResponses) CreateTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTemplateHTTPResponse, error)
CreateTemplateWithBodyWithResponse Register an own-project AgentBox template
Requires successful alias and tag lookups. Browser writes require the configured Origin and X-Orpheus-CSRF header set to 1. Active records become available to new sessions immediately, without restarting API or worker.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/templates (the `CreateTemplate` operationId).
func (*ClientWithResponses) CreateTemplateWithResponse ¶ added in v0.11.0
func (c *ClientWithResponses) CreateTemplateWithResponse(ctx context.Context, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTemplateHTTPResponse, error)
CreateTemplateWithResponse Register an own-project AgentBox template
Requires successful alias and tag lookups. Browser writes require the configured Origin and X-Orpheus-CSRF header set to 1. Active records become available to new sessions immediately, without restarting API or worker.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/templates (the `CreateTemplate` operationId).
func (*ClientWithResponses) DeleteLlmAccountWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) DeleteLlmAccountWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteLlmAccountHTTPResponse, error)
DeleteLlmAccountWithResponse Delete llm account
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v1/llm-accounts/{id} (the `DeleteLlmAccount` operationId).
func (*ClientWithResponses) DeleteProfileWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) DeleteProfileWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProfileHTTPResponse, error)
DeleteProfileWithResponse Delete profile
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v1/profiles/{id} (the `DeleteProfile` operationId).
func (*ClientWithResponses) DeleteTemplateWithResponse ¶ added in v0.11.0
func (c *ClientWithResponses) DeleteTemplateWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTemplateHTTPResponse, error)
DeleteTemplateWithResponse Delete an Orpheus catalog record
Does not modify AgentBox or accepted sessions. Browser writes require Origin and X-Orpheus-CSRF.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v1/templates/{id} (the `DeleteTemplate` operationId).
func (*ClientWithResponses) GetAccountLimitsWithResponse ¶ added in v0.1.7
func (c *ClientWithResponses) GetAccountLimitsWithResponse(ctx context.Context, params *GetAccountLimitsParams, reqEditors ...RequestEditorFn) (*GetAccountLimitsHTTPResponse, error)
GetAccountLimitsWithResponse Current provider limits by account
Read-only snapshot from worker observations. Does not contact the provider or refresh credentials. Responses use Cache-Control no-store.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/accounts/limits (the `GetAccountLimits` operationId).
func (*ClientWithResponses) GetAnalyticsOverviewWithResponse ¶ added in v0.1.7
func (c *ClientWithResponses) GetAnalyticsOverviewWithResponse(ctx context.Context, params *GetAnalyticsOverviewParams, reqEditors ...RequestEditorFn) (*GetAnalyticsOverviewHTTPResponse, error)
GetAnalyticsOverviewWithResponse Dashboard analytics snapshot
Counts and usage of runs accepted during [from,to), the same totals per namespace, plus current active sessions. All timestamps are UTC.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/analytics/overview (the `GetAnalyticsOverview` operationId).
func (*ClientWithResponses) GetAuthFileWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) GetAuthFileWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuthFileHTTPResponse, error)
GetAuthFileWithResponse Read the account authorization file
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/llm-accounts/{id}/auth-file (the `GetAuthFile` operationId).
func (*ClientWithResponses) GetCredentialStoresWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) GetCredentialStoresWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCredentialStoresHTTPResponse, error)
GetCredentialStoresWithResponse List configured credential store names
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/credential-stores (the `GetCredentialStores` operationId).
func (*ClientWithResponses) GetEventsWithResponse ¶
func (c *ClientWithResponses) GetEventsWithResponse(ctx context.Context, sid openapi_types.UUID, params *GetEventsParams, reqEditors ...RequestEditorFn) (*GetEventsHTTPResponse, error)
GetEventsWithResponse Events
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/sessions/{sid}/events (the `GetEvents` operationId).
func (*ClientWithResponses) GetHistoryWithResponse ¶
func (c *ClientWithResponses) GetHistoryWithResponse(ctx context.Context, sid openapi_types.UUID, params *GetHistoryParams, reqEditors ...RequestEditorFn) (*GetHistoryHTTPResponse, error)
GetHistoryWithResponse History
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/sessions/{sid}/history (the `GetHistory` operationId).
func (*ClientWithResponses) GetLlmAccountWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) GetLlmAccountWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetLlmAccountHTTPResponse, error)
GetLlmAccountWithResponse Read llm account
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/llm-accounts/{id} (the `GetLlmAccount` operationId).
func (*ClientWithResponses) GetLlmAccountsWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) GetLlmAccountsWithResponse(ctx context.Context, params *GetLlmAccountsParams, reqEditors ...RequestEditorFn) (*GetLlmAccountsHTTPResponse, error)
GetLlmAccountsWithResponse List llm-accounts
Database catalog ordered by (name, id), with filters bound to forward/backward cursors. Changes apply to new sessions; accepted sessions retain their account and execution snapshot.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/llm-accounts (the `GetLlmAccounts` operationId).
func (*ClientWithResponses) GetProfileWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) GetProfileWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProfileHTTPResponse, error)
GetProfileWithResponse Read profile
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/profiles/{id} (the `GetProfile` operationId).
func (*ClientWithResponses) GetProfilesWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) GetProfilesWithResponse(ctx context.Context, params *GetProfilesParams, reqEditors ...RequestEditorFn) (*GetProfilesHTTPResponse, error)
GetProfilesWithResponse List profiles
Database catalog ordered by (name, id), with filters bound to forward/backward cursors. Changes apply to new sessions; accepted sessions retain their account and execution snapshot.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/profiles (the `GetProfiles` operationId).
func (*ClientWithResponses) GetRunWithResponse ¶
func (c *ClientWithResponses) GetRunWithResponse(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRunHTTPResponse, error)
GetRunWithResponse Read Run
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/sessions/{sid}/runs/{rid} (the `GetRun` operationId).
func (*ClientWithResponses) GetServicesWithResponse ¶ added in v0.6.0
func (c *ClientWithResponses) GetServicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServicesHTTPResponse, error)
GetServicesWithResponse List configured services
Returns the complete catalog sorted by code from local configuration. No provider or credential lookups are performed.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/services (the `GetServices` operationId).
func (*ClientWithResponses) GetSessionWithResponse ¶
func (c *ClientWithResponses) GetSessionWithResponse(ctx context.Context, sid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSessionHTTPResponse, error)
GetSessionWithResponse Read Session
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/sessions/{sid} (the `GetSession` operationId).
func (*ClientWithResponses) GetTemplateWithResponse ¶ added in v0.11.0
func (c *ClientWithResponses) GetTemplateWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTemplateHTTPResponse, error)
GetTemplateWithResponse Read a registered template
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/templates/{id} (the `GetTemplate` operationId).
func (*ClientWithResponses) GetTemplatesWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) GetTemplatesWithResponse(ctx context.Context, params *GetTemplatesParams, reqEditors ...RequestEditorFn) (*GetTemplatesHTTPResponse, error)
GetTemplatesWithResponse List registered templates
Database catalog ordered by (name, id). Filters are bound to opaque forward/backward cursors; no provider calls. New sessions require an exact active name from this catalog. Changes do not affect accepted sessions or idempotent replays.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/templates (the `GetTemplates` operationId).
func (*ClientWithResponses) ListAllRunsWithResponse ¶
func (c *ClientWithResponses) ListAllRunsWithResponse(ctx context.Context, params *ListAllRunsParams, reqEditors ...RequestEditorFn) (*ListAllRunsHTTPResponse, error)
ListAllRunsWithResponse List All Runs
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/runs (the `ListAllRuns` operationId).
func (*ClientWithResponses) ListRunsWithResponse ¶
func (c *ClientWithResponses) ListRunsWithResponse(ctx context.Context, sid openapi_types.UUID, params *ListRunsParams, reqEditors ...RequestEditorFn) (*ListRunsHTTPResponse, error)
ListRunsWithResponse List Runs
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/sessions/{sid}/runs (the `ListRuns` operationId).
func (*ClientWithResponses) ListSessionsWithResponse ¶
func (c *ClientWithResponses) ListSessionsWithResponse(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*ListSessionsHTTPResponse, error)
ListSessionsWithResponse List Sessions
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/sessions (the `ListSessions` operationId).
func (*ClientWithResponses) ReplaceAPIKeyWithBodyWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) ReplaceAPIKeyWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceAPIKeyHTTPResponse, error)
ReplaceAPIKeyWithBodyWithResponse Replace an account API key
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/v1/llm-accounts/{id}/api-key (the `ReplaceAPIKey` operationId).
func (*ClientWithResponses) ReplaceAPIKeyWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) ReplaceAPIKeyWithResponse(ctx context.Context, id openapi_types.UUID, body ReplaceAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceAPIKeyHTTPResponse, error)
ReplaceAPIKeyWithResponse Replace an account API key
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/v1/llm-accounts/{id}/api-key (the `ReplaceAPIKey` operationId).
func (*ClientWithResponses) ReplaceAuthFileWithBodyWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) ReplaceAuthFileWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *ReplaceAuthFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceAuthFileHTTPResponse, error)
ReplaceAuthFileWithBodyWithResponse Conditionally replace the account authorization file
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/v1/llm-accounts/{id}/auth-file (the `ReplaceAuthFile` operationId).
func (*ClientWithResponses) ReplaceAuthFileWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) ReplaceAuthFileWithResponse(ctx context.Context, id openapi_types.UUID, params *ReplaceAuthFileParams, body ReplaceAuthFileJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceAuthFileHTTPResponse, error)
ReplaceAuthFileWithResponse Conditionally replace the account authorization file
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/v1/llm-accounts/{id}/auth-file (the `ReplaceAuthFile` operationId).
func (*ClientWithResponses) SamlMetadataWithResponse ¶ added in v0.1.7
func (c *ClientWithResponses) SamlMetadataWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SamlMetadataHTTPResponse, error)
SamlMetadataWithResponse Read service provider metadata
Returns a wrapper object for the known response body format(s).
Corresponds with GET /saml/metadata (the `SamlMetadata` operationId).
func (*ClientWithResponses) SendMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) SendMessageWithBodyWithResponse(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, params *SendMessageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendMessageHTTPResponse, error)
SendMessageWithBodyWithResponse Send Message
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/sessions/{sid}/runs/{rid}/messages (the `SendMessage` operationId).
func (*ClientWithResponses) SendMessageWithResponse ¶
func (c *ClientWithResponses) SendMessageWithResponse(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, params *SendMessageParams, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SendMessageHTTPResponse, error)
SendMessageWithResponse Send Message
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/sessions/{sid}/runs/{rid}/messages (the `SendMessage` operationId).
func (*ClientWithResponses) StreamEventsWithResponse ¶
func (c *ClientWithResponses) StreamEventsWithResponse(ctx context.Context, sid openapi_types.UUID, params *StreamEventsParams, reqEditors ...RequestEditorFn) (*StreamEventsHTTPResponse, error)
StreamEventsWithResponse Stream Events
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/sessions/{sid}/events/stream (the `StreamEvents` operationId).
func (*ClientWithResponses) UpdateLlmAccountWithBodyWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) UpdateLlmAccountWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLlmAccountHTTPResponse, error)
UpdateLlmAccountWithBodyWithResponse Update llm account
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/v1/llm-accounts/{id} (the `UpdateLlmAccount` operationId).
func (*ClientWithResponses) UpdateLlmAccountWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) UpdateLlmAccountWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateLlmAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLlmAccountHTTPResponse, error)
UpdateLlmAccountWithResponse Update llm account
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/v1/llm-accounts/{id} (the `UpdateLlmAccount` operationId).
func (*ClientWithResponses) UpdateProfileWithBodyWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) UpdateProfileWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProfileHTTPResponse, error)
UpdateProfileWithBodyWithResponse Update profile
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/v1/profiles/{id} (the `UpdateProfile` operationId).
func (*ClientWithResponses) UpdateProfileWithResponse ¶ added in v0.15.0
func (c *ClientWithResponses) UpdateProfileWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProfileHTTPResponse, error)
UpdateProfileWithResponse Update profile
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/v1/profiles/{id} (the `UpdateProfile` operationId).
func (*ClientWithResponses) UpdateTemplateWithBodyWithResponse ¶ added in v0.11.0
func (c *ClientWithResponses) UpdateTemplateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemplateHTTPResponse, error)
UpdateTemplateWithBodyWithResponse Update template activity or description
Name and tag are immutable. Empty or whitespace-only descriptions become null. No AgentBox lookup. Browser writes require Origin and X-Orpheus-CSRF.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/v1/templates/{id} (the `UpdateTemplate` operationId).
func (*ClientWithResponses) UpdateTemplateWithResponse ¶ added in v0.11.0
func (c *ClientWithResponses) UpdateTemplateWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemplateHTTPResponse, error)
UpdateTemplateWithResponse Update template activity or description
Name and tag are immutable. Empty or whitespace-only descriptions become null. No AgentBox lookup. Browser writes require Origin and X-Orpheus-CSRF.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/v1/templates/{id} (the `UpdateTemplate` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetAccountLimitsWithResponse Current provider limits by account
//
// Read-only snapshot from worker observations. Does not contact the provider or refresh credentials. Responses use Cache-Control no-store.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/accounts/limits (the `GetAccountLimits` operationId).
GetAccountLimitsWithResponse(ctx context.Context, params *GetAccountLimitsParams, reqEditors ...RequestEditorFn) (*GetAccountLimitsHTTPResponse, error)
// GetAnalyticsOverviewWithResponse Dashboard analytics snapshot
//
// Counts and usage of runs accepted during [from,to), the same totals per namespace, plus current active sessions. All timestamps are UTC.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/analytics/overview (the `GetAnalyticsOverview` operationId).
GetAnalyticsOverviewWithResponse(ctx context.Context, params *GetAnalyticsOverviewParams, reqEditors ...RequestEditorFn) (*GetAnalyticsOverviewHTTPResponse, error)
// AuthSessionWithResponse Read browser authentication state
//
// Public browser state; Authorization is ignored. Invalid cookies are cleared. All responses use Cache-Control no-store.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/auth/session (the `AuthSession` operationId).
AuthSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthSessionHTTPResponse, error)
// GetCredentialStoresWithResponse List configured credential store names
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/credential-stores (the `GetCredentialStores` operationId).
GetCredentialStoresWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCredentialStoresHTTPResponse, error)
// GetLlmAccountsWithResponse List llm-accounts
//
// Database catalog ordered by (name, id), with filters bound to forward/backward cursors. Changes apply to new sessions; accepted sessions retain their account and execution snapshot.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/llm-accounts (the `GetLlmAccounts` operationId).
GetLlmAccountsWithResponse(ctx context.Context, params *GetLlmAccountsParams, reqEditors ...RequestEditorFn) (*GetLlmAccountsHTTPResponse, error)
// CreateLlmAccountWithBodyWithResponse Create llm account
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/llm-accounts (the `CreateLlmAccount` operationId).
CreateLlmAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLlmAccountHTTPResponse, error)
// CreateLlmAccountWithResponse Create llm account
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/llm-accounts (the `CreateLlmAccount` operationId).
CreateLlmAccountWithResponse(ctx context.Context, body CreateLlmAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLlmAccountHTTPResponse, error)
// DeleteLlmAccountWithResponse Delete llm account
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v1/llm-accounts/{id} (the `DeleteLlmAccount` operationId).
DeleteLlmAccountWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteLlmAccountHTTPResponse, error)
// GetLlmAccountWithResponse Read llm account
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/llm-accounts/{id} (the `GetLlmAccount` operationId).
GetLlmAccountWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetLlmAccountHTTPResponse, error)
// UpdateLlmAccountWithBodyWithResponse Update llm account
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/v1/llm-accounts/{id} (the `UpdateLlmAccount` operationId).
UpdateLlmAccountWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLlmAccountHTTPResponse, error)
// UpdateLlmAccountWithResponse Update llm account
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/v1/llm-accounts/{id} (the `UpdateLlmAccount` operationId).
UpdateLlmAccountWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateLlmAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLlmAccountHTTPResponse, error)
// ReplaceAPIKeyWithBodyWithResponse Replace an account API key
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/v1/llm-accounts/{id}/api-key (the `ReplaceAPIKey` operationId).
ReplaceAPIKeyWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceAPIKeyHTTPResponse, error)
// ReplaceAPIKeyWithResponse Replace an account API key
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/v1/llm-accounts/{id}/api-key (the `ReplaceAPIKey` operationId).
ReplaceAPIKeyWithResponse(ctx context.Context, id openapi_types.UUID, body ReplaceAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceAPIKeyHTTPResponse, error)
// GetAuthFileWithResponse Read the account authorization file
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/llm-accounts/{id}/auth-file (the `GetAuthFile` operationId).
GetAuthFileWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuthFileHTTPResponse, error)
// ReplaceAuthFileWithBodyWithResponse Conditionally replace the account authorization file
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/v1/llm-accounts/{id}/auth-file (the `ReplaceAuthFile` operationId).
ReplaceAuthFileWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *ReplaceAuthFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceAuthFileHTTPResponse, error)
// ReplaceAuthFileWithResponse Conditionally replace the account authorization file
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/v1/llm-accounts/{id}/auth-file (the `ReplaceAuthFile` operationId).
ReplaceAuthFileWithResponse(ctx context.Context, id openapi_types.UUID, params *ReplaceAuthFileParams, body ReplaceAuthFileJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceAuthFileHTTPResponse, error)
// GetProfilesWithResponse List profiles
//
// Database catalog ordered by (name, id), with filters bound to forward/backward cursors. Changes apply to new sessions; accepted sessions retain their account and execution snapshot.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/profiles (the `GetProfiles` operationId).
GetProfilesWithResponse(ctx context.Context, params *GetProfilesParams, reqEditors ...RequestEditorFn) (*GetProfilesHTTPResponse, error)
// CreateProfileWithBodyWithResponse Create profile
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/profiles (the `CreateProfile` operationId).
CreateProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProfileHTTPResponse, error)
// CreateProfileWithResponse Create profile
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/profiles (the `CreateProfile` operationId).
CreateProfileWithResponse(ctx context.Context, body CreateProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProfileHTTPResponse, error)
// DeleteProfileWithResponse Delete profile
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v1/profiles/{id} (the `DeleteProfile` operationId).
DeleteProfileWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteProfileHTTPResponse, error)
// GetProfileWithResponse Read profile
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/profiles/{id} (the `GetProfile` operationId).
GetProfileWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProfileHTTPResponse, error)
// UpdateProfileWithBodyWithResponse Update profile
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/v1/profiles/{id} (the `UpdateProfile` operationId).
UpdateProfileWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProfileHTTPResponse, error)
// UpdateProfileWithResponse Update profile
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/v1/profiles/{id} (the `UpdateProfile` operationId).
UpdateProfileWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProfileHTTPResponse, error)
// ListAllRunsWithResponse List All Runs
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/runs (the `ListAllRuns` operationId).
ListAllRunsWithResponse(ctx context.Context, params *ListAllRunsParams, reqEditors ...RequestEditorFn) (*ListAllRunsHTTPResponse, error)
// GetServicesWithResponse List configured services
//
// Returns the complete catalog sorted by code from local configuration. No provider or credential lookups are performed.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/services (the `GetServices` operationId).
GetServicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServicesHTTPResponse, error)
// ListSessionsWithResponse List Sessions
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/sessions (the `ListSessions` operationId).
ListSessionsWithResponse(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*ListSessionsHTTPResponse, error)
// CreateSessionWithBodyWithResponse Create Session
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/sessions (the `CreateSession` operationId).
CreateSessionWithBodyWithResponse(ctx context.Context, params *CreateSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSessionHTTPResponse, error)
// CreateSessionWithResponse Create Session
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/sessions (the `CreateSession` operationId).
CreateSessionWithResponse(ctx context.Context, params *CreateSessionParams, body CreateSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSessionHTTPResponse, error)
// GetSessionWithResponse Read Session
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/sessions/{sid} (the `GetSession` operationId).
GetSessionWithResponse(ctx context.Context, sid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSessionHTTPResponse, error)
// GetEventsWithResponse Events
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/sessions/{sid}/events (the `GetEvents` operationId).
GetEventsWithResponse(ctx context.Context, sid openapi_types.UUID, params *GetEventsParams, reqEditors ...RequestEditorFn) (*GetEventsHTTPResponse, error)
// StreamEventsWithResponse Stream Events
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/sessions/{sid}/events/stream (the `StreamEvents` operationId).
StreamEventsWithResponse(ctx context.Context, sid openapi_types.UUID, params *StreamEventsParams, reqEditors ...RequestEditorFn) (*StreamEventsHTTPResponse, error)
// GetHistoryWithResponse History
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/sessions/{sid}/history (the `GetHistory` operationId).
GetHistoryWithResponse(ctx context.Context, sid openapi_types.UUID, params *GetHistoryParams, reqEditors ...RequestEditorFn) (*GetHistoryHTTPResponse, error)
// ListRunsWithResponse List Runs
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/sessions/{sid}/runs (the `ListRuns` operationId).
ListRunsWithResponse(ctx context.Context, sid openapi_types.UUID, params *ListRunsParams, reqEditors ...RequestEditorFn) (*ListRunsHTTPResponse, error)
// CreateRunWithBodyWithResponse Create Run
//
// Create a subsequent run. Sessions created with allow_multiple_runs=false reject this operation with 409 multiple_runs_not_allowed. Deleting, deleted or unavailable environments reject new input with 409 session_unavailable; create a new session with the required context. If external sandbox loss is discovered after acceptance, the run fails asynchronously with sandbox_lost. Idempotent replay of an accepted request returns the original acceptance, regardless of sandbox state.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/sessions/{sid}/runs (the `CreateRun` operationId).
CreateRunWithBodyWithResponse(ctx context.Context, sid openapi_types.UUID, params *CreateRunParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRunHTTPResponse, error)
// CreateRunWithResponse Create Run
//
// Create a subsequent run. Sessions created with allow_multiple_runs=false reject this operation with 409 multiple_runs_not_allowed. Deleting, deleted or unavailable environments reject new input with 409 session_unavailable; create a new session with the required context. If external sandbox loss is discovered after acceptance, the run fails asynchronously with sandbox_lost. Idempotent replay of an accepted request returns the original acceptance, regardless of sandbox state.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/sessions/{sid}/runs (the `CreateRun` operationId).
CreateRunWithResponse(ctx context.Context, sid openapi_types.UUID, params *CreateRunParams, body CreateRunJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRunHTTPResponse, error)
// GetRunWithResponse Read Run
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/sessions/{sid}/runs/{rid} (the `GetRun` operationId).
GetRunWithResponse(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRunHTTPResponse, error)
// CancelRunWithResponse Cancel Run
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/sessions/{sid}/runs/{rid}/cancel (the `CancelRun` operationId).
CancelRunWithResponse(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, reqEditors ...RequestEditorFn) (*CancelRunHTTPResponse, error)
// SendMessageWithBodyWithResponse Send Message
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/sessions/{sid}/runs/{rid}/messages (the `SendMessage` operationId).
SendMessageWithBodyWithResponse(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, params *SendMessageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendMessageHTTPResponse, error)
// SendMessageWithResponse Send Message
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/sessions/{sid}/runs/{rid}/messages (the `SendMessage` operationId).
SendMessageWithResponse(ctx context.Context, sid openapi_types.UUID, rid openapi_types.UUID, params *SendMessageParams, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SendMessageHTTPResponse, error)
// GetTemplatesWithResponse List registered templates
//
// Database catalog ordered by (name, id). Filters are bound to opaque forward/backward cursors; no provider calls. New sessions require an exact active name from this catalog. Changes do not affect accepted sessions or idempotent replays.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/templates (the `GetTemplates` operationId).
GetTemplatesWithResponse(ctx context.Context, params *GetTemplatesParams, reqEditors ...RequestEditorFn) (*GetTemplatesHTTPResponse, error)
// CreateTemplateWithBodyWithResponse Register an own-project AgentBox template
//
// Requires successful alias and tag lookups. Browser writes require the configured Origin and X-Orpheus-CSRF header set to 1. Active records become available to new sessions immediately, without restarting API or worker.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/templates (the `CreateTemplate` operationId).
CreateTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTemplateHTTPResponse, error)
// CreateTemplateWithResponse Register an own-project AgentBox template
//
// Requires successful alias and tag lookups. Browser writes require the configured Origin and X-Orpheus-CSRF header set to 1. Active records become available to new sessions immediately, without restarting API or worker.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/templates (the `CreateTemplate` operationId).
CreateTemplateWithResponse(ctx context.Context, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTemplateHTTPResponse, error)
// DeleteTemplateWithResponse Delete an Orpheus catalog record
//
// Does not modify AgentBox or accepted sessions. Browser writes require Origin and X-Orpheus-CSRF.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v1/templates/{id} (the `DeleteTemplate` operationId).
DeleteTemplateWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTemplateHTTPResponse, error)
// GetTemplateWithResponse Read a registered template
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/templates/{id} (the `GetTemplate` operationId).
GetTemplateWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTemplateHTTPResponse, error)
// UpdateTemplateWithBodyWithResponse Update template activity or description
//
// Name and tag are immutable. Empty or whitespace-only descriptions become null. No AgentBox lookup. Browser writes require Origin and X-Orpheus-CSRF.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/v1/templates/{id} (the `UpdateTemplate` operationId).
UpdateTemplateWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemplateHTTPResponse, error)
// UpdateTemplateWithResponse Update template activity or description
//
// Name and tag are immutable. Empty or whitespace-only descriptions become null. No AgentBox lookup. Browser writes require Origin and X-Orpheus-CSRF.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/v1/templates/{id} (the `UpdateTemplate` operationId).
UpdateTemplateWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemplateHTTPResponse, error)
// BrowserCallbackWithResponse Consume a signed SAML HTTP-POST response
//
// SAML mode only. Body is application/x-www-form-urlencoded with exactly one SAMLResponse and RelayState, at most 1 MiB. One-time request and browser nonce are required. Unsolicited responses are rejected.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /auth/callback (the `BrowserCallback` operationId).
BrowserCallbackWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BrowserCallbackHTTPResponse, error)
// BrowserLoginWithResponse Start SP-initiated SAML login
//
// SAML mode only; otherwise 404 auth_not_enabled. next must be a local absolute path (not auth routes); default /api/v1/auth/session. No Host or proxy header trust.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /auth/login (the `BrowserLogin` operationId).
BrowserLoginWithResponse(ctx context.Context, params *BrowserLoginParams, reqEditors ...RequestEditorFn) (*BrowserLoginHTTPResponse, error)
// BrowserLogoutWithResponse Revoke the local browser session
//
// Requires the configured Origin and X-Orpheus-CSRF header equal to 1. Idempotent; clears the cookie. Does not terminate the IdP session.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /auth/logout (the `BrowserLogout` operationId).
BrowserLogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BrowserLogoutHTTPResponse, error)
// SamlMetadataWithResponse Read service provider metadata
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /saml/metadata (the `SamlMetadata` operationId).
SamlMetadataWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SamlMetadataHTTPResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CodexProfile ¶ added in v0.5.0
type CodexProfile struct {
Effort *CodexProfileEffort `json:"effort,omitempty"`
Personality *CodexProfilePersonality `json:"personality,omitempty"`
ServiceTier *string `json:"service_tier,omitempty"`
Summary *CodexProfileSummary `json:"summary,omitempty"`
}
CodexProfile defines model for CodexProfile.
type CodexProfileEffort ¶ added in v0.5.0
type CodexProfileEffort string
CodexProfileEffort defines model for CodexProfile.Effort.
const ( CodexProfileEffortHigh CodexProfileEffort = "high" CodexProfileEffortLow CodexProfileEffort = "low" CodexProfileEffortMax CodexProfileEffort = "max" CodexProfileEffortMedium CodexProfileEffort = "medium" CodexProfileEffortMinimal CodexProfileEffort = "minimal" CodexProfileEffortNone CodexProfileEffort = "none" CodexProfileEffortUltra CodexProfileEffort = "ultra" CodexProfileEffortXhigh CodexProfileEffort = "xhigh" )
Defines values for CodexProfileEffort.
func (CodexProfileEffort) Valid ¶ added in v0.5.0
func (e CodexProfileEffort) Valid() bool
Valid indicates whether the value is a known member of the CodexProfileEffort enum.
type CodexProfilePersonality ¶ added in v0.5.0
type CodexProfilePersonality string
CodexProfilePersonality defines model for CodexProfile.Personality.
const ( CodexProfilePersonalityFriendly CodexProfilePersonality = "friendly" CodexProfilePersonalityNone CodexProfilePersonality = "none" CodexProfilePersonalityPragmatic CodexProfilePersonality = "pragmatic" )
Defines values for CodexProfilePersonality.
func (CodexProfilePersonality) Valid ¶ added in v0.5.0
func (e CodexProfilePersonality) Valid() bool
Valid indicates whether the value is a known member of the CodexProfilePersonality enum.
type CodexProfileSummary ¶ added in v0.5.0
type CodexProfileSummary string
CodexProfileSummary defines model for CodexProfile.Summary.
const ( CodexProfileSummaryAuto CodexProfileSummary = "auto" CodexProfileSummaryConcise CodexProfileSummary = "concise" CodexProfileSummaryDetailed CodexProfileSummary = "detailed" CodexProfileSummaryNone CodexProfileSummary = "none" )
Defines values for CodexProfileSummary.
func (CodexProfileSummary) Valid ¶ added in v0.5.0
func (e CodexProfileSummary) Valid() bool
Valid indicates whether the value is a known member of the CodexProfileSummary enum.
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 CreateLLMAccount ¶ added in v0.15.0
type CreateLLMAccount = json.RawMessage
CreateLLMAccount defines model for CreateLLMAccount.
type CreateLlmAccountHTTPResponse ¶ added in v0.15.0
type CreateLlmAccountHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *LLMAccountDetails
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseCreateLlmAccountHTTPResponse ¶ added in v0.15.0
func ParseCreateLlmAccountHTTPResponse(rsp *http.Response) (*CreateLlmAccountHTTPResponse, error)
ParseCreateLlmAccountHTTPResponse parses an HTTP response from a CreateLlmAccountWithResponse call
func (CreateLlmAccountHTTPResponse) ContentType ¶ added in v0.15.0
func (r CreateLlmAccountHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateLlmAccountHTTPResponse) GetBody ¶ added in v0.15.0
func (r CreateLlmAccountHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateLlmAccountHTTPResponse) GetJSON201 ¶ added in v0.15.0
func (r CreateLlmAccountHTTPResponse) GetJSON201() *LLMAccountDetails
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateLlmAccountHTTPResponse) GetJSONDefault ¶ added in v0.15.0
func (r CreateLlmAccountHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (CreateLlmAccountHTTPResponse) Status ¶ added in v0.15.0
func (r CreateLlmAccountHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CreateLlmAccountHTTPResponse) StatusCode ¶ added in v0.15.0
func (r CreateLlmAccountHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateLlmAccountJSONRequestBody ¶ added in v0.15.0
type CreateLlmAccountJSONRequestBody = CreateLLMAccount
CreateLlmAccountJSONRequestBody defines body for CreateLlmAccount for application/json ContentType.
type CreateProfile ¶ added in v0.15.0
type CreateProfile struct {
AccountID openapi_types.UUID `json:"account_id"`
Active *bool `json:"active,omitempty"`
Codex *CodexProfile `json:"codex,omitempty"`
Description *string `json:"description,omitempty"`
Instructions *string `json:"instructions,omitempty"`
Model string `json:"model"`
Name string `json:"name"`
}
CreateProfile defines model for CreateProfile.
type CreateProfileHTTPResponse ¶ added in v0.15.0
type CreateProfileHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Profile
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseCreateProfileHTTPResponse ¶ added in v0.15.0
func ParseCreateProfileHTTPResponse(rsp *http.Response) (*CreateProfileHTTPResponse, error)
ParseCreateProfileHTTPResponse parses an HTTP response from a CreateProfileWithResponse call
func (CreateProfileHTTPResponse) ContentType ¶ added in v0.15.0
func (r CreateProfileHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateProfileHTTPResponse) GetBody ¶ added in v0.15.0
func (r CreateProfileHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateProfileHTTPResponse) GetJSON201 ¶ added in v0.15.0
func (r CreateProfileHTTPResponse) GetJSON201() *Profile
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateProfileHTTPResponse) GetJSONDefault ¶ added in v0.15.0
func (r CreateProfileHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (CreateProfileHTTPResponse) Status ¶ added in v0.15.0
func (r CreateProfileHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CreateProfileHTTPResponse) StatusCode ¶ added in v0.15.0
func (r CreateProfileHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateProfileJSONRequestBody ¶ added in v0.15.0
type CreateProfileJSONRequestBody = CreateProfile
CreateProfileJSONRequestBody defines body for CreateProfile for application/json ContentType.
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"`
// Services Services available only to this run's before_run and after_run hooks, as with run env_from. Never passed to the harness, after_create, or before_remove.
Services *ServiceCodes `json:"services,omitempty"`
}
CreateRun defines model for CreateRun.
type CreateRunHTTPResponse ¶
type CreateRunHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *Accepted
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ErrorResponse
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *ErrorResponse
// JSON415 the response for an HTTP 415 `application/json` response
JSON415 *ErrorResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
// Headers202 the parsed response headers for an HTTP 202 response
Headers202 *CreateRunHTTPResponse202Headers
}
func ParseCreateRunHTTPResponse ¶
func ParseCreateRunHTTPResponse(rsp *http.Response) (*CreateRunHTTPResponse, error)
ParseCreateRunHTTPResponse parses an HTTP response from a CreateRunWithResponse call
func (CreateRunHTTPResponse) ContentType ¶
func (r CreateRunHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateRunHTTPResponse) GetBody ¶
func (r CreateRunHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateRunHTTPResponse) GetJSON202 ¶
func (r CreateRunHTTPResponse) GetJSON202() *Accepted
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (CreateRunHTTPResponse) GetJSON400 ¶
func (r CreateRunHTTPResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateRunHTTPResponse) GetJSON401 ¶
func (r CreateRunHTTPResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CreateRunHTTPResponse) GetJSON403 ¶ added in v0.1.7
func (r CreateRunHTTPResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CreateRunHTTPResponse) GetJSON404 ¶
func (r CreateRunHTTPResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (CreateRunHTTPResponse) GetJSON409 ¶
func (r CreateRunHTTPResponse) GetJSON409() *ErrorResponse
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CreateRunHTTPResponse) GetJSON413 ¶
func (r CreateRunHTTPResponse) GetJSON413() *ErrorResponse
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (CreateRunHTTPResponse) GetJSON415 ¶
func (r CreateRunHTTPResponse) GetJSON415() *ErrorResponse
GetJSON415 returns the response for an HTTP 415 `application/json` response
func (CreateRunHTTPResponse) GetJSON422 ¶
func (r CreateRunHTTPResponse) GetJSON422() *ErrorResponse
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (CreateRunHTTPResponse) GetJSON503 ¶
func (r CreateRunHTTPResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (CreateRunHTTPResponse) Status ¶
func (r CreateRunHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CreateRunHTTPResponse) StatusCode ¶
func (r CreateRunHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateRunHTTPResponse202Headers ¶
type CreateRunHTTPResponse202Headers struct {
Location string
}
CreateRunHTTPResponse202Headers the declared response headers of an HTTP 202 response for CreateRun
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 CreateSession ¶
type CreateSession struct {
// AllowMultipleRuns Immutable session policy. If false, only the run created with the session is allowed and its sandbox is deleted after completion, failure or cancellation. If true, the sandbox is paused for subsequent runs until its retention period expires. Recovery and messages within the current run are allowed in either mode.
AllowMultipleRuns *bool `json:"allow_multiple_runs,omitempty"`
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"`
// Services Services available only to this run's before_run and after_run hooks, as with run env_from. Never passed to the harness, after_create, or before_remove.
Services *ServiceCodes `json:"services,omitempty"`
}
CreateSession defines model for CreateSession.
type CreateSessionHTTPResponse ¶
type CreateSessionHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *Accepted
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ErrorResponse
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *ErrorResponse
// JSON415 the response for an HTTP 415 `application/json` response
JSON415 *ErrorResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
// Headers202 the parsed response headers for an HTTP 202 response
Headers202 *CreateSessionHTTPResponse202Headers
}
func ParseCreateSessionHTTPResponse ¶
func ParseCreateSessionHTTPResponse(rsp *http.Response) (*CreateSessionHTTPResponse, error)
ParseCreateSessionHTTPResponse parses an HTTP response from a CreateSessionWithResponse call
func (CreateSessionHTTPResponse) ContentType ¶
func (r CreateSessionHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateSessionHTTPResponse) GetBody ¶
func (r CreateSessionHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateSessionHTTPResponse) GetJSON202 ¶
func (r CreateSessionHTTPResponse) GetJSON202() *Accepted
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (CreateSessionHTTPResponse) GetJSON400 ¶
func (r CreateSessionHTTPResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateSessionHTTPResponse) GetJSON401 ¶
func (r CreateSessionHTTPResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CreateSessionHTTPResponse) GetJSON403 ¶ added in v0.1.7
func (r CreateSessionHTTPResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CreateSessionHTTPResponse) GetJSON404 ¶
func (r CreateSessionHTTPResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (CreateSessionHTTPResponse) GetJSON409 ¶
func (r CreateSessionHTTPResponse) GetJSON409() *ErrorResponse
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CreateSessionHTTPResponse) GetJSON413 ¶
func (r CreateSessionHTTPResponse) GetJSON413() *ErrorResponse
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (CreateSessionHTTPResponse) GetJSON415 ¶
func (r CreateSessionHTTPResponse) GetJSON415() *ErrorResponse
GetJSON415 returns the response for an HTTP 415 `application/json` response
func (CreateSessionHTTPResponse) GetJSON422 ¶
func (r CreateSessionHTTPResponse) GetJSON422() *ErrorResponse
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (CreateSessionHTTPResponse) GetJSON503 ¶
func (r CreateSessionHTTPResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (CreateSessionHTTPResponse) Status ¶
func (r CreateSessionHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSessionHTTPResponse) StatusCode ¶
func (r CreateSessionHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSessionHTTPResponse202Headers ¶
type CreateSessionHTTPResponse202Headers struct {
Location string
}
CreateSessionHTTPResponse202Headers the declared response headers of an HTTP 202 response for CreateSession
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 CreateTemplate ¶ added in v0.11.0
type CreateTemplate struct {
Active *bool `json:"active,omitempty"`
Description *string `json:"description,omitempty"`
// Tag Normalized to lowercase; UUID build references are rejected. Omission or null checks default but stores an untagged reference.
Tag *string `json:"tag,omitempty"`
// TemplateName Own-project alias, optionally prefixed by its team slug. Normalized to lowercase.
TemplateName string `json:"template_name"`
}
CreateTemplate defines model for CreateTemplate.
type CreateTemplateHTTPResponse ¶ added in v0.11.0
type CreateTemplateHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Template
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseCreateTemplateHTTPResponse ¶ added in v0.11.0
func ParseCreateTemplateHTTPResponse(rsp *http.Response) (*CreateTemplateHTTPResponse, error)
ParseCreateTemplateHTTPResponse parses an HTTP response from a CreateTemplateWithResponse call
func (CreateTemplateHTTPResponse) ContentType ¶ added in v0.11.0
func (r CreateTemplateHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateTemplateHTTPResponse) GetBody ¶ added in v0.11.0
func (r CreateTemplateHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateTemplateHTTPResponse) GetJSON201 ¶ added in v0.11.0
func (r CreateTemplateHTTPResponse) GetJSON201() *Template
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateTemplateHTTPResponse) GetJSONDefault ¶ added in v0.11.0
func (r CreateTemplateHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (CreateTemplateHTTPResponse) Status ¶ added in v0.11.0
func (r CreateTemplateHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CreateTemplateHTTPResponse) StatusCode ¶ added in v0.11.0
func (r CreateTemplateHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateTemplateJSONRequestBody ¶ added in v0.11.0
type CreateTemplateJSONRequestBody = CreateTemplate
CreateTemplateJSONRequestBody defines body for CreateTemplate for application/json ContentType.
type CredentialStores ¶ added in v0.15.0
type CredentialStores struct {
Items []string `json:"items"`
}
CredentialStores defines model for CredentialStores.
type DeleteLlmAccountHTTPResponse ¶ added in v0.15.0
type DeleteLlmAccountHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteLlmAccountHTTPResponse ¶ added in v0.15.0
func ParseDeleteLlmAccountHTTPResponse(rsp *http.Response) (*DeleteLlmAccountHTTPResponse, error)
ParseDeleteLlmAccountHTTPResponse parses an HTTP response from a DeleteLlmAccountWithResponse call
func (DeleteLlmAccountHTTPResponse) ContentType ¶ added in v0.15.0
func (r DeleteLlmAccountHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteLlmAccountHTTPResponse) GetBody ¶ added in v0.15.0
func (r DeleteLlmAccountHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteLlmAccountHTTPResponse) GetJSONDefault ¶ added in v0.15.0
func (r DeleteLlmAccountHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteLlmAccountHTTPResponse) Status ¶ added in v0.15.0
func (r DeleteLlmAccountHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteLlmAccountHTTPResponse) StatusCode ¶ added in v0.15.0
func (r DeleteLlmAccountHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteProfileHTTPResponse ¶ added in v0.15.0
type DeleteProfileHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteProfileHTTPResponse ¶ added in v0.15.0
func ParseDeleteProfileHTTPResponse(rsp *http.Response) (*DeleteProfileHTTPResponse, error)
ParseDeleteProfileHTTPResponse parses an HTTP response from a DeleteProfileWithResponse call
func (DeleteProfileHTTPResponse) ContentType ¶ added in v0.15.0
func (r DeleteProfileHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteProfileHTTPResponse) GetBody ¶ added in v0.15.0
func (r DeleteProfileHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteProfileHTTPResponse) GetJSONDefault ¶ added in v0.15.0
func (r DeleteProfileHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteProfileHTTPResponse) Status ¶ added in v0.15.0
func (r DeleteProfileHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteProfileHTTPResponse) StatusCode ¶ added in v0.15.0
func (r DeleteProfileHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteTemplateHTTPResponse ¶ added in v0.11.0
type DeleteTemplateHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseDeleteTemplateHTTPResponse ¶ added in v0.11.0
func ParseDeleteTemplateHTTPResponse(rsp *http.Response) (*DeleteTemplateHTTPResponse, error)
ParseDeleteTemplateHTTPResponse parses an HTTP response from a DeleteTemplateWithResponse call
func (DeleteTemplateHTTPResponse) ContentType ¶ added in v0.11.0
func (r DeleteTemplateHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteTemplateHTTPResponse) GetBody ¶ added in v0.11.0
func (r DeleteTemplateHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteTemplateHTTPResponse) GetJSONDefault ¶ added in v0.11.0
func (r DeleteTemplateHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (DeleteTemplateHTTPResponse) Status ¶ added in v0.11.0
func (r DeleteTemplateHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteTemplateHTTPResponse) StatusCode ¶ added in v0.11.0
func (r DeleteTemplateHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Error ¶
type Error struct {
Code string `json:"code"`
Details []ErrorDetail `json:"details"`
// DiagnosticID Identifier of the internal diagnostic log for this error, when available. It does not grant access to logs.
DiagnosticID *openapi_types.UUID `json:"diagnostic_id,omitempty"`
// Message Human-readable error message. Harness execution failures include the original harness message and additional details when available; otherwise a generic message is returned.
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 ( AccountInactive ErrorDetailCode = "account_inactive" InvalidType ErrorDetailCode = "invalid_type" InvalidValue ErrorDetailCode = "invalid_value" ProfileInactive ErrorDetailCode = "profile_inactive" ProfileNotFound ErrorDetailCode = "profile_not_found" Required ErrorDetailCode = "required" TagNotFound ErrorDetailCode = "tag_not_found" TemplateForbidden ErrorDetailCode = "template_forbidden" TemplateInactive ErrorDetailCode = "template_inactive" TemplateNotFound ErrorDetailCode = "template_not_found" 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 ¶
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 (*Event) FromMessageEvent ¶
func (t *Event) FromMessageEvent(v MessageEvent) error
FromMessageEvent overwrites any union data inside the Event as the provided MessageEvent
func (*Event) FromRunEvent ¶
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 (*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 ¶
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 (Event) ValueByDiscriminator ¶
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 GetAccountLimitsHTTPResponse ¶ added in v0.1.7
type GetAccountLimitsHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AccountLimits
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetAccountLimitsHTTPResponse ¶ added in v0.1.7
func ParseGetAccountLimitsHTTPResponse(rsp *http.Response) (*GetAccountLimitsHTTPResponse, error)
ParseGetAccountLimitsHTTPResponse parses an HTTP response from a GetAccountLimitsWithResponse call
func (GetAccountLimitsHTTPResponse) ContentType ¶ added in v0.1.7
func (r GetAccountLimitsHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAccountLimitsHTTPResponse) GetBody ¶ added in v0.1.7
func (r GetAccountLimitsHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAccountLimitsHTTPResponse) GetJSON200 ¶ added in v0.1.7
func (r GetAccountLimitsHTTPResponse) GetJSON200() *AccountLimits
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAccountLimitsHTTPResponse) GetJSON401 ¶ added in v0.1.7
func (r GetAccountLimitsHTTPResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetAccountLimitsHTTPResponse) GetJSON503 ¶ added in v0.1.7
func (r GetAccountLimitsHTTPResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (GetAccountLimitsHTTPResponse) GetJSONDefault ¶ added in v0.15.0
func (r GetAccountLimitsHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetAccountLimitsHTTPResponse) Status ¶ added in v0.1.7
func (r GetAccountLimitsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetAccountLimitsHTTPResponse) StatusCode ¶ added in v0.1.7
func (r GetAccountLimitsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAccountLimitsParams ¶ added in v0.15.0
type GetAccountLimitsParams struct {
// AccountIds Comma-separated account UUIDs. Omit to read all account-file identities.
AccountIds *[]openapi_types.UUID `form:"account_ids,omitempty" json:"account_ids,omitempty"`
}
GetAccountLimitsParams defines parameters for GetAccountLimits.
type GetAnalyticsOverviewHTTPResponse ¶ added in v0.1.7
type GetAnalyticsOverviewHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AnalyticsOverview
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
}
func ParseGetAnalyticsOverviewHTTPResponse ¶ added in v0.1.7
func ParseGetAnalyticsOverviewHTTPResponse(rsp *http.Response) (*GetAnalyticsOverviewHTTPResponse, error)
ParseGetAnalyticsOverviewHTTPResponse parses an HTTP response from a GetAnalyticsOverviewWithResponse call
func (GetAnalyticsOverviewHTTPResponse) ContentType ¶ added in v0.1.7
func (r GetAnalyticsOverviewHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAnalyticsOverviewHTTPResponse) GetBody ¶ added in v0.1.7
func (r GetAnalyticsOverviewHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAnalyticsOverviewHTTPResponse) GetJSON200 ¶ added in v0.1.7
func (r GetAnalyticsOverviewHTTPResponse) GetJSON200() *AnalyticsOverview
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAnalyticsOverviewHTTPResponse) GetJSON401 ¶ added in v0.1.7
func (r GetAnalyticsOverviewHTTPResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetAnalyticsOverviewHTTPResponse) GetJSON422 ¶ added in v0.1.7
func (r GetAnalyticsOverviewHTTPResponse) GetJSON422() *ErrorResponse
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetAnalyticsOverviewHTTPResponse) GetJSON503 ¶ added in v0.1.7
func (r GetAnalyticsOverviewHTTPResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (GetAnalyticsOverviewHTTPResponse) Status ¶ added in v0.1.7
func (r GetAnalyticsOverviewHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetAnalyticsOverviewHTTPResponse) StatusCode ¶ added in v0.1.7
func (r GetAnalyticsOverviewHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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
func (e GetAnalyticsOverviewParamsBucket) Valid() bool
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.
const ( N24H GetAnalyticsOverviewParamsWindow = "24h" N30D GetAnalyticsOverviewParamsWindow = "30d" N7D GetAnalyticsOverviewParamsWindow = "7d" )
Defines values for GetAnalyticsOverviewParamsWindow.
func (GetAnalyticsOverviewParamsWindow) Valid ¶ added in v0.1.7
func (e GetAnalyticsOverviewParamsWindow) Valid() bool
Valid indicates whether the value is a known member of the GetAnalyticsOverviewParamsWindow enum.
type GetAuthFileHTTPResponse ¶ added in v0.15.0
type GetAuthFileHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AuthFile
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetAuthFileHTTPResponse200Headers
}
func ParseGetAuthFileHTTPResponse ¶ added in v0.15.0
func ParseGetAuthFileHTTPResponse(rsp *http.Response) (*GetAuthFileHTTPResponse, error)
ParseGetAuthFileHTTPResponse parses an HTTP response from a GetAuthFileWithResponse call
func (GetAuthFileHTTPResponse) ContentType ¶ added in v0.15.0
func (r GetAuthFileHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAuthFileHTTPResponse) GetBody ¶ added in v0.15.0
func (r GetAuthFileHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAuthFileHTTPResponse) GetJSON200 ¶ added in v0.15.0
func (r GetAuthFileHTTPResponse) GetJSON200() *AuthFile
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAuthFileHTTPResponse) GetJSONDefault ¶ added in v0.15.0
func (r GetAuthFileHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetAuthFileHTTPResponse) Status ¶ added in v0.15.0
func (r GetAuthFileHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetAuthFileHTTPResponse) StatusCode ¶ added in v0.15.0
func (r GetAuthFileHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAuthFileHTTPResponse200Headers ¶ added in v0.15.0
GetAuthFileHTTPResponse200Headers the declared response headers of an HTTP 200 response for GetAuthFile
type GetCredentialStoresHTTPResponse ¶ added in v0.15.0
type GetCredentialStoresHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CredentialStores
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetCredentialStoresHTTPResponse ¶ added in v0.15.0
func ParseGetCredentialStoresHTTPResponse(rsp *http.Response) (*GetCredentialStoresHTTPResponse, error)
ParseGetCredentialStoresHTTPResponse parses an HTTP response from a GetCredentialStoresWithResponse call
func (GetCredentialStoresHTTPResponse) ContentType ¶ added in v0.15.0
func (r GetCredentialStoresHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetCredentialStoresHTTPResponse) GetBody ¶ added in v0.15.0
func (r GetCredentialStoresHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetCredentialStoresHTTPResponse) GetJSON200 ¶ added in v0.15.0
func (r GetCredentialStoresHTTPResponse) GetJSON200() *CredentialStores
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetCredentialStoresHTTPResponse) GetJSONDefault ¶ added in v0.15.0
func (r GetCredentialStoresHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetCredentialStoresHTTPResponse) Status ¶ added in v0.15.0
func (r GetCredentialStoresHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetCredentialStoresHTTPResponse) StatusCode ¶ added in v0.15.0
func (r GetCredentialStoresHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEventsHTTPResponse ¶
type GetEventsHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EventPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ErrorResponse
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *ErrorResponse
// JSON415 the response for an HTTP 415 `application/json` response
JSON415 *ErrorResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
}
func ParseGetEventsHTTPResponse ¶
func ParseGetEventsHTTPResponse(rsp *http.Response) (*GetEventsHTTPResponse, error)
ParseGetEventsHTTPResponse parses an HTTP response from a GetEventsWithResponse call
func (GetEventsHTTPResponse) ContentType ¶
func (r GetEventsHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetEventsHTTPResponse) GetBody ¶
func (r GetEventsHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetEventsHTTPResponse) GetJSON200 ¶
func (r GetEventsHTTPResponse) GetJSON200() *EventPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetEventsHTTPResponse) GetJSON400 ¶
func (r GetEventsHTTPResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetEventsHTTPResponse) GetJSON401 ¶
func (r GetEventsHTTPResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetEventsHTTPResponse) GetJSON404 ¶
func (r GetEventsHTTPResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetEventsHTTPResponse) GetJSON409 ¶
func (r GetEventsHTTPResponse) GetJSON409() *ErrorResponse
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (GetEventsHTTPResponse) GetJSON413 ¶
func (r GetEventsHTTPResponse) GetJSON413() *ErrorResponse
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (GetEventsHTTPResponse) GetJSON415 ¶
func (r GetEventsHTTPResponse) GetJSON415() *ErrorResponse
GetJSON415 returns the response for an HTTP 415 `application/json` response
func (GetEventsHTTPResponse) GetJSON422 ¶
func (r GetEventsHTTPResponse) GetJSON422() *ErrorResponse
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetEventsHTTPResponse) GetJSON503 ¶
func (r GetEventsHTTPResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (GetEventsHTTPResponse) Status ¶
func (r GetEventsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetEventsHTTPResponse) StatusCode ¶
func (r GetEventsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 GetHistoryHTTPResponse ¶
type GetHistoryHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *HistoryPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ErrorResponse
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *ErrorResponse
// JSON415 the response for an HTTP 415 `application/json` response
JSON415 *ErrorResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
}
func ParseGetHistoryHTTPResponse ¶
func ParseGetHistoryHTTPResponse(rsp *http.Response) (*GetHistoryHTTPResponse, error)
ParseGetHistoryHTTPResponse parses an HTTP response from a GetHistoryWithResponse call
func (GetHistoryHTTPResponse) ContentType ¶
func (r GetHistoryHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoryHTTPResponse) GetBody ¶
func (r GetHistoryHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoryHTTPResponse) GetJSON200 ¶
func (r GetHistoryHTTPResponse) GetJSON200() *HistoryPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetHistoryHTTPResponse) GetJSON400 ¶
func (r GetHistoryHTTPResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetHistoryHTTPResponse) GetJSON401 ¶
func (r GetHistoryHTTPResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetHistoryHTTPResponse) GetJSON404 ¶
func (r GetHistoryHTTPResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetHistoryHTTPResponse) GetJSON409 ¶
func (r GetHistoryHTTPResponse) GetJSON409() *ErrorResponse
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (GetHistoryHTTPResponse) GetJSON413 ¶
func (r GetHistoryHTTPResponse) GetJSON413() *ErrorResponse
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (GetHistoryHTTPResponse) GetJSON415 ¶
func (r GetHistoryHTTPResponse) GetJSON415() *ErrorResponse
GetJSON415 returns the response for an HTTP 415 `application/json` response
func (GetHistoryHTTPResponse) GetJSON422 ¶
func (r GetHistoryHTTPResponse) GetJSON422() *ErrorResponse
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetHistoryHTTPResponse) GetJSON503 ¶
func (r GetHistoryHTTPResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (GetHistoryHTTPResponse) Status ¶
func (r GetHistoryHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoryHTTPResponse) StatusCode ¶
func (r GetHistoryHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 GetLlmAccountHTTPResponse ¶ added in v0.15.0
type GetLlmAccountHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LLMAccountDetails
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetLlmAccountHTTPResponse ¶ added in v0.15.0
func ParseGetLlmAccountHTTPResponse(rsp *http.Response) (*GetLlmAccountHTTPResponse, error)
ParseGetLlmAccountHTTPResponse parses an HTTP response from a GetLlmAccountWithResponse call
func (GetLlmAccountHTTPResponse) ContentType ¶ added in v0.15.0
func (r GetLlmAccountHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLlmAccountHTTPResponse) GetBody ¶ added in v0.15.0
func (r GetLlmAccountHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetLlmAccountHTTPResponse) GetJSON200 ¶ added in v0.15.0
func (r GetLlmAccountHTTPResponse) GetJSON200() *LLMAccountDetails
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetLlmAccountHTTPResponse) GetJSONDefault ¶ added in v0.15.0
func (r GetLlmAccountHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetLlmAccountHTTPResponse) Status ¶ added in v0.15.0
func (r GetLlmAccountHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetLlmAccountHTTPResponse) StatusCode ¶ added in v0.15.0
func (r GetLlmAccountHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLlmAccountsHTTPResponse ¶ added in v0.15.0
type GetLlmAccountsHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LLMAccounts
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetLlmAccountsHTTPResponse ¶ added in v0.15.0
func ParseGetLlmAccountsHTTPResponse(rsp *http.Response) (*GetLlmAccountsHTTPResponse, error)
ParseGetLlmAccountsHTTPResponse parses an HTTP response from a GetLlmAccountsWithResponse call
func (GetLlmAccountsHTTPResponse) ContentType ¶ added in v0.15.0
func (r GetLlmAccountsHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLlmAccountsHTTPResponse) GetBody ¶ added in v0.15.0
func (r GetLlmAccountsHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetLlmAccountsHTTPResponse) GetJSON200 ¶ added in v0.15.0
func (r GetLlmAccountsHTTPResponse) GetJSON200() *LLMAccounts
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetLlmAccountsHTTPResponse) GetJSONDefault ¶ added in v0.15.0
func (r GetLlmAccountsHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetLlmAccountsHTTPResponse) Status ¶ added in v0.15.0
func (r GetLlmAccountsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetLlmAccountsHTTPResponse) StatusCode ¶ added in v0.15.0
func (r GetLlmAccountsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLlmAccountsParams ¶ added in v0.15.0
type GetLlmAccountsParams struct {
Active *bool `form:"active,omitempty" json:"active,omitempty"`
// Name Exact case-sensitive name. Incompatible with name_contains.
Name *string `form:"name,omitempty" json:"name,omitempty"`
// NameContains Literal case-insensitive substring. Incompatible with name.
NameContains *string `form:"name_contains,omitempty" json:"name_contains,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}
GetLlmAccountsParams defines parameters for GetLlmAccounts.
type GetProfileHTTPResponse ¶ added in v0.15.0
type GetProfileHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Profile
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetProfileHTTPResponse ¶ added in v0.15.0
func ParseGetProfileHTTPResponse(rsp *http.Response) (*GetProfileHTTPResponse, error)
ParseGetProfileHTTPResponse parses an HTTP response from a GetProfileWithResponse call
func (GetProfileHTTPResponse) ContentType ¶ added in v0.15.0
func (r GetProfileHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetProfileHTTPResponse) GetBody ¶ added in v0.15.0
func (r GetProfileHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetProfileHTTPResponse) GetJSON200 ¶ added in v0.15.0
func (r GetProfileHTTPResponse) GetJSON200() *Profile
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetProfileHTTPResponse) GetJSONDefault ¶ added in v0.15.0
func (r GetProfileHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetProfileHTTPResponse) Status ¶ added in v0.15.0
func (r GetProfileHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetProfileHTTPResponse) StatusCode ¶ added in v0.15.0
func (r GetProfileHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProfilesHTTPResponse ¶ added in v0.5.0
type GetProfilesHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Profiles
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetProfilesHTTPResponse ¶ added in v0.5.0
func ParseGetProfilesHTTPResponse(rsp *http.Response) (*GetProfilesHTTPResponse, error)
ParseGetProfilesHTTPResponse parses an HTTP response from a GetProfilesWithResponse call
func (GetProfilesHTTPResponse) ContentType ¶ added in v0.5.0
func (r GetProfilesHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetProfilesHTTPResponse) GetBody ¶ added in v0.5.0
func (r GetProfilesHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetProfilesHTTPResponse) GetJSON200 ¶ added in v0.5.0
func (r GetProfilesHTTPResponse) GetJSON200() *Profiles
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetProfilesHTTPResponse) GetJSONDefault ¶ added in v0.15.0
func (r GetProfilesHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetProfilesHTTPResponse) Status ¶ added in v0.5.0
func (r GetProfilesHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetProfilesHTTPResponse) StatusCode ¶ added in v0.5.0
func (r GetProfilesHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProfilesParams ¶ added in v0.15.0
type GetProfilesParams struct {
Active *bool `form:"active,omitempty" json:"active,omitempty"`
// Name Exact case-sensitive name. Incompatible with name_contains.
Name *string `form:"name,omitempty" json:"name,omitempty"`
// NameContains Literal case-insensitive substring. Incompatible with name.
NameContains *string `form:"name_contains,omitempty" json:"name_contains,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
// Available Profile and account activity combined.
Available *bool `form:"available,omitempty" json:"available,omitempty"`
}
GetProfilesParams defines parameters for GetProfiles.
type GetRunHTTPResponse ¶
type GetRunHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Run
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ErrorResponse
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *ErrorResponse
// JSON415 the response for an HTTP 415 `application/json` response
JSON415 *ErrorResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
}
func ParseGetRunHTTPResponse ¶
func ParseGetRunHTTPResponse(rsp *http.Response) (*GetRunHTTPResponse, error)
ParseGetRunHTTPResponse parses an HTTP response from a GetRunWithResponse call
func (GetRunHTTPResponse) ContentType ¶
func (r GetRunHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetRunHTTPResponse) GetBody ¶
func (r GetRunHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetRunHTTPResponse) GetJSON200 ¶
func (r GetRunHTTPResponse) GetJSON200() *Run
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetRunHTTPResponse) GetJSON400 ¶
func (r GetRunHTTPResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetRunHTTPResponse) GetJSON401 ¶
func (r GetRunHTTPResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetRunHTTPResponse) GetJSON404 ¶
func (r GetRunHTTPResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetRunHTTPResponse) GetJSON409 ¶
func (r GetRunHTTPResponse) GetJSON409() *ErrorResponse
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (GetRunHTTPResponse) GetJSON413 ¶
func (r GetRunHTTPResponse) GetJSON413() *ErrorResponse
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (GetRunHTTPResponse) GetJSON415 ¶
func (r GetRunHTTPResponse) GetJSON415() *ErrorResponse
GetJSON415 returns the response for an HTTP 415 `application/json` response
func (GetRunHTTPResponse) GetJSON422 ¶
func (r GetRunHTTPResponse) GetJSON422() *ErrorResponse
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetRunHTTPResponse) GetJSON503 ¶
func (r GetRunHTTPResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (GetRunHTTPResponse) Status ¶
func (r GetRunHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetRunHTTPResponse) StatusCode ¶
func (r GetRunHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetServicesHTTPResponse ¶ added in v0.6.0
type GetServicesHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Services
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
}
func ParseGetServicesHTTPResponse ¶ added in v0.6.0
func ParseGetServicesHTTPResponse(rsp *http.Response) (*GetServicesHTTPResponse, error)
ParseGetServicesHTTPResponse parses an HTTP response from a GetServicesWithResponse call
func (GetServicesHTTPResponse) ContentType ¶ added in v0.6.0
func (r GetServicesHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetServicesHTTPResponse) GetBody ¶ added in v0.6.0
func (r GetServicesHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetServicesHTTPResponse) GetJSON200 ¶ added in v0.6.0
func (r GetServicesHTTPResponse) GetJSON200() *Services
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetServicesHTTPResponse) GetJSON401 ¶ added in v0.6.0
func (r GetServicesHTTPResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetServicesHTTPResponse) GetJSON503 ¶ added in v0.6.0
func (r GetServicesHTTPResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (GetServicesHTTPResponse) Status ¶ added in v0.6.0
func (r GetServicesHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetServicesHTTPResponse) StatusCode ¶ added in v0.6.0
func (r GetServicesHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSessionHTTPResponse ¶
type GetSessionHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Session
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ErrorResponse
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *ErrorResponse
// JSON415 the response for an HTTP 415 `application/json` response
JSON415 *ErrorResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
}
func ParseGetSessionHTTPResponse ¶
func ParseGetSessionHTTPResponse(rsp *http.Response) (*GetSessionHTTPResponse, error)
ParseGetSessionHTTPResponse parses an HTTP response from a GetSessionWithResponse call
func (GetSessionHTTPResponse) ContentType ¶
func (r GetSessionHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSessionHTTPResponse) GetBody ¶
func (r GetSessionHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetSessionHTTPResponse) GetJSON200 ¶
func (r GetSessionHTTPResponse) GetJSON200() *Session
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetSessionHTTPResponse) GetJSON400 ¶
func (r GetSessionHTTPResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetSessionHTTPResponse) GetJSON401 ¶
func (r GetSessionHTTPResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetSessionHTTPResponse) GetJSON404 ¶
func (r GetSessionHTTPResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetSessionHTTPResponse) GetJSON409 ¶
func (r GetSessionHTTPResponse) GetJSON409() *ErrorResponse
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (GetSessionHTTPResponse) GetJSON413 ¶
func (r GetSessionHTTPResponse) GetJSON413() *ErrorResponse
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (GetSessionHTTPResponse) GetJSON415 ¶
func (r GetSessionHTTPResponse) GetJSON415() *ErrorResponse
GetJSON415 returns the response for an HTTP 415 `application/json` response
func (GetSessionHTTPResponse) GetJSON422 ¶
func (r GetSessionHTTPResponse) GetJSON422() *ErrorResponse
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetSessionHTTPResponse) GetJSON503 ¶
func (r GetSessionHTTPResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (GetSessionHTTPResponse) Status ¶
func (r GetSessionHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetSessionHTTPResponse) StatusCode ¶
func (r GetSessionHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTemplateHTTPResponse ¶ added in v0.11.0
type GetTemplateHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Template
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetTemplateHTTPResponse ¶ added in v0.11.0
func ParseGetTemplateHTTPResponse(rsp *http.Response) (*GetTemplateHTTPResponse, error)
ParseGetTemplateHTTPResponse parses an HTTP response from a GetTemplateWithResponse call
func (GetTemplateHTTPResponse) ContentType ¶ added in v0.11.0
func (r GetTemplateHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetTemplateHTTPResponse) GetBody ¶ added in v0.11.0
func (r GetTemplateHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetTemplateHTTPResponse) GetJSON200 ¶ added in v0.11.0
func (r GetTemplateHTTPResponse) GetJSON200() *Template
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetTemplateHTTPResponse) GetJSONDefault ¶ added in v0.11.0
func (r GetTemplateHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetTemplateHTTPResponse) Status ¶ added in v0.11.0
func (r GetTemplateHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetTemplateHTTPResponse) StatusCode ¶ added in v0.11.0
func (r GetTemplateHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTemplatesHTTPResponse ¶ added in v0.5.0
type GetTemplatesHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Templates
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseGetTemplatesHTTPResponse ¶ added in v0.5.0
func ParseGetTemplatesHTTPResponse(rsp *http.Response) (*GetTemplatesHTTPResponse, error)
ParseGetTemplatesHTTPResponse parses an HTTP response from a GetTemplatesWithResponse call
func (GetTemplatesHTTPResponse) ContentType ¶ added in v0.5.0
func (r GetTemplatesHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetTemplatesHTTPResponse) GetBody ¶ added in v0.5.0
func (r GetTemplatesHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetTemplatesHTTPResponse) GetJSON200 ¶ added in v0.5.0
func (r GetTemplatesHTTPResponse) GetJSON200() *Templates
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetTemplatesHTTPResponse) GetJSONDefault ¶ added in v0.11.0
func (r GetTemplatesHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetTemplatesHTTPResponse) Status ¶ added in v0.5.0
func (r GetTemplatesHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetTemplatesHTTPResponse) StatusCode ¶ added in v0.5.0
func (r GetTemplatesHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTemplatesParams ¶ added in v0.11.0
type GetTemplatesParams struct {
Active *bool `form:"active,omitempty" json:"active,omitempty"`
// Name Exact case-sensitive reference. Incompatible with name_contains.
Name *string `form:"name,omitempty" json:"name,omitempty"`
// NameContains Literal case-insensitive substring of the reference. Incompatible with name.
NameContains *string `form:"name_contains,omitempty" json:"name_contains,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}
GetTemplatesParams defines parameters for GetTemplates.
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" HookResultOutputCompletenessUnknown HookResultOutputCompleteness = "unknown" )
Defines values for HookResultOutputCompleteness.
func (HookResultOutputCompleteness) Valid ¶
func (e HookResultOutputCompleteness) Valid() bool
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 sandbox pause or deletion.
AfterRun *string `json:"after_run,omitempty"`
// BeforeRemove Reserved for future use; never called, including before automatic sandbox deletion.
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 HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
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 LLMAccount ¶ added in v0.15.0
type LLMAccount struct {
Active bool `json:"active"`
AuthMode LLMAccountAuthMode `json:"auth_mode"`
CredentialStore *string `json:"credential_store"`
Harness LLMAccountHarness `json:"harness"`
ID openapi_types.UUID `json:"id"`
Name string `json:"name"`
Profiles []string `json:"profiles"`
}
LLMAccount defines model for LLMAccount.
type LLMAccountAuthMode ¶ added in v0.15.0
type LLMAccountAuthMode string
LLMAccountAuthMode defines model for LLMAccount.AuthMode.
const ( LLMAccountAuthModeAPIKey LLMAccountAuthMode = "api_key" LLMAccountAuthModeAccount LLMAccountAuthMode = "account" )
Defines values for LLMAccountAuthMode.
func (LLMAccountAuthMode) Valid ¶ added in v0.15.0
func (e LLMAccountAuthMode) Valid() bool
Valid indicates whether the value is a known member of the LLMAccountAuthMode enum.
type LLMAccountDetails ¶ added in v0.15.0
type LLMAccountDetails struct {
Active bool `json:"active"`
APIKeyMask *string `json:"api_key_mask"`
AuthMode LLMAccountDetailsAuthMode `json:"auth_mode"`
CredentialStore *string `json:"credential_store"`
Harness LLMAccountDetailsHarness `json:"harness"`
ID openapi_types.UUID `json:"id"`
Name string `json:"name"`
Profiles []string `json:"profiles"`
}
LLMAccountDetails defines model for LLMAccountDetails.
type LLMAccountDetailsAuthMode ¶ added in v0.15.0
type LLMAccountDetailsAuthMode string
LLMAccountDetailsAuthMode defines model for LLMAccountDetails.AuthMode.
const ( LLMAccountDetailsAuthModeAPIKey LLMAccountDetailsAuthMode = "api_key" LLMAccountDetailsAuthModeAccount LLMAccountDetailsAuthMode = "account" )
Defines values for LLMAccountDetailsAuthMode.
func (LLMAccountDetailsAuthMode) Valid ¶ added in v0.15.0
func (e LLMAccountDetailsAuthMode) Valid() bool
Valid indicates whether the value is a known member of the LLMAccountDetailsAuthMode enum.
type LLMAccountDetailsHarness ¶ added in v0.15.0
type LLMAccountDetailsHarness string
LLMAccountDetailsHarness defines model for LLMAccountDetails.Harness.
const (
LLMAccountDetailsHarnessCodex LLMAccountDetailsHarness = "codex"
)
Defines values for LLMAccountDetailsHarness.
func (LLMAccountDetailsHarness) Valid ¶ added in v0.15.0
func (e LLMAccountDetailsHarness) Valid() bool
Valid indicates whether the value is a known member of the LLMAccountDetailsHarness enum.
type LLMAccountHarness ¶ added in v0.15.0
type LLMAccountHarness string
LLMAccountHarness defines model for LLMAccount.Harness.
const (
LLMAccountHarnessCodex LLMAccountHarness = "codex"
)
Defines values for LLMAccountHarness.
func (LLMAccountHarness) Valid ¶ added in v0.15.0
func (e LLMAccountHarness) Valid() bool
Valid indicates whether the value is a known member of the LLMAccountHarness enum.
type LLMAccounts ¶ added in v0.15.0
type LLMAccounts struct {
Items []LLMAccount `json:"items"`
NextCursor *string `json:"next_cursor"`
PrevCursor *string `json:"prev_cursor"`
}
LLMAccounts defines model for LLMAccounts.
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 ListAllRunsHTTPResponse ¶
type ListAllRunsHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RunPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ErrorResponse
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *ErrorResponse
// JSON415 the response for an HTTP 415 `application/json` response
JSON415 *ErrorResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
}
func ParseListAllRunsHTTPResponse ¶
func ParseListAllRunsHTTPResponse(rsp *http.Response) (*ListAllRunsHTTPResponse, error)
ParseListAllRunsHTTPResponse parses an HTTP response from a ListAllRunsWithResponse call
func (ListAllRunsHTTPResponse) ContentType ¶
func (r ListAllRunsHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAllRunsHTTPResponse) GetBody ¶
func (r ListAllRunsHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAllRunsHTTPResponse) GetJSON200 ¶
func (r ListAllRunsHTTPResponse) GetJSON200() *RunPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAllRunsHTTPResponse) GetJSON400 ¶
func (r ListAllRunsHTTPResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListAllRunsHTTPResponse) GetJSON401 ¶
func (r ListAllRunsHTTPResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListAllRunsHTTPResponse) GetJSON404 ¶
func (r ListAllRunsHTTPResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListAllRunsHTTPResponse) GetJSON409 ¶
func (r ListAllRunsHTTPResponse) GetJSON409() *ErrorResponse
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (ListAllRunsHTTPResponse) GetJSON413 ¶
func (r ListAllRunsHTTPResponse) GetJSON413() *ErrorResponse
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (ListAllRunsHTTPResponse) GetJSON415 ¶
func (r ListAllRunsHTTPResponse) GetJSON415() *ErrorResponse
GetJSON415 returns the response for an HTTP 415 `application/json` response
func (ListAllRunsHTTPResponse) GetJSON422 ¶
func (r ListAllRunsHTTPResponse) GetJSON422() *ErrorResponse
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (ListAllRunsHTTPResponse) GetJSON503 ¶
func (r ListAllRunsHTTPResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListAllRunsHTTPResponse) Status ¶
func (r ListAllRunsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (ListAllRunsHTTPResponse) StatusCode ¶
func (r ListAllRunsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 ListRunsHTTPResponse ¶
type ListRunsHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RunPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ErrorResponse
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *ErrorResponse
// JSON415 the response for an HTTP 415 `application/json` response
JSON415 *ErrorResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
}
func ParseListRunsHTTPResponse ¶
func ParseListRunsHTTPResponse(rsp *http.Response) (*ListRunsHTTPResponse, error)
ParseListRunsHTTPResponse parses an HTTP response from a ListRunsWithResponse call
func (ListRunsHTTPResponse) ContentType ¶
func (r ListRunsHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListRunsHTTPResponse) GetBody ¶
func (r ListRunsHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListRunsHTTPResponse) GetJSON200 ¶
func (r ListRunsHTTPResponse) GetJSON200() *RunPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListRunsHTTPResponse) GetJSON400 ¶
func (r ListRunsHTTPResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListRunsHTTPResponse) GetJSON401 ¶
func (r ListRunsHTTPResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListRunsHTTPResponse) GetJSON404 ¶
func (r ListRunsHTTPResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListRunsHTTPResponse) GetJSON409 ¶
func (r ListRunsHTTPResponse) GetJSON409() *ErrorResponse
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (ListRunsHTTPResponse) GetJSON413 ¶
func (r ListRunsHTTPResponse) GetJSON413() *ErrorResponse
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (ListRunsHTTPResponse) GetJSON415 ¶
func (r ListRunsHTTPResponse) GetJSON415() *ErrorResponse
GetJSON415 returns the response for an HTTP 415 `application/json` response
func (ListRunsHTTPResponse) GetJSON422 ¶
func (r ListRunsHTTPResponse) GetJSON422() *ErrorResponse
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (ListRunsHTTPResponse) GetJSON503 ¶
func (r ListRunsHTTPResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListRunsHTTPResponse) Status ¶
func (r ListRunsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (ListRunsHTTPResponse) StatusCode ¶
func (r ListRunsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 ListSessionsHTTPResponse ¶
type ListSessionsHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SessionPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ErrorResponse
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *ErrorResponse
// JSON415 the response for an HTTP 415 `application/json` response
JSON415 *ErrorResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
}
func ParseListSessionsHTTPResponse ¶
func ParseListSessionsHTTPResponse(rsp *http.Response) (*ListSessionsHTTPResponse, error)
ParseListSessionsHTTPResponse parses an HTTP response from a ListSessionsWithResponse call
func (ListSessionsHTTPResponse) ContentType ¶
func (r ListSessionsHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSessionsHTTPResponse) GetBody ¶
func (r ListSessionsHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSessionsHTTPResponse) GetJSON200 ¶
func (r ListSessionsHTTPResponse) GetJSON200() *SessionPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSessionsHTTPResponse) GetJSON400 ¶
func (r ListSessionsHTTPResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSessionsHTTPResponse) GetJSON401 ¶
func (r ListSessionsHTTPResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSessionsHTTPResponse) GetJSON404 ¶
func (r ListSessionsHTTPResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSessionsHTTPResponse) GetJSON409 ¶
func (r ListSessionsHTTPResponse) GetJSON409() *ErrorResponse
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (ListSessionsHTTPResponse) GetJSON413 ¶
func (r ListSessionsHTTPResponse) GetJSON413() *ErrorResponse
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (ListSessionsHTTPResponse) GetJSON415 ¶
func (r ListSessionsHTTPResponse) GetJSON415() *ErrorResponse
GetJSON415 returns the response for an HTTP 415 `application/json` response
func (ListSessionsHTTPResponse) GetJSON422 ¶
func (r ListSessionsHTTPResponse) GetJSON422() *ErrorResponse
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (ListSessionsHTTPResponse) GetJSON503 ¶
func (r ListSessionsHTTPResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (ListSessionsHTTPResponse) Status ¶
func (r ListSessionsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (ListSessionsHTTPResponse) StatusCode ¶
func (r ListSessionsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 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 Profile ¶ added in v0.5.0
type Profile struct {
AccountActive bool `json:"account_active"`
AccountID openapi_types.UUID `json:"account_id"`
AccountName string `json:"account_name"`
Active bool `json:"active"`
Available bool `json:"available"`
Codex CodexProfile `json:"codex"`
Description *string `json:"description"`
Harness ProfileHarness `json:"harness"`
ID openapi_types.UUID `json:"id"`
Instructions string `json:"instructions"`
Model string `json:"model"`
Name string `json:"name"`
}
Profile defines model for Profile.
type ProfileHarness ¶ added in v0.5.0
type ProfileHarness string
ProfileHarness defines model for Profile.Harness.
const (
ProfileHarnessCodex ProfileHarness = "codex"
)
Defines values for ProfileHarness.
func (ProfileHarness) Valid ¶ added in v0.5.0
func (e ProfileHarness) Valid() bool
Valid indicates whether the value is a known member of the ProfileHarness enum.
type Profiles ¶ added in v0.5.0
type Profiles struct {
Items []Profile `json:"items"`
NextCursor *string `json:"next_cursor"`
PrevCursor *string `json:"prev_cursor"`
}
Profiles defines model for Profiles.
type ReplaceAPIKey ¶ added in v0.15.0
type ReplaceAPIKey struct {
APIKey *string `json:"api_key,omitempty"`
}
ReplaceAPIKey defines model for ReplaceAPIKey.
type ReplaceAPIKeyHTTPResponse ¶ added in v0.15.0
type ReplaceAPIKeyHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseReplaceAPIKeyHTTPResponse ¶ added in v0.15.0
func ParseReplaceAPIKeyHTTPResponse(rsp *http.Response) (*ReplaceAPIKeyHTTPResponse, error)
ParseReplaceAPIKeyHTTPResponse parses an HTTP response from a ReplaceAPIKeyWithResponse call
func (ReplaceAPIKeyHTTPResponse) ContentType ¶ added in v0.15.0
func (r ReplaceAPIKeyHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ReplaceAPIKeyHTTPResponse) GetBody ¶ added in v0.15.0
func (r ReplaceAPIKeyHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ReplaceAPIKeyHTTPResponse) GetJSONDefault ¶ added in v0.15.0
func (r ReplaceAPIKeyHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ReplaceAPIKeyHTTPResponse) Status ¶ added in v0.15.0
func (r ReplaceAPIKeyHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (ReplaceAPIKeyHTTPResponse) StatusCode ¶ added in v0.15.0
func (r ReplaceAPIKeyHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReplaceAPIKeyJSONRequestBody ¶ added in v0.15.0
type ReplaceAPIKeyJSONRequestBody = ReplaceAPIKey
ReplaceAPIKeyJSONRequestBody defines body for ReplaceAPIKey for application/json ContentType.
type ReplaceAuthFileHTTPResponse ¶ added in v0.15.0
type ReplaceAuthFileHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
// Headers204 the parsed response headers for an HTTP 204 response
Headers204 *ReplaceAuthFileHTTPResponse204Headers
}
func ParseReplaceAuthFileHTTPResponse ¶ added in v0.15.0
func ParseReplaceAuthFileHTTPResponse(rsp *http.Response) (*ReplaceAuthFileHTTPResponse, error)
ParseReplaceAuthFileHTTPResponse parses an HTTP response from a ReplaceAuthFileWithResponse call
func (ReplaceAuthFileHTTPResponse) ContentType ¶ added in v0.15.0
func (r ReplaceAuthFileHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ReplaceAuthFileHTTPResponse) GetBody ¶ added in v0.15.0
func (r ReplaceAuthFileHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ReplaceAuthFileHTTPResponse) GetJSONDefault ¶ added in v0.15.0
func (r ReplaceAuthFileHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ReplaceAuthFileHTTPResponse) Status ¶ added in v0.15.0
func (r ReplaceAuthFileHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (ReplaceAuthFileHTTPResponse) StatusCode ¶ added in v0.15.0
func (r ReplaceAuthFileHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReplaceAuthFileHTTPResponse204Headers ¶ added in v0.15.0
type ReplaceAuthFileHTTPResponse204Headers struct {
ETag string
}
ReplaceAuthFileHTTPResponse204Headers the declared response headers of an HTTP 204 response for ReplaceAuthFile
type ReplaceAuthFileJSONRequestBody ¶ added in v0.15.0
type ReplaceAuthFileJSONRequestBody = AuthFile
ReplaceAuthFileJSONRequestBody defines body for ReplaceAuthFile for application/json ContentType.
type ReplaceAuthFileParams ¶ added in v0.15.0
type ReplaceAuthFileParams struct {
IfMatch string `json:"If-Match"`
}
ReplaceAuthFileParams defines parameters for ReplaceAuthFile.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
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 for this run, including expanded services.
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"`
// Services Immutable service descriptions and environment names resolved when accepted.
Services []Service `json:"services"`
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 included in input and output respectively. The breakdown is recorded only since collection began; historical usage is not reconstructed.
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 RunPhase ¶
type RunPhase string
RunPhase defines model for Run.Phase.
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.
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 SamlMetadataHTTPResponse ¶ added in v0.1.7
type SamlMetadataHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseSamlMetadataHTTPResponse ¶ added in v0.1.7
func ParseSamlMetadataHTTPResponse(rsp *http.Response) (*SamlMetadataHTTPResponse, error)
ParseSamlMetadataHTTPResponse parses an HTTP response from a SamlMetadataWithResponse call
func (SamlMetadataHTTPResponse) ContentType ¶ added in v0.1.7
func (r SamlMetadataHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SamlMetadataHTTPResponse) GetBody ¶ added in v0.1.7
func (r SamlMetadataHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SamlMetadataHTTPResponse) GetJSONDefault ¶ added in v0.1.7
func (r SamlMetadataHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (SamlMetadataHTTPResponse) Status ¶ added in v0.1.7
func (r SamlMetadataHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (SamlMetadataHTTPResponse) StatusCode ¶ added in v0.1.7
func (r SamlMetadataHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SandboxConfiguration ¶
type SandboxConfiguration struct {
// EnvFrom Sorted orchestrator environment variable names, including expanded services.
EnvFrom []string `json:"env_from"`
EnvNames []string `json:"env_names"`
// Services Immutable service descriptions and environment names resolved when accepted.
Services []Service `json:"services"`
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"`
// Services Services available to the agent and session hooks, expanded together with env_from.
Services *ServiceCodes `json:"services,omitempty"`
// Template Exact active catalog name, including any team slug and tag. Missing or inactive records return 422 unknown_template with detail code template_not_found or template_inactive. Accepted sessions and idempotent replays keep their stored name regardless of subsequent catalog changes.
Template string `json:"template"`
}
SandboxInput defines model for SandboxInput.
type SandboxState ¶
type SandboxState struct {
Error *Error `json:"error"`
// ID AgentBox sandbox ID, if known. Retained for diagnostics after deletion or loss; does not guarantee accessibility.
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 ( SandboxStateStateDeleted SandboxStateState = "deleted" SandboxStateStateDeleting SandboxStateState = "deleting" SandboxStateStateNotCreated SandboxStateState = "not_created" SandboxStateStatePaused SandboxStateState = "paused" SandboxStateStatePausing SandboxStateState = "pausing" SandboxStateStateProvisioning SandboxStateState = "provisioning" SandboxStateStateReady SandboxStateState = "ready" SandboxStateStateResuming SandboxStateState = "resuming" )
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 SendMessageHTTPResponse ¶
type SendMessageHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *Accepted
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ErrorResponse
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *ErrorResponse
// JSON415 the response for an HTTP 415 `application/json` response
JSON415 *ErrorResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
// Headers202 the parsed response headers for an HTTP 202 response
Headers202 *SendMessageHTTPResponse202Headers
}
func ParseSendMessageHTTPResponse ¶
func ParseSendMessageHTTPResponse(rsp *http.Response) (*SendMessageHTTPResponse, error)
ParseSendMessageHTTPResponse parses an HTTP response from a SendMessageWithResponse call
func (SendMessageHTTPResponse) ContentType ¶
func (r SendMessageHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SendMessageHTTPResponse) GetBody ¶
func (r SendMessageHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SendMessageHTTPResponse) GetJSON202 ¶
func (r SendMessageHTTPResponse) GetJSON202() *Accepted
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (SendMessageHTTPResponse) GetJSON400 ¶
func (r SendMessageHTTPResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (SendMessageHTTPResponse) GetJSON401 ¶
func (r SendMessageHTTPResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (SendMessageHTTPResponse) GetJSON403 ¶ added in v0.1.7
func (r SendMessageHTTPResponse) GetJSON403() *ErrorResponse
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (SendMessageHTTPResponse) GetJSON404 ¶
func (r SendMessageHTTPResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (SendMessageHTTPResponse) GetJSON409 ¶
func (r SendMessageHTTPResponse) GetJSON409() *ErrorResponse
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (SendMessageHTTPResponse) GetJSON413 ¶
func (r SendMessageHTTPResponse) GetJSON413() *ErrorResponse
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (SendMessageHTTPResponse) GetJSON415 ¶
func (r SendMessageHTTPResponse) GetJSON415() *ErrorResponse
GetJSON415 returns the response for an HTTP 415 `application/json` response
func (SendMessageHTTPResponse) GetJSON422 ¶
func (r SendMessageHTTPResponse) GetJSON422() *ErrorResponse
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (SendMessageHTTPResponse) GetJSON503 ¶
func (r SendMessageHTTPResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (SendMessageHTTPResponse) Status ¶
func (r SendMessageHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (SendMessageHTTPResponse) StatusCode ¶
func (r SendMessageHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendMessageHTTPResponse202Headers ¶
type SendMessageHTTPResponse202Headers struct {
Location string
}
SendMessageHTTPResponse202Headers the declared response headers of an HTTP 202 response for SendMessage
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 Service ¶ added in v0.6.0
type Service struct {
Code string `json:"code"`
Description string `json:"description"`
// EnvFrom Sorted environment variable names; never their values.
EnvFrom []string `json:"env_from"`
Name string `json:"name"`
}
Service defines model for Service.
type ServiceCodes ¶ added in v0.6.0
type ServiceCodes = []string
ServiceCodes Unique configured service codes. Order is insignificant; an unknown code rejects the entire request.
type Services ¶ added in v0.6.0
type Services struct {
Items []Service `json:"items"`
}
Services defines model for Services.
type Session ¶
type Session struct {
ActiveRunID *openapi_types.UUID `json:"active_run_id"`
// AllowMultipleRuns Immutable policy allowing subsequent runs. False means the sandbox is deleted after the first run terminates; session history remains available.
AllowMultipleRuns bool `json:"allow_multiple_runs"`
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 included in input and output respectively. The breakdown is recorded only since collection began; historical usage is not reconstructed.
Usage Usage `json:"usage"`
}
Session defines model for Session.
type SessionPage ¶
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 StreamEventsHTTPResponse ¶
type StreamEventsHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorResponse
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorResponse
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorResponse
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ErrorResponse
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *ErrorResponse
// JSON415 the response for an HTTP 415 `application/json` response
JSON415 *ErrorResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *ErrorResponse
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorResponse
}
func ParseStreamEventsHTTPResponse ¶
func ParseStreamEventsHTTPResponse(rsp *http.Response) (*StreamEventsHTTPResponse, error)
ParseStreamEventsHTTPResponse parses an HTTP response from a StreamEventsWithResponse call
func (StreamEventsHTTPResponse) ContentType ¶
func (r StreamEventsHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StreamEventsHTTPResponse) GetBody ¶
func (r StreamEventsHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (StreamEventsHTTPResponse) GetJSON400 ¶
func (r StreamEventsHTTPResponse) GetJSON400() *ErrorResponse
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (StreamEventsHTTPResponse) GetJSON401 ¶
func (r StreamEventsHTTPResponse) GetJSON401() *ErrorResponse
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (StreamEventsHTTPResponse) GetJSON404 ¶
func (r StreamEventsHTTPResponse) GetJSON404() *ErrorResponse
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (StreamEventsHTTPResponse) GetJSON409 ¶
func (r StreamEventsHTTPResponse) GetJSON409() *ErrorResponse
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (StreamEventsHTTPResponse) GetJSON413 ¶
func (r StreamEventsHTTPResponse) GetJSON413() *ErrorResponse
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (StreamEventsHTTPResponse) GetJSON415 ¶
func (r StreamEventsHTTPResponse) GetJSON415() *ErrorResponse
GetJSON415 returns the response for an HTTP 415 `application/json` response
func (StreamEventsHTTPResponse) GetJSON422 ¶
func (r StreamEventsHTTPResponse) GetJSON422() *ErrorResponse
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (StreamEventsHTTPResponse) GetJSON503 ¶
func (r StreamEventsHTTPResponse) GetJSON503() *ErrorResponse
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (StreamEventsHTTPResponse) Status ¶
func (r StreamEventsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (StreamEventsHTTPResponse) StatusCode ¶
func (r StreamEventsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 Template ¶ added in v0.5.0
type Template struct {
Active bool `json:"active"`
Description *string `json:"description"`
ID openapi_types.UUID `json:"id"`
// Name Exact normalized reference including the optional tag.
Name string `json:"name"`
Tag *string `json:"tag"`
TemplateName string `json:"template_name"`
}
Template defines model for Template.
type Templates ¶ added in v0.5.0
type Templates struct {
Items []Template `json:"items"`
NextCursor *string `json:"next_cursor"`
PrevCursor *string `json:"prev_cursor"`
}
Templates defines model for Templates.
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 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" 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 UpdateLLMAccount ¶ added in v0.15.0
type UpdateLLMAccount = json.RawMessage
UpdateLLMAccount defines model for UpdateLLMAccount.
type UpdateLlmAccountHTTPResponse ¶ added in v0.15.0
type UpdateLlmAccountHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LLMAccountDetails
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseUpdateLlmAccountHTTPResponse ¶ added in v0.15.0
func ParseUpdateLlmAccountHTTPResponse(rsp *http.Response) (*UpdateLlmAccountHTTPResponse, error)
ParseUpdateLlmAccountHTTPResponse parses an HTTP response from a UpdateLlmAccountWithResponse call
func (UpdateLlmAccountHTTPResponse) ContentType ¶ added in v0.15.0
func (r UpdateLlmAccountHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateLlmAccountHTTPResponse) GetBody ¶ added in v0.15.0
func (r UpdateLlmAccountHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateLlmAccountHTTPResponse) GetJSON200 ¶ added in v0.15.0
func (r UpdateLlmAccountHTTPResponse) GetJSON200() *LLMAccountDetails
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateLlmAccountHTTPResponse) GetJSONDefault ¶ added in v0.15.0
func (r UpdateLlmAccountHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UpdateLlmAccountHTTPResponse) Status ¶ added in v0.15.0
func (r UpdateLlmAccountHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateLlmAccountHTTPResponse) StatusCode ¶ added in v0.15.0
func (r UpdateLlmAccountHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateLlmAccountJSONRequestBody ¶ added in v0.15.0
type UpdateLlmAccountJSONRequestBody = UpdateLLMAccount
UpdateLlmAccountJSONRequestBody defines body for UpdateLlmAccount for application/json ContentType.
type UpdateProfile ¶ added in v0.15.0
type UpdateProfile = json.RawMessage
UpdateProfile defines model for UpdateProfile.
type UpdateProfileHTTPResponse ¶ added in v0.15.0
type UpdateProfileHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Profile
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseUpdateProfileHTTPResponse ¶ added in v0.15.0
func ParseUpdateProfileHTTPResponse(rsp *http.Response) (*UpdateProfileHTTPResponse, error)
ParseUpdateProfileHTTPResponse parses an HTTP response from a UpdateProfileWithResponse call
func (UpdateProfileHTTPResponse) ContentType ¶ added in v0.15.0
func (r UpdateProfileHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateProfileHTTPResponse) GetBody ¶ added in v0.15.0
func (r UpdateProfileHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateProfileHTTPResponse) GetJSON200 ¶ added in v0.15.0
func (r UpdateProfileHTTPResponse) GetJSON200() *Profile
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateProfileHTTPResponse) GetJSONDefault ¶ added in v0.15.0
func (r UpdateProfileHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UpdateProfileHTTPResponse) Status ¶ added in v0.15.0
func (r UpdateProfileHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateProfileHTTPResponse) StatusCode ¶ added in v0.15.0
func (r UpdateProfileHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateProfileJSONRequestBody ¶ added in v0.15.0
type UpdateProfileJSONRequestBody = UpdateProfile
UpdateProfileJSONRequestBody defines body for UpdateProfile for application/json ContentType.
type UpdateTemplate ¶ added in v0.11.0
type UpdateTemplate = json.RawMessage
UpdateTemplate defines model for UpdateTemplate.
type UpdateTemplateHTTPResponse ¶ added in v0.11.0
type UpdateTemplateHTTPResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Template
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *ErrorResponse
}
func ParseUpdateTemplateHTTPResponse ¶ added in v0.11.0
func ParseUpdateTemplateHTTPResponse(rsp *http.Response) (*UpdateTemplateHTTPResponse, error)
ParseUpdateTemplateHTTPResponse parses an HTTP response from a UpdateTemplateWithResponse call
func (UpdateTemplateHTTPResponse) ContentType ¶ added in v0.11.0
func (r UpdateTemplateHTTPResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateTemplateHTTPResponse) GetBody ¶ added in v0.11.0
func (r UpdateTemplateHTTPResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateTemplateHTTPResponse) GetJSON200 ¶ added in v0.11.0
func (r UpdateTemplateHTTPResponse) GetJSON200() *Template
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateTemplateHTTPResponse) GetJSONDefault ¶ added in v0.11.0
func (r UpdateTemplateHTTPResponse) GetJSONDefault() *ErrorResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UpdateTemplateHTTPResponse) Status ¶ added in v0.11.0
func (r UpdateTemplateHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateTemplateHTTPResponse) StatusCode ¶ added in v0.11.0
func (r UpdateTemplateHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateTemplateJSONRequestBody ¶ added in v0.11.0
type UpdateTemplateJSONRequestBody = UpdateTemplate
UpdateTemplateJSONRequestBody defines body for UpdateTemplate for application/json ContentType.
type Usage ¶
type Usage struct {
CachedInputTokens int64 `json:"cached_input_tokens"`
InputTokens int64 `json:"input_tokens"`
OutputTokens int64 `json:"output_tokens"`
ReasoningOutputTokens int64 `json:"reasoning_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 included in input and output respectively. The breakdown is recorded only since collection began; historical usage is not reconstructed.