admin

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

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

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

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

Index

Constants

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

Variables

This section is empty.

Functions

func GetSwagger

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

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

func PathToRawSpec

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

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

func RegisterHandlers

func RegisterHandlers(router gin.IRouter, si ServerInterface)

RegisterHandlers creates http.Handler with routing matching OpenAPI spec.

func RegisterHandlersWithOptions

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

RegisterHandlersWithOptions creates http.Handler with additional options

Types

type AccessLevel

type AccessLevel string

AccessLevel Access level of a user for a conversation.

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

Defines values for AccessLevel.

type AdminActionRequest

type AdminActionRequest struct {
	// Justification Reason for the admin action (for audit log).
	Justification *string `json:"justification,omitempty"`
}

AdminActionRequest defines model for AdminActionRequest.

type AdminArchivedTotalStats

type AdminArchivedTotalStats struct {
	Archived int64 `json:"archived"`

	// OldestArchivedAt Oldest archive timestamp for that resource type.
	OldestArchivedAt *time.Time `json:"oldestArchivedAt"`
	Total            int64      `json:"total"`
}

AdminArchivedTotalStats defines model for AdminArchivedTotalStats.

type AdminAttachment

type AdminAttachment struct {
	// Archived Synthetic archive flag derived from the internal archived timestamp.
	Archived    *bool               `json:"archived,omitempty"`
	ContentType *string             `json:"contentType,omitempty"`
	CreatedAt   *time.Time          `json:"createdAt,omitempty"`
	EntryId     *openapi_types.UUID `json:"entryId"`
	ExpiresAt   *time.Time          `json:"expiresAt"`
	Filename    *string             `json:"filename,omitempty"`
	Id          *openapi_types.UUID `json:"id,omitempty"`

	// RefCount Number of attachment records sharing the same storage blob.
	RefCount   *int    `json:"refCount,omitempty"`
	Sha256     *string `json:"sha256,omitempty"`
	Size       *int64  `json:"size,omitempty"`
	StorageKey *string `json:"storageKey,omitempty"`
	UserId     *string `json:"userId,omitempty"`
}

AdminAttachment defines model for AdminAttachment.

type AdminChildConversationSummary

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

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

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

AdminChildConversationSummary defines model for AdminChildConversationSummary.

type AdminConversation

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

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

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

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

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

AdminConversation defines model for AdminConversation.

type AdminConversationGroupStats

type AdminConversationGroupStats struct {
	Archived int64 `json:"archived"`

	// OldestArchivedAt Oldest `updatedAt` timestamp among archived conversations.
	OldestArchivedAt *time.Time `json:"oldestArchivedAt"`
	Total            int64      `json:"total"`
}

AdminConversationGroupStats defines model for AdminConversationGroupStats.

type AdminConversationSummary

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

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

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

AdminConversationSummary defines model for AdminConversationSummary.

type AdminDeleteAttachment204Response

type AdminDeleteAttachment204Response struct {
}

func (AdminDeleteAttachment204Response) VisitAdminDeleteAttachmentResponse

func (response AdminDeleteAttachment204Response) VisitAdminDeleteAttachmentResponse(w http.ResponseWriter) error

type AdminDeleteAttachment404JSONResponse

type AdminDeleteAttachment404JSONResponse struct{ NotFoundJSONResponse }

func (AdminDeleteAttachment404JSONResponse) VisitAdminDeleteAttachmentResponse

func (response AdminDeleteAttachment404JSONResponse) VisitAdminDeleteAttachmentResponse(w http.ResponseWriter) error

type AdminDeleteAttachmentJSONRequestBody

type AdminDeleteAttachmentJSONRequestBody = AdminActionRequest

AdminDeleteAttachmentJSONRequestBody defines body for AdminDeleteAttachment for application/json ContentType.

type AdminDeleteAttachmentRequestObject

type AdminDeleteAttachmentRequestObject struct {
	Id   openapi_types.UUID `json:"id"`
	Body *AdminDeleteAttachmentJSONRequestBody
}

type AdminDeleteAttachmentResponseObject

type AdminDeleteAttachmentResponseObject interface {
	VisitAdminDeleteAttachmentResponse(w http.ResponseWriter) error
}

type AdminDeleteAttachmentdefaultJSONResponse

type AdminDeleteAttachmentdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminDeleteAttachmentdefaultJSONResponse) VisitAdminDeleteAttachmentResponse

func (response AdminDeleteAttachmentdefaultJSONResponse) VisitAdminDeleteAttachmentResponse(w http.ResponseWriter) error

type AdminDeleteMemory204Response

type AdminDeleteMemory204Response struct {
}

func (AdminDeleteMemory204Response) VisitAdminDeleteMemoryResponse

func (response AdminDeleteMemory204Response) VisitAdminDeleteMemoryResponse(w http.ResponseWriter) error

type AdminDeleteMemoryRequestObject

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

type AdminDeleteMemoryResponseObject

type AdminDeleteMemoryResponseObject interface {
	VisitAdminDeleteMemoryResponse(w http.ResponseWriter) error
}

type AdminDeleteMemorydefaultJSONResponse

type AdminDeleteMemorydefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminDeleteMemorydefaultJSONResponse) VisitAdminDeleteMemoryResponse

func (response AdminDeleteMemorydefaultJSONResponse) VisitAdminDeleteMemoryResponse(w http.ResponseWriter) error

type AdminDownloadUrlResponse

type AdminDownloadUrlResponse struct {
	// ExpiresIn URL validity duration in seconds.
	ExpiresIn *int `json:"expiresIn,omitempty"`

	// Url Time-limited signed URL for downloading the attachment.
	Url *string `json:"url,omitempty"`
}

AdminDownloadUrlResponse defines model for AdminDownloadUrlResponse.

type AdminEvict200TexteventStreamResponse

type AdminEvict200TexteventStreamResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (AdminEvict200TexteventStreamResponse) VisitAdminEvictResponse

func (response AdminEvict200TexteventStreamResponse) VisitAdminEvictResponse(w http.ResponseWriter) error

type AdminEvict204Response

type AdminEvict204Response struct {
}

func (AdminEvict204Response) VisitAdminEvictResponse

func (response AdminEvict204Response) VisitAdminEvictResponse(w http.ResponseWriter) error

type AdminEvict400JSONResponse

type AdminEvict400JSONResponse ErrorResponse

func (AdminEvict400JSONResponse) VisitAdminEvictResponse

func (response AdminEvict400JSONResponse) VisitAdminEvictResponse(w http.ResponseWriter) error

type AdminEvictJSONRequestBody

type AdminEvictJSONRequestBody = EvictRequest

AdminEvictJSONRequestBody defines body for AdminEvict for application/json ContentType.

type AdminEvictParams

type AdminEvictParams struct {
	// Async Stream progress updates via SSE instead of blocking until complete.
	Async *bool `form:"async,omitempty" json:"async,omitempty"`
}

AdminEvictParams defines parameters for AdminEvict.

type AdminEvictRequestObject

type AdminEvictRequestObject struct {
	Params AdminEvictParams
	Body   *AdminEvictJSONRequestBody
}

type AdminEvictResponseObject

type AdminEvictResponseObject interface {
	VisitAdminEvictResponse(w http.ResponseWriter) error
}

type AdminEvictdefaultJSONResponse

type AdminEvictdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminEvictdefaultJSONResponse) VisitAdminEvictResponse

func (response AdminEvictdefaultJSONResponse) VisitAdminEvictResponse(w http.ResponseWriter) error

type AdminGetAttachment200JSONResponse

type AdminGetAttachment200JSONResponse AdminAttachment

func (AdminGetAttachment200JSONResponse) VisitAdminGetAttachmentResponse

func (response AdminGetAttachment200JSONResponse) VisitAdminGetAttachmentResponse(w http.ResponseWriter) error

type AdminGetAttachment404JSONResponse

type AdminGetAttachment404JSONResponse struct{ NotFoundJSONResponse }

func (AdminGetAttachment404JSONResponse) VisitAdminGetAttachmentResponse

func (response AdminGetAttachment404JSONResponse) VisitAdminGetAttachmentResponse(w http.ResponseWriter) error

type AdminGetAttachmentContent200ApplicationoctetStreamResponse

type AdminGetAttachmentContent200ApplicationoctetStreamResponse struct {
	Body          io.Reader
	Headers       AdminGetAttachmentContent200ResponseHeaders
	ContentLength int64
}

func (AdminGetAttachmentContent200ApplicationoctetStreamResponse) VisitAdminGetAttachmentContentResponse

func (response AdminGetAttachmentContent200ApplicationoctetStreamResponse) VisitAdminGetAttachmentContentResponse(w http.ResponseWriter) error

type AdminGetAttachmentContent200ResponseHeaders

type AdminGetAttachmentContent200ResponseHeaders struct {
	CacheControl string
}

type AdminGetAttachmentContent302Response

type AdminGetAttachmentContent302Response struct {
	Headers AdminGetAttachmentContent302ResponseHeaders
}

func (AdminGetAttachmentContent302Response) VisitAdminGetAttachmentContentResponse

func (response AdminGetAttachmentContent302Response) VisitAdminGetAttachmentContentResponse(w http.ResponseWriter) error

type AdminGetAttachmentContent302ResponseHeaders

type AdminGetAttachmentContent302ResponseHeaders struct {
	CacheControl string
}

type AdminGetAttachmentContent404JSONResponse

type AdminGetAttachmentContent404JSONResponse struct{ NotFoundJSONResponse }

func (AdminGetAttachmentContent404JSONResponse) VisitAdminGetAttachmentContentResponse

func (response AdminGetAttachmentContent404JSONResponse) VisitAdminGetAttachmentContentResponse(w http.ResponseWriter) error

type AdminGetAttachmentContentParams

type AdminGetAttachmentContentParams struct {
	// Justification Reason for this admin action (for audit log).
	Justification *string `form:"justification,omitempty" json:"justification,omitempty"`
}

AdminGetAttachmentContentParams defines parameters for AdminGetAttachmentContent.

type AdminGetAttachmentContentRequestObject

type AdminGetAttachmentContentRequestObject struct {
	Id     openapi_types.UUID `json:"id"`
	Params AdminGetAttachmentContentParams
}

type AdminGetAttachmentContentResponseObject

