types

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent added in v0.23.0

type Agent struct {
	CreatorId    *int64         `json:"creator_id,omitempty"`
	Enabled      *bool          `json:"enabled,omitempty"`
	Id           *string        `json:"id,omitempty"`
	Model        *string        `json:"model,omitempty"`
	ModelFast    *string        `json:"model_fast,omitempty"`
	ModelStrong  *string        `json:"model_strong,omitempty"`
	Name         *string        `json:"name,omitempty"`
	Sandbox      *SandboxConfig `json:"sandbox,omitempty"`
	Scope        *string        `json:"scope,omitempty"`
	Soul         *string        `json:"soul,omitempty"`
	SystemPrompt *string        `json:"system_prompt,omitempty"`
	Workspace    *string        `json:"workspace,omitempty"`
}

Agent defines model for Agent.

type AgentList added in v0.23.0

type AgentList struct {
	Items []Agent `json:"items"`
}

AgentList defines model for AgentList.

type AgentUser added in v0.23.0

type AgentUser struct {
	Id       *int64  `json:"id,omitempty"`
	Username *string `json:"username,omitempty"`
}

AgentUser defines model for AgentUser.

type AgentUserList added in v0.23.0

type AgentUserList struct {
	Items []AgentUser `json:"items"`
}

AgentUserList defines model for AgentUserList.

type Article

type Article struct {
	AgentId      *string `json:"agent_id,omitempty"`
	Author       *string `json:"author,omitempty"`
	CanonicalUrl string  `json:"canonical_url"`

	// Content Article body in markdown. Returned only when ?include=content is set.
	Content     *string            `json:"content,omitempty"`
	CreatedAt   time.Time          `json:"created_at"`
	FilePath    string             `json:"file_path"`
	Id          string             `json:"id"`
	Metadata    *map[string]string `json:"metadata,omitempty"`
	PublishedAt *time.Time         `json:"published_at,omitempty"`
	ReadAt      *time.Time         `json:"read_at,omitempty"`
	SavedAt     time.Time          `json:"saved_at"`
	SourceType  SourceType         `json:"source_type"`
	Starred     bool               `json:"starred"`
	Status      ArticleStatus      `json:"status"`
	Summary     *string            `json:"summary,omitempty"`
	Tags        *[]string          `json:"tags,omitempty"`
	Title       string             `json:"title"`
	UpdatedAt   time.Time          `json:"updated_at"`
	Url         string             `json:"url"`
}

Article defines model for Article.

type ArticleList

type ArticleList struct {
	Items []Article `json:"items"`
}

ArticleList defines model for ArticleList.

type ArticleStatus

type ArticleStatus string

ArticleStatus defines model for ArticleStatus.

const (
	Archived ArticleStatus = "archived"
	Read     ArticleStatus = "read"
	Unread   ArticleStatus = "unread"
)

Defines values for ArticleStatus.

func (ArticleStatus) Valid

func (e ArticleStatus) Valid() bool

Valid indicates whether the value is a known member of the ArticleStatus enum.

type AssignAgentUserRequest added in v0.23.0

type AssignAgentUserRequest struct {
	UserId int64 `json:"user_id"`
}

AssignAgentUserRequest defines model for AssignAgentUserRequest.

type AuthResponse added in v0.23.0

type AuthResponse struct {
	Id       int64  `json:"id"`
	Username string `json:"username"`
}

AuthResponse defines model for AuthResponse.

type AuthUser added in v0.23.0

type AuthUser struct {
	CreatedAt  string     `json:"created_at"`
	Id         int64      `json:"id"`
	Identities []Identity `json:"identities"`
	IsActive   bool       `json:"is_active"`
	Role       string     `json:"role"`
	UpdatedAt  string     `json:"updated_at"`
	Username   string     `json:"username"`
}

AuthUser defines model for AuthUser.

type AuthUserList added in v0.23.0

type AuthUserList struct {
	Items []AuthUser `json:"items"`
}

AuthUserList defines model for AuthUserList.

type BadRequest

type BadRequest struct {
	Error string `json:"error"`
}

BadRequest defines model for BadRequest.

type BuiltinResource added in v0.23.0

