client

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 11 Imported by: 0

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContinueChatRequest

func NewContinueChatRequest(server string, chatId openapi_types.UUID, body ContinueChatJSONRequestBody) (*http.Request, error)

NewContinueChatRequest calls the generic ContinueChat builder with application/json body

func NewContinueChatRequestWithBody

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

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

func NewCreateChatRequest

func NewCreateChatRequest(server string, body CreateChatJSONRequestBody) (*http.Request, error)

NewCreateChatRequest calls the generic CreateChat builder with application/json body

func NewCreateChatRequestWithBody

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

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

func NewCreateMCPServerRequest

func NewCreateMCPServerRequest(server string, body CreateMCPServerJSONRequestBody) (*http.Request, error)

NewCreateMCPServerRequest calls the generic CreateMCPServer builder with application/json body

func NewCreateMCPServerRequestWithBody

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

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

func NewCreateUserRequest

func NewCreateUserRequest(server string, body CreateUserJSONRequestBody) (*http.Request, error)

NewCreateUserRequest calls the generic CreateUser builder with application/json body

func NewCreateUserRequestWithBody

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

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

func NewDeleteChatRequest

func NewDeleteChatRequest(server string, chatId openapi_types.UUID) (*http.Request, error)

NewDeleteChatRequest constructs an http.Request for the DeleteChat method

func NewDeleteMCPServerRequest

func NewDeleteMCPServerRequest(server string, serverId openapi_types.UUID) (*http.Request, error)

NewDeleteMCPServerRequest constructs an http.Request for the DeleteMCPServer method

func NewDeleteUserRequest

func NewDeleteUserRequest(server string, userId openapi_types.UUID) (*http.Request, error)

NewDeleteUserRequest constructs an http.Request for the DeleteUser method

func NewGetAdminReadinessRequest

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

NewGetAdminReadinessRequest constructs an http.Request for the GetAdminReadiness method

func NewGetAuthStatusRequest

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

NewGetAuthStatusRequest constructs an http.Request for the GetAuthStatus method

func NewGetChatRequest

func NewGetChatRequest(server string, chatId openapi_types.UUID) (*http.Request, error)

NewGetChatRequest constructs an http.Request for the GetChat method

func NewGetHealthRequest

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

NewGetHealthRequest constructs an http.Request for the GetHealth method

func NewGetOrCreateEmptyChatRequest

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

NewGetOrCreateEmptyChatRequest constructs an http.Request for the GetOrCreateEmptyChat method

func NewImportMCPRequest

func NewImportMCPRequest(server string, body ImportMCPJSONRequestBody) (*http.Request, error)

NewImportMCPRequest calls the generic ImportMCP builder with application/json body

func NewImportMCPRequestWithBody

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

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

func NewListChatMCPServersRequest

func NewListChatMCPServersRequest(server string, chatId openapi_types.UUID) (*http.Request, error)

NewListChatMCPServersRequest constructs an http.Request for the ListChatMCPServers method

func NewListChatMessagesRequest

func NewListChatMessagesRequest(server string, chatId openapi_types.UUID, params *ListChatMessagesParams) (*http.Request, error)

NewListChatMessagesRequest constructs an http.Request for the ListChatMessages method

func NewListChatsRequest

func NewListChatsRequest(server string, params *ListChatsParams) (*http.Request, error)

NewListChatsRequest constructs an http.Request for the ListChats method

func NewListMCPServerToolsRequest

func NewListMCPServerToolsRequest(server string, serverId openapi_types.UUID) (*http.Request, error)

NewListMCPServerToolsRequest constructs an http.Request for the ListMCPServerTools method

func NewListMCPServersRequest

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

NewListMCPServersRequest constructs an http.Request for the ListMCPServers method

func NewListModelsRequest

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

NewListModelsRequest constructs an http.Request for the ListModels method

func NewListUpstreamHealthRequest

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

NewListUpstreamHealthRequest constructs an http.Request for the ListUpstreamHealth method

func NewListUsersRequest

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

NewListUsersRequest constructs an http.Request for the ListUsers method

func NewLoginRequest

func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error)

NewLoginRequest calls the generic Login builder with application/json body

func NewLoginRequestWithBody

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

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

func NewLogoutRequest

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

NewLogoutRequest constructs an http.Request for the Logout method

func NewPreviewChatContextRequest

func NewPreviewChatContextRequest(server string, chatId openapi_types.UUID, body PreviewChatContextJSONRequestBody) (*http.Request, error)

NewPreviewChatContextRequest calls the generic PreviewChatContext builder with application/json body

func NewPreviewChatContextRequestWithBody

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

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

func NewReconnectMCPServerRequest

func NewReconnectMCPServerRequest(server string, serverId openapi_types.UUID) (*http.Request, error)

NewReconnectMCPServerRequest constructs an http.Request for the ReconnectMCPServer method

func NewRenameChatRequest

func NewRenameChatRequest(server string, chatId openapi_types.UUID, body RenameChatJSONRequestBody) (*http.Request, error)

NewRenameChatRequest calls the generic RenameChat builder with application/json body

func NewRenameChatRequestWithBody

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

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

func NewSetupRequest

func NewSetupRequest(server string, body SetupJSONRequestBody) (*http.Request, error)

NewSetupRequest calls the generic Setup builder with application/json body

func NewSetupRequestWithBody

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

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

func NewUpdateChatMCPServerRequest

func NewUpdateChatMCPServerRequest(server string, chatId openapi_types.UUID, serverId openapi_types.UUID, body UpdateChatMCPServerJSONRequestBody) (*http.Request, error)

NewUpdateChatMCPServerRequest calls the generic UpdateChatMCPServer builder with application/json body

func NewUpdateChatMCPServerRequestWithBody

func NewUpdateChatMCPServerRequestWithBody(server string, chatId openapi_types.UUID, serverId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

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

func NewUpdateChatSettingsRequest

func NewUpdateChatSettingsRequest(server string, chatId openapi_types.UUID, body UpdateChatSettingsJSONRequestBody) (*http.Request, error)

NewUpdateChatSettingsRequest calls the generic UpdateChatSettings builder with application/json body

func NewUpdateChatSettingsRequestWithBody

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

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

func NewUpdateMCPServerRequest

func NewUpdateMCPServerRequest(server string, serverId openapi_types.UUID, body UpdateMCPServerJSONRequestBody) (*http.Request, error)

NewUpdateMCPServerRequest calls the generic UpdateMCPServer builder with application/json body

func NewUpdateMCPServerRequestWithBody

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

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

Types

type AdminReadiness

type AdminReadiness struct {
	AppVersion string `json:"appVersion"`

	// Backup The status of an operator-written backup completion marker. A current marker proves only that the backup command completed; it is not an archive-content verification result.
	Backup           BackupFreshness              `json:"backup"`
	Commit           *string                      `json:"commit,omitempty"`
	DatabaseDriver   AdminReadinessDatabaseDriver `json:"databaseDriver"`
	MigrationDirty   bool                         `json:"migrationDirty"`
	MigrationVersion int                          `json:"migrationVersion"`
	Upstreams        []UpstreamHealth             `json:"upstreams"`
}

AdminReadiness A redacted operational snapshot for an administrator. It never includes credentials, backup paths, prompt content, or raw provider errors.

type AdminReadinessDatabaseDriver

type AdminReadinessDatabaseDriver string

AdminReadinessDatabaseDriver defines model for AdminReadiness.DatabaseDriver.

const (
	AdminReadinessDatabaseDriverPostgres AdminReadinessDatabaseDriver = "postgres"
	AdminReadinessDatabaseDriverSqlite   AdminReadinessDatabaseDriver = "sqlite"
)

Defines values for AdminReadinessDatabaseDriver.

func (AdminReadinessDatabaseDriver) Valid

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

type AuthStatus

type AuthStatus struct {
	Authenticated bool `json:"authenticated"`

	// NeedsSetup True when no users exist yet (first-run bootstrap).
	NeedsSetup bool  `json:"needsSetup"`
	User       *User `json:"user,omitempty"`
}

AuthStatus defines model for AuthStatus.

type BackupFreshness

type BackupFreshness struct {
	CompletedAt *time.Time             `json:"completedAt,omitempty"`
	Driver      *BackupFreshnessDriver `json:"driver,omitempty"`
	State       BackupFreshnessState   `json:"state"`
}

BackupFreshness The status of an operator-written backup completion marker. A current marker proves only that the backup command completed; it is not an archive-content verification result.

type BackupFreshnessDriver

type BackupFreshnessDriver string

BackupFreshnessDriver defines model for BackupFreshness.Driver.

const (
	BackupFreshnessDriverPostgres BackupFreshnessDriver = "postgres"
	BackupFreshnessDriverSqlite   BackupFreshnessDriver = "sqlite"
)

Defines values for BackupFreshnessDriver.

func (BackupFreshnessDriver) Valid

func (e BackupFreshnessDriver) Valid() bool

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

type BackupFreshnessState

type BackupFreshnessState string

BackupFreshnessState defines model for BackupFreshness.State.

const (
	BackupFreshnessStateCurrent     BackupFreshnessState = "current"
	BackupFreshnessStateInvalid     BackupFreshnessState = "invalid"
	BackupFreshnessStateNotRecorded BackupFreshnessState = "not_recorded"
	BackupFreshnessStateStale       BackupFreshnessState = "stale"
	BackupFreshnessStateUnavailable BackupFreshnessState = "unavailable"
)

Defines values for BackupFreshnessState.

func (BackupFreshnessState) Valid

func (e BackupFreshnessState) Valid() bool

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

type BadRequest

type BadRequest = Error

BadRequest defines model for BadRequest.

type Chat

type Chat struct {
	Id openapi_types.UUID `json:"id"`

	// Model The model id the chat was created with (used for continuation).
	Model string `json:"model"`

	// Settings Per-chat model-generation settings. Every field is optional; an omitted field is unset — the provider default applies (temperature / topP / reasoningEffort / maxOutputTokens). maxHistoryTokens defaults to 100000 and caps the complete outbound prompt, including the sticky system message and current user message.
	Settings *ChatSettings `json:"settings,omitempty"`
	Title    string        `json:"title"`
}

Chat defines model for Chat.

type ChatList

type ChatList struct {
	Items  []ChatSummary `json:"items"`
	Limit  int           `json:"limit"`
	Offset int           `json:"offset"`
	Total  int           `json:"total"`
}

ChatList A page of the caller's chats. total is a scoped, indexed count (by user_id) — cheap regardless of dataset size.

type ChatMCPServer

type ChatMCPServer struct {
	// Enabled Whether this server's tools are available to this chat.
	Enabled bool               `json:"enabled"`
	Id      openapi_types.UUID `json:"id"`
	Name    string             `json:"name"`

	// Status Live global connection status of the server.
	Status ChatMCPServerStatus `json:"status"`
}

ChatMCPServer An MCP server as it applies to a chat: the server's identity and live global connection status, plus whether it is enabled for THIS chat. Enablement here is per-chat and independent of the server's global enabled flag (see MCPServer.enabled) — a globally-disabled server is not available to any chat regardless.

type ChatMCPServerStatus

type ChatMCPServerStatus string

ChatMCPServerStatus Live global connection status of the server.

const (
	ChatMCPServerStatusConnected  ChatMCPServerStatus = "connected"
	ChatMCPServerStatusConnecting ChatMCPServerStatus = "connecting"
	ChatMCPServerStatusDisabled   ChatMCPServerStatus = "disabled"
	ChatMCPServerStatusFailed     ChatMCPServerStatus = "failed"
)

Defines values for ChatMCPServerStatus.

func (ChatMCPServerStatus) Valid

func (e ChatMCPServerStatus) Valid() bool

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

type ChatMCPServerUpdate

type ChatMCPServerUpdate struct {
	// Enabled Enable or disable this server's tools for this chat.
	Enabled bool `json:"enabled"`
}

ChatMCPServerUpdate defines model for ChatMCPServerUpdate.

type ChatSettings

type ChatSettings struct {
	MaxHistoryTokens *int                         `json:"maxHistoryTokens,omitempty"`
	MaxOutputTokens  *int                         `json:"maxOutputTokens,omitempty"`
	ReasoningEffort  *ChatSettingsReasoningEffort `json:"reasoningEffort,omitempty"`
	Temperature      *float64                     `json:"temperature,omitempty"`
	TopP             *float64                     `json:"topP,omitempty"`
}

ChatSettings Per-chat model-generation settings. Every field is optional; an omitted field is unset — the provider default applies (temperature / topP / reasoningEffort / maxOutputTokens). maxHistoryTokens defaults to 100000 and caps the complete outbound prompt, including the sticky system message and current user message.

type ChatSettingsReasoningEffort

type ChatSettingsReasoningEffort string

ChatSettingsReasoningEffort defines model for ChatSettings.ReasoningEffort.

const (
	ChatSettingsReasoningEffortHigh    ChatSettingsReasoningEffort = "high"
	ChatSettingsReasoningEffortLow     ChatSettingsReasoningEffort = "low"
	ChatSettingsReasoningEffortMedium  ChatSettingsReasoningEffort = "medium"
	ChatSettingsReasoningEffortMinimal ChatSettingsReasoningEffort = "minimal"
)

Defines values for ChatSettingsReasoningEffort.

func (ChatSettingsReasoningEffort) Valid

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

type ChatSummary

type ChatSummary struct {
	CreatedAt time.Time          `json:"createdAt"`
	Id        openapi_types.UUID `json:"id"`
	Title     string             `json:"title"`
	UpdatedAt time.Time          `json:"updatedAt"`
}

ChatSummary defines model for ChatSummary.

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) ContinueChat

