Documentation
¶
Overview ¶
Package apiclient provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT.
Index ¶
- Constants
- func NewAcceptTransferRequest(server string, transferId openapi_types.UUID) (*http.Request, error)
- func NewAdminSubscribeEventsRequest(server string, params *AdminSubscribeEventsParams) (*http.Request, error)
- func NewAppendConversationEntryRequest(server string, conversationId string, ...) (*http.Request, error)
- func NewAppendConversationEntryRequestWithBody(server string, conversationId string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateConversationRequest(server string, body CreateConversationJSONRequestBody) (*http.Request, error)
- func NewCreateConversationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateOwnershipTransferRequest(server string, body CreateOwnershipTransferJSONRequestBody) (*http.Request, error)
- func NewCreateOwnershipTransferRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAttachmentRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewDeleteConversationMembershipRequest(server string, conversationId string, userId string) (*http.Request, error)
- func NewDeleteConversationResponseRequest(server string, conversationId string) (*http.Request, error)
- func NewDeleteTransferRequest(server string, transferId openapi_types.UUID) (*http.Request, error)
- func NewDownloadAttachmentByTokenRequest(server string, token string, filename string, ...) (*http.Request, error)
- func NewGetAttachmentDownloadUrlRequest(server string, id openapi_types.UUID, params *GetAttachmentDownloadUrlParams) (*http.Request, error)
- func NewGetAttachmentRequest(server string, id openapi_types.UUID, params *GetAttachmentParams) (*http.Request, error)
- func NewGetCapabilitiesRequest(server string) (*http.Request, error)
- func NewGetConversationRequest(server string, conversationId string) (*http.Request, error)
- func NewGetMemoryRequest(server string, params *GetMemoryParams) (*http.Request, error)
- func NewGetTransferRequest(server string, transferId openapi_types.UUID) (*http.Request, error)
- func NewIndexConversationsRequest(server string, body IndexConversationsJSONRequestBody) (*http.Request, error)
- func NewIndexConversationsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListConversationChildrenRequest(server string, conversationId string, params *ListConversationChildrenParams) (*http.Request, error)
- func NewListConversationEntriesRequest(server string, conversationId string, params *ListConversationEntriesParams) (*http.Request, error)
- func NewListConversationForksRequest(server string, conversationId string) (*http.Request, error)
- func NewListConversationMembershipsRequest(server string, conversationId string, ...) (*http.Request, error)
- func NewListConversationsRequest(server string, params *ListConversationsParams) (*http.Request, error)
- func NewListMemoryEventsRequest(server string, params *ListMemoryEventsParams) (*http.Request, error)
- func NewListMemoryNamespacesRequest(server string, params *ListMemoryNamespacesParams) (*http.Request, error)
- func NewListPendingTransfersRequest(server string, params *ListPendingTransfersParams) (*http.Request, error)
- func NewListUnindexedEntriesRequest(server string, params *ListUnindexedEntriesParams) (*http.Request, error)
- func NewPutMemoryRequest(server string, body PutMemoryJSONRequestBody) (*http.Request, error)
- func NewPutMemoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSearchConversationsRequest(server string, body SearchConversationsJSONRequestBody) (*http.Request, error)
- func NewSearchConversationsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSearchMemoriesRequest(server string, body SearchMemoriesJSONRequestBody) (*http.Request, error)
- func NewSearchMemoriesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewShareConversationRequest(server string, conversationId string, body ShareConversationJSONRequestBody) (*http.Request, error)
- func NewShareConversationRequestWithBody(server string, conversationId string, contentType string, body io.Reader) (*http.Request, error)
- func NewSubscribeEventsRequest(server string, params *SubscribeEventsParams) (*http.Request, error)
- func NewSyncConversationContextRequest(server string, conversationId string, ...) (*http.Request, error)
- func NewSyncConversationContextRequestWithBody(server string, conversationId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateConversationMembershipRequest(server string, conversationId string, userId string, ...) (*http.Request, error)
- func NewUpdateConversationMembershipRequestWithBody(server string, conversationId string, userId string, contentType string, ...) (*http.Request, error)
- func NewUpdateConversationRequest(server string, conversationId string, body UpdateConversationJSONRequestBody) (*http.Request, error)
- func NewUpdateConversationRequestWithBody(server string, conversationId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateMemoryRequest(server string, params *UpdateMemoryParams, body UpdateMemoryJSONRequestBody) (*http.Request, error)
- func NewUpdateMemoryRequestWithBody(server string, params *UpdateMemoryParams, contentType string, body io.Reader) (*http.Request, error)
- func NewUploadAttachmentRequest(server string, params *UploadAttachmentParams, ...) (*http.Request, error)
- func NewUploadAttachmentRequestWithBody(server string, params *UploadAttachmentParams, contentType string, ...) (*http.Request, error)
- type AcceptTransferResp
- type AccessLevel
- type AdminSubscribeEventsParams
- type AdminSubscribeEventsParamsDetail
- type AdminSubscribeEventsResp
- type AppendConversationEntryJSONRequestBody
- type AppendConversationEntryResp
- type Attachment
- type AttachmentDownloadUrlResponse
- type AttachmentUploadResponse
- type AttachmentUploadResponseStatus
- type BadRequest
- type CapabilitiesAuth
- type CapabilitiesFeatures
- type CapabilitiesResponse
- type CapabilitiesSecurity
- type CapabilitiesTech
- type Channel
- type ChildConversationSummary
- type Client
- func (c *Client) AcceptTransfer(ctx context.Context, transferId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) AdminSubscribeEvents(ctx context.Context, params *AdminSubscribeEventsParams, ...) (*http.Response, error)
- func (c *Client) AppendConversationEntry(ctx context.Context, conversationId string, ...) (*http.Response, error)
- func (c *Client) AppendConversationEntryWithBody(ctx context.Context, conversationId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateConversation(ctx context.Context, body CreateConversationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateConversationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateOwnershipTransfer(ctx context.Context, body CreateOwnershipTransferJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateOwnershipTransferWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteAttachment(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteConversationMembership(ctx context.Context, conversationId string, userId string, ...) (*http.Response, error)
- func (c *Client) DeleteConversationResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteTransfer(ctx context.Context, transferId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) DownloadAttachmentByToken(ctx context.Context, token string, filename string, ...) (*http.Response, error)
- func (c *Client) GetAttachment(ctx context.Context, id openapi_types.UUID, params *GetAttachmentParams, ...) (*http.Response, error)
- func (c *Client) GetAttachmentDownloadUrl(ctx context.Context, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetCapabilities(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetConversation(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMemory(ctx context.Context, params *GetMemoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTransfer(ctx context.Context, transferId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) IndexConversations(ctx context.Context, body IndexConversationsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) IndexConversationsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListConversationChildren(ctx context.Context, conversationId string, ...) (*http.Response, error)
- func (c *Client) ListConversationEntries(ctx context.Context, conversationId string, ...) (*http.Response, error)
- func (c *Client) ListConversationForks(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListConversationMemberships(ctx context.Context, conversationId string, ...) (*http.Response, error)
- func (c *Client) ListConversations(ctx context.Context, params *ListConversationsParams, ...) (*http.Response, error)
- func (c *Client) ListMemoryEvents(ctx context.Context, params *ListMemoryEventsParams, ...) (*http.Response, error)
- func (c *Client) ListMemoryNamespaces(ctx context.Context, params *ListMemoryNamespacesParams, ...) (*http.Response, error)
- func (c *Client) ListPendingTransfers(ctx context.Context, params *ListPendingTransfersParams, ...) (*http.Response, error)
- func (c *Client) ListUnindexedEntries(ctx context.Context, params *ListUnindexedEntriesParams, ...) (*http.Response, error)
- func (c *Client) PutMemory(ctx context.Context, body PutMemoryJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PutMemoryWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SearchConversations(ctx context.Context, body SearchConversationsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SearchConversationsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SearchMemories(ctx context.Context, body SearchMemoriesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SearchMemoriesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ShareConversation(ctx context.Context, conversationId string, ...) (*http.Response, error)
- func (c *Client) ShareConversationWithBody(ctx context.Context, conversationId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SubscribeEvents(ctx context.Context, params *SubscribeEventsParams, ...) (*http.Response, error)
- func (c *Client) SyncConversationContext(ctx context.Context, conversationId string, ...) (*http.Response, error)
- func (c *Client) SyncConversationContextWithBody(ctx context.Context, conversationId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateConversation(ctx context.Context, conversationId string, ...) (*http.Response, error)
- func (c *Client) UpdateConversationMembership(ctx context.Context, conversationId string, userId string, ...) (*http.Response, error)
- func (c *Client) UpdateConversationMembershipWithBody(ctx context.Context, conversationId string, userId string, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateConversationWithBody(ctx context.Context, conversationId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateMemory(ctx context.Context, params *UpdateMemoryParams, ...) (*http.Response, error)
- func (c *Client) UpdateMemoryWithBody(ctx context.Context, params *UpdateMemoryParams, contentType string, ...) (*http.Response, error)
- func (c *Client) UploadAttachment(ctx context.Context, params *UploadAttachmentParams, ...) (*http.Response, error)
- func (c *Client) UploadAttachmentWithBody(ctx context.Context, params *UploadAttachmentParams, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AcceptTransferWithResponse(ctx context.Context, transferId openapi_types.UUID, ...) (*AcceptTransferResp, error)
- func (c *ClientWithResponses) AdminSubscribeEventsWithResponse(ctx context.Context, params *AdminSubscribeEventsParams, ...) (*AdminSubscribeEventsResp, error)
- func (c *ClientWithResponses) AppendConversationEntryWithBodyWithResponse(ctx context.Context, conversationId string, contentType string, body io.Reader, ...) (*AppendConversationEntryResp, error)
- func (c *ClientWithResponses) AppendConversationEntryWithResponse(ctx context.Context, conversationId string, ...) (*AppendConversationEntryResp, error)
- func (c *ClientWithResponses) CreateConversationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateConversationResp, error)
- func (c *ClientWithResponses) CreateConversationWithResponse(ctx context.Context, body CreateConversationJSONRequestBody, ...) (*CreateConversationResp, error)
- func (c *ClientWithResponses) CreateOwnershipTransferWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateOwnershipTransferResp, error)
- func (c *ClientWithResponses) CreateOwnershipTransferWithResponse(ctx context.Context, body CreateOwnershipTransferJSONRequestBody, ...) (*CreateOwnershipTransferResp, error)
- func (c *ClientWithResponses) DeleteAttachmentWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAttachmentResp, error)
- func (c *ClientWithResponses) DeleteConversationMembershipWithResponse(ctx context.Context, conversationId string, userId string, ...) (*DeleteConversationMembershipResp, error)
- func (c *ClientWithResponses) DeleteConversationResponseWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*DeleteConversationResponseResp, error)
- func (c *ClientWithResponses) DeleteTransferWithResponse(ctx context.Context, transferId openapi_types.UUID, ...) (*DeleteTransferResp, error)
- func (c *ClientWithResponses) DownloadAttachmentByTokenWithResponse(ctx context.Context, token string, filename string, ...) (*DownloadAttachmentByTokenResp, error)
- func (c *ClientWithResponses) GetAttachmentDownloadUrlWithResponse(ctx context.Context, id openapi_types.UUID, ...) (*GetAttachmentDownloadUrlResp, error)
- func (c *ClientWithResponses) GetAttachmentWithResponse(ctx context.Context, id openapi_types.UUID, params *GetAttachmentParams, ...) (*GetAttachmentResp, error)
- func (c *ClientWithResponses) GetCapabilitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCapabilitiesResp, error)
- func (c *ClientWithResponses) GetConversationWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*GetConversationResp, error)
- func (c *ClientWithResponses) GetMemoryWithResponse(ctx context.Context, params *GetMemoryParams, reqEditors ...RequestEditorFn) (*GetMemoryResp, error)
- func (c *ClientWithResponses) GetTransferWithResponse(ctx context.Context, transferId openapi_types.UUID, ...) (*GetTransferResp, error)
- func (c *ClientWithResponses) IndexConversationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*IndexConversationsResp, error)
- func (c *ClientWithResponses) IndexConversationsWithResponse(ctx context.Context, body IndexConversationsJSONRequestBody, ...) (*IndexConversationsResp, error)
- func (c *ClientWithResponses) ListConversationChildrenWithResponse(ctx context.Context, conversationId string, ...) (*ListConversationChildrenResp, error)
- func (c *ClientWithResponses) ListConversationEntriesWithResponse(ctx context.Context, conversationId string, ...) (*ListConversationEntriesResp, error)
- func (c *ClientWithResponses) ListConversationForksWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*ListConversationForksResp, error)
- func (c *ClientWithResponses) ListConversationMembershipsWithResponse(ctx context.Context, conversationId string, ...) (*ListConversationMembershipsResp, error)
- func (c *ClientWithResponses) ListConversationsWithResponse(ctx context.Context, params *ListConversationsParams, ...) (*ListConversationsResp, error)
- func (c *ClientWithResponses) ListMemoryEventsWithResponse(ctx context.Context, params *ListMemoryEventsParams, ...) (*ListMemoryEventsResp, error)
- func (c *ClientWithResponses) ListMemoryNamespacesWithResponse(ctx context.Context, params *ListMemoryNamespacesParams, ...) (*ListMemoryNamespacesResp, error)
- func (c *ClientWithResponses) ListPendingTransfersWithResponse(ctx context.Context, params *ListPendingTransfersParams, ...) (*ListPendingTransfersResp, error)
- func (c *ClientWithResponses) ListUnindexedEntriesWithResponse(ctx context.Context, params *ListUnindexedEntriesParams, ...) (*ListUnindexedEntriesResp, error)
- func (c *ClientWithResponses) PutMemoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PutMemoryResp, error)
- func (c *ClientWithResponses) PutMemoryWithResponse(ctx context.Context, body PutMemoryJSONRequestBody, ...) (*PutMemoryResp, error)
- func (c *ClientWithResponses) SearchConversationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SearchConversationsResp, error)
- func (c *ClientWithResponses) SearchConversationsWithResponse(ctx context.Context, body SearchConversationsJSONRequestBody, ...) (*SearchConversationsResp, error)
- func (c *ClientWithResponses) SearchMemoriesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SearchMemoriesResp, error)
- func (c *ClientWithResponses) SearchMemoriesWithResponse(ctx context.Context, body SearchMemoriesJSONRequestBody, ...) (*SearchMemoriesResp, error)
- func (c *ClientWithResponses) ShareConversationWithBodyWithResponse(ctx context.Context, conversationId string, contentType string, body io.Reader, ...) (*ShareConversationResp, error)
- func (c *ClientWithResponses) ShareConversationWithResponse(ctx context.Context, conversationId string, ...) (*ShareConversationResp, error)
- func (c *ClientWithResponses) SubscribeEventsWithResponse(ctx context.Context, params *SubscribeEventsParams, ...) (*SubscribeEventsResp, error)
- func (c *ClientWithResponses) SyncConversationContextWithBodyWithResponse(ctx context.Context, conversationId string, contentType string, body io.Reader, ...) (*SyncConversationContextResp, error)
- func (c *ClientWithResponses) SyncConversationContextWithResponse(ctx context.Context, conversationId string, ...) (*SyncConversationContextResp, error)
- func (c *ClientWithResponses) UpdateConversationMembershipWithBodyWithResponse(ctx context.Context, conversationId string, userId string, contentType string, ...) (*UpdateConversationMembershipResp, error)
- func (c *ClientWithResponses) UpdateConversationMembershipWithResponse(ctx context.Context, conversationId string, userId string, ...) (*UpdateConversationMembershipResp, error)
- func (c *ClientWithResponses) UpdateConversationWithBodyWithResponse(ctx context.Context, conversationId string, contentType string, body io.Reader, ...) (*UpdateConversationResp, error)
- func (c *ClientWithResponses) UpdateConversationWithResponse(ctx context.Context, conversationId string, ...) (*UpdateConversationResp, error)
- func (c *ClientWithResponses) UpdateMemoryWithBodyWithResponse(ctx context.Context, params *UpdateMemoryParams, contentType string, ...) (*UpdateMemoryResp, error)
- func (c *ClientWithResponses) UpdateMemoryWithResponse(ctx context.Context, params *UpdateMemoryParams, ...) (*UpdateMemoryResp, error)
- func (c *ClientWithResponses) UploadAttachmentWithBodyWithResponse(ctx context.Context, params *UploadAttachmentParams, contentType string, ...) (*UploadAttachmentResp, error)
- func (c *ClientWithResponses) UploadAttachmentWithResponse(ctx context.Context, params *UploadAttachmentParams, ...) (*UploadAttachmentResp, error)
- type ClientWithResponsesInterface
- type Conversation
- type ConversationForkNavigation
- type ConversationForkOption
- type ConversationForkPoint
- type ConversationForkSummary
- type ConversationMembership
- type ConversationSummary
- type CreateConversationJSONRequestBody
- type CreateConversationRequest
- type CreateConversationResp
- type CreateEntryRequest
- type CreateFromUrlRequest
- type CreateOwnershipTransferJSONRequestBody
- type CreateOwnershipTransferRequest
- type CreateOwnershipTransferResp
- type DeleteAttachmentResp
- type DeleteConversationMembershipResp
- type DeleteConversationResponseResp
- type DeleteTransferResp
- type DownloadAttachmentByTokenParams
- type DownloadAttachmentByTokenParamsDisposition
- type DownloadAttachmentByTokenResp
- type Entry
- type Error
- type ErrorResponse
- type GetAttachmentDownloadUrlParams
- type GetAttachmentDownloadUrlParamsDisposition
- type GetAttachmentDownloadUrlResp
- type GetAttachmentParams
- type GetAttachmentParamsDisposition
- type GetAttachmentResp
- type GetCapabilitiesResp
- type GetConversationResp
- type GetMemoryParams
- type GetMemoryParamsArchived
- type GetMemoryResp
- type GetTransferResp
- type HttpRequestDoer
- type IndexConversationsJSONBody
- type IndexConversationsJSONRequestBody
- type IndexConversationsResp
- type IndexConversationsResponse
- type IndexEntryRequest
- type ListConversationChildrenParams
- type ListConversationChildrenResp
- type ListConversationEntriesParams
- type ListConversationEntriesParamsForks
- type ListConversationEntriesResp
- type ListConversationForksResp
- type ListConversationMembershipsParams
- type ListConversationMembershipsResp
- type ListConversationsParams
- type ListConversationsParamsAncestry
- type ListConversationsParamsArchived
- type ListConversationsParamsMode
- type ListConversationsResp
- type ListMemoryEventsParams
- type ListMemoryEventsParamsKinds
- type ListMemoryEventsResp
- type ListMemoryEventsResponse
- type ListMemoryNamespacesParams
- type ListMemoryNamespacesParamsArchived
- type ListMemoryNamespacesResp
- type ListMemoryNamespacesResponse
- type ListPendingTransfersParams
- type ListPendingTransfersParamsRole
- type ListPendingTransfersResp
- type ListUnindexedEntriesParams
- type ListUnindexedEntriesResp
- type MemoryEventItem
- type MemoryEventItemKind
- type MemoryItem
- type MemorySearchQuery
- type MemoryUsage
- type MemoryWriteResult
- type NotFound
- type OwnershipTransfer
- type PutMemoryJSONRequestBody
- type PutMemoryRequest
- type PutMemoryResp
- type RequestEditorFn
- type SearchConversationsJSONRequestBody
- type SearchConversationsRequest
- 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 SearchConversationsResp
- type SearchConversationsSearchTypeList
- type SearchConversationsSearchTypeSingle
- type SearchMemoriesJSONRequestBody
- type SearchMemoriesRequest
- type SearchMemoriesRequestArchived
- type SearchMemoriesResp
- type SearchMemoriesResponse
- type SearchResult
- type SearchResultKind
- type SearchTypeUnavailable
- type SearchTypeUnavailableError
- type ShareConversationJSONRequestBody
- type ShareConversationRequest
- type ShareConversationResp
- type SubscribeEventsParams
- type SubscribeEventsParamsDetail
- type SubscribeEventsResp
- type SyncConversationContextJSONRequestBody
- type SyncConversationContextResp
- type SyncEntryResponse
- type UnindexedEntriesResponse
- type UnindexedEntry
- type UpdateConversationJSONRequestBody
- type UpdateConversationMembershipJSONBody
- type UpdateConversationMembershipJSONRequestBody
- type UpdateConversationMembershipResp
- type UpdateConversationRequest
- type UpdateConversationResp
- type UpdateMemoryJSONRequestBody
- type UpdateMemoryParams
- type UpdateMemoryRequest
- type UpdateMemoryResp
- type UploadAttachmentJSONRequestBody
- type UploadAttachmentMultipartBody
- type UploadAttachmentMultipartRequestBody
- type UploadAttachmentParams
- type UploadAttachmentResp
Constants ¶
const ( ApiKeyAuthScopes apiKeyAuthContextKey = "ApiKeyAuth.Scopes" BearerAuthScopes bearerAuthContextKey = "BearerAuth.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func NewAcceptTransferRequest ¶
NewAcceptTransferRequest generates requests for AcceptTransfer
func NewAdminSubscribeEventsRequest ¶
func NewAdminSubscribeEventsRequest(server string, params *AdminSubscribeEventsParams) (*http.Request, error)
NewAdminSubscribeEventsRequest generates requests for AdminSubscribeEvents
func NewAppendConversationEntryRequest ¶
func NewAppendConversationEntryRequest(server string, conversationId string, body AppendConversationEntryJSONRequestBody) (*http.Request, error)
NewAppendConversationEntryRequest calls the generic AppendConversationEntry builder with application/json body
func NewAppendConversationEntryRequestWithBody ¶
func NewAppendConversationEntryRequestWithBody(server string, conversationId string, contentType string, body io.Reader) (*http.Request, error)
NewAppendConversationEntryRequestWithBody generates requests for AppendConversationEntry with any type of body
func NewCreateConversationRequest ¶
func NewCreateConversationRequest(server string, body CreateConversationJSONRequestBody) (*http.Request, error)
NewCreateConversationRequest calls the generic CreateConversation builder with application/json body
func NewCreateConversationRequestWithBody ¶
func NewCreateConversationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateConversationRequestWithBody generates requests for CreateConversation with any type of body
func NewCreateOwnershipTransferRequest ¶
func NewCreateOwnershipTransferRequest(server string, body CreateOwnershipTransferJSONRequestBody) (*http.Request, error)
NewCreateOwnershipTransferRequest calls the generic CreateOwnershipTransfer builder with application/json body
func NewCreateOwnershipTransferRequestWithBody ¶
func NewCreateOwnershipTransferRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateOwnershipTransferRequestWithBody generates requests for CreateOwnershipTransfer with any type of body
func NewDeleteAttachmentRequest ¶
NewDeleteAttachmentRequest generates requests for DeleteAttachment
func NewDeleteConversationMembershipRequest ¶
func NewDeleteConversationMembershipRequest(server string, conversationId string, userId string) (*http.Request, error)
NewDeleteConversationMembershipRequest generates requests for DeleteConversationMembership
func NewDeleteConversationResponseRequest ¶
func NewDeleteConversationResponseRequest(server string, conversationId string) (*http.Request, error)
NewDeleteConversationResponseRequest generates requests for DeleteConversationResponse
func NewDeleteTransferRequest ¶
NewDeleteTransferRequest generates requests for DeleteTransfer
func NewDownloadAttachmentByTokenRequest ¶
func NewDownloadAttachmentByTokenRequest(server string, token string, filename string, params *DownloadAttachmentByTokenParams) (*http.Request, error)
NewDownloadAttachmentByTokenRequest generates requests for DownloadAttachmentByToken
func NewGetAttachmentDownloadUrlRequest ¶
func NewGetAttachmentDownloadUrlRequest(server string, id openapi_types.UUID, params *GetAttachmentDownloadUrlParams) (*http.Request, error)
NewGetAttachmentDownloadUrlRequest generates requests for GetAttachmentDownloadUrl
func NewGetAttachmentRequest ¶
func NewGetAttachmentRequest(server string, id openapi_types.UUID, params *GetAttachmentParams) (*http.Request, error)
NewGetAttachmentRequest generates requests for GetAttachment
func NewGetCapabilitiesRequest ¶
NewGetCapabilitiesRequest generates requests for GetCapabilities
func NewGetConversationRequest ¶
NewGetConversationRequest generates requests for GetConversation
func NewGetMemoryRequest ¶
func NewGetMemoryRequest(server string, params *GetMemoryParams) (*http.Request, error)
NewGetMemoryRequest generates requests for GetMemory
func NewGetTransferRequest ¶
NewGetTransferRequest generates requests for GetTransfer
func NewIndexConversationsRequest ¶
func NewIndexConversationsRequest(server string, body IndexConversationsJSONRequestBody) (*http.Request, error)
NewIndexConversationsRequest calls the generic IndexConversations builder with application/json body
func NewIndexConversationsRequestWithBody ¶
func NewIndexConversationsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewIndexConversationsRequestWithBody generates requests for IndexConversations with any type of body
func NewListConversationChildrenRequest ¶
func NewListConversationChildrenRequest(server string, conversationId string, params *ListConversationChildrenParams) (*http.Request, error)
NewListConversationChildrenRequest generates requests for ListConversationChildren
func NewListConversationEntriesRequest ¶
func NewListConversationEntriesRequest(server string, conversationId string, params *ListConversationEntriesParams) (*http.Request, error)
NewListConversationEntriesRequest generates requests for ListConversationEntries
func NewListConversationForksRequest ¶
NewListConversationForksRequest generates requests for ListConversationForks
func NewListConversationMembershipsRequest ¶
func NewListConversationMembershipsRequest(server string, conversationId string, params *ListConversationMembershipsParams) (*http.Request, error)
NewListConversationMembershipsRequest generates requests for ListConversationMemberships
func NewListConversationsRequest ¶
func NewListConversationsRequest(server string, params *ListConversationsParams) (*http.Request, error)
NewListConversationsRequest generates requests for ListConversations
func NewListMemoryEventsRequest ¶
func NewListMemoryEventsRequest(server string, params *ListMemoryEventsParams) (*http.Request, error)
NewListMemoryEventsRequest generates requests for ListMemoryEvents
func NewListMemoryNamespacesRequest ¶
func NewListMemoryNamespacesRequest(server string, params *ListMemoryNamespacesParams) (*http.Request, error)
NewListMemoryNamespacesRequest generates requests for ListMemoryNamespaces
func NewListPendingTransfersRequest ¶
func NewListPendingTransfersRequest(server string, params *ListPendingTransfersParams) (*http.Request, error)
NewListPendingTransfersRequest generates requests for ListPendingTransfers
func NewListUnindexedEntriesRequest ¶
func NewListUnindexedEntriesRequest(server string, params *ListUnindexedEntriesParams) (*http.Request, error)
NewListUnindexedEntriesRequest generates requests for ListUnindexedEntries
func NewPutMemoryRequest ¶
func NewPutMemoryRequest(server string, body PutMemoryJSONRequestBody) (*http.Request, error)
NewPutMemoryRequest calls the generic PutMemory builder with application/json body
func NewPutMemoryRequestWithBody ¶
func NewPutMemoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPutMemoryRequestWithBody generates requests for PutMemory with any type of body
func NewSearchConversationsRequest ¶
func NewSearchConversationsRequest(server string, body SearchConversationsJSONRequestBody) (*http.Request, error)
NewSearchConversationsRequest calls the generic SearchConversations builder with application/json body
func NewSearchConversationsRequestWithBody ¶
func NewSearchConversationsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSearchConversationsRequestWithBody generates requests for SearchConversations with any type of body
func NewSearchMemoriesRequest ¶
func NewSearchMemoriesRequest(server string, body SearchMemoriesJSONRequestBody) (*http.Request, error)
NewSearchMemoriesRequest calls the generic SearchMemories builder with application/json body
func NewSearchMemoriesRequestWithBody ¶
func NewSearchMemoriesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSearchMemoriesRequestWithBody generates requests for SearchMemories with any type of body
func NewShareConversationRequest ¶
func NewShareConversationRequest(server string, conversationId string, body ShareConversationJSONRequestBody) (*http.Request, error)
NewShareConversationRequest calls the generic ShareConversation builder with application/json body
func NewShareConversationRequestWithBody ¶
func NewShareConversationRequestWithBody(server string, conversationId string, contentType string, body io.Reader) (*http.Request, error)
NewShareConversationRequestWithBody generates requests for ShareConversation with any type of body
func NewSubscribeEventsRequest ¶
func NewSubscribeEventsRequest(server string, params *SubscribeEventsParams) (*http.Request, error)
NewSubscribeEventsRequest generates requests for SubscribeEvents
func NewSyncConversationContextRequest ¶
func NewSyncConversationContextRequest(server string, conversationId string, body SyncConversationContextJSONRequestBody) (*http.Request, error)
NewSyncConversationContextRequest calls the generic SyncConversationContext builder with application/json body
func NewSyncConversationContextRequestWithBody ¶
func NewSyncConversationContextRequestWithBody(server string, conversationId string, contentType string, body io.Reader) (*http.Request, error)
NewSyncConversationContextRequestWithBody generates requests for SyncConversationContext with any type of body
func NewUpdateConversationMembershipRequest ¶
func NewUpdateConversationMembershipRequest(server string, conversationId string, userId string, body UpdateConversationMembershipJSONRequestBody) (*http.Request, error)
NewUpdateConversationMembershipRequest calls the generic UpdateConversationMembership builder with application/json body
func NewUpdateConversationMembershipRequestWithBody ¶
func NewUpdateConversationMembershipRequestWithBody(server string, conversationId string, userId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateConversationMembershipRequestWithBody generates requests for UpdateConversationMembership with any type of body
func NewUpdateConversationRequest ¶
func NewUpdateConversationRequest(server string, conversationId string, body UpdateConversationJSONRequestBody) (*http.Request, error)
NewUpdateConversationRequest calls the generic UpdateConversation builder with application/json body
func NewUpdateConversationRequestWithBody ¶
func NewUpdateConversationRequestWithBody(server string, conversationId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateConversationRequestWithBody generates requests for UpdateConversation with any type of body
func NewUpdateMemoryRequest ¶
func NewUpdateMemoryRequest(server string, params *UpdateMemoryParams, body UpdateMemoryJSONRequestBody) (*http.Request, error)
NewUpdateMemoryRequest calls the generic UpdateMemory builder with application/json body
func NewUpdateMemoryRequestWithBody ¶
func NewUpdateMemoryRequestWithBody(server string, params *UpdateMemoryParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateMemoryRequestWithBody generates requests for UpdateMemory with any type of body
func NewUploadAttachmentRequest ¶
func NewUploadAttachmentRequest(server string, params *UploadAttachmentParams, body UploadAttachmentJSONRequestBody) (*http.Request, error)
NewUploadAttachmentRequest calls the generic UploadAttachment builder with application/json body
func NewUploadAttachmentRequestWithBody ¶
func NewUploadAttachmentRequestWithBody(server string, params *UploadAttachmentParams, contentType string, body io.Reader) (*http.Request, error)
NewUploadAttachmentRequestWithBody generates requests for UploadAttachment with any type of body
Types ¶
type AcceptTransferResp ¶
type AcceptTransferResp struct {
Body []byte
HTTPResponse *http.Response
JSON403 *Error
JSON404 *NotFound
JSONDefault *Error
}
func ParseAcceptTransferResp ¶
func ParseAcceptTransferResp(rsp *http.Response) (*AcceptTransferResp, error)
ParseAcceptTransferResp parses an HTTP response from a AcceptTransferWithResponse call
func (AcceptTransferResp) ContentType ¶
func (r AcceptTransferResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AcceptTransferResp) Status ¶
func (r AcceptTransferResp) Status() string
Status returns HTTPResponse.Status
func (AcceptTransferResp) StatusCode ¶
func (r AcceptTransferResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 AdminSubscribeEventsParams ¶
type AdminSubscribeEventsParams struct {
// Justification Optional reason for subscribing, logged for audit when present. Servers configured to require admin justifications reject requests without one.
Justification *string `form:"justification,omitempty" json:"justification,omitempty"`
// Kinds Comma-separated event kinds to filter.
Kinds *string `form:"kinds,omitempty" json:"kinds,omitempty"`
// After Replay events after the provided durable cursor. Requires the outbox feature to be enabled.
After *string `form:"after,omitempty" json:"after,omitempty"`
// Detail Event payload detail level.
Detail *AdminSubscribeEventsParamsDetail `form:"detail,omitempty" json:"detail,omitempty"`
// 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 AdminSubscribeEventsResp ¶
func ParseAdminSubscribeEventsResp ¶
func ParseAdminSubscribeEventsResp(rsp *http.Response) (*AdminSubscribeEventsResp, error)
ParseAdminSubscribeEventsResp parses an HTTP response from a AdminSubscribeEventsWithResponse call
func (AdminSubscribeEventsResp) ContentType ¶
func (r AdminSubscribeEventsResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AdminSubscribeEventsResp) Status ¶
func (r AdminSubscribeEventsResp) Status() string
Status returns HTTPResponse.Status
func (AdminSubscribeEventsResp) StatusCode ¶
func (r AdminSubscribeEventsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AppendConversationEntryJSONRequestBody ¶
type AppendConversationEntryJSONRequestBody = CreateEntryRequest
AppendConversationEntryJSONRequestBody defines body for AppendConversationEntry for application/json ContentType.
type AppendConversationEntryResp ¶
type AppendConversationEntryResp struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Entry
JSON404 *NotFound
JSON409 *Error
JSONDefault *Error
}
func ParseAppendConversationEntryResp ¶
func ParseAppendConversationEntryResp(rsp *http.Response) (*AppendConversationEntryResp, error)
ParseAppendConversationEntryResp parses an HTTP response from a AppendConversationEntryWithResponse call
func (AppendConversationEntryResp) ContentType ¶
func (r AppendConversationEntryResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AppendConversationEntryResp) Status ¶
func (r AppendConversationEntryResp) Status() string
Status returns HTTPResponse.Status
func (AppendConversationEntryResp) StatusCode ¶
func (r AppendConversationEntryResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 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 {
CorsEnabled bool `json:"cors_enabled"`
FulltextSearchEnabled bool `json:"fulltext_search_enabled"`
ManagementListenerEnabled bool `json:"management_listener_enabled"`
OutboxEnabled bool `json:"outbox_enabled"`
PrivateSourceUrlsEnabled bool `json:"private_source_urls_enabled"`
S3DirectDownloadEnabled bool `json:"s3_direct_download_enabled"`
SemanticSearchEnabled bool `json:"semantic_search_enabled"`
}
CapabilitiesFeatures defines model for CapabilitiesFeatures.
type CapabilitiesResponse ¶
type CapabilitiesResponse struct {
Auth CapabilitiesAuth `json:"auth"`
Features CapabilitiesFeatures `json:"features"`
Security CapabilitiesSecurity `json:"security"`
Tech CapabilitiesTech `json:"tech"`
Version string `json:"version"`
}
CapabilitiesResponse defines model for CapabilitiesResponse.
type CapabilitiesSecurity ¶
type CapabilitiesSecurity struct {
AttachmentEncryptionEnabled bool `json:"attachment_encryption_enabled"`
DbEncryptionEnabled bool `json:"db_encryption_enabled"`
EncryptionEnabled bool `json:"encryption_enabled"`
}
CapabilitiesSecurity defines model for CapabilitiesSecurity.
type CapabilitiesTech ¶
type CapabilitiesTech struct {
Attachments string `json:"attachments"`
Cache string `json:"cache"`
Embedder string `json:"embedder"`
EventBus string `json:"event_bus"`
Store string `json:"store"`
Vector string `json:"vector"`
}
CapabilitiesTech defines model for CapabilitiesTech.
type Channel ¶
type Channel string
Channel Logical channel of the entry within the conversation.
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"`
StartedByEntryId *openapi_types.UUID `json:"startedByEntryId,omitempty"`
Title *string `json:"title,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
ChildConversationSummary defines model for ChildConversationSummary.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AcceptTransfer ¶
func (c *Client) AcceptTransfer(ctx context.Context, transferId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AdminSubscribeEvents ¶
func (c *Client) AdminSubscribeEvents(ctx context.Context, params *AdminSubscribeEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AppendConversationEntry ¶
func (c *Client) AppendConversationEntry(ctx context.Context, conversationId string, body AppendConversationEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AppendConversationEntryWithBody ¶
func (*Client) CreateConversation ¶
func (c *Client) CreateConversation(ctx context.Context, body CreateConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateConversationWithBody ¶
func (*Client) CreateOwnershipTransfer ¶
func (c *Client) CreateOwnershipTransfer(ctx context.Context, body CreateOwnershipTransferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateOwnershipTransferWithBody ¶
func (*Client) DeleteAttachment ¶
func (c *Client) DeleteAttachment(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteConversationMembership ¶
func (*Client) DeleteConversationResponse ¶
func (*Client) DeleteTransfer ¶
func (c *Client) DeleteTransfer(ctx context.Context, transferId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DownloadAttachmentByToken ¶
func (c *Client) DownloadAttachmentByToken(ctx context.Context, token string, filename string, params *DownloadAttachmentByTokenParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAttachment ¶
func (c *Client) GetAttachment(ctx context.Context, id openapi_types.UUID, params *GetAttachmentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAttachmentDownloadUrl ¶
func (c *Client) GetAttachmentDownloadUrl(ctx context.Context, id openapi_types.UUID, params *GetAttachmentDownloadUrlParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCapabilities ¶
func (*Client) GetConversation ¶
func (*Client) GetMemory ¶
func (c *Client) GetMemory(ctx context.Context, params *GetMemoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTransfer ¶
func (c *Client) GetTransfer(ctx context.Context, transferId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) IndexConversations ¶
func (c *Client) IndexConversations(ctx context.Context, body IndexConversationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) IndexConversationsWithBody ¶
func (*Client) ListConversationChildren ¶
func (c *Client) ListConversationChildren(ctx context.Context, conversationId string, params *ListConversationChildrenParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListConversationEntries ¶
func (c *Client) ListConversationEntries(ctx context.Context, conversationId string, params *ListConversationEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListConversationForks ¶
func (*Client) ListConversationMemberships ¶
func (c *Client) ListConversationMemberships(ctx context.Context, conversationId string, params *ListConversationMembershipsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListConversations ¶
func (c *Client) ListConversations(ctx context.Context, params *ListConversationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListMemoryEvents ¶
func (c *Client) ListMemoryEvents(ctx context.Context, params *ListMemoryEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListMemoryNamespaces ¶
func (c *Client) ListMemoryNamespaces(ctx context.Context, params *ListMemoryNamespacesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListPendingTransfers ¶
func (c *Client) ListPendingTransfers(ctx context.Context, params *ListPendingTransfersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListUnindexedEntries ¶
func (c *Client) ListUnindexedEntries(ctx context.Context, params *ListUnindexedEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutMemory ¶
func (c *Client) PutMemory(ctx context.Context, body PutMemoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutMemoryWithBody ¶
func (*Client) SearchConversations ¶
func (c *Client) SearchConversations(ctx context.Context, body SearchConversationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SearchConversationsWithBody ¶
func (*Client) SearchMemories ¶
func (c *Client) SearchMemories(ctx context.Context, body SearchMemoriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SearchMemoriesWithBody ¶
func (*Client) ShareConversation ¶
func (c *Client) ShareConversation(ctx context.Context, conversationId string, body ShareConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ShareConversationWithBody ¶
func (*Client) SubscribeEvents ¶
func (c *Client) SubscribeEvents(ctx context.Context, params *SubscribeEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SyncConversationContext ¶
func (c *Client) SyncConversationContext(ctx context.Context, conversationId string, body SyncConversationContextJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SyncConversationContextWithBody ¶
func (*Client) UpdateConversation ¶
func (c *Client) UpdateConversation(ctx context.Context, conversationId string, body UpdateConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateConversationMembership ¶
func (c *Client) UpdateConversationMembership(ctx context.Context, conversationId string, userId string, body UpdateConversationMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateConversationMembershipWithBody ¶
func (*Client) UpdateConversationWithBody ¶
func (*Client) UpdateMemory ¶
func (c *Client) UpdateMemory(ctx context.Context, params *UpdateMemoryParams, body UpdateMemoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateMemoryWithBody ¶
func (*Client) UploadAttachment ¶
func (c *Client) UploadAttachment(ctx context.Context, params *UploadAttachmentParams, body UploadAttachmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UploadAttachmentWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// AdminSubscribeEvents request
AdminSubscribeEvents(ctx context.Context, params *AdminSubscribeEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadAttachmentWithBody request with any body
UploadAttachmentWithBody(ctx context.Context, params *UploadAttachmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UploadAttachment(ctx context.Context, params *UploadAttachmentParams, body UploadAttachmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DownloadAttachmentByToken request
DownloadAttachmentByToken(ctx context.Context, token string, filename string, params *DownloadAttachmentByTokenParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteAttachment request
DeleteAttachment(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAttachment request
GetAttachment(ctx context.Context, id openapi_types.UUID, params *GetAttachmentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAttachmentDownloadUrl request
GetAttachmentDownloadUrl(ctx context.Context, id openapi_types.UUID, params *GetAttachmentDownloadUrlParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCapabilities request
GetCapabilities(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListConversations request
ListConversations(ctx context.Context, params *ListConversationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateConversationWithBody request with any body
CreateConversationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateConversation(ctx context.Context, body CreateConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// IndexConversationsWithBody request with any body
IndexConversationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
IndexConversations(ctx context.Context, body IndexConversationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SearchConversationsWithBody request with any body
SearchConversationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SearchConversations(ctx context.Context, body SearchConversationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListUnindexedEntries request
ListUnindexedEntries(ctx context.Context, params *ListUnindexedEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetConversation request
GetConversation(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateConversationWithBody request with any body
UpdateConversationWithBody(ctx context.Context, conversationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateConversation(ctx context.Context, conversationId string, body UpdateConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListConversationChildren request
ListConversationChildren(ctx context.Context, conversationId string, params *ListConversationChildrenParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListConversationEntries request
ListConversationEntries(ctx context.Context, conversationId string, params *ListConversationEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AppendConversationEntryWithBody request with any body
AppendConversationEntryWithBody(ctx context.Context, conversationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AppendConversationEntry(ctx context.Context, conversationId string, body AppendConversationEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SyncConversationContextWithBody request with any body
SyncConversationContextWithBody(ctx context.Context, conversationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SyncConversationContext(ctx context.Context, conversationId string, body SyncConversationContextJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListConversationForks request
ListConversationForks(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListConversationMemberships request
ListConversationMemberships(ctx context.Context, conversationId string, params *ListConversationMembershipsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ShareConversationWithBody(ctx context.Context, conversationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteConversationMembership request
DeleteConversationMembership(ctx context.Context, conversationId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateConversationMembershipWithBody request with any body
UpdateConversationMembershipWithBody(ctx context.Context, conversationId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateConversationMembership(ctx context.Context, conversationId string, userId string, body UpdateConversationMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteConversationResponse request
DeleteConversationResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// SubscribeEvents request
SubscribeEvents(ctx context.Context, params *SubscribeEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMemory request
GetMemory(ctx context.Context, params *GetMemoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateMemoryWithBody request with any body
UpdateMemoryWithBody(ctx context.Context, params *UpdateMemoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateMemory(ctx context.Context, params *UpdateMemoryParams, body UpdateMemoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutMemoryWithBody request with any body
PutMemoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PutMemory(ctx context.Context, body PutMemoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMemoryEvents request
ListMemoryEvents(ctx context.Context, params *ListMemoryEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMemoryNamespaces request
ListMemoryNamespaces(ctx context.Context, params *ListMemoryNamespacesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SearchMemoriesWithBody request with any body
SearchMemoriesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SearchMemories(ctx context.Context, body SearchMemoriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPendingTransfers request
ListPendingTransfers(ctx context.Context, params *ListPendingTransfersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateOwnershipTransferWithBody request with any body
CreateOwnershipTransferWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateOwnershipTransfer(ctx context.Context, body CreateOwnershipTransferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteTransfer request
DeleteTransfer(ctx context.Context, transferId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTransfer request
GetTransfer(ctx context.Context, transferId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// AcceptTransfer request
AcceptTransfer(ctx context.Context, transferId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AcceptTransferWithResponse ¶
func (c *ClientWithResponses) AcceptTransferWithResponse(ctx context.Context, transferId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AcceptTransferResp, error)
AcceptTransferWithResponse request returning *AcceptTransferResp
func (*ClientWithResponses) AdminSubscribeEventsWithResponse ¶
func (c *ClientWithResponses) AdminSubscribeEventsWithResponse(ctx context.Context, params *AdminSubscribeEventsParams, reqEditors ...RequestEditorFn) (*AdminSubscribeEventsResp, error)
AdminSubscribeEventsWithResponse request returning *AdminSubscribeEventsResp
func (*ClientWithResponses) AppendConversationEntryWithBodyWithResponse ¶
func (c *ClientWithResponses) AppendConversationEntryWithBodyWithResponse(ctx context.Context, conversationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppendConversationEntryResp, error)
AppendConversationEntryWithBodyWithResponse request with arbitrary body returning *AppendConversationEntryResp
func (*ClientWithResponses) AppendConversationEntryWithResponse ¶
func (c *ClientWithResponses) AppendConversationEntryWithResponse(ctx context.Context, conversationId string, body AppendConversationEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*AppendConversationEntryResp, error)
func (*ClientWithResponses) CreateConversationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateConversationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateConversationResp, error)
CreateConversationWithBodyWithResponse request with arbitrary body returning *CreateConversationResp
func (*ClientWithResponses) CreateConversationWithResponse ¶
func (c *ClientWithResponses) CreateConversationWithResponse(ctx context.Context, body CreateConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateConversationResp, error)
func (*ClientWithResponses) CreateOwnershipTransferWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateOwnershipTransferWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOwnershipTransferResp, error)
CreateOwnershipTransferWithBodyWithResponse request with arbitrary body returning *CreateOwnershipTransferResp
func (*ClientWithResponses) CreateOwnershipTransferWithResponse ¶
func (c *ClientWithResponses) CreateOwnershipTransferWithResponse(ctx context.Context, body CreateOwnershipTransferJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOwnershipTransferResp, error)
func (*ClientWithResponses) DeleteAttachmentWithResponse ¶
func (c *ClientWithResponses) DeleteAttachmentWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAttachmentResp, error)
DeleteAttachmentWithResponse request returning *DeleteAttachmentResp
func (*ClientWithResponses) DeleteConversationMembershipWithResponse ¶
func (c *ClientWithResponses) DeleteConversationMembershipWithResponse(ctx context.Context, conversationId string, userId string, reqEditors ...RequestEditorFn) (*DeleteConversationMembershipResp, error)
DeleteConversationMembershipWithResponse request returning *DeleteConversationMembershipResp
func (*ClientWithResponses) DeleteConversationResponseWithResponse ¶
func (c *ClientWithResponses) DeleteConversationResponseWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*DeleteConversationResponseResp, error)
DeleteConversationResponseWithResponse request returning *DeleteConversationResponseResp
func (*ClientWithResponses) DeleteTransferWithResponse ¶
func (c *ClientWithResponses) DeleteTransferWithResponse(ctx context.Context, transferId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTransferResp, error)
DeleteTransferWithResponse request returning *DeleteTransferResp
func (*ClientWithResponses) DownloadAttachmentByTokenWithResponse ¶
func (c *ClientWithResponses) DownloadAttachmentByTokenWithResponse(ctx context.Context, token string, filename string, params *DownloadAttachmentByTokenParams, reqEditors ...RequestEditorFn) (*DownloadAttachmentByTokenResp, error)
DownloadAttachmentByTokenWithResponse request returning *DownloadAttachmentByTokenResp
func (*ClientWithResponses) GetAttachmentDownloadUrlWithResponse ¶
func (c *ClientWithResponses) GetAttachmentDownloadUrlWithResponse(ctx context.Context, id openapi_types.UUID, params *GetAttachmentDownloadUrlParams, reqEditors ...RequestEditorFn) (*GetAttachmentDownloadUrlResp, error)
GetAttachmentDownloadUrlWithResponse request returning *GetAttachmentDownloadUrlResp
func (*ClientWithResponses) GetAttachmentWithResponse ¶
func (c *ClientWithResponses) GetAttachmentWithResponse(ctx context.Context, id openapi_types.UUID, params *GetAttachmentParams, reqEditors ...RequestEditorFn) (*GetAttachmentResp, error)
GetAttachmentWithResponse request returning *GetAttachmentResp
func (*ClientWithResponses) GetCapabilitiesWithResponse ¶
func (c *ClientWithResponses) GetCapabilitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCapabilitiesResp, error)
GetCapabilitiesWithResponse request returning *GetCapabilitiesResp
func (*ClientWithResponses) GetConversationWithResponse ¶
func (c *ClientWithResponses) GetConversationWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*GetConversationResp, error)
GetConversationWithResponse request returning *GetConversationResp
func (*ClientWithResponses) GetMemoryWithResponse ¶
func (c *ClientWithResponses) GetMemoryWithResponse(ctx context.Context, params *GetMemoryParams, reqEditors ...RequestEditorFn) (*GetMemoryResp, error)
GetMemoryWithResponse request returning *GetMemoryResp
func (*ClientWithResponses) GetTransferWithResponse ¶
func (c *ClientWithResponses) GetTransferWithResponse(ctx context.Context, transferId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTransferResp, error)
GetTransferWithResponse request returning *GetTransferResp
func (*ClientWithResponses) IndexConversationsWithBodyWithResponse ¶
func (c *ClientWithResponses) IndexConversationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IndexConversationsResp, error)
IndexConversationsWithBodyWithResponse request with arbitrary body returning *IndexConversationsResp
func (*ClientWithResponses) IndexConversationsWithResponse ¶
func (c *ClientWithResponses) IndexConversationsWithResponse(ctx context.Context, body IndexConversationsJSONRequestBody, reqEditors ...RequestEditorFn) (*IndexConversationsResp, error)
func (*ClientWithResponses) ListConversationChildrenWithResponse ¶
func (c *ClientWithResponses) ListConversationChildrenWithResponse(ctx context.Context, conversationId string, params *ListConversationChildrenParams, reqEditors ...RequestEditorFn) (*ListConversationChildrenResp, error)
ListConversationChildrenWithResponse request returning *ListConversationChildrenResp
func (*ClientWithResponses) ListConversationEntriesWithResponse ¶
func (c *ClientWithResponses) ListConversationEntriesWithResponse(ctx context.Context, conversationId string, params *ListConversationEntriesParams, reqEditors ...RequestEditorFn) (*ListConversationEntriesResp, error)
ListConversationEntriesWithResponse request returning *ListConversationEntriesResp
func (*ClientWithResponses) ListConversationForksWithResponse ¶
func (c *ClientWithResponses) ListConversationForksWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*ListConversationForksResp, error)
ListConversationForksWithResponse request returning *ListConversationForksResp
func (*ClientWithResponses) ListConversationMembershipsWithResponse ¶
func (c *ClientWithResponses) ListConversationMembershipsWithResponse(ctx context.Context, conversationId string, params *ListConversationMembershipsParams, reqEditors ...RequestEditorFn) (*ListConversationMembershipsResp, error)
ListConversationMembershipsWithResponse request returning *ListConversationMembershipsResp
func (*ClientWithResponses) ListConversationsWithResponse ¶
func (c *ClientWithResponses) ListConversationsWithResponse(ctx context.Context, params *ListConversationsParams, reqEditors ...RequestEditorFn) (*ListConversationsResp, error)
ListConversationsWithResponse request returning *ListConversationsResp
func (*ClientWithResponses) ListMemoryEventsWithResponse ¶
func (c *ClientWithResponses) ListMemoryEventsWithResponse(ctx context.Context, params *ListMemoryEventsParams, reqEditors ...RequestEditorFn) (*ListMemoryEventsResp, error)
ListMemoryEventsWithResponse request returning *ListMemoryEventsResp
func (*ClientWithResponses) ListMemoryNamespacesWithResponse ¶
func (c *ClientWithResponses) ListMemoryNamespacesWithResponse(ctx context.Context, params *ListMemoryNamespacesParams, reqEditors ...RequestEditorFn) (*ListMemoryNamespacesResp, error)
ListMemoryNamespacesWithResponse request returning *ListMemoryNamespacesResp
func (*ClientWithResponses) ListPendingTransfersWithResponse ¶
func (c *ClientWithResponses) ListPendingTransfersWithResponse(ctx context.Context, params *ListPendingTransfersParams, reqEditors ...RequestEditorFn) (*ListPendingTransfersResp, error)
ListPendingTransfersWithResponse request returning *ListPendingTransfersResp
func (*ClientWithResponses) ListUnindexedEntriesWithResponse ¶
func (c *ClientWithResponses) ListUnindexedEntriesWithResponse(ctx context.Context, params *ListUnindexedEntriesParams, reqEditors ...RequestEditorFn) (*ListUnindexedEntriesResp, error)
ListUnindexedEntriesWithResponse request returning *ListUnindexedEntriesResp
func (*ClientWithResponses) PutMemoryWithBodyWithResponse ¶
func (c *ClientWithResponses) PutMemoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutMemoryResp, error)
PutMemoryWithBodyWithResponse request with arbitrary body returning *PutMemoryResp
func (*ClientWithResponses) PutMemoryWithResponse ¶
func (c *ClientWithResponses) PutMemoryWithResponse(ctx context.Context, body PutMemoryJSONRequestBody, reqEditors ...RequestEditorFn) (*PutMemoryResp, error)
func (*ClientWithResponses) SearchConversationsWithBodyWithResponse ¶
func (c *ClientWithResponses) SearchConversationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchConversationsResp, error)
SearchConversationsWithBodyWithResponse request with arbitrary body returning *SearchConversationsResp
func (*ClientWithResponses) SearchConversationsWithResponse ¶
func (c *ClientWithResponses) SearchConversationsWithResponse(ctx context.Context, body SearchConversationsJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchConversationsResp, error)
func (*ClientWithResponses) SearchMemoriesWithBodyWithResponse ¶
func (c *ClientWithResponses) SearchMemoriesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchMemoriesResp, error)
SearchMemoriesWithBodyWithResponse request with arbitrary body returning *SearchMemoriesResp
func (*ClientWithResponses) SearchMemoriesWithResponse ¶
func (c *ClientWithResponses) SearchMemoriesWithResponse(ctx context.Context, body SearchMemoriesJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchMemoriesResp, error)
func (*ClientWithResponses) ShareConversationWithBodyWithResponse ¶
func (c *ClientWithResponses) ShareConversationWithBodyWithResponse(ctx context.Context, conversationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ShareConversationResp, error)
ShareConversationWithBodyWithResponse request with arbitrary body returning *ShareConversationResp
func (*ClientWithResponses) ShareConversationWithResponse ¶
func (c *ClientWithResponses) ShareConversationWithResponse(ctx context.Context, conversationId string, body ShareConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*ShareConversationResp, error)
func (*ClientWithResponses) SubscribeEventsWithResponse ¶
func (c *ClientWithResponses) SubscribeEventsWithResponse(ctx context.Context, params *SubscribeEventsParams, reqEditors ...RequestEditorFn) (*SubscribeEventsResp, error)
SubscribeEventsWithResponse request returning *SubscribeEventsResp
func (*ClientWithResponses) SyncConversationContextWithBodyWithResponse ¶
func (c *ClientWithResponses) SyncConversationContextWithBodyWithResponse(ctx context.Context, conversationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncConversationContextResp, error)
SyncConversationContextWithBodyWithResponse request with arbitrary body returning *SyncConversationContextResp
func (*ClientWithResponses) SyncConversationContextWithResponse ¶
func (c *ClientWithResponses) SyncConversationContextWithResponse(ctx context.Context, conversationId string, body SyncConversationContextJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncConversationContextResp, error)
func (*ClientWithResponses) UpdateConversationMembershipWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateConversationMembershipWithBodyWithResponse(ctx context.Context, conversationId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConversationMembershipResp, error)
UpdateConversationMembershipWithBodyWithResponse request with arbitrary body returning *UpdateConversationMembershipResp
func (*ClientWithResponses) UpdateConversationMembershipWithResponse ¶
func (c *ClientWithResponses) UpdateConversationMembershipWithResponse(ctx context.Context, conversationId string, userId string, body UpdateConversationMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConversationMembershipResp, error)
func (*ClientWithResponses) UpdateConversationWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateConversationWithBodyWithResponse(ctx context.Context, conversationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConversationResp, error)
UpdateConversationWithBodyWithResponse request with arbitrary body returning *UpdateConversationResp
func (*ClientWithResponses) UpdateConversationWithResponse ¶
func (c *ClientWithResponses) UpdateConversationWithResponse(ctx context.Context, conversationId string, body UpdateConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConversationResp, error)
func (*ClientWithResponses) UpdateMemoryWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateMemoryWithBodyWithResponse(ctx context.Context, params *UpdateMemoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemoryResp, error)
UpdateMemoryWithBodyWithResponse request with arbitrary body returning *UpdateMemoryResp
func (*ClientWithResponses) UpdateMemoryWithResponse ¶
func (c *ClientWithResponses) UpdateMemoryWithResponse(ctx context.Context, params *UpdateMemoryParams, body UpdateMemoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemoryResp, error)
func (*ClientWithResponses) UploadAttachmentWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadAttachmentWithBodyWithResponse(ctx context.Context, params *UploadAttachmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadAttachmentResp, error)
UploadAttachmentWithBodyWithResponse request with arbitrary body returning *UploadAttachmentResp
func (*ClientWithResponses) UploadAttachmentWithResponse ¶
func (c *ClientWithResponses) UploadAttachmentWithResponse(ctx context.Context, params *UploadAttachmentParams, body UploadAttachmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadAttachmentResp, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// AdminSubscribeEventsWithResponse request
AdminSubscribeEventsWithResponse(ctx context.Context, params *AdminSubscribeEventsParams, reqEditors ...RequestEditorFn) (*AdminSubscribeEventsResp, error)
// UploadAttachmentWithBodyWithResponse request with any body
UploadAttachmentWithBodyWithResponse(ctx context.Context, params *UploadAttachmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadAttachmentResp, error)
UploadAttachmentWithResponse(ctx context.Context, params *UploadAttachmentParams, body UploadAttachmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadAttachmentResp, error)
// DownloadAttachmentByTokenWithResponse request
DownloadAttachmentByTokenWithResponse(ctx context.Context, token string, filename string, params *DownloadAttachmentByTokenParams, reqEditors ...RequestEditorFn) (*DownloadAttachmentByTokenResp, error)
// DeleteAttachmentWithResponse request
DeleteAttachmentWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAttachmentResp, error)
// GetAttachmentWithResponse request
GetAttachmentWithResponse(ctx context.Context, id openapi_types.UUID, params *GetAttachmentParams, reqEditors ...RequestEditorFn) (*GetAttachmentResp, error)
// GetAttachmentDownloadUrlWithResponse request
GetAttachmentDownloadUrlWithResponse(ctx context.Context, id openapi_types.UUID, params *GetAttachmentDownloadUrlParams, reqEditors ...RequestEditorFn) (*GetAttachmentDownloadUrlResp, error)
// GetCapabilitiesWithResponse request
GetCapabilitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCapabilitiesResp, error)
// ListConversationsWithResponse request
ListConversationsWithResponse(ctx context.Context, params *ListConversationsParams, reqEditors ...RequestEditorFn) (*ListConversationsResp, error)
// CreateConversationWithBodyWithResponse request with any body
CreateConversationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateConversationResp, error)
CreateConversationWithResponse(ctx context.Context, body CreateConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateConversationResp, error)
// IndexConversationsWithBodyWithResponse request with any body
IndexConversationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IndexConversationsResp, error)
IndexConversationsWithResponse(ctx context.Context, body IndexConversationsJSONRequestBody, reqEditors ...RequestEditorFn) (*IndexConversationsResp, error)
// SearchConversationsWithBodyWithResponse request with any body
SearchConversationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchConversationsResp, error)
SearchConversationsWithResponse(ctx context.Context, body SearchConversationsJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchConversationsResp, error)
// ListUnindexedEntriesWithResponse request
ListUnindexedEntriesWithResponse(ctx context.Context, params *ListUnindexedEntriesParams, reqEditors ...RequestEditorFn) (*ListUnindexedEntriesResp, error)
// GetConversationWithResponse request
GetConversationWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*GetConversationResp, error)
// UpdateConversationWithBodyWithResponse request with any body
UpdateConversationWithBodyWithResponse(ctx context.Context, conversationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConversationResp, error)
UpdateConversationWithResponse(ctx context.Context, conversationId string, body UpdateConversationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConversationResp, error)
// ListConversationChildrenWithResponse request
ListConversationChildrenWithResponse(ctx context.Context, conversationId string, params *ListConversationChildrenParams, reqEditors ...RequestEditorFn) (*ListConversationChildrenResp, error)
// ListConversationEntriesWithResponse request
ListConversationEntriesWithResponse(ctx context.Context, conversationId string, params *ListConversationEntriesParams, reqEditors ...RequestEditorFn) (*ListConversationEntriesResp, error)
// AppendConversationEntryWithBodyWithResponse request with any body
AppendConversationEntryWithBodyWithResponse(ctx context.Context, conversationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppendConversationEntryResp, error)
AppendConversationEntryWithResponse(ctx context.Context, conversationId string, body AppendConversationEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*AppendConversationEntryResp, error)
// SyncConversationContextWithBodyWithResponse request with any body
SyncConversationContextWithBodyWithResponse(ctx context.Context, conversationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncConversationContextResp, error)
SyncConversationContextWithResponse(ctx context.Context, conversationId string, body SyncConversationContextJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncConversationContextResp, error)
// ListConversationForksWithResponse request
ListConversationForksWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*ListConversationForksResp, error)
// ListConversationMembershipsWithResponse request
ListConversationMembershipsWithResponse(ctx context.Context, conversationId string, params *ListConversationMembershipsParams, reqEditors ...RequestEditorFn) (*ListConversationMembershipsResp, error)
ShareConversationWithBodyWithResponse(ctx context.Context, conversationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ShareConversationResp, error)
// DeleteConversationMembershipWithResponse request
DeleteConversationMembershipWithResponse(ctx context.Context, conversationId string, userId string, reqEditors ...RequestEditorFn) (*DeleteConversationMembershipResp, error)
// UpdateConversationMembershipWithBodyWithResponse request with any body
UpdateConversationMembershipWithBodyWithResponse(ctx context.Context, conversationId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConversationMembershipResp, error)
UpdateConversationMembershipWithResponse(ctx context.Context, conversationId string, userId string, body UpdateConversationMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConversationMembershipResp, error)
// DeleteConversationResponseWithResponse request
DeleteConversationResponseWithResponse(ctx context.Context, conversationId string, reqEditors ...RequestEditorFn) (*DeleteConversationResponseResp, error)
// SubscribeEventsWithResponse request
SubscribeEventsWithResponse(ctx context.Context, params *SubscribeEventsParams, reqEditors ...RequestEditorFn) (*SubscribeEventsResp, error)
// GetMemoryWithResponse request
GetMemoryWithResponse(ctx context.Context, params *GetMemoryParams, reqEditors ...RequestEditorFn) (*GetMemoryResp, error)
// UpdateMemoryWithBodyWithResponse request with any body
UpdateMemoryWithBodyWithResponse(ctx context.Context, params *UpdateMemoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemoryResp, error)
UpdateMemoryWithResponse(ctx context.Context, params *UpdateMemoryParams, body UpdateMemoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemoryResp, error)
// PutMemoryWithBodyWithResponse request with any body
PutMemoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutMemoryResp, error)
PutMemoryWithResponse(ctx context.Context, body PutMemoryJSONRequestBody, reqEditors ...RequestEditorFn) (*PutMemoryResp, error)
// ListMemoryEventsWithResponse request
ListMemoryEventsWithResponse(ctx context.Context, params *ListMemoryEventsParams, reqEditors ...RequestEditorFn) (*ListMemoryEventsResp, error)
// ListMemoryNamespacesWithResponse request
ListMemoryNamespacesWithResponse(ctx context.Context, params *ListMemoryNamespacesParams, reqEditors ...RequestEditorFn) (*ListMemoryNamespacesResp, error)
// SearchMemoriesWithBodyWithResponse request with any body
SearchMemoriesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchMemoriesResp, error)
SearchMemoriesWithResponse(ctx context.Context, body SearchMemoriesJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchMemoriesResp, error)
// ListPendingTransfersWithResponse request
ListPendingTransfersWithResponse(ctx context.Context, params *ListPendingTransfersParams, reqEditors ...RequestEditorFn) (*ListPendingTransfersResp, error)
// CreateOwnershipTransferWithBodyWithResponse request with any body
CreateOwnershipTransferWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOwnershipTransferResp, error)
CreateOwnershipTransferWithResponse(ctx context.Context, body CreateOwnershipTransferJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOwnershipTransferResp, error)
// DeleteTransferWithResponse request
DeleteTransferWithResponse(ctx context.Context, transferId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteTransferResp, error)
// GetTransferWithResponse request
GetTransferWithResponse(ctx context.Context, transferId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTransferResp, error)
// AcceptTransferWithResponse request
AcceptTransferWithResponse(ctx context.Context, transferId openapi_types.UUID, reqEditors ...RequestEditorFn) (*AcceptTransferResp, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Conversation ¶
type Conversation struct {
// AccessLevel Access level of a user for a conversation.
AccessLevel *AccessLevel `json:"accessLevel,omitempty"`
// AgentId Optional logical agent associated with this conversation.
AgentId *string `json:"agentId,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"`
// Id Unique identifier for the conversation.
Id *string `json:"id,omitempty"`
LastMessagePreview *string `json:"lastMessagePreview,omitempty"`
OwnerUserId *string `json:"ownerUserId,omitempty"`
// StartedByConversationId Parent conversation that started this child conversation.
StartedByConversationId *string `json:"startedByConversationId,omitempty"`
// StartedByEntryId Parent entry that started this child conversation.
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 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 Access level of a user for a conversation.
AccessLevel *AccessLevel `json:"accessLevel,omitempty"`
// Archived Synthetic archive flag derived from the internal archived timestamp.
Archived *bool `json:"archived,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
// Id Unique identifier for the conversation.
Id *string `json:"id,omitempty"`
LastMessagePreview *string `json:"lastMessagePreview,omitempty"`
OwnerUserId *string `json:"ownerUserId,omitempty"`
StartedByConversationId *string `json:"startedByConversationId,omitempty"`
StartedByEntryId *openapi_types.UUID `json:"startedByEntryId,omitempty"`
Title *string `json:"title,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
ConversationSummary defines model for ConversationSummary.
type CreateConversationJSONRequestBody ¶
type CreateConversationJSONRequestBody = CreateConversationRequest
CreateConversationJSONRequestBody defines body for CreateConversation for application/json ContentType.
type CreateConversationRequest ¶
type CreateConversationRequest struct {
// AgentId Optional logical agent to associate with the new conversation.
AgentId *string `json:"agentId,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 *map[string]interface{} `json:"metadata,omitempty"`
Title *string `json:"title,omitempty"`
}
CreateConversationRequest defines model for CreateConversationRequest.
type CreateConversationResp ¶
type CreateConversationResp struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Conversation
JSONDefault *Error
}
func ParseCreateConversationResp ¶
func ParseCreateConversationResp(rsp *http.Response) (*CreateConversationResp, error)
ParseCreateConversationResp parses an HTTP response from a CreateConversationWithResponse call
func (CreateConversationResp) ContentType ¶
func (r CreateConversationResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateConversationResp) Status ¶
func (r CreateConversationResp) Status() string
Status returns HTTPResponse.Status
func (CreateConversationResp) StatusCode ¶
func (r CreateConversationResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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"`
// 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. Must be >= 0. Returns 409 Conflict if a duplicate seq is
// submitted. 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 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 CreateOwnershipTransferResp ¶
type CreateOwnershipTransferResp struct {
Body []byte
HTTPResponse *http.Response
JSON201 *OwnershipTransfer
JSON400 *Error
JSON403 *Error
JSON404 *NotFound
JSON409 *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"`
}
JSONDefault *Error
}
func ParseCreateOwnershipTransferResp ¶
func ParseCreateOwnershipTransferResp(rsp *http.Response) (*CreateOwnershipTransferResp, error)
ParseCreateOwnershipTransferResp parses an HTTP response from a CreateOwnershipTransferWithResponse call
func (CreateOwnershipTransferResp) ContentType ¶
func (r CreateOwnershipTransferResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateOwnershipTransferResp) Status ¶
func (r CreateOwnershipTransferResp) Status() string
Status returns HTTPResponse.Status
func (CreateOwnershipTransferResp) StatusCode ¶
func (r CreateOwnershipTransferResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteAttachmentResp ¶
type DeleteAttachmentResp struct {
Body []byte
HTTPResponse *http.Response
JSON403 *Error
JSON404 *NotFound
JSON409 *Error
JSONDefault *Error
}
func ParseDeleteAttachmentResp ¶
func ParseDeleteAttachmentResp(rsp *http.Response) (*DeleteAttachmentResp, error)
ParseDeleteAttachmentResp parses an HTTP response from a DeleteAttachmentWithResponse call
func (DeleteAttachmentResp) ContentType ¶
func (r DeleteAttachmentResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteAttachmentResp) Status ¶
func (r DeleteAttachmentResp) Status() string
Status returns HTTPResponse.Status
func (DeleteAttachmentResp) StatusCode ¶
func (r DeleteAttachmentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteConversationMembershipResp ¶
type DeleteConversationMembershipResp struct {
Body []byte
HTTPResponse *http.Response
JSON404 *NotFound
JSONDefault *Error
}
func ParseDeleteConversationMembershipResp ¶
func ParseDeleteConversationMembershipResp(rsp *http.Response) (*DeleteConversationMembershipResp, error)
ParseDeleteConversationMembershipResp parses an HTTP response from a DeleteConversationMembershipWithResponse call
func (DeleteConversationMembershipResp) ContentType ¶
func (r DeleteConversationMembershipResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteConversationMembershipResp) Status ¶
func (r DeleteConversationMembershipResp) Status() string
Status returns HTTPResponse.Status
func (DeleteConversationMembershipResp) StatusCode ¶
func (r DeleteConversationMembershipResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteConversationResponseResp ¶
type DeleteConversationResponseResp struct {
Body []byte
HTTPResponse *http.Response
JSON404 *NotFound
JSON409 *Error
JSONDefault *Error
}
func ParseDeleteConversationResponseResp ¶
func ParseDeleteConversationResponseResp(rsp *http.Response) (*DeleteConversationResponseResp, error)
ParseDeleteConversationResponseResp parses an HTTP response from a DeleteConversationResponseWithResponse call
func (DeleteConversationResponseResp) ContentType ¶
func (r DeleteConversationResponseResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteConversationResponseResp) Status ¶
func (r DeleteConversationResponseResp) Status() string
Status returns HTTPResponse.Status
func (DeleteConversationResponseResp) StatusCode ¶
func (r DeleteConversationResponseResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteTransferResp ¶
type DeleteTransferResp struct {
Body []byte
HTTPResponse *http.Response
JSON403 *Error
JSON404 *NotFound
JSONDefault *Error
}
func ParseDeleteTransferResp ¶
func ParseDeleteTransferResp(rsp *http.Response) (*DeleteTransferResp, error)
ParseDeleteTransferResp parses an HTTP response from a DeleteTransferWithResponse call
func (DeleteTransferResp) ContentType ¶
func (r DeleteTransferResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteTransferResp) Status ¶
func (r DeleteTransferResp) Status() string
Status returns HTTPResponse.Status
func (DeleteTransferResp) StatusCode ¶
func (r DeleteTransferResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 DownloadAttachmentByTokenResp ¶
type DownloadAttachmentByTokenResp struct {
Body []byte
HTTPResponse *http.Response
JSON404 *NotFound
JSONDefault *Error
}
func ParseDownloadAttachmentByTokenResp ¶
func ParseDownloadAttachmentByTokenResp(rsp *http.Response) (*DownloadAttachmentByTokenResp, error)
ParseDownloadAttachmentByTokenResp parses an HTTP response from a DownloadAttachmentByTokenWithResponse call
func (DownloadAttachmentByTokenResp) ContentType ¶
func (r DownloadAttachmentByTokenResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DownloadAttachmentByTokenResp) Status ¶
func (r DownloadAttachmentByTokenResp) Status() string
Status returns HTTPResponse.Status
func (DownloadAttachmentByTokenResp) StatusCode ¶
func (r DownloadAttachmentByTokenResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Entry ¶
type Entry struct {
// Channel Logical channel of the entry within the conversation.
Channel Channel `json:"channel"`
// Content Opaque, agent-defined content blocks.
// Different agents may use different schemas; the memory-service
// stores and returns them without interpretation.
//
// For history channel entries (contentType: `"history"`), each block
// contains `role` and at least one of `text`, `events`, or `attachments`.
Content []interface{} `json:"content"`
// ContentType Describes the schema/format of the content array.
//
// **History channel entries must use `"history"` or `"history/<subtype>"` as the contentType.**
//
// Supported content types:
// - `history` - Simple text-only history entries
// - `history/lc4j` - LangChain4j rich event format (Quarkus)
//
// The content array for history entries contains objects with:
// - `role` (string, required): Either `"USER"` or `"AI"`.
// - `text` (string, optional): The message text. At least one of `text`, `events`, or `attachments` must be present.
// - `events` (array, optional): Rich event objects for streaming details.
// Event structure is not validated by the server. For `history/lc4j`, events use an `eventType` field:
// - `PartialResponse`: Text chunk (`{eventType, chunk}`)
// - `PartialThinking`: Reasoning chunk (`{eventType, chunk}`)
// - `BeforeToolExecution`: Before tool call (`{eventType, toolName, input}`)
// - `ToolExecuted`: Tool result (`{eventType, toolName, output}`)
// - `attachments` (array, optional): Array of `Attachment` objects referencing external resources (images, audio, video, documents).
//
// Other contentTypes (e.g., `"LC4J"`, `"SpringAI"`) may be used for
// agent context entries.
ContentType string `json:"contentType"`
// ConversationId Unique identifier for the conversation this entry belongs to.
ConversationId 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"`
// 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 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 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 GetAttachmentDownloadUrlResp ¶
type GetAttachmentDownloadUrlResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AttachmentDownloadUrlResponse
JSON403 *Error
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetAttachmentDownloadUrlResp ¶
func ParseGetAttachmentDownloadUrlResp(rsp *http.Response) (*GetAttachmentDownloadUrlResp, error)
ParseGetAttachmentDownloadUrlResp parses an HTTP response from a GetAttachmentDownloadUrlWithResponse call
func (GetAttachmentDownloadUrlResp) ContentType ¶
func (r GetAttachmentDownloadUrlResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAttachmentDownloadUrlResp) Status ¶
func (r GetAttachmentDownloadUrlResp) Status() string
Status returns HTTPResponse.Status
func (GetAttachmentDownloadUrlResp) StatusCode ¶
func (r GetAttachmentDownloadUrlResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 GetAttachmentResp ¶
type GetAttachmentResp struct {
Body []byte
HTTPResponse *http.Response
JSON403 *Error
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetAttachmentResp ¶
func ParseGetAttachmentResp(rsp *http.Response) (*GetAttachmentResp, error)
ParseGetAttachmentResp parses an HTTP response from a GetAttachmentWithResponse call
func (GetAttachmentResp) ContentType ¶
func (r GetAttachmentResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAttachmentResp) Status ¶
func (r GetAttachmentResp) Status() string
Status returns HTTPResponse.Status
func (GetAttachmentResp) StatusCode ¶
func (r GetAttachmentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCapabilitiesResp ¶
type GetCapabilitiesResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CapabilitiesResponse
JSONDefault *Error
}
func ParseGetCapabilitiesResp ¶
func ParseGetCapabilitiesResp(rsp *http.Response) (*GetCapabilitiesResp, error)
ParseGetCapabilitiesResp parses an HTTP response from a GetCapabilitiesWithResponse call
func (GetCapabilitiesResp) ContentType ¶
func (r GetCapabilitiesResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetCapabilitiesResp) Status ¶
func (r GetCapabilitiesResp) Status() string
Status returns HTTPResponse.Status
func (GetCapabilitiesResp) StatusCode ¶
func (r GetCapabilitiesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetConversationResp ¶
type GetConversationResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Conversation
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetConversationResp ¶
func ParseGetConversationResp(rsp *http.Response) (*GetConversationResp, error)
ParseGetConversationResp parses an HTTP response from a GetConversationWithResponse call
func (GetConversationResp) ContentType ¶
func (r GetConversationResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetConversationResp) Status ¶
func (r GetConversationResp) Status() string
Status returns HTTPResponse.Status
func (GetConversationResp) StatusCode ¶
func (r GetConversationResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 GetMemoryResp ¶
type GetMemoryResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MemoryItem
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetMemoryResp ¶
func ParseGetMemoryResp(rsp *http.Response) (*GetMemoryResp, error)
ParseGetMemoryResp parses an HTTP response from a GetMemoryWithResponse call
func (GetMemoryResp) ContentType ¶
func (r GetMemoryResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetMemoryResp) Status ¶
func (r GetMemoryResp) Status() string
Status returns HTTPResponse.Status
func (GetMemoryResp) StatusCode ¶
func (r GetMemoryResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTransferResp ¶
type GetTransferResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OwnershipTransfer
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetTransferResp ¶
func ParseGetTransferResp(rsp *http.Response) (*GetTransferResp, error)
ParseGetTransferResp parses an HTTP response from a GetTransferWithResponse call
func (GetTransferResp) ContentType ¶
func (r GetTransferResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetTransferResp) Status ¶
func (r GetTransferResp) Status() string
Status returns HTTPResponse.Status
func (GetTransferResp) StatusCode ¶
func (r GetTransferResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
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 IndexConversationsResp ¶
type IndexConversationsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *IndexConversationsResponse
JSON403 *Error
JSON404 *NotFound
JSONDefault *Error
}
func ParseIndexConversationsResp ¶
func ParseIndexConversationsResp(rsp *http.Response) (*IndexConversationsResp, error)
ParseIndexConversationsResp parses an HTTP response from a IndexConversationsWithResponse call
func (IndexConversationsResp) ContentType ¶
func (r IndexConversationsResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (IndexConversationsResp) Status ¶
func (r IndexConversationsResp) Status() string
Status returns HTTPResponse.Status
func (IndexConversationsResp) StatusCode ¶
func (r IndexConversationsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 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 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 ListConversationChildrenResp ¶
type ListConversationChildrenResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
AfterCursor *string `json:"afterCursor,omitempty"`
Data *[]ChildConversationSummary `json:"data,omitempty"`
}
JSONDefault *Error
}
func ParseListConversationChildrenResp ¶
func ParseListConversationChildrenResp(rsp *http.Response) (*ListConversationChildrenResp, error)
ParseListConversationChildrenResp parses an HTTP response from a ListConversationChildrenWithResponse call
func (ListConversationChildrenResp) ContentType ¶
func (r ListConversationChildrenResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListConversationChildrenResp) Status ¶
func (r ListConversationChildrenResp) Status() string
Status returns HTTPResponse.Status
func (ListConversationChildrenResp) StatusCode ¶
func (r ListConversationChildrenResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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"`
}
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 ListConversationEntriesResp ¶
type ListConversationEntriesResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *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"`
}
JSON400 *BadRequest
JSON404 *NotFound
JSONDefault *Error
}
func ParseListConversationEntriesResp ¶
func ParseListConversationEntriesResp(rsp *http.Response) (*ListConversationEntriesResp, error)
ParseListConversationEntriesResp parses an HTTP response from a ListConversationEntriesWithResponse call
func (ListConversationEntriesResp) ContentType ¶
func (r ListConversationEntriesResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListConversationEntriesResp) Status ¶
func (r ListConversationEntriesResp) Status() string
Status returns HTTPResponse.Status
func (ListConversationEntriesResp) StatusCode ¶
func (r ListConversationEntriesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListConversationForksResp ¶
type ListConversationForksResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ConversationForkNavigation
JSON404 *NotFound
JSONDefault *Error
}
func ParseListConversationForksResp ¶
func ParseListConversationForksResp(rsp *http.Response) (*ListConversationForksResp, error)
ParseListConversationForksResp parses an HTTP response from a ListConversationForksWithResponse call
func (ListConversationForksResp) ContentType ¶
func (r ListConversationForksResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListConversationForksResp) Status ¶
func (r ListConversationForksResp) Status() string
Status returns HTTPResponse.Status
func (ListConversationForksResp) StatusCode ¶
func (r ListConversationForksResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 ListConversationMembershipsResp ¶
type ListConversationMembershipsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
AfterCursor *string `json:"afterCursor,omitempty"`
Data *[]ConversationMembership `json:"data,omitempty"`
}
JSON404 *NotFound
JSONDefault *Error
}
func ParseListConversationMembershipsResp ¶
func ParseListConversationMembershipsResp(rsp *http.Response) (*ListConversationMembershipsResp, error)
ParseListConversationMembershipsResp parses an HTTP response from a ListConversationMembershipsWithResponse call
func (ListConversationMembershipsResp) ContentType ¶
func (r ListConversationMembershipsResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListConversationMembershipsResp) Status ¶
func (r ListConversationMembershipsResp) Status() string
Status returns HTTPResponse.Status
func (ListConversationMembershipsResp) StatusCode ¶
func (r ListConversationMembershipsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListConversationsParams ¶
type ListConversationsParams struct {
// Mode Listing mode for conversations. Controls which conversations are returned
// from each fork tree (conversation group).
// - `all`: include all conversations the user can access (roots and forks).
// - `roots`: only include root conversations (conversations that are not forks).
// - `latest-fork`: include only the most recently updated conversation per fork tree.
// This is useful for showing a single representative conversation from each tree.
Mode *ListConversationsParamsMode `form:"mode,omitempty" json:"mode,omitempty"`
// Ancestry Started-conversation ancestry filter.
// - `roots`: include only top-level conversations not started from another conversation.
// - `children`: include only conversations started from another conversation.
// - `all`: include both root and child conversations.
Ancestry *ListConversationsParamsAncestry `form:"ancestry,omitempty" json:"ancestry,omitempty"`
// AfterCursor Cursor for pagination; returns items after this conversation id.
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"`
}
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 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 ListConversationsResp ¶
type ListConversationsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
AfterCursor *string `json:"afterCursor,omitempty"`
Data *[]ConversationSummary `json:"data,omitempty"`
}
JSONDefault *Error
}
func ParseListConversationsResp ¶
func ParseListConversationsResp(rsp *http.Response) (*ListConversationsResp, error)
ParseListConversationsResp parses an HTTP response from a ListConversationsWithResponse call
func (ListConversationsResp) ContentType ¶
func (r ListConversationsResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListConversationsResp) Status ¶
func (r ListConversationsResp) Status() string
Status returns HTTPResponse.Status
func (ListConversationsResp) StatusCode ¶
func (r ListConversationsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 ListMemoryEventsResp ¶
type ListMemoryEventsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListMemoryEventsResponse
JSONDefault *Error
}
func ParseListMemoryEventsResp ¶
func ParseListMemoryEventsResp(rsp *http.Response) (*ListMemoryEventsResp, error)
ParseListMemoryEventsResp parses an HTTP response from a ListMemoryEventsWithResponse call
func (ListMemoryEventsResp) ContentType ¶
func (r ListMemoryEventsResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListMemoryEventsResp) Status ¶
func (r ListMemoryEventsResp) Status() string
Status returns HTTPResponse.Status
func (ListMemoryEventsResp) StatusCode ¶
func (r ListMemoryEventsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMemoryEventsResponse ¶
type ListMemoryEventsResponse struct {
AfterCursor *string `json:"after_cursor,omitempty"`
Events *[]MemoryEventItem `json:"events,omitempty"`
}
ListMemoryEventsResponse defines model for ListMemoryEventsResponse.
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 ListMemoryNamespacesResp ¶
type ListMemoryNamespacesResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListMemoryNamespacesResponse
JSONDefault *Error
}
func ParseListMemoryNamespacesResp ¶
func ParseListMemoryNamespacesResp(rsp *http.Response) (*ListMemoryNamespacesResp, error)
ParseListMemoryNamespacesResp parses an HTTP response from a ListMemoryNamespacesWithResponse call
func (ListMemoryNamespacesResp) ContentType ¶
func (r ListMemoryNamespacesResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListMemoryNamespacesResp) Status ¶
func (r ListMemoryNamespacesResp) Status() string
Status returns HTTPResponse.Status
func (ListMemoryNamespacesResp) StatusCode ¶
func (r ListMemoryNamespacesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMemoryNamespacesResponse ¶
type ListMemoryNamespacesResponse struct {
Namespaces *[][]string `json:"namespaces,omitempty"`
}
ListMemoryNamespacesResponse defines model for ListMemoryNamespacesResponse.
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 ListPendingTransfersResp ¶
type ListPendingTransfersResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
AfterCursor *string `json:"afterCursor,omitempty"`
Data *[]OwnershipTransfer `json:"data,omitempty"`
}
JSONDefault *Error
}
func ParseListPendingTransfersResp ¶
func ParseListPendingTransfersResp(rsp *http.Response) (*ListPendingTransfersResp, error)
ParseListPendingTransfersResp parses an HTTP response from a ListPendingTransfersWithResponse call
func (ListPendingTransfersResp) ContentType ¶
func (r ListPendingTransfersResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListPendingTransfersResp) Status ¶
func (r ListPendingTransfersResp) Status() string
Status returns HTTPResponse.Status
func (ListPendingTransfersResp) StatusCode ¶
func (r ListPendingTransfersResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 ListUnindexedEntriesResp ¶
type ListUnindexedEntriesResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UnindexedEntriesResponse
JSON403 *Error
JSONDefault *Error
}
func ParseListUnindexedEntriesResp ¶
func ParseListUnindexedEntriesResp(rsp *http.Response) (*ListUnindexedEntriesResp, error)
ParseListUnindexedEntriesResp parses an HTTP response from a ListUnindexedEntriesWithResponse call
func (ListUnindexedEntriesResp) ContentType ¶
func (r ListUnindexedEntriesResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListUnindexedEntriesResp) Status ¶
func (r ListUnindexedEntriesResp) Status() string
Status returns HTTPResponse.Status
func (ListUnindexedEntriesResp) StatusCode ¶
func (r ListUnindexedEntriesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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"`
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"`
// 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"`
Namespace *[]string `json:"namespace,omitempty"`
Revision *int64 `json:"revision,omitempty"`
}
MemoryWriteResult defines model for MemoryWriteResult.
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 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"`
Namespace []string `json:"namespace"`
TtlSeconds *int `json:"ttl_seconds,omitempty"`
Value map[string]interface{} `json:"value"`
}
PutMemoryRequest defines model for PutMemoryRequest.
type PutMemoryResp ¶
type PutMemoryResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MemoryWriteResult
JSONDefault *Error
}
func ParsePutMemoryResp ¶
func ParsePutMemoryResp(rsp *http.Response) (*PutMemoryResp, error)
ParsePutMemoryResp parses an HTTP response from a PutMemoryWithResponse call
func (PutMemoryResp) ContentType ¶
func (r PutMemoryResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PutMemoryResp) Status ¶
func (r PutMemoryResp) Status() string
Status returns HTTPResponse.Status
func (PutMemoryResp) StatusCode ¶
func (r PutMemoryResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
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 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 SearchConversationsResp ¶
type SearchConversationsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
AfterCursor *string `json:"afterCursor,omitempty"`
Data *[]SearchResult `json:"data,omitempty"`
}
JSON501 *SearchTypeUnavailable
JSONDefault *Error
}
func ParseSearchConversationsResp ¶
func ParseSearchConversationsResp(rsp *http.Response) (*SearchConversationsResp, error)
ParseSearchConversationsResp parses an HTTP response from a SearchConversationsWithResponse call
func (SearchConversationsResp) ContentType ¶
func (r SearchConversationsResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SearchConversationsResp) Status ¶
func (r SearchConversationsResp) Status() string
Status returns HTTPResponse.Status
func (SearchConversationsResp) StatusCode ¶
func (r SearchConversationsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 SearchMemoriesJSONRequestBody ¶
type SearchMemoriesJSONRequestBody = SearchMemoriesRequest
SearchMemoriesJSONRequestBody defines body for SearchMemories for application/json ContentType.
type SearchMemoriesRequest ¶
type SearchMemoriesRequest struct {
Archived *SearchMemoriesRequestArchived `json:"archived,omitempty"`
Filter *map[string]interface{} `json:"filter,omitempty"`
IncludeUsage *bool `json:"include_usage,omitempty"`
// Limit 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"`
}
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 SearchMemoriesResp ¶
type SearchMemoriesResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SearchMemoriesResponse
JSONDefault *Error
}
func ParseSearchMemoriesResp ¶
func ParseSearchMemoriesResp(rsp *http.Response) (*SearchMemoriesResp, error)
ParseSearchMemoriesResp parses an HTTP response from a SearchMemoriesWithResponse call
func (SearchMemoriesResp) ContentType ¶
func (r SearchMemoriesResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SearchMemoriesResp) Status ¶
func (r SearchMemoriesResp) Status() string
Status returns HTTPResponse.Status
func (SearchMemoriesResp) StatusCode ¶
func (r SearchMemoriesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SearchMemoriesResponse ¶
type SearchMemoriesResponse struct {
Items *[]MemoryItem `json:"items,omitempty"`
}
SearchMemoriesResponse defines model for SearchMemoriesResponse.
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 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 ShareConversationResp ¶
type ShareConversationResp struct {
}
func ParseShareConversationResp ¶
func ParseShareConversationResp(rsp *http.Response) (*ShareConversationResp, error)
ParseShareConversationResp parses an HTTP response from a ShareConversationWithResponse call
func (ShareConversationResp) ContentType ¶
func (r ShareConversationResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ShareConversationResp) Status ¶
func (r ShareConversationResp) Status() string
Status returns HTTPResponse.Status
func (ShareConversationResp) StatusCode ¶
func (r ShareConversationResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 SubscribeEventsResp ¶
func ParseSubscribeEventsResp ¶
func ParseSubscribeEventsResp(rsp *http.Response) (*SubscribeEventsResp, error)
ParseSubscribeEventsResp parses an HTTP response from a SubscribeEventsWithResponse call
func (SubscribeEventsResp) ContentType ¶
func (r SubscribeEventsResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SubscribeEventsResp) Status ¶
func (r SubscribeEventsResp) Status() string
Status returns HTTPResponse.Status
func (SubscribeEventsResp) StatusCode ¶
func (r SubscribeEventsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SyncConversationContextJSONRequestBody ¶
type SyncConversationContextJSONRequestBody = CreateEntryRequest
SyncConversationContextJSONRequestBody defines body for SyncConversationContext for application/json ContentType.
type SyncConversationContextResp ¶
type SyncConversationContextResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SyncEntryResponse
JSON404 *NotFound
JSONDefault *Error
}
func ParseSyncConversationContextResp ¶
func ParseSyncConversationContextResp(rsp *http.Response) (*SyncConversationContextResp, error)
ParseSyncConversationContextResp parses an HTTP response from a SyncConversationContextWithResponse call
func (SyncConversationContextResp) ContentType ¶
func (r SyncConversationContextResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SyncConversationContextResp) Status ¶
func (r SyncConversationContextResp) Status() string
Status returns HTTPResponse.Status
func (SyncConversationContextResp) StatusCode ¶
func (r SyncConversationContextResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 UpdateConversationJSONRequestBody ¶
type UpdateConversationJSONRequestBody = UpdateConversationRequest
UpdateConversationJSONRequestBody defines body for UpdateConversation for application/json ContentType.
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 UpdateConversationMembershipResp ¶
type UpdateConversationMembershipResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ConversationMembership
JSON404 *NotFound
JSONDefault *Error
}
func ParseUpdateConversationMembershipResp ¶
func ParseUpdateConversationMembershipResp(rsp *http.Response) (*UpdateConversationMembershipResp, error)
ParseUpdateConversationMembershipResp parses an HTTP response from a UpdateConversationMembershipWithResponse call
func (UpdateConversationMembershipResp) ContentType ¶
func (r UpdateConversationMembershipResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateConversationMembershipResp) Status ¶
func (r UpdateConversationMembershipResp) Status() string
Status returns HTTPResponse.Status
func (UpdateConversationMembershipResp) StatusCode ¶
func (r UpdateConversationMembershipResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateConversationRequest ¶
type UpdateConversationRequest struct {
// Archived Set to `true` to archive the conversation and its fork tree.
Archived *bool `json:"archived,omitempty"`
Title *string `json:"title,omitempty"`
}
UpdateConversationRequest defines model for UpdateConversationRequest.
type UpdateConversationResp ¶
type UpdateConversationResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Conversation
JSON404 *NotFound
JSONDefault *Error
}
func ParseUpdateConversationResp ¶
func ParseUpdateConversationResp(rsp *http.Response) (*UpdateConversationResp, error)
ParseUpdateConversationResp parses an HTTP response from a UpdateConversationWithResponse call
func (UpdateConversationResp) ContentType ¶
func (r UpdateConversationResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateConversationResp) Status ¶
func (r UpdateConversationResp) Status() string
Status returns HTTPResponse.Status
func (UpdateConversationResp) StatusCode ¶
func (r UpdateConversationResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 UpdateMemoryResp ¶
func ParseUpdateMemoryResp ¶
func ParseUpdateMemoryResp(rsp *http.Response) (*UpdateMemoryResp, error)
ParseUpdateMemoryResp parses an HTTP response from a UpdateMemoryWithResponse call
func (UpdateMemoryResp) ContentType ¶
func (r UpdateMemoryResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateMemoryResp) Status ¶
func (r UpdateMemoryResp) Status() string
Status returns HTTPResponse.Status
func (UpdateMemoryResp) StatusCode ¶
func (r UpdateMemoryResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 UploadAttachmentResp ¶
type UploadAttachmentResp struct {
Body []byte
HTTPResponse *http.Response
JSON201 *AttachmentUploadResponse
JSON400 *Error
JSON413 *ErrorResponse
JSONDefault *Error
}
func ParseUploadAttachmentResp ¶
func ParseUploadAttachmentResp(rsp *http.Response) (*UploadAttachmentResp, error)
ParseUploadAttachmentResp parses an HTTP response from a UploadAttachmentWithResponse call
func (UploadAttachmentResp) ContentType ¶
func (r UploadAttachmentResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UploadAttachmentResp) Status ¶
func (r UploadAttachmentResp) Status() string
Status returns HTTPResponse.Status
func (UploadAttachmentResp) StatusCode ¶
func (r UploadAttachmentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode