api

package
v0.0.0-...-5bc5eca Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 18 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.5.1 DO NOT EDIT.

Index

Constants

View Source
const (
	BearerAuthScopes = "BearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func GetSwagger

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

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func PathToRawSpec

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

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

func RegisterHandlers

func RegisterHandlers(router gin.IRouter, si ServerInterface)

RegisterHandlers creates http.Handler with routing matching OpenAPI spec.

func RegisterHandlersWithOptions

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

RegisterHandlersWithOptions creates http.Handler with additional options

Types

type AcceptTransfer204Response

type AcceptTransfer204Response struct {
}

func (AcceptTransfer204Response) VisitAcceptTransferResponse

func (response AcceptTransfer204Response) VisitAcceptTransferResponse(w http.ResponseWriter) error

type AcceptTransfer403JSONResponse

type AcceptTransfer403JSONResponse struct{ ErrorJSONResponse }

func (AcceptTransfer403JSONResponse) VisitAcceptTransferResponse

func (response AcceptTransfer403JSONResponse) VisitAcceptTransferResponse(w http.ResponseWriter) error

type AcceptTransfer404JSONResponse

type AcceptTransfer404JSONResponse struct{ NotFoundJSONResponse }

func (AcceptTransfer404JSONResponse) VisitAcceptTransferResponse

func (response AcceptTransfer404JSONResponse) VisitAcceptTransferResponse(w http.ResponseWriter) error

type AcceptTransferRequestObject

type AcceptTransferRequestObject struct {
	TransferId openapi_types.UUID `json:"transferId"`
}

type AcceptTransferResponseObject

type AcceptTransferResponseObject interface {
	VisitAcceptTransferResponse(w http.ResponseWriter) error
}

type AcceptTransferdefaultJSONResponse

type AcceptTransferdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AcceptTransferdefaultJSONResponse) VisitAcceptTransferResponse

func (response AcceptTransferdefaultJSONResponse) VisitAcceptTransferResponse(w http.ResponseWriter) error

type AccessLevel

type AccessLevel string

AccessLevel Access level of a user for a conversation.

const (
	Manager AccessLevel = "manager"
	Owner   AccessLevel = "owner"
	Reader  AccessLevel = "reader"
	Writer  AccessLevel = "writer"
)

Defines values for AccessLevel.

type AdminSubscribeEvents200TexteventStreamResponse

type AdminSubscribeEvents200TexteventStreamResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (AdminSubscribeEvents200TexteventStreamResponse) VisitAdminSubscribeEventsResponse

func (response AdminSubscribeEvents200TexteventStreamResponse) VisitAdminSubscribeEventsResponse(w http.ResponseWriter) error

type AdminSubscribeEvents400Response

type AdminSubscribeEvents400Response struct {
}

func (AdminSubscribeEvents400Response) VisitAdminSubscribeEventsResponse

func (response AdminSubscribeEvents400Response) VisitAdminSubscribeEventsResponse(w http.ResponseWriter) error

type AdminSubscribeEvents401Response

type AdminSubscribeEvents401Response struct {
}

func (AdminSubscribeEvents401Response) VisitAdminSubscribeEventsResponse

func (response AdminSubscribeEvents401Response) VisitAdminSubscribeEventsResponse(w http.ResponseWriter) error

type AdminSubscribeEvents403Response

type AdminSubscribeEvents403Response struct {
}

func (AdminSubscribeEvents403Response) VisitAdminSubscribeEventsResponse

func (response AdminSubscribeEvents403Response) VisitAdminSubscribeEventsResponse(w http.ResponseWriter) error

type AdminSubscribeEventsParams

type AdminSubscribeEventsParams struct {
	// Justification Optional reason for subscribing, logged for audit when present. Servers configured to require admin justifications reject requests without one.
	Justification *string `form:"justification,omitempty" json:"justification,omitempty"`

	// Kinds Comma-separated event kinds to filter.
	Kinds *string `form:"kinds,omitempty" json:"kinds,omitempty"`

	// After Replay events after the provided durable cursor. Requires the outbox feature to be enabled.
	After *string `form:"after,omitempty" json:"after,omitempty"`

	// Detail Event payload detail level.
	Detail *AdminSubscribeEventsParamsDetail `form:"detail,omitempty" json:"detail,omitempty"`
}

AdminSubscribeEventsParams defines parameters for AdminSubscribeEvents.

type AdminSubscribeEventsParamsDetail

type AdminSubscribeEventsParamsDetail string

AdminSubscribeEventsParamsDetail defines parameters for AdminSubscribeEvents.

const (
	AdminSubscribeEventsParamsDetailFull    AdminSubscribeEventsParamsDetail = "full"
	AdminSubscribeEventsParamsDetailSummary AdminSubscribeEventsParamsDetail = "summary"
)

Defines values for AdminSubscribeEventsParamsDetail.

type AdminSubscribeEventsRequestObject

type AdminSubscribeEventsRequestObject struct {
	Params AdminSubscribeEventsParams
}

type AdminSubscribeEventsResponseObject

type AdminSubscribeEventsResponseObject interface {
	VisitAdminSubscribeEventsResponse(w http.ResponseWriter) error
}

type AppendConversationEntry201JSONResponse

type AppendConversationEntry201JSONResponse Entry

func (AppendConversationEntry201JSONResponse) VisitAppendConversationEntryResponse

func (response AppendConversationEntry201JSONResponse) VisitAppendConversationEntryResponse(w http.ResponseWriter) error

type AppendConversationEntry404JSONResponse

type AppendConversationEntry404JSONResponse struct{ NotFoundJSONResponse }

func (AppendConversationEntry404JSONResponse) VisitAppendConversationEntryResponse

func (response AppendConversationEntry404JSONResponse) VisitAppendConversationEntryResponse(w http.ResponseWriter) error

type AppendConversationEntryJSONRequestBody

type AppendConversationEntryJSONRequestBody = CreateEntryRequest

AppendConversationEntryJSONRequestBody defines body for AppendConversationEntry for application/json ContentType.

type AppendConversationEntryRequestObject

type AppendConversationEntryRequestObject struct {
	ConversationId openapi_types.UUID `json:"conversationId"`
	Body           *AppendConversationEntryJSONRequestBody
}

type AppendConversationEntryResponseObject

type AppendConversationEntryResponseObject interface {
	VisitAppendConversationEntryResponse(w http.ResponseWriter) error
}

type AppendConversationEntrydefaultJSONResponse

type AppendConversationEntrydefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AppendConversationEntrydefaultJSONResponse) VisitAppendConversationEntryResponse

func (response AppendConversationEntrydefaultJSONResponse) VisitAppendConversationEntryResponse(w http.ResponseWriter) error

type Attachment

type Attachment struct {
	// AttachmentId ID of a previously uploaded attachment (from POST /v1/attachments).
	// When the entry is created, this is replaced with an href.
	AttachmentId *string `json:"attachmentId,omitempty"`

	// ContentType MIME type of the attachment (e.g., "image/jpeg", "audio/mp3"). Required when href is provided directly.
	ContentType *string `json:"contentType,omitempty"`

	// Description Optional alt text or description.
	Description *string `json:"description,omitempty"`

	// Href URL to the attachment resource (external or server-relative).
	Href *string `json:"href,omitempty"`

	// Name Optional display name for the attachment.
	Name *string `json:"name,omitempty"`

	// Sha256 SHA-256 hash of the file content (set by server for uploaded attachments).
	Sha256 *string `json:"sha256,omitempty"`

	// Size File size in bytes (set by server for uploaded attachments).
	Size *int64 `json:"size,omitempty"`
}

Attachment A reference to an attachment on a history entry. Supports two modes:

**External URL (Phase 1)**: Provide `href` and `contentType` to reference an externally-hosted resource.

**Server-stored (Phase 2)**: Provide `attachmentId` to reference a file previously uploaded via `POST /v1/attachments`. When the entry is created, the server replaces `attachmentId` with an `href` pointing to `/v1/attachments/{id}`.

At least one of `href` or `attachmentId` must be present.

type AttachmentDownloadUrlResponse

type AttachmentDownloadUrlResponse struct {
	// ExpiresIn Number of seconds until the URL expires.
	ExpiresIn *int `json:"expiresIn,omitempty"`

	// Url The signed download URL. May be an absolute S3 URL or a server-relative path.
	Url *string `json:"url,omitempty"`
}

AttachmentDownloadUrlResponse Response containing a signed download URL for an attachment.

type AttachmentUploadResponse

type AttachmentUploadResponse struct {
	// ContentType MIME type of the uploaded file.
	ContentType *string `json:"contentType,omitempty"`

	// ExpiresAt When this unlinked attachment will expire and be deleted.
	ExpiresAt *time.Time `json:"expiresAt,omitempty"`

	// Filename Original filename of the uploaded file.
	Filename *string `json:"filename"`

	// Href Server-relative URL to retrieve the attachment.
	Href *string `json:"href,omitempty"`

	// Id Unique identifier for the uploaded attachment.
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Sha256 SHA-256 hash of the file content (null for URL-created attachments until download completes).
	Sha256 *string `json:"sha256,omitempty"`

	// Size File size in bytes (null for URL-created attachments until download completes).
	Size *int64 `json:"size,omitempty"`

	// SourceUrl Original source URL (only present for URL-created attachments).
	SourceUrl *string `json:"sourceUrl,omitempty"`

	// Status Current status of the attachment:
	// - `uploading` - Multipart upload created but not yet completed
	// - `downloading` - Server is downloading content from sourceUrl
	// - `ready` - Content is available for retrieval
	// - `failed` - Download from sourceUrl failed
	Status *AttachmentUploadResponseStatus `json:"status,omitempty"`
}

AttachmentUploadResponse Response from uploading or creating an attachment.

type AttachmentUploadResponseStatus

type AttachmentUploadResponseStatus string

AttachmentUploadResponseStatus Current status of the attachment: - `uploading` - Multipart upload created but not yet completed - `downloading` - Server is downloading content from sourceUrl - `ready` - Content is available for retrieval - `failed` - Download from sourceUrl failed

const (
	Downloading AttachmentUploadResponseStatus = "downloading"
	Failed      AttachmentUploadResponseStatus = "failed"
	Ready       AttachmentUploadResponseStatus = "ready"
	Uploading   AttachmentUploadResponseStatus = "uploading"
)

Defines values for AttachmentUploadResponseStatus.

type CapabilitiesAuth

type CapabilitiesAuth struct {
	AdminJustificationRequired bool `json:"admin_justification_required"`
	ApiKeyEnabled              bool `json:"api_key_enabled"`
	OidcEnabled                bool `json:"oidc_enabled"`
}

CapabilitiesAuth defines model for CapabilitiesAuth.

type CapabilitiesFeatures

type CapabilitiesFeatures struct {
	CorsEnabled               bool `json:"cors_enabled"`
	FulltextSearchEnabled     bool `json:"fulltext_search_enabled"`
	ManagementListenerEnabled bool `json:"management_listener_enabled"`
	OutboxEnabled             bool `json:"outbox_enabled"`
	PrivateSourceUrlsEnabled  bool `json:"private_source_urls_enabled"`
	S3DirectDownloadEnabled   bool `json:"s3_direct_download_enabled"`
	SemanticSearchEnabled     bool `json:"semantic_search_enabled"`
}

CapabilitiesFeatures defines model for CapabilitiesFeatures.

type CapabilitiesResponse

type CapabilitiesResponse struct {
	Auth     CapabilitiesAuth     `json:"auth"`
	Features CapabilitiesFeatures `json:"features"`
	Security CapabilitiesSecurity `json:"security"`
	Tech     CapabilitiesTech     `json:"tech"`
	Version  string               `json:"version"`
}

CapabilitiesResponse defines model for CapabilitiesResponse.

type CapabilitiesSecurity

type CapabilitiesSecurity struct {
	AttachmentEncryptionEnabled bool `json:"attachment_encryption_enabled"`
	DbEncryptionEnabled         bool `json:"db_encryption_enabled"`
	EncryptionEnabled           bool `json:"encryption_enabled"`
}

CapabilitiesSecurity defines model for CapabilitiesSecurity.

type CapabilitiesTech

type CapabilitiesTech struct {
	Attachments string `json:"attachments"`
	Cache       string `json:"cache"`
	Embedder    string `json:"embedder"`
	EventBus    string `json:"event_bus"`
	Store       string `json:"store"`
	Vector      string `json:"vector"`
}

CapabilitiesTech defines model for CapabilitiesTech.

type Channel

type Channel string

Channel Logical channel of the entry within the conversation.

const (
	Context Channel = "context"
	History Channel = "history"
)

Defines values for Channel.

type ChildConversationSummary

type ChildConversationSummary struct {
	// AccessLevel Access level of a user for a conversation.
	AccessLevel *AccessLevel `json:"accessLevel,omitempty"`

	// Archived Synthetic archive flag derived from the internal archived timestamp.
	Archived  *bool      `json:"archived,omitempty"`
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// Id Unique identifier for the child conversation.
	Id                 *openapi_types.UUID `json:"id,omitempty"`
	LastMessagePreview *string             `json:"lastMessagePreview"`
	OwnerUserId        *string             `json:"ownerUserId,omitempty"`
	StartedByEntryId   *openapi_types.UUID `json:"startedByEntryId"`
	Title              *string             `json:"title"`
	UpdatedAt          *time.Time          `json:"updatedAt,omitempty"`
}

ChildConversationSummary defines model for ChildConversationSummary.

type Conversation

type Conversation struct {
	// AccessLevel Access level of a user for a conversation.
	AccessLevel *AccessLevel `json:"accessLevel,omitempty"`

	// AgentId Optional logical agent associated with this conversation.
	AgentId *string `json:"agentId"`

	// Archived Synthetic archive flag derived from the internal archived timestamp.
	Archived  *bool      `json:"archived,omitempty"`
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// ForkedAtConversationId Conversation ID from which this conversation was forked.
	ForkedAtConversationId *openapi_types.UUID `json:"forkedAtConversationId"`

	// ForkedAtEntryId First parent entry excluded by this fork. Null for root conversations and blank-slate forks that inherit no parent entries.
	ForkedAtEntryId *openapi_types.UUID `json:"forkedAtEntryId"`

	// Id Unique identifier for the conversation.
	Id                 *openapi_types.UUID `json:"id,omitempty"`
	LastMessagePreview *string             `json:"lastMessagePreview"`
	OwnerUserId        *string             `json:"ownerUserId,omitempty"`

	// StartedByConversationId Parent conversation that started this child conversation.
	StartedByConversationId *openapi_types.UUID `json:"startedByConversationId"`

	// StartedByEntryId Parent entry that started this child conversation.
	StartedByEntryId *openapi_types.UUID `json:"startedByEntryId"`
	Title            *string             `json:"title"`
	UpdatedAt        *time.Time          `json:"updatedAt,omitempty"`
}

Conversation defines model for Conversation.

type ConversationForkSummary

