Documentation
¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func GetSpec() (swagger *openapi3.T, err error)
- func GetSpecJSON() ([]byte, error)
- func GetSwagger() (*openapi3.T, error)deprecated
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func RegisterHandlers(router gin.IRouter, si ServerInterface)
- func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)
- type AcceptTransfer204Response
- type AcceptTransfer403JSONResponse
- type AcceptTransfer404JSONResponse
- type AcceptTransferRequestObject
- type AcceptTransferResponseObject
- type AcceptTransferdefaultJSONResponse
- type AccessLevel
- type AdminSubscribeEvents200TexteventStreamResponse
- type AdminSubscribeEvents400Response
- type AdminSubscribeEvents401Response
- type AdminSubscribeEvents403Response
- type AdminSubscribeEventsParams
- type AdminSubscribeEventsParamsDetail
- type AdminSubscribeEventsParamsInitialState
- type AdminSubscribeEventsRequestObject
- type AdminSubscribeEventsResponseObject
- type AppendConversationEntry201JSONResponse
- type AppendConversationEntry404JSONResponse
- type AppendConversationEntry409JSONResponse
- type AppendConversationEntryJSONRequestBody
- type AppendConversationEntryRequestObject
- type AppendConversationEntryResponseObject
- type AppendConversationEntrydefaultJSONResponse
- type Attachment
- type AttachmentDownloadUrlResponse
- type AttachmentUploadResponse
- type AttachmentUploadResponseStatus
- type BadRequest
- type BadRequestJSONResponse
- type CapabilitiesAuth
- type CapabilitiesFeatures
- type CapabilitiesResponse
- type CapabilitiesSecurity
- type CapabilitiesTech
- type Channel
- type ChildConversationSummary
- type Conversation
- type ConversationForkNavigation
- type ConversationForkOption
- type ConversationForkPoint
- type ConversationForkSummary
- type ConversationInput
- type ConversationMembership
- type ConversationSummary
- type CreateConversation201JSONResponse
- type CreateConversationJSONRequestBody
- type CreateConversationRequest
- type CreateConversationRequestObject
- type CreateConversationResponseObject
- type CreateConversationdefaultJSONResponse
- type CreateEntryRequest
- type CreateFromUrlRequest
- type CreateOwnershipTransfer201JSONResponse
- type CreateOwnershipTransfer400JSONResponse
- type CreateOwnershipTransfer403JSONResponse
- type CreateOwnershipTransfer404JSONResponse
- type CreateOwnershipTransfer409JSONResponse
- type CreateOwnershipTransferJSONRequestBody
- type CreateOwnershipTransferRequest
- type CreateOwnershipTransferRequestObject
- type CreateOwnershipTransferResponseObject
- type CreateOwnershipTransferdefaultJSONResponse
- type DeleteAttachment204Response
- type DeleteAttachment403JSONResponse
- type DeleteAttachment404JSONResponse
- type DeleteAttachment409JSONResponse
- type DeleteAttachmentRequestObject
- type DeleteAttachmentResponseObject
- type DeleteAttachmentdefaultJSONResponse
- type DeleteConversationMembership204Response
- type DeleteConversationMembership404JSONResponse
- type DeleteConversationMembershipRequestObject
- type DeleteConversationMembershipResponseObject
- type DeleteConversationMembershipdefaultJSONResponse
- type DeleteConversationResponse200Response
- type DeleteConversationResponse404JSONResponse
- type DeleteConversationResponse409JSONResponse
- type DeleteConversationResponseRequestObject
- type DeleteConversationResponseResponseObject
- type DeleteConversationResponsedefaultJSONResponse
- type DeleteTransfer204Response
- type DeleteTransfer403JSONResponse
- type DeleteTransfer404JSONResponse
- type DeleteTransferRequestObject
- type DeleteTransferResponseObject
- type DeleteTransferdefaultJSONResponse
- type DownloadAttachmentByToken200ApplicationoctetStreamResponse
- type DownloadAttachmentByToken200ResponseHeaders
- type DownloadAttachmentByToken403Response
- type DownloadAttachmentByToken404JSONResponse
- type DownloadAttachmentByTokenParams
- type DownloadAttachmentByTokenParamsDisposition
- type DownloadAttachmentByTokenRequestObject
- type DownloadAttachmentByTokenResponseObject
- type DownloadAttachmentByTokendefaultJSONResponse
- type Entry
- type Error
- type ErrorJSONResponse
- type ErrorResponse
- type GetAttachment200ApplicationoctetStreamResponse
- type GetAttachment200ResponseHeaders
- type GetAttachment302Response
- type GetAttachment302ResponseHeaders
- type GetAttachment403JSONResponse
- type GetAttachment404JSONResponse
- type GetAttachmentDownloadUrl200JSONResponse
- type GetAttachmentDownloadUrl403JSONResponse
- type GetAttachmentDownloadUrl404JSONResponse
- type GetAttachmentDownloadUrlParams
- type GetAttachmentDownloadUrlParamsDisposition
- type GetAttachmentDownloadUrlRequestObject
- type GetAttachmentDownloadUrlResponseObject
- type GetAttachmentDownloadUrldefaultJSONResponse
- type GetAttachmentParams
- type GetAttachmentParamsDisposition
- type GetAttachmentRequestObject
- type GetAttachmentResponseObject
- type GetAttachmentdefaultJSONResponse
- type GetCapabilities200JSONResponse
- type GetCapabilities401Response
- type GetCapabilities403Response
- type GetCapabilitiesRequestObject
- type GetCapabilitiesResponseObject
- type GetCapabilitiesdefaultJSONResponse
- type GetConversation200JSONResponse
- type GetConversation404JSONResponse
- type GetConversationRequestObject
- type GetConversationResponseObject
- type GetConversationdefaultJSONResponse
- type GetMemory200JSONResponse
- type GetMemory404JSONResponse
- type GetMemoryParams
- type GetMemoryParamsArchived
- type GetMemoryRequestObject
- type GetMemoryResponseObject
- type GetMemorydefaultJSONResponse
- type GetTransfer200JSONResponse
- type GetTransfer404JSONResponse
- type GetTransferRequestObject
- type GetTransferResponseObject
- type GetTransferdefaultJSONResponse
- type GinServerOptions
- type IndexConversations200JSONResponse
- type IndexConversations403JSONResponse
- type IndexConversations404JSONResponse
- type IndexConversationsJSONBody
- type IndexConversationsJSONRequestBody
- type IndexConversationsRequestObject
- type IndexConversationsResponse
- type IndexConversationsResponseObject
- type IndexConversationsdefaultJSONResponse
- type IndexEntryRequest
- type ListConversationChildren200JSONResponse
- type ListConversationChildrenParams
- type ListConversationChildrenRequestObject
- type ListConversationChildrenResponseObject
- type ListConversationChildrendefaultJSONResponse
- type ListConversationEntries200JSONResponse
- type ListConversationEntries400JSONResponse
- type ListConversationEntries404JSONResponse
- type ListConversationEntriesParams
- type ListConversationEntriesParamsForks
- type ListConversationEntriesRequestObject
- type ListConversationEntriesResponseObject
- type ListConversationEntriesdefaultJSONResponse
- type ListConversationForks200JSONResponse
- type ListConversationForks404JSONResponse
- type ListConversationForksRequestObject
- type ListConversationForksResponseObject
- type ListConversationForksdefaultJSONResponse
- type ListConversationMemberships200JSONResponse
- type ListConversationMemberships404JSONResponse
- type ListConversationMembershipsParams
- type ListConversationMembershipsRequestObject
- type ListConversationMembershipsResponseObject
- type ListConversationMembershipsdefaultJSONResponse
- type ListConversations200JSONResponse
- type ListConversationsParams
- type ListConversationsParamsAncestry
- type ListConversationsParamsArchived
- type ListConversationsParamsDirection
- type ListConversationsParamsMode
- type ListConversationsParamsSort
- type ListConversationsRequestObject
- type ListConversationsResponseObject
- type ListConversationsdefaultJSONResponse
- type ListMemoryEvents200JSONResponse
- type ListMemoryEventsParams
- type ListMemoryEventsParamsKinds
- type ListMemoryEventsRequestObject
- type ListMemoryEventsResponse
- type ListMemoryEventsResponseObject
- type ListMemoryEventsdefaultJSONResponse
- type ListMemoryNamespaces200JSONResponse
- type ListMemoryNamespacesParams
- type ListMemoryNamespacesParamsArchived
- type ListMemoryNamespacesRequestObject
- type ListMemoryNamespacesResponse
- type ListMemoryNamespacesResponseObject
- type ListMemoryNamespacesdefaultJSONResponse
- type ListPendingTransfers200JSONResponse
- type ListPendingTransfersParams
- type ListPendingTransfersParamsRole
- type ListPendingTransfersRequestObject
- type ListPendingTransfersResponseObject
- type ListPendingTransfersdefaultJSONResponse
- type ListUnindexedEntries200JSONResponse
- type ListUnindexedEntries403JSONResponse
- type ListUnindexedEntriesParams
- type ListUnindexedEntriesRequestObject
- type ListUnindexedEntriesResponseObject
- type ListUnindexedEntriesdefaultJSONResponse
- type MemoryAttributeSort
- type MemoryAttributeSortDirection
- type MemoryEventItem
- type MemoryEventItemKind
- type MemoryItem
- type MemorySearchQuery
- type MemoryUsage
- type MemoryWriteResult
- type MiddlewareFunc
- type NotFound
- type NotFoundJSONResponse
- type OwnershipTransfer
- type PutMemory200JSONResponse
- type PutMemoryJSONRequestBody
- type PutMemoryRequest
- type PutMemoryRequestObject
- type PutMemoryResponseObject
- type PutMemorydefaultJSONResponse
- type SearchConversations200JSONResponse
- type SearchConversations501JSONResponse
- type SearchConversationsJSONRequestBody
- type SearchConversationsRequest
- type SearchConversationsRequestObject
- type SearchConversationsRequest_SearchType
- func (t SearchConversationsRequest_SearchType) AsSearchConversationsSearchTypeList() (SearchConversationsSearchTypeList, error)
- func (t SearchConversationsRequest_SearchType) AsSearchConversationsSearchTypeSingle() (SearchConversationsSearchTypeSingle, error)
- func (t *SearchConversationsRequest_SearchType) FromSearchConversationsSearchTypeList(v SearchConversationsSearchTypeList) error
- func (t *SearchConversationsRequest_SearchType) FromSearchConversationsSearchTypeSingle(v SearchConversationsSearchTypeSingle) error
- func (t SearchConversationsRequest_SearchType) MarshalJSON() ([]byte, error)
- func (t *SearchConversationsRequest_SearchType) MergeSearchConversationsSearchTypeList(v SearchConversationsSearchTypeList) error
- func (t *SearchConversationsRequest_SearchType) MergeSearchConversationsSearchTypeSingle(v SearchConversationsSearchTypeSingle) error
- func (t *SearchConversationsRequest_SearchType) UnmarshalJSON(b []byte) error
- type SearchConversationsResponseObject
- type SearchConversationsSearchTypeList
- type SearchConversationsSearchTypeSingle
- type SearchConversationsdefaultJSONResponse
- type SearchMemories200JSONResponse
- type SearchMemoriesJSONRequestBody
- type SearchMemoriesRequest
- type SearchMemoriesRequestArchived
- type SearchMemoriesRequestObject
- type SearchMemoriesResponse
- type SearchMemoriesResponseObject
- type SearchMemoriesdefaultJSONResponse
- type SearchResult
- type SearchResultKind
- type SearchTypeUnavailable
- type SearchTypeUnavailableError
- type SearchTypeUnavailableJSONResponse
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AcceptTransfer(c *gin.Context)
- func (siw *ServerInterfaceWrapper) AdminSubscribeEvents(c *gin.Context)
- func (siw *ServerInterfaceWrapper) AppendConversationEntry(c *gin.Context)
- func (siw *ServerInterfaceWrapper) CreateConversation(c *gin.Context)
- func (siw *ServerInterfaceWrapper) CreateOwnershipTransfer(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DeleteAttachment(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DeleteConversationMembership(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DeleteConversationResponse(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DeleteTransfer(c *gin.Context)
- func (siw *ServerInterfaceWrapper) DownloadAttachmentByToken(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetAttachment(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetAttachmentDownloadUrl(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetCapabilities(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetConversation(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetMemory(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetTransfer(c *gin.Context)
- func (siw *ServerInterfaceWrapper) IndexConversations(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListConversationChildren(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListConversationEntries(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListConversationForks(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListConversationMemberships(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListConversations(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListMemoryEvents(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListMemoryNamespaces(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListPendingTransfers(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListUnindexedEntries(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PutMemory(c *gin.Context)
- func (siw *ServerInterfaceWrapper) SearchConversations(c *gin.Context)
- func (siw *ServerInterfaceWrapper) SearchMemories(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ShareConversation(c *gin.Context)
- func (siw *ServerInterfaceWrapper) SubscribeEvents(c *gin.Context)
- func (siw *ServerInterfaceWrapper) SyncConversationContext(c *gin.Context)
- func (siw *ServerInterfaceWrapper) UpdateConversation(c *gin.Context)
- func (siw *ServerInterfaceWrapper) UpdateConversationMembership(c *gin.Context)
- func (siw *ServerInterfaceWrapper) UpdateMemory(c *gin.Context)
- func (siw *ServerInterfaceWrapper) UploadAttachment(c *gin.Context)
- type ShareConversation201JSONResponse
- type ShareConversation404JSONResponse
- type ShareConversationJSONRequestBody
- type ShareConversationRequest
- type ShareConversationRequestObject
- type ShareConversationResponseObject
- type ShareConversationdefaultJSONResponse
- type StrictGinServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type SubscribeEvents200TexteventStreamResponse
- type SubscribeEvents401Response
- type SubscribeEvents429Response
- type SubscribeEventsParams
- type SubscribeEventsParamsDetail
- type SubscribeEventsRequestObject
- type SubscribeEventsResponseObject
- type SyncConversationContext200JSONResponse
- type SyncConversationContext404JSONResponse
- type SyncConversationContextJSONRequestBody
- type SyncConversationContextRequestObject
- type SyncConversationContextResponseObject
- type SyncConversationContextdefaultJSONResponse
- type SyncEntryResponse
- type UnindexedEntriesResponse
- type UnindexedEntry
- type UpdateConversation200JSONResponse
- type UpdateConversation404JSONResponse
- type UpdateConversationJSONRequestBody
- type UpdateConversationMembership200JSONResponse
- type UpdateConversationMembership404JSONResponse
- type UpdateConversationMembershipJSONBody
- type UpdateConversationMembershipJSONRequestBody
- type UpdateConversationMembershipRequestObject
- type UpdateConversationMembershipResponseObject
- type UpdateConversationMembershipdefaultJSONResponse
- type UpdateConversationRequest
- type UpdateConversationRequestObject
- type UpdateConversationResponseObject
- type UpdateConversationdefaultJSONResponse
- type UpdateMemory204Response
- type UpdateMemoryJSONRequestBody
- type UpdateMemoryParams
- type UpdateMemoryRequest
- type UpdateMemoryRequestObject
- type UpdateMemoryResponseObject
- type UpdateMemorydefaultJSONResponse
- type UploadAttachment201JSONResponse
- type UploadAttachment400JSONResponse
- type UploadAttachment413JSONResponse
- type UploadAttachmentJSONRequestBody
- type UploadAttachmentMultipartBody
- type UploadAttachmentMultipartRequestBody
- type UploadAttachmentParams
- type UploadAttachmentRequestObject
- type UploadAttachmentResponseObject
- type UploadAttachmentdefaultJSONResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSpec ¶
GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.
func GetSpecJSON ¶
GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.
func GetSwagger
deprecated
func PathToRawSpec ¶
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.
func (AccessLevel) Valid ¶
func (e AccessLevel) Valid() bool
Valid indicates whether the value is a known member of the AccessLevel enum.
type AdminSubscribeEvents200TexteventStreamResponse ¶
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 With `full`, data is the corresponding admin OpenAPI resource, including admin-only routing fields.
Detail *AdminSubscribeEventsParamsDetail `form:"detail,omitempty" json:"detail,omitempty"`
// InitialState With `current`, emits a snapshot phase containing the current full resources, then replays changes committed after the snapshot boundary and continues live. Requires `detail=full`, an enabled outbox, and no `after` cursor.
InitialState *AdminSubscribeEventsParamsInitialState `form:"initial_state,omitempty" json:"initial_state,omitempty"`
// EntryChannels Comma-separated entry channels to deliver for entry events. Defaults to history.
EntryChannels *string `form:"entry_channels,omitempty" json:"entry_channels,omitempty"`
// EntryContentTypes Comma-separated entry content types to deliver for entry events. Omit to allow any.
EntryContentTypes *string `form:"entry_content_types,omitempty" json:"entry_content_types,omitempty"`
// EntryRoles Comma-separated entry roles to deliver for entry events. Omit to allow any.
EntryRoles *string `form:"entry_roles,omitempty" json:"entry_roles,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.
func (AdminSubscribeEventsParamsDetail) Valid ¶
func (e AdminSubscribeEventsParamsDetail) Valid() bool
Valid indicates whether the value is a known member of the AdminSubscribeEventsParamsDetail enum.
type AdminSubscribeEventsParamsInitialState ¶ added in v0.3.0
type AdminSubscribeEventsParamsInitialState string
AdminSubscribeEventsParamsInitialState defines parameters for AdminSubscribeEvents.
const ( AdminSubscribeEventsParamsInitialStateCurrent AdminSubscribeEventsParamsInitialState = "current" AdminSubscribeEventsParamsInitialStateNone AdminSubscribeEventsParamsInitialState = "none" )
Defines values for AdminSubscribeEventsParamsInitialState.
func (AdminSubscribeEventsParamsInitialState) Valid ¶ added in v0.3.0
func (e AdminSubscribeEventsParamsInitialState) Valid() bool
Valid indicates whether the value is a known member of the AdminSubscribeEventsParamsInitialState enum.
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 AppendConversationEntry409JSONResponse ¶ added in v0.0.4
type AppendConversationEntry409JSONResponse struct{ ErrorJSONResponse }
func (AppendConversationEntry409JSONResponse) VisitAppendConversationEntryResponse ¶ added in v0.0.4
func (response AppendConversationEntry409JSONResponse) 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 string `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 preserved as the stable server-stored
// attachment reference.
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 preserves `attachmentId` and links the attachment to the entry.
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,omitempty"`
// 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.
func (AttachmentUploadResponseStatus) Valid ¶
func (e AttachmentUploadResponseStatus) Valid() bool
Valid indicates whether the value is a known member of the AttachmentUploadResponseStatus enum.
type BadRequest ¶ added in v0.0.4
type BadRequest = ErrorResponse
BadRequest defines model for BadRequest.
type BadRequestJSONResponse ¶ added in v0.0.4
type BadRequestJSONResponse ErrorResponse
type CapabilitiesAuth ¶
type CapabilitiesAuth struct {
AdminJustificationRequired bool `json:"admin_justification_required"`
ApiKeyEnabled bool `json:"api_key_enabled"`
OidcEnabled bool `json:"oidc_enabled"`
UserIdAssertionEnabled bool `json:"user_id_assertion_enabled"`
}
CapabilitiesAuth defines model for CapabilitiesAuth.
type CapabilitiesFeatures ¶
type CapabilitiesFeatures struct {
// ConversationMetadataFilterVersion Version of the repeatable conversation metadata filter contract.
ConversationMetadataFilterVersion *int `json:"conversation_metadata_filter_version,omitempty"`
CorsEnabled bool `json:"cors_enabled"`
FulltextSearchEnabled bool `json:"fulltext_search_enabled"`
ManagementListenerEnabled bool `json:"management_listener_enabled"`
// MaxConversationMetadataFilters Maximum predicates accepted by one conversation list request.
MaxConversationMetadataFilters *int `json:"max_conversation_metadata_filters,omitempty"`
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.
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 *string `json:"id,omitempty"`
LastMessagePreview *string `json:"lastMessagePreview,omitempty"`
OwnerUserId *string `json:"ownerUserId,omitempty"`
// StartedByConversationId Parent conversation that started this logical child conversation tree.
StartedByConversationId *string `json:"startedByConversationId,omitempty"`
// StartedByEntryId Parent entry that started this logical child conversation tree.
StartedByEntryId *openapi_types.UUID `json:"startedByEntryId,omitempty"`
Title *string `json:"title,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
ChildConversationSummary defines model for ChildConversationSummary.
type Conversation ¶
type Conversation struct {
AccessLevel *AccessLevel `json:"accessLevel,omitempty"`
// AgentId Optional logical agent associated with this conversation.
AgentId *string `json:"agentId,omitempty"`
// 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 *string `json:"forkedAtConversationId,omitempty"`
// ForkedAtEntryId First parent entry excluded by this fork. Valid fork anchors are history entries and journal entries visible to the same authenticated client; context entries cannot be fork anchors. Null for root conversations and blank-slate forks that inherit no parent entries.
ForkedAtEntryId *openapi_types.UUID `json:"forkedAtEntryId,omitempty"`
// HasResponseInProgress True while the service is recording a resumable response for this conversation.
HasResponseInProgress *bool `json:"hasResponseInProgress,omitempty"`
// Id Unique identifier for the conversation.
Id *string `json:"id,omitempty"`
LastMessagePreview *string `json:"lastMessagePreview,omitempty"`
// Metadata Arbitrary key-value metadata stored on the conversation.
Metadata *map[string]interface{} `json:"metadata,omitempty"`
OwnerUserId *string `json:"ownerUserId,omitempty"`
// StartedByConversationId Parent conversation that started this logical conversation tree. Fork branches inherit this value.
StartedByConversationId *string `json:"startedByConversationId,omitempty"`
// StartedByEntryId Parent entry that started this logical conversation tree. Fork branches inherit this value.
StartedByEntryId *openapi_types.UUID `json:"startedByEntryId,omitempty"`
Title *string `json:"title,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
Conversation defines model for Conversation.
type ConversationForkNavigation ¶ added in v0.0.4
type ConversationForkNavigation struct {
}
ConversationForkNavigation defines model for ConversationForkNavigation.
type ConversationForkOption ¶ added in v0.0.4
type ConversationForkOption struct {
ConversationId string `json:"conversationId"`
CreatedAt time.Time `json:"createdAt"`
// EntryId Equivalent display entry for this continuation; null for an empty fork.
EntryId *openapi_types.UUID `json:"entryId,omitempty"`
Preview *string `json:"preview,omitempty"`
Title string `json:"title"`
}
ConversationForkOption defines model for ConversationForkOption.
type ConversationForkPoint ¶ added in v0.0.4
type ConversationForkPoint struct {
// EntryId Visible entry in the requested conversation where the fork selector is rendered.
EntryId openapi_types.UUID `json:"entryId"`
Options []ConversationForkOption `json:"options"`
}
ConversationForkPoint defines model for ConversationForkPoint.
type ConversationForkSummary ¶
type ConversationForkSummary struct {
// ConversationId Unique identifier for the forked conversation.
ConversationId *string `json:"conversationId,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
// ForkedAtConversationId Conversation ID where the fork occurred.
ForkedAtConversationId *string `json:"forkedAtConversationId,omitempty"`
// ForkedAtEntryId First parent entry excluded by this fork. Valid fork anchors are history entries and journal entries visible to the same authenticated client; context entries cannot be fork anchors. Null for blank-slate forks that inherit no parent entries.
ForkedAtEntryId *openapi_types.UUID `json:"forkedAtEntryId,omitempty"`
Title *string `json:"title,omitempty"`
}
ConversationForkSummary Summary of a forked conversation originating at a given entry.
type ConversationInput ¶ added in v0.3.0
type ConversationInput struct {
// AgentId Optional logical agent associated with this conversation.
AgentId *string `json:"agentId,omitempty"`
// Metadata Arbitrary key-value metadata stored on the conversation.
Metadata *map[string]interface{} `json:"metadata,omitempty"`
Title *string `json:"title,omitempty"`
}
ConversationInput Fields supplied by an agent application when creating a conversation.
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 *string `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 *AccessLevel `json:"accessLevel,omitempty"`
// AgentId Optional logical agent associated with this conversation.
AgentId *string `json:"agentId,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 *string `json:"id,omitempty"`
LastMessagePreview *string `json:"lastMessagePreview,omitempty"`
// Metadata Arbitrary key-value metadata stored on the conversation.
Metadata *map[string]interface{} `json:"metadata,omitempty"`
OwnerUserId *string `json:"ownerUserId,omitempty"`
// StartedByConversationId Parent conversation that started this logical conversation tree. Fork branches inherit this value.
StartedByConversationId *string `json:"startedByConversationId,omitempty"`
// StartedByEntryId Parent entry that started this logical conversation tree. Fork branches inherit this value.
StartedByEntryId *openapi_types.UUID `json:"startedByEntryId,omitempty"`
Title *string `json:"title,omitempty"`
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 associated with this conversation.
AgentId *string `json:"agentId,omitempty"`
// Id Optional client-supplied conversation ID. 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 *string `json:"id,omitempty"`
// Metadata Arbitrary key-value metadata stored on the conversation.
Metadata *map[string]interface{} `json:"metadata,omitempty"`
Title *string `json:"title,omitempty"`
}
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,omitempty"`
// 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"`
// ConversationPatch Optional inline conversation patch applied with the entry. PostgreSQL and SQLite commit both changes atomically in one transaction. MongoDB does the same when the outbox is enabled. Otherwise, MongoDB applies the entry and patch as separate operations. Supports `title`, `metadata` merge-patch (keys present are set, keys absent are left unchanged, keys explicitly set to `null` are removed), and `archived`. Setting `archived: false` allows the append on an archived conversation and unarchives it as part of the append; setting `archived: true` archives it after. Plain appends without this field are blocked on archived conversations — use `archived: false` here (or `PATCH /v1/conversations/{id}`) to unarchive first. Requires writer or higher access on the conversation (owner access for archive/unarchive). For batch requests (`entries[]`), this field is at the top level and applies once to the conversation, not per-entry.
ConversationPatch *UpdateConversationRequest `json:"conversationPatch,omitempty"`
// 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 *string `json:"forkedAtConversationId,omitempty"`
// ForkedAtEntryId Entry ID marking the fork point. Entries before this point are inherited; entries at and after this point are excluded. Valid fork anchors are history entries and journal entries visible to the same authenticated client; context entries cannot be fork anchors. 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,omitempty"`
// Seq Optional client-assigned sequence number. Must be unique within the
// conversation. An exact retry returns the stored entry, including after
// later sequenced entries have been appended. In a batch, the first
// sequenced entry anchors retries of the entire original batch. Matching
// partial batches can resume on MongoDB. A conflicting duplicate returns
// 409 Conflict. Returns 400 Bad Request if the value is
// negative or exceeds 4294967295.
Seq *int `json:"seq,omitempty"`
// StartedByConversationId If the target conversation does not exist yet, auto-create it as a child conversation started from this parent conversation.
StartedByConversationId *string `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,omitempty"`
}
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"`
// Details Structured non-sensitive error details.
Details *map[string]interface{} `json:"details,omitempty"`
Error string `json:"error"`
// RequestId Request correlation identifier, also returned in the X-Request-ID header.
RequestId string `json:"requestId"`
}
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 string `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 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 string `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 DownloadAttachmentByTokenParams ¶ added in v0.0.3
type DownloadAttachmentByTokenParams struct {
// Disposition Controls the Content-Disposition header. Use `inline` to display the attachment
// in the browser (e.g., images, PDFs), or `attachment` to force download.
// If not specified, the Content-Disposition header is not set, allowing the browser
// to use its default behavior based on content type.
Disposition *DownloadAttachmentByTokenParamsDisposition `form:"disposition,omitempty" json:"disposition,omitempty"`
}
DownloadAttachmentByTokenParams defines parameters for DownloadAttachmentByToken.
type DownloadAttachmentByTokenParamsDisposition ¶ added in v0.0.3
type DownloadAttachmentByTokenParamsDisposition string
DownloadAttachmentByTokenParamsDisposition defines parameters for DownloadAttachmentByToken.
const ( DownloadAttachmentByTokenParamsDispositionAttachment DownloadAttachmentByTokenParamsDisposition = "attachment" DownloadAttachmentByTokenParamsDispositionInline DownloadAttachmentByTokenParamsDisposition = "inline" )
Defines values for DownloadAttachmentByTokenParamsDisposition.
func (DownloadAttachmentByTokenParamsDisposition) Valid ¶ added in v0.0.3
func (e DownloadAttachmentByTokenParamsDisposition) Valid() bool
Valid indicates whether the value is a known member of the DownloadAttachmentByTokenParamsDisposition enum.
type DownloadAttachmentByTokenRequestObject ¶
type DownloadAttachmentByTokenRequestObject struct {
Token string `json:"token"`
Filename string `json:"filename"`
Params DownloadAttachmentByTokenParams
}
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 {
// AgentId Logical agent associated with the entry.
AgentId *string `json:"agentId,omitempty"`
// 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 string `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,omitempty"`
// Id Unique identifier for the entry.
Id openapi_types.UUID `json:"id"`
IndexedAt *time.Time `json:"indexedAt,omitempty"`
// IndexedContent Searchable text supplied by the application for this history entry.
IndexedContent *string `json:"indexedContent,omitempty"`
// Seq Optional client-assigned sequence number, unique within the conversation.
// Default listing uses seq only as a createdAt tie-breaker, with entries
// without seq sorted before sequenced entries at the same timestamp. Gaps
// are permitted.
Seq *int `json:"seq,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,omitempty"`
}
Entry defines model for Entry.
type ErrorJSONResponse ¶
type ErrorJSONResponse ErrorResponse
type ErrorResponse ¶
type ErrorResponse struct {
// Code Stable machine-readable error code.
Code string `json:"code"`
// Details Structured non-sensitive error details.
Details *map[string]interface{} `json:"details,omitempty"`
// Error Safe human-readable error message.
Error string `json:"error"`
// RequestId Request correlation identifier, also returned in the X-Request-ID header.
RequestId string `json:"requestId"`
}
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 GetAttachmentDownloadUrlParams ¶ added in v0.0.3
type GetAttachmentDownloadUrlParams struct {
// Disposition Controls the Content-Disposition header on the returned download URL.
// Use `inline` to display the attachment in the browser (e.g., images, PDFs),
// or `attachment` to force download. If not specified, the
// Content-Disposition header is not set, allowing the browser to use its
// default behavior based on content type.
Disposition *GetAttachmentDownloadUrlParamsDisposition `form:"disposition,omitempty" json:"disposition,omitempty"`
}
GetAttachmentDownloadUrlParams defines parameters for GetAttachmentDownloadUrl.
type GetAttachmentDownloadUrlParamsDisposition ¶ added in v0.0.3
type GetAttachmentDownloadUrlParamsDisposition string
GetAttachmentDownloadUrlParamsDisposition defines parameters for GetAttachmentDownloadUrl.
const ( GetAttachmentDownloadUrlParamsDispositionAttachment GetAttachmentDownloadUrlParamsDisposition = "attachment" GetAttachmentDownloadUrlParamsDispositionInline GetAttachmentDownloadUrlParamsDisposition = "inline" )
Defines values for GetAttachmentDownloadUrlParamsDisposition.
func (GetAttachmentDownloadUrlParamsDisposition) Valid ¶ added in v0.0.3
func (e GetAttachmentDownloadUrlParamsDisposition) Valid() bool
Valid indicates whether the value is a known member of the GetAttachmentDownloadUrlParamsDisposition enum.
type GetAttachmentDownloadUrlRequestObject ¶
type GetAttachmentDownloadUrlRequestObject struct {
Id openapi_types.UUID `json:"id"`
Params GetAttachmentDownloadUrlParams
}
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 GetAttachmentParams ¶ added in v0.0.2
type GetAttachmentParams struct {
// Disposition Controls the Content-Disposition header. Use `inline` to display the attachment
// in the browser (e.g., images, PDFs), or `attachment` to force download.
// If not specified, the Content-Disposition header is not set, allowing the browser
// to use its default behavior based on content type.
Disposition *GetAttachmentParamsDisposition `form:"disposition,omitempty" json:"disposition,omitempty"`
}
GetAttachmentParams defines parameters for GetAttachment.
type GetAttachmentParamsDisposition ¶ added in v0.0.2
type GetAttachmentParamsDisposition string
GetAttachmentParamsDisposition defines parameters for GetAttachment.
const ( GetAttachmentParamsDispositionAttachment GetAttachmentParamsDisposition = "attachment" GetAttachmentParamsDispositionInline GetAttachmentParamsDisposition = "inline" )
Defines values for GetAttachmentParamsDisposition.
func (GetAttachmentParamsDisposition) Valid ¶ added in v0.0.2
func (e GetAttachmentParamsDisposition) Valid() bool
Valid indicates whether the value is a known member of the GetAttachmentParamsDisposition enum.
type GetAttachmentRequestObject ¶
type GetAttachmentRequestObject struct {
Id openapi_types.UUID `json:"id"`
Params GetAttachmentParams
}
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 string `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.
func (GetMemoryParamsArchived) Valid ¶
func (e GetMemoryParamsArchived) Valid() bool
Valid indicates whether the value is a known member of the GetMemoryParamsArchived enum.
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 string `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,omitempty"`
Data *[]ChildConversationSummary `json:"data,omitempty"`
}
func (ListConversationChildren200JSONResponse) VisitListConversationChildrenResponse ¶
func (response ListConversationChildren200JSONResponse) VisitListConversationChildrenResponse(w http.ResponseWriter) error
type ListConversationChildrenParams ¶
type ListConversationChildrenParams struct {
AfterCursor *string `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 string `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 Pass as afterCursor to fetch the adjacent newer page. Null when no newer entries exist.
AfterCursor *openapi_types.UUID `json:"afterCursor,omitempty"`
// BeforeCursor Pass as beforeCursor to fetch the adjacent older page. Null when no older entries exist.
BeforeCursor *openapi_types.UUID `json:"beforeCursor,omitempty"`
Data *[]Entry `json:"data,omitempty"`
}
func (ListConversationEntries200JSONResponse) VisitListConversationEntriesResponse ¶
func (response ListConversationEntries200JSONResponse) VisitListConversationEntriesResponse(w http.ResponseWriter) error
type ListConversationEntries400JSONResponse ¶ added in v0.0.4
type ListConversationEntries400JSONResponse struct{ BadRequestJSONResponse }
func (ListConversationEntries400JSONResponse) VisitListConversationEntriesResponse ¶ added in v0.0.4
func (response ListConversationEntries400JSONResponse) 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"`
// BeforeCursor Cursor for backward pagination; returns up to `limit` entries strictly
// before this entry in the caller-visible order. Results remain chronological
// (ascending). Mutually exclusive with `afterCursor` and `tail=true`.
BeforeCursor *openapi_types.UUID `form:"beforeCursor,omitempty" json:"beforeCursor,omitempty"`
// Tail When `true`, returns the last `limit` entries in the caller-visible order
// (newest page). Results remain chronological (ascending). Mutually exclusive
// with `afterCursor` and `beforeCursor`.
Tail *bool `form:"tail,omitempty" json:"tail,omitempty"`
// UpToEntryId Upper-bound entry id (UUID format). When set, only entries at or
// before this entry in the caller-visible conversation order are
// returned. This is useful with `channel=context` and `epoch` to
// reconstruct the agent context as of a specific history entry.
UpToEntryId *openapi_types.UUID `form:"upToEntryId,omitempty" json:"upToEntryId,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"`
// FromSeq When set, return only entries with `seq >= fromSeq`, ordered by `seq` ASC.
// Entries without a `seq` are excluded. When omitted the default
// ordering is `createdAt` ASC, `seq` ASC NULLS FIRST, then `id` ASC.
FromSeq *int64 `form:"fromSeq,omitempty" json:"fromSeq,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"`
// CreatedAtAfter Return only entries with createdAt >= this value (RFC 3339).
CreatedAtAfter *time.Time `form:"createdAtAfter,omitempty" json:"createdAtAfter,omitempty"`
// CreatedAtBefore Return only entries with createdAt <= this value (RFC 3339).
CreatedAtBefore *time.Time `form:"createdAtBefore,omitempty" json:"createdAtBefore,omitempty"`
// CreatedAt Return only entries with createdAt equal to this value (RFC 3339).
// Mutually exclusive with createdAtAfter and createdAtBefore.
CreatedAt *time.Time `form:"createdAt,omitempty" json:"createdAt,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.
func (ListConversationEntriesParamsForks) Valid ¶
func (e ListConversationEntriesParamsForks) Valid() bool
Valid indicates whether the value is a known member of the ListConversationEntriesParamsForks enum.
type ListConversationEntriesRequestObject ¶
type ListConversationEntriesRequestObject struct {
ConversationId string `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 ConversationForkNavigation
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 ListConversationForksRequestObject ¶
type ListConversationForksRequestObject struct {
ConversationId string `json:"conversationId"`
}
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,omitempty"`
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 string `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,omitempty"`
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 every branch of conversation trees started from another conversation.
// - `all`: include both root and child conversations.
Ancestry *ListConversationsParamsAncestry `form:"ancestry,omitempty" json:"ancestry,omitempty"`
// Sort Timestamp field used to order conversations.
Sort *ListConversationsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
// Direction Sort direction. Conversation ID is used as a deterministic tie-breaker in the same direction.
Direction *ListConversationsParamsDirection `form:"direction,omitempty" json:"direction,omitempty"`
// AfterCursor Cursor for pagination. Treat this value as opaque and repeat the same sort and direction
// on subsequent requests. Legacy unsorted requests continue to use conversation IDs.
AfterCursor *string `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"`
// Metadata Metadata filter expressions. The service combines multiple expressions with AND.
// A request may contain at most five expressions.
//
// Operators:
// = equal
// != not equal
Metadata *[]string `form:"metadata,omitempty" json:"metadata,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.
func (ListConversationsParamsAncestry) Valid ¶
func (e ListConversationsParamsAncestry) Valid() bool
Valid indicates whether the value is a known member of the ListConversationsParamsAncestry enum.
type ListConversationsParamsArchived ¶
type ListConversationsParamsArchived string
ListConversationsParamsArchived defines parameters for ListConversations.
const ( ListConversationsParamsArchivedExclude ListConversationsParamsArchived = "exclude" ListConversationsParamsArchivedInclude ListConversationsParamsArchived = "include" ListConversationsParamsArchivedOnly ListConversationsParamsArchived = "only" )
Defines values for ListConversationsParamsArchived.
func (ListConversationsParamsArchived) Valid ¶
func (e ListConversationsParamsArchived) Valid() bool
Valid indicates whether the value is a known member of the ListConversationsParamsArchived enum.
type ListConversationsParamsDirection ¶ added in v0.2.3
type ListConversationsParamsDirection string
ListConversationsParamsDirection defines parameters for ListConversations.
const ( ConversationSortDirectionAsc ListConversationsParamsDirection = "asc" ConversationSortDirectionDesc ListConversationsParamsDirection = "desc" )
Defines values for ListConversationsParamsDirection.
func (ListConversationsParamsDirection) Valid ¶ added in v0.2.3
func (e ListConversationsParamsDirection) Valid() bool
Valid indicates whether the value is a known member of the ListConversationsParamsDirection enum.
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.
func (ListConversationsParamsMode) Valid ¶
func (e ListConversationsParamsMode) Valid() bool
Valid indicates whether the value is a known member of the ListConversationsParamsMode enum.
type ListConversationsParamsSort ¶ added in v0.2.3
type ListConversationsParamsSort string
ListConversationsParamsSort defines parameters for ListConversations.
const ( ConversationSortCreatedAt ListConversationsParamsSort = "createdAt" ConversationSortUpdatedAt ListConversationsParamsSort = "updatedAt" )
Defines values for ListConversationsParamsSort.
func (ListConversationsParamsSort) Valid ¶ added in v0.2.3
func (e ListConversationsParamsSort) Valid() bool
Valid indicates whether the value is a known member of the ListConversationsParamsSort enum.
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.
func (ListMemoryEventsParamsKinds) Valid ¶
func (e ListMemoryEventsParamsKinds) Valid() bool
Valid indicates whether the value is a known member of the ListMemoryEventsParamsKinds enum.
type ListMemoryEventsRequestObject ¶
type ListMemoryEventsRequestObject struct {
Params ListMemoryEventsParams
}
type ListMemoryEventsResponse ¶
type ListMemoryEventsResponse struct {
AfterCursor *string `json:"after_cursor,omitempty"`
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.
func (ListMemoryNamespacesParamsArchived) Valid ¶
func (e ListMemoryNamespacesParamsArchived) Valid() bool
Valid indicates whether the value is a known member of the ListMemoryNamespacesParamsArchived enum.
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,omitempty"`
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.
func (ListPendingTransfersParamsRole) Valid ¶
func (e ListPendingTransfersParamsRole) Valid() bool
Valid indicates whether the value is a known member of the ListPendingTransfersParamsRole enum.
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 MemoryAttributeSort ¶ added in v0.2.0
type MemoryAttributeSort struct {
Direction *MemoryAttributeSortDirection `json:"direction,omitempty"`
// Field The attribute name to sort by. Must be declared in the selected schema(s).
Field string `json:"field"`
}
MemoryAttributeSort One-field typed sort for attribute-only memory searches. Rejected when query or queries is present (semantic results are ordered by similarity score).
type MemoryAttributeSortDirection ¶ added in v0.2.0
type MemoryAttributeSortDirection string
MemoryAttributeSortDirection defines model for MemoryAttributeSort.Direction.
const ( Asc MemoryAttributeSortDirection = "asc" Desc MemoryAttributeSortDirection = "desc" )
Defines values for MemoryAttributeSortDirection.
func (MemoryAttributeSortDirection) Valid ¶ added in v0.2.0
func (e MemoryAttributeSortDirection) Valid() bool
Valid indicates whether the value is a known member of the MemoryAttributeSortDirection enum.
type MemoryEventItem ¶
type MemoryEventItem struct {
Attributes *map[string]interface{} `json:"attributes,omitempty"`
ExpiresAt *time.Time `json:"expires_at,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
Key *string `json:"key,omitempty"`
Kind *MemoryEventItemKind `json:"kind,omitempty"`
// MemoryKind Canonical schema name for this memory event (e.g. "default/v1"). Always non-empty.
MemoryKind string `json:"memoryKind"`
Namespace *[]string `json:"namespace,omitempty"`
OccurredAt *time.Time `json:"occurred_at,omitempty"`
Value *map[string]interface{} `json:"value,omitempty"`
}
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.
func (MemoryEventItemKind) Valid ¶
func (e MemoryEventItemKind) Valid() bool
Valid indicates whether the value is a known member of the MemoryEventItemKind enum.
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,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
Key *string `json:"key,omitempty"`
// Kind Canonical schema name for this memory row (e.g. "default/v1"). Always non-empty.
Kind string `json:"kind"`
// MatchedQueries Attribution — purposes (or texts) of all queries that matched this item. Present only in multi-query responses.
MatchedQueries *[]string `json:"matchedQueries,omitempty"`
Namespace *[]string `json:"namespace,omitempty"`
Score *float64 `json:"score,omitempty"`
Usage *MemoryUsage `json:"usage,omitempty"`
Value *map[string]interface{} `json:"value,omitempty"`
}
MemoryItem defines model for MemoryItem.
type MemorySearchQuery ¶ added in v0.0.3
type MemorySearchQuery struct {
// Purpose Human-readable label used as attribution in matchedQueries. Defaults to text when absent.
Purpose *string `json:"purpose,omitempty"`
// Text The search string for this query. Must be non-empty.
Text string `json:"text"`
}
MemorySearchQuery defines model for MemorySearchQuery.
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,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
Key *string `json:"key,omitempty"`
// Kind Exact canonical schema name used for this write (e.g. "default/v1").
Kind string `json:"kind"`
Namespace *[]string `json:"namespace,omitempty"`
Revision *int64 `json:"revision,omitempty"`
}
MemoryWriteResult defines model for MemoryWriteResult.
type MiddlewareFunc ¶
type NotFoundJSONResponse ¶
type NotFoundJSONResponse ErrorResponse
type OwnershipTransfer ¶
type OwnershipTransfer struct {
// ConversationId The conversation being transferred.
ConversationId string `json:"conversationId"`
// ConversationTitle Title of the conversation (for display purposes).
ConversationTitle *string `json:"conversationTitle,omitempty"`
// 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 {
// ExpectedRevision Optional optimistic concurrency revision expected for the active memory.
ExpectedRevision *int64 `json:"expected_revision,omitempty"`
Index *map[string]string `json:"index,omitempty"`
Key string `json:"key"`
// Kind Optional exact canonical schema name ("profile/v2"). Omission always uses
// the fixed built-in "default/v1" kind.
Kind *string `json:"kind,omitempty"`
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,omitempty"`
Data *[]SearchResult `json:"data,omitempty"`
}
func (SearchConversations200JSONResponse) VisitSearchConversationsResponse ¶
func (response SearchConversations200JSONResponse) VisitSearchConversationsResponse(w http.ResponseWriter) error
type SearchConversations501JSONResponse ¶
type SearchConversations501JSONResponse struct {
}
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,omitempty"`
// 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. The server may enforce a lower configured maximum.
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.
func (SearchConversationsSearchTypeSingle) Valid ¶
func (e SearchConversationsSearchTypeSingle) Valid() bool
Valid indicates whether the value is a known member of the SearchConversationsSearchTypeSingle enum.
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"`
// Kind Optional schema selector. An exact canonical name searches that version only.
// A family name searches all versions in that family. Omission searches all schemas.
Kind *string `json:"kind,omitempty"`
// Limit Maximum number of results to return. The server may enforce a lower configured maximum.
Limit *int `json:"limit,omitempty"`
NamespacePrefix []string `json:"namespace_prefix"`
// PerQueryLimit Per-query vector search budget. Defaults to limit when absent.
PerQueryLimit *int `json:"per_query_limit,omitempty"`
// Queries Batch of semantic search strings for multi-query retrieval. Mutually exclusive with query.
Queries *[]MemorySearchQuery `json:"queries,omitempty"`
// Query Single semantic search string. Mutually exclusive with queries.
Query *string `json:"query,omitempty"`
// Sort One-field typed sort for attribute-only memory searches. Rejected when query or queries
// is present (semantic results are ordered by similarity score).
Sort *MemoryAttributeSort `json:"sort,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.
func (SearchMemoriesRequestArchived) Valid ¶
func (e SearchMemoriesRequestArchived) Valid() bool
Valid indicates whether the value is a known member of the SearchMemoriesRequestArchived enum.
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 *string `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,omitempty"`
// 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.
func (SearchResultKind) Valid ¶
func (e SearchResultKind) Valid() bool
Valid indicates whether the value is a known member of the SearchResultKind enum.
type SearchTypeUnavailable ¶
type SearchTypeUnavailable = SearchTypeUnavailableError
SearchTypeUnavailable Error response when the requested search type is not available on the server.
type SearchTypeUnavailableError ¶
type SearchTypeUnavailableError struct {
Code string `json:"code"`
Details *map[string]interface{} `json:"details,omitempty"`
Error string `json:"error"`
RequestId string `json:"requestId"`
}
SearchTypeUnavailableError Error response when the requested search type is not available on the server.
type SearchTypeUnavailableJSONResponse ¶
type SearchTypeUnavailableJSONResponse SearchTypeUnavailableError
type ServerInterface ¶
type ServerInterface interface {
// AdminSubscribeEvents Subscribe to all real-time events (admin SSE)
// (GET /v1/admin/events)
AdminSubscribeEvents(c *gin.Context, params AdminSubscribeEventsParams)
// UploadAttachment Upload or create an attachment
// (POST /v1/attachments)
UploadAttachment(c *gin.Context, params UploadAttachmentParams)
// DownloadAttachmentByToken Download an attachment via signed token
// (GET /v1/attachments/download/{token}/{filename})
DownloadAttachmentByToken(c *gin.Context, token string, filename string, params DownloadAttachmentByTokenParams)
// DeleteAttachment Delete an unlinked attachment
// (DELETE /v1/attachments/{id})
DeleteAttachment(c *gin.Context, id openapi_types.UUID)
// GetAttachment Retrieve an attachment
// (GET /v1/attachments/{id})
GetAttachment(c *gin.Context, id openapi_types.UUID, params GetAttachmentParams)
// GetAttachmentDownloadUrl Get a signed download URL for an attachment
// (GET /v1/attachments/{id}/download-url)
GetAttachmentDownloadUrl(c *gin.Context, id openapi_types.UUID, params GetAttachmentDownloadUrlParams)
// GetCapabilities Get server capabilities for the authenticated caller
// (GET /v1/capabilities)
GetCapabilities(c *gin.Context)
// ListConversations List conversations visible to current user
// (GET /v1/conversations)
ListConversations(c *gin.Context, params ListConversationsParams)
// CreateConversation Create a conversation
// (POST /v1/conversations)
CreateConversation(c *gin.Context)
// IndexConversations Index conversation entries
// (POST /v1/conversations/index)
IndexConversations(c *gin.Context)
// SearchConversations Semantic search across conversations
// (POST /v1/conversations/search)
SearchConversations(c *gin.Context)
// ListUnindexedEntries List entries needing indexing
// (GET /v1/conversations/unindexed)
ListUnindexedEntries(c *gin.Context, params ListUnindexedEntriesParams)
// GetConversation Get a conversation
// (GET /v1/conversations/{conversationId})
GetConversation(c *gin.Context, conversationId string)
// UpdateConversation Update a conversation
// (PATCH /v1/conversations/{conversationId})
UpdateConversation(c *gin.Context, conversationId string)
// ListConversationChildren List direct child conversations
// (GET /v1/conversations/{conversationId}/children)
ListConversationChildren(c *gin.Context, conversationId string, params ListConversationChildrenParams)
// ListConversationEntries List conversation entries
// (GET /v1/conversations/{conversationId}/entries)
ListConversationEntries(c *gin.Context, conversationId string, params ListConversationEntriesParams)
// AppendConversationEntry Append an entry
// (POST /v1/conversations/{conversationId}/entries)
AppendConversationEntry(c *gin.Context, conversationId string)
// SyncConversationContext Synchronize the agent context epoch
// (POST /v1/conversations/{conversationId}/entries/sync)
SyncConversationContext(c *gin.Context, conversationId string)
// ListConversationForks List forks for a conversation
// (GET /v1/conversations/{conversationId}/forks)
ListConversationForks(c *gin.Context, conversationId string)
// ListConversationMemberships List conversation memberships
// (GET /v1/conversations/{conversationId}/memberships)
ListConversationMemberships(c *gin.Context, conversationId string, params ListConversationMembershipsParams)
// (POST /v1/conversations/{conversationId}/memberships)
ShareConversation(c *gin.Context, conversationId string)
// DeleteConversationMembership Remove a member from the conversation
// (DELETE /v1/conversations/{conversationId}/memberships/{userId})
DeleteConversationMembership(c *gin.Context, conversationId string, userId string)
// UpdateConversationMembership Update a member's access level
// (PATCH /v1/conversations/{conversationId}/memberships/{userId})
UpdateConversationMembership(c *gin.Context, conversationId string, userId string)
// DeleteConversationResponse Cancel an in-progress response
// (DELETE /v1/conversations/{conversationId}/response)
DeleteConversationResponse(c *gin.Context, conversationId string)
// SubscribeEvents Subscribe to real-time events (SSE)
// (GET /v1/events)
SubscribeEvents(c *gin.Context, params SubscribeEventsParams)
// GetMemory Get a memory item
// (GET /v1/memories)
GetMemory(c *gin.Context, params GetMemoryParams)
// UpdateMemory Update a memory item
// (PATCH /v1/memories)
UpdateMemory(c *gin.Context, params UpdateMemoryParams)
// PutMemory Upsert a memory item
// (PUT /v1/memories)
PutMemory(c *gin.Context)
// ListMemoryEvents List memory lifecycle events
// (GET /v1/memories/events)
ListMemoryEvents(c *gin.Context, params ListMemoryEventsParams)
// ListMemoryNamespaces List memory namespaces
// (GET /v1/memories/namespaces)
ListMemoryNamespaces(c *gin.Context, params ListMemoryNamespacesParams)
// SearchMemories Search memory items
// (POST /v1/memories/search)
SearchMemories(c *gin.Context)
// ListPendingTransfers List pending ownership transfers
// (GET /v1/ownership-transfers)
ListPendingTransfers(c *gin.Context, params ListPendingTransfersParams)
// CreateOwnershipTransfer Request ownership transfer
// (POST /v1/ownership-transfers)
CreateOwnershipTransfer(c *gin.Context)
// DeleteTransfer Cancel or reject ownership transfer
// (DELETE /v1/ownership-transfers/{transferId})
DeleteTransfer(c *gin.Context, transferId openapi_types.UUID)
// GetTransfer Get transfer details
// (GET /v1/ownership-transfers/{transferId})
GetTransfer(c *gin.Context, transferId openapi_types.UUID)
// AcceptTransfer 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
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictGinServerOptions) 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 ¶
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.
}
ShareConversationRequest defines model for ShareConversationRequest.
type ShareConversationRequestObject ¶
type ShareConversationRequestObject struct {
}
type ShareConversationResponseObject ¶
type ShareConversationResponseObject interface {
}
type ShareConversationdefaultJSONResponse ¶
type ShareConversationdefaultJSONResponse struct {
}
func (ShareConversationdefaultJSONResponse) VisitShareConversationResponse ¶
func (response ShareConversationdefaultJSONResponse) VisitShareConversationResponse(w http.ResponseWriter) error
type StrictGinServerOptions ¶
type StrictGinServerOptions struct {
// RequestErrorHandlerFunc is called when a request cannot be parsed or
// decoded. It is invoked for JSON bind failures, form parse/bind errors,
// multipart reader errors, media type parse errors, missing multipart
// boundaries, and request body read errors. The default returns 400.
RequestErrorHandlerFunc func(ctx *gin.Context, err error)
// HandlerErrorFunc is called when the application handler (or any
// middleware wrapping it) returns a non-nil error. The default returns 500.
HandlerErrorFunc func(ctx *gin.Context, err error)
// ResponseErrorHandlerFunc is called when the response object fails to
// serialize (Visit*Response returns an error) or when the handler returns
// an unexpected response type. The default returns 500.
ResponseErrorHandlerFunc func(ctx *gin.Context, err error)
}
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// AdminSubscribeEvents Subscribe to all real-time events (admin SSE)
// (GET /v1/admin/events)
AdminSubscribeEvents(ctx context.Context, request AdminSubscribeEventsRequestObject) (AdminSubscribeEventsResponseObject, error)
// UploadAttachment Upload or create an attachment
// (POST /v1/attachments)
UploadAttachment(ctx context.Context, request UploadAttachmentRequestObject) (UploadAttachmentResponseObject, error)
// DownloadAttachmentByToken Download an attachment via signed token
// (GET /v1/attachments/download/{token}/{filename})
DownloadAttachmentByToken(ctx context.Context, request DownloadAttachmentByTokenRequestObject) (DownloadAttachmentByTokenResponseObject, error)
// DeleteAttachment Delete an unlinked attachment
// (DELETE /v1/attachments/{id})
DeleteAttachment(ctx context.Context, request DeleteAttachmentRequestObject) (DeleteAttachmentResponseObject, error)
// GetAttachment Retrieve an attachment
// (GET /v1/attachments/{id})
GetAttachment(ctx context.Context, request GetAttachmentRequestObject) (GetAttachmentResponseObject, error)
// GetAttachmentDownloadUrl Get a signed download URL for an attachment
// (GET /v1/attachments/{id}/download-url)
GetAttachmentDownloadUrl(ctx context.Context, request GetAttachmentDownloadUrlRequestObject) (GetAttachmentDownloadUrlResponseObject, error)
// GetCapabilities Get server capabilities for the authenticated caller
// (GET /v1/capabilities)
GetCapabilities(ctx context.Context, request GetCapabilitiesRequestObject) (GetCapabilitiesResponseObject, error)
// ListConversations List conversations visible to current user
// (GET /v1/conversations)
ListConversations(ctx context.Context, request ListConversationsRequestObject) (ListConversationsResponseObject, error)
// CreateConversation Create a conversation
// (POST /v1/conversations)
CreateConversation(ctx context.Context, request CreateConversationRequestObject) (CreateConversationResponseObject, error)
// IndexConversations Index conversation entries
// (POST /v1/conversations/index)
IndexConversations(ctx context.Context, request IndexConversationsRequestObject) (IndexConversationsResponseObject, error)
// SearchConversations Semantic search across conversations
// (POST /v1/conversations/search)
SearchConversations(ctx context.Context, request SearchConversationsRequestObject) (SearchConversationsResponseObject, error)
// ListUnindexedEntries List entries needing indexing
// (GET /v1/conversations/unindexed)
ListUnindexedEntries(ctx context.Context, request ListUnindexedEntriesRequestObject) (ListUnindexedEntriesResponseObject, error)
// GetConversation Get a conversation
// (GET /v1/conversations/{conversationId})
GetConversation(ctx context.Context, request GetConversationRequestObject) (GetConversationResponseObject, error)
// UpdateConversation Update a conversation
// (PATCH /v1/conversations/{conversationId})
UpdateConversation(ctx context.Context, request UpdateConversationRequestObject) (UpdateConversationResponseObject, error)
// ListConversationChildren List direct child conversations
// (GET /v1/conversations/{conversationId}/children)
ListConversationChildren(ctx context.Context, request ListConversationChildrenRequestObject) (ListConversationChildrenResponseObject, error)
// ListConversationEntries List conversation entries
// (GET /v1/conversations/{conversationId}/entries)
ListConversationEntries(ctx context.Context, request ListConversationEntriesRequestObject) (ListConversationEntriesResponseObject, error)
// AppendConversationEntry Append an entry
// (POST /v1/conversations/{conversationId}/entries)
AppendConversationEntry(ctx context.Context, request AppendConversationEntryRequestObject) (AppendConversationEntryResponseObject, error)
// SyncConversationContext Synchronize the agent context epoch
// (POST /v1/conversations/{conversationId}/entries/sync)
SyncConversationContext(ctx context.Context, request SyncConversationContextRequestObject) (SyncConversationContextResponseObject, error)
// ListConversationForks List forks for a conversation
// (GET /v1/conversations/{conversationId}/forks)
ListConversationForks(ctx context.Context, request ListConversationForksRequestObject) (ListConversationForksResponseObject, error)
// ListConversationMemberships List conversation memberships
// (GET /v1/conversations/{conversationId}/memberships)
ListConversationMemberships(ctx context.Context, request ListConversationMembershipsRequestObject) (ListConversationMembershipsResponseObject, error)
// (POST /v1/conversations/{conversationId}/memberships)
ShareConversation(ctx context.Context, request ShareConversationRequestObject) (ShareConversationResponseObject, error)
// DeleteConversationMembership Remove a member from the conversation
// (DELETE /v1/conversations/{conversationId}/memberships/{userId})
DeleteConversationMembership(ctx context.Context, request DeleteConversationMembershipRequestObject) (DeleteConversationMembershipResponseObject, error)
// UpdateConversationMembership Update a member's access level
// (PATCH /v1/conversations/{conversationId}/memberships/{userId})
UpdateConversationMembership(ctx context.Context, request UpdateConversationMembershipRequestObject) (UpdateConversationMembershipResponseObject, error)
// DeleteConversationResponse Cancel an in-progress response
// (DELETE /v1/conversations/{conversationId}/response)
DeleteConversationResponse(ctx context.Context, request DeleteConversationResponseRequestObject) (DeleteConversationResponseResponseObject, error)
// SubscribeEvents Subscribe to real-time events (SSE)
// (GET /v1/events)
SubscribeEvents(ctx context.Context, request SubscribeEventsRequestObject) (SubscribeEventsResponseObject, error)
// GetMemory Get a memory item
// (GET /v1/memories)
GetMemory(ctx context.Context, request GetMemoryRequestObject) (GetMemoryResponseObject, error)
// UpdateMemory Update a memory item
// (PATCH /v1/memories)
UpdateMemory(ctx context.Context, request UpdateMemoryRequestObject) (UpdateMemoryResponseObject, error)
// PutMemory Upsert a memory item
// (PUT /v1/memories)
PutMemory(ctx context.Context, request PutMemoryRequestObject) (PutMemoryResponseObject, error)
// ListMemoryEvents List memory lifecycle events
// (GET /v1/memories/events)
ListMemoryEvents(ctx context.Context, request ListMemoryEventsRequestObject) (ListMemoryEventsResponseObject, error)
// ListMemoryNamespaces List memory namespaces
// (GET /v1/memories/namespaces)
ListMemoryNamespaces(ctx context.Context, request ListMemoryNamespacesRequestObject) (ListMemoryNamespacesResponseObject, error)
// SearchMemories Search memory items
// (POST /v1/memories/search)
SearchMemories(ctx context.Context, request SearchMemoriesRequestObject) (SearchMemoriesResponseObject, error)
// ListPendingTransfers List pending ownership transfers
// (GET /v1/ownership-transfers)
ListPendingTransfers(ctx context.Context, request ListPendingTransfersRequestObject) (ListPendingTransfersResponseObject, error)
// CreateOwnershipTransfer Request ownership transfer
// (POST /v1/ownership-transfers)
CreateOwnershipTransfer(ctx context.Context, request CreateOwnershipTransferRequestObject) (CreateOwnershipTransferResponseObject, error)
// DeleteTransfer Cancel or reject ownership transfer
// (DELETE /v1/ownership-transfers/{transferId})
DeleteTransfer(ctx context.Context, request DeleteTransferRequestObject) (DeleteTransferResponseObject, error)
// GetTransfer Get transfer details
// (GET /v1/ownership-transfers/{transferId})
GetTransfer(ctx context.Context, request GetTransferRequestObject) (GetTransferResponseObject, error)
// AcceptTransfer Accept ownership transfer
// (POST /v1/ownership-transfers/{transferId}/accept)
AcceptTransfer(ctx context.Context, request AcceptTransferRequestObject) (AcceptTransferResponseObject, error)
}
StrictServerInterface represents all server handlers.
type SubscribeEvents200TexteventStreamResponse ¶
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"`
// EntryChannels Comma-separated entry channels to deliver for entry events. Defaults to history.
EntryChannels *string `form:"entry_channels,omitempty" json:"entry_channels,omitempty"`
// EntryContentTypes Comma-separated entry content types to deliver for entry events. Omit to allow any.
EntryContentTypes *string `form:"entry_content_types,omitempty" json:"entry_content_types,omitempty"`
// EntryRoles Comma-separated entry roles to deliver for entry events. Omit to allow any.
EntryRoles *string `form:"entry_roles,omitempty" json:"entry_roles,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.
func (SubscribeEventsParamsDetail) Valid ¶
func (e SubscribeEventsParamsDetail) Valid() bool
Valid indicates whether the value is a known member of the SubscribeEventsParamsDetail enum.
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 string `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 The entry that was appended during this sync, or null if no-op.
Entry *Entry `json:"entry,omitempty"`
// Epoch The epoch number that now reflects the stored context state.
Epoch *int64 `json:"epoch,omitempty"`
// 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,omitempty"`
Data *[]UnindexedEntry `json:"data,omitempty"`
}
UnindexedEntriesResponse defines model for UnindexedEntriesResponse.
type UnindexedEntry ¶
type UnindexedEntry struct {
ConversationId *string `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 string `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"`
// Metadata Arbitrary key-value metadata merge-patch. Keys present in the request are set, keys absent are left unchanged, and keys explicitly set to `null` are removed. A top-level `null` or empty object is a no-op.
Metadata *map[string]interface{} `json:"metadata,omitempty"`
Title *string `json:"title,omitempty"`
}
UpdateConversationRequest defines model for UpdateConversationRequest.
type UpdateConversationRequestObject ¶
type UpdateConversationRequestObject struct {
ConversationId string `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"`
// ExpectedRevision Optional optimistic concurrency revision expected for the active memory.
ExpectedRevision *int64 `json:"expected_revision,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