api

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: 16 Imported by: 0

Documentation

Overview

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

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

Package api holds the oapi-codegen output for the chatz HTTP API: the server interfaces, the request/response types, and the strict-handler wiring. This file is hand-maintained (it only declares the generator); api.gen.go next to it is the generated artifact.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSpec

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

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

func GetSpecJSON

func GetSpecJSON() ([]byte, error)

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

func GetSwagger deprecated

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

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

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

func PathToRawSpec

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

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

func RegisterHandlers

func RegisterHandlers(router EchoRouter, si ServerInterface)

RegisterHandlers adds each server route to the EchoRouter.

func RegisterHandlersWithBaseURL

func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)

RegisterHandlersWithBaseURL registers handlers and prepends BaseURL to the paths so the API can be served under a prefix.

func RegisterHandlersWithOptions

func RegisterHandlersWithOptions(router EchoRouter, si ServerInterface, options RegisterHandlersOptions)

RegisterHandlersWithOptions registers handlers using the supplied options, including any per-operation middleware.

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 BadRequestJSONResponse

type BadRequestJSONResponse Error

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 Conflict

type Conflict = Error

Conflict defines model for Conflict.

type ConflictJSONResponse

type ConflictJSONResponse Error

type ContinueChat200TexteventStreamResponse

type ContinueChat200TexteventStreamResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (ContinueChat200TexteventStreamResponse) VisitContinueChatResponse

func (response ContinueChat200TexteventStreamResponse) VisitContinueChatResponse(w http.ResponseWriter) error

type ContinueChat400JSONResponse

type ContinueChat400JSONResponse struct{ BadRequestJSONResponse }

func (ContinueChat400JSONResponse) VisitContinueChatResponse

func (response ContinueChat400JSONResponse) VisitContinueChatResponse(w http.ResponseWriter) error

type ContinueChat404JSONResponse

type ContinueChat404JSONResponse struct{ NotFoundJSONResponse }

func (ContinueChat404JSONResponse) VisitContinueChatResponse

func (response ContinueChat404JSONResponse) VisitContinueChatResponse(w http.ResponseWriter) error

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 ContinueChatRequestObject

type ContinueChatRequestObject struct {
	ChatId openapi_types.UUID `json:"chatId"`
	Body   *ContinueChatJSONRequestBody
}

type ContinueChatResponseObject

type ContinueChatResponseObject interface {
	VisitContinueChatResponse(w http.ResponseWriter) error
}

type CreateChat200TexteventStreamResponse

type CreateChat200TexteventStreamResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (CreateChat200TexteventStreamResponse) VisitCreateChatResponse

func (response CreateChat200TexteventStreamResponse) VisitCreateChatResponse(w http.ResponseWriter) error

type CreateChat400JSONResponse

type CreateChat400JSONResponse struct{ BadRequestJSONResponse }

func (CreateChat400JSONResponse) VisitCreateChatResponse

func (response CreateChat400JSONResponse) VisitCreateChatResponse(w http.ResponseWriter) error

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 CreateChatRequestObject

type CreateChatRequestObject struct {
	Body *CreateChatJSONRequestBody
}

type CreateChatResponseObject

type CreateChatResponseObject interface {
	VisitCreateChatResponse(w http.ResponseWriter) error
}

type CreateMCPServer201JSONResponse

type CreateMCPServer201JSONResponse MCPServer

func (CreateMCPServer201JSONResponse) VisitCreateMCPServerResponse

func (response CreateMCPServer201JSONResponse) VisitCreateMCPServerResponse(w http.ResponseWriter) error

type CreateMCPServer400JSONResponse

type CreateMCPServer400JSONResponse struct{ BadRequestJSONResponse }

func (CreateMCPServer400JSONResponse) VisitCreateMCPServerResponse

func (response CreateMCPServer400JSONResponse) VisitCreateMCPServerResponse(w http.ResponseWriter) error

type CreateMCPServer409JSONResponse

type CreateMCPServer409JSONResponse struct{ ConflictJSONResponse }

func (CreateMCPServer409JSONResponse) VisitCreateMCPServerResponse

func (response CreateMCPServer409JSONResponse) VisitCreateMCPServerResponse(w http.ResponseWriter) error

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 CreateMCPServerRequestObject

type CreateMCPServerRequestObject struct {
	Body *CreateMCPServerJSONRequestBody
}

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 CreateMCPServerResponseObject

type CreateMCPServerResponseObject interface {
	VisitCreateMCPServerResponse(w http.ResponseWriter) error
}

type CreateUser201JSONResponse

type CreateUser201JSONResponse User

func (CreateUser201JSONResponse) VisitCreateUserResponse

func (response CreateUser201JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUser400JSONResponse

type CreateUser400JSONResponse struct{ BadRequestJSONResponse }

func (CreateUser400JSONResponse) VisitCreateUserResponse

func (response CreateUser400JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUser409JSONResponse

type CreateUser409JSONResponse struct{ ConflictJSONResponse }

func (CreateUser409JSONResponse) VisitCreateUserResponse

func (response CreateUser409JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

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 CreateUserRequestObject

type CreateUserRequestObject struct {
	Body *CreateUserJSONRequestBody
}

type CreateUserResponseObject

type CreateUserResponseObject interface {
	VisitCreateUserResponse(w http.ResponseWriter) error
}

type Credentials

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

Credentials defines model for Credentials.

type DeleteChat204Response

type DeleteChat204Response struct {
}

func (DeleteChat204Response) VisitDeleteChatResponse

func (response DeleteChat204Response) VisitDeleteChatResponse(w http.ResponseWriter) error

type DeleteChat404JSONResponse

type DeleteChat404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteChat404JSONResponse) VisitDeleteChatResponse

func (response DeleteChat404JSONResponse) VisitDeleteChatResponse(w http.ResponseWriter) error

type DeleteChatRequestObject

type DeleteChatRequestObject struct {
	ChatId openapi_types.UUID `json:"chatId"`
}

type DeleteChatResponseObject

type DeleteChatResponseObject interface {
	VisitDeleteChatResponse(w http.ResponseWriter) error
}

type DeleteMCPServer204Response

type DeleteMCPServer204Response struct {
}

func (DeleteMCPServer204Response) VisitDeleteMCPServerResponse

func (response DeleteMCPServer204Response) VisitDeleteMCPServerResponse(w http.ResponseWriter) error

type DeleteMCPServer404JSONResponse

type DeleteMCPServer404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteMCPServer404JSONResponse) VisitDeleteMCPServerResponse

func (response DeleteMCPServer404JSONResponse) VisitDeleteMCPServerResponse(w http.ResponseWriter) error

type DeleteMCPServerRequestObject

type DeleteMCPServerRequestObject struct {
	ServerId openapi_types.UUID `json:"serverId"`
}

type DeleteMCPServerResponseObject

type DeleteMCPServerResponseObject interface {
	VisitDeleteMCPServerResponse(w http.ResponseWriter) error
}

type DeleteUser204Response

type DeleteUser204Response struct {
}

func (DeleteUser204Response) VisitDeleteUserResponse

func (response DeleteUser204Response) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser404JSONResponse

type DeleteUser404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteUser404JSONResponse) VisitDeleteUserResponse