type ConversationForkSummary struct {
	// ConversationId Unique identifier for the forked conversation.
	ConversationId *openapi_types.UUID `json:"conversationId,omitempty"`
	CreatedAt      *time.Time          `json:"createdAt,omitempty"`

	// ForkedAtConversationId Conversation ID where the fork occurred.
	ForkedAtConversationId *openapi_types.UUID `json:"forkedAtConversationId"`

	// ForkedAtEntryId First parent entry excluded by this fork. Null for blank-slate forks that inherit no parent entries.
	ForkedAtEntryId *openapi_types.UUID `json:"forkedAtEntryId"`
	Title           *string             `json:"title"`
}

ConversationForkSummary Summary of a forked conversation originating at a given entry.

type ConversationMembership

type ConversationMembership struct {
	// AccessLevel Access level of a user for a conversation.
	AccessLevel *AccessLevel `json:"accessLevel,omitempty"`

	// ConversationId Unique identifier for the conversation.
	ConversationId *openapi_types.UUID `json:"conversationId,omitempty"`
	CreatedAt      *time.Time          `json:"createdAt,omitempty"`
	UserId         *string             `json:"userId,omitempty"`
}

ConversationMembership defines model for ConversationMembership.

type ConversationSummary

type ConversationSummary struct {
	// AccessLevel Access level of a user for a conversation.
	AccessLevel *AccessLevel `json:"accessLevel,omitempty"`

	// Archived Synthetic archive flag derived from the internal archived timestamp.
	Archived  *bool      `json:"archived,omitempty"`
	CreatedAt *time.Time `json:"createdAt,omitempty"`

	// Id Unique identifier for the conversation.
	Id                      *openapi_types.UUID `json:"id,omitempty"`
	LastMessagePreview      *string             `json:"lastMessagePreview"`
	OwnerUserId             *string             `json:"ownerUserId,omitempty"`
	StartedByConversationId *openapi_types.UUID `json:"startedByConversationId"`
	StartedByEntryId        *openapi_types.UUID `json:"startedByEntryId"`
	Title                   *string             `json:"title"`
	UpdatedAt               *time.Time          `json:"updatedAt,omitempty"`
}

ConversationSummary defines model for ConversationSummary.

type CreateConversation201JSONResponse

type CreateConversation201JSONResponse Conversation

func (CreateConversation201JSONResponse) VisitCreateConversationResponse

func (response CreateConversation201JSONResponse) VisitCreateConversationResponse(w http.ResponseWriter) error

type CreateConversationJSONRequestBody

type CreateConversationJSONRequestBody = CreateConversationRequest

CreateConversationJSONRequestBody defines body for CreateConversation for application/json ContentType.

type CreateConversationRequest

type CreateConversationRequest struct {
	// AgentId Optional logical agent to associate with the new conversation.
	AgentId *string `json:"agentId"`

	// Id Optional client-supplied UUID for the conversation. When provided, the server creates the conversation with exactly this ID instead of generating one. Useful for agents that need a deterministic conversation ID derived from an external thread identifier.
	Id       *openapi_types.UUID     `json:"id"`
	Metadata *map[string]interface{} `json:"metadata,omitempty"`
	Title    *string                 `json:"title"`
}

CreateConversationRequest defines model for CreateConversationRequest.

type CreateConversationRequestObject

type CreateConversationRequestObject struct {
	Body *CreateConversationJSONRequestBody
}

type CreateConversationResponseObject

type CreateConversationResponseObject interface {
	VisitCreateConversationResponse(w http.ResponseWriter) error
}

type CreateConversationdefaultJSONResponse

type CreateConversationdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (CreateConversationdefaultJSONResponse) VisitCreateConversationResponse

func (response CreateConversationdefaultJSONResponse) VisitCreateConversationResponse(w http.ResponseWriter) error

type CreateEntryRequest

type CreateEntryRequest struct {
	// AgentId Optional logical agent to associate with the conversation when this request auto-creates a new conversation. Ignored for existing conversations.
	AgentId *string `json:"agentId"`

	// Channel Logical channel of the entry within the conversation.
	Channel *Channel `json:"channel,omitempty"`

	// Content For history channel entries (contentType: `"history"` or `"history/<subtype>"`), each block
	// contains `role` and at least one of `text`, `events`, or `attachments`.
	Content []interface{} `json:"content"`

	// ContentType Describes the schema/format of the content array.
	//
	// **History channel entries must use `"history"` or `"history/<subtype>"` as the contentType.**
	//
	// Supported content types:
	// - `history` - Simple text-only history entries
	// - `history/lc4j` - LangChain4j rich event format (Quarkus)
	//
	// The content array for history entries must contain exactly 1 object with:
	// - `role` (string, required): Either `"USER"` or `"AI"`.
	// - `text` (string, optional): The message text. At least one of `text`, `events`, or `attachments` must be present.
	// - `events` (array, optional): Rich event objects for streaming details.
	//   Event structure is not validated by the server. For `history/lc4j`, events use an `eventType` field:
	//   - `PartialResponse`: Text chunk (`{eventType, chunk}`)
	//   - `PartialThinking`: Reasoning chunk (`{eventType, chunk}`)
	//   - `BeforeToolExecution`: Before tool call (`{eventType, toolName, input}`)
	//   - `ToolExecuted`: Tool result (`{eventType, toolName, output}`)
	// - `attachments` (array, optional): Array of `Attachment` objects referencing external resources (images, audio, video, documents).
	//
	// Other contentTypes (e.g., `"LC4J"`, `"SpringAI"`) may be used for
	// agent context entries.
	ContentType string `json:"contentType"`

	// ForkedAtConversationId If the target conversation doesn't exist yet, auto-create it as a fork of this conversation. Ignored when the conversation already exists.
	ForkedAtConversationId *openapi_types.UUID `json:"forkedAtConversationId,omitempty"`

	// ForkedAtEntryId Entry ID marking the fork point. Entries before this point are inherited; entries at and after this point are excluded. Optional; when unset, all entries are excluded. New messages added will show up as the first message of the fork.
	ForkedAtEntryId *openapi_types.UUID `json:"forkedAtEntryId,omitempty"`

	// IndexedContent Optional text to index for search. Only valid for entries in the history
	// channel. If provided, the entry will be indexed for search immediately
	// after creation. Returns 400 Bad Request if specified for non-history channels.
	IndexedContent *string `json:"indexedContent"`

	// StartedByConversationId If the target conversation does not exist yet, auto-create it as a child conversation started from this parent conversation.
	StartedByConversationId *openapi_types.UUID `json:"startedByConversationId,omitempty"`

	// StartedByEntryId Optional parent entry that caused this child conversation to be started.
	StartedByEntryId *openapi_types.UUID `json:"startedByEntryId,omitempty"`

	// UserId Human user this entry is associated with.
	// For history entries authored by a user, this is the sender.
	// For agent entries, this is the user the agent is responding to.
	UserId *string `json:"userId"`
}

CreateEntryRequest defines model for CreateEntryRequest.

type CreateFromUrlRequest

type CreateFromUrlRequest struct {
	// ContentType MIME type of the content. Defaults to application/octet-stream.
	ContentType *string `json:"contentType,omitempty"`

	// Name Display name for the attachment.
	Name *string `json:"name,omitempty"`

	// SourceUrl URL of the content to download and store as an attachment.
	SourceUrl string `json:"sourceUrl"`
}

CreateFromUrlRequest Request to create an attachment from a source URL.

type CreateOwnershipTransfer201JSONResponse

type CreateOwnershipTransfer201JSONResponse OwnershipTransfer

func (CreateOwnershipTransfer201JSONResponse) VisitCreateOwnershipTransferResponse

func (response CreateOwnershipTransfer201JSONResponse) VisitCreateOwnershipTransferResponse(w http.ResponseWriter) error

type CreateOwnershipTransfer400JSONResponse

type CreateOwnershipTransfer400JSONResponse struct{ ErrorJSONResponse }

func (CreateOwnershipTransfer400JSONResponse) VisitCreateOwnershipTransferResponse

func (response CreateOwnershipTransfer400JSONResponse) VisitCreateOwnershipTransferResponse(w http.ResponseWriter) error

type CreateOwnershipTransfer403JSONResponse

type CreateOwnershipTransfer403JSONResponse ErrorResponse

func (CreateOwnershipTransfer403JSONResponse) VisitCreateOwnershipTransferResponse

func (response CreateOwnershipTransfer403JSONResponse) VisitCreateOwnershipTransferResponse(w http.ResponseWriter) error

type CreateOwnershipTransfer404JSONResponse

type CreateOwnershipTransfer404JSONResponse struct{ NotFoundJSONResponse }

func (CreateOwnershipTransfer404JSONResponse) VisitCreateOwnershipTransferResponse

func (response CreateOwnershipTransfer404JSONResponse) VisitCreateOwnershipTransferResponse(w http.ResponseWriter) error

type CreateOwnershipTransfer409JSONResponse

type CreateOwnershipTransfer409JSONResponse struct {
	Code  *string `json:"code,omitempty"`
	Error *string `json:"error,omitempty"`

	// ExistingTransferId ID of the existing pending transfer
	ExistingTransferId *openapi_types.UUID `json:"existingTransferId,omitempty"`
}

func (CreateOwnershipTransfer409JSONResponse) VisitCreateOwnershipTransferResponse

func (response CreateOwnershipTransfer409JSONResponse) VisitCreateOwnershipTransferResponse(w http.ResponseWriter) error

type CreateOwnershipTransferJSONRequestBody

type CreateOwnershipTransferJSONRequestBody = CreateOwnershipTransferRequest

CreateOwnershipTransferJSONRequestBody defines body for CreateOwnershipTransfer for application/json ContentType.

type CreateOwnershipTransferRequest

type CreateOwnershipTransferRequest struct {
	// ConversationId The conversation to transfer ownership of.
	ConversationId openapi_types.UUID `json:"conversationId"`

	// NewOwnerUserId User ID of the proposed new owner. Must be an existing member.
	NewOwnerUserId string `json:"newOwnerUserId"`
}

CreateOwnershipTransferRequest defines model for CreateOwnershipTransferRequest.

type CreateOwnershipTransferRequestObject

type CreateOwnershipTransferRequestObject struct {
	Body *CreateOwnershipTransferJSONRequestBody
}

type CreateOwnershipTransferResponseObject

type CreateOwnershipTransferResponseObject interface {
	VisitCreateOwnershipTransferResponse(w http.ResponseWriter) error
}

type CreateOwnershipTransferdefaultJSONResponse

type CreateOwnershipTransferdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (CreateOwnershipTransferdefaultJSONResponse) VisitCreateOwnershipTransferResponse

func (response CreateOwnershipTransferdefaultJSONResponse) VisitCreateOwnershipTransferResponse(w http.ResponseWriter) error

type DeleteAttachment204Response

type DeleteAttachment204Response struct {
}

func (DeleteAttachment204Response) VisitDeleteAttachmentResponse

func (response DeleteAttachment204Response) VisitDeleteAttachmentResponse(w http.ResponseWriter) error

type DeleteAttachment403JSONResponse

type DeleteAttachment403JSONResponse struct{ ErrorJSONResponse }

func (DeleteAttachment403JSONResponse) VisitDeleteAttachmentResponse

func (response DeleteAttachment403JSONResponse) VisitDeleteAttachmentResponse(w http.ResponseWriter) error

type DeleteAttachment404JSONResponse

type DeleteAttachment404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteAttachment404JSONResponse) VisitDeleteAttachmentResponse

func (response DeleteAttachment404JSONResponse) VisitDeleteAttachmentResponse(w http.ResponseWriter) error

type DeleteAttachment409JSONResponse

type DeleteAttachment409JSONResponse ErrorResponse

func (DeleteAttachment409JSONResponse) VisitDeleteAttachmentResponse

func (response DeleteAttachment409JSONResponse) VisitDeleteAttachmentResponse(w http.ResponseWriter) error

type DeleteAttachmentRequestObject

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

type DeleteAttachmentResponseObject

type DeleteAttachmentResponseObject interface {
	VisitDeleteAttachmentResponse(w http.ResponseWriter) error
}

type DeleteAttachmentdefaultJSONResponse

type DeleteAttachmentdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (DeleteAttachmentdefaultJSONResponse) VisitDeleteAttachmentResponse

func (response DeleteAttachmentdefaultJSONResponse) VisitDeleteAttachmentResponse(w http.ResponseWriter) error

type DeleteConversationMembership204Response

type DeleteConversationMembership204Response struct {
}

func (DeleteConversationMembership204Response) VisitDeleteConversationMembershipResponse

func (response DeleteConversationMembership204Response) VisitDeleteConversationMembershipResponse(w http.ResponseWriter) error

type DeleteConversationMembership404JSONResponse

type DeleteConversationMembership404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteConversationMembership404JSONResponse) VisitDeleteConversationMembershipResponse

func (response DeleteConversationMembership404JSONResponse) VisitDeleteConversationMembershipResponse(w http.ResponseWriter) error

type DeleteConversationMembershipRequestObject

type DeleteConversationMembershipRequestObject struct {
	ConversationId openapi_types.UUID `json:"conversationId"`
	UserId         string             `json:"userId"`
}

type DeleteConversationMembershipResponseObject

type DeleteConversationMembershipResponseObject interface {
	VisitDeleteConversationMembershipResponse(w http.ResponseWriter) error
}

type DeleteConversationMembershipdefaultJSONResponse

type DeleteConversationMembershipdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (DeleteConversationMembershipdefaultJSONResponse) VisitDeleteConversationMembershipResponse

func (response DeleteConversationMembershipdefaultJSONResponse) VisitDeleteConversationMembershipResponse(w http.ResponseWriter) error

type DeleteConversationResponse200Response

type DeleteConversationResponse200Response struct {
}

func (DeleteConversationResponse200Response) VisitDeleteConversationResponseResponse

func (response DeleteConversationResponse200Response) VisitDeleteConversationResponseResponse(w http.ResponseWriter) error

type DeleteConversationResponse404JSONResponse

type DeleteConversationResponse404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteConversationResponse404JSONResponse) VisitDeleteConversationResponseResponse

func (response DeleteConversationResponse404JSONResponse) VisitDeleteConversationResponseResponse(w http.ResponseWriter) error

type DeleteConversationResponse409JSONResponse

type DeleteConversationResponse409JSONResponse struct{ ErrorJSONResponse }

func (DeleteConversationResponse409JSONResponse) VisitDeleteConversationResponseResponse

func (response DeleteConversationResponse409JSONResponse) VisitDeleteConversationResponseResponse(w http.ResponseWriter) error

type DeleteConversationResponseRequestObject

type DeleteConversationResponseRequestObject struct {
	ConversationId openapi_types.UUID `json:"conversationId"`
}

type DeleteConversationResponseResponseObject

type DeleteConversationResponseResponseObject interface {
	VisitDeleteConversationResponseResponse(w http.ResponseWriter) error
}