type AdminGetAttachmentContentResponseObject interface {
	VisitAdminGetAttachmentContentResponse(w http.ResponseWriter) error
}

type AdminGetAttachmentContentdefaultJSONResponse

type AdminGetAttachmentContentdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminGetAttachmentContentdefaultJSONResponse) VisitAdminGetAttachmentContentResponse

func (response AdminGetAttachmentContentdefaultJSONResponse) VisitAdminGetAttachmentContentResponse(w http.ResponseWriter) error

type AdminGetAttachmentDownloadUrl200JSONResponse

type AdminGetAttachmentDownloadUrl200JSONResponse AdminDownloadUrlResponse

func (AdminGetAttachmentDownloadUrl200JSONResponse) VisitAdminGetAttachmentDownloadUrlResponse

func (response AdminGetAttachmentDownloadUrl200JSONResponse) VisitAdminGetAttachmentDownloadUrlResponse(w http.ResponseWriter) error

type AdminGetAttachmentDownloadUrl404JSONResponse

type AdminGetAttachmentDownloadUrl404JSONResponse struct{ NotFoundJSONResponse }

func (AdminGetAttachmentDownloadUrl404JSONResponse) VisitAdminGetAttachmentDownloadUrlResponse

func (response AdminGetAttachmentDownloadUrl404JSONResponse) VisitAdminGetAttachmentDownloadUrlResponse(w http.ResponseWriter) error

type AdminGetAttachmentDownloadUrlParams

type AdminGetAttachmentDownloadUrlParams struct {
	// Justification Reason for this admin action (for audit log).
	Justification *string `form:"justification,omitempty" json:"justification,omitempty"`
}

AdminGetAttachmentDownloadUrlParams defines parameters for AdminGetAttachmentDownloadUrl.

type AdminGetAttachmentDownloadUrlRequestObject

type AdminGetAttachmentDownloadUrlRequestObject struct {
	Id     openapi_types.UUID `json:"id"`
	Params AdminGetAttachmentDownloadUrlParams
}

type AdminGetAttachmentDownloadUrlResponseObject

type AdminGetAttachmentDownloadUrlResponseObject interface {
	VisitAdminGetAttachmentDownloadUrlResponse(w http.ResponseWriter) error
}

type AdminGetAttachmentDownloadUrldefaultJSONResponse

type AdminGetAttachmentDownloadUrldefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminGetAttachmentDownloadUrldefaultJSONResponse) VisitAdminGetAttachmentDownloadUrlResponse

func (response AdminGetAttachmentDownloadUrldefaultJSONResponse) VisitAdminGetAttachmentDownloadUrlResponse(w http.ResponseWriter) error

type AdminGetAttachmentParams

type AdminGetAttachmentParams struct {
	// Justification Reason for this admin action (for audit log).
	Justification *string `form:"justification,omitempty" json:"justification,omitempty"`
}

AdminGetAttachmentParams defines parameters for AdminGetAttachment.

type AdminGetAttachmentRequestObject

type AdminGetAttachmentRequestObject struct {
	Id     openapi_types.UUID `json:"id"`
	Params AdminGetAttachmentParams
}

type AdminGetAttachmentResponseObject

type AdminGetAttachmentResponseObject interface {
	VisitAdminGetAttachmentResponse(w http.ResponseWriter) error
}

type AdminGetAttachmentdefaultJSONResponse

type AdminGetAttachmentdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminGetAttachmentdefaultJSONResponse) VisitAdminGetAttachmentResponse

func (response AdminGetAttachmentdefaultJSONResponse) VisitAdminGetAttachmentResponse(w http.ResponseWriter) error

type AdminGetConversation200JSONResponse

type AdminGetConversation200JSONResponse AdminConversation

func (AdminGetConversation200JSONResponse) VisitAdminGetConversationResponse

func (response AdminGetConversation200JSONResponse) VisitAdminGetConversationResponse(w http.ResponseWriter) error

type AdminGetConversation404JSONResponse

type AdminGetConversation404JSONResponse struct{ NotFoundJSONResponse }

func (AdminGetConversation404JSONResponse) VisitAdminGetConversationResponse

func (response AdminGetConversation404JSONResponse) VisitAdminGetConversationResponse(w http.ResponseWriter) error

type AdminGetConversationParams

type AdminGetConversationParams struct {
	// Justification Reason for this admin action (for audit log).
	Justification *string `form:"justification,omitempty" json:"justification,omitempty"`
}

AdminGetConversationParams defines parameters for AdminGetConversation.

type AdminGetConversationRequestObject

type AdminGetConversationRequestObject struct {
	Id     openapi_types.UUID `json:"id"`
	Params AdminGetConversationParams
}

type AdminGetConversationResponseObject

type AdminGetConversationResponseObject interface {
	VisitAdminGetConversationResponse(w http.ResponseWriter) error
}

type AdminGetConversationdefaultJSONResponse

type AdminGetConversationdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminGetConversationdefaultJSONResponse) VisitAdminGetConversationResponse

func (response AdminGetConversationdefaultJSONResponse) VisitAdminGetConversationResponse(w http.ResponseWriter) error

type AdminGetEntries200JSONResponse

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

func (AdminGetEntries200JSONResponse) VisitAdminGetEntriesResponse

func (response AdminGetEntries200JSONResponse) VisitAdminGetEntriesResponse(w http.ResponseWriter) error

type AdminGetEntries404JSONResponse

type AdminGetEntries404JSONResponse struct{ NotFoundJSONResponse }

func (AdminGetEntries404JSONResponse) VisitAdminGetEntriesResponse

func (response AdminGetEntries404JSONResponse) VisitAdminGetEntriesResponse(w http.ResponseWriter) error

type AdminGetEntriesParams

type AdminGetEntriesParams struct {
	// AfterCursor Cursor for pagination (UUID format).
	AfterCursor *openapi_types.UUID `form:"afterCursor,omitempty" json:"afterCursor,omitempty"`

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

	// Channel Filter by entry channel.
	Channel *Channel `form:"channel,omitempty" json:"channel,omitempty"`

	// Justification Reason for this admin action (for audit log).
	Justification *string `form:"justification,omitempty" json:"justification,omitempty"`

	// Forks Controls which fork entries to include. `none` (default) follows
	// the fork ancestry path. `all` returns entries from all forks.
	Forks *AdminGetEntriesParamsForks `form:"forks,omitempty" json:"forks,omitempty"`
}

AdminGetEntriesParams defines parameters for AdminGetEntries.

type AdminGetEntriesParamsForks

type AdminGetEntriesParamsForks string

AdminGetEntriesParamsForks defines parameters for AdminGetEntries.

const (
	AdminGetEntriesParamsForksAll  AdminGetEntriesParamsForks = "all"
	AdminGetEntriesParamsForksNone AdminGetEntriesParamsForks = "none"
)

Defines values for AdminGetEntriesParamsForks.

type AdminGetEntriesRequestObject

type AdminGetEntriesRequestObject struct {
	Id     openapi_types.UUID `json:"id"`
	Params AdminGetEntriesParams
}

type AdminGetEntriesResponseObject

type AdminGetEntriesResponseObject interface {
	VisitAdminGetEntriesResponse(w http.ResponseWriter) error
}

type AdminGetEntriesdefaultJSONResponse

type AdminGetEntriesdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminGetEntriesdefaultJSONResponse) VisitAdminGetEntriesResponse

func (response AdminGetEntriesdefaultJSONResponse) VisitAdminGetEntriesResponse(w http.ResponseWriter) error

type AdminGetMemberships200JSONResponse

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

func (AdminGetMemberships200JSONResponse) VisitAdminGetMembershipsResponse

func (response AdminGetMemberships200JSONResponse) VisitAdminGetMembershipsResponse(w http.ResponseWriter) error

type AdminGetMemberships404JSONResponse

type AdminGetMemberships404JSONResponse struct{ NotFoundJSONResponse }

func (AdminGetMemberships404JSONResponse) VisitAdminGetMembershipsResponse

func (response AdminGetMemberships404JSONResponse) VisitAdminGetMembershipsResponse(w http.ResponseWriter) error

type AdminGetMembershipsParams

type AdminGetMembershipsParams 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"`

	// Justification Reason for this admin action (for audit log).
	Justification *string `form:"justification,omitempty" json:"justification,omitempty"`
}

AdminGetMembershipsParams defines parameters for AdminGetMemberships.

type AdminGetMembershipsRequestObject

type AdminGetMembershipsRequestObject struct {
	Id     openapi_types.UUID `json:"id"`
	Params AdminGetMembershipsParams
}

type AdminGetMembershipsResponseObject

type AdminGetMembershipsResponseObject interface {
	VisitAdminGetMembershipsResponse(w http.ResponseWriter) error
}

type AdminGetMembershipsdefaultJSONResponse

type AdminGetMembershipsdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminGetMembershipsdefaultJSONResponse) VisitAdminGetMembershipsResponse

func (response AdminGetMembershipsdefaultJSONResponse) VisitAdminGetMembershipsResponse(w http.ResponseWriter) error

type AdminGetMemoryIndexStatus200JSONResponse

type AdminGetMemoryIndexStatus200JSONResponse MemoryIndexStatusResponse

func (AdminGetMemoryIndexStatus200JSONResponse) VisitAdminGetMemoryIndexStatusResponse

func (response AdminGetMemoryIndexStatus200JSONResponse) VisitAdminGetMemoryIndexStatusResponse(w http.ResponseWriter) error

type AdminGetMemoryIndexStatusRequestObject

type AdminGetMemoryIndexStatusRequestObject struct {
}

type AdminGetMemoryIndexStatusResponseObject

type AdminGetMemoryIndexStatusResponseObject interface {
	VisitAdminGetMemoryIndexStatusResponse(w http.ResponseWriter) error
}

type AdminGetMemoryIndexStatusdefaultJSONResponse

type AdminGetMemoryIndexStatusdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminGetMemoryIndexStatusdefaultJSONResponse) VisitAdminGetMemoryIndexStatusResponse

func (response AdminGetMemoryIndexStatusdefaultJSONResponse) VisitAdminGetMemoryIndexStatusResponse(w http.ResponseWriter) error

type AdminGetMemoryPolicies200JSONResponse

type AdminGetMemoryPolicies200JSONResponse MemoryPolicyBundle

func (AdminGetMemoryPolicies200JSONResponse) VisitAdminGetMemoryPoliciesResponse