func (response DeleteUser404JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUserRequestObject

type DeleteUserRequestObject struct {
	UserId openapi_types.UUID `json:"userId"`
}

type DeleteUserResponseObject

type DeleteUserResponseObject interface {
	VisitDeleteUserResponse(w http.ResponseWriter) error
}

type EchoRouter

type EchoRouter interface {
	CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}

This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration

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 GetAdminReadiness200JSONResponse

type GetAdminReadiness200JSONResponse AdminReadiness

func (GetAdminReadiness200JSONResponse) VisitGetAdminReadinessResponse

func (response GetAdminReadiness200JSONResponse) VisitGetAdminReadinessResponse(w http.ResponseWriter) error

type GetAdminReadiness401JSONResponse

type GetAdminReadiness401JSONResponse struct{ UnauthorizedJSONResponse }

func (GetAdminReadiness401JSONResponse) VisitGetAdminReadinessResponse

func (response GetAdminReadiness401JSONResponse) VisitGetAdminReadinessResponse(w http.ResponseWriter) error

type GetAdminReadinessRequestObject

type GetAdminReadinessRequestObject struct {
}

type GetAdminReadinessResponseObject

type GetAdminReadinessResponseObject interface {
	VisitGetAdminReadinessResponse(w http.ResponseWriter) error
}

type GetAuthStatus200JSONResponse

type GetAuthStatus200JSONResponse struct {
	Body    AuthStatus
	Headers GetAuthStatus200ResponseHeaders
}

func (GetAuthStatus200JSONResponse) VisitGetAuthStatusResponse

func (response GetAuthStatus200JSONResponse) VisitGetAuthStatusResponse(w http.ResponseWriter) error

type GetAuthStatus200ResponseHeaders

type GetAuthStatus200ResponseHeaders struct {
	SetCookie *string
}

type GetAuthStatusRequestObject

type GetAuthStatusRequestObject struct {
}

type GetAuthStatusResponseObject

type GetAuthStatusResponseObject interface {
	VisitGetAuthStatusResponse(w http.ResponseWriter) error
}

type GetChat200JSONResponse

type GetChat200JSONResponse Chat

func (GetChat200JSONResponse) VisitGetChatResponse

func (response GetChat200JSONResponse) VisitGetChatResponse(w http.ResponseWriter) error

type GetChat404JSONResponse

type GetChat404JSONResponse struct{ NotFoundJSONResponse }

func (GetChat404JSONResponse) VisitGetChatResponse

func (response GetChat404JSONResponse) VisitGetChatResponse(w http.ResponseWriter) error

type GetChatRequestObject

type GetChatRequestObject struct {
	ChatId openapi_types.UUID `json:"chatId"`
}

type GetChatResponseObject

type GetChatResponseObject interface {
	VisitGetChatResponse(w http.ResponseWriter) error
}

type GetHealth200JSONResponse

type GetHealth200JSONResponse Health

func (GetHealth200JSONResponse) VisitGetHealthResponse

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

type GetHealthRequestObject

type GetHealthRequestObject struct {
}

type GetHealthResponseObject

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

type GetOrCreateEmptyChat200JSONResponse

type GetOrCreateEmptyChat200JSONResponse Chat

func (GetOrCreateEmptyChat200JSONResponse) VisitGetOrCreateEmptyChatResponse

func (response GetOrCreateEmptyChat200JSONResponse) VisitGetOrCreateEmptyChatResponse(w http.ResponseWriter) error

type GetOrCreateEmptyChatRequestObject

type GetOrCreateEmptyChatRequestObject struct {
}

type GetOrCreateEmptyChatResponseObject

type GetOrCreateEmptyChatResponseObject interface {
	VisitGetOrCreateEmptyChatResponse(w http.ResponseWriter) error
}

type Health

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

Health defines model for Health.

type ImportMCP200JSONResponse

type ImportMCP200JSONResponse MCPImportResult

func (ImportMCP200JSONResponse) VisitImportMCPResponse

func (response ImportMCP200JSONResponse) VisitImportMCPResponse(w http.ResponseWriter) error

type ImportMCP400JSONResponse

type ImportMCP400JSONResponse struct{ BadRequestJSONResponse }

func (ImportMCP400JSONResponse) VisitImportMCPResponse

func (response ImportMCP400JSONResponse) VisitImportMCPResponse(w http.ResponseWriter) error

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 ImportMCPRequestObject

type ImportMCPRequestObject struct {
	Body *ImportMCPJSONRequestBody
}

type ImportMCPResponseObject

type ImportMCPResponseObject interface {
	VisitImportMCPResponse(w http.ResponseWriter) error
}

type ListChatMCPServers200JSONResponse

type ListChatMCPServers200JSONResponse []ChatMCPServer

func (ListChatMCPServers200JSONResponse) VisitListChatMCPServersResponse

func (response ListChatMCPServers200JSONResponse) VisitListChatMCPServersResponse(w http.ResponseWriter) error

type ListChatMCPServers404JSONResponse

type ListChatMCPServers404JSONResponse struct{ NotFoundJSONResponse }

func (ListChatMCPServers404JSONResponse) VisitListChatMCPServersResponse

func (response ListChatMCPServers404JSONResponse) VisitListChatMCPServersResponse(w http.ResponseWriter) error

type ListChatMCPServersRequestObject

type ListChatMCPServersRequestObject struct {
	ChatId openapi_types.UUID `json:"chatId"`
}

type ListChatMCPServersResponseObject

type ListChatMCPServersResponseObject interface {
	VisitListChatMCPServersResponse(w http.ResponseWriter) error
}

type ListChatMessages200JSONResponse

type ListChatMessages200JSONResponse MessageList

func (ListChatMessages200JSONResponse) VisitListChatMessagesResponse

func (response ListChatMessages200JSONResponse) VisitListChatMessagesResponse(w http.ResponseWriter) error

type ListChatMessages400JSONResponse

type ListChatMessages400JSONResponse struct{ BadRequestJSONResponse }

func (ListChatMessages400JSONResponse) VisitListChatMessagesResponse

func (response ListChatMessages400JSONResponse) VisitListChatMessagesResponse(w http.ResponseWriter) error

type ListChatMessages404JSONResponse

type ListChatMessages404JSONResponse struct{ NotFoundJSONResponse }

func (ListChatMessages404JSONResponse) VisitListChatMessagesResponse

func (response ListChatMessages404JSONResponse) VisitListChatMessagesResponse(w http.ResponseWriter) error

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 ListChatMessagesRequestObject

type ListChatMessagesRequestObject struct {
	ChatId openapi_types.UUID `json:"chatId"`
	Params ListChatMessagesParams
}

type ListChatMessagesResponseObject

type ListChatMessagesResponseObject interface {
	VisitListChatMessagesResponse(w http.ResponseWriter) error
}

type ListChats200JSONResponse

type ListChats200JSONResponse ChatList

func (ListChats200JSONResponse) VisitListChatsResponse

func (response ListChats200JSONResponse) VisitListChatsResponse(w http.ResponseWriter) error

type ListChats400JSONResponse

type ListChats400JSONResponse struct{ BadRequestJSONResponse }

func (ListChats400JSONResponse) VisitListChatsResponse

func (response ListChats400JSONResponse) VisitListChatsResponse(w http.ResponseWriter) error

type ListChats404JSONResponse

type ListChats404JSONResponse struct{ NotFoundJSONResponse }

func (ListChats404JSONResponse) VisitListChatsResponse

func (response ListChats404JSONResponse) VisitListChatsResponse(w http.ResponseWriter) error

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 ListChatsRequestObject

type ListChatsRequestObject struct {
	Params ListChatsParams
}

type ListChatsResponseObject

type ListChatsResponseObject interface {
	VisitListChatsResponse(w http.ResponseWriter) error
}

type ListMCPServerTools200JSONResponse

type ListMCPServerTools200JSONResponse []MCPTool

func (ListMCPServerTools200JSONResponse) VisitListMCPServerToolsResponse

func (response ListMCPServerTools200JSONResponse) VisitListMCPServerToolsResponse(w http.ResponseWriter) error

type ListMCPServerTools404JSONResponse

type ListMCPServerTools404JSONResponse struct{ NotFoundJSONResponse }

func (ListMCPServerTools404JSONResponse) VisitListMCPServerToolsResponse

func (response ListMCPServerTools404JSONResponse) VisitListMCPServerToolsResponse(w http.ResponseWriter) error

type ListMCPServerToolsRequestObject

type ListMCPServerToolsRequestObject struct {
	ServerId openapi_types.UUID `json:"serverId"`
}

type ListMCPServerToolsResponseObject

type ListMCPServerToolsResponseObject interface {
	VisitListMCPServerToolsResponse(w http.ResponseWriter) error
}

type ListMCPServers200JSONResponse

type ListMCPServers200JSONResponse []MCPServer

func (ListMCPServers200JSONResponse) VisitListMCPServersResponse

func (response ListMCPServers200JSONResponse) VisitListMCPServersResponse(w http.ResponseWriter) error

type ListMCPServersRequestObject

type ListMCPServersRequestObject struct {
}

type ListMCPServersResponseObject

type ListMCPServersResponseObject interface {
	VisitListMCPServersResponse(w http.ResponseWriter) error
}

type ListModels200JSONResponse

type ListModels200JSONResponse []Model

func (ListModels200JSONResponse) VisitListModelsResponse

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

type ListModelsRequestObject

type ListModelsRequestObject struct {
}

type ListModelsResponseObject

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

type ListUpstreamHealth200JSONResponse

type ListUpstreamHealth200JSONResponse []UpstreamHealth

func (ListUpstreamHealth200JSONResponse) VisitListUpstreamHealthResponse

func (response ListUpstreamHealth200JSONResponse) VisitListUpstreamHealthResponse(w http.ResponseWriter) error

type ListUpstreamHealth401JSONResponse

type ListUpstreamHealth401JSONResponse struct{ UnauthorizedJSONResponse }

func (ListUpstreamHealth401JSONResponse) VisitListUpstreamHealthResponse

func (response ListUpstreamHealth401JSONResponse) VisitListUpstreamHealthResponse(w http.ResponseWriter) error

type ListUpstreamHealthRequestObject

type ListUpstreamHealthRequestObject struct {
}

type ListUpstreamHealthResponseObject

type ListUpstreamHealthResponseObject interface {
	VisitListUpstreamHealthResponse(w http.ResponseWriter) error
}

type ListUsers200JSONResponse

type ListUsers200JSONResponse []User

func (ListUsers200JSONResponse) VisitListUsersResponse

func (response ListUsers200JSONResponse) VisitListUsersResponse(w http.ResponseWriter) error

type ListUsers401JSONResponse

type ListUsers401JSONResponse struct{ UnauthorizedJSONResponse }

func (ListUsers401JSONResponse) VisitListUsersResponse

func (response ListUsers401JSONResponse) VisitListUsersResponse(w http.ResponseWriter) error

type ListUsersRequestObject

type ListUsersRequestObject struct {
}

type ListUsersResponseObject

type ListUsersResponseObject interface {
	VisitListUsersResponse(w http.ResponseWriter) error
}

type Login200JSONResponse

type Login200JSONResponse struct {
	Body    User
	Headers Login200ResponseHeaders
}

func (Login200JSONResponse) VisitLoginResponse

func (response Login200JSONResponse) VisitLoginResponse(w http.ResponseWriter) error

type Login200ResponseHeaders

type Login200ResponseHeaders struct {
	SetCookie *string
}

type Login401JSONResponse

type Login401JSONResponse struct{ UnauthorizedJSONResponse }

func (Login401JSONResponse) VisitLoginResponse

func (response Login401JSONResponse) VisitLoginResponse(w http.ResponseWriter) error

type LoginJSONRequestBody

type LoginJSONRequestBody = Credentials

LoginJSONRequestBody defines body for Login for application/json ContentType.

type LoginRequestObject

type LoginRequestObject struct {
	Body *LoginJSONRequestBody
}

type LoginResponseObject

type LoginResponseObject interface {
	VisitLoginResponse(w http.ResponseWriter) error
}

type Logout204Response

type Logout204Response struct {
}

func (Logout204Response) VisitLogoutResponse

func (response Logout204Response) VisitLogoutResponse(w http.ResponseWriter) error

type LogoutRequestObject

type LogoutRequestObject struct {
}

type LogoutResponseObject

type LogoutResponseObject interface {
	VisitLogoutResponse(w http.ResponseWriter) error
}

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 NotFoundJSONResponse

type NotFoundJSONResponse Error

type PreviewChatContext200JSONResponse

type PreviewChatContext200JSONResponse PromptContextPreview

func (PreviewChatContext200JSONResponse) VisitPreviewChatContextResponse

func (response PreviewChatContext200JSONResponse) VisitPreviewChatContextResponse(w http.ResponseWriter) error

type PreviewChatContext400JSONResponse

type PreviewChatContext400JSONResponse struct{ BadRequestJSONResponse }

func (PreviewChatContext400JSONResponse) VisitPreviewChatContextResponse

func (response PreviewChatContext400JSONResponse) VisitPreviewChatContextResponse(w http.ResponseWriter) error

type PreviewChatContext404JSONResponse

type PreviewChatContext404JSONResponse struct{ NotFoundJSONResponse }

func (PreviewChatContext404JSONResponse) VisitPreviewChatContextResponse

func (response PreviewChatContext404JSONResponse) VisitPreviewChatContextResponse(w http.ResponseWriter) error

type PreviewChatContextJSONRequestBody

type PreviewChatContextJSONRequestBody = PromptContextPreviewRequest

PreviewChatContextJSONRequestBody defines body for PreviewChatContext for application/json ContentType.

type PreviewChatContextRequestObject

type PreviewChatContextRequestObject struct {
	ChatId openapi_types.UUID `json:"chatId"`
	Body   *PreviewChatContextJSONRequestBody
}

type PreviewChatContextResponseObject

type PreviewChatContextResponseObject interface {
	VisitPreviewChatContextResponse(w http.ResponseWriter) error
}

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 ReconnectMCPServer200JSONResponse

type ReconnectMCPServer200JSONResponse MCPServer

func (ReconnectMCPServer200JSONResponse) VisitReconnectMCPServerResponse

func (response ReconnectMCPServer200JSONResponse) VisitReconnectMCPServerResponse(w http.ResponseWriter) error

type ReconnectMCPServer404JSONResponse

type ReconnectMCPServer404JSONResponse struct{ NotFoundJSONResponse }

func (ReconnectMCPServer404JSONResponse) VisitReconnectMCPServerResponse

func (response ReconnectMCPServer404JSONResponse) VisitReconnectMCPServerResponse(w http.ResponseWriter) error

type ReconnectMCPServerRequestObject

type ReconnectMCPServerRequestObject struct {
	ServerId openapi_types.UUID `json:"serverId"`
}

type ReconnectMCPServerResponseObject

type ReconnectMCPServerResponseObject interface {
	VisitReconnectMCPServerResponse(w http.ResponseWriter) error
}

type RegisterHandlersOptions

type RegisterHandlersOptions struct {
	// BaseURL is prepended to every registered path so the API can be served
	// under a prefix.
	BaseURL string
	// OperationMiddlewares lets the caller attach per-operation middleware at
	// registration time. The map key is the OpenAPI `operationId` value as it
	// appears in the spec (the raw, un-normalized form). Operations that have
	// no entry are registered with no extra middleware. A nil map disables
	// per-operation middleware entirely.
	OperationMiddlewares map[string][]echo.MiddlewareFunc
}

RegisterHandlersOptions configures RegisterHandlersWithOptions.

type RenameChat200JSONResponse

type RenameChat200JSONResponse ChatSummary

func (RenameChat200JSONResponse) VisitRenameChatResponse

func (response RenameChat200JSONResponse) VisitRenameChatResponse(w http.ResponseWriter) error

type RenameChat400JSONResponse

type RenameChat400JSONResponse struct{ BadRequestJSONResponse }

func (RenameChat400JSONResponse) VisitRenameChatResponse

func (response RenameChat400JSONResponse) VisitRenameChatResponse(w http.ResponseWriter) error

type RenameChat404JSONResponse

type RenameChat404JSONResponse struct{ NotFoundJSONResponse }

func (RenameChat404JSONResponse) VisitRenameChatResponse

func (response RenameChat404JSONResponse) VisitRenameChatResponse(w http.ResponseWriter) error

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 RenameChatRequestObject

type RenameChatRequestObject struct {
	ChatId openapi_types.UUID `json:"chatId"`
	Body   *RenameChatJSONRequestBody
}

type RenameChatResponseObject

type RenameChatResponseObject interface {
	VisitRenameChatResponse(w http.ResponseWriter) error
}

type ServerInterface

type ServerInterface interface {
	// GetAdminReadiness Get the redacted operational readiness snapshot (admin).
	// (GET /admin/readiness)
	GetAdminReadiness(ctx echo.Context) error
	// Login Log in with username + password.
	// (POST /auth/login)
	Login(ctx echo.Context) error
	// Logout Revoke the current session.
	// (POST /auth/logout)
	Logout(ctx echo.Context) error
	// Setup Bootstrap the first admin user (one-shot).
	// (POST /auth/setup)
	Setup(ctx echo.Context) error
	// GetAuthStatus Whether setup is needed and whether the caller is authenticated.
	// (GET /auth/status)
	GetAuthStatus(ctx echo.Context) error
	// ListChats List the caller's chats, paginated.
	// (GET /chats)
	ListChats(ctx echo.Context, params ListChatsParams) error
	// CreateChat Create a chat and stream the first assistant turn (SSE).
	// (POST /chats)
	CreateChat(ctx echo.Context) error
	// GetOrCreateEmptyChat Get the caller's reusable "empty chat" (no messages yet), creating one if none exists.
	// (POST /chats/empty)
	GetOrCreateEmptyChat(ctx echo.Context) error
	// DeleteChat Soft-delete one caller-owned chat.
	// (DELETE /chats/{chatId})
	DeleteChat(ctx echo.Context, chatId openapi_types.UUID) error
	// GetChat Get a chat's metadata (settings, model, title) — no messages.
	// (GET /chats/{chatId})
	GetChat(ctx echo.Context, chatId openapi_types.UUID) error
	// RenameChat Rename a chat.
	// (PATCH /chats/{chatId})
	RenameChat(ctx echo.Context, chatId openapi_types.UUID) error
	// ContinueChat Continue a chat and stream the next assistant turn (SSE).
	// (POST /chats/{chatId})
	ContinueChat(ctx echo.Context, chatId openapi_types.UUID) error
	// PreviewChatContext Preview the exact context selected for an unsent chat message.
	// (POST /chats/{chatId}/context-preview)
	PreviewChatContext(ctx echo.Context, chatId openapi_types.UUID) error
	// ListChatMCPServers List the MCP servers with each one's per-chat enablement + status.
	// (GET /chats/{chatId}/mcp-servers)
	ListChatMCPServers(ctx echo.Context, chatId openapi_types.UUID) error
	// UpdateChatMCPServer Enable or disable one MCP server for this chat.
	// (PATCH /chats/{chatId}/mcp-servers/{serverId})
	UpdateChatMCPServer(ctx echo.Context, chatId openapi_types.UUID, serverId openapi_types.UUID) error
	// ListChatMessages List a chat's messages, oldest-first, paginated.
	// (GET /chats/{chatId}/messages)
	ListChatMessages(ctx echo.Context, chatId openapi_types.UUID, params ListChatMessagesParams) error
	// UpdateChatSettings Update a chat's model-generation settings.
	// (PATCH /chats/{chatId}/settings)
	UpdateChatSettings(ctx echo.Context, chatId openapi_types.UUID) error
	// GetHealth Liveness probe.
	// (GET /healthz)
	GetHealth(ctx echo.Context) error
	// ImportMCP Import MCP servers from a Claude-style .mcp.json (admin).
	// (POST /mcp/import)
	ImportMCP(ctx echo.Context) error
	// ListMCPServers List configured MCP servers (admin).
	// (GET /mcp/servers)
	ListMCPServers(ctx echo.Context) error
	// CreateMCPServer Add an MCP server (admin).
	// (POST /mcp/servers)
	CreateMCPServer(ctx echo.Context) error
	// DeleteMCPServer Remove an MCP server (admin).
	// (DELETE /mcp/servers/{serverId})
	DeleteMCPServer(ctx echo.Context, serverId openapi_types.UUID) error
	// UpdateMCPServer Edit an MCP server and reconnect (admin).
	// (PATCH /mcp/servers/{serverId})
	UpdateMCPServer(ctx echo.Context, serverId openapi_types.UUID) error
	// ReconnectMCPServer Reconnect an MCP server in the background (admin).
	// (POST /mcp/servers/{serverId}/reconnect)
	ReconnectMCPServer(ctx echo.Context, serverId openapi_types.UUID) error
	// ListMCPServerTools List a connected MCP server's tools (admin).
	// (GET /mcp/servers/{serverId}/tools)
	ListMCPServerTools(ctx echo.Context, serverId openapi_types.UUID) error
	// ListModels Merged model list across all configured upstreams.
	// (GET /models)
	ListModels(ctx echo.Context) error
	// ListUpstreamHealth List redacted LLM upstream health snapshots (admin).
	// (GET /upstreams)
	ListUpstreamHealth(ctx echo.Context) error
	// ListUsers List users (admin).
	// (GET /users)
	ListUsers(ctx echo.Context) error
	// CreateUser Provision a user (admin).
	// (POST /users)
	CreateUser(ctx echo.Context) error
	// DeleteUser Delete a user (admin).
	// (DELETE /users/{userId})
	DeleteUser(ctx echo.Context, userId openapi_types.UUID) error
}

ServerInterface represents all server handlers.

func NewStrictHandler

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

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler ServerInterface
}