type DeleteConversationResponsedefaultJSONResponse

type DeleteConversationResponsedefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (DeleteConversationResponsedefaultJSONResponse) VisitDeleteConversationResponseResponse

func (response DeleteConversationResponsedefaultJSONResponse) VisitDeleteConversationResponseResponse(w http.ResponseWriter) error

type DeleteTransfer204Response

type DeleteTransfer204Response struct {
}

func (DeleteTransfer204Response) VisitDeleteTransferResponse

func (response DeleteTransfer204Response) VisitDeleteTransferResponse(w http.ResponseWriter) error

type DeleteTransfer403JSONResponse

type DeleteTransfer403JSONResponse struct{ ErrorJSONResponse }

func (DeleteTransfer403JSONResponse) VisitDeleteTransferResponse

func (response DeleteTransfer403JSONResponse) VisitDeleteTransferResponse(w http.ResponseWriter) error

type DeleteTransfer404JSONResponse

type DeleteTransfer404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteTransfer404JSONResponse) VisitDeleteTransferResponse

func (response DeleteTransfer404JSONResponse) VisitDeleteTransferResponse(w http.ResponseWriter) error

type DeleteTransferRequestObject

type DeleteTransferRequestObject struct {
	TransferId openapi_types.UUID `json:"transferId"`
}

type DeleteTransferResponseObject

type DeleteTransferResponseObject interface {
	VisitDeleteTransferResponse(w http.ResponseWriter) error
}

type DeleteTransferdefaultJSONResponse

type DeleteTransferdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (DeleteTransferdefaultJSONResponse) VisitDeleteTransferResponse

func (response DeleteTransferdefaultJSONResponse) VisitDeleteTransferResponse(w http.ResponseWriter) error

type DownloadAttachmentByToken200ApplicationoctetStreamResponse

type DownloadAttachmentByToken200ApplicationoctetStreamResponse struct {
	Body          io.Reader
	Headers       DownloadAttachmentByToken200ResponseHeaders
	ContentLength int64
}

func (DownloadAttachmentByToken200ApplicationoctetStreamResponse) VisitDownloadAttachmentByTokenResponse

func (response DownloadAttachmentByToken200ApplicationoctetStreamResponse) VisitDownloadAttachmentByTokenResponse(w http.ResponseWriter) error

type DownloadAttachmentByToken200ResponseHeaders

type DownloadAttachmentByToken200ResponseHeaders struct {
	CacheControl string
}

type DownloadAttachmentByToken403Response

type DownloadAttachmentByToken403Response struct {
}

func (DownloadAttachmentByToken403Response) VisitDownloadAttachmentByTokenResponse

func (response DownloadAttachmentByToken403Response) VisitDownloadAttachmentByTokenResponse(w http.ResponseWriter) error

type DownloadAttachmentByToken404JSONResponse

type DownloadAttachmentByToken404JSONResponse struct{ NotFoundJSONResponse }

func (DownloadAttachmentByToken404JSONResponse) VisitDownloadAttachmentByTokenResponse

func (response DownloadAttachmentByToken404JSONResponse) VisitDownloadAttachmentByTokenResponse(w http.ResponseWriter) error

type DownloadAttachmentByTokenRequestObject

type DownloadAttachmentByTokenRequestObject struct {
	Token    string `json:"token"`
	Filename string `json:"filename"`
}

type DownloadAttachmentByTokenResponseObject

type DownloadAttachmentByTokenResponseObject interface {
	VisitDownloadAttachmentByTokenResponse(w http.ResponseWriter) error
}

type DownloadAttachmentByTokendefaultJSONResponse

type DownloadAttachmentByTokendefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (DownloadAttachmentByTokendefaultJSONResponse) VisitDownloadAttachmentByTokenResponse

func (response DownloadAttachmentByTokendefaultJSONResponse) VisitDownloadAttachmentByTokenResponse(w http.ResponseWriter) error

type Entry

type Entry struct {
	// Channel Logical channel of the entry within the conversation.
	Channel Channel `json:"channel"`

	// Content Opaque, agent-defined content blocks.
	// Different agents may use different schemas; the memory-service
	// stores and returns them without interpretation.
	//
	// For history channel entries (contentType: `"history"`), each block
	// contains `role` and at least one of `text`, `events`, or `attachments`.
	Content []interface{} `json:"content"`

	// ContentType Describes the schema/format of the content array.
	//
	// **History channel entries must use `"history"` or `"history/<subtype>"` as the contentType.**
	//
	// Supported content types:
	// - `history` - Simple text-only history entries
	// - `history/lc4j` - LangChain4j rich event format (Quarkus)
	//
	// The content array for history entries contains objects with:
	// - `role` (string, required): Either `"USER"` or `"AI"`.
	// - `text` (string, optional): The message text. At least one of `text`, `events`, or `attachments` must be present.
	// - `events` (array, optional): Rich event objects for streaming details.
	//   Event structure is not validated by the server. For `history/lc4j`, events use an `eventType` field:
	//   - `PartialResponse`: Text chunk (`{eventType, chunk}`)
	//   - `PartialThinking`: Reasoning chunk (`{eventType, chunk}`)
	//   - `BeforeToolExecution`: Before tool call (`{eventType, toolName, input}`)
	//   - `ToolExecuted`: Tool result (`{eventType, toolName, output}`)
	// - `attachments` (array, optional): Array of `Attachment` objects referencing external resources (images, audio, video, documents).
	//
	// Other contentTypes (e.g., `"LC4J"`, `"SpringAI"`) may be used for
	// agent context entries.
	ContentType string `json:"contentType"`

	// ConversationId Unique identifier for the conversation this entry belongs to.
	ConversationId openapi_types.UUID `json:"conversationId"`
	CreatedAt      time.Time          `json:"createdAt"`

	// Epoch Logical context epoch this entry belongs to.
	// For history entries this is typically null. For context entries,
	// the agent increments the epoch when starting a new context version.
	Epoch *int64 `json:"epoch"`

	// Id Unique identifier for the entry.
	Id openapi_types.UUID `json:"id"`

	// UserId Human user this entry is associated with.
	// For history entries authored by a user, this is the sender.
	// For agent entries, this is the user the agent is responding to.
	UserId *string `json:"userId"`
}

Entry defines model for Entry.

type Error

type Error = ErrorResponse

Error defines model for Error.

type ErrorJSONResponse

type ErrorJSONResponse ErrorResponse

type ErrorResponse

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

ErrorResponse defines model for ErrorResponse.

type GetAttachment200ApplicationoctetStreamResponse

type GetAttachment200ApplicationoctetStreamResponse struct {
	Body          io.Reader
	Headers       GetAttachment200ResponseHeaders
	ContentLength int64
}

func (GetAttachment200ApplicationoctetStreamResponse) VisitGetAttachmentResponse

func (response GetAttachment200ApplicationoctetStreamResponse) VisitGetAttachmentResponse(w http.ResponseWriter) error

type GetAttachment200ResponseHeaders

type GetAttachment200ResponseHeaders struct {
	CacheControl string
}

type GetAttachment302Response

type GetAttachment302Response struct {
	Headers GetAttachment302ResponseHeaders
}

func (GetAttachment302Response) VisitGetAttachmentResponse

func (response GetAttachment302Response) VisitGetAttachmentResponse(w http.ResponseWriter) error

type GetAttachment302ResponseHeaders

type GetAttachment302ResponseHeaders struct {
	CacheControl string
}

type GetAttachment403JSONResponse

type GetAttachment403JSONResponse struct{ ErrorJSONResponse }

func (GetAttachment403JSONResponse) VisitGetAttachmentResponse

func (response GetAttachment403JSONResponse) VisitGetAttachmentResponse(w http.ResponseWriter) error

type GetAttachment404JSONResponse

type GetAttachment404JSONResponse struct{ NotFoundJSONResponse }

func (GetAttachment404JSONResponse) VisitGetAttachmentResponse

func (response GetAttachment404JSONResponse) VisitGetAttachmentResponse(w http.ResponseWriter) error

type GetAttachmentDownloadUrl200JSONResponse

type GetAttachmentDownloadUrl200JSONResponse AttachmentDownloadUrlResponse

func (GetAttachmentDownloadUrl200JSONResponse) VisitGetAttachmentDownloadUrlResponse

func (response GetAttachmentDownloadUrl200JSONResponse) VisitGetAttachmentDownloadUrlResponse(w http.ResponseWriter) error

type GetAttachmentDownloadUrl403JSONResponse

type GetAttachmentDownloadUrl403JSONResponse struct{ ErrorJSONResponse }

func (GetAttachmentDownloadUrl403JSONResponse) VisitGetAttachmentDownloadUrlResponse

func (response GetAttachmentDownloadUrl403JSONResponse) VisitGetAttachmentDownloadUrlResponse(w http.ResponseWriter) error

type GetAttachmentDownloadUrl404JSONResponse

type GetAttachmentDownloadUrl404JSONResponse struct{ NotFoundJSONResponse }

func (GetAttachmentDownloadUrl404JSONResponse) VisitGetAttachmentDownloadUrlResponse

func (response GetAttachmentDownloadUrl404JSONResponse) VisitGetAttachmentDownloadUrlResponse(w http.ResponseWriter) error

type GetAttachmentDownloadUrlRequestObject

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

type GetAttachmentDownloadUrlResponseObject

type GetAttachmentDownloadUrlResponseObject interface {
	VisitGetAttachmentDownloadUrlResponse(w http.ResponseWriter) error
}

type GetAttachmentDownloadUrldefaultJSONResponse

type GetAttachmentDownloadUrldefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (GetAttachmentDownloadUrldefaultJSONResponse) VisitGetAttachmentDownloadUrlResponse

func (response GetAttachmentDownloadUrldefaultJSONResponse) VisitGetAttachmentDownloadUrlResponse(w http.ResponseWriter) error

type GetAttachmentRequestObject

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

type GetAttachmentResponseObject

type GetAttachmentResponseObject interface {
	VisitGetAttachmentResponse(w http.ResponseWriter) error
}

type GetAttachmentdefaultJSONResponse

type GetAttachmentdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (GetAttachmentdefaultJSONResponse) VisitGetAttachmentResponse

func (response GetAttachmentdefaultJSONResponse) VisitGetAttachmentResponse(w http.ResponseWriter) error

type GetCapabilities200JSONResponse

type GetCapabilities200JSONResponse CapabilitiesResponse

func (GetCapabilities200JSONResponse) VisitGetCapabilitiesResponse

func (response GetCapabilities200JSONResponse) VisitGetCapabilitiesResponse(w http.ResponseWriter) error

type GetCapabilities401Response

type GetCapabilities401Response struct {
}

func (GetCapabilities401Response) VisitGetCapabilitiesResponse

func (response GetCapabilities401Response) VisitGetCapabilitiesResponse(w http.ResponseWriter) error

type GetCapabilities403Response

type GetCapabilities403Response struct {
}

func (GetCapabilities403Response) VisitGetCapabilitiesResponse

func (response GetCapabilities403Response) VisitGetCapabilitiesResponse(w http.ResponseWriter) error

type GetCapabilitiesRequestObject

type GetCapabilitiesRequestObject struct {
}

type GetCapabilitiesResponseObject

type GetCapabilitiesResponseObject interface {
	VisitGetCapabilitiesResponse(w http.ResponseWriter) error
}

type GetCapabilitiesdefaultJSONResponse

type GetCapabilitiesdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (GetCapabilitiesdefaultJSONResponse) VisitGetCapabilitiesResponse

func (response GetCapabilitiesdefaultJSONResponse) VisitGetCapabilitiesResponse(w http.ResponseWriter) error

type GetConversation200JSONResponse

type GetConversation200JSONResponse Conversation

func (GetConversation200JSONResponse) VisitGetConversationResponse

func (response GetConversation200JSONResponse) VisitGetConversationResponse(w http.ResponseWriter) error

type GetConversation404JSONResponse

type GetConversation404JSONResponse struct{ NotFoundJSONResponse }

func (GetConversation404JSONResponse) VisitGetConversationResponse

func (response GetConversation404JSONResponse) VisitGetConversationResponse(w http.ResponseWriter) error

type GetConversationRequestObject

type GetConversationRequestObject struct {
	ConversationId openapi_types.UUID `json:"conversationId"`
}

type GetConversationResponseObject

type GetConversationResponseObject interface {
	VisitGetConversationResponse(w http.ResponseWriter) error
}

type GetConversationdefaultJSONResponse

type GetConversationdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (GetConversationdefaultJSONResponse) VisitGetConversationResponse

func (response GetConversationdefaultJSONResponse) VisitGetConversationResponse(w http.ResponseWriter) error

type GetMemory200JSONResponse

type GetMemory200JSONResponse MemoryItem

func (GetMemory200JSONResponse) VisitGetMemoryResponse

func (response GetMemory200JSONResponse) VisitGetMemoryResponse(w http.ResponseWriter) error

type GetMemory404JSONResponse

type GetMemory404JSONResponse struct{ NotFoundJSONResponse }

func (GetMemory404JSONResponse) VisitGetMemoryResponse

func (response GetMemory404JSONResponse) VisitGetMemoryResponse(w http.ResponseWriter) error

type GetMemoryParams

type GetMemoryParams struct {
	// Ns Namespace segments. Repeat once per segment.
	Ns  []string `form:"ns" json:"ns"`
	Key string   `form:"key" json:"key"`

	// IncludeUsage Include usage counters for the requested memory.
	IncludeUsage *bool `form:"include_usage,omitempty" json:"include_usage,omitempty"`

	// Archived Controls whether archived memories are excluded, included, or returned exclusively.
	Archived *GetMemoryParamsArchived `form:"archived,omitempty" json:"archived,omitempty"`
}

GetMemoryParams defines parameters for GetMemory.

type GetMemoryParamsArchived

type GetMemoryParamsArchived string

GetMemoryParamsArchived defines parameters for GetMemory.

const (
	GetMemoryParamsArchivedExclude GetMemoryParamsArchived = "exclude"
	GetMemoryParamsArchivedInclude GetMemoryParamsArchived = "include"
	GetMemoryParamsArchivedOnly    GetMemoryParamsArchived = "only"
)

Defines values for GetMemoryParamsArchived.

type GetMemoryRequestObject

type GetMemoryRequestObject struct {
	Params GetMemoryParams
}

type GetMemoryResponseObject

type GetMemoryResponseObject interface {
	VisitGetMemoryResponse(w http.ResponseWriter) error
}

type GetMemorydefaultJSONResponse

type GetMemorydefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (GetMemorydefaultJSONResponse) VisitGetMemoryResponse

func (response GetMemorydefaultJSONResponse) VisitGetMemoryResponse(w http.ResponseWriter) error

type GetTransfer200JSONResponse

type GetTransfer200JSONResponse OwnershipTransfer

func (GetTransfer200JSONResponse) VisitGetTransferResponse