func (c *Client) ContinueChat(ctx context.Context, chatId openapi_types.UUID, body ContinueChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ContinueChat Continue a chat and stream the next assistant turn (SSE).

Streams Anthropic-style SSE plus advisory chat_status progress events. A status is emitted only after its corresponding provider or tool lifecycle transition; it carries no prompt, tool, or provider payload.

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

Corresponds with POST /chats/{chatId} (the `ContinueChat` operationId).

func (*Client) ContinueChatWithBody

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

ContinueChatWithBody Continue a chat and stream the next assistant turn (SSE).

Streams Anthropic-style SSE plus advisory chat_status progress events. A status is emitted only after its corresponding provider or tool lifecycle transition; it carries no prompt, tool, or provider payload.

Takes any type of body and a specified content type.

Corresponds with POST /chats/{chatId} (the `ContinueChat` operationId).

func (*Client) CreateChat

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

CreateChat Create a chat and stream the first assistant turn (SSE).

Streams Anthropic-style SSE. The new chat id is carried in the message_start event's stream_id. Advisory chat_status events report connecting, waiting_first_token, streaming, running_tool, or retrying; clients must treat them as ephemeral progress metadata rather than durable assistant content. If a real stream stops after useful output, GET /chats/{chatId}/messages returns that assistant checkpoint with incomplete=true; it is not included in later model context.

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

Corresponds with POST /chats (the `CreateChat` operationId).

func (*Client) CreateChatWithBody

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

CreateChatWithBody Create a chat and stream the first assistant turn (SSE).

Streams Anthropic-style SSE. The new chat id is carried in the message_start event's stream_id. Advisory chat_status events report connecting, waiting_first_token, streaming, running_tool, or retrying; clients must treat them as ephemeral progress metadata rather than durable assistant content. If a real stream stops after useful output, GET /chats/{chatId}/messages returns that assistant checkpoint with incomplete=true; it is not included in later model context.

Takes any type of body and a specified content type.

Corresponds with POST /chats (the `CreateChat` operationId).

func (*Client) CreateMCPServer

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

CreateMCPServer Add an MCP server (admin).

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

Corresponds with POST /mcp/servers (the `CreateMCPServer` operationId).

func (*Client) CreateMCPServerWithBody

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

CreateMCPServerWithBody Add an MCP server (admin).

Takes any type of body and a specified content type.

Corresponds with POST /mcp/servers (the `CreateMCPServer` operationId).

func (*Client) CreateUser

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

CreateUser Provision a user (admin).

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

Corresponds with POST /users (the `CreateUser` operationId).

func (*Client) CreateUserWithBody

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

CreateUserWithBody Provision a user (admin).

Takes any type of body and a specified content type.

Corresponds with POST /users (the `CreateUser` operationId).

func (*Client) DeleteChat

func (c *Client) DeleteChat(ctx context.Context, chatId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteChat Soft-delete one caller-owned chat.

Corresponds with DELETE /chats/{chatId} (the `DeleteChat` operationId).

func (*Client) DeleteMCPServer

func (c *Client) DeleteMCPServer(ctx context.Context, serverId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteMCPServer Remove an MCP server (admin).

Corresponds with DELETE /mcp/servers/{serverId} (the `DeleteMCPServer` operationId).

func (*Client) DeleteUser

func (c *Client) DeleteUser(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteUser Delete a user (admin).

Corresponds with DELETE /users/{userId} (the `DeleteUser` operationId).

func (*Client) GetAdminReadiness

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

GetAdminReadiness Get the redacted operational readiness snapshot (admin).

Corresponds with GET /admin/readiness (the `GetAdminReadiness` operationId).

func (*Client) GetAuthStatus

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

GetAuthStatus Whether setup is needed and whether the caller is authenticated.

Corresponds with GET /auth/status (the `GetAuthStatus` operationId).

func (*Client) GetChat

func (c *Client) GetChat(ctx context.Context, chatId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

GetChat Get a chat's metadata (settings, model, title) — no messages.

Returns chat metadata only. Fetch messages via GET /api/v1/chats/{chatId}/messages.

Corresponds with GET /chats/{chatId} (the `GetChat` operationId).

func (*Client) GetHealth

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

GetHealth Liveness probe.

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

func (*Client) GetOrCreateEmptyChat

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

GetOrCreateEmptyChat Get the caller's reusable "empty chat" (no messages yet), creating one if none exists.

At most one empty chat is kept per user: repeated calls before any message is sent all resolve to the SAME chat id, so a client's "New chat" action never piles up unused rows. Once the chat's first message is sent (POST /chats/{chatId}), it stops being empty and a later call creates/returns a different chat.

Corresponds with POST /chats/empty (the `GetOrCreateEmptyChat` operationId).

func (*Client) ImportMCP

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

ImportMCP Import MCP servers from a Claude-style .mcp.json (admin).

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

Corresponds with POST /mcp/import (the `ImportMCP` operationId).

func (*Client) ImportMCPWithBody

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

ImportMCPWithBody Import MCP servers from a Claude-style .mcp.json (admin).

Takes any type of body and a specified content type.

Corresponds with POST /mcp/import (the `ImportMCP` operationId).

func (*Client) ListChatMCPServers

func (c *Client) ListChatMCPServers(ctx context.Context, chatId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

ListChatMCPServers List the MCP servers with each one's per-chat enablement + status.

The MCP servers as this chat sees them: identity, live global connection status, and whether each is enabled for this chat. Ownership-checked, so a chat's owner sees it without admin access.

Corresponds with GET /chats/{chatId}/mcp-servers (the `ListChatMCPServers` operationId).

func (*Client) ListChatMessages

func (c *Client) ListChatMessages(ctx context.Context, chatId openapi_types.UUID, params *ListChatMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListChatMessages List a chat's messages, oldest-first, paginated.

Corresponds with GET /chats/{chatId}/messages (the `ListChatMessages` operationId).

func (*Client) ListChats

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

ListChats List the caller's chats, paginated.

Corresponds with GET /chats (the `ListChats` operationId).

func (*Client) ListMCPServerTools

func (c *Client) ListMCPServerTools(ctx context.Context, serverId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

ListMCPServerTools List a connected MCP server's tools (admin).

Corresponds with GET /mcp/servers/{serverId}/tools (the `ListMCPServerTools` operationId).

func (*Client) ListMCPServers

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

ListMCPServers List configured MCP servers (admin).

Corresponds with GET /mcp/servers (the `ListMCPServers` operationId).

func (*Client) ListModels

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

ListModels Merged model list across all configured upstreams.

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

func (*Client) ListUpstreamHealth

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

ListUpstreamHealth List redacted LLM upstream health snapshots (admin).

Corresponds with GET /upstreams (the `ListUpstreamHealth` operationId).

func (*Client) ListUsers

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

ListUsers List users (admin).

Corresponds with GET /users (the `ListUsers` operationId).

func (*Client) Login

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

Login Log in with username + password.

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

Corresponds with POST /auth/login (the `Login` operationId).

func (*Client) LoginWithBody

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

LoginWithBody Log in with username + password.

Takes any type of body and a specified content type.

Corresponds with POST /auth/login (the `Login` operationId).

func (*Client) Logout

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

Logout Revoke the current session.

Corresponds with POST /auth/logout (the `Logout` operationId).

func (*Client) PreviewChatContext

func (c *Client) PreviewChatContext(ctx context.Context, chatId openapi_types.UUID, body PreviewChatContextJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PreviewChatContext Preview the exact context selected for an unsent chat message.

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

Corresponds with POST /chats/{chatId}/context-preview (the `PreviewChatContext` operationId).

func (*Client) PreviewChatContextWithBody

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

PreviewChatContextWithBody Preview the exact context selected for an unsent chat message.

Takes any type of body and a specified content type.

Corresponds with POST /chats/{chatId}/context-preview (the `PreviewChatContext` operationId).

func (*Client) ReconnectMCPServer

func (c *Client) ReconnectMCPServer(ctx context.Context, serverId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

ReconnectMCPServer Reconnect an MCP server in the background (admin).

Corresponds with POST /mcp/servers/{serverId}/reconnect (the `ReconnectMCPServer` operationId).

func (*Client) RenameChat

func (c *Client) RenameChat(ctx context.Context, chatId openapi_types.UUID, body RenameChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

RenameChat Rename a chat.

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

Corresponds with PATCH /chats/{chatId} (the `RenameChat` operationId).

func (*Client) RenameChatWithBody

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

RenameChatWithBody Rename a chat.

Takes any type of body and a specified content type.

Corresponds with PATCH /chats/{chatId} (the `RenameChat` operationId).

func (*Client) Setup

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

Setup Bootstrap the first admin user (one-shot).

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

Corresponds with POST /auth/setup (the `Setup` operationId).

func (*Client) SetupWithBody

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

SetupWithBody Bootstrap the first admin user (one-shot).

Takes any type of body and a specified content type.

Corresponds with POST /auth/setup (the `Setup` operationId).

func (*Client) UpdateChatMCPServer

func (c *Client) UpdateChatMCPServer(ctx context.Context, chatId openapi_types.UUID, serverId openapi_types.UUID, body UpdateChatMCPServerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateChatMCPServer Enable or disable one MCP server for this chat.

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

Corresponds with PATCH /chats/{chatId}/mcp-servers/{serverId} (the `UpdateChatMCPServer` operationId).

func (*Client) UpdateChatMCPServerWithBody

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

UpdateChatMCPServerWithBody Enable or disable one MCP server for this chat.

Takes any type of body and a specified content type.

Corresponds with PATCH /chats/{chatId}/mcp-servers/{serverId} (the `UpdateChatMCPServer` operationId).

func (*Client) UpdateChatSettings

func (c *Client) UpdateChatSettings(ctx context.Context, chatId openapi_types.UUID, body UpdateChatSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateChatSettings Update a chat's model-generation settings.

Full replacement of the chat's settings object: a field omitted from the body clears that setting (back to the provider default; history returns to its 100000-token default).

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

Corresponds with PATCH /chats/{chatId}/settings (the `UpdateChatSettings` operationId).

func (*Client) UpdateChatSettingsWithBody

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

UpdateChatSettingsWithBody Update a chat's model-generation settings.

Full replacement of the chat's settings object: a field omitted from the body clears that setting (back to the provider default; history returns to its 100000-token default).

Takes any type of body and a specified content type.

Corresponds with PATCH /chats/{chatId}/settings (the `UpdateChatSettings` operationId).

func (*Client) UpdateMCPServer

func (c *Client) UpdateMCPServer(ctx context.Context, serverId openapi_types.UUID, body UpdateMCPServerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateMCPServer Edit an MCP server and reconnect (admin).

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

Corresponds with PATCH /mcp/servers/{serverId} (the `UpdateMCPServer` operationId).

func (*Client) UpdateMCPServerWithBody

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

UpdateMCPServerWithBody Edit an MCP server and reconnect (admin).

Takes any type of body and a specified content type.

Corresponds with PATCH /mcp/servers/{serverId} (the `UpdateMCPServer` operationId).

type ClientInterface

type ClientInterface interface {

	// GetAdminReadiness Get the redacted operational readiness snapshot (admin).
	//
	// Corresponds with GET /admin/readiness (the `GetAdminReadiness` operationId).
	GetAdminReadiness(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LoginWithBody Log in with username + password.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /auth/login (the `Login` operationId).
	LoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Login Log in with username + password.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /auth/login (the `Login` operationId).
	Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Logout Revoke the current session.
	//
	// Corresponds with POST /auth/logout (the `Logout` operationId).
	Logout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetupWithBody Bootstrap the first admin user (one-shot).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /auth/setup (the `Setup` operationId).
	SetupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Setup Bootstrap the first admin user (one-shot).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /auth/setup (the `Setup` operationId).
	Setup(ctx context.Context, body SetupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAuthStatus Whether setup is needed and whether the caller is authenticated.
	//
	// Corresponds with GET /auth/status (the `GetAuthStatus` operationId).
	GetAuthStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListChats List the caller's chats, paginated.
	//
	// Corresponds with GET /chats (the `ListChats` operationId).
	ListChats(ctx context.Context, params *ListChatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateChatWithBody Create a chat and stream the first assistant turn (SSE).
	//
	// Streams Anthropic-style SSE. The new chat id is carried in the message_start event's stream_id. Advisory chat_status events report connecting, waiting_first_token, streaming, running_tool, or retrying; clients must treat them as ephemeral progress metadata rather than durable assistant content. If a real stream stops after useful output, GET /chats/{chatId}/messages returns that assistant checkpoint with incomplete=true; it is not included in later model context.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /chats (the `CreateChat` operationId).
	CreateChatWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateChat Create a chat and stream the first assistant turn (SSE).
	//
	// Streams Anthropic-style SSE. The new chat id is carried in the message_start event's stream_id. Advisory chat_status events report connecting, waiting_first_token, streaming, running_tool, or retrying; clients must treat them as ephemeral progress metadata rather than durable assistant content. If a real stream stops after useful output, GET /chats/{chatId}/messages returns that assistant checkpoint with incomplete=true; it is not included in later model context.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /chats (the `CreateChat` operationId).
	CreateChat(ctx context.Context, body CreateChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOrCreateEmptyChat Get the caller's reusable "empty chat" (no messages yet), creating one if none exists.
	//
	// At most one empty chat is kept per user: repeated calls before any message is sent all resolve to the SAME chat id, so a client's "New chat" action never piles up unused rows. Once the chat's first message is sent (POST /chats/{chatId}), it stops being empty and a later call creates/returns a different chat.
	//
	// Corresponds with POST /chats/empty (the `GetOrCreateEmptyChat` operationId).
	GetOrCreateEmptyChat(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteChat Soft-delete one caller-owned chat.
	//
	// Corresponds with DELETE /chats/{chatId} (the `DeleteChat` operationId).
	DeleteChat(ctx context.Context, chatId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetChat Get a chat's metadata (settings, model, title) — no messages.
	//
	// Returns chat metadata only. Fetch messages via GET /api/v1/chats/{chatId}/messages.
	//
	// Corresponds with GET /chats/{chatId} (the `GetChat` operationId).
	GetChat(ctx context.Context, chatId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RenameChatWithBody Rename a chat.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /chats/{chatId} (the `RenameChat` operationId).
	RenameChatWithBody(ctx context.Context, chatId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RenameChat Rename a chat.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /chats/{chatId} (the `RenameChat` operationId).
	RenameChat(ctx context.Context, chatId openapi_types.UUID, body RenameChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ContinueChatWithBody Continue a chat and stream the next assistant turn (SSE).
	//
	// Streams Anthropic-style SSE plus advisory chat_status progress events. A status is emitted only after its corresponding provider or tool lifecycle transition; it carries no prompt, tool, or provider payload.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /chats/{chatId} (the `ContinueChat` operationId).
	ContinueChatWithBody(ctx context.Context, chatId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ContinueChat Continue a chat and stream the next assistant turn (SSE).
	//
	// Streams Anthropic-style SSE plus advisory chat_status progress events. A status is emitted only after its corresponding provider or tool lifecycle transition; it carries no prompt, tool, or provider payload.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /chats/{chatId} (the `ContinueChat` operationId).
	ContinueChat(ctx context.Context, chatId openapi_types.UUID, body ContinueChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PreviewChatContextWithBody Preview the exact context selected for an unsent chat message.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /chats/{chatId}/context-preview (the `PreviewChatContext` operationId).
	PreviewChatContextWithBody(ctx context.Context, chatId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PreviewChatContext Preview the exact context selected for an unsent chat message.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /chats/{chatId}/context-preview (the `PreviewChatContext` operationId).
	PreviewChatContext(ctx context.Context, chatId openapi_types.UUID, body PreviewChatContextJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListChatMCPServers List the MCP servers with each one's per-chat enablement + status.
	//
	// The MCP servers as this chat sees them: identity, live global connection status, and whether each is enabled for this chat. Ownership-checked, so a chat's owner sees it without admin access.
	//
	// Corresponds with GET /chats/{chatId}/mcp-servers (the `ListChatMCPServers` operationId).
	ListChatMCPServers(ctx context.Context, chatId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateChatMCPServerWithBody Enable or disable one MCP server for this chat.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /chats/{chatId}/mcp-servers/{serverId} (the `UpdateChatMCPServer` operationId).
	UpdateChatMCPServerWithBody(ctx context.Context, chatId openapi_types.UUID, serverId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateChatMCPServer Enable or disable one MCP server for this chat.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /chats/{chatId}/mcp-servers/{serverId} (the `UpdateChatMCPServer` operationId).
	UpdateChatMCPServer(ctx context.Context, chatId openapi_types.UUID, serverId openapi_types.UUID, body UpdateChatMCPServerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListChatMessages List a chat's messages, oldest-first, paginated.
	//
	// Corresponds with GET /chats/{chatId}/messages (the `ListChatMessages` operationId).
	ListChatMessages(ctx context.Context, chatId openapi_types.UUID, params *ListChatMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateChatSettingsWithBody Update a chat's model-generation settings.
	//
	// Full replacement of the chat's settings object: a field omitted from the body clears that setting (back to the provider default; history returns to its 100000-token default).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /chats/{chatId}/settings (the `UpdateChatSettings` operationId).
	UpdateChatSettingsWithBody(ctx context.Context, chatId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateChatSettings Update a chat's model-generation settings.
	//
	// Full replacement of the chat's settings object: a field omitted from the body clears that setting (back to the provider default; history returns to its 100000-token default).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /chats/{chatId}/settings (the `UpdateChatSettings` operationId).
	UpdateChatSettings(ctx context.Context, chatId openapi_types.UUID, body UpdateChatSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// ImportMCPWithBody Import MCP servers from a Claude-style .mcp.json (admin).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /mcp/import (the `ImportMCP` operationId).
	ImportMCPWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ImportMCP Import MCP servers from a Claude-style .mcp.json (admin).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /mcp/import (the `ImportMCP` operationId).
	ImportMCP(ctx context.Context, body ImportMCPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListMCPServers List configured MCP servers (admin).
	//
	// Corresponds with GET /mcp/servers (the `ListMCPServers` operationId).
	ListMCPServers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateMCPServerWithBody Add an MCP server (admin).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /mcp/servers (the `CreateMCPServer` operationId).
	CreateMCPServerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateMCPServer Add an MCP server (admin).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /mcp/servers (the `CreateMCPServer` operationId).
	CreateMCPServer(ctx context.Context, body CreateMCPServerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteMCPServer Remove an MCP server (admin).
	//
	// Corresponds with DELETE /mcp/servers/{serverId} (the `DeleteMCPServer` operationId).
	DeleteMCPServer(ctx context.Context, serverId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateMCPServerWithBody Edit an MCP server and reconnect (admin).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /mcp/servers/{serverId} (the `UpdateMCPServer` operationId).
	UpdateMCPServerWithBody(ctx context.Context, serverId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateMCPServer Edit an MCP server and reconnect (admin).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /mcp/servers/{serverId} (the `UpdateMCPServer` operationId).
	UpdateMCPServer(ctx context.Context, serverId openapi_types.UUID, body UpdateMCPServerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReconnectMCPServer Reconnect an MCP server in the background (admin).
	//
	// Corresponds with POST /mcp/servers/{serverId}/reconnect (the `ReconnectMCPServer` operationId).
	ReconnectMCPServer(ctx context.Context, serverId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListMCPServerTools List a connected MCP server's tools (admin).
	//
	// Corresponds with GET /mcp/servers/{serverId}/tools (the `ListMCPServerTools` operationId).
	ListMCPServerTools(ctx context.Context, serverId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListModels Merged model list across all configured upstreams.
	//
	// Corresponds with GET /models (the `ListModels` operationId).
	ListModels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListUpstreamHealth List redacted LLM upstream health snapshots (admin).
	//
	// Corresponds with GET /upstreams (the `ListUpstreamHealth` operationId).
	ListUpstreamHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListUsers List users (admin).
	//
	// Corresponds with GET /users (the `ListUsers` operationId).
	ListUsers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateUserWithBody Provision a user (admin).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /users (the `CreateUser` operationId).
	CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateUser Provision a user (admin).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /users (the `CreateUser` operationId).
	CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteUser Delete a user (admin).
	//
	// Corresponds with DELETE /users/{userId} (the `DeleteUser` operationId).
	DeleteUser(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

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

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

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

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

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

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

func (*ClientWithResponses) ContinueChatWithBodyWithResponse

func (c *ClientWithResponses) ContinueChatWithBodyWithResponse(ctx context.Context, chatId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ContinueChatResponse, error)

ContinueChatWithBodyWithResponse Continue a chat and stream the next assistant turn (SSE).

Streams Anthropic-style SSE plus advisory chat_status progress events. A status is emitted only after its corresponding provider or tool lifecycle transition; it carries no prompt, tool, or provider payload.

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 /chats/{chatId} (the `ContinueChat` operationId).

func (*ClientWithResponses) ContinueChatWithResponse

func (c *ClientWithResponses) ContinueChatWithResponse(ctx context.Context, chatId openapi_types.UUID, body ContinueChatJSONRequestBody, reqEditors ...RequestEditorFn) (*ContinueChatResponse, error)

ContinueChatWithResponse Continue a chat and stream the next assistant turn (SSE).

Streams Anthropic-style SSE plus advisory chat_status progress events. A status is emitted only after its corresponding provider or tool lifecycle transition; it carries no prompt, tool, or provider payload.

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

Corresponds with POST /chats/{chatId} (the `ContinueChat` operationId).

func (*ClientWithResponses) CreateChatWithBodyWithResponse

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

CreateChatWithBodyWithResponse Create a chat and stream the first assistant turn (SSE).

Streams Anthropic-style SSE. The new chat id is carried in the message_start event's stream_id. Advisory chat_status events report connecting, waiting_first_token, streaming, running_tool, or retrying; clients must treat them as ephemeral progress metadata rather than durable assistant content. If a real stream stops after useful output, GET /chats/{chatId}/messages returns that assistant checkpoint with incomplete=true; it is not included in later model context.

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 /chats (the `CreateChat` operationId).

func (*ClientWithResponses) CreateChatWithResponse

func (c *ClientWithResponses) CreateChatWithResponse(ctx context.Context, body CreateChatJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateChatResponse, error)

CreateChatWithResponse Create a chat and stream the first assistant turn (SSE).

Streams Anthropic-style SSE. The new chat id is carried in the message_start event's stream_id. Advisory chat_status events report connecting, waiting_first_token, streaming, running_tool, or retrying; clients must treat them as ephemeral progress metadata rather than durable assistant content. If a real stream stops after useful output, GET /chats/{chatId}/messages returns that assistant checkpoint with incomplete=true; it is not included in later model context.

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

Corresponds with POST /chats (the `CreateChat` operationId).

func (*ClientWithResponses) CreateMCPServerWithBodyWithResponse

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

CreateMCPServerWithBodyWithResponse Add an MCP server (admin).

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 /mcp/servers (the `CreateMCPServer` operationId).

func (*ClientWithResponses) CreateMCPServerWithResponse

func (c *ClientWithResponses) CreateMCPServerWithResponse(ctx context.Context, body CreateMCPServerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMCPServerResponse, error)

CreateMCPServerWithResponse Add an MCP server (admin).

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

Corresponds with POST /mcp/servers (the `CreateMCPServer` operationId).

func (*ClientWithResponses) CreateUserWithBodyWithResponse

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

CreateUserWithBodyWithResponse Provision a user (admin).

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 /users (the `CreateUser` operationId).

func (*ClientWithResponses) CreateUserWithResponse

func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

CreateUserWithResponse Provision a user (admin).

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

Corresponds with POST /users (the `CreateUser` operationId).

func (*ClientWithResponses) DeleteChatWithResponse

func (c *ClientWithResponses) DeleteChatWithResponse(ctx context.Context, chatId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteChatResponse, error)

DeleteChatWithResponse Soft-delete one caller-owned chat.

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

Corresponds with DELETE /chats/{chatId} (the `DeleteChat` operationId).

func (*ClientWithResponses) DeleteMCPServerWithResponse

func (c *ClientWithResponses) DeleteMCPServerWithResponse(ctx context.Context, serverId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteMCPServerResponse, error)

DeleteMCPServerWithResponse Remove an MCP server (admin).

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

Corresponds with DELETE /mcp/servers/{serverId} (the `DeleteMCPServer` operationId).

func (*ClientWithResponses) DeleteUserWithResponse

func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)

DeleteUserWithResponse Delete a user (admin).

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

Corresponds with DELETE /users/{userId} (the `DeleteUser` operationId).

func (*ClientWithResponses) GetAdminReadinessWithResponse

func (c *ClientWithResponses) GetAdminReadinessWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAdminReadinessResponse, error)

GetAdminReadinessWithResponse Get the redacted operational readiness snapshot (admin).

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

Corresponds with GET /admin/readiness (the `GetAdminReadiness` operationId).

func (*ClientWithResponses) GetAuthStatusWithResponse

func (c *ClientWithResponses) GetAuthStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuthStatusResponse, error)

GetAuthStatusWithResponse Whether setup is needed and whether the caller is authenticated.

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

Corresponds with GET /auth/status (the `GetAuthStatus` operationId).

func (*ClientWithResponses) GetChatWithResponse

func (c *ClientWithResponses) GetChatWithResponse(ctx context.Context, chatId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetChatResponse, error)

GetChatWithResponse Get a chat's metadata (settings, model, title) — no messages.

Returns chat metadata only. Fetch messages via GET /api/v1/chats/{chatId}/messages.

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

Corresponds with GET /chats/{chatId} (the `GetChat` operationId).

func (*ClientWithResponses) GetHealthWithResponse

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

GetHealthWithResponse Liveness probe.

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

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

func (*ClientWithResponses) GetOrCreateEmptyChatWithResponse

func (c *ClientWithResponses) GetOrCreateEmptyChatWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrCreateEmptyChatResponse, error)

GetOrCreateEmptyChatWithResponse Get the caller's reusable "empty chat" (no messages yet), creating one if none exists.

At most one empty chat is kept per user: repeated calls before any message is sent all resolve to the SAME chat id, so a client's "New chat" action never piles up unused rows. Once the chat's first message is sent (POST /chats/{chatId}), it stops being empty and a later call creates/returns a different chat.

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

Corresponds with POST /chats/empty (the `GetOrCreateEmptyChat` operationId).

func (*ClientWithResponses) ImportMCPWithBodyWithResponse

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

ImportMCPWithBodyWithResponse Import MCP servers from a Claude-style .mcp.json (admin).

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 /mcp/import (the `ImportMCP` operationId).

func (*ClientWithResponses) ImportMCPWithResponse

func (c *ClientWithResponses) ImportMCPWithResponse(ctx context.Context, body ImportMCPJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportMCPResponse, error)

ImportMCPWithResponse Import MCP servers from a Claude-style .mcp.json (admin).

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

Corresponds with POST /mcp/import (the `ImportMCP` operationId).

func (*ClientWithResponses) ListChatMCPServersWithResponse

func (c *ClientWithResponses) ListChatMCPServersWithResponse(ctx context.Context, chatId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListChatMCPServersResponse, error)

ListChatMCPServersWithResponse List the MCP servers with each one's per-chat enablement + status.

The MCP servers as this chat sees them: identity, live global connection status, and whether each is enabled for this chat. Ownership-checked, so a chat's owner sees it without admin access.

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

Corresponds with GET /chats/{chatId}/mcp-servers (the `ListChatMCPServers` operationId).

func (*ClientWithResponses) ListChatMessagesWithResponse

func (c *ClientWithResponses) ListChatMessagesWithResponse(ctx context.Context, chatId openapi_types.UUID, params *ListChatMessagesParams, reqEditors ...RequestEditorFn) (*ListChatMessagesResponse, error)

ListChatMessagesWithResponse List a chat's messages, oldest-first, paginated.

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

Corresponds with GET /chats/{chatId}/messages (the `ListChatMessages` operationId).

func (*ClientWithResponses) ListChatsWithResponse

func (c *ClientWithResponses) ListChatsWithResponse(ctx context.Context, params *ListChatsParams, reqEditors ...RequestEditorFn) (*ListChatsResponse, error)

ListChatsWithResponse List the caller's chats, paginated.

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

Corresponds with GET /chats (the `ListChats` operationId).

func (*ClientWithResponses) ListMCPServerToolsWithResponse

func (c *ClientWithResponses) ListMCPServerToolsWithResponse(ctx context.Context, serverId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListMCPServerToolsResponse, error)

ListMCPServerToolsWithResponse List a connected MCP server's tools (admin).

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

Corresponds with GET /mcp/servers/{serverId}/tools (the `ListMCPServerTools` operationId).

func (*ClientWithResponses) ListMCPServersWithResponse

func (c *ClientWithResponses) ListMCPServersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMCPServersResponse, error)

ListMCPServersWithResponse List configured MCP servers (admin).

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

Corresponds with GET /mcp/servers (the `ListMCPServers` operationId).

func (*ClientWithResponses) ListModelsWithResponse

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

ListModelsWithResponse Merged model list across all configured upstreams.

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

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

func (*ClientWithResponses) ListUpstreamHealthWithResponse

func (c *ClientWithResponses) ListUpstreamHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUpstreamHealthResponse, error)

ListUpstreamHealthWithResponse List redacted LLM upstream health snapshots (admin).

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

Corresponds with GET /upstreams (the `ListUpstreamHealth` operationId).

func (*ClientWithResponses) ListUsersWithResponse

func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)

ListUsersWithResponse List users (admin).

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

Corresponds with GET /users (the `ListUsers` operationId).

func (*ClientWithResponses) LoginWithBodyWithResponse

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

LoginWithBodyWithResponse Log in with username + password.

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 /auth/login (the `Login` operationId).

func (*ClientWithResponses) LoginWithResponse

func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)

LoginWithResponse Log in with username + password.

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

Corresponds with POST /auth/login (the `Login` operationId).

func (*ClientWithResponses) LogoutWithResponse

func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResponse, error)

LogoutWithResponse Revoke the current session.

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

Corresponds with POST /auth/logout (the `Logout` operationId).

func (*ClientWithResponses) PreviewChatContextWithBodyWithResponse

func (c *ClientWithResponses) PreviewChatContextWithBodyWithResponse(ctx context.Context, chatId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewChatContextResponse, error)

PreviewChatContextWithBodyWithResponse Preview the exact context selected for an unsent chat 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 /chats/{chatId}/context-preview (the `PreviewChatContext` operationId).

func (*ClientWithResponses) PreviewChatContextWithResponse

func (c *ClientWithResponses) PreviewChatContextWithResponse(ctx context.Context, chatId openapi_types.UUID, body PreviewChatContextJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewChatContextResponse, error)

PreviewChatContextWithResponse Preview the exact context selected for an unsent chat 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 /chats/{chatId}/context-preview (the `PreviewChatContext` operationId).

func (*ClientWithResponses) ReconnectMCPServerWithResponse

func (c *ClientWithResponses) ReconnectMCPServerWithResponse(ctx context.Context, serverId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ReconnectMCPServerResponse, error)

ReconnectMCPServerWithResponse Reconnect an MCP server in the background (admin).

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

Corresponds with POST /mcp/servers/{serverId}/reconnect (the `ReconnectMCPServer` operationId).

func (*ClientWithResponses) RenameChatWithBodyWithResponse

func (c *ClientWithResponses) RenameChatWithBodyWithResponse(ctx context.Context, chatId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenameChatResponse, error)

RenameChatWithBodyWithResponse Rename a chat.

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 /chats/{chatId} (the `RenameChat` operationId).

func (*ClientWithResponses) RenameChatWithResponse

func (c *ClientWithResponses) RenameChatWithResponse(ctx context.Context, chatId openapi_types.UUID, body RenameChatJSONRequestBody, reqEditors ...RequestEditorFn) (*RenameChatResponse, error)

RenameChatWithResponse Rename a chat.

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

Corresponds with PATCH /chats/{chatId} (the `RenameChat` operationId).

func (*ClientWithResponses) SetupWithBodyWithResponse

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

SetupWithBodyWithResponse Bootstrap the first admin user (one-shot).

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 /auth/setup (the `Setup` operationId).

func (*ClientWithResponses) SetupWithResponse

func (c *ClientWithResponses) SetupWithResponse(ctx context.Context, body SetupJSONRequestBody, reqEditors ...RequestEditorFn) (*SetupResponse, error)

SetupWithResponse Bootstrap the first admin user (one-shot).

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

Corresponds with POST /auth/setup (the `Setup` operationId).

func (*ClientWithResponses) UpdateChatMCPServerWithBodyWithResponse

func (c *ClientWithResponses) UpdateChatMCPServerWithBodyWithResponse(ctx context.Context, chatId openapi_types.UUID, serverId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateChatMCPServerResponse, error)

UpdateChatMCPServerWithBodyWithResponse Enable or disable one MCP server for this chat.

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 /chats/{chatId}/mcp-servers/{serverId} (the `UpdateChatMCPServer` operationId).

func (*ClientWithResponses) UpdateChatMCPServerWithResponse

func (c *ClientWithResponses) UpdateChatMCPServerWithResponse(ctx context.Context, chatId openapi_types.UUID, serverId openapi_types.UUID, body UpdateChatMCPServerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateChatMCPServerResponse, error)

UpdateChatMCPServerWithResponse Enable or disable one MCP server for this chat.

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

Corresponds with PATCH /chats/{chatId}/mcp-servers/{serverId} (the `UpdateChatMCPServer` operationId).

func (*ClientWithResponses) UpdateChatSettingsWithBodyWithResponse

func (c *ClientWithResponses) UpdateChatSettingsWithBodyWithResponse(ctx context.Context, chatId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateChatSettingsResponse, error)

UpdateChatSettingsWithBodyWithResponse Update a chat's model-generation settings.

Full replacement of the chat's settings object: a field omitted from the body clears that setting (back to the provider default; history returns to its 100000-token default).

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 /chats/{chatId}/settings (the `UpdateChatSettings` operationId).

func (*ClientWithResponses) UpdateChatSettingsWithResponse

func (c *ClientWithResponses) UpdateChatSettingsWithResponse(ctx context.Context, chatId openapi_types.UUID, body UpdateChatSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateChatSettingsResponse, error)

UpdateChatSettingsWithResponse Update a chat's model-generation settings.

Full replacement of the chat's settings object: a field omitted from the body clears that setting (back to the provider default; history returns to its 100000-token default).

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

Corresponds with PATCH /chats/{chatId}/settings (the `UpdateChatSettings` operationId).

func (*ClientWithResponses) UpdateMCPServerWithBodyWithResponse

func (c *ClientWithResponses) UpdateMCPServerWithBodyWithResponse(ctx context.Context, serverId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMCPServerResponse, error)

UpdateMCPServerWithBodyWithResponse Edit an MCP server and reconnect (admin).

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 /mcp/servers/{serverId} (the `UpdateMCPServer` operationId).

func (*ClientWithResponses) UpdateMCPServerWithResponse

func (c *ClientWithResponses) UpdateMCPServerWithResponse(ctx context.Context, serverId openapi_types.UUID, body UpdateMCPServerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMCPServerResponse, error)

UpdateMCPServerWithResponse Edit an MCP server and reconnect (admin).

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

Corresponds with PATCH /mcp/servers/{serverId} (the `UpdateMCPServer` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// GetAdminReadinessWithResponse Get the redacted operational readiness snapshot (admin).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /admin/readiness (the `GetAdminReadiness` operationId).
	GetAdminReadinessWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAdminReadinessResponse, error)

	// LoginWithBodyWithResponse Log in with username + password.
	//
	// 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 /auth/login (the `Login` operationId).
	LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResponse, error)

	// LoginWithResponse Log in with username + password.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /auth/login (the `Login` operationId).
	LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)

	// LogoutWithResponse Revoke the current session.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /auth/logout (the `Logout` operationId).
	LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResponse, error)

	// SetupWithBodyWithResponse Bootstrap the first admin user (one-shot).
	//
	// 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 /auth/setup (the `Setup` operationId).
	SetupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetupResponse, error)

	// SetupWithResponse Bootstrap the first admin user (one-shot).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /auth/setup (the `Setup` operationId).
	SetupWithResponse(ctx context.Context, body SetupJSONRequestBody, reqEditors ...RequestEditorFn) (*SetupResponse, error)

	// GetAuthStatusWithResponse Whether setup is needed and whether the caller is authenticated.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /auth/status (the `GetAuthStatus` operationId).
	GetAuthStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAuthStatusResponse, error)

	// ListChatsWithResponse List the caller's chats, paginated.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /chats (the `ListChats` operationId).
	ListChatsWithResponse(ctx context.Context, params *ListChatsParams, reqEditors ...RequestEditorFn) (*ListChatsResponse, error)

	// CreateChatWithBodyWithResponse Create a chat and stream the first assistant turn (SSE).
	//
	// Streams Anthropic-style SSE. The new chat id is carried in the message_start event's stream_id. Advisory chat_status events report connecting, waiting_first_token, streaming, running_tool, or retrying; clients must treat them as ephemeral progress metadata rather than durable assistant content. If a real stream stops after useful output, GET /chats/{chatId}/messages returns that assistant checkpoint with incomplete=true; it is not included in later model context.
	//
	// 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 /chats (the `CreateChat` operationId).
	CreateChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateChatResponse, error)

	// CreateChatWithResponse Create a chat and stream the first assistant turn (SSE).
	//
	// Streams Anthropic-style SSE. The new chat id is carried in the message_start event's stream_id. Advisory chat_status events report connecting, waiting_first_token, streaming, running_tool, or retrying; clients must treat them as ephemeral progress metadata rather than durable assistant content. If a real stream stops after useful output, GET /chats/{chatId}/messages returns that assistant checkpoint with incomplete=true; it is not included in later model context.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /chats (the `CreateChat` operationId).
	CreateChatWithResponse(ctx context.Context, body CreateChatJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateChatResponse, error)

	// GetOrCreateEmptyChatWithResponse Get the caller's reusable "empty chat" (no messages yet), creating one if none exists.
	//
	// At most one empty chat is kept per user: repeated calls before any message is sent all resolve to the SAME chat id, so a client's "New chat" action never piles up unused rows. Once the chat's first message is sent (POST /chats/{chatId}), it stops being empty and a later call creates/returns a different chat.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /chats/empty (the `GetOrCreateEmptyChat` operationId).
	GetOrCreateEmptyChatWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrCreateEmptyChatResponse, error)

	// DeleteChatWithResponse Soft-delete one caller-owned chat.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /chats/{chatId} (the `DeleteChat` operationId).
	DeleteChatWithResponse(ctx context.Context, chatId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteChatResponse, error)

	// GetChatWithResponse Get a chat's metadata (settings, model, title) — no messages.
	//
	// Returns chat metadata only. Fetch messages via GET /api/v1/chats/{chatId}/messages.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /chats/{chatId} (the `GetChat` operationId).
	GetChatWithResponse(ctx context.Context, chatId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetChatResponse, error)

	// RenameChatWithBodyWithResponse Rename a chat.
	//
	// 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 /chats/{chatId} (the `RenameChat` operationId).
	RenameChatWithBodyWithResponse(ctx context.Context, chatId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenameChatResponse, error)

	// RenameChatWithResponse Rename a chat.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /chats/{chatId} (the `RenameChat` operationId).
	RenameChatWithResponse(ctx context.Context, chatId openapi_types.UUID, body RenameChatJSONRequestBody, reqEditors ...RequestEditorFn) (*RenameChatResponse, error)

	// ContinueChatWithBodyWithResponse Continue a chat and stream the next assistant turn (SSE).
	//
	// Streams Anthropic-style SSE plus advisory chat_status progress events. A status is emitted only after its corresponding provider or tool lifecycle transition; it carries no prompt, tool, or provider payload.
	//
	// 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 /chats/{chatId} (the `ContinueChat` operationId).
	ContinueChatWithBodyWithResponse(ctx context.Context, chatId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ContinueChatResponse, error)

	// ContinueChatWithResponse Continue a chat and stream the next assistant turn (SSE).
	//
	// Streams Anthropic-style SSE plus advisory chat_status progress events. A status is emitted only after its corresponding provider or tool lifecycle transition; it carries no prompt, tool, or provider payload.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /chats/{chatId} (the `ContinueChat` operationId).
	ContinueChatWithResponse(ctx context.Context, chatId openapi_types.UUID, body ContinueChatJSONRequestBody, reqEditors ...RequestEditorFn) (*ContinueChatResponse, error)

	// PreviewChatContextWithBodyWithResponse Preview the exact context selected for an unsent chat 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 /chats/{chatId}/context-preview (the `PreviewChatContext` operationId).
	PreviewChatContextWithBodyWithResponse(ctx context.Context, chatId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreviewChatContextResponse, error)

	// PreviewChatContextWithResponse Preview the exact context selected for an unsent chat 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 /chats/{chatId}/context-preview (the `PreviewChatContext` operationId).
	PreviewChatContextWithResponse(ctx context.Context, chatId openapi_types.UUID, body PreviewChatContextJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewChatContextResponse, error)

	// ListChatMCPServersWithResponse List the MCP servers with each one's per-chat enablement + status.
	//
	// The MCP servers as this chat sees them: identity, live global connection status, and whether each is enabled for this chat. Ownership-checked, so a chat's owner sees it without admin access.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /chats/{chatId}/mcp-servers (the `ListChatMCPServers` operationId).
	ListChatMCPServersWithResponse(ctx context.Context, chatId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListChatMCPServersResponse, error)

	// UpdateChatMCPServerWithBodyWithResponse Enable or disable one MCP server for this chat.
	//
	// 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 /chats/{chatId}/mcp-servers/{serverId} (the `UpdateChatMCPServer` operationId).
	UpdateChatMCPServerWithBodyWithResponse(ctx context.Context, chatId openapi_types.UUID, serverId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateChatMCPServerResponse, error)

	// UpdateChatMCPServerWithResponse Enable or disable one MCP server for this chat.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /chats/{chatId}/mcp-servers/{serverId} (the `UpdateChatMCPServer` operationId).
	UpdateChatMCPServerWithResponse(ctx context.Context, chatId openapi_types.UUID, serverId openapi_types.UUID, body UpdateChatMCPServerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateChatMCPServerResponse, error)

	// ListChatMessagesWithResponse List a chat's messages, oldest-first, paginated.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /chats/{chatId}/messages (the `ListChatMessages` operationId).
	ListChatMessagesWithResponse(ctx context.Context, chatId openapi_types.UUID, params *ListChatMessagesParams, reqEditors ...RequestEditorFn) (*ListChatMessagesResponse, error)

	// UpdateChatSettingsWithBodyWithResponse Update a chat's model-generation settings.
	//
	// Full replacement of the chat's settings object: a field omitted from the body clears that setting (back to the provider default; history returns to its 100000-token default).
	//
	// 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 /chats/{chatId}/settings (the `UpdateChatSettings` operationId).
	UpdateChatSettingsWithBodyWithResponse(ctx context.Context, chatId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateChatSettingsResponse, error)

	// UpdateChatSettingsWithResponse Update a chat's model-generation settings.
	//
	// Full replacement of the chat's settings object: a field omitted from the body clears that setting (back to the provider default; history returns to its 100000-token default).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /chats/{chatId}/settings (the `UpdateChatSettings` operationId).
	UpdateChatSettingsWithResponse(ctx context.Context, chatId openapi_types.UUID, body UpdateChatSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateChatSettingsResponse, error)

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

	// ImportMCPWithBodyWithResponse Import MCP servers from a Claude-style .mcp.json (admin).
	//
	// 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 /mcp/import (the `ImportMCP` operationId).
	ImportMCPWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportMCPResponse, error)

	// ImportMCPWithResponse Import MCP servers from a Claude-style .mcp.json (admin).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /mcp/import (the `ImportMCP` operationId).
	ImportMCPWithResponse(ctx context.Context, body ImportMCPJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportMCPResponse, error)

	// ListMCPServersWithResponse List configured MCP servers (admin).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /mcp/servers (the `ListMCPServers` operationId).
	ListMCPServersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMCPServersResponse, error)

	// CreateMCPServerWithBodyWithResponse Add an MCP server (admin).
	//
	// 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 /mcp/servers (the `CreateMCPServer` operationId).
	CreateMCPServerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMCPServerResponse, error)

	// CreateMCPServerWithResponse Add an MCP server (admin).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /mcp/servers (the `CreateMCPServer` operationId).
	CreateMCPServerWithResponse(ctx context.Context, body CreateMCPServerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMCPServerResponse, error)

	// DeleteMCPServerWithResponse Remove an MCP server (admin).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /mcp/servers/{serverId} (the `DeleteMCPServer` operationId).
	DeleteMCPServerWithResponse(ctx context.Context, serverId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteMCPServerResponse, error)

	// UpdateMCPServerWithBodyWithResponse Edit an MCP server and reconnect (admin).
	//
	// 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 /mcp/servers/{serverId} (the `UpdateMCPServer` operationId).
	UpdateMCPServerWithBodyWithResponse(ctx context.Context, serverId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMCPServerResponse, error)

	// UpdateMCPServerWithResponse Edit an MCP server and reconnect (admin).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /mcp/servers/{serverId} (the `UpdateMCPServer` operationId).
	UpdateMCPServerWithResponse(ctx context.Context, serverId openapi_types.UUID, body UpdateMCPServerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMCPServerResponse, error)

	// ReconnectMCPServerWithResponse Reconnect an MCP server in the background (admin).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /mcp/servers/{serverId}/reconnect (the `ReconnectMCPServer` operationId).
	ReconnectMCPServerWithResponse(ctx context.Context, serverId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ReconnectMCPServerResponse, error)

	// ListMCPServerToolsWithResponse List a connected MCP server's tools (admin).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /mcp/servers/{serverId}/tools (the `ListMCPServerTools` operationId).
	ListMCPServerToolsWithResponse(ctx context.Context, serverId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListMCPServerToolsResponse, error)

	// ListModelsWithResponse Merged model list across all configured upstreams.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /models (the `ListModels` operationId).
	ListModelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListModelsResponse, error)

	// ListUpstreamHealthWithResponse List redacted LLM upstream health snapshots (admin).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /upstreams (the `ListUpstreamHealth` operationId).
	ListUpstreamHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUpstreamHealthResponse, error)

	// ListUsersWithResponse List users (admin).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /users (the `ListUsers` operationId).
	ListUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)

	// CreateUserWithBodyWithResponse Provision a user (admin).
	//
	// 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 /users (the `CreateUser` operationId).
	CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

	// CreateUserWithResponse Provision a user (admin).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /users (the `CreateUser` operationId).
	CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

	// DeleteUserWithResponse Delete a user (admin).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /users/{userId} (the `DeleteUser` operationId).
	DeleteUserWithResponse(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)
}

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

type Conflict

type Conflict = Error

Conflict defines model for Conflict.

type ContinueChatJSONRequestBody

type ContinueChatJSONRequestBody = ContinueChatRequest

ContinueChatJSONRequestBody defines body for ContinueChat for application/json ContentType.

type ContinueChatRequest

type ContinueChatRequest struct {
	Message string `json:"message"`

	// Model Model for this and subsequent turns; switching it updates the chat's model. Omit to keep the chat's current model.
	Model *string `json:"model,omitempty"`
}

ContinueChatRequest defines model for ContinueChatRequest.

type ContinueChatResponse

type ContinueChatResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
}

func ParseContinueChatResponse

func ParseContinueChatResponse(rsp *http.Response) (*ContinueChatResponse, error)

ParseContinueChatResponse parses an HTTP response from a ContinueChatWithResponse call

func (ContinueChatResponse) ContentType

func (r ContinueChatResponse) ContentType() string

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

func (ContinueChatResponse) GetBody

func (r ContinueChatResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ContinueChatResponse) GetJSON400

func (r ContinueChatResponse) GetJSON400() *BadRequest

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

func (ContinueChatResponse) GetJSON404

func (r ContinueChatResponse) GetJSON404() *NotFound

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

func (ContinueChatResponse) Status

func (r ContinueChatResponse) Status() string

Status returns HTTPResponse.Status

func (ContinueChatResponse) StatusCode

func (r ContinueChatResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateChatJSONRequestBody

type CreateChatJSONRequestBody = CreateChatRequest

CreateChatJSONRequestBody defines body for CreateChat for application/json ContentType.

type CreateChatRequest

type CreateChatRequest struct {
	Message string `json:"message"`
	Model   string `json:"model"`
}

CreateChatRequest defines model for CreateChatRequest.

type CreateChatResponse

type CreateChatResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
}

func ParseCreateChatResponse

func ParseCreateChatResponse(rsp *http.Response) (*CreateChatResponse, error)

ParseCreateChatResponse parses an HTTP response from a CreateChatWithResponse call

func (CreateChatResponse) ContentType

func (r CreateChatResponse) ContentType() string

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

func (CreateChatResponse) GetBody

func (r CreateChatResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateChatResponse) GetJSON400

func (r CreateChatResponse) GetJSON400() *BadRequest

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

func (CreateChatResponse) Status

func (r CreateChatResponse) Status() string

Status returns HTTPResponse.Status

func (CreateChatResponse) StatusCode

func (r CreateChatResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateMCPServerJSONRequestBody

type CreateMCPServerJSONRequestBody = CreateMCPServerRequest

CreateMCPServerJSONRequestBody defines body for CreateMCPServer for application/json ContentType.

type CreateMCPServerRequest

type CreateMCPServerRequest struct {
	Args      *[]string                       `json:"args,omitempty"`
	Command   *string                         `json:"command,omitempty"`
	Env       *map[string]string              `json:"env,omitempty"`
	Headers   *map[string]string              `json:"headers,omitempty"`
	Name      string                          `json:"name"`
	Transport CreateMCPServerRequestTransport `json:"transport"`
	Url       *string                         `json:"url,omitempty"`
}

CreateMCPServerRequest defines model for CreateMCPServerRequest.

type CreateMCPServerRequestTransport

type CreateMCPServerRequestTransport string

CreateMCPServerRequestTransport defines model for CreateMCPServerRequest.Transport.

const (
	CreateMCPServerRequestTransportHttp  CreateMCPServerRequestTransport = "http"
	CreateMCPServerRequestTransportStdio CreateMCPServerRequestTransport = "stdio"
)

Defines values for CreateMCPServerRequestTransport.

func (CreateMCPServerRequestTransport) Valid

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

type CreateMCPServerResponse

type CreateMCPServerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *MCPServer
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
}

func ParseCreateMCPServerResponse

func ParseCreateMCPServerResponse(rsp *http.Response) (*CreateMCPServerResponse, error)

ParseCreateMCPServerResponse parses an HTTP response from a CreateMCPServerWithResponse call

func (CreateMCPServerResponse) ContentType

func (r CreateMCPServerResponse) ContentType() string

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

func (CreateMCPServerResponse) GetBody

func (r CreateMCPServerResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateMCPServerResponse) GetJSON201

func (r CreateMCPServerResponse) GetJSON201() *MCPServer

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

func (CreateMCPServerResponse) GetJSON400

func (r CreateMCPServerResponse) GetJSON400() *BadRequest

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

func (CreateMCPServerResponse) GetJSON409

func (r CreateMCPServerResponse) GetJSON409() *Conflict

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

func (CreateMCPServerResponse) Status

func (r CreateMCPServerResponse) Status() string

Status returns HTTPResponse.Status

func (CreateMCPServerResponse) StatusCode

func (r CreateMCPServerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateUserJSONRequestBody

type CreateUserJSONRequestBody = CreateUserRequest

CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.

type CreateUserRequest

type CreateUserRequest struct {
	IsAdmin  *bool  `json:"isAdmin,omitempty"`
	Password string `json:"password"`
	Username string `json:"username"`
}

CreateUserRequest defines model for CreateUserRequest.

type CreateUserResponse

type CreateUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *User
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
}

func ParseCreateUserResponse

func ParseCreateUserResponse(rsp *http.Response) (*CreateUserResponse, error)

ParseCreateUserResponse parses an HTTP response from a CreateUserWithResponse call

func (CreateUserResponse) ContentType

func (r CreateUserResponse) ContentType() string

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

func (CreateUserResponse) GetBody

func (r CreateUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateUserResponse) GetJSON201

func (r CreateUserResponse) GetJSON201() *User

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

func (CreateUserResponse) GetJSON400

func (r CreateUserResponse) GetJSON400() *BadRequest

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

func (CreateUserResponse) GetJSON409

func (r CreateUserResponse) GetJSON409() *Conflict

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

func (CreateUserResponse) Status

func (r CreateUserResponse) Status() string

Status returns HTTPResponse.Status

func (CreateUserResponse) StatusCode

func (r CreateUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Credentials

type Credentials struct {
	Password string `json:"password"`
	Username string `json:"username"`
}

Credentials defines model for Credentials.

type DeleteChatResponse

type DeleteChatResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
}

func ParseDeleteChatResponse

func ParseDeleteChatResponse(rsp *http.Response) (*DeleteChatResponse, error)

ParseDeleteChatResponse parses an HTTP response from a DeleteChatWithResponse call

func (DeleteChatResponse) ContentType

func (r DeleteChatResponse) ContentType() string

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

func (DeleteChatResponse) GetBody

func (r DeleteChatResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteChatResponse) GetJSON404

func (r DeleteChatResponse) GetJSON404() *NotFound

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

func (DeleteChatResponse) Status

func (r DeleteChatResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteChatResponse) StatusCode

func (r DeleteChatResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteMCPServerResponse

type DeleteMCPServerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
}

func ParseDeleteMCPServerResponse

func ParseDeleteMCPServerResponse(rsp *http.Response) (*DeleteMCPServerResponse, error)

ParseDeleteMCPServerResponse parses an HTTP response from a DeleteMCPServerWithResponse call

func (DeleteMCPServerResponse) ContentType

func (r DeleteMCPServerResponse) ContentType() string

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

func (DeleteMCPServerResponse) GetBody

func (r DeleteMCPServerResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteMCPServerResponse) GetJSON404

func (r DeleteMCPServerResponse) GetJSON404() *NotFound

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

func (DeleteMCPServerResponse) Status

func (r DeleteMCPServerResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteMCPServerResponse) StatusCode

func (r DeleteMCPServerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteUserResponse

type DeleteUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
}

func ParseDeleteUserResponse

func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error)

ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call

func (DeleteUserResponse) ContentType

func (r DeleteUserResponse) ContentType() string

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

func (DeleteUserResponse) GetBody

func (r DeleteUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteUserResponse) GetJSON404

func (r DeleteUserResponse) GetJSON404() *NotFound

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

func (DeleteUserResponse) Status

func (r DeleteUserResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteUserResponse) StatusCode

func (r DeleteUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Error

type Error struct {
	Code    string                  `json:"code"`
	Details *map[string]interface{} `json:"details,omitempty"`
	Message string                  `json:"message"`
}

Error defines model for Error.

type GetAdminReadinessResponse

type GetAdminReadinessResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AdminReadiness
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
}

func ParseGetAdminReadinessResponse

func ParseGetAdminReadinessResponse(rsp *http.Response) (*GetAdminReadinessResponse, error)

ParseGetAdminReadinessResponse parses an HTTP response from a GetAdminReadinessWithResponse call

func (GetAdminReadinessResponse) ContentType

func (r GetAdminReadinessResponse) ContentType() string

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

func (GetAdminReadinessResponse) GetBody

func (r GetAdminReadinessResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetAdminReadinessResponse) GetJSON200

func (r GetAdminReadinessResponse) GetJSON200() *AdminReadiness

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

func (GetAdminReadinessResponse) GetJSON401

func (r GetAdminReadinessResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetAdminReadinessResponse) Status

func (r GetAdminReadinessResponse) Status() string

Status returns HTTPResponse.Status

func (GetAdminReadinessResponse) StatusCode

func (r GetAdminReadinessResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAuthStatusResponse

type GetAuthStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AuthStatus
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetAuthStatusResponse200Headers
}

func ParseGetAuthStatusResponse

func ParseGetAuthStatusResponse(rsp *http.Response) (*GetAuthStatusResponse, error)

ParseGetAuthStatusResponse parses an HTTP response from a GetAuthStatusWithResponse call

func (GetAuthStatusResponse) ContentType

func (r GetAuthStatusResponse) ContentType() string

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

func (GetAuthStatusResponse) GetBody

func (r GetAuthStatusResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetAuthStatusResponse) GetJSON200

func (r GetAuthStatusResponse) GetJSON200() *AuthStatus

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

func (GetAuthStatusResponse) Status

func (r GetAuthStatusResponse) Status() string

Status returns HTTPResponse.Status

func (GetAuthStatusResponse) StatusCode

func (r GetAuthStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAuthStatusResponse200Headers

type GetAuthStatusResponse200Headers struct {
	SetCookie *string
}

GetAuthStatusResponse200Headers the declared response headers of an HTTP 200 response for GetAuthStatus

type GetChatResponse

type GetChatResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Chat
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
}

func ParseGetChatResponse

func ParseGetChatResponse(rsp *http.Response) (*GetChatResponse, error)

ParseGetChatResponse parses an HTTP response from a GetChatWithResponse call

func (GetChatResponse) ContentType

func (r GetChatResponse) ContentType() string

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

func (GetChatResponse) GetBody

func (r GetChatResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetChatResponse) GetJSON200

func (r GetChatResponse) GetJSON200() *Chat

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

func (GetChatResponse) GetJSON404

func (r GetChatResponse) GetJSON404() *NotFound

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

func (GetChatResponse) Status

func (r GetChatResponse) Status() string

Status returns HTTPResponse.Status

func (GetChatResponse) StatusCode

func (r GetChatResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHealthResponse

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

func ParseGetHealthResponse

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

ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call

func (GetHealthResponse) ContentType

func (r GetHealthResponse) ContentType() string

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

func (GetHealthResponse) GetBody

func (r GetHealthResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetHealthResponse) GetJSON200

func (r GetHealthResponse) GetJSON200() *Health

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

func (GetHealthResponse) Status

func (r GetHealthResponse) Status() string

Status returns HTTPResponse.Status

func (GetHealthResponse) StatusCode

func (r GetHealthResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrCreateEmptyChatResponse

type GetOrCreateEmptyChatResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Chat
}

func ParseGetOrCreateEmptyChatResponse

func ParseGetOrCreateEmptyChatResponse(rsp *http.Response) (*GetOrCreateEmptyChatResponse, error)

ParseGetOrCreateEmptyChatResponse parses an HTTP response from a GetOrCreateEmptyChatWithResponse call

func (GetOrCreateEmptyChatResponse) ContentType

func (r GetOrCreateEmptyChatResponse) ContentType() string

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

func (GetOrCreateEmptyChatResponse) GetBody

func (r GetOrCreateEmptyChatResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetOrCreateEmptyChatResponse) GetJSON200

func (r GetOrCreateEmptyChatResponse) GetJSON200() *Chat

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

func (GetOrCreateEmptyChatResponse) Status

Status returns HTTPResponse.Status

func (GetOrCreateEmptyChatResponse) StatusCode

func (r GetOrCreateEmptyChatResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Health

type Health struct {
	Status string `json:"status"`
}

Health defines model for Health.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ImportMCPJSONRequestBody

type ImportMCPJSONRequestBody = ImportMCPRequest

ImportMCPJSONRequestBody defines body for ImportMCP for application/json ContentType.

type ImportMCPRequest

type ImportMCPRequest struct {
	// Content Raw .mcp.json file content (Claude-style).
	Content string `json:"content"`
}

ImportMCPRequest defines model for ImportMCPRequest.

type ImportMCPResponse

type ImportMCPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *MCPImportResult
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
}

func ParseImportMCPResponse

func ParseImportMCPResponse(rsp *http.Response) (*ImportMCPResponse, error)

ParseImportMCPResponse parses an HTTP response from a ImportMCPWithResponse call

func (ImportMCPResponse) ContentType

func (r ImportMCPResponse) ContentType() string

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

func (ImportMCPResponse) GetBody

func (r ImportMCPResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ImportMCPResponse) GetJSON200

func (r ImportMCPResponse) GetJSON200() *MCPImportResult

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

func (ImportMCPResponse) GetJSON400

func (r ImportMCPResponse) GetJSON400() *BadRequest

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

func (ImportMCPResponse) Status

func (r ImportMCPResponse) Status() string

Status returns HTTPResponse.Status

func (ImportMCPResponse) StatusCode

func (r ImportMCPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListChatMCPServersResponse

type ListChatMCPServersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]ChatMCPServer
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
}

func ParseListChatMCPServersResponse

func ParseListChatMCPServersResponse(rsp *http.Response) (*ListChatMCPServersResponse, error)

ParseListChatMCPServersResponse parses an HTTP response from a ListChatMCPServersWithResponse call

func (ListChatMCPServersResponse) ContentType

func (r ListChatMCPServersResponse) ContentType() string

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

func (ListChatMCPServersResponse) GetBody

func (r ListChatMCPServersResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListChatMCPServersResponse) GetJSON200

func (r ListChatMCPServersResponse) GetJSON200() *[]ChatMCPServer

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

func (ListChatMCPServersResponse) GetJSON404

func (r ListChatMCPServersResponse) GetJSON404() *NotFound

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

func (ListChatMCPServersResponse) Status

Status returns HTTPResponse.Status

func (ListChatMCPServersResponse) StatusCode

func (r ListChatMCPServersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListChatMessagesParams

type ListChatMessagesParams struct {
	Limit  *int `form:"limit,omitempty" json:"limit,omitempty"`
	Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}

ListChatMessagesParams defines parameters for ListChatMessages.

type ListChatMessagesResponse

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

func ParseListChatMessagesResponse

func ParseListChatMessagesResponse(rsp *http.Response) (*ListChatMessagesResponse, error)

ParseListChatMessagesResponse parses an HTTP response from a ListChatMessagesWithResponse call

func (ListChatMessagesResponse) ContentType

func (r ListChatMessagesResponse) ContentType() string

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

func (ListChatMessagesResponse) GetBody

func (r ListChatMessagesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListChatMessagesResponse) GetJSON200

func (r ListChatMessagesResponse) GetJSON200() *MessageList

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

func (ListChatMessagesResponse) GetJSON400

func (r ListChatMessagesResponse) GetJSON400() *BadRequest

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

func (ListChatMessagesResponse) GetJSON404

func (r ListChatMessagesResponse) GetJSON404() *NotFound

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

func (ListChatMessagesResponse) Status

func (r ListChatMessagesResponse) Status() string

Status returns HTTPResponse.Status

func (ListChatMessagesResponse) StatusCode

func (r ListChatMessagesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListChatsParams

type ListChatsParams struct {
	Limit  *int `form:"limit,omitempty" json:"limit,omitempty"`
	Offset *int `form:"offset,omitempty" json:"offset,omitempty"`

	// Search Case-insensitive literal title search.
	Search *string `form:"search,omitempty" json:"search,omitempty"`
}

ListChatsParams defines parameters for ListChats.

type ListChatsResponse

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

func ParseListChatsResponse

func ParseListChatsResponse(rsp *http.Response) (*ListChatsResponse, error)

ParseListChatsResponse parses an HTTP response from a ListChatsWithResponse call

func (ListChatsResponse) ContentType

func (r ListChatsResponse) ContentType() string

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

func (ListChatsResponse) GetBody

func (r ListChatsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListChatsResponse) GetJSON200

func (r ListChatsResponse) GetJSON200() *ChatList

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

func (ListChatsResponse) GetJSON400

func (r ListChatsResponse) GetJSON400() *BadRequest

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

func (ListChatsResponse) GetJSON404

func (r ListChatsResponse) GetJSON404() *NotFound

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

func (ListChatsResponse) Status

func (r ListChatsResponse) Status() string

Status returns HTTPResponse.Status

func (ListChatsResponse) StatusCode

func (r ListChatsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMCPServerToolsResponse

type ListMCPServerToolsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]MCPTool
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
}

func ParseListMCPServerToolsResponse

func ParseListMCPServerToolsResponse(rsp *http.Response) (*ListMCPServerToolsResponse, error)

ParseListMCPServerToolsResponse parses an HTTP response from a ListMCPServerToolsWithResponse call

func (ListMCPServerToolsResponse) ContentType

func (r ListMCPServerToolsResponse) ContentType() string

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

func (ListMCPServerToolsResponse) GetBody

func (r ListMCPServerToolsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListMCPServerToolsResponse) GetJSON200

func (r ListMCPServerToolsResponse) GetJSON200() *[]MCPTool

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

func (ListMCPServerToolsResponse) GetJSON404

func (r ListMCPServerToolsResponse) GetJSON404() *NotFound

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

func (ListMCPServerToolsResponse) Status

Status returns HTTPResponse.Status

func (ListMCPServerToolsResponse) StatusCode

func (r ListMCPServerToolsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMCPServersResponse

type ListMCPServersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]MCPServer
}

func ParseListMCPServersResponse

func ParseListMCPServersResponse(rsp *http.Response) (*ListMCPServersResponse, error)

ParseListMCPServersResponse parses an HTTP response from a ListMCPServersWithResponse call

func (ListMCPServersResponse) ContentType

func (r ListMCPServersResponse) ContentType() string

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

func (ListMCPServersResponse) GetBody

func (r ListMCPServersResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListMCPServersResponse) GetJSON200

func (r ListMCPServersResponse) GetJSON200() *[]MCPServer

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

func (ListMCPServersResponse) Status

func (r ListMCPServersResponse) Status() string

Status returns HTTPResponse.Status

func (ListMCPServersResponse) StatusCode

func (r ListMCPServersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListModelsResponse

type ListModelsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Model
}

func ParseListModelsResponse

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

ParseListModelsResponse parses an HTTP response from a ListModelsWithResponse call

func (ListModelsResponse) ContentType

func (r ListModelsResponse) ContentType() string

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

func (ListModelsResponse) GetBody

func (r ListModelsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListModelsResponse) GetJSON200

func (r ListModelsResponse) GetJSON200() *[]Model

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

func (ListModelsResponse) Status

func (r ListModelsResponse) Status() string

Status returns HTTPResponse.Status

func (ListModelsResponse) StatusCode

func (r ListModelsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListUpstreamHealthResponse

type ListUpstreamHealthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]UpstreamHealth
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
}

func ParseListUpstreamHealthResponse

func ParseListUpstreamHealthResponse(rsp *http.Response) (*ListUpstreamHealthResponse, error)

ParseListUpstreamHealthResponse parses an HTTP response from a ListUpstreamHealthWithResponse call

func (ListUpstreamHealthResponse) ContentType

func (r ListUpstreamHealthResponse) ContentType() string

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

func (ListUpstreamHealthResponse) GetBody

func (r ListUpstreamHealthResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListUpstreamHealthResponse) GetJSON200

func (r ListUpstreamHealthResponse) GetJSON200() *[]UpstreamHealth

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

func (ListUpstreamHealthResponse) GetJSON401

func (r ListUpstreamHealthResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListUpstreamHealthResponse) Status

Status returns HTTPResponse.Status

func (ListUpstreamHealthResponse) StatusCode

func (r ListUpstreamHealthResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListUsersResponse

type ListUsersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]User
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
}

func ParseListUsersResponse

func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error)

ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call

func (ListUsersResponse) ContentType

func (r ListUsersResponse) ContentType() string

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

func (ListUsersResponse) GetBody

func (r ListUsersResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListUsersResponse) GetJSON200

func (r ListUsersResponse) GetJSON200() *[]User

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

func (ListUsersResponse) GetJSON401

func (r ListUsersResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListUsersResponse) Status

func (r ListUsersResponse) Status() string

Status returns HTTPResponse.Status

func (ListUsersResponse) StatusCode

func (r ListUsersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LoginJSONRequestBody

type LoginJSONRequestBody = Credentials

LoginJSONRequestBody defines body for Login for application/json ContentType.

type LoginResponse

type LoginResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *User
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *LoginResponse200Headers
}

func ParseLoginResponse

func ParseLoginResponse(rsp *http.Response) (*LoginResponse, error)

ParseLoginResponse parses an HTTP response from a LoginWithResponse call

func (LoginResponse) ContentType

func (r LoginResponse) ContentType() string

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

func (LoginResponse) GetBody

func (r LoginResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (LoginResponse) GetJSON200

func (r LoginResponse) GetJSON200() *User

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

func (LoginResponse) GetJSON401

func (r LoginResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (LoginResponse) Status

func (r LoginResponse) Status() string

Status returns HTTPResponse.Status

func (LoginResponse) StatusCode

func (r LoginResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LoginResponse200Headers

type LoginResponse200Headers struct {
	SetCookie *string
}

LoginResponse200Headers the declared response headers of an HTTP 200 response for Login

type LogoutResponse

type LogoutResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseLogoutResponse

func ParseLogoutResponse(rsp *http.Response) (*LogoutResponse, error)

ParseLogoutResponse parses an HTTP response from a LogoutWithResponse call

func (LogoutResponse) ContentType

func (r LogoutResponse) ContentType() string

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

func (LogoutResponse) GetBody

func (r LogoutResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (LogoutResponse) Status

func (r LogoutResponse) Status() string

Status returns HTTPResponse.Status

func (LogoutResponse) StatusCode

func (r LogoutResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MCPImportResult

type MCPImportResult struct {
	Imported []MCPServer `json:"imported"`
}

MCPImportResult defines model for MCPImportResult.

type MCPServer

type MCPServer struct {
	// Args Command arguments (stdio transport).
	Args    *[]string `json:"args,omitempty"`
	Command *string   `json:"command,omitempty"`
	Enabled bool      `json:"enabled"`

	// Env Environment variables (stdio transport), decrypted for edit prefill. Admin-only response; sealed at rest, never logged.
	Env *map[string]string `json:"env,omitempty"`

	// Headers HTTP headers (http transport). Authorization values are returned as '<scheme> [SECRET]' for edit prefill; resubmitting that unchanged value preserves the existing sealed credential. Other header values are returned as configured. Admin-only response; sealed at rest and never logged (the request logger records no bodies).
	Headers *map[string]string `json:"headers,omitempty"`
	Id      openapi_types.UUID `json:"id"`

	// LastConnectionAttemptAt UTC time at which the most recent connection attempt started.
	LastConnectionAttemptAt *time.Time `json:"lastConnectionAttemptAt,omitempty"`

	// LastConnectionFailureAt UTC time at which this server most recently failed to connect or disconnected unexpectedly.
	LastConnectionFailureAt *time.Time `json:"lastConnectionFailureAt,omitempty"`

	// LastConnectionLatencyMs Elapsed milliseconds for the most recent completed connection attempt.
	LastConnectionLatencyMs *int `json:"lastConnectionLatencyMs,omitempty"`

	// LastError Most recent connection or unexpected-disconnect error detail. Admin-only and never includes decrypted credentials.
	LastError *string `json:"lastError,omitempty"`

	// LastSuccessfulConnectionAt UTC time at which this server most recently connected successfully.
	LastSuccessfulConnectionAt *time.Time `json:"lastSuccessfulConnectionAt,omitempty"`
	Name                       string     `json:"name"`

	// Status Live connection state of the server.
	Status MCPServerStatus `json:"status"`

	// StatusError Error detail, present when status is failed.
	StatusError *string `json:"statusError,omitempty"`

	// StatusReason Coarse failure classification, present when status is failed.
	StatusReason *MCPServerStatusReason `json:"statusReason,omitempty"`

	// ToolCount Number of tools discovered, present when connected.
	ToolCount *int               `json:"toolCount,omitempty"`
	Transport MCPServerTransport `json:"transport"`
	Url       *string            `json:"url,omitempty"`
}

MCPServer defines model for MCPServer.

type MCPServerStatus

type MCPServerStatus string

MCPServerStatus Live connection state of the server.

const (
	MCPServerStatusConnected  MCPServerStatus = "connected"
	MCPServerStatusConnecting MCPServerStatus = "connecting"
	MCPServerStatusDisabled   MCPServerStatus = "disabled"
	MCPServerStatusFailed     MCPServerStatus = "failed"
)

Defines values for MCPServerStatus.

func (MCPServerStatus) Valid

func (e MCPServerStatus) Valid() bool

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

type MCPServerStatusReason

type MCPServerStatusReason string

MCPServerStatusReason Coarse failure classification, present when status is failed.

const (
	MCPServerStatusReasonAccessDenied  MCPServerStatusReason = "access_denied"
	MCPServerStatusReasonFailed        MCPServerStatusReason = "failed"
	MCPServerStatusReasonNotResponding MCPServerStatusReason = "not_responding"
	MCPServerStatusReasonUnreachable   MCPServerStatusReason = "unreachable"
)

Defines values for MCPServerStatusReason.

func (MCPServerStatusReason) Valid

func (e MCPServerStatusReason) Valid() bool

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

type MCPServerTransport

type MCPServerTransport string

MCPServerTransport defines model for MCPServer.Transport.

const (
	MCPServerTransportHttp  MCPServerTransport = "http"
	MCPServerTransportStdio MCPServerTransport = "stdio"
)

Defines values for MCPServerTransport.

func (MCPServerTransport) Valid

func (e MCPServerTransport) Valid() bool

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

type MCPTool

type MCPTool struct {
	Description string `json:"description"`

	// Name Unqualified tool name (no server prefix).
	Name string `json:"name"`

	// Parameters The tool's input JSON Schema.
	Parameters map[string]interface{} `json:"parameters"`
}

MCPTool defines model for MCPTool.

type Message

type Message struct {
	Content   string             `json:"content"`
	CreatedAt time.Time          `json:"createdAt"`
	Id        openapi_types.UUID `json:"id"`

	// Incomplete True when this is an interrupted turn checkpoint. It is visible on reload but is never replayed into a future model request.
	Incomplete *bool `json:"incomplete,omitempty"`
	IsError    *bool `json:"isError,omitempty"`

	// Model The model that completed this turn. Omitted for messages created before model attribution was introduced.
	Model      *string            `json:"model,omitempty"`
	Role       MessageRole        `json:"role"`
	Thinking   *string            `json:"thinking,omitempty"`
	ToolCallId *string            `json:"toolCallId,omitempty"`
	ToolCalls  *[]MessageToolCall `json:"toolCalls,omitempty"`
}

Message defines model for Message.

type MessageList

type MessageList struct {
	Items  []Message `json:"items"`
	Limit  int       `json:"limit"`
	Offset int       `json:"offset"`
	Total  int       `json:"total"`
}

MessageList A page of one chat's messages, oldest-first. total is a scoped, indexed count (by chat_id) — cheap regardless of dataset size.

type MessageRole

type MessageRole string

MessageRole defines model for Message.Role.

const (
	MessageRoleAssistant MessageRole = "assistant"
	MessageRoleTool      MessageRole = "tool"
	MessageRoleUser      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 MessageToolCall

type MessageToolCall struct {
	Arguments string `json:"arguments"`
	Id        string `json:"id"`
	Name      string `json:"name"`
}

MessageToolCall defines model for MessageToolCall.

type Model

type Model struct {
	// Alias A friendly instance-local model name for the picker.
	Alias *string `json:"alias,omitempty"`

	// Availability The model was advertised by its upstream during startup discovery.
	Availability  ModelAvailability `json:"availability"`
	ContextWindow *int              `json:"contextWindow,omitempty"`

	// Default Whether this is the instance's configured default model.
	Default bool `json:"default"`

	// ExpectedFirstTokenLatencyMs Instance-configured expected time to first token, in milliseconds.
	ExpectedFirstTokenLatencyMs *int64 `json:"expectedFirstTokenLatencyMs,omitempty"`
	Id                          string `json:"id"`

	// InputPricePerMillionTokens Price for one million tokens. Amount is a decimal string in the currency's smallest unit, avoiding floating-point loss in clients.
	InputPricePerMillionTokens *TokenPrice `json:"inputPricePerMillionTokens,omitempty"`
	MaxOutputTokens            *int        `json:"maxOutputTokens,omitempty"`

	// OutputPricePerMillionTokens Price for one million tokens. Amount is a decimal string in the currency's smallest unit, avoiding floating-point loss in clients.
	OutputPricePerMillionTokens *TokenPrice `json:"outputPricePerMillionTokens,omitempty"`
	SupportsFiles               *bool       `json:"supportsFiles,omitempty"`
	SupportsReasoning           *bool       `json:"supportsReasoning,omitempty"`
	SupportsTools               *bool       `json:"supportsTools,omitempty"`
	SupportsVision              *bool       `json:"supportsVision,omitempty"`
	Upstream                    string      `json:"upstream"`
}

Model A model currently advertised by a configured upstream. Capability and limit fields are optional instance metadata; omitted fields are unknown, not false or zero.

type ModelAvailability

type ModelAvailability string

ModelAvailability The model was advertised by its upstream during startup discovery.

const (
	ModelAvailabilityAvailable ModelAvailability = "available"
)

Defines values for ModelAvailability.

func (ModelAvailability) Valid

func (e ModelAvailability) Valid() bool

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

type NotFound

type NotFound = Error

NotFound defines model for NotFound.

type PreviewChatContextJSONRequestBody

type PreviewChatContextJSONRequestBody = PromptContextPreviewRequest

PreviewChatContextJSONRequestBody defines body for PreviewChatContext for application/json ContentType.

type PreviewChatContextResponse

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

func ParsePreviewChatContextResponse

func ParsePreviewChatContextResponse(rsp *http.Response) (*PreviewChatContextResponse, error)

ParsePreviewChatContextResponse parses an HTTP response from a PreviewChatContextWithResponse call

func (PreviewChatContextResponse) ContentType

func (r PreviewChatContextResponse) ContentType() string

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

func (PreviewChatContextResponse) GetBody

func (r PreviewChatContextResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PreviewChatContextResponse) GetJSON200

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

func (PreviewChatContextResponse) GetJSON400

func (r PreviewChatContextResponse) GetJSON400() *BadRequest

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

func (PreviewChatContextResponse) GetJSON404

func (r PreviewChatContextResponse) GetJSON404() *NotFound

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

func (PreviewChatContextResponse) Status

Status returns HTTPResponse.Status

func (PreviewChatContextResponse) StatusCode

func (r PreviewChatContextResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PromptContextPreview

type PromptContextPreview struct {
	AvailableTokens      int `json:"availableTokens"`
	BudgetTokens         int `json:"budgetTokens"`
	CurrentMessageTokens int `json:"currentMessageTokens"`
	HistoryTokens        int `json:"historyTokens"`
	OmittedMessages      int `json:"omittedMessages"`
	OmittedTurns         int `json:"omittedTurns"`
	RetainedMessages     int `json:"retainedMessages"`
	RetainedTurns        int `json:"retainedTurns"`
	SystemTokens         int `json:"systemTokens"`
	TotalTokens          int `json:"totalTokens"`
}

PromptContextPreview The exact context selection the next turn would use, counted by the server tokenizer. availableTokens is zero when sticky instructions and the current message alone exceed the configured history budget.

type PromptContextPreviewRequest

type PromptContextPreviewRequest struct {
	// Message The unsent user message to include in the preview.
	Message string `json:"message"`
}

PromptContextPreviewRequest defines model for PromptContextPreviewRequest.

type ReconnectMCPServerResponse

type ReconnectMCPServerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *MCPServer
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
}

func ParseReconnectMCPServerResponse

func ParseReconnectMCPServerResponse(rsp *http.Response) (*ReconnectMCPServerResponse, error)

ParseReconnectMCPServerResponse parses an HTTP response from a ReconnectMCPServerWithResponse call

func (ReconnectMCPServerResponse) ContentType

func (r ReconnectMCPServerResponse) ContentType() string

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

func (ReconnectMCPServerResponse) GetBody

func (r ReconnectMCPServerResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ReconnectMCPServerResponse) GetJSON200

func (r ReconnectMCPServerResponse) GetJSON200() *MCPServer

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

func (ReconnectMCPServerResponse) GetJSON404

func (r ReconnectMCPServerResponse) GetJSON404() *NotFound

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

func (ReconnectMCPServerResponse) Status

Status returns HTTPResponse.Status

func (ReconnectMCPServerResponse) StatusCode

func (r ReconnectMCPServerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RenameChatJSONRequestBody

type RenameChatJSONRequestBody = RenameChatRequest

RenameChatJSONRequestBody defines body for RenameChat for application/json ContentType.

type RenameChatRequest

type RenameChatRequest struct {
	Title string `json:"title"`
}

RenameChatRequest defines model for RenameChatRequest.

type RenameChatResponse

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

func ParseRenameChatResponse

func ParseRenameChatResponse(rsp *http.Response) (*RenameChatResponse, error)

ParseRenameChatResponse parses an HTTP response from a RenameChatWithResponse call

func (RenameChatResponse) ContentType

func (r RenameChatResponse) ContentType() string

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

func (RenameChatResponse) GetBody

func (r RenameChatResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RenameChatResponse) GetJSON200

func (r RenameChatResponse) GetJSON200() *ChatSummary

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

func (RenameChatResponse) GetJSON400

func (r RenameChatResponse) GetJSON400() *BadRequest

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

func (RenameChatResponse) GetJSON404

func (r RenameChatResponse) GetJSON404() *NotFound

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

func (RenameChatResponse) Status

func (r RenameChatResponse) Status() string

Status returns HTTPResponse.Status

func (RenameChatResponse) StatusCode

func (r RenameChatResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type SetupJSONRequestBody

type SetupJSONRequestBody = Credentials

SetupJSONRequestBody defines body for Setup for application/json ContentType.

type SetupResponse

type SetupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *User
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *SetupResponse200Headers
}

func ParseSetupResponse

func ParseSetupResponse(rsp *http.Response) (*SetupResponse, error)

ParseSetupResponse parses an HTTP response from a SetupWithResponse call

func (SetupResponse) ContentType

func (r SetupResponse) ContentType() string

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

func (SetupResponse) GetBody

func (r SetupResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetupResponse) GetJSON200

func (r SetupResponse) GetJSON200() *User

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

func (SetupResponse) GetJSON400

func (r SetupResponse) GetJSON400() *BadRequest

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

func (SetupResponse) GetJSON409

func (r SetupResponse) GetJSON409() *Conflict

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

func (SetupResponse) Status

func (r SetupResponse) Status() string

Status returns HTTPResponse.Status

func (SetupResponse) StatusCode

func (r SetupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetupResponse200Headers

type SetupResponse200Headers struct {
	SetCookie *string
}

SetupResponse200Headers the declared response headers of an HTTP 200 response for Setup

type TokenPrice

type TokenPrice struct {
	Amount   string `json:"amount"`
	Currency string `json:"currency"`
}

TokenPrice Price for one million tokens. Amount is a decimal string in the currency's smallest unit, avoiding floating-point loss in clients.

type Unauthorized

type Unauthorized = Error

Unauthorized defines model for Unauthorized.

type UpdateChatMCPServerJSONRequestBody

type UpdateChatMCPServerJSONRequestBody = ChatMCPServerUpdate

UpdateChatMCPServerJSONRequestBody defines body for UpdateChatMCPServer for application/json ContentType.

type UpdateChatMCPServerResponse

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

func ParseUpdateChatMCPServerResponse

func ParseUpdateChatMCPServerResponse(rsp *http.Response) (*UpdateChatMCPServerResponse, error)

ParseUpdateChatMCPServerResponse parses an HTTP response from a UpdateChatMCPServerWithResponse call

func (UpdateChatMCPServerResponse) ContentType

func (r UpdateChatMCPServerResponse) ContentType() string

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

func (UpdateChatMCPServerResponse) GetBody

func (r UpdateChatMCPServerResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateChatMCPServerResponse) GetJSON200

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

func (UpdateChatMCPServerResponse) GetJSON400

func (r UpdateChatMCPServerResponse) GetJSON400() *BadRequest

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

func (UpdateChatMCPServerResponse) GetJSON404

func (r UpdateChatMCPServerResponse) GetJSON404() *NotFound

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

func (UpdateChatMCPServerResponse) Status

Status returns HTTPResponse.Status

func (UpdateChatMCPServerResponse) StatusCode

func (r UpdateChatMCPServerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateChatSettingsJSONRequestBody

type UpdateChatSettingsJSONRequestBody = ChatSettings

UpdateChatSettingsJSONRequestBody defines body for UpdateChatSettings for application/json ContentType.

type UpdateChatSettingsResponse

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

func ParseUpdateChatSettingsResponse

func ParseUpdateChatSettingsResponse(rsp *http.Response) (*UpdateChatSettingsResponse, error)

ParseUpdateChatSettingsResponse parses an HTTP response from a UpdateChatSettingsWithResponse call

func (UpdateChatSettingsResponse) ContentType

func (r UpdateChatSettingsResponse) ContentType() string

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

func (UpdateChatSettingsResponse) GetBody

func (r UpdateChatSettingsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateChatSettingsResponse) GetJSON200

func (r UpdateChatSettingsResponse) GetJSON200() *ChatSettings

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

func (UpdateChatSettingsResponse) GetJSON400

func (r UpdateChatSettingsResponse) GetJSON400() *BadRequest

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

func (UpdateChatSettingsResponse) GetJSON404

func (r UpdateChatSettingsResponse) GetJSON404() *NotFound

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

func (UpdateChatSettingsResponse) Status

Status returns HTTPResponse.Status

func (UpdateChatSettingsResponse) StatusCode

func (r UpdateChatSettingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateMCPServerJSONRequestBody

type UpdateMCPServerJSONRequestBody = UpdateMCPServerRequest

UpdateMCPServerJSONRequestBody defines body for UpdateMCPServer for application/json ContentType.

type UpdateMCPServerRequest

type UpdateMCPServerRequest struct {
	Args    *[]string          `json:"args,omitempty"`
	Command *string            `json:"command,omitempty"`
	Enabled *bool              `json:"enabled,omitempty"`
	Env     *map[string]string `json:"env,omitempty"`

	// Headers HTTP headers to replace. An Authorization value returned as '<scheme> [SECRET]' preserves the existing sealed credential when sent back unchanged; any other value replaces it.
	Headers   *map[string]string               `json:"headers,omitempty"`
	Name      *string                          `json:"name,omitempty"`
	Transport *UpdateMCPServerRequestTransport `json:"transport,omitempty"`
	Url       *string                          `json:"url,omitempty"`
}

UpdateMCPServerRequest Edit an MCP server. Every field is optional; an omitted field keeps its current value. Providing transport-specific fields replaces them.

type UpdateMCPServerRequestTransport

type UpdateMCPServerRequestTransport string

UpdateMCPServerRequestTransport defines model for UpdateMCPServerRequest.Transport.

const (
	UpdateMCPServerRequestTransportHttp  UpdateMCPServerRequestTransport = "http"
	UpdateMCPServerRequestTransportStdio UpdateMCPServerRequestTransport = "stdio"
)

Defines values for UpdateMCPServerRequestTransport.

func (UpdateMCPServerRequestTransport) Valid

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

type UpdateMCPServerResponse

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

func ParseUpdateMCPServerResponse

func ParseUpdateMCPServerResponse(rsp *http.Response) (*UpdateMCPServerResponse, error)

ParseUpdateMCPServerResponse parses an HTTP response from a UpdateMCPServerWithResponse call

func (UpdateMCPServerResponse) ContentType

func (r UpdateMCPServerResponse) ContentType() string

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

func (UpdateMCPServerResponse) GetBody

func (r UpdateMCPServerResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateMCPServerResponse) GetJSON200

func (r UpdateMCPServerResponse) GetJSON200() *MCPServer

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

func (UpdateMCPServerResponse) GetJSON400

func (r UpdateMCPServerResponse) GetJSON400() *BadRequest

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

func (UpdateMCPServerResponse) GetJSON404

func (r UpdateMCPServerResponse) GetJSON404() *NotFound

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

func (UpdateMCPServerResponse) Status

func (r UpdateMCPServerResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateMCPServerResponse) StatusCode

func (r UpdateMCPServerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpstreamHealth

type UpstreamHealth struct {
	ConsecutiveFailures int                 `json:"consecutiveFailures"`
	LastFailureAt       *time.Time          `json:"lastFailureAt,omitempty"`
	LastFailureClass    *string             `json:"lastFailureClass,omitempty"`
	LastLatencyMs       *int64              `json:"lastLatencyMs,omitempty"`
	LastOperation       *string             `json:"lastOperation,omitempty"`
	LastSuccessAt       *time.Time          `json:"lastSuccessAt,omitempty"`
	State               UpstreamHealthState `json:"state"`
	Upstream            string              `json:"upstream"`
}

UpstreamHealth A redacted runtime-health snapshot for one configured LLM upstream. Failure details are stable classes only; provider response text, requests, and credentials are never exposed here.

type UpstreamHealthState

type UpstreamHealthState string

UpstreamHealthState defines model for UpstreamHealth.State.

const (
	UpstreamHealthStateDegraded UpstreamHealthState = "degraded"
	UpstreamHealthStateHealthy  UpstreamHealthState = "healthy"
	UpstreamHealthStateUnknown  UpstreamHealthState = "unknown"
)

Defines values for UpstreamHealthState.

func (UpstreamHealthState) Valid

func (e UpstreamHealthState) Valid() bool

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

type User

type User struct {
	CreatedAt time.Time          `json:"createdAt"`
	Id        openapi_types.UUID `json:"id"`
	IsAdmin   bool               `json:"isAdmin"`
	Username  string             `json:"username"`
}

User defines model for User.

Jump to

Keyboard shortcuts

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