ServerInterfaceWrapper converts echo contexts to parameters.

func (*ServerInterfaceWrapper) ContinueChat

func (w *ServerInterfaceWrapper) ContinueChat(ctx echo.Context) error

ContinueChat converts echo context to params.

func (*ServerInterfaceWrapper) CreateChat

func (w *ServerInterfaceWrapper) CreateChat(ctx echo.Context) error

CreateChat converts echo context to params.

func (*ServerInterfaceWrapper) CreateMCPServer

func (w *ServerInterfaceWrapper) CreateMCPServer(ctx echo.Context) error

CreateMCPServer converts echo context to params.

func (*ServerInterfaceWrapper) CreateUser

func (w *ServerInterfaceWrapper) CreateUser(ctx echo.Context) error

CreateUser converts echo context to params.

func (*ServerInterfaceWrapper) DeleteChat

func (w *ServerInterfaceWrapper) DeleteChat(ctx echo.Context) error

DeleteChat converts echo context to params.

func (*ServerInterfaceWrapper) DeleteMCPServer

func (w *ServerInterfaceWrapper) DeleteMCPServer(ctx echo.Context) error

DeleteMCPServer converts echo context to params.

func (*ServerInterfaceWrapper) DeleteUser

func (w *ServerInterfaceWrapper) DeleteUser(ctx echo.Context) error