func (response GetTransfer200JSONResponse) VisitGetTransferResponse(w http.ResponseWriter) error

type GetTransfer404JSONResponse

type GetTransfer404JSONResponse struct{ NotFoundJSONResponse }

func (GetTransfer404JSONResponse) VisitGetTransferResponse

func (response GetTransfer404JSONResponse) VisitGetTransferResponse(w http.ResponseWriter) error

type GetTransferRequestObject

type GetTransferRequestObject struct {
	TransferId openapi_types.UUID `json:"transferId"`
}

type GetTransferResponseObject

type GetTransferResponseObject interface {
	VisitGetTransferResponse(w http.ResponseWriter) error
}

type GetTransferdefaultJSONResponse

type GetTransferdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (GetTransferdefaultJSONResponse) VisitGetTransferResponse

func (response GetTransferdefaultJSONResponse) VisitGetTransferResponse(w http.ResponseWriter) error

type GinServerOptions

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

GinServerOptions provides options for the Gin server.

type IndexConversations200JSONResponse

type IndexConversations200JSONResponse IndexConversationsResponse

func (IndexConversations200JSONResponse) VisitIndexConversationsResponse

func (response IndexConversations200JSONResponse) VisitIndexConversationsResponse(w http.ResponseWriter) error

type IndexConversations403JSONResponse

type IndexConversations403JSONResponse struct{ ErrorJSONResponse }

func (IndexConversations403JSONResponse) VisitIndexConversationsResponse

func (response IndexConversations403JSONResponse) VisitIndexConversationsResponse(w http.ResponseWriter) error

type IndexConversations404JSONResponse

type IndexConversations404JSONResponse struct{ NotFoundJSONResponse }

func (IndexConversations404JSONResponse) VisitIndexConversationsResponse

func (response IndexConversations404JSONResponse) VisitIndexConversationsResponse(w http.ResponseWriter) error

type IndexConversationsJSONBody

type IndexConversationsJSONBody = []IndexEntryRequest

IndexConversationsJSONBody defines parameters for IndexConversations.

type IndexConversationsJSONRequestBody

type IndexConversationsJSONRequestBody = IndexConversationsJSONBody

IndexConversationsJSONRequestBody defines body for IndexConversations for application/json ContentType.

type IndexConversationsRequestObject

type IndexConversationsRequestObject struct {
	Body *IndexConversationsJSONRequestBody
}

type IndexConversationsResponse

type IndexConversationsResponse struct {
	// Indexed Number of entries processed. These entries have their indexed content
	// stored and will be searchable. If vector store indexing failed for some
	// entries, they will become searchable asynchronously via background retry.
	Indexed *int `json:"indexed,omitempty"`
}

IndexConversationsResponse defines model for IndexConversationsResponse.

type IndexConversationsResponseObject

type IndexConversationsResponseObject interface {
	VisitIndexConversationsResponse(w http.ResponseWriter) error
}

type IndexConversationsdefaultJSONResponse

type IndexConversationsdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (IndexConversationsdefaultJSONResponse) VisitIndexConversationsResponse

func (response IndexConversationsdefaultJSONResponse) VisitIndexConversationsResponse(w http.ResponseWriter) error

type IndexEntryRequest

type IndexEntryRequest struct {
	// ConversationId The conversation containing the entry.
	ConversationId openapi_types.UUID `json:"conversationId"`

	// EntryId The entry ID to index.
	EntryId openapi_types.UUID `json:"entryId"`

	// IndexedContent The searchable text for this entry.
	IndexedContent string `json:"indexedContent"`
}

IndexEntryRequest defines model for IndexEntryRequest.

type ListConversationChildren200JSONResponse

type ListConversationChildren200JSONResponse struct {
	AfterCursor *string                     `json:"afterCursor"`
	Data        *[]ChildConversationSummary `json:"data,omitempty"`
}

func (ListConversationChildren200JSONResponse) VisitListConversationChildrenResponse

func (response ListConversationChildren200JSONResponse) VisitListConversationChildrenResponse(w http.ResponseWriter) error

type ListConversationChildrenParams

type ListConversationChildrenParams struct {
	AfterCursor *openapi_types.UUID `form:"afterCursor,omitempty" json:"afterCursor,omitempty"`
	Limit       *int                `form:"limit,omitempty" json:"limit,omitempty"`
}

ListConversationChildrenParams defines parameters for ListConversationChildren.

type ListConversationChildrenRequestObject

type ListConversationChildrenRequestObject struct {
	ConversationId openapi_types.UUID `json:"conversationId"`
	Params         ListConversationChildrenParams
}

type ListConversationChildrenResponseObject

type ListConversationChildrenResponseObject interface {
	VisitListConversationChildrenResponse(w http.ResponseWriter) error
}

type ListConversationChildrendefaultJSONResponse

type ListConversationChildrendefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (ListConversationChildrendefaultJSONResponse) VisitListConversationChildrenResponse

func (response ListConversationChildrendefaultJSONResponse) VisitListConversationChildrenResponse(w http.ResponseWriter) error

type ListConversationEntries200JSONResponse

type ListConversationEntries200JSONResponse struct {
	AfterCursor *string  `json:"afterCursor"`
	Data        *[]Entry `json:"data,omitempty"`
}

func (ListConversationEntries200JSONResponse) VisitListConversationEntriesResponse

func (response ListConversationEntries200JSONResponse) VisitListConversationEntriesResponse(w http.ResponseWriter) error

type ListConversationEntries404JSONResponse

type ListConversationEntries404JSONResponse struct{ NotFoundJSONResponse }

func (ListConversationEntries404JSONResponse) VisitListConversationEntriesResponse

func (response ListConversationEntries404JSONResponse) VisitListConversationEntriesResponse(w http.ResponseWriter) error

type ListConversationEntriesParams

type ListConversationEntriesParams struct {
	// AfterCursor Cursor for pagination; returns entries after this entry id (UUID format).
	AfterCursor *openapi_types.UUID `form:"afterCursor,omitempty" json:"afterCursor,omitempty"`
	Limit       *int                `form:"limit,omitempty" json:"limit,omitempty"`

	// Channel Channel of entries to return. Defaults to `history` for the
	// user-visible conversation; `context` returns agent-managed context entries
	// scoped to the calling client id.
	Channel *Channel `form:"channel,omitempty" json:"channel,omitempty"`

	// Epoch Optional epoch filter when listing the `context` channel. Valid values
	// are `latest`, `all`, or a numeric epoch identifier. Defaults to
	// `latest` when not provided. The epoch selection is scoped to the
	// calling client id.
	Epoch *string `form:"epoch,omitempty" json:"epoch,omitempty"`

	// Forks Controls which fork entries to include. `none` (default) follows the
	// fork ancestry path, returning entries from the target conversation
	// and its ancestors up to fork points. `all` returns entries from all
	// forks in the conversation group, useful for debugging or getting a
	// complete picture of all activity across forks.
	Forks *ListConversationEntriesParamsForks `form:"forks,omitempty" json:"forks,omitempty"`
}

ListConversationEntriesParams defines parameters for ListConversationEntries.

type ListConversationEntriesParamsForks

type ListConversationEntriesParamsForks string

ListConversationEntriesParamsForks defines parameters for ListConversationEntries.

const (
	ListConversationEntriesParamsForksAll  ListConversationEntriesParamsForks = "all"
	ListConversationEntriesParamsForksNone ListConversationEntriesParamsForks = "none"
)

Defines values for ListConversationEntriesParamsForks.

type ListConversationEntriesRequestObject

type ListConversationEntriesRequestObject struct {
	ConversationId openapi_types.UUID `json:"conversationId"`
	Params         ListConversationEntriesParams
}

type ListConversationEntriesResponseObject

type ListConversationEntriesResponseObject interface {
	VisitListConversationEntriesResponse(w http.ResponseWriter) error
}

type ListConversationEntriesdefaultJSONResponse

type ListConversationEntriesdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (ListConversationEntriesdefaultJSONResponse) VisitListConversationEntriesResponse

func (response ListConversationEntriesdefaultJSONResponse) VisitListConversationEntriesResponse(w http.ResponseWriter) error

type ListConversationForks200JSONResponse

type ListConversationForks200JSONResponse struct {
	AfterCursor *string                    `json:"afterCursor"`
	Data        *[]ConversationForkSummary `json:"data,omitempty"`
}

func (ListConversationForks200JSONResponse) VisitListConversationForksResponse

func (response ListConversationForks200JSONResponse) VisitListConversationForksResponse(w http.ResponseWriter) error

type ListConversationForks404JSONResponse

type ListConversationForks404JSONResponse struct{ NotFoundJSONResponse }

func (ListConversationForks404JSONResponse) VisitListConversationForksResponse

func (response ListConversationForks404JSONResponse) VisitListConversationForksResponse(w http.ResponseWriter) error

type ListConversationForksParams