func (response AdminGetMemoryPolicies200JSONResponse) VisitAdminGetMemoryPoliciesResponse(w http.ResponseWriter) error

type AdminGetMemoryPoliciesRequestObject

type AdminGetMemoryPoliciesRequestObject struct {
}

type AdminGetMemoryPoliciesResponseObject

type AdminGetMemoryPoliciesResponseObject interface {
	VisitAdminGetMemoryPoliciesResponse(w http.ResponseWriter) error
}

type AdminGetMemoryPoliciesdefaultJSONResponse

type AdminGetMemoryPoliciesdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminGetMemoryPoliciesdefaultJSONResponse) VisitAdminGetMemoryPoliciesResponse

func (response AdminGetMemoryPoliciesdefaultJSONResponse) VisitAdminGetMemoryPoliciesResponse(w http.ResponseWriter) error

type AdminGetMemoryUsage200JSONResponse

type AdminGetMemoryUsage200JSONResponse MemoryUsageResponse

func (AdminGetMemoryUsage200JSONResponse) VisitAdminGetMemoryUsageResponse

func (response AdminGetMemoryUsage200JSONResponse) VisitAdminGetMemoryUsageResponse(w http.ResponseWriter) error

type AdminGetMemoryUsage404JSONResponse

type AdminGetMemoryUsage404JSONResponse struct{ NotFoundJSONResponse }

func (AdminGetMemoryUsage404JSONResponse) VisitAdminGetMemoryUsageResponse

func (response AdminGetMemoryUsage404JSONResponse) VisitAdminGetMemoryUsageResponse(w http.ResponseWriter) error

type AdminGetMemoryUsageParams

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

AdminGetMemoryUsageParams defines parameters for AdminGetMemoryUsage.

type AdminGetMemoryUsageRequestObject

type AdminGetMemoryUsageRequestObject struct {
	Params AdminGetMemoryUsageParams
}

type AdminGetMemoryUsageResponseObject

type AdminGetMemoryUsageResponseObject interface {
	VisitAdminGetMemoryUsageResponse(w http.ResponseWriter) error
}

type AdminGetMemoryUsagedefaultJSONResponse

type AdminGetMemoryUsagedefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminGetMemoryUsagedefaultJSONResponse) VisitAdminGetMemoryUsageResponse

func (response AdminGetMemoryUsagedefaultJSONResponse) VisitAdminGetMemoryUsageResponse(w http.ResponseWriter) error

type AdminListAttachments200JSONResponse

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

func (AdminListAttachments200JSONResponse) VisitAdminListAttachmentsResponse

func (response AdminListAttachments200JSONResponse) VisitAdminListAttachmentsResponse(w http.ResponseWriter) error

type AdminListAttachmentsParams

type AdminListAttachmentsParams struct {
	// UserId Filter by uploader user ID.
	UserId *string `form:"userId,omitempty" json:"userId,omitempty"`

	// EntryId Filter by linked entry ID.
	EntryId *openapi_types.UUID `form:"entryId,omitempty" json:"entryId,omitempty"`

	// Status Filter by status: linked, unlinked, expired, or all.
	Status *AdminListAttachmentsParamsStatus `form:"status,omitempty" json:"status,omitempty"`

	// AfterCursor Cursor for pagination (UUID of last item).
	AfterCursor *openapi_types.UUID `form:"afterCursor,omitempty" json:"afterCursor,omitempty"`

	// Limit Maximum number of attachments to return (max 200).
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Justification Reason for this admin action (for audit log).
	Justification *string `form:"justification,omitempty" json:"justification,omitempty"`
}

AdminListAttachmentsParams defines parameters for AdminListAttachments.

type AdminListAttachmentsParamsStatus

type AdminListAttachmentsParamsStatus string

AdminListAttachmentsParamsStatus defines parameters for AdminListAttachments.

const (
	AdminListAttachmentsParamsStatusAll      AdminListAttachmentsParamsStatus = "all"
	AdminListAttachmentsParamsStatusExpired  AdminListAttachmentsParamsStatus = "expired"
	AdminListAttachmentsParamsStatusLinked   AdminListAttachmentsParamsStatus = "linked"
	AdminListAttachmentsParamsStatusUnlinked AdminListAttachmentsParamsStatus = "unlinked"
)

Defines values for AdminListAttachmentsParamsStatus.

type AdminListAttachmentsRequestObject

type AdminListAttachmentsRequestObject struct {
	Params AdminListAttachmentsParams
}

type AdminListAttachmentsResponseObject

type AdminListAttachmentsResponseObject interface {
	VisitAdminListAttachmentsResponse(w http.ResponseWriter) error
}

type AdminListAttachmentsdefaultJSONResponse

type AdminListAttachmentsdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminListAttachmentsdefaultJSONResponse) VisitAdminListAttachmentsResponse

func (response AdminListAttachmentsdefaultJSONResponse) VisitAdminListAttachmentsResponse(w http.ResponseWriter) error

type AdminListChildConversations200JSONResponse

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

func (AdminListChildConversations200JSONResponse) VisitAdminListChildConversationsResponse

func (response AdminListChildConversations200JSONResponse) VisitAdminListChildConversationsResponse(w http.ResponseWriter) error

type AdminListChildConversationsParams

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

AdminListChildConversationsParams defines parameters for AdminListChildConversations.

type AdminListChildConversationsRequestObject

type AdminListChildConversationsRequestObject struct {
	Id     openapi_types.UUID `json:"id"`
	Params AdminListChildConversationsParams
}

type AdminListChildConversationsResponseObject

type AdminListChildConversationsResponseObject interface {
	VisitAdminListChildConversationsResponse(w http.ResponseWriter) error
}

type AdminListChildConversationsdefaultJSONResponse

type AdminListChildConversationsdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminListChildConversationsdefaultJSONResponse) VisitAdminListChildConversationsResponse

func (response AdminListChildConversationsdefaultJSONResponse) VisitAdminListChildConversationsResponse(w http.ResponseWriter) error

type AdminListConversations200JSONResponse

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

func (AdminListConversations200JSONResponse) VisitAdminListConversationsResponse

func (response AdminListConversations200JSONResponse) VisitAdminListConversationsResponse(w http.ResponseWriter) error

type AdminListConversationsParams

type AdminListConversationsParams struct {
	// Mode Listing mode for conversations. Controls which conversations are returned
	// from each fork tree (conversation group).
	// - `all`: include all conversations (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     *AdminListConversationsParamsMode     `form:"mode,omitempty" json:"mode,omitempty"`
	Ancestry *AdminListConversationsParamsAncestry `form:"ancestry,omitempty" json:"ancestry,omitempty"`

	// UserId Filter conversations owned by this user.
	UserId *string `form:"userId,omitempty" json:"userId,omitempty"`

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

	// ArchivedAfter Filter: archived at or after this time (ISO 8601).
	ArchivedAfter *time.Time `form:"archivedAfter,omitempty" json:"archivedAfter,omitempty"`

	// ArchivedBefore Filter: archived before this time (ISO 8601).
	ArchivedBefore *time.Time `form:"archivedBefore,omitempty" json:"archivedBefore,omitempty"`

	// AfterCursor Cursor for pagination (UUID format).
	AfterCursor *openapi_types.UUID `form:"afterCursor,omitempty" json:"afterCursor,omitempty"`

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

	// Justification Reason for this admin action (for audit log).
	Justification *string `form:"justification,omitempty" json:"justification,omitempty"`
}

AdminListConversationsParams defines parameters for AdminListConversations.

type AdminListConversationsParamsAncestry

type AdminListConversationsParamsAncestry string

AdminListConversationsParamsAncestry defines parameters for AdminListConversations.

const (
	AdminListConversationsParamsAncestryAll      AdminListConversationsParamsAncestry = "all"
	AdminListConversationsParamsAncestryChildren AdminListConversationsParamsAncestry = "children"
	AdminListConversationsParamsAncestryRoots    AdminListConversationsParamsAncestry = "roots"
)

Defines values for AdminListConversationsParamsAncestry.

type AdminListConversationsParamsArchived

type AdminListConversationsParamsArchived string

AdminListConversationsParamsArchived defines parameters for AdminListConversations.

Defines values for AdminListConversationsParamsArchived.

type AdminListConversationsParamsMode

type AdminListConversationsParamsMode string

AdminListConversationsParamsMode defines parameters for AdminListConversations.

const (
	AdminListConversationsParamsModeAll        AdminListConversationsParamsMode = "all"
	AdminListConversationsParamsModeLatestFork AdminListConversationsParamsMode = "latest-fork"
	AdminListConversationsParamsModeRoots      AdminListConversationsParamsMode = "roots"
)

Defines values for AdminListConversationsParamsMode.

type AdminListConversationsRequestObject

type AdminListConversationsRequestObject struct {
	Params AdminListConversationsParams
}

type AdminListConversationsResponseObject

type AdminListConversationsResponseObject interface {
	VisitAdminListConversationsResponse(w http.ResponseWriter) error
}

type AdminListConversationsdefaultJSONResponse

type AdminListConversationsdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminListConversationsdefaultJSONResponse) VisitAdminListConversationsResponse

func (response AdminListConversationsdefaultJSONResponse) VisitAdminListConversationsResponse(w http.ResponseWriter) error

type AdminListForks200JSONResponse

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

func (AdminListForks200JSONResponse) VisitAdminListForksResponse

func (response AdminListForks200JSONResponse) VisitAdminListForksResponse(w http.ResponseWriter) error

type AdminListForks404JSONResponse

type AdminListForks404JSONResponse struct{ NotFoundJSONResponse }

func (AdminListForks404JSONResponse) VisitAdminListForksResponse

func (response AdminListForks404JSONResponse) VisitAdminListForksResponse(w http.ResponseWriter) error

type AdminListForksParams

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

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

	// Justification Reason for this admin action (for audit log).
	Justification *string `form:"justification,omitempty" json:"justification,omitempty"`
}

AdminListForksParams defines parameters for AdminListForks.

type AdminListForksRequestObject

type AdminListForksRequestObject struct {
	Id     openapi_types.UUID `json:"id"`
	Params AdminListForksParams
}

type AdminListForksResponseObject

type AdminListForksResponseObject interface {
	VisitAdminListForksResponse(w http.ResponseWriter) error
}