DeleteUser converts echo context to params.

func (*ServerInterfaceWrapper) GetAdminReadiness

func (w *ServerInterfaceWrapper) GetAdminReadiness(ctx echo.Context) error

GetAdminReadiness converts echo context to params.

func (*ServerInterfaceWrapper) GetAuthStatus

func (w *ServerInterfaceWrapper) GetAuthStatus(ctx echo.Context) error

GetAuthStatus converts echo context to params.

func (*ServerInterfaceWrapper) GetChat

func (w *ServerInterfaceWrapper) GetChat(ctx echo.Context) error

GetChat converts echo context to params.

func (*ServerInterfaceWrapper) GetHealth

func (w *ServerInterfaceWrapper) GetHealth(ctx echo.Context) error

GetHealth converts echo context to params.

func (*ServerInterfaceWrapper) GetOrCreateEmptyChat

func (w *ServerInterfaceWrapper) GetOrCreateEmptyChat(ctx echo.Context) error

GetOrCreateEmptyChat converts echo context to params.

func (*ServerInterfaceWrapper) ImportMCP

func (w *ServerInterfaceWrapper) ImportMCP(ctx echo.Context) error

ImportMCP converts echo context to params.

func (*ServerInterfaceWrapper) ListChatMCPServers

func (w *ServerInterfaceWrapper) ListChatMCPServers(ctx echo.Context) error