type BuiltinResource struct {
	Description *string                 `json:"description,omitempty"`
	Hash        *string                 `json:"hash,omitempty"`
	Id          string                  `json:"id"`
	Kind        string                  `json:"kind"`
	Metadata    *map[string]interface{} `json:"metadata,omitempty"`
	Name        string                  `json:"name"`
	Tags        *[]string               `json:"tags,omitempty"`
}

BuiltinResource defines model for BuiltinResource.

type BuiltinResourceDetail added in v0.23.0

type BuiltinResourceDetail struct {
	Content     string                  `json:"content"`
	Description *string                 `json:"description,omitempty"`
	Hash        *string                 `json:"hash,omitempty"`
	Id          string                  `json:"id"`
	Kind        string                  `json:"kind"`
	Metadata    *map[string]interface{} `json:"metadata,omitempty"`
	Name        string                  `json:"name"`
	Tags        *[]string               `json:"tags,omitempty"`
}

BuiltinResourceDetail defines model for BuiltinResourceDetail.

type CachedModel added in v0.23.0

type CachedModel struct {
	Model    string `json:"model"`
	Provider string `json:"provider"`
}

CachedModel defines model for CachedModel.

type ChangePasswordRequest added in v0.23.0

type ChangePasswordRequest struct {
	CurrentPassword string `json:"current_password"`
	NewPassword     string `json:"new_password"`
}

ChangePasswordRequest defines model for ChangePasswordRequest.

type Channel added in v0.23.0

type Channel struct {
	AgentId *string `json:"agent_id,omitempty"`

	// Config JSON string of the channel config
	Config  string `json:"config"`
	Enabled bool   `json:"enabled"`
	Id      string `json:"id"`
	Type    string `json:"type"`
}

Channel defines model for Channel.

type ChannelList added in v0.23.0

type ChannelList struct {
	Items []Channel `json:"items"`
}

ChannelList defines model for ChannelList.

type ChannelWriteRequest added in v0.23.0

type ChannelWriteRequest struct {
	AgentId *string `json:"agent_id,omitempty"`

	// Config JSON string of the channel config
	Config *string `json:"config,omitempty"`
	Id     *string `json:"id,omitempty"`
	Type   *string `json:"type,omitempty"`
}

ChannelWriteRequest defines model for ChannelWriteRequest.

type Conflict

type Conflict struct {
	Error string `json:"error"`
}

Conflict defines model for Conflict.

type CreateAgentRequest added in v0.23.0

type CreateAgentRequest struct {
	CreatorId    *int64         `json:"creator_id,omitempty"`
	Enabled      *bool          `json:"enabled,omitempty"`
	Id           *string        `json:"id,omitempty"`
	Model        *string        `json:"model,omitempty"`
	ModelFast    *string        `json:"model_fast,omitempty"`
	ModelStrong  *string        `json:"model_strong,omitempty"`
	Name         *string        `json:"name,omitempty"`
	Sandbox      *SandboxConfig `json:"sandbox,omitempty"`
	Scope        *string        `json:"scope,omitempty"`
	Soul         *string        `json:"soul,omitempty"`
	SystemPrompt *string        `json:"system_prompt,omitempty"`
	TemplateId   *string        `json:"template_id,omitempty"`
	Workspace    *string        `json:"workspace,omitempty"`
}

CreateAgentRequest defines model for CreateAgentRequest.

type CreateFeedRequest

type CreateFeedRequest struct {
	AgentId *string `json:"agent_id,omitempty"`

	// Title Optional override; server fetches feed metadata if omitted
	Title *string `json:"title,omitempty"`
	Url   string  `json:"url"`
}

CreateFeedRequest defines model for CreateFeedRequest.

type CreateSessionRequest added in v0.23.0

type CreateSessionRequest struct {
	AgentId *string `json:"agent_id,omitempty"`
}

CreateSessionRequest defines model for CreateSessionRequest.

type CreateSkillRequest added in v0.23.0

type CreateSkillRequest struct {
	AgentId                *string            `json:"agent_id,omitempty"`
	Description            *string            `json:"description,omitempty"`
	DisableModelInvocation *bool              `json:"disable_model_invocation,omitempty"`
	Files                  *map[string]string `json:"files,omitempty"`
	Name                   *string            `json:"name,omitempty"`
	Scope                  *string            `json:"scope,omitempty"`
	Status                 *string            `json:"status,omitempty"`
	UserId                 *int64             `json:"user_id,omitempty"`
}