type ListConversationForksParams struct {
	// AfterCursor Cursor for pagination; returns items after this conversation id (UUID format).
	AfterCursor *openapi_types.UUID `form:"afterCursor,omitempty" json:"afterCursor,omitempty"`

	// Limit Maximum number of forks to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

ListConversationForksParams defines parameters for ListConversationForks.

type ListConversationForksRequestObject

type ListConversationForksRequestObject struct {
	ConversationId openapi_types.UUID `json:"conversationId"`
	Params         ListConversationForksParams
}

type ListConversationForksResponseObject

type ListConversationForksResponseObject interface {
	VisitListConversationForksResponse(w http.ResponseWriter) error
}

type ListConversationForksdefaultJSONResponse

type ListConversationForksdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (ListConversationForksdefaultJSONResponse) VisitListConversationForksResponse

func (response ListConversationForksdefaultJSONResponse) VisitListConversationForksResponse(w http.ResponseWriter) error

type ListConversationMemberships200JSONResponse

type ListConversationMemberships200JSONResponse struct {
	AfterCursor *string                   `json:"afterCursor"`
	Data        *[]ConversationMembership `json:"data,omitempty"`
}

func (ListConversationMemberships200JSONResponse) VisitListConversationMembershipsResponse

func (response ListConversationMemberships200JSONResponse) VisitListConversationMembershipsResponse(w http.ResponseWriter) error

type ListConversationMemberships404JSONResponse

type ListConversationMemberships404JSONResponse struct{ NotFoundJSONResponse }

func (ListConversationMemberships404JSONResponse) VisitListConversationMembershipsResponse

func (response ListConversationMemberships404JSONResponse) VisitListConversationMembershipsResponse(w http.ResponseWriter) error

type ListConversationMembershipsParams

type ListConversationMembershipsParams struct {
	// AfterCursor Cursor for pagination; returns items after this user id.
	AfterCursor *string `form:"afterCursor,omitempty" json:"afterCursor,omitempty"`

	// Limit Maximum number of memberships to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

ListConversationMembershipsParams defines parameters for ListConversationMemberships.

type ListConversationMembershipsRequestObject

type ListConversationMembershipsRequestObject struct {
	ConversationId openapi_types.UUID `json:"conversationId"`
	Params         ListConversationMembershipsParams
}

type ListConversationMembershipsResponseObject

type ListConversationMembershipsResponseObject interface {
	VisitListConversationMembershipsResponse(w http.ResponseWriter) error
}

type ListConversationMembershipsdefaultJSONResponse

type ListConversationMembershipsdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (ListConversationMembershipsdefaultJSONResponse) VisitListConversationMembershipsResponse

func (response ListConversationMembershipsdefaultJSONResponse) VisitListConversationMembershipsResponse(w http.ResponseWriter) error

type ListConversations200JSONResponse

type ListConversations200JSONResponse struct {
	AfterCursor *string                `json:"afterCursor"`
	Data        *[]ConversationSummary `json:"data,omitempty"`
}

func (ListConversations200JSONResponse) VisitListConversationsResponse

func (response ListConversations200JSONResponse) VisitListConversationsResponse(w http.ResponseWriter) error

type ListConversationsParams

type ListConversationsParams struct {
	// Mode Listing mode for conversations. Controls which conversations are returned
	// from each fork tree (conversation group).
	// - `all`: include all conversations the user can access (roots and forks).
	// - `roots`: only include root conversations (conversations that are not forks).
	// - `latest-fork`: include only the most recently updated conversation per fork tree.
	//   This is useful for showing a single representative conversation from each tree.
	Mode *ListConversationsParamsMode `form:"mode,omitempty" json:"mode,omitempty"`

	// Ancestry Started-conversation ancestry filter.
	// - `roots`: include only top-level conversations not started from another conversation.
	// - `children`: include only conversations started from another conversation.
	// - `all`: include both root and child conversations.
	Ancestry *ListConversationsParamsAncestry `form:"ancestry,omitempty" json:"ancestry,omitempty"`

	// AfterCursor Cursor for pagination; returns items after this conversation id (UUID format).
	AfterCursor *openapi_types.UUID `form:"afterCursor,omitempty" json:"afterCursor,omitempty"`

	// Limit Maximum number of conversations to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Query Optional text query for basic title/metadata search.
	Query *string `form:"query,omitempty" json:"query,omitempty"`

	// Archived Controls whether archived conversations are excluded, included, or returned exclusively.
	Archived *ListConversationsParamsArchived `form:"archived,omitempty" json:"archived,omitempty"`
}

ListConversationsParams defines parameters for ListConversations.

type ListConversationsParamsAncestry

type ListConversationsParamsAncestry string

ListConversationsParamsAncestry defines parameters for ListConversations.

const (
	ListConversationsParamsAncestryAll      ListConversationsParamsAncestry = "all"
	ListConversationsParamsAncestryChildren ListConversationsParamsAncestry = "children"
	ListConversationsParamsAncestryRoots    ListConversationsParamsAncestry = "roots"
)

Defines values for ListConversationsParamsAncestry.

type ListConversationsParamsArchived

type ListConversationsParamsArchived string

ListConversationsParamsArchived defines parameters for ListConversations.

const (
	ListConversationsParamsArchivedExclude ListConversationsParamsArchived = "exclude"
	ListConversationsParamsArchivedInclude ListConversationsParamsArchived = "include"
	ListConversationsParamsArchivedOnly    ListConversationsParamsArchived = "only"
)

Defines values for ListConversationsParamsArchived.

type ListConversationsParamsMode

type ListConversationsParamsMode string

ListConversationsParamsMode defines parameters for ListConversations.

const (
	ListConversationsParamsModeAll        ListConversationsParamsMode = "all"
	ListConversationsParamsModeLatestFork ListConversationsParamsMode = "latest-fork"
	ListConversationsParamsModeRoots      ListConversationsParamsMode = "roots"
)

Defines values for ListConversationsParamsMode.

type ListConversationsRequestObject

type ListConversationsRequestObject struct {
	Params ListConversationsParams
}

type ListConversationsResponseObject

type ListConversationsResponseObject interface {
	VisitListConversationsResponse(w http.ResponseWriter) error
}

type ListConversationsdefaultJSONResponse

type ListConversationsdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (ListConversationsdefaultJSONResponse) VisitListConversationsResponse

func (response ListConversationsdefaultJSONResponse) VisitListConversationsResponse(w http.ResponseWriter) error

type ListMemoryEvents200JSONResponse

type ListMemoryEvents200JSONResponse ListMemoryEventsResponse

func (ListMemoryEvents200JSONResponse) VisitListMemoryEventsResponse

func (response ListMemoryEvents200JSONResponse) VisitListMemoryEventsResponse(w http.ResponseWriter) error

type ListMemoryEventsParams

type ListMemoryEventsParams struct {
	// Ns Namespace prefix segments. Repeat once per segment.
	Ns *[]string `form:"ns,omitempty" json:"ns,omitempty"`

	// Kinds Filter by event kind. Repeat to include multiple. Values: add, update, expired.
	Kinds *[]ListMemoryEventsParamsKinds `form:"kinds,omitempty" json:"kinds,omitempty"`

	// After Return events with occurred_at strictly after this ISO 8601 timestamp.
	After *time.Time `form:"after,omitempty" json:"after,omitempty"`

	// Before Return events with occurred_at strictly before this ISO 8601 timestamp.
	Before *time.Time `form:"before,omitempty" json:"before,omitempty"`

	// AfterCursor Opaque cursor from a previous response for pagination.
	AfterCursor *string `form:"after_cursor,omitempty" json:"after_cursor,omitempty"`
	Limit       *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

ListMemoryEventsParams defines parameters for ListMemoryEvents.

type ListMemoryEventsParamsKinds

type ListMemoryEventsParamsKinds string

ListMemoryEventsParamsKinds defines parameters for ListMemoryEvents.

const (
	ListMemoryEventsParamsKindsAdd     ListMemoryEventsParamsKinds = "add"
	ListMemoryEventsParamsKindsExpired ListMemoryEventsParamsKinds = "expired"
	ListMemoryEventsParamsKindsUpdate  ListMemoryEventsParamsKinds = "update"
)

Defines values for ListMemoryEventsParamsKinds.

type ListMemoryEventsRequestObject

type ListMemoryEventsRequestObject struct {
	Params ListMemoryEventsParams
}

type ListMemoryEventsResponse

type ListMemoryEventsResponse struct {
	AfterCursor *string            `json:"after_cursor"`
	Events      *[]MemoryEventItem `json:"events,omitempty"`
}

ListMemoryEventsResponse defines model for ListMemoryEventsResponse.

type ListMemoryEventsResponseObject

type ListMemoryEventsResponseObject interface {
	VisitListMemoryEventsResponse(w http.ResponseWriter) error
}

type ListMemoryEventsdefaultJSONResponse

type ListMemoryEventsdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (ListMemoryEventsdefaultJSONResponse) VisitListMemoryEventsResponse

func (response ListMemoryEventsdefaultJSONResponse) VisitListMemoryEventsResponse(w http.ResponseWriter) error

type ListMemoryNamespaces200JSONResponse

type ListMemoryNamespaces200JSONResponse ListMemoryNamespacesResponse

func (ListMemoryNamespaces200JSONResponse) VisitListMemoryNamespacesResponse

func (response ListMemoryNamespaces200JSONResponse) VisitListMemoryNamespacesResponse(w http.ResponseWriter) error

type ListMemoryNamespacesParams

type ListMemoryNamespacesParams struct {
	// Prefix Namespace prefix segments. Repeat once per segment.
	Prefix *[]string `form:"prefix,omitempty" json:"prefix,omitempty"`

	// Suffix Namespace suffix segments. Repeat once per segment.
	Suffix   *[]string `form:"suffix,omitempty" json:"suffix,omitempty"`
	MaxDepth *int      `form:"max_depth,omitempty" json:"max_depth,omitempty"`

	// Archived Controls whether archived memories are excluded, included, or returned exclusively.
	Archived *ListMemoryNamespacesParamsArchived `form:"archived,omitempty" json:"archived,omitempty"`
}

ListMemoryNamespacesParams defines parameters for ListMemoryNamespaces.

type ListMemoryNamespacesParamsArchived

type ListMemoryNamespacesParamsArchived string

ListMemoryNamespacesParamsArchived defines parameters for ListMemoryNamespaces.

const (
	ListMemoryNamespacesParamsArchivedExclude ListMemoryNamespacesParamsArchived = "exclude"
	ListMemoryNamespacesParamsArchivedInclude ListMemoryNamespacesParamsArchived = "include"
	ListMemoryNamespacesParamsArchivedOnly    ListMemoryNamespacesParamsArchived = "only"
)

Defines values for ListMemoryNamespacesParamsArchived.

type ListMemoryNamespacesRequestObject

type ListMemoryNamespacesRequestObject struct {
	Params ListMemoryNamespacesParams
}

type ListMemoryNamespacesResponse

type ListMemoryNamespacesResponse struct {
	Namespaces *[][]string `json:"namespaces,omitempty"`
}

ListMemoryNamespacesResponse defines model for ListMemoryNamespacesResponse.

type ListMemoryNamespacesResponseObject

type ListMemoryNamespacesResponseObject interface {
	VisitListMemoryNamespacesResponse(w http.ResponseWriter) error
}

type ListMemoryNamespacesdefaultJSONResponse

type ListMemoryNamespacesdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (ListMemoryNamespacesdefaultJSONResponse) VisitListMemoryNamespacesResponse

func (response ListMemoryNamespacesdefaultJSONResponse) VisitListMemoryNamespacesResponse(w http.ResponseWriter) error

type ListPendingTransfers200JSONResponse

type ListPendingTransfers200JSONResponse struct {
	AfterCursor *string              `json:"afterCursor"`
	Data        *[]OwnershipTransfer `json:"data,omitempty"`
}

func (ListPendingTransfers200JSONResponse) VisitListPendingTransfersResponse

func (response ListPendingTransfers200JSONResponse) VisitListPendingTransfersResponse(w http.ResponseWriter) error

type ListPendingTransfersParams

type ListPendingTransfersParams struct {
	// Role Filter by user's role in the transfer.
	Role *ListPendingTransfersParamsRole `form:"role,omitempty" json:"role,omitempty"`

	// AfterCursor Cursor for pagination; returns items after this transfer id (UUID format).
	AfterCursor *openapi_types.UUID `form:"afterCursor,omitempty" json:"afterCursor,omitempty"`

	// Limit Maximum number of transfers to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

ListPendingTransfersParams defines parameters for ListPendingTransfers.

type ListPendingTransfersParamsRole

type ListPendingTransfersParamsRole string

ListPendingTransfersParamsRole defines parameters for ListPendingTransfers.

const (
	ListPendingTransfersParamsRoleAll       ListPendingTransfersParamsRole = "all"
	ListPendingTransfersParamsRoleRecipient ListPendingTransfersParamsRole = "recipient"
	ListPendingTransfersParamsRoleSender    ListPendingTransfersParamsRole = "sender"
)

Defines values for ListPendingTransfersParamsRole.

type ListPendingTransfersRequestObject

type ListPendingTransfersRequestObject struct {
	Params ListPendingTransfersParams
}

type ListPendingTransfersResponseObject

type ListPendingTransfersResponseObject interface {
	VisitListPendingTransfersResponse(w http.ResponseWriter) error
}

type ListPendingTransfersdefaultJSONResponse

type ListPendingTransfersdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (ListPendingTransfersdefaultJSONResponse) VisitListPendingTransfersResponse

func (response ListPendingTransfersdefaultJSONResponse) VisitListPendingTransfersResponse(w http.ResponseWriter) error

type ListUnindexedEntries200JSONResponse

type ListUnindexedEntries200JSONResponse UnindexedEntriesResponse

func (ListUnindexedEntries200JSONResponse) VisitListUnindexedEntriesResponse

func (response ListUnindexedEntries200JSONResponse) VisitListUnindexedEntriesResponse(w http.ResponseWriter) error

type ListUnindexedEntries403JSONResponse

type ListUnindexedEntries403JSONResponse struct{ ErrorJSONResponse }

func (ListUnindexedEntries403JSONResponse) VisitListUnindexedEntriesResponse

func (response ListUnindexedEntries403JSONResponse) VisitListUnindexedEntriesResponse(w http.ResponseWriter) error

type ListUnindexedEntriesParams

type ListUnindexedEntriesParams struct {
	// Limit Maximum number of entries to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// AfterCursor Pagination cursor from previous response.
	AfterCursor *string `form:"afterCursor,omitempty" json:"afterCursor,omitempty"`
}

ListUnindexedEntriesParams defines parameters for ListUnindexedEntries.

type ListUnindexedEntriesRequestObject

type ListUnindexedEntriesRequestObject struct {
	Params ListUnindexedEntriesParams
}

type ListUnindexedEntriesResponseObject

type ListUnindexedEntriesResponseObject interface {
	VisitListUnindexedEntriesResponse(w http.ResponseWriter) error
}

type ListUnindexedEntriesdefaultJSONResponse

type ListUnindexedEntriesdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (ListUnindexedEntriesdefaultJSONResponse) VisitListUnindexedEntriesResponse

func (response ListUnindexedEntriesdefaultJSONResponse) VisitListUnindexedEntriesResponse(w http.ResponseWriter) error

type MemoryEventItem

type MemoryEventItem struct {
	Attributes *map[string]interface{} `json:"attributes"`
	ExpiresAt  *time.Time              `json:"expires_at"`
	Id         *openapi_types.UUID     `json:"id,omitempty"`
	Key        *string                 `json:"key,omitempty"`
	Kind       *MemoryEventItemKind    `json:"kind,omitempty"`
	Namespace  *[]string               `json:"namespace,omitempty"`
	OccurredAt *time.Time              `json:"occurred_at,omitempty"`
	Value      *map[string]interface{} `json:"value"`
}

MemoryEventItem defines model for MemoryEventItem.

type MemoryEventItemKind

type MemoryEventItemKind string

MemoryEventItemKind defines model for MemoryEventItem.Kind.

const (
	MemoryEventItemKindAdd     MemoryEventItemKind = "add"
	MemoryEventItemKindExpired MemoryEventItemKind = "expired"
	MemoryEventItemKindUpdate  MemoryEventItemKind = "update"
)

Defines values for MemoryEventItemKind.

type MemoryItem

type MemoryItem struct {
	// Archived Synthetic archive flag derived from the internal archived timestamp.
	Archived   *bool                   `json:"archived,omitempty"`
	Attributes *map[string]interface{} `json:"attributes,omitempty"`
	CreatedAt  *time.Time              `json:"createdAt,omitempty"`
	ExpiresAt  *time.Time              `json:"expiresAt"`
	Id         *openapi_types.UUID     `json:"id,omitempty"`
	Key        *string                 `json:"key,omitempty"`
	Namespace  *[]string               `json:"namespace,omitempty"`
	Score      *float64                `json:"score"`
	Usage      *MemoryUsage            `json:"usage,omitempty"`
	Value      *map[string]interface{} `json:"value,omitempty"`
}

MemoryItem defines model for MemoryItem.

type MemoryUsage

type MemoryUsage struct {
	FetchCount    *int64     `json:"fetchCount,omitempty"`
	LastFetchedAt *time.Time `json:"lastFetchedAt,omitempty"`
}

MemoryUsage defines model for MemoryUsage.

type MemoryWriteResult

type MemoryWriteResult struct {
	Attributes *map[string]interface{} `json:"attributes,omitempty"`
	CreatedAt  *time.Time              `json:"createdAt,omitempty"`
	ExpiresAt  *time.Time              `json:"expiresAt"`
	Id         *openapi_types.UUID     `json:"id,omitempty"`
	Key        *string                 `json:"key,omitempty"`
	Namespace  *[]string               `json:"namespace,omitempty"`
}

MemoryWriteResult defines model for MemoryWriteResult.

type MiddlewareFunc

type MiddlewareFunc func(c *gin.Context)

type NotFound

type NotFound = ErrorResponse

NotFound defines model for NotFound.

type NotFoundJSONResponse

type NotFoundJSONResponse ErrorResponse

type OwnershipTransfer

type OwnershipTransfer struct {
	// ConversationId The conversation being transferred.
	ConversationId openapi_types.UUID `json:"conversationId"`

	// ConversationTitle Title of the conversation (for display purposes).
	ConversationTitle *string `json:"conversationTitle"`

	// CreatedAt When the transfer was initiated.
	CreatedAt time.Time `json:"createdAt"`

	// FromUserId Current owner initiating the transfer.
	FromUserId string `json:"fromUserId"`

	// Id Unique identifier for the transfer.
	Id openapi_types.UUID `json:"id"`

	// ToUserId Proposed new owner (recipient).
	ToUserId string `json:"toUserId"`
}

OwnershipTransfer Represents a pending ownership transfer request. Transfers are always "pending" while they exist; accepted/rejected transfers are hard deleted from the database.

type PutMemory200JSONResponse

type PutMemory200JSONResponse MemoryWriteResult

func (PutMemory200JSONResponse) VisitPutMemoryResponse

func (response PutMemory200JSONResponse) VisitPutMemoryResponse(w http.ResponseWriter) error

type PutMemoryJSONRequestBody

type PutMemoryJSONRequestBody = PutMemoryRequest

PutMemoryJSONRequestBody defines body for PutMemory for application/json ContentType.

type PutMemoryRequest

type PutMemoryRequest struct {
	Index      *map[string]string     `json:"index,omitempty"`
	Key        string                 `json:"key"`
	Namespace  []string               `json:"namespace"`
	TtlSeconds *int                   `json:"ttl_seconds,omitempty"`
	Value      map[string]interface{} `json:"value"`
}

PutMemoryRequest defines model for PutMemoryRequest.

type PutMemoryRequestObject

type PutMemoryRequestObject struct {
	Body *PutMemoryJSONRequestBody
}

type PutMemoryResponseObject

type PutMemoryResponseObject interface {
	VisitPutMemoryResponse(w http.ResponseWriter) error
}

type PutMemorydefaultJSONResponse

type PutMemorydefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (PutMemorydefaultJSONResponse) VisitPutMemoryResponse

func (response PutMemorydefaultJSONResponse) VisitPutMemoryResponse(w http.ResponseWriter) error

type SearchConversations200JSONResponse

type SearchConversations200JSONResponse struct {
	AfterCursor *string         `json:"afterCursor"`
	Data        *[]SearchResult `json:"data,omitempty"`
}

func (SearchConversations200JSONResponse) VisitSearchConversationsResponse

func (response SearchConversations200JSONResponse) VisitSearchConversationsResponse(w http.ResponseWriter) error

type SearchConversations501JSONResponse

type SearchConversations501JSONResponse struct {
	SearchTypeUnavailableJSONResponse
}

func (SearchConversations501JSONResponse) VisitSearchConversationsResponse

func (response SearchConversations501JSONResponse) VisitSearchConversationsResponse(w http.ResponseWriter) error

type SearchConversationsJSONRequestBody

type SearchConversationsJSONRequestBody = SearchConversationsRequest

SearchConversationsJSONRequestBody defines body for SearchConversations for application/json ContentType.

type SearchConversationsRequest

type SearchConversationsRequest struct {
	// AfterCursor Cursor for pagination; returns items after this result.
	AfterCursor *string `json:"afterCursor"`

	// GroupByConversation When true (default), groups results by conversation and returns only
	// the highest-scoring entry per conversation. When false, returns all
	// matching entries ordered by score.
	GroupByConversation *bool `json:"groupByConversation,omitempty"`

	// IncludeEntry Whether to include the full entry in results. Set to false to reduce response size when only metadata is needed.
	IncludeEntry *bool `json:"includeEntry,omitempty"`

	// Limit Maximum number of results to return.
	Limit *int `json:"limit,omitempty"`

	// Query Natural language query.
	Query string `json:"query"`

	// SearchType The search method(s) to use:
	// - `auto` (default): Try semantic (vector) search first, fall back to full-text if no results or unavailable
	// - `semantic`: Use only vector/embedding-based semantic search
	// - `fulltext`: Use only PostgreSQL full-text search with GIN index
	//
	// `searchType` may be provided as either a single string or an array of concrete types.
	// When an array is provided (for example `["semantic","fulltext"]`), each type executes
	// independently and `limit` is applied per type. The combined response may therefore contain
	// up to `limit * number_of_requested_types` entries.
	//
	// If the requested search type is not available on the server, a 501 (Not Implemented)
	// error is returned with details about which search types are available.
	SearchType *SearchConversationsRequest_SearchType `json:"searchType,omitempty"`
}

SearchConversationsRequest defines model for SearchConversationsRequest.

type SearchConversationsRequestObject

type SearchConversationsRequestObject struct {
	Body *SearchConversationsJSONRequestBody
}

type SearchConversationsRequest_SearchType

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

SearchConversationsRequest_SearchType The search method(s) to use: - `auto` (default): Try semantic (vector) search first, fall back to full-text if no results or unavailable - `semantic`: Use only vector/embedding-based semantic search - `fulltext`: Use only PostgreSQL full-text search with GIN index

`searchType` may be provided as either a single string or an array of concrete types. When an array is provided (for example `["semantic","fulltext"]`), each type executes independently and `limit` is applied per type. The combined response may therefore contain up to `limit * number_of_requested_types` entries.

If the requested search type is not available on the server, a 501 (Not Implemented) error is returned with details about which search types are available.

func (SearchConversationsRequest_SearchType) AsSearchConversationsSearchTypeList

func (t SearchConversationsRequest_SearchType) AsSearchConversationsSearchTypeList() (SearchConversationsSearchTypeList, error)

AsSearchConversationsSearchTypeList returns the union data inside the SearchConversationsRequest_SearchType as a SearchConversationsSearchTypeList

func (SearchConversationsRequest_SearchType) AsSearchConversationsSearchTypeSingle

func (t SearchConversationsRequest_SearchType) AsSearchConversationsSearchTypeSingle() (SearchConversationsSearchTypeSingle, error)

AsSearchConversationsSearchTypeSingle returns the union data inside the SearchConversationsRequest_SearchType as a SearchConversationsSearchTypeSingle

func (*SearchConversationsRequest_SearchType) FromSearchConversationsSearchTypeList

func (t *SearchConversationsRequest_SearchType) FromSearchConversationsSearchTypeList(v SearchConversationsSearchTypeList) error

FromSearchConversationsSearchTypeList overwrites any union data inside the SearchConversationsRequest_SearchType as the provided SearchConversationsSearchTypeList

func (*SearchConversationsRequest_SearchType) FromSearchConversationsSearchTypeSingle

func (t *SearchConversationsRequest_SearchType) FromSearchConversationsSearchTypeSingle(v SearchConversationsSearchTypeSingle) error

FromSearchConversationsSearchTypeSingle overwrites any union data inside the SearchConversationsRequest_SearchType as the provided SearchConversationsSearchTypeSingle

func (SearchConversationsRequest_SearchType) MarshalJSON

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

func (*SearchConversationsRequest_SearchType) MergeSearchConversationsSearchTypeList

func (t *SearchConversationsRequest_SearchType) MergeSearchConversationsSearchTypeList(v SearchConversationsSearchTypeList) error

MergeSearchConversationsSearchTypeList performs a merge with any union data inside the SearchConversationsRequest_SearchType, using the provided SearchConversationsSearchTypeList

func (*SearchConversationsRequest_SearchType) MergeSearchConversationsSearchTypeSingle

func (t *SearchConversationsRequest_SearchType) MergeSearchConversationsSearchTypeSingle(v SearchConversationsSearchTypeSingle) error

MergeSearchConversationsSearchTypeSingle performs a merge with any union data inside the SearchConversationsRequest_SearchType, using the provided SearchConversationsSearchTypeSingle

func (*SearchConversationsRequest_SearchType) UnmarshalJSON

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

type SearchConversationsResponseObject

type SearchConversationsResponseObject interface {
	VisitSearchConversationsResponse(w http.ResponseWriter) error
}

type SearchConversationsSearchTypeList

type SearchConversationsSearchTypeList = []string

SearchConversationsSearchTypeList defines model for SearchConversationsSearchTypeList.

type SearchConversationsSearchTypeSingle

type SearchConversationsSearchTypeSingle string

SearchConversationsSearchTypeSingle defines model for SearchConversationsSearchTypeSingle.

const (
	Auto     SearchConversationsSearchTypeSingle = "auto"
	Fulltext SearchConversationsSearchTypeSingle = "fulltext"
	Semantic SearchConversationsSearchTypeSingle = "semantic"
)

Defines values for SearchConversationsSearchTypeSingle.

type SearchConversationsdefaultJSONResponse

type SearchConversationsdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (SearchConversationsdefaultJSONResponse) VisitSearchConversationsResponse

func (response SearchConversationsdefaultJSONResponse) VisitSearchConversationsResponse(w http.ResponseWriter) error

type SearchMemories200JSONResponse

type SearchMemories200JSONResponse SearchMemoriesResponse

func (SearchMemories200JSONResponse) VisitSearchMemoriesResponse

func (response SearchMemories200JSONResponse) VisitSearchMemoriesResponse(w http.ResponseWriter) error

type SearchMemoriesJSONRequestBody

type SearchMemoriesJSONRequestBody = SearchMemoriesRequest

SearchMemoriesJSONRequestBody defines body for SearchMemories for application/json ContentType.

type SearchMemoriesRequest

type SearchMemoriesRequest struct {
	Archived        *SearchMemoriesRequestArchived `json:"archived,omitempty"`
	Filter          *map[string]interface{}        `json:"filter,omitempty"`
	IncludeUsage    *bool                          `json:"include_usage,omitempty"`
	Limit           *int                           `json:"limit,omitempty"`
	NamespacePrefix []string                       `json:"namespace_prefix"`
	Offset          *int                           `json:"offset,omitempty"`
	Query           *string                        `json:"query,omitempty"`
}

SearchMemoriesRequest defines model for SearchMemoriesRequest.

type SearchMemoriesRequestArchived

type SearchMemoriesRequestArchived string

SearchMemoriesRequestArchived defines model for SearchMemoriesRequest.Archived.

const (
	SearchMemoriesRequestArchivedExclude SearchMemoriesRequestArchived = "exclude"
	SearchMemoriesRequestArchivedInclude SearchMemoriesRequestArchived = "include"
	SearchMemoriesRequestArchivedOnly    SearchMemoriesRequestArchived = "only"
)

Defines values for SearchMemoriesRequestArchived.

type SearchMemoriesRequestObject

type SearchMemoriesRequestObject struct {
	Body *SearchMemoriesJSONRequestBody
}

type SearchMemoriesResponse

type SearchMemoriesResponse struct {
	Items *[]MemoryItem `json:"items,omitempty"`
}

SearchMemoriesResponse defines model for SearchMemoriesResponse.

type SearchMemoriesResponseObject

type SearchMemoriesResponseObject interface {
	VisitSearchMemoriesResponse(w http.ResponseWriter) error
}

type SearchMemoriesdefaultJSONResponse

type SearchMemoriesdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (SearchMemoriesdefaultJSONResponse) VisitSearchMemoriesResponse

func (response SearchMemoriesdefaultJSONResponse) VisitSearchMemoriesResponse(w http.ResponseWriter) error

type SearchResult

type SearchResult struct {
	// ConversationId Unique identifier of the conversation containing this entry.
	ConversationId *openapi_types.UUID `json:"conversationId,omitempty"`

	// ConversationTitle Title of the conversation containing this entry.
	ConversationTitle *string `json:"conversationTitle,omitempty"`

	// Entry The matched entry. Only included when includeEntry is true in the request.
	Entry *Entry `json:"entry,omitempty"`

	// EntryId ID of the matched entry. Always present for deep-linking.
	EntryId    *openapi_types.UUID `json:"entryId,omitempty"`
	Highlights *string             `json:"highlights"`

	// Kind Identifies which search backend produced the score (e.g. `postgres`, `mongo`, `qdrant`, `pgvector`).
	Kind *SearchResultKind `json:"kind,omitempty"`

	// Score Relevance score. Higher is more relevant.
	Score *float32 `json:"score,omitempty"`
}

SearchResult defines model for SearchResult.

type SearchResultKind

type SearchResultKind string

SearchResultKind Identifies which search backend produced the score (e.g. `postgres`, `mongo`, `qdrant`, `pgvector`).

const (
	Mongo    SearchResultKind = "mongo"
	Pgvector SearchResultKind = "pgvector"
	Postgres SearchResultKind = "postgres"
	Qdrant   SearchResultKind = "qdrant"
)

Defines values for SearchResultKind.

type SearchTypeUnavailable

type SearchTypeUnavailable = SearchTypeUnavailableError

SearchTypeUnavailable Error response when the requested search type is not available on the server.

type SearchTypeUnavailableError

type SearchTypeUnavailableError struct {
	// AvailableTypes List of search types that are available on this server.
	AvailableTypes *[]string `json:"availableTypes,omitempty"`

	// Error Error code.
	Error *string `json:"error,omitempty"`

	// Message Human-readable error message.
	Message *string `json:"message,omitempty"`
}

SearchTypeUnavailableError Error response when the requested search type is not available on the server.

type SearchTypeUnavailableJSONResponse

type SearchTypeUnavailableJSONResponse SearchTypeUnavailableError

type ServerInterface

type ServerInterface interface {
	// Subscribe to all real-time events (admin SSE)
	// (GET /v1/admin/events)
	AdminSubscribeEvents(c *gin.Context, params AdminSubscribeEventsParams)
	// Upload or create an attachment
	// (POST /v1/attachments)
	UploadAttachment(c *gin.Context, params UploadAttachmentParams)
	// Download an attachment via signed token
	// (GET /v1/attachments/download/{token}/{filename})
	DownloadAttachmentByToken(c *gin.Context, token string, filename string)
	// Delete an unlinked attachment
	// (DELETE /v1/attachments/{id})
	DeleteAttachment(c *gin.Context, id openapi_types.UUID)
	// Retrieve an attachment
	// (GET /v1/attachments/{id})
	GetAttachment(c *gin.Context, id openapi_types.UUID)
	// Get a signed download URL for an attachment
	// (GET /v1/attachments/{id}/download-url)
	GetAttachmentDownloadUrl(c *gin.Context, id openapi_types.UUID)
	// Get server capabilities for the authenticated caller
	// (GET /v1/capabilities)
	GetCapabilities(c *gin.Context)
	// List conversations visible to current user
	// (GET /v1/conversations)
	ListConversations(c *gin.Context, params ListConversationsParams)
	// Create a conversation
	// (POST /v1/conversations)
	CreateConversation(c *gin.Context)
	// Index conversation entries
	// (POST /v1/conversations/index)
	IndexConversations(c *gin.Context)
	// Semantic search across conversations
	// (POST /v1/conversations/search)
	SearchConversations(c *gin.Context)
	// List entries needing indexing
	// (GET /v1/conversations/unindexed)
	ListUnindexedEntries(c *gin.Context, params ListUnindexedEntriesParams)
	// Get a conversation
	// (GET /v1/conversations/{conversationId})
	GetConversation(c *gin.Context, conversationId openapi_types.UUID)
	// Update a conversation
	// (PATCH /v1/conversations/{conversationId})
	UpdateConversation(c *gin.Context, conversationId openapi_types.UUID)
	// List direct child conversations
	// (GET /v1/conversations/{conversationId}/children)
	ListConversationChildren(c *gin.Context, conversationId openapi_types.UUID, params ListConversationChildrenParams)
	// List conversation entries
	// (GET /v1/conversations/{conversationId}/entries)
	ListConversationEntries(c *gin.Context, conversationId openapi_types.UUID, params ListConversationEntriesParams)
	// Append an entry
	// (POST /v1/conversations/{conversationId}/entries)
	AppendConversationEntry(c *gin.Context, conversationId openapi_types.UUID)
	// Synchronize the agent context epoch
	// (POST /v1/conversations/{conversationId}/entries/sync)
	SyncConversationContext(c *gin.Context, conversationId openapi_types.UUID)
	// List forks for a conversation
	// (GET /v1/conversations/{conversationId}/forks)
	ListConversationForks(c *gin.Context, conversationId openapi_types.UUID, params ListConversationForksParams)
	// List conversation memberships
	// (GET /v1/conversations/{conversationId}/memberships)
	ListConversationMemberships(c *gin.Context, conversationId openapi_types.UUID, params ListConversationMembershipsParams)
	// Share conversation with another user
	// (POST /v1/conversations/{conversationId}/memberships)
	ShareConversation(c *gin.Context, conversationId openapi_types.UUID)
	// Remove a member from the conversation
	// (DELETE /v1/conversations/{conversationId}/memberships/{userId})
	DeleteConversationMembership(c *gin.Context, conversationId openapi_types.UUID, userId string)
	// Update a member's access level
	// (PATCH /v1/conversations/{conversationId}/memberships/{userId})
	UpdateConversationMembership(c *gin.Context, conversationId openapi_types.UUID, userId string)
	// Cancel an in-progress response
	// (DELETE /v1/conversations/{conversationId}/response)
	DeleteConversationResponse(c *gin.Context, conversationId openapi_types.UUID)
	// Subscribe to real-time events (SSE)
	// (GET /v1/events)
	SubscribeEvents(c *gin.Context, params SubscribeEventsParams)
	// Get a memory item
	// (GET /v1/memories)
	GetMemory(c *gin.Context, params GetMemoryParams)
	// Update a memory item
	// (PATCH /v1/memories)
	UpdateMemory(c *gin.Context, params UpdateMemoryParams)
	// Upsert a memory item
	// (PUT /v1/memories)
	PutMemory(c *gin.Context)
	// List memory lifecycle events
	// (GET /v1/memories/events)
	ListMemoryEvents(c *gin.Context, params ListMemoryEventsParams)
	// List memory namespaces
	// (GET /v1/memories/namespaces)
	ListMemoryNamespaces(c *gin.Context, params ListMemoryNamespacesParams)
	// Search memory items
	// (POST /v1/memories/search)
	SearchMemories(c *gin.Context)
	// List pending ownership transfers
	// (GET /v1/ownership-transfers)
	ListPendingTransfers(c *gin.Context, params ListPendingTransfersParams)
	// Request ownership transfer
	// (POST /v1/ownership-transfers)
	CreateOwnershipTransfer(c *gin.Context)
	// Cancel or reject ownership transfer
	// (DELETE /v1/ownership-transfers/{transferId})
	DeleteTransfer(c *gin.Context, transferId openapi_types.UUID)
	// Get transfer details
	// (GET /v1/ownership-transfers/{transferId})
	GetTransfer(c *gin.Context, transferId openapi_types.UUID)
	// Accept ownership transfer
	// (POST /v1/ownership-transfers/{transferId}/accept)
	AcceptTransfer(c *gin.Context, transferId openapi_types.UUID)
}

ServerInterface represents all server handlers.

func NewStrictHandler

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

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandler       func(*gin.Context, error, int)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) AcceptTransfer

func (siw *ServerInterfaceWrapper) AcceptTransfer(c *gin.Context)

AcceptTransfer operation middleware

func (*ServerInterfaceWrapper) AdminSubscribeEvents

func (siw *ServerInterfaceWrapper) AdminSubscribeEvents(c *gin.Context)

AdminSubscribeEvents operation middleware

func (*ServerInterfaceWrapper) AppendConversationEntry

func (siw *ServerInterfaceWrapper) AppendConversationEntry(c *gin.Context)

AppendConversationEntry operation middleware

func (*ServerInterfaceWrapper) CreateConversation

func (siw *ServerInterfaceWrapper) CreateConversation(c *gin.Context)

CreateConversation operation middleware

func (*ServerInterfaceWrapper) CreateOwnershipTransfer

func (siw *ServerInterfaceWrapper) CreateOwnershipTransfer(c *gin.Context)

CreateOwnershipTransfer operation middleware

func (*ServerInterfaceWrapper) DeleteAttachment

func (siw *ServerInterfaceWrapper) DeleteAttachment(c *gin.Context)

DeleteAttachment operation middleware

func (*ServerInterfaceWrapper) DeleteConversationMembership

func (siw *ServerInterfaceWrapper) DeleteConversationMembership(c *gin.Context)

DeleteConversationMembership operation middleware

func (*ServerInterfaceWrapper) DeleteConversationResponse

func (siw *ServerInterfaceWrapper) DeleteConversationResponse(c *gin.Context)

DeleteConversationResponse operation middleware

func (*ServerInterfaceWrapper) DeleteTransfer

func (siw *ServerInterfaceWrapper) DeleteTransfer(c *gin.Context)

DeleteTransfer operation middleware

func (*ServerInterfaceWrapper) DownloadAttachmentByToken

func (siw *ServerInterfaceWrapper) DownloadAttachmentByToken(c *gin.Context)

DownloadAttachmentByToken operation middleware

func (*ServerInterfaceWrapper) GetAttachment

func (siw *ServerInterfaceWrapper) GetAttachment(c *gin.Context)

GetAttachment operation middleware

func (*ServerInterfaceWrapper) GetAttachmentDownloadUrl

func (siw *ServerInterfaceWrapper) GetAttachmentDownloadUrl(c *gin.Context)

GetAttachmentDownloadUrl operation middleware

func (*ServerInterfaceWrapper) GetCapabilities

func (siw *ServerInterfaceWrapper) GetCapabilities(c *gin.Context)

GetCapabilities operation middleware

func (*ServerInterfaceWrapper) GetConversation

func (siw *ServerInterfaceWrapper) GetConversation(c *gin.Context)

GetConversation operation middleware

func (*ServerInterfaceWrapper) GetMemory

func (siw *ServerInterfaceWrapper) GetMemory(c *gin.Context)

GetMemory operation middleware

func (*ServerInterfaceWrapper) GetTransfer

func (siw *ServerInterfaceWrapper) GetTransfer(c *gin.Context)

GetTransfer operation middleware

func (*ServerInterfaceWrapper) IndexConversations

func (siw *ServerInterfaceWrapper) IndexConversations(c *gin.Context)

IndexConversations operation middleware

func (*ServerInterfaceWrapper) ListConversationChildren

func (siw *ServerInterfaceWrapper) ListConversationChildren(c *gin.Context)

ListConversationChildren operation middleware

func (*ServerInterfaceWrapper) ListConversationEntries

func (siw *ServerInterfaceWrapper) ListConversationEntries(c *gin.Context)

ListConversationEntries operation middleware

func (*ServerInterfaceWrapper) ListConversationForks

func (siw *ServerInterfaceWrapper) ListConversationForks(c *gin.Context)

ListConversationForks operation middleware

func (*ServerInterfaceWrapper) ListConversationMemberships

func (siw *ServerInterfaceWrapper) ListConversationMemberships(c *gin.Context)

ListConversationMemberships operation middleware

func (*ServerInterfaceWrapper) ListConversations

func (siw *ServerInterfaceWrapper) ListConversations(c *gin.Context)

ListConversations operation middleware

func (*ServerInterfaceWrapper) ListMemoryEvents

func (siw *ServerInterfaceWrapper) ListMemoryEvents(c *gin.Context)

ListMemoryEvents operation middleware

func (*ServerInterfaceWrapper) ListMemoryNamespaces

func (siw *ServerInterfaceWrapper) ListMemoryNamespaces(c *gin.Context)

ListMemoryNamespaces operation middleware

func (*ServerInterfaceWrapper) ListPendingTransfers

func (siw *ServerInterfaceWrapper) ListPendingTransfers(c *gin.Context)

ListPendingTransfers operation middleware

func (*ServerInterfaceWrapper) ListUnindexedEntries

func (siw *ServerInterfaceWrapper) ListUnindexedEntries(c *gin.Context)

ListUnindexedEntries operation middleware

func (*ServerInterfaceWrapper) PutMemory

func (siw *ServerInterfaceWrapper) PutMemory(c *gin.Context)

PutMemory operation middleware

func (*ServerInterfaceWrapper) SearchConversations

func (siw *ServerInterfaceWrapper) SearchConversations(c *gin.Context)

SearchConversations operation middleware

func (*ServerInterfaceWrapper) SearchMemories

func (siw *ServerInterfaceWrapper) SearchMemories(c *gin.Context)

SearchMemories operation middleware

func (*ServerInterfaceWrapper) ShareConversation

func (siw *ServerInterfaceWrapper) ShareConversation(c *gin.Context)

ShareConversation operation middleware

func (*ServerInterfaceWrapper) SubscribeEvents

func (siw *ServerInterfaceWrapper) SubscribeEvents(c *gin.Context)

SubscribeEvents operation middleware

func (*ServerInterfaceWrapper) SyncConversationContext

func (siw *ServerInterfaceWrapper) SyncConversationContext(c *gin.Context)

SyncConversationContext operation middleware

func (*ServerInterfaceWrapper) UpdateConversation

func (siw *ServerInterfaceWrapper) UpdateConversation(c *gin.Context)

UpdateConversation operation middleware

func (*ServerInterfaceWrapper) UpdateConversationMembership

func (siw *ServerInterfaceWrapper) UpdateConversationMembership(c *gin.Context)

UpdateConversationMembership operation middleware

func (*ServerInterfaceWrapper) UpdateMemory

func (siw *ServerInterfaceWrapper) UpdateMemory(c *gin.Context)

UpdateMemory operation middleware

func (*ServerInterfaceWrapper) UploadAttachment

func (siw *ServerInterfaceWrapper) UploadAttachment(c *gin.Context)

UploadAttachment operation middleware

type ShareConversation201JSONResponse

type ShareConversation201JSONResponse ConversationMembership

func (ShareConversation201JSONResponse) VisitShareConversationResponse

func (response ShareConversation201JSONResponse) VisitShareConversationResponse(w http.ResponseWriter) error

type ShareConversation404JSONResponse

type ShareConversation404JSONResponse struct{ NotFoundJSONResponse }

func (ShareConversation404JSONResponse) VisitShareConversationResponse

func (response ShareConversation404JSONResponse) VisitShareConversationResponse(w http.ResponseWriter) error

type ShareConversationJSONRequestBody

type ShareConversationJSONRequestBody = ShareConversationRequest

ShareConversationJSONRequestBody defines body for ShareConversation for application/json ContentType.

type ShareConversationRequest

type ShareConversationRequest struct {
	// AccessLevel Access level of a user for a conversation.
	AccessLevel AccessLevel `json:"accessLevel"`
	CreatedAt   *time.Time  `json:"createdAt,omitempty"`
	UserId      string      `json:"userId"`
}

ShareConversationRequest defines model for ShareConversationRequest.

type ShareConversationRequestObject

type ShareConversationRequestObject struct {
	ConversationId openapi_types.UUID `json:"conversationId"`
	Body           *ShareConversationJSONRequestBody
}

type ShareConversationResponseObject

type ShareConversationResponseObject interface {
	VisitShareConversationResponse(w http.ResponseWriter) error
}

type ShareConversationdefaultJSONResponse

type ShareConversationdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (ShareConversationdefaultJSONResponse) VisitShareConversationResponse

func (response ShareConversationdefaultJSONResponse) VisitShareConversationResponse(w http.ResponseWriter) error

type StrictHandlerFunc

type StrictHandlerFunc = strictgin.StrictGinHandlerFunc

type StrictMiddlewareFunc

type StrictMiddlewareFunc = strictgin.StrictGinMiddlewareFunc

type StrictServerInterface

type StrictServerInterface interface {
	// Subscribe to all real-time events (admin SSE)
	// (GET /v1/admin/events)
	AdminSubscribeEvents(ctx context.Context, request AdminSubscribeEventsRequestObject) (AdminSubscribeEventsResponseObject, error)
	// Upload or create an attachment
	// (POST /v1/attachments)
	UploadAttachment(ctx context.Context, request UploadAttachmentRequestObject) (UploadAttachmentResponseObject, error)
	// Download an attachment via signed token
	// (GET /v1/attachments/download/{token}/{filename})
	DownloadAttachmentByToken(ctx context.Context, request DownloadAttachmentByTokenRequestObject) (DownloadAttachmentByTokenResponseObject, error)
	// Delete an unlinked attachment
	// (DELETE /v1/attachments/{id})
	DeleteAttachment(ctx context.Context, request DeleteAttachmentRequestObject) (DeleteAttachmentResponseObject, error)
	// Retrieve an attachment
	// (GET /v1/attachments/{id})
	GetAttachment(ctx context.Context, request GetAttachmentRequestObject) (GetAttachmentResponseObject, error)
	// Get a signed download URL for an attachment
	// (GET /v1/attachments/{id}/download-url)
	GetAttachmentDownloadUrl(ctx context.Context, request GetAttachmentDownloadUrlRequestObject) (GetAttachmentDownloadUrlResponseObject, error)
	// Get server capabilities for the authenticated caller
	// (GET /v1/capabilities)
	GetCapabilities(ctx context.Context, request GetCapabilitiesRequestObject) (GetCapabilitiesResponseObject, error)
	// List conversations visible to current user
	// (GET /v1/conversations)
	ListConversations(ctx context.Context, request ListConversationsRequestObject) (ListConversationsResponseObject, error)
	// Create a conversation
	// (POST /v1/conversations)
	CreateConversation(ctx context.Context, request CreateConversationRequestObject) (CreateConversationResponseObject, error)
	// Index conversation entries
	// (POST /v1/conversations/index)
	IndexConversations(ctx context.Context, request IndexConversationsRequestObject) (IndexConversationsResponseObject, error)
	// Semantic search across conversations
	// (POST /v1/conversations/search)
	SearchConversations(ctx context.Context, request SearchConversationsRequestObject) (SearchConversationsResponseObject, error)
	// List entries needing indexing
	// (GET /v1/conversations/unindexed)
	ListUnindexedEntries(ctx context.Context, request ListUnindexedEntriesRequestObject) (ListUnindexedEntriesResponseObject, error)
	// Get a conversation
	// (GET /v1/conversations/{conversationId})
	GetConversation(ctx context.Context, request GetConversationRequestObject) (GetConversationResponseObject, error)
	// Update a conversation
	// (PATCH /v1/conversations/{conversationId})
	UpdateConversation(ctx context.Context, request UpdateConversationRequestObject) (UpdateConversationResponseObject, error)
	// List direct child conversations
	// (GET /v1/conversations/{conversationId}/children)
	ListConversationChildren(ctx context.Context, request ListConversationChildrenRequestObject) (ListConversationChildrenResponseObject, error)
	// List conversation entries
	// (GET /v1/conversations/{conversationId}/entries)
	ListConversationEntries(ctx context.Context, request ListConversationEntriesRequestObject) (ListConversationEntriesResponseObject, error)
	// Append an entry
	// (POST /v1/conversations/{conversationId}/entries)
	AppendConversationEntry(ctx context.Context, request AppendConversationEntryRequestObject) (AppendConversationEntryResponseObject, error)
	// Synchronize the agent context epoch
	// (POST /v1/conversations/{conversationId}/entries/sync)
	SyncConversationContext(ctx context.Context, request SyncConversationContextRequestObject) (SyncConversationContextResponseObject, error)
	// List forks for a conversation
	// (GET /v1/conversations/{conversationId}/forks)
	ListConversationForks(ctx context.Context, request ListConversationForksRequestObject) (ListConversationForksResponseObject, error)
	// List conversation memberships
	// (GET /v1/conversations/{conversationId}/memberships)
	ListConversationMemberships(ctx context.Context, request ListConversationMembershipsRequestObject) (ListConversationMembershipsResponseObject, error)
	// Share conversation with another user
	// (POST /v1/conversations/{conversationId}/memberships)
	ShareConversation(ctx context.Context, request ShareConversationRequestObject) (ShareConversationResponseObject, error)
	// Remove a member from the conversation
	// (DELETE /v1/conversations/{conversationId}/memberships/{userId})
	DeleteConversationMembership(ctx context.Context, request DeleteConversationMembershipRequestObject) (DeleteConversationMembershipResponseObject, error)
	// Update a member's access level
	// (PATCH /v1/conversations/{conversationId}/memberships/{userId})
	UpdateConversationMembership(ctx context.Context, request UpdateConversationMembershipRequestObject) (UpdateConversationMembershipResponseObject, error)
	// Cancel an in-progress response
	// (DELETE /v1/conversations/{conversationId}/response)
	DeleteConversationResponse(ctx context.Context, request DeleteConversationResponseRequestObject) (DeleteConversationResponseResponseObject, error)
	// Subscribe to real-time events (SSE)
	// (GET /v1/events)
	SubscribeEvents(ctx context.Context, request SubscribeEventsRequestObject) (SubscribeEventsResponseObject, error)
	// Get a memory item
	// (GET /v1/memories)
	GetMemory(ctx context.Context, request GetMemoryRequestObject) (GetMemoryResponseObject, error)
	// Update a memory item
	// (PATCH /v1/memories)
	UpdateMemory(ctx context.Context, request UpdateMemoryRequestObject) (UpdateMemoryResponseObject, error)
	// Upsert a memory item
	// (PUT /v1/memories)
	PutMemory(ctx context.Context, request PutMemoryRequestObject) (PutMemoryResponseObject, error)
	// List memory lifecycle events
	// (GET /v1/memories/events)
	ListMemoryEvents(ctx context.Context, request ListMemoryEventsRequestObject) (ListMemoryEventsResponseObject, error)
	// List memory namespaces
	// (GET /v1/memories/namespaces)
	ListMemoryNamespaces(ctx context.Context, request ListMemoryNamespacesRequestObject) (ListMemoryNamespacesResponseObject, error)
	// Search memory items
	// (POST /v1/memories/search)
	SearchMemories(ctx context.Context, request SearchMemoriesRequestObject) (SearchMemoriesResponseObject, error)
	// List pending ownership transfers
	// (GET /v1/ownership-transfers)
	ListPendingTransfers(ctx context.Context, request ListPendingTransfersRequestObject) (ListPendingTransfersResponseObject, error)
	// Request ownership transfer
	// (POST /v1/ownership-transfers)
	CreateOwnershipTransfer(ctx context.Context, request CreateOwnershipTransferRequestObject) (CreateOwnershipTransferResponseObject, error)
	// Cancel or reject ownership transfer
	// (DELETE /v1/ownership-transfers/{transferId})
	DeleteTransfer(ctx context.Context, request DeleteTransferRequestObject) (DeleteTransferResponseObject, error)
	// Get transfer details
	// (GET /v1/ownership-transfers/{transferId})
	GetTransfer(ctx context.Context, request GetTransferRequestObject) (GetTransferResponseObject, error)
	// Accept ownership transfer
	// (POST /v1/ownership-transfers/{transferId}/accept)
	AcceptTransfer(ctx context.Context, request AcceptTransferRequestObject) (AcceptTransferResponseObject, error)
}

StrictServerInterface represents all server handlers.

type SubscribeEvents200TexteventStreamResponse

type SubscribeEvents200TexteventStreamResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (SubscribeEvents200TexteventStreamResponse) VisitSubscribeEventsResponse

func (response SubscribeEvents200TexteventStreamResponse) VisitSubscribeEventsResponse(w http.ResponseWriter) error

type SubscribeEvents401Response

type SubscribeEvents401Response struct {
}

func (SubscribeEvents401Response) VisitSubscribeEventsResponse

func (response SubscribeEvents401Response) VisitSubscribeEventsResponse(w http.ResponseWriter) error

type SubscribeEvents429Response

type SubscribeEvents429Response struct {
}

func (SubscribeEvents429Response) VisitSubscribeEventsResponse

func (response SubscribeEvents429Response) VisitSubscribeEventsResponse(w http.ResponseWriter) error

type SubscribeEventsParams

type SubscribeEventsParams struct {
	// Kinds Comma-separated event kinds to filter (conversation, entry, response, membership).
	Kinds *string `form:"kinds,omitempty" json:"kinds,omitempty"`

	// After Replay events after the provided durable cursor. Requires the outbox feature to be enabled.
	After *string `form:"after,omitempty" json:"after,omitempty"`

	// Detail Event payload detail level.
	Detail *SubscribeEventsParamsDetail `form:"detail,omitempty" json:"detail,omitempty"`
}

SubscribeEventsParams defines parameters for SubscribeEvents.

type SubscribeEventsParamsDetail

type SubscribeEventsParamsDetail string

SubscribeEventsParamsDetail defines parameters for SubscribeEvents.

const (
	SubscribeEventsParamsDetailFull    SubscribeEventsParamsDetail = "full"
	SubscribeEventsParamsDetailSummary SubscribeEventsParamsDetail = "summary"
)

Defines values for SubscribeEventsParamsDetail.

type SubscribeEventsRequestObject

type SubscribeEventsRequestObject struct {
	Params SubscribeEventsParams
}

type SubscribeEventsResponseObject

type SubscribeEventsResponseObject interface {
	VisitSubscribeEventsResponse(w http.ResponseWriter) error
}

type SyncConversationContext200JSONResponse

type SyncConversationContext200JSONResponse SyncEntryResponse

func (SyncConversationContext200JSONResponse) VisitSyncConversationContextResponse

func (response SyncConversationContext200JSONResponse) VisitSyncConversationContextResponse(w http.ResponseWriter) error

type SyncConversationContext404JSONResponse

type SyncConversationContext404JSONResponse struct{ NotFoundJSONResponse }

func (SyncConversationContext404JSONResponse) VisitSyncConversationContextResponse

func (response SyncConversationContext404JSONResponse) VisitSyncConversationContextResponse(w http.ResponseWriter) error

type SyncConversationContextJSONRequestBody

type SyncConversationContextJSONRequestBody = CreateEntryRequest

SyncConversationContextJSONRequestBody defines body for SyncConversationContext for application/json ContentType.

type SyncConversationContextRequestObject

type SyncConversationContextRequestObject struct {
	ConversationId openapi_types.UUID `json:"conversationId"`
	Body           *SyncConversationContextJSONRequestBody
}

type SyncConversationContextResponseObject

type SyncConversationContextResponseObject interface {
	VisitSyncConversationContextResponse(w http.ResponseWriter) error
}

type SyncConversationContextdefaultJSONResponse

type SyncConversationContextdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (SyncConversationContextdefaultJSONResponse) VisitSyncConversationContextResponse

func (response SyncConversationContextdefaultJSONResponse) VisitSyncConversationContextResponse(w http.ResponseWriter) error

type SyncEntryResponse

type SyncEntryResponse struct {
	Entry *Entry `json:"entry,omitempty"`

	// Epoch The epoch number that now reflects the stored context state.
	Epoch *int64 `json:"epoch"`

	// EpochIncremented True when the provided list diverged and a new epoch was started.
	EpochIncremented *bool `json:"epochIncremented,omitempty"`

	// NoOp True when the request resulted in no stored changes.
	NoOp *bool `json:"noOp,omitempty"`
}

SyncEntryResponse defines model for SyncEntryResponse.

type UnindexedEntriesResponse

type UnindexedEntriesResponse struct {
	// AfterCursor Cursor for fetching next page. Null when no more results.
	AfterCursor *string           `json:"afterCursor"`
	Data        *[]UnindexedEntry `json:"data,omitempty"`
}

UnindexedEntriesResponse defines model for UnindexedEntriesResponse.

type UnindexedEntry

type UnindexedEntry struct {
	ConversationId *openapi_types.UUID `json:"conversationId,omitempty"`
	Entry          *Entry              `json:"entry,omitempty"`
}

UnindexedEntry defines model for UnindexedEntry.

type UpdateConversation200JSONResponse

type UpdateConversation200JSONResponse Conversation

func (UpdateConversation200JSONResponse) VisitUpdateConversationResponse

func (response UpdateConversation200JSONResponse) VisitUpdateConversationResponse(w http.ResponseWriter) error

type UpdateConversation404JSONResponse

type UpdateConversation404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateConversation404JSONResponse) VisitUpdateConversationResponse

func (response UpdateConversation404JSONResponse) VisitUpdateConversationResponse(w http.ResponseWriter) error

type UpdateConversationJSONRequestBody

type UpdateConversationJSONRequestBody = UpdateConversationRequest

UpdateConversationJSONRequestBody defines body for UpdateConversation for application/json ContentType.

type UpdateConversationMembership200JSONResponse

type UpdateConversationMembership200JSONResponse ConversationMembership

func (UpdateConversationMembership200JSONResponse) VisitUpdateConversationMembershipResponse

func (response UpdateConversationMembership200JSONResponse) VisitUpdateConversationMembershipResponse(w http.ResponseWriter) error

type UpdateConversationMembership404JSONResponse

type UpdateConversationMembership404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateConversationMembership404JSONResponse) VisitUpdateConversationMembershipResponse

func (response UpdateConversationMembership404JSONResponse) VisitUpdateConversationMembershipResponse(w http.ResponseWriter) error

type UpdateConversationMembershipJSONBody

type UpdateConversationMembershipJSONBody struct {
	// AccessLevel Access level of a user for a conversation.
	AccessLevel *AccessLevel `json:"accessLevel,omitempty"`
}

UpdateConversationMembershipJSONBody defines parameters for UpdateConversationMembership.

type UpdateConversationMembershipJSONRequestBody

type UpdateConversationMembershipJSONRequestBody UpdateConversationMembershipJSONBody

UpdateConversationMembershipJSONRequestBody defines body for UpdateConversationMembership for application/json ContentType.

type UpdateConversationMembershipRequestObject

type UpdateConversationMembershipRequestObject struct {
	ConversationId openapi_types.UUID `json:"conversationId"`
	UserId         string             `json:"userId"`
	Body           *UpdateConversationMembershipJSONRequestBody
}

type UpdateConversationMembershipResponseObject

type UpdateConversationMembershipResponseObject interface {
	VisitUpdateConversationMembershipResponse(w http.ResponseWriter) error
}

type UpdateConversationMembershipdefaultJSONResponse

type UpdateConversationMembershipdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (UpdateConversationMembershipdefaultJSONResponse) VisitUpdateConversationMembershipResponse

func (response UpdateConversationMembershipdefaultJSONResponse) VisitUpdateConversationMembershipResponse(w http.ResponseWriter) error

type UpdateConversationRequest

type UpdateConversationRequest struct {
	// Archived Set to `true` to archive the conversation and its fork tree.
	Archived *bool   `json:"archived,omitempty"`
	Title    *string `json:"title"`
}

UpdateConversationRequest defines model for UpdateConversationRequest.

type UpdateConversationRequestObject

type UpdateConversationRequestObject struct {
	ConversationId openapi_types.UUID `json:"conversationId"`
	Body           *UpdateConversationJSONRequestBody
}

type UpdateConversationResponseObject

type UpdateConversationResponseObject interface {
	VisitUpdateConversationResponse(w http.ResponseWriter) error
}

type UpdateConversationdefaultJSONResponse

type UpdateConversationdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (UpdateConversationdefaultJSONResponse) VisitUpdateConversationResponse

func (response UpdateConversationdefaultJSONResponse) VisitUpdateConversationResponse(w http.ResponseWriter) error

type UpdateMemory204Response

type UpdateMemory204Response struct {
}

func (UpdateMemory204Response) VisitUpdateMemoryResponse

func (response UpdateMemory204Response) VisitUpdateMemoryResponse(w http.ResponseWriter) error

type UpdateMemoryJSONRequestBody

type UpdateMemoryJSONRequestBody = UpdateMemoryRequest

UpdateMemoryJSONRequestBody defines body for UpdateMemory for application/json ContentType.

type UpdateMemoryParams

type UpdateMemoryParams struct {
	// Ns Namespace segments. Repeat once per segment.
	Ns  []string `form:"ns" json:"ns"`
	Key string   `form:"key" json:"key"`
}

UpdateMemoryParams defines parameters for UpdateMemory.

type UpdateMemoryRequest

type UpdateMemoryRequest struct {
	// Archived Set to `true` to archive the active memory item.
	Archived *bool `json:"archived,omitempty"`
}

UpdateMemoryRequest defines model for UpdateMemoryRequest.

type UpdateMemoryRequestObject

type UpdateMemoryRequestObject struct {
	Params UpdateMemoryParams
	Body   *UpdateMemoryJSONRequestBody
}

type UpdateMemoryResponseObject

type UpdateMemoryResponseObject interface {
	VisitUpdateMemoryResponse(w http.ResponseWriter) error
}

type UpdateMemorydefaultJSONResponse

type UpdateMemorydefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (UpdateMemorydefaultJSONResponse) VisitUpdateMemoryResponse

func (response UpdateMemorydefaultJSONResponse) VisitUpdateMemoryResponse(w http.ResponseWriter) error

type UploadAttachment201JSONResponse

type UploadAttachment201JSONResponse AttachmentUploadResponse

func (UploadAttachment201JSONResponse) VisitUploadAttachmentResponse

func (response UploadAttachment201JSONResponse) VisitUploadAttachmentResponse(w http.ResponseWriter) error

type UploadAttachment400JSONResponse

type UploadAttachment400JSONResponse struct{ ErrorJSONResponse }

func (UploadAttachment400JSONResponse) VisitUploadAttachmentResponse

func (response UploadAttachment400JSONResponse) VisitUploadAttachmentResponse(w http.ResponseWriter) error

type UploadAttachment413JSONResponse

type UploadAttachment413JSONResponse ErrorResponse

func (UploadAttachment413JSONResponse) VisitUploadAttachmentResponse

func (response UploadAttachment413JSONResponse) VisitUploadAttachmentResponse(w http.ResponseWriter) error

type UploadAttachmentJSONRequestBody

type UploadAttachmentJSONRequestBody = CreateFromUrlRequest

UploadAttachmentJSONRequestBody defines body for UploadAttachment for application/json ContentType.

type UploadAttachmentMultipartBody

type UploadAttachmentMultipartBody struct {
	// File The file to upload.
	File openapi_types.File `json:"file"`
}

UploadAttachmentMultipartBody defines parameters for UploadAttachment.

type UploadAttachmentMultipartRequestBody

type UploadAttachmentMultipartRequestBody UploadAttachmentMultipartBody

UploadAttachmentMultipartRequestBody defines body for UploadAttachment for multipart/form-data ContentType.

type UploadAttachmentParams

type UploadAttachmentParams struct {
	// ExpiresIn ISO 8601 duration for how long the unlinked attachment should persist.
	// Defaults to 1 hour. Maximum 24 hours. Only used for multipart uploads.
	ExpiresIn *string `form:"expiresIn,omitempty" json:"expiresIn,omitempty"`
}

UploadAttachmentParams defines parameters for UploadAttachment.

type UploadAttachmentRequestObject

type UploadAttachmentRequestObject struct {
	Params        UploadAttachmentParams
	JSONBody      *UploadAttachmentJSONRequestBody
	MultipartBody *multipart.Reader
}

type UploadAttachmentResponseObject

type UploadAttachmentResponseObject interface {
	VisitUploadAttachmentResponse(w http.ResponseWriter) error
}

type UploadAttachmentdefaultJSONResponse

type UploadAttachmentdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (UploadAttachmentdefaultJSONResponse) VisitUploadAttachmentResponse

func (response UploadAttachmentdefaultJSONResponse) VisitUploadAttachmentResponse(w http.ResponseWriter) error

Jump to

Keyboard shortcuts

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