type AdminListForksdefaultJSONResponse

type AdminListForksdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminListForksdefaultJSONResponse) VisitAdminListForksResponse

func (response AdminListForksdefaultJSONResponse) VisitAdminListForksResponse(w http.ResponseWriter) error

type AdminListTopMemoryUsage200JSONResponse

type AdminListTopMemoryUsage200JSONResponse ListTopMemoryUsageResponse

func (AdminListTopMemoryUsage200JSONResponse) VisitAdminListTopMemoryUsageResponse

func (response AdminListTopMemoryUsage200JSONResponse) VisitAdminListTopMemoryUsageResponse(w http.ResponseWriter) error

type AdminListTopMemoryUsageParams

type AdminListTopMemoryUsageParams struct {
	// Prefix Namespace prefix segments. Repeat once per segment.
	Prefix *[]string                          `form:"prefix,omitempty" json:"prefix,omitempty"`
	Sort   *AdminListTopMemoryUsageParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
	Limit  *int                               `form:"limit,omitempty" json:"limit,omitempty"`
}

AdminListTopMemoryUsageParams defines parameters for AdminListTopMemoryUsage.

type AdminListTopMemoryUsageParamsSort

type AdminListTopMemoryUsageParamsSort string

AdminListTopMemoryUsageParamsSort defines parameters for AdminListTopMemoryUsage.

const (
	FetchCount    AdminListTopMemoryUsageParamsSort = "fetch_count"
	LastFetchedAt AdminListTopMemoryUsageParamsSort = "last_fetched_at"
)

Defines values for AdminListTopMemoryUsageParamsSort.

type AdminListTopMemoryUsageRequestObject

type AdminListTopMemoryUsageRequestObject struct {
	Params AdminListTopMemoryUsageParams
}

type AdminListTopMemoryUsageResponseObject

type AdminListTopMemoryUsageResponseObject interface {
	VisitAdminListTopMemoryUsageResponse(w http.ResponseWriter) error
}

type AdminListTopMemoryUsagedefaultJSONResponse

type AdminListTopMemoryUsagedefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminListTopMemoryUsagedefaultJSONResponse) VisitAdminListTopMemoryUsageResponse

func (response AdminListTopMemoryUsagedefaultJSONResponse) VisitAdminListTopMemoryUsageResponse(w http.ResponseWriter) error

type AdminOutboxStats

type AdminOutboxStats struct {
	// OldestAt Oldest retained outbox event timestamp.
	OldestAt *time.Time `json:"oldestAt"`
	Total    int64      `json:"total"`
}

AdminOutboxStats defines model for AdminOutboxStats.

type AdminPutMemoryPolicies204Response

type AdminPutMemoryPolicies204Response struct {
}

func (AdminPutMemoryPolicies204Response) VisitAdminPutMemoryPoliciesResponse

func (response AdminPutMemoryPolicies204Response) VisitAdminPutMemoryPoliciesResponse(w http.ResponseWriter) error

type AdminPutMemoryPoliciesJSONRequestBody

type AdminPutMemoryPoliciesJSONRequestBody = MemoryPolicyBundle

AdminPutMemoryPoliciesJSONRequestBody defines body for AdminPutMemoryPolicies for application/json ContentType.

type AdminPutMemoryPoliciesRequestObject

type AdminPutMemoryPoliciesRequestObject struct {
	Body *AdminPutMemoryPoliciesJSONRequestBody
}

type AdminPutMemoryPoliciesResponseObject

type AdminPutMemoryPoliciesResponseObject interface {
	VisitAdminPutMemoryPoliciesResponse(w http.ResponseWriter) error
}

type AdminPutMemoryPoliciesdefaultJSONResponse

type AdminPutMemoryPoliciesdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminPutMemoryPoliciesdefaultJSONResponse) VisitAdminPutMemoryPoliciesResponse

func (response AdminPutMemoryPoliciesdefaultJSONResponse) VisitAdminPutMemoryPoliciesResponse(w http.ResponseWriter) error

type AdminSearchConversations200JSONResponse

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

func (AdminSearchConversations200JSONResponse) VisitAdminSearchConversationsResponse

func (response AdminSearchConversations200JSONResponse) VisitAdminSearchConversationsResponse(w http.ResponseWriter) error

type AdminSearchConversationsJSONRequestBody

type AdminSearchConversationsJSONRequestBody = AdminSearchEntriesRequest

AdminSearchConversationsJSONRequestBody defines body for AdminSearchConversations for application/json ContentType.

type AdminSearchConversationsParams

type AdminSearchConversationsParams struct {
	// Justification Reason for this admin action (for audit log).
	Justification *string `form:"justification,omitempty" json:"justification,omitempty"`
}

AdminSearchConversationsParams defines parameters for AdminSearchConversations.

type AdminSearchConversationsRequestObject

type AdminSearchConversationsRequestObject struct {
	Params AdminSearchConversationsParams
	Body   *AdminSearchConversationsJSONRequestBody
}

type AdminSearchConversationsResponseObject

type AdminSearchConversationsResponseObject interface {
	VisitAdminSearchConversationsResponse(w http.ResponseWriter) error
}

type AdminSearchConversationsdefaultJSONResponse

type AdminSearchConversationsdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminSearchConversationsdefaultJSONResponse) VisitAdminSearchConversationsResponse

func (response AdminSearchConversationsdefaultJSONResponse) VisitAdminSearchConversationsResponse(w http.ResponseWriter) error

type AdminSearchEntriesRequest

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

	// IncludeArchived Include entries from archived conversations.
	IncludeArchived *bool `json:"includeArchived,omitempty"`

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

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

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

	// UserId Filter search to conversations owned by this user.
	UserId *string `json:"userId"`
}

AdminSearchEntriesRequest defines model for AdminSearchEntriesRequest.

type AdminStatsSummaryResponse

type AdminStatsSummaryResponse struct {
	ConversationGroups AdminConversationGroupStats `json:"conversationGroups"`
	Conversations      AdminTotalStats             `json:"conversations"`
	Entries            AdminTotalStats             `json:"entries"`
	Memories           AdminArchivedTotalStats     `json:"memories"`
	OutboxEvents       *AdminOutboxStats           `json:"outboxEvents"`
}

AdminStatsSummaryResponse defines model for AdminStatsSummaryResponse.

type AdminSubscribeEvents200TexteventStreamResponse

type AdminSubscribeEvents200TexteventStreamResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (AdminSubscribeEvents200TexteventStreamResponse) VisitAdminSubscribeEventsResponse

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

type AdminSubscribeEvents400Response

type AdminSubscribeEvents400Response struct {
}

func (AdminSubscribeEvents400Response) VisitAdminSubscribeEventsResponse

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

type AdminSubscribeEvents401Response

type AdminSubscribeEvents401Response struct {
}

func (AdminSubscribeEvents401Response) VisitAdminSubscribeEventsResponse

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

type AdminSubscribeEvents403Response

type AdminSubscribeEvents403Response struct {
}

func (AdminSubscribeEvents403Response) VisitAdminSubscribeEventsResponse

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

type AdminSubscribeEvents501Response

type AdminSubscribeEvents501Response struct {
}

func (AdminSubscribeEvents501Response) VisitAdminSubscribeEventsResponse

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

type AdminSubscribeEventsParams

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

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

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

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

AdminSubscribeEventsParams defines parameters for AdminSubscribeEvents.

type AdminSubscribeEventsParamsDetail

type AdminSubscribeEventsParamsDetail string

AdminSubscribeEventsParamsDetail defines parameters for AdminSubscribeEvents.

const (
	Full    AdminSubscribeEventsParamsDetail = "full"
	Summary AdminSubscribeEventsParamsDetail = "summary"
)

Defines values for AdminSubscribeEventsParamsDetail.

type AdminSubscribeEventsRequestObject

type AdminSubscribeEventsRequestObject struct {
	Params AdminSubscribeEventsParams
}

type AdminSubscribeEventsResponseObject

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

type AdminTotalStats

type AdminTotalStats struct {
	Total int64 `json:"total"`
}

AdminTotalStats defines model for AdminTotalStats.

type AdminTriggerMemoryIndex200JSONResponse

type AdminTriggerMemoryIndex200JSONResponse MemoryIndexTriggerResponse

func (AdminTriggerMemoryIndex200JSONResponse) VisitAdminTriggerMemoryIndexResponse

func (response AdminTriggerMemoryIndex200JSONResponse) VisitAdminTriggerMemoryIndexResponse(w http.ResponseWriter) error

type AdminTriggerMemoryIndexRequestObject

type AdminTriggerMemoryIndexRequestObject struct {
}

type AdminTriggerMemoryIndexResponseObject

type AdminTriggerMemoryIndexResponseObject interface {
	VisitAdminTriggerMemoryIndexResponse(w http.ResponseWriter) error
}

type AdminTriggerMemoryIndexdefaultJSONResponse

type AdminTriggerMemoryIndexdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminTriggerMemoryIndexdefaultJSONResponse) VisitAdminTriggerMemoryIndexResponse

func (response AdminTriggerMemoryIndexdefaultJSONResponse) VisitAdminTriggerMemoryIndexResponse(w http.ResponseWriter) error

type AdminUpdateConversation200JSONResponse

type AdminUpdateConversation200JSONResponse AdminConversation

func (AdminUpdateConversation200JSONResponse) VisitAdminUpdateConversationResponse

func (response AdminUpdateConversation200JSONResponse) VisitAdminUpdateConversationResponse(w http.ResponseWriter) error

type AdminUpdateConversation404JSONResponse

type AdminUpdateConversation404JSONResponse struct{ NotFoundJSONResponse }

func (AdminUpdateConversation404JSONResponse) VisitAdminUpdateConversationResponse

func (response AdminUpdateConversation404JSONResponse) VisitAdminUpdateConversationResponse(w http.ResponseWriter) error

type AdminUpdateConversationJSONRequestBody

type AdminUpdateConversationJSONRequestBody = AdminUpdateConversationRequest

AdminUpdateConversationJSONRequestBody defines body for AdminUpdateConversation for application/json ContentType.

type AdminUpdateConversationRequest

type AdminUpdateConversationRequest struct {
	// Archived Set to `true` to archive or `false` to unarchive the conversation fork tree.
	Archived *bool `json:"archived,omitempty"`

	// Justification Reason for the admin action (for audit log).
	Justification *string `json:"justification,omitempty"`
}