CreateSkillRequest defines model for CreateSkillRequest.

type DeleteFileResult added in v0.23.0

type DeleteFileResult struct {
	Path *string `json:"path,omitempty"`
}

DeleteFileResult defines model for DeleteFileResult.

type DeleteResult

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

DeleteResult defines model for DeleteResult.

type Digest

type Digest struct {
	ArchivedCount        int64      `json:"archived_count"`
	Date                 time.Time  `json:"date"`
	ReadCount            int64      `json:"read_count"`
	SavedYesterday       []Article  `json:"saved_yesterday"`
	SavedYesterdayCount  int        `json:"saved_yesterday_count"`
	StarredCount         int64      `json:"starred_count"`
	TopTags              []TagCount `json:"top_tags"`
	TotalArticles        int64      `json:"total_articles"`
	UnreadCount          int64      `json:"unread_count"`
	WorthRevisiting      []Article  `json:"worth_revisiting"`
	WorthRevisitingCount int        `json:"worth_revisiting_count"`
}

Digest defines model for Digest.

type DuplicateSkillResult added in v0.23.0

type DuplicateSkillResult struct {
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
}

DuplicateSkillResult defines model for DuplicateSkillResult.

type Error

type Error struct {
	Error string `json:"error"`
}

Error defines model for Error.

type Feed

type Feed struct {
	AgentId       *string    `json:"agent_id,omitempty"`
	CheckInterval string     `json:"check_interval"`
	CreatedAt     time.Time  `json:"created_at"`
	Description   *string    `json:"description,omitempty"`
	Enabled       bool       `json:"enabled"`
	Id            string     `json:"id"`
	LastCheckedAt *time.Time `json:"last_checked_at,omitempty"`
	LastEtag      *string    `json:"last_etag,omitempty"`
	LastModified  *string    `json:"last_modified,omitempty"`
	Title         string     `json:"title"`
	UpdatedAt     time.Time  `json:"updated_at"`
	Url           string     `json:"url"`
}

Feed defines model for Feed.

type FeedEntry

type FeedEntry struct {
	ArticleId    *string         `json:"article_id,omitempty"`
	Attempts     int             `json:"attempts"`
	DiscoveredAt time.Time       `json:"discovered_at"`
	ErrorMsg     *string         `json:"error_msg,omitempty"`
	FeedId       string          `json:"feed_id"`
	Guid         string          `json:"guid"`
	Id           string          `json:"id"`
	ProcessedAt  *time.Time      `json:"processed_at,omitempty"`
	Status       FeedEntryStatus `json:"status"`
	Title        string          `json:"title"`
	Url          string          `json:"url"`
}

FeedEntry defines model for FeedEntry.

type FeedEntryList

type FeedEntryList struct {
	Items []FeedEntry `json:"items"`
}

FeedEntryList defines model for FeedEntryList.

type FeedEntryStatus

type FeedEntryStatus string

FeedEntryStatus defines model for FeedEntryStatus.

const (
	FeedEntryStatusError   FeedEntryStatus = "error"
	FeedEntryStatusPending FeedEntryStatus = "pending"
	FeedEntryStatusSaved   FeedEntryStatus = "saved"
	FeedEntryStatusSkipped FeedEntryStatus = "skipped"
)

Defines values for FeedEntryStatus.

func (FeedEntryStatus) Valid

func (e FeedEntryStatus) Valid() bool

Valid indicates whether the value is a known member of the FeedEntryStatus enum.

type FeedList

type FeedList struct {
	Items []Feed `json:"items"`
}

FeedList defines model for FeedList.

type FeedPollResult

type FeedPollResult struct {
	// Error Set if the upstream RSS fetch failed but the feed exists
	Error      *string     `json:"error,omitempty"`
	Feed       Feed        `json:"feed"`
	NewEntries []FeedEntry `json:"new_entries"`
}

FeedPollResult defines model for FeedPollResult.

type FetchModelsRequest added in v0.23.0

type FetchModelsRequest struct {
	ApiKey  *string `json:"api_key,omitempty"`
	BaseUrl *string `json:"base_url,omitempty"`
}