ListChatMCPServers converts echo context to params.

func (*ServerInterfaceWrapper) ListChatMessages

func (w *ServerInterfaceWrapper) ListChatMessages(ctx echo.Context) error

ListChatMessages converts echo context to params.

func (*ServerInterfaceWrapper) ListChats

func (w *ServerInterfaceWrapper) ListChats(ctx echo.Context) error

ListChats converts echo context to params.

func (*ServerInterfaceWrapper) ListMCPServerTools

func (w *ServerInterfaceWrapper) ListMCPServerTools(ctx echo.Context) error

ListMCPServerTools converts echo context to params.

func (*ServerInterfaceWrapper) ListMCPServers

func (w *ServerInterfaceWrapper) ListMCPServers(ctx echo.Context) error

ListMCPServers converts echo context to params.

func (*ServerInterfaceWrapper) ListModels

func (w *ServerInterfaceWrapper) ListModels(ctx echo.Context) error

ListModels converts echo context to params.

func (*ServerInterfaceWrapper) ListUpstreamHealth

func (w *ServerInterfaceWrapper) ListUpstreamHealth(ctx echo.Context) error

ListUpstreamHealth converts echo context to params.

func (*ServerInterfaceWrapper) ListUsers

func (w *ServerInterfaceWrapper) ListUsers(ctx echo.Context) error

ListUsers converts echo context to params.

func (*ServerInterfaceWrapper) Login

func (w *ServerInterfaceWrapper) Login(ctx echo.Context) error

Login converts echo context to params.

func (*ServerInterfaceWrapper) Logout

func (w *ServerInterfaceWrapper) Logout(ctx echo.Context) error

Logout converts echo context to params.

func (*ServerInterfaceWrapper) PreviewChatContext

func (w *ServerInterfaceWrapper) PreviewChatContext(ctx echo.Context) error

PreviewChatContext converts echo context to params.

func (*ServerInterfaceWrapper) ReconnectMCPServer

func (w *ServerInterfaceWrapper) ReconnectMCPServer(ctx echo.Context) error

ReconnectMCPServer converts echo context to params.

func (*ServerInterfaceWrapper) RenameChat

func (w *ServerInterfaceWrapper) RenameChat(ctx echo.Context) error

RenameChat converts echo context to params.

func (*ServerInterfaceWrapper) Setup

func (w *ServerInterfaceWrapper) Setup(ctx echo.Context) error

Setup converts echo context to params.

func (*ServerInterfaceWrapper) UpdateChatMCPServer

func (w *ServerInterfaceWrapper) UpdateChatMCPServer(ctx echo.Context) error

UpdateChatMCPServer converts echo context to params.

func (*ServerInterfaceWrapper) UpdateChatSettings

func (w *ServerInterfaceWrapper) UpdateChatSettings(ctx echo.Context) error

UpdateChatSettings converts echo context to params.

func (*ServerInterfaceWrapper) UpdateMCPServer

func (w *ServerInterfaceWrapper) UpdateMCPServer(ctx echo.Context) error

UpdateMCPServer converts echo context to params.

type Setup200JSONResponse

type Setup200JSONResponse struct {
	Body    User
	Headers Setup200ResponseHeaders
}

func (Setup200JSONResponse) VisitSetupResponse

func (response Setup200JSONResponse) VisitSetupResponse(w http.ResponseWriter) error

type Setup200ResponseHeaders

type Setup200ResponseHeaders struct {
	SetCookie *string
}

type Setup400JSONResponse

type Setup400JSONResponse struct{ BadRequestJSONResponse }

func (Setup400JSONResponse) VisitSetupResponse

func (response Setup400JSONResponse) VisitSetupResponse(w http.ResponseWriter) error

type Setup409JSONResponse

type Setup409JSONResponse struct{ ConflictJSONResponse }

func (Setup409JSONResponse) VisitSetupResponse

func (response Setup409JSONResponse) VisitSetupResponse(w http.ResponseWriter) error

type SetupJSONRequestBody

type SetupJSONRequestBody = Credentials

SetupJSONRequestBody defines body for Setup for application/json ContentType.

type SetupRequestObject

type SetupRequestObject struct {
	Body *SetupJSONRequestBody
}

type SetupResponseObject

type SetupResponseObject interface {
	VisitSetupResponse(w http.ResponseWriter) error
}

type StrictHandlerFunc

type StrictHandlerFunc func(ctx echo.Context, request any) (any, error)

type StrictMiddlewareFunc

type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc

type StrictServerInterface

type StrictServerInterface interface {
	// GetAdminReadiness Get the redacted operational readiness snapshot (admin).
	// (GET /admin/readiness)
	GetAdminReadiness(ctx context.Context, request GetAdminReadinessRequestObject) (GetAdminReadinessResponseObject, error)
	// Login Log in with username + password.
	// (POST /auth/login)
	Login(ctx context.Context, request LoginRequestObject) (LoginResponseObject, error)
	// Logout Revoke the current session.
	// (POST /auth/logout)
	Logout(ctx context.Context, request LogoutRequestObject) (LogoutResponseObject, error)
	// Setup Bootstrap the first admin user (one-shot).
	// (POST /auth/setup)
	Setup(ctx context.Context, request SetupRequestObject) (SetupResponseObject, error)
	// GetAuthStatus Whether setup is needed and whether the caller is authenticated.
	// (GET /auth/status)
	GetAuthStatus(ctx context.Context, request GetAuthStatusRequestObject) (GetAuthStatusResponseObject, error)
	// ListChats List the caller's chats, paginated.
	// (GET /chats)
	ListChats(ctx context.Context, request ListChatsRequestObject) (ListChatsResponseObject, error)
	// CreateChat Create a chat and stream the first assistant turn (SSE).
	// (POST /chats)
	CreateChat(ctx context.Context, request CreateChatRequestObject) (CreateChatResponseObject, error)
	// GetOrCreateEmptyChat Get the caller's reusable "empty chat" (no messages yet), creating one if none exists.
	// (POST /chats/empty)
	GetOrCreateEmptyChat(ctx context.Context, request GetOrCreateEmptyChatRequestObject) (GetOrCreateEmptyChatResponseObject, error)
	// DeleteChat Soft-delete one caller-owned chat.
	// (DELETE /chats/{chatId})
	DeleteChat(ctx context.Context, request DeleteChatRequestObject) (DeleteChatResponseObject, error)
	// GetChat Get a chat's metadata (settings, model, title) — no messages.
	// (GET /chats/{chatId})
	GetChat(ctx context.Context, request GetChatRequestObject) (GetChatResponseObject, error)
	// RenameChat Rename a chat.
	// (PATCH /chats/{chatId})
	RenameChat(ctx context.Context, request RenameChatRequestObject) (RenameChatResponseObject, error)
	// ContinueChat Continue a chat and stream the next assistant turn (SSE).
	// (POST /chats/{chatId})
	ContinueChat(ctx context.Context, request ContinueChatRequestObject) (ContinueChatResponseObject, error)
	// PreviewChatContext Preview the exact context selected for an unsent chat message.
	// (POST /chats/{chatId}/context-preview)
	PreviewChatContext(ctx context.Context, request PreviewChatContextRequestObject) (PreviewChatContextResponseObject, error)
	// ListChatMCPServers List the MCP servers with each one's per-chat enablement + status.
	// (GET /chats/{chatId}/mcp-servers)
	ListChatMCPServers(ctx context.Context, request ListChatMCPServersRequestObject) (ListChatMCPServersResponseObject, error)
	// UpdateChatMCPServer Enable or disable one MCP server for this chat.
	// (PATCH /chats/{chatId}/mcp-servers/{serverId})
	UpdateChatMCPServer(ctx context.Context, request UpdateChatMCPServerRequestObject) (UpdateChatMCPServerResponseObject, error)
	// ListChatMessages List a chat's messages, oldest-first, paginated.
	// (GET /chats/{chatId}/messages)
	ListChatMessages(ctx context.Context, request ListChatMessagesRequestObject) (ListChatMessagesResponseObject, error)
	// UpdateChatSettings Update a chat's model-generation settings.
	// (PATCH /chats/{chatId}/settings)
	UpdateChatSettings(ctx context.Context, request UpdateChatSettingsRequestObject) (UpdateChatSettingsResponseObject, error)
	// GetHealth Liveness probe.
	// (GET /healthz)
	GetHealth(ctx context.Context, request GetHealthRequestObject) (GetHealthResponseObject, error)
	// ImportMCP Import MCP servers from a Claude-style .mcp.json (admin).
	// (POST /mcp/import)
	ImportMCP(ctx context.Context, request ImportMCPRequestObject) (ImportMCPResponseObject, error)
	// ListMCPServers List configured MCP servers (admin).
	// (GET /mcp/servers)
	ListMCPServers(ctx context.Context, request ListMCPServersRequestObject) (ListMCPServersResponseObject, error)
	// CreateMCPServer Add an MCP server (admin).
	// (POST /mcp/servers)
	CreateMCPServer(ctx context.Context, request CreateMCPServerRequestObject) (CreateMCPServerResponseObject, error)
	// DeleteMCPServer Remove an MCP server (admin).
	// (DELETE /mcp/servers/{serverId})
	DeleteMCPServer(ctx context.Context, request DeleteMCPServerRequestObject) (DeleteMCPServerResponseObject, error)
	// UpdateMCPServer Edit an MCP server and reconnect (admin).
	// (PATCH /mcp/servers/{serverId})
	UpdateMCPServer(ctx context.Context, request UpdateMCPServerRequestObject) (UpdateMCPServerResponseObject, error)
	// ReconnectMCPServer Reconnect an MCP server in the background (admin).
	// (POST /mcp/servers/{serverId}/reconnect)
	ReconnectMCPServer(ctx context.Context, request ReconnectMCPServerRequestObject) (ReconnectMCPServerResponseObject, error)
	// ListMCPServerTools List a connected MCP server's tools (admin).
	// (GET /mcp/servers/{serverId}/tools)
	ListMCPServerTools(ctx context.Context, request ListMCPServerToolsRequestObject) (ListMCPServerToolsResponseObject, error)
	// ListModels Merged model list across all configured upstreams.
	// (GET /models)
	ListModels(ctx context.Context, request ListModelsRequestObject) (ListModelsResponseObject, error)
	// ListUpstreamHealth List redacted LLM upstream health snapshots (admin).
	// (GET /upstreams)
	ListUpstreamHealth(ctx context.Context, request ListUpstreamHealthRequestObject) (ListUpstreamHealthResponseObject, error)
	// ListUsers List users (admin).
	// (GET /users)
	ListUsers(ctx context.Context, request ListUsersRequestObject) (ListUsersResponseObject, error)
	// CreateUser Provision a user (admin).
	// (POST /users)
	CreateUser(ctx context.Context, request CreateUserRequestObject) (CreateUserResponseObject, error)
	// DeleteUser Delete a user (admin).
	// (DELETE /users/{userId})
	DeleteUser(ctx context.Context, request DeleteUserRequestObject) (DeleteUserResponseObject, error)
}

StrictServerInterface represents all server handlers.

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 UnauthorizedJSONResponse

type UnauthorizedJSONResponse Error

type UpdateChatMCPServer200JSONResponse

type UpdateChatMCPServer200JSONResponse ChatMCPServer

func (UpdateChatMCPServer200JSONResponse) VisitUpdateChatMCPServerResponse

func (response UpdateChatMCPServer200JSONResponse) VisitUpdateChatMCPServerResponse(w http.ResponseWriter) error

type UpdateChatMCPServer400JSONResponse

type UpdateChatMCPServer400JSONResponse struct{ BadRequestJSONResponse }

func (UpdateChatMCPServer400JSONResponse) VisitUpdateChatMCPServerResponse

func (response UpdateChatMCPServer400JSONResponse) VisitUpdateChatMCPServerResponse(w http.ResponseWriter) error

type UpdateChatMCPServer404JSONResponse

type UpdateChatMCPServer404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateChatMCPServer404JSONResponse) VisitUpdateChatMCPServerResponse

func (response UpdateChatMCPServer404JSONResponse) VisitUpdateChatMCPServerResponse(w http.ResponseWriter) error

type UpdateChatMCPServerJSONRequestBody

type UpdateChatMCPServerJSONRequestBody = ChatMCPServerUpdate

UpdateChatMCPServerJSONRequestBody defines body for UpdateChatMCPServer for application/json ContentType.

type UpdateChatMCPServerRequestObject

type UpdateChatMCPServerRequestObject struct {
	ChatId   openapi_types.UUID `json:"chatId"`
	ServerId openapi_types.UUID `json:"serverId"`
	Body     *UpdateChatMCPServerJSONRequestBody
}

type UpdateChatMCPServerResponseObject

type UpdateChatMCPServerResponseObject interface {
	VisitUpdateChatMCPServerResponse(w http.ResponseWriter) error
}

type UpdateChatSettings200JSONResponse

type UpdateChatSettings200JSONResponse ChatSettings

func (UpdateChatSettings200JSONResponse) VisitUpdateChatSettingsResponse

func (response UpdateChatSettings200JSONResponse) VisitUpdateChatSettingsResponse(w http.ResponseWriter) error

type UpdateChatSettings400JSONResponse

type UpdateChatSettings400JSONResponse struct{ BadRequestJSONResponse }

func (UpdateChatSettings400JSONResponse) VisitUpdateChatSettingsResponse

func (response UpdateChatSettings400JSONResponse) VisitUpdateChatSettingsResponse(w http.ResponseWriter) error

type UpdateChatSettings404JSONResponse

type UpdateChatSettings404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateChatSettings404JSONResponse) VisitUpdateChatSettingsResponse

func (response UpdateChatSettings404JSONResponse) VisitUpdateChatSettingsResponse(w http.ResponseWriter) error

type UpdateChatSettingsJSONRequestBody

type UpdateChatSettingsJSONRequestBody = ChatSettings

UpdateChatSettingsJSONRequestBody defines body for UpdateChatSettings for application/json ContentType.

type UpdateChatSettingsRequestObject

type UpdateChatSettingsRequestObject struct {
	ChatId openapi_types.UUID `json:"chatId"`
	Body   *UpdateChatSettingsJSONRequestBody
}

type UpdateChatSettingsResponseObject

type UpdateChatSettingsResponseObject interface {
	VisitUpdateChatSettingsResponse(w http.ResponseWriter) error
}

type UpdateMCPServer200JSONResponse

type UpdateMCPServer200JSONResponse MCPServer

func (UpdateMCPServer200JSONResponse) VisitUpdateMCPServerResponse

func (response UpdateMCPServer200JSONResponse) VisitUpdateMCPServerResponse(w http.ResponseWriter) error

type UpdateMCPServer400JSONResponse

type UpdateMCPServer400JSONResponse struct{ BadRequestJSONResponse }

func (UpdateMCPServer400JSONResponse) VisitUpdateMCPServerResponse

func (response UpdateMCPServer400JSONResponse) VisitUpdateMCPServerResponse(w http.ResponseWriter) error

type UpdateMCPServer404JSONResponse

type UpdateMCPServer404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateMCPServer404JSONResponse) VisitUpdateMCPServerResponse

func (response UpdateMCPServer404JSONResponse) VisitUpdateMCPServerResponse(w http.ResponseWriter) error

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 UpdateMCPServerRequestObject

type UpdateMCPServerRequestObject struct {
	ServerId openapi_types.UUID `json:"serverId"`
	Body     *UpdateMCPServerJSONRequestBody
}

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 UpdateMCPServerResponseObject

type UpdateMCPServerResponseObject interface {
	VisitUpdateMCPServerResponse(w http.ResponseWriter) error
}

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