AdminUpdateConversationRequest defines model for AdminUpdateConversationRequest.

type AdminUpdateConversationRequestObject

type AdminUpdateConversationRequestObject struct {
	Id   openapi_types.UUID `json:"id"`
	Body *AdminUpdateConversationJSONRequestBody
}

type AdminUpdateConversationResponseObject

type AdminUpdateConversationResponseObject interface {
	VisitAdminUpdateConversationResponse(w http.ResponseWriter) error
}

type AdminUpdateConversationdefaultJSONResponse

type AdminUpdateConversationdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (AdminUpdateConversationdefaultJSONResponse) VisitAdminUpdateConversationResponse

func (response AdminUpdateConversationdefaultJSONResponse) VisitAdminUpdateConversationResponse(w http.ResponseWriter) error

type Channel

type Channel string

Channel Logical channel of the entry within the conversation.

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

Defines values for Channel.

type ConversationForkSummary

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

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

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

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

type ConversationMembership

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

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

ConversationMembership defines model for ConversationMembership.

type Entry

type Entry struct {
	// Channel Logical channel of the entry within the conversation.
	Channel Channel       `json:"channel"`
	Content []interface{} `json:"content"`

	// ContentType Describes the schema/format of the content array.
	// Examples: "message", "LC4J", "SpringAI"
	ContentType string `json:"contentType"`

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

	// Id Unique identifier for the entry.
	Id     openapi_types.UUID `json:"id"`
	UserId *string            `json:"userId"`
}

Entry defines model for Entry.

type Error

type Error = ErrorResponse

Error defines model for Error.

type ErrorJSONResponse

type ErrorJSONResponse ErrorResponse

type ErrorResponse

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

ErrorResponse defines model for ErrorResponse.

type EvictErrorEvent

type EvictErrorEvent struct {
	// Error Error message describing what went wrong.
	Error *string `json:"error,omitempty"`
}

EvictErrorEvent Error event sent via SSE if eviction fails.

type EvictProgressEvent

type EvictProgressEvent struct {
	// Progress Percentage of eviction completed (0-100).
	Progress *int `json:"progress,omitempty"`
}

EvictProgressEvent Progress event sent via SSE during eviction.

type EvictRequest

type EvictRequest struct {
	// Justification Reason for the eviction (for audit log).
	Justification *string `json:"justification,omitempty"`

	// ResourceTypes Which resource types to evict.
	// - conversations: Archived conversations past retention.
	ResourceTypes []EvictRequestResourceTypes `json:"resourceTypes"`

	// RetentionPeriod ISO 8601 duration. Resources archived longer than this are hard-deleted.
	// Examples: P90D (90 days), P1Y (1 year), PT24H (24 hours).
	RetentionPeriod string `json:"retentionPeriod"`
}

EvictRequest defines model for EvictRequest.

type EvictRequestResourceTypes

type EvictRequestResourceTypes string

EvictRequestResourceTypes defines model for EvictRequest.ResourceTypes.

const (
	Conversations EvictRequestResourceTypes = "conversations"
)

Defines values for EvictRequestResourceTypes.

type GetCacheHitRate200JSONResponse

type GetCacheHitRate200JSONResponse TimeSeriesResponse

func (GetCacheHitRate200JSONResponse) VisitGetCacheHitRateResponse

func (response GetCacheHitRate200JSONResponse) VisitGetCacheHitRateResponse(w http.ResponseWriter) error

type GetCacheHitRate501JSONResponse

type GetCacheHitRate501JSONResponse ErrorResponse

func (GetCacheHitRate501JSONResponse) VisitGetCacheHitRateResponse

func (response GetCacheHitRate501JSONResponse) VisitGetCacheHitRateResponse(w http.ResponseWriter) error

type GetCacheHitRate503JSONResponse

type GetCacheHitRate503JSONResponse ErrorResponse

func (GetCacheHitRate503JSONResponse) VisitGetCacheHitRateResponse

func (response GetCacheHitRate503JSONResponse) VisitGetCacheHitRateResponse(w http.ResponseWriter) error

type GetCacheHitRateParams

type GetCacheHitRateParams struct {
	// Start Start of time range (ISO 8601 timestamp). Defaults to 1 hour ago.
	Start *StatsStart `form:"start,omitempty" json:"start,omitempty"`

	// End End of time range (ISO 8601 timestamp). Defaults to now.
	End *StatsEnd `form:"end,omitempty" json:"end,omitempty"`

	// Step Resolution step for the time series (e.g., "60s", "5m"). Defaults to "60s".
	Step *StatsStep `form:"step,omitempty" json:"step,omitempty"`
}

GetCacheHitRateParams defines parameters for GetCacheHitRate.

type GetCacheHitRateRequestObject

type GetCacheHitRateRequestObject struct {
	Params GetCacheHitRateParams
}

type GetCacheHitRateResponseObject

type GetCacheHitRateResponseObject interface {
	VisitGetCacheHitRateResponse(w http.ResponseWriter) error
}

type GetCacheHitRatedefaultJSONResponse

type GetCacheHitRatedefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (GetCacheHitRatedefaultJSONResponse) VisitGetCacheHitRateResponse

func (response GetCacheHitRatedefaultJSONResponse) VisitGetCacheHitRateResponse(w http.ResponseWriter) error

type GetDbPoolUtilization200JSONResponse

type GetDbPoolUtilization200JSONResponse TimeSeriesResponse

func (GetDbPoolUtilization200JSONResponse) VisitGetDbPoolUtilizationResponse

func (response GetDbPoolUtilization200JSONResponse) VisitGetDbPoolUtilizationResponse(w http.ResponseWriter) error

type GetDbPoolUtilization501JSONResponse

type GetDbPoolUtilization501JSONResponse ErrorResponse

func (GetDbPoolUtilization501JSONResponse) VisitGetDbPoolUtilizationResponse

func (response GetDbPoolUtilization501JSONResponse) VisitGetDbPoolUtilizationResponse(w http.ResponseWriter) error

type GetDbPoolUtilization503JSONResponse

type GetDbPoolUtilization503JSONResponse ErrorResponse

func (GetDbPoolUtilization503JSONResponse) VisitGetDbPoolUtilizationResponse

func (response GetDbPoolUtilization503JSONResponse) VisitGetDbPoolUtilizationResponse(w http.ResponseWriter) error

type GetDbPoolUtilizationParams

type GetDbPoolUtilizationParams struct {
	// Start Start of time range (ISO 8601 timestamp). Defaults to 1 hour ago.
	Start *StatsStart `form:"start,omitempty" json:"start,omitempty"`

	// End End of time range (ISO 8601 timestamp). Defaults to now.
	End *StatsEnd `form:"end,omitempty" json:"end,omitempty"`

	// Step Resolution step for the time series (e.g., "60s", "5m"). Defaults to "60s".
	Step *StatsStep `form:"step,omitempty" json:"step,omitempty"`
}

GetDbPoolUtilizationParams defines parameters for GetDbPoolUtilization.

type GetDbPoolUtilizationRequestObject

type GetDbPoolUtilizationRequestObject struct {
	Params GetDbPoolUtilizationParams
}

type GetDbPoolUtilizationResponseObject

type GetDbPoolUtilizationResponseObject interface {
	VisitGetDbPoolUtilizationResponse(w http.ResponseWriter) error
}

type GetDbPoolUtilizationdefaultJSONResponse

type GetDbPoolUtilizationdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (GetDbPoolUtilizationdefaultJSONResponse) VisitGetDbPoolUtilizationResponse

func (response GetDbPoolUtilizationdefaultJSONResponse) VisitGetDbPoolUtilizationResponse(w http.ResponseWriter) error

type GetErrorRate200JSONResponse

type GetErrorRate200JSONResponse TimeSeriesResponse

func (GetErrorRate200JSONResponse) VisitGetErrorRateResponse

func (response GetErrorRate200JSONResponse) VisitGetErrorRateResponse(w http.ResponseWriter) error

type GetErrorRate501JSONResponse

type GetErrorRate501JSONResponse ErrorResponse

func (GetErrorRate501JSONResponse) VisitGetErrorRateResponse

func (response GetErrorRate501JSONResponse) VisitGetErrorRateResponse(w http.ResponseWriter) error

type GetErrorRate503JSONResponse

type GetErrorRate503JSONResponse ErrorResponse

func (GetErrorRate503JSONResponse) VisitGetErrorRateResponse

func (response GetErrorRate503JSONResponse) VisitGetErrorRateResponse(w http.ResponseWriter) error

type GetErrorRateParams

type GetErrorRateParams struct {
	// Start Start of time range (ISO 8601 timestamp). Defaults to 1 hour ago.
	Start *StatsStart `form:"start,omitempty" json:"start,omitempty"`

	// End End of time range (ISO 8601 timestamp). Defaults to now.
	End *StatsEnd `form:"end,omitempty" json:"end,omitempty"`

	// Step Resolution step for the time series (e.g., "60s", "5m"). Defaults to "60s".
	Step *StatsStep `form:"step,omitempty" json:"step,omitempty"`
}

GetErrorRateParams defines parameters for GetErrorRate.

type GetErrorRateRequestObject

type GetErrorRateRequestObject struct {
	Params GetErrorRateParams
}

type GetErrorRateResponseObject

type GetErrorRateResponseObject interface {
	VisitGetErrorRateResponse(w http.ResponseWriter) error
}

type GetErrorRatedefaultJSONResponse

type GetErrorRatedefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (GetErrorRatedefaultJSONResponse) VisitGetErrorRateResponse

func (response GetErrorRatedefaultJSONResponse) VisitGetErrorRateResponse(w http.ResponseWriter) error

type GetHealth200JSONResponse

type GetHealth200JSONResponse struct {
	Status *string `json:"status,omitempty"`
}

func (GetHealth200JSONResponse) VisitGetHealthResponse

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

type GetHealthRequestObject

type GetHealthRequestObject struct {
}

type GetHealthResponseObject

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

type GetHealthdefaultJSONResponse

type GetHealthdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (GetHealthdefaultJSONResponse) VisitGetHealthResponse

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

type GetLatencyP95Params