FetchModelsRequest defines model for FetchModelsRequest.

type Forbidden

type Forbidden struct {
	Error string `json:"error"`
}

Forbidden defines model for Forbidden.

type GenerateLinkCodeRequest added in v0.23.0

type GenerateLinkCodeRequest struct {
	Platform string `json:"platform"`
}

GenerateLinkCodeRequest defines model for GenerateLinkCodeRequest.

type GlobalInstallSkillRequest added in v0.23.0

type GlobalInstallSkillRequest struct {
	AgentId *string `json:"agent_id,omitempty"`
	Scope   *string `json:"scope,omitempty"`
	Source  string  `json:"source"`
	UserId  *int64  `json:"user_id,omitempty"`
}

GlobalInstallSkillRequest defines model for GlobalInstallSkillRequest.

type Identity added in v0.23.0

type Identity struct {
	ExternalId string    `json:"external_id"`
	Id         int64     `json:"id"`
	LinkedAt   time.Time `json:"linked_at"`
	Name       string    `json:"name"`
	Platform   string    `json:"platform"`
	UserId     int64     `json:"user_id"`
}

Identity defines model for Identity.

type InstallSkillRequest added in v0.23.0

type InstallSkillRequest struct {
	Source string `json:"source"`
}

InstallSkillRequest defines model for InstallSkillRequest.

type Job

type Job struct {
	AgentId *string `json:"agent_id,omitempty"`

	// At RFC3339 one-time timestamp (mutually exclusive with cron/every)
	At        *string    `json:"at,omitempty"`
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Cron Cron expression (mutually exclusive with every/at)
	Cron        *string `json:"cron,omitempty"`
	Description *string `json:"description,omitempty"`
	Enabled     bool    `json:"enabled"`

	// Every Go duration string, e.g. '30m' (mutually exclusive with cron/at)
	Every     *string    `json:"every,omitempty"`
	Id        string     `json:"id"`
	JobKey    *string    `json:"job_key,omitempty"`
	LastError *string    `json:"last_error,omitempty"`
	LastRunAt *time.Time `json:"last_run_at,omitempty"`

	// Message Prompt/instruction to run on schedule
	Message string `json:"message"`
	Name    string `json:"name"`

	// OwnerKind Ownership class: 'user' or 'plugin'
	OwnerKind *string `json:"owner_kind,omitempty"`

	// Payload Arbitrary structured data for plugin-owned jobs
	Payload     *map[string]interface{} `json:"payload,omitempty"`
	PluginId    *string                 `json:"plugin_id,omitempty"`
	RuntimeName *string                 `json:"runtime_name,omitempty"`

	// SessionMode Session behaviour: 'reuse' or 'new'
	SessionMode string     `json:"session_mode"`
	UpdatedAt   *time.Time `json:"updated_at,omitempty"`
	UserId      *int64     `json:"user_id,omitempty"`
}

Job defines model for Job.

type JobInput

type JobInput struct {
	AgentId     *string `json:"agent_id,omitempty"`
	At          *string `json:"at,omitempty"`
	Cron        *string `json:"cron,omitempty"`
	Description *string `json:"description,omitempty"`
	Enabled     *bool   `json:"enabled,omitempty"`
	Every       *string `json:"every,omitempty"`
	Message     *string `json:"message,omitempty"`
	Name        *string `json:"name,omitempty"`
	SessionMode *string `json:"session_mode,omitempty"`

	// UserId Admin-only: set 0 for system jobs
	UserId *int64 `json:"user_id,omitempty"`
}

JobInput Fields for creating or updating a job. For create: name, message, and exactly one of cron/every/at are required.

type JobList

type JobList struct {
	Items []Job `json:"items"`
}

JobList defines model for JobList.

type JobRun

type JobRun struct {
	Duration   *string `json:"duration,omitempty"`
	Error      *string `json:"error,omitempty"`
	FinishedAt *string `json:"finished_at,omitempty"`
	Id         string  `json:"id"`
	JobId      string  `json:"job_id"`
	SessionId  string  `json:"session_id"`
	StartedAt  string  `json:"started_at"`
	Status     string  `json:"status"`
	UserId     *int64  `json:"user_id,omitempty"`
}

JobRun defines model for JobRun.

type JobRunList

type JobRunList = []JobRun

JobRunList defines model for JobRunList.

type LinkCodeResponse added in v0.23.0

type LinkCodeResponse struct {
	Code     string `json:"code"`
	Platform string `json:"platform"`
}

LinkCodeResponse defines model for LinkCodeResponse.

type LoginRequest added in v0.23.0

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

LoginRequest defines model for LoginRequest.

type ManifestPlugin added in v0.23.0

type ManifestPlugin map[string]interface{}

ManifestPlugin defines model for ManifestPlugin.

type MeResponse added in v0.23.0

type MeResponse struct {
	Id       int64  `json:"id"`
	IsAdmin  bool   `json:"is_admin"`
	Role     string `json:"role"`
	Username string `json:"username"`
}

MeResponse defines model for MeResponse.

type NotFound

type NotFound struct {
	Error string `json:"error"`
}

NotFound defines model for NotFound.

type OAuthConnectedResponse added in v0.23.0

type OAuthConnectedResponse struct {
	Connected bool    `json:"connected"`
	Username  *string `json:"username,omitempty"`
}

OAuthConnectedResponse defines model for OAuthConnectedResponse.

type OAuthFlowStatus added in v0.23.0

type OAuthFlowStatus struct {
	ExpiresAt       string  `json:"expires_at"`
	FlowId          string  `json:"flow_id"`
	Provider        string  `json:"provider"`
	State           string  `json:"state"`
	UserCode        *string `json:"user_code,omitempty"`
	VerificationUri string  `json:"verification_uri"`
}

OAuthFlowStatus defines model for OAuthFlowStatus.

type OAuthProviderStatus added in v0.23.0

type OAuthProviderStatus struct {
	Available   bool    `json:"available"`
	Connected   bool    `json:"connected"`
	Provider    string  `json:"provider"`
	Unavailable *string `json:"unavailable,omitempty"`
	Username    *string `json:"username,omitempty"`
}

OAuthProviderStatus defines model for OAuthProviderStatus.

type PluginView added in v0.23.0

type PluginView struct {
	AdminVisible *bool                   `json:"admin_visible,omitempty"`
	Capabilities *[]string               `json:"capabilities,omitempty"`
	Config       *map[string]interface{} `json:"config,omitempty"`
	Description  *string                 `json:"description,omitempty"`
	DisplayName  *string                 `json:"display_name,omitempty"`
	Enabled      *bool                   `json:"enabled,omitempty"`
	HasConfig    *bool                   `json:"has_config,omitempty"`
	HasStatus    *bool                   `json:"has_status,omitempty"`
	Id           *string                 `json:"id,omitempty"`
	Kind         *string                 `json:"kind,omitempty"`
	Managed      *bool                   `json:"managed,omitempty"`
	Name         *string                 `json:"name,omitempty"`
	Persisted    *bool                   `json:"persisted,omitempty"`
	PersistedId  *string                 `json:"persisted_id,omitempty"`
}

PluginView defines model for PluginView.

type ProfileInstallSkillRequest added in v0.23.0

type ProfileInstallSkillRequest struct {
	Source string `json:"source"`
}

ProfileInstallSkillRequest defines model for ProfileInstallSkillRequest.

type Provider added in v0.23.0

type Provider struct {
	ApiKey  string                    `json:"api_key"`
	BaseUrl string                    `json:"base_url"`
	Enabled bool                      `json:"enabled"`
	Id      string                    `json:"id"`
	Models  *map[string]ProviderModel `json:"models,omitempty"`
	Name    string                    `json:"name"`
	Type    string                    `json:"type"`
}

Provider defines model for Provider.

type ProviderModel added in v0.23.0

type ProviderModel struct {
	ContextWindow *int               `json:"contextWindow,omitempty"`
	Cost          *ProviderModelCost `json:"cost,omitempty"`
	Enabled       bool               `json:"enabled"`
	Id            *string            `json:"id,omitempty"`
	Input         *[]string          `json:"input,omitempty"`
	MaxTokens     *int               `json:"maxTokens,omitempty"`
	Name          *string            `json:"name,omitempty"`
	Output        *[]string          `json:"output,omitempty"`
	Reasoning     *bool              `json:"reasoning,omitempty"`
}

ProviderModel defines model for ProviderModel.

type ProviderModelCost added in v0.23.0

type ProviderModelCost struct {
	CacheRead  *float64 `json:"cacheRead,omitempty"`
	CacheWrite *float64 `json:"cacheWrite,omitempty"`
	Input      *float64 `json:"input,omitempty"`
	Output     *float64 `json:"output,omitempty"`
}

ProviderModelCost defines model for ProviderModelCost.

type ProviderModelItem added in v0.23.0

type ProviderModelItem struct {
	Config  *ProviderModel `json:"config,omitempty"`
	Enabled bool           `json:"enabled"`
	Id      string         `json:"id"`
	Name    *string        `json:"name,omitempty"`
	Source  string         `json:"source"`
}

ProviderModelItem defines model for ProviderModelItem.

type ProviderType added in v0.23.0

type ProviderType struct {
	DefaultUrl string `json:"default_url"`
	Id         string `json:"id"`
	Name       string `json:"name"`
}

ProviderType defines model for ProviderType.

type PublicChannel added in v0.23.0

type PublicChannel struct {
	AgentId   *string `json:"agent_id,omitempty"`
	AgentName *string `json:"agent_name,omitempty"`
	Enabled   bool    `json:"enabled"`
	Id        string  `json:"id"`
	Label     string  `json:"label"`
	Type      string  `json:"type"`
}

PublicChannel defines model for PublicChannel.

type PublicChannelList added in v0.23.0

type PublicChannelList struct {
	Items []PublicChannel `json:"items"`
}

PublicChannelList defines model for PublicChannelList.

type RegisterRequest added in v0.23.0

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

RegisterRequest defines model for RegisterRequest.

type SandboxConfig added in v0.23.0

type SandboxConfig struct {
	Network *SandboxNetworkConfig `json:"network,omitempty"`
}

SandboxConfig defines model for SandboxConfig.

type SandboxNetworkConfig added in v0.23.0

type SandboxNetworkConfig struct {
	Allowlist *[]string `json:"allowlist,omitempty"`
	Mode      *string   `json:"mode,omitempty"`
}

SandboxNetworkConfig defines model for SandboxNetworkConfig.

type SaveArticleRequest

type SaveArticleRequest struct {
	AgentId      *string `json:"agent_id,omitempty"`
	Author       *string `json:"author,omitempty"`
	CanonicalUrl *string `json:"canonical_url,omitempty"`

	// Content Markdown body. If empty and the article exists, only metadata is updated; if empty and the article is new, the request fails 400.
	Content     *string            `json:"content,omitempty"`
	Metadata    *map[string]string `json:"metadata,omitempty"`
	PublishedAt *time.Time         `json:"published_at,omitempty"`
	SourceType  *SourceType        `json:"source_type,omitempty"`
	Summary     *string            `json:"summary,omitempty"`
	Tags        *[]string          `json:"tags,omitempty"`
	Title       *string            `json:"title,omitempty"`
	Url         string             `json:"url"`
}

SaveArticleRequest defines model for SaveArticleRequest.

type SendMessageRequest added in v0.23.0

type SendMessageRequest struct {
	// Content Message content (required)
	Content string `json:"content"`
}

SendMessageRequest defines model for SendMessageRequest.

type Session added in v0.23.0

type Session struct {
	AgentId    string `json:"agent_id"`
	Archived   bool   `json:"archived"`
	Channel    string `json:"channel"`
	CreatedAt  string `json:"created_at"`
	Id         string `json:"id"`
	LastActive string `json:"last_active"`
	Title      string `json:"title"`
	UserId     int64  `json:"user_id"`
}

Session defines model for Session.

type SessionDetail added in v0.23.0

type SessionDetail struct {
	AgentId    string  `json:"agent_id"`
	AgentName  *string `json:"agent_name,omitempty"`
	Archived   bool    `json:"archived"`
	Channel    string  `json:"channel"`
	CreatedAt  string  `json:"created_at"`
	Id         string  `json:"id"`
	LastActive string  `json:"last_active"`
	Title      string  `json:"title"`
	UserId     int64   `json:"user_id"`
	UserName   *string `json:"user_name,omitempty"`
}

SessionDetail defines model for SessionDetail.

type SetMemoryRequest added in v0.23.0

type SetMemoryRequest struct {
	Content string `json:"content"`
}

SetMemoryRequest defines model for SetMemoryRequest.

type SetSoulRequest added in v0.23.0

type SetSoulRequest struct {
	Soul string `json:"soul"`
}

SetSoulRequest defines model for SetSoulRequest.

type SetVaultEntryRequest added in v0.23.0

type SetVaultEntryRequest struct {
	Value string `json:"value"`
}

SetVaultEntryRequest defines model for SetVaultEntryRequest.

type Skill added in v0.23.0

type Skill struct {
	AgentId                *string   `json:"agent_id,omitempty"`
	CreatedAt              *string   `json:"created_at,omitempty"`
	Description            *string   `json:"description,omitempty"`
	DisableModelInvocation *bool     `json:"disable_model_invocation,omitempty"`
	Files                  *[]string `json:"files,omitempty"`
	Id                     *string   `json:"id,omitempty"`
	Name                   *string   `json:"name,omitempty"`
	Scope                  *string   `json:"scope,omitempty"`
	Status                 *string   `json:"status,omitempty"`
	UpdatedAt              *string   `json:"updated_at,omitempty"`
	UserId                 *int64    `json:"user_id,omitempty"`
}

Skill defines model for Skill.

type SkillFileResponse added in v0.23.0

type SkillFileResponse struct {
	Content *string `json:"content,omitempty"`
	Path    *string `json:"path,omitempty"`
}

SkillFileResponse defines model for SkillFileResponse.

type SkillList added in v0.23.0

type SkillList struct {
	Items []Skill `json:"items"`
}

SkillList defines model for SkillList.

type SkillSearchResult added in v0.23.0

type SkillSearchResult struct {
	Id       *string `json:"id,omitempty"`
	Installs *int    `json:"installs,omitempty"`
	Name     *string `json:"name,omitempty"`
	SkillId  *string `json:"skillId,omitempty"`
	Source   *string `json:"source,omitempty"`
}

SkillSearchResult defines model for SkillSearchResult.

type SkillSearchResultList added in v0.23.0

type SkillSearchResultList struct {
	Items []SkillSearchResult `json:"items"`
}

SkillSearchResultList defines model for SkillSearchResultList.

type SkillUploadResult added in v0.23.0

type SkillUploadResult struct {
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
}

SkillUploadResult defines model for SkillUploadResult.

type SourceType

type SourceType string

SourceType defines model for SourceType.

const (
	Github  SourceType = "github"
	Pdf     SourceType = "pdf"
	Rss     SourceType = "rss"
	Twitter SourceType = "twitter"
	Web     SourceType = "web"
	Youtube SourceType = "youtube"
)

Defines values for SourceType.

func (SourceType) Valid

func (e SourceType) Valid() bool

Valid indicates whether the value is a known member of the SourceType enum.

type SystemPromptResponse added in v0.23.0

type SystemPromptResponse struct {
	SystemPrompt string `json:"system_prompt"`
}

SystemPromptResponse defines model for SystemPromptResponse.

type TagCount

type TagCount struct {
	Count int64  `json:"count"`
	Tag   string `json:"tag"`
}

TagCount defines model for TagCount.

type TogglePluginRequest added in v0.23.0

type TogglePluginRequest struct {
	Enabled bool `json:"enabled"`
}

TogglePluginRequest defines model for TogglePluginRequest.

type Tool added in v0.23.0

type Tool struct {
	Category    string                  `json:"category"`
	Description string                  `json:"description"`
	InputSchema *map[string]interface{} `json:"input_schema,omitempty"`
	Name        string                  `json:"name"`
}

Tool defines model for Tool.

type TriggerJobResult

type TriggerJobResult struct {
	RunId  *string `json:"run_id,omitempty"`
	Status string  `json:"status"`
}

TriggerJobResult defines model for TriggerJobResult.

type Unauthorized

type Unauthorized struct {
	Error string `json:"error"`
}

Unauthorized defines model for Unauthorized.

type UpdateActiveRequest added in v0.23.0

type UpdateActiveRequest struct {
	IsActive bool `json:"is_active"`
}

UpdateActiveRequest defines model for UpdateActiveRequest.