type GetLatencyP95Params struct {
	// Start Start of time range (ISO 8601 timestamp). Defaults to 1 hour ago.
	Start *StatsStart `form:"start,omitempty" json:"start,omitempty"`

	// End End of time range (ISO 8601 timestamp). Defaults to now.
	End *StatsEnd `form:"end,omitempty" json:"end,omitempty"`

	// Step Resolution step for the time series (e.g., "60s", "5m"). Defaults to "60s".
	Step *StatsStep `form:"step,omitempty" json:"step,omitempty"`
}

GetLatencyP95Params defines parameters for GetLatencyP95.

type GetLatencyP95RequestObject

type GetLatencyP95RequestObject struct {
	Params GetLatencyP95Params
}

type GetLatencyP95ResponseObject

type GetLatencyP95ResponseObject interface {
	VisitGetLatencyP95Response(w http.ResponseWriter) error
}

type GetLatencyP95defaultJSONResponse

type GetLatencyP95defaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (GetLatencyP95defaultJSONResponse) VisitGetLatencyP95Response

func (response GetLatencyP95defaultJSONResponse) VisitGetLatencyP95Response(w http.ResponseWriter) error

type GetLatencyP95200JSONResponse

type GetLatencyP95200JSONResponse TimeSeriesResponse

func (GetLatencyP95200JSONResponse) VisitGetLatencyP95Response

func (response GetLatencyP95200JSONResponse) VisitGetLatencyP95Response(w http.ResponseWriter) error

type GetLatencyP95501JSONResponse

type GetLatencyP95501JSONResponse ErrorResponse

func (GetLatencyP95501JSONResponse) VisitGetLatencyP95Response

func (response GetLatencyP95501JSONResponse) VisitGetLatencyP95Response(w http.ResponseWriter) error

type GetLatencyP95503JSONResponse

type GetLatencyP95503JSONResponse ErrorResponse

func (GetLatencyP95503JSONResponse) VisitGetLatencyP95Response

func (response GetLatencyP95503JSONResponse) VisitGetLatencyP95Response(w http.ResponseWriter) error

type GetRequestRate200JSONResponse

type GetRequestRate200JSONResponse TimeSeriesResponse

func (GetRequestRate200JSONResponse) VisitGetRequestRateResponse

func (response GetRequestRate200JSONResponse) VisitGetRequestRateResponse(w http.ResponseWriter) error

type GetRequestRate501JSONResponse

type GetRequestRate501JSONResponse ErrorResponse

func (GetRequestRate501JSONResponse) VisitGetRequestRateResponse

func (response GetRequestRate501JSONResponse) VisitGetRequestRateResponse(w http.ResponseWriter) error

type GetRequestRate503JSONResponse

type GetRequestRate503JSONResponse ErrorResponse

func (GetRequestRate503JSONResponse) VisitGetRequestRateResponse

func (response GetRequestRate503JSONResponse) VisitGetRequestRateResponse(w http.ResponseWriter) error

type GetRequestRateParams

type GetRequestRateParams struct {
	// Start Start of time range (ISO 8601 timestamp). Defaults to 1 hour ago.
	Start *StatsStart `form:"start,omitempty" json:"start,omitempty"`

	// End End of time range (ISO 8601 timestamp). Defaults to now.
	End *StatsEnd `form:"end,omitempty" json:"end,omitempty"`

	// Step Resolution step for the time series (e.g., "60s", "5m"). Defaults to "60s".
	Step *StatsStep `form:"step,omitempty" json:"step,omitempty"`
}

GetRequestRateParams defines parameters for GetRequestRate.

type GetRequestRateRequestObject

type GetRequestRateRequestObject struct {
	Params GetRequestRateParams
}

type GetRequestRateResponseObject

type GetRequestRateResponseObject interface {
	VisitGetRequestRateResponse(w http.ResponseWriter) error
}

type GetRequestRatedefaultJSONResponse

type GetRequestRatedefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (GetRequestRatedefaultJSONResponse) VisitGetRequestRateResponse

func (response GetRequestRatedefaultJSONResponse) VisitGetRequestRateResponse(w http.ResponseWriter) error

type GetStatsSummary200JSONResponse

type GetStatsSummary200JSONResponse AdminStatsSummaryResponse

func (GetStatsSummary200JSONResponse) VisitGetStatsSummaryResponse

func (response GetStatsSummary200JSONResponse) VisitGetStatsSummaryResponse(w http.ResponseWriter) error

type GetStatsSummary501JSONResponse

type GetStatsSummary501JSONResponse ErrorResponse

func (GetStatsSummary501JSONResponse) VisitGetStatsSummaryResponse

func (response GetStatsSummary501JSONResponse) VisitGetStatsSummaryResponse(w http.ResponseWriter) error

type GetStatsSummaryRequestObject

type GetStatsSummaryRequestObject struct {
}

type GetStatsSummaryResponseObject

type GetStatsSummaryResponseObject interface {
	VisitGetStatsSummaryResponse(w http.ResponseWriter) error
}

type GetStatsSummarydefaultJSONResponse

type GetStatsSummarydefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (GetStatsSummarydefaultJSONResponse) VisitGetStatsSummaryResponse

func (response GetStatsSummarydefaultJSONResponse) VisitGetStatsSummaryResponse(w http.ResponseWriter) error

type GetStoreLatencyP95Params

type GetStoreLatencyP95Params struct {
	// Start Start of time range (ISO 8601 timestamp). Defaults to 1 hour ago.
	Start *StatsStart `form:"start,omitempty" json:"start,omitempty"`

	// End End of time range (ISO 8601 timestamp). Defaults to now.
	End *StatsEnd `form:"end,omitempty" json:"end,omitempty"`

	// Step Resolution step for the time series (e.g., "60s", "5m"). Defaults to "60s".
	Step *StatsStep `form:"step,omitempty" json:"step,omitempty"`
}

GetStoreLatencyP95Params defines parameters for GetStoreLatencyP95.

type GetStoreLatencyP95RequestObject

type GetStoreLatencyP95RequestObject struct {
	Params GetStoreLatencyP95Params
}

type GetStoreLatencyP95ResponseObject

type GetStoreLatencyP95ResponseObject interface {
	VisitGetStoreLatencyP95Response(w http.ResponseWriter) error
}

type GetStoreLatencyP95defaultJSONResponse

type GetStoreLatencyP95defaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (GetStoreLatencyP95defaultJSONResponse) VisitGetStoreLatencyP95Response

func (response GetStoreLatencyP95defaultJSONResponse) VisitGetStoreLatencyP95Response(w http.ResponseWriter) error

type GetStoreLatencyP95200JSONResponse

type GetStoreLatencyP95200JSONResponse MultiSeriesResponse

func (GetStoreLatencyP95200JSONResponse) VisitGetStoreLatencyP95Response

func (response GetStoreLatencyP95200JSONResponse) VisitGetStoreLatencyP95Response(w http.ResponseWriter) error

type GetStoreLatencyP95501JSONResponse

type GetStoreLatencyP95501JSONResponse ErrorResponse

func (GetStoreLatencyP95501JSONResponse) VisitGetStoreLatencyP95Response

func (response GetStoreLatencyP95501JSONResponse) VisitGetStoreLatencyP95Response(w http.ResponseWriter) error

type GetStoreLatencyP95503JSONResponse

type GetStoreLatencyP95503JSONResponse ErrorResponse

func (GetStoreLatencyP95503JSONResponse) VisitGetStoreLatencyP95Response

func (response GetStoreLatencyP95503JSONResponse) VisitGetStoreLatencyP95Response(w http.ResponseWriter) error

type GetStoreThroughput200JSONResponse

type GetStoreThroughput200JSONResponse MultiSeriesResponse

func (GetStoreThroughput200JSONResponse) VisitGetStoreThroughputResponse

func (response GetStoreThroughput200JSONResponse) VisitGetStoreThroughputResponse(w http.ResponseWriter) error

type GetStoreThroughput501JSONResponse

type GetStoreThroughput501JSONResponse ErrorResponse

func (GetStoreThroughput501JSONResponse) VisitGetStoreThroughputResponse

func (response GetStoreThroughput501JSONResponse) VisitGetStoreThroughputResponse(w http.ResponseWriter) error

type GetStoreThroughput503JSONResponse

type GetStoreThroughput503JSONResponse ErrorResponse

func (GetStoreThroughput503JSONResponse) VisitGetStoreThroughputResponse

func (response GetStoreThroughput503JSONResponse) VisitGetStoreThroughputResponse(w http.ResponseWriter) error

type GetStoreThroughputParams

type GetStoreThroughputParams struct {
	// Start Start of time range (ISO 8601 timestamp). Defaults to 1 hour ago.
	Start *StatsStart `form:"start,omitempty" json:"start,omitempty"`

	// End End of time range (ISO 8601 timestamp). Defaults to now.
	End *StatsEnd `form:"end,omitempty" json:"end,omitempty"`

	// Step Resolution step for the time series (e.g., "60s", "5m"). Defaults to "60s".
	Step *StatsStep `form:"step,omitempty" json:"step,omitempty"`
}

GetStoreThroughputParams defines parameters for GetStoreThroughput.

type GetStoreThroughputRequestObject

type GetStoreThroughputRequestObject struct {
	Params GetStoreThroughputParams
}

type GetStoreThroughputResponseObject

type GetStoreThroughputResponseObject interface {
	VisitGetStoreThroughputResponse(w http.ResponseWriter) error
}

type GetStoreThroughputdefaultJSONResponse

type GetStoreThroughputdefaultJSONResponse struct {
	Body       ErrorResponse
	StatusCode int
}

func (GetStoreThroughputdefaultJSONResponse) VisitGetStoreThroughputResponse

func (response GetStoreThroughputdefaultJSONResponse) VisitGetStoreThroughputResponse(w http.ResponseWriter) error

type GinServerOptions

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

GinServerOptions provides options for the Gin server.

type LabeledTimeSeries

type LabeledTimeSeries struct {
	// Data Time series data points for this label.
	Data []TimeSeriesDataPoint `json:"data"`

	// Label Label identifying this series (e.g., operation name).
	Label string `json:"label"`
}

LabeledTimeSeries A labeled time series within a multi-series response.

type ListTopMemoryUsageResponse

type ListTopMemoryUsageResponse struct {
	Items *[]TopMemoryUsageItem `json:"items,omitempty"`
}

ListTopMemoryUsageResponse defines model for ListTopMemoryUsageResponse.

type MemoryIndexRunStats

type MemoryIndexRunStats struct {
	Embedded           *int `json:"embedded,omitempty"`
	Failures           *int `json:"failures,omitempty"`
	Pending            *int `json:"pending,omitempty"`
	Processed          *int `json:"processed,omitempty"`
	SkippedNoEmbedding *int `json:"skipped_no_embedding,omitempty"`
	VectorDeletes      *int `json:"vector_deletes,omitempty"`
	VectorUpserts      *int `json:"vector_upserts,omitempty"`
}

MemoryIndexRunStats defines model for MemoryIndexRunStats.

type MemoryIndexStatusResponse

type MemoryIndexStatusResponse struct {
	// Pending Number of memories where `indexed_at` is null.
	Pending *int64 `json:"pending,omitempty"`
}

MemoryIndexStatusResponse defines model for MemoryIndexStatusResponse.

type MemoryIndexTriggerResponse

type MemoryIndexTriggerResponse struct {
	Stats     *MemoryIndexRunStats `json:"stats,omitempty"`
	Triggered *bool                `json:"triggered,omitempty"`
}

MemoryIndexTriggerResponse defines model for MemoryIndexTriggerResponse.

type MemoryPolicyBundle

type MemoryPolicyBundle struct {
	// Attributes Rego source for `package memories.attributes`.
	Attributes string `json:"attributes"`

	// Authz Rego source for `package memories.authz`.
	Authz string `json:"authz"`

	// Filter Rego source for `package memories.filter`.
	Filter string `json:"filter"`
}

MemoryPolicyBundle defines model for MemoryPolicyBundle.

type MemoryUsageResponse

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

MemoryUsageResponse defines model for MemoryUsageResponse.

type MiddlewareFunc

type MiddlewareFunc func(c *gin.Context)

type MultiSeriesResponse

type MultiSeriesResponse struct {
	// Metric Metric identifier (e.g., "store_latency_p95", "store_throughput").
	Metric string `json:"metric"`

	// Series Multiple time series, each with a label identifying the group.
	Series []LabeledTimeSeries `json:"series"`

	// Unit Unit of measurement (e.g., "seconds", "operations/sec").
	Unit string `json:"unit"`
}

MultiSeriesResponse Multi-series time series data for metrics grouped by a label (e.g., operation type).

type NotFound

type NotFound = ErrorResponse

NotFound defines model for NotFound.

type NotFoundJSONResponse

type NotFoundJSONResponse ErrorResponse

type SearchResult

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

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

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

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

SearchResult defines model for SearchResult.

type ServerInterface

type ServerInterface interface {
	// Get episodic memory indexing queue status
	// (GET /admin/v1/memories/index/status)
	AdminGetMemoryIndexStatus(c *gin.Context)
	// Trigger one episodic memory indexing cycle
	// (POST /admin/v1/memories/index/trigger)
	AdminTriggerMemoryIndex(c *gin.Context)
	// Download active episodic memory policy bundle
	// (GET /admin/v1/memories/policies)
	AdminGetMemoryPolicies(c *gin.Context)
	// Upload episodic memory policy bundle
	// (PUT /admin/v1/memories/policies)
	AdminPutMemoryPolicies(c *gin.Context)
	// Get episodic memory usage for a single key
	// (GET /admin/v1/memories/usage)
	AdminGetMemoryUsage(c *gin.Context, params AdminGetMemoryUsageParams)
	// List top episodic memory usage rows under a namespace prefix
	// (GET /admin/v1/memories/usage/top)
	AdminListTopMemoryUsage(c *gin.Context, params AdminListTopMemoryUsageParams)
	// Force-delete an episodic memory by ID
	// (DELETE /admin/v1/memories/{id})
	AdminDeleteMemory(c *gin.Context, id openapi_types.UUID)
	// List all attachments across users (admin/auditor)
	// (GET /v1/admin/attachments)
	AdminListAttachments(c *gin.Context, params AdminListAttachmentsParams)
	// Delete any attachment (admin only)
	// (DELETE /v1/admin/attachments/{id})
	AdminDeleteAttachment(c *gin.Context, id openapi_types.UUID)
	// Get attachment metadata (admin/auditor)
	// (GET /v1/admin/attachments/{id})
	AdminGetAttachment(c *gin.Context, id openapi_types.UUID, params AdminGetAttachmentParams)
	// Download attachment content (admin/auditor)
	// (GET /v1/admin/attachments/{id}/content)
	AdminGetAttachmentContent(c *gin.Context, id openapi_types.UUID, params AdminGetAttachmentContentParams)
	// Get signed download URL for any attachment (admin/auditor)
	// (GET /v1/admin/attachments/{id}/download-url)
	AdminGetAttachmentDownloadUrl(c *gin.Context, id openapi_types.UUID, params AdminGetAttachmentDownloadUrlParams)
	// List all conversations (admin/auditor)
	// (GET /v1/admin/conversations)
	AdminListConversations(c *gin.Context, params AdminListConversationsParams)
	// System-wide semantic search (admin/auditor)
	// (POST /v1/admin/conversations/search)
	AdminSearchConversations(c *gin.Context, params AdminSearchConversationsParams)
	// Get any conversation (admin/auditor)
	// (GET /v1/admin/conversations/{id})
	AdminGetConversation(c *gin.Context, id openapi_types.UUID, params AdminGetConversationParams)
	// Update any conversation (admin only)
	// (PATCH /v1/admin/conversations/{id})
	AdminUpdateConversation(c *gin.Context, id openapi_types.UUID)
	// List direct child conversations
	// (GET /v1/admin/conversations/{id}/children)
	AdminListChildConversations(c *gin.Context, id openapi_types.UUID, params AdminListChildConversationsParams)
	// Get entries from any conversation (admin/auditor)
	// (GET /v1/admin/conversations/{id}/entries)
	AdminGetEntries(c *gin.Context, id openapi_types.UUID, params AdminGetEntriesParams)
	// List forks for any conversation (admin/auditor)
	// (GET /v1/admin/conversations/{id}/forks)
	AdminListForks(c *gin.Context, id openapi_types.UUID, params AdminListForksParams)
	// Get memberships for any conversation (admin/auditor)
	// (GET /v1/admin/conversations/{id}/memberships)
	AdminGetMemberships(c *gin.Context, id openapi_types.UUID, params AdminGetMembershipsParams)
	// Subscribe to all real-time events (admin SSE)
	// (GET /v1/admin/events)
	AdminSubscribeEvents(c *gin.Context, params AdminSubscribeEventsParams)
	// Hard-delete archived resources past retention period
	// (POST /v1/admin/evict)
	AdminEvict(c *gin.Context, params AdminEvictParams)
	// Get cache hit rate percentage over time
	// (GET /v1/admin/stats/cache-hit-rate)
	GetCacheHitRate(c *gin.Context, params GetCacheHitRateParams)
	// Get database connection pool utilization over time
	// (GET /v1/admin/stats/db-pool-utilization)
	GetDbPoolUtilization(c *gin.Context, params GetDbPoolUtilizationParams)
	// Get 5xx error rate percentage over time
	// (GET /v1/admin/stats/error-rate)
	GetErrorRate(c *gin.Context, params GetErrorRateParams)
	// Get P95 response latency over time
	// (GET /v1/admin/stats/latency-p95)
	GetLatencyP95(c *gin.Context, params GetLatencyP95Params)
	// Get HTTP request rate over time
	// (GET /v1/admin/stats/request-rate)
	GetRequestRate(c *gin.Context, params GetRequestRateParams)
	// Get P95 store operation latency by operation type
	// (GET /v1/admin/stats/store-latency-p95)
	GetStoreLatencyP95(c *gin.Context, params GetStoreLatencyP95Params)
	// Get store operation throughput by operation type
	// (GET /v1/admin/stats/store-throughput)
	GetStoreThroughput(c *gin.Context, params GetStoreThroughputParams)
	// Get current datastore-backed admin inventory summary
	// (GET /v1/admin/stats/summary)
	GetStatsSummary(c *gin.Context)
	// Health check
	// (GET /v1/health)
	GetHealth(c *gin.Context)
}

ServerInterface represents all server handlers.

func NewStrictHandler

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

type ServerInterfaceWrapper

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

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) AdminDeleteAttachment

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

AdminDeleteAttachment operation middleware

func (*ServerInterfaceWrapper) AdminDeleteMemory

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

AdminDeleteMemory operation middleware

func (*ServerInterfaceWrapper) AdminEvict

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

AdminEvict operation middleware

func (*ServerInterfaceWrapper) AdminGetAttachment

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

AdminGetAttachment operation middleware

func (*ServerInterfaceWrapper) AdminGetAttachmentContent

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

AdminGetAttachmentContent operation middleware

func (*ServerInterfaceWrapper) AdminGetAttachmentDownloadUrl

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

AdminGetAttachmentDownloadUrl operation middleware

func (*ServerInterfaceWrapper) AdminGetConversation

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

AdminGetConversation operation middleware

func (*ServerInterfaceWrapper) AdminGetEntries

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

AdminGetEntries operation middleware

func (*ServerInterfaceWrapper) AdminGetMemberships

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

AdminGetMemberships operation middleware

func (*ServerInterfaceWrapper) AdminGetMemoryIndexStatus

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

AdminGetMemoryIndexStatus operation middleware

func (*ServerInterfaceWrapper) AdminGetMemoryPolicies

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

AdminGetMemoryPolicies operation middleware

func (*ServerInterfaceWrapper) AdminGetMemoryUsage

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

AdminGetMemoryUsage operation middleware

func (*ServerInterfaceWrapper) AdminListAttachments

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

AdminListAttachments operation middleware

func (*ServerInterfaceWrapper) AdminListChildConversations

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

AdminListChildConversations operation middleware

func (*ServerInterfaceWrapper) AdminListConversations

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

AdminListConversations operation middleware

func (*ServerInterfaceWrapper) AdminListForks

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

AdminListForks operation middleware

func (*ServerInterfaceWrapper) AdminListTopMemoryUsage

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

AdminListTopMemoryUsage operation middleware

func (*ServerInterfaceWrapper) AdminPutMemoryPolicies

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

AdminPutMemoryPolicies operation middleware

func (*ServerInterfaceWrapper) AdminSearchConversations

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

AdminSearchConversations operation middleware