type UpdateAgentsRequest added in v0.23.0

type UpdateAgentsRequest struct {
	AgentIds []string `json:"agent_ids"`
}

UpdateAgentsRequest defines model for UpdateAgentsRequest.

type UpdateArticleRequest

type UpdateArticleRequest struct {
	Author *string `json:"author,omitempty"`

	// Content If set, rewrites the markdown file body.
	Content     *string            `json:"content,omitempty"`
	FilePath    *string            `json:"file_path,omitempty"`
	Metadata    *map[string]string `json:"metadata,omitempty"`
	PublishedAt *time.Time         `json:"published_at,omitempty"`
	Starred     *bool              `json:"starred,omitempty"`
	Status      *ArticleStatus     `json:"status,omitempty"`
	Summary     *string            `json:"summary,omitempty"`
	Tags        *[]string          `json:"tags,omitempty"`
	Title       *string            `json:"title,omitempty"`
}

UpdateArticleRequest Only provided fields are updated.

type UpdateDefaultAgentRequest added in v0.23.0

type UpdateDefaultAgentRequest struct {
	DefaultAgentId string `json:"default_agent_id"`
}

UpdateDefaultAgentRequest defines model for UpdateDefaultAgentRequest.

type UpdateFeedEntryRequest

type UpdateFeedEntryRequest struct {
	ArticleId *string         `json:"article_id,omitempty"`
	ErrorMsg  *string         `json:"error_msg,omitempty"`
	Status    FeedEntryStatus `json:"status"`
}

UpdateFeedEntryRequest defines model for UpdateFeedEntryRequest.

type UpdateFeedRequest

type UpdateFeedRequest struct {
	CheckInterval *string `json:"check_interval,omitempty"`
	Description   *string `json:"description,omitempty"`
	Enabled       *bool   `json:"enabled,omitempty"`
	Title         *string `json:"title,omitempty"`
}

UpdateFeedRequest defines model for UpdateFeedRequest.

type UpdateNotifyIdentityRequest added in v0.23.0

type UpdateNotifyIdentityRequest struct {
	NotifyIdentityId *int64 `json:"notify_identity_id,omitempty"`
}

UpdateNotifyIdentityRequest defines model for UpdateNotifyIdentityRequest.

type UpdatePluginConfigRequest added in v0.23.0

type UpdatePluginConfigRequest struct {
	Config *map[string]interface{} `json:"config,omitempty"`
}

UpdatePluginConfigRequest defines model for UpdatePluginConfigRequest.

type UpdateRoleRequest added in v0.23.0

type UpdateRoleRequest struct {
	Role string `json:"role"`
}

UpdateRoleRequest defines model for UpdateRoleRequest.

type UpdateSkillRequest added in v0.23.0

type UpdateSkillRequest struct {
	Description            *string            `json:"description,omitempty"`
	DisableModelInvocation *bool              `json:"disable_model_invocation,omitempty"`
	Files                  *map[string]string `json:"files,omitempty"`
	Status                 *string            `json:"status,omitempty"`
}

UpdateSkillRequest defines model for UpdateSkillRequest.

type UserMemory added in v0.23.0

type UserMemory map[string]interface{}

UserMemory defines model for UserMemory.

type VaultEntry added in v0.23.0

type VaultEntry struct {
	CreatedAt string `json:"created_at"`
	Name      string `json:"name"`
	UpdatedAt string `json:"updated_at"`
}

VaultEntry defines model for VaultEntry.

type WeixinQRCode added in v0.23.0

type WeixinQRCode struct {
	Qrcode           *string `json:"qrcode,omitempty"`
	QrcodeImgContent *string `json:"qrcode_img_content,omitempty"`
}

WeixinQRCode defines model for WeixinQRCode.

type WeixinQRStatus added in v0.23.0

type WeixinQRStatus struct {
	Baseurl     *string `json:"baseurl,omitempty"`
	BotToken    *string `json:"bot_token,omitempty"`
	IlinkBotId  *string `json:"ilink_bot_id,omitempty"`
	IlinkUserId *string `json:"ilink_user_id,omitempty"`
	Status      *string `json:"status,omitempty"`
}

WeixinQRStatus defines model for WeixinQRStatus.

Jump to

Keyboard shortcuts

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