func (*ServerInterfaceWrapper) AdminSubscribeEvents

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

AdminSubscribeEvents operation middleware

func (*ServerInterfaceWrapper) AdminTriggerMemoryIndex

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

AdminTriggerMemoryIndex operation middleware

func (*ServerInterfaceWrapper) AdminUpdateConversation

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

AdminUpdateConversation operation middleware

func (*ServerInterfaceWrapper) GetCacheHitRate

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

GetCacheHitRate operation middleware

func (*ServerInterfaceWrapper) GetDbPoolUtilization

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

GetDbPoolUtilization operation middleware

func (*ServerInterfaceWrapper) GetErrorRate

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

GetErrorRate operation middleware

func (*ServerInterfaceWrapper) GetHealth

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

GetHealth operation middleware

func (*ServerInterfaceWrapper) GetLatencyP95

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

GetLatencyP95 operation middleware

func (*ServerInterfaceWrapper) GetRequestRate

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

GetRequestRate operation middleware

func (*ServerInterfaceWrapper) GetStatsSummary

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

GetStatsSummary operation middleware

func (*ServerInterfaceWrapper) GetStoreLatencyP95

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

GetStoreLatencyP95 operation middleware

func (*ServerInterfaceWrapper) GetStoreThroughput

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

GetStoreThroughput operation middleware

type StatsEnd

type StatsEnd = time.Time

StatsEnd defines model for StatsEnd.

type StatsStart

type StatsStart = time.Time

StatsStart defines model for StatsStart.

type StatsStep

type StatsStep = string

StatsStep defines model for StatsStep.

type StrictHandlerFunc

type StrictHandlerFunc = strictgin.StrictGinHandlerFunc

type StrictMiddlewareFunc

type StrictMiddlewareFunc = strictgin.StrictGinMiddlewareFunc

type StrictServerInterface

type StrictServerInterface interface {
	// Get episodic memory indexing queue status
	// (GET /admin/v1/memories/index/status)
	AdminGetMemoryIndexStatus(ctx context.Context, request AdminGetMemoryIndexStatusRequestObject) (AdminGetMemoryIndexStatusResponseObject, error)
	// Trigger one episodic memory indexing cycle
	// (POST /admin/v1/memories/index/trigger)
	AdminTriggerMemoryIndex(ctx context.Context, request AdminTriggerMemoryIndexRequestObject) (AdminTriggerMemoryIndexResponseObject, error)
	// Download active episodic memory policy bundle
	// (GET /admin/v1/memories/policies)
	AdminGetMemoryPolicies(ctx context.Context, request AdminGetMemoryPoliciesRequestObject) (AdminGetMemoryPoliciesResponseObject, error)
	// Upload episodic memory policy bundle
	// (PUT /admin/v1/memories/policies)
	AdminPutMemoryPolicies(ctx context.Context, request AdminPutMemoryPoliciesRequestObject) (AdminPutMemoryPoliciesResponseObject, error)
	// Get episodic memory usage for a single key
	// (GET /admin/v1/memories/usage)
	AdminGetMemoryUsage(ctx context.Context, request AdminGetMemoryUsageRequestObject) (AdminGetMemoryUsageResponseObject, error)
	// List top episodic memory usage rows under a namespace prefix
	// (GET /admin/v1/memories/usage/top)
	AdminListTopMemoryUsage(ctx context.Context, request AdminListTopMemoryUsageRequestObject) (AdminListTopMemoryUsageResponseObject, error)
	// Force-delete an episodic memory by ID
	// (DELETE /admin/v1/memories/{id})
	AdminDeleteMemory(ctx context.Context, request AdminDeleteMemoryRequestObject) (AdminDeleteMemoryResponseObject, error)
	// List all attachments across users (admin/auditor)
	// (GET /v1/admin/attachments)
	AdminListAttachments(ctx context.Context, request AdminListAttachmentsRequestObject) (AdminListAttachmentsResponseObject, error)
	// Delete any attachment (admin only)
	// (DELETE /v1/admin/attachments/{id})
	AdminDeleteAttachment(ctx context.Context, request AdminDeleteAttachmentRequestObject) (AdminDeleteAttachmentResponseObject, error)
	// Get attachment metadata (admin/auditor)
	// (GET /v1/admin/attachments/{id})
	AdminGetAttachment(ctx context.Context, request AdminGetAttachmentRequestObject) (AdminGetAttachmentResponseObject, error)
	// Download attachment content (admin/auditor)
	// (GET /v1/admin/attachments/{id}/content)
	AdminGetAttachmentContent(ctx context.Context, request AdminGetAttachmentContentRequestObject) (AdminGetAttachmentContentResponseObject, error)
	// Get signed download URL for any attachment (admin/auditor)
	// (GET /v1/admin/attachments/{id}/download-url)
	AdminGetAttachmentDownloadUrl(ctx context.Context, request AdminGetAttachmentDownloadUrlRequestObject) (AdminGetAttachmentDownloadUrlResponseObject, error)
	// List all conversations (admin/auditor)
	// (GET /v1/admin/conversations)
	AdminListConversations(ctx context.Context, request AdminListConversationsRequestObject) (AdminListConversationsResponseObject, error)
	// System-wide semantic search (admin/auditor)
	// (POST /v1/admin/conversations/search)
	AdminSearchConversations(ctx context.Context, request AdminSearchConversationsRequestObject) (AdminSearchConversationsResponseObject, error)
	// Get any conversation (admin/auditor)
	// (GET /v1/admin/conversations/{id})
	AdminGetConversation(ctx context.Context, request AdminGetConversationRequestObject) (AdminGetConversationResponseObject, error)
	// Update any conversation (admin only)
	// (PATCH /v1/admin/conversations/{id})
	AdminUpdateConversation(ctx context.Context, request AdminUpdateConversationRequestObject) (AdminUpdateConversationResponseObject, error)
	// List direct child conversations
	// (GET /v1/admin/conversations/{id}/children)
	AdminListChildConversations(ctx context.Context, request AdminListChildConversationsRequestObject) (AdminListChildConversationsResponseObject, error)
	// Get entries from any conversation (admin/auditor)
	// (GET /v1/admin/conversations/{id}/entries)
	AdminGetEntries(ctx context.Context, request AdminGetEntriesRequestObject) (AdminGetEntriesResponseObject, error)
	// List forks for any conversation (admin/auditor)
	// (GET /v1/admin/conversations/{id}/forks)
	AdminListForks(ctx context.Context, request AdminListForksRequestObject) (AdminListForksResponseObject, error)
	// Get memberships for any conversation (admin/auditor)
	// (GET /v1/admin/conversations/{id}/memberships)
	AdminGetMemberships(ctx context.Context, request AdminGetMembershipsRequestObject) (AdminGetMembershipsResponseObject, error)
	// Subscribe to all real-time events (admin SSE)
	// (GET /v1/admin/events)
	AdminSubscribeEvents(ctx context.Context, request AdminSubscribeEventsRequestObject) (AdminSubscribeEventsResponseObject, error)
	// Hard-delete archived resources past retention period
	// (POST /v1/admin/evict)
	AdminEvict(ctx context.Context, request AdminEvictRequestObject) (AdminEvictResponseObject, error)
	// Get cache hit rate percentage over time
	// (GET /v1/admin/stats/cache-hit-rate)
	GetCacheHitRate(ctx context.Context, request GetCacheHitRateRequestObject) (GetCacheHitRateResponseObject, error)
	// Get database connection pool utilization over time
	// (GET /v1/admin/stats/db-pool-utilization)
	GetDbPoolUtilization(ctx context.Context, request GetDbPoolUtilizationRequestObject) (GetDbPoolUtilizationResponseObject, error)
	// Get 5xx error rate percentage over time
	// (GET /v1/admin/stats/error-rate)
	GetErrorRate(ctx context.Context, request GetErrorRateRequestObject) (GetErrorRateResponseObject, error)
	// Get P95 response latency over time
	// (GET /v1/admin/stats/latency-p95)
	GetLatencyP95(ctx context.Context, request GetLatencyP95RequestObject) (GetLatencyP95ResponseObject, error)
	// Get HTTP request rate over time
	// (GET /v1/admin/stats/request-rate)
	GetRequestRate(ctx context.Context, request GetRequestRateRequestObject) (GetRequestRateResponseObject, error)
	// Get P95 store operation latency by operation type
	// (GET /v1/admin/stats/store-latency-p95)
	GetStoreLatencyP95(ctx context.Context, request GetStoreLatencyP95RequestObject) (GetStoreLatencyP95ResponseObject, error)
	// Get store operation throughput by operation type
	// (GET /v1/admin/stats/store-throughput)
	GetStoreThroughput(ctx context.Context, request GetStoreThroughputRequestObject) (GetStoreThroughputResponseObject, error)
	// Get current datastore-backed admin inventory summary
	// (GET /v1/admin/stats/summary)
	GetStatsSummary(ctx context.Context, request GetStatsSummaryRequestObject) (GetStatsSummaryResponseObject, error)
	// Health check
	// (GET /v1/health)
	GetHealth(ctx context.Context, request GetHealthRequestObject) (GetHealthResponseObject, error)
}

StrictServerInterface represents all server handlers.

type TimeSeriesDataPoint

type TimeSeriesDataPoint struct {
	// Timestamp Timestamp of the data point.
	Timestamp time.Time `json:"timestamp"`

	// Value Value at this timestamp.
	Value float64 `json:"value"`
}

TimeSeriesDataPoint A single data point in a time series.

type TimeSeriesResponse

type TimeSeriesResponse struct {
	// Data Time series data points.
	Data []TimeSeriesDataPoint `json:"data"`

	// Metric Metric identifier (e.g., "request_rate", "error_rate").
	Metric string `json:"metric"`

	// Unit Unit of measurement (e.g., "requests/sec", "percent", "seconds").
	Unit string `json:"unit"`
}

TimeSeriesResponse Time series data returned by admin stats endpoints.

type TopMemoryUsageItem

type TopMemoryUsageItem struct {
	Key       *string              `json:"key,omitempty"`
	Namespace *[]string            `json:"namespace,omitempty"`
	Usage     *MemoryUsageResponse `json:"usage,omitempty"`
}

TopMemoryUsageItem defines model for TopMemoryUsageItem.

Jump to

Keyboard shortcuts

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