serverapi

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIDocResponse

type APIDocResponse struct {
	Library     string                     `json:"library"`
	Description string                     `json:"description"`
	Modules     map[string]types.ModuleDoc `json:"modules"`
}

APIDocResponse is the response for the python://ethpandaops resource.

type CreateSessionResponse

type CreateSessionResponse struct {
	SessionID    string `json:"session_id"`
	TTLRemaining string `json:"ttl_remaining,omitempty"`
}

type DatasourcesResponse

type DatasourcesResponse struct {
	Datasources []types.DatasourceInfo `json:"datasources"`
}

type ExecuteRequest

type ExecuteRequest struct {
	Code      string `json:"code"`
	Timeout   int    `json:"timeout,omitempty"`
	SessionID string `json:"session_id,omitempty"`
}

type ExecuteResponse

type ExecuteResponse struct {
	Stdout              string                `json:"stdout,omitempty"`
	Stderr              string                `json:"stderr,omitempty"`
	ExitCode            int                   `json:"exit_code"`
	ExecutionID         string                `json:"execution_id"`
	OutputFiles         []string              `json:"output_files,omitempty"`
	Metrics             map[string]any        `json:"metrics,omitempty"`
	DurationSeconds     float64               `json:"duration_seconds"`
	SessionID           string                `json:"session_id,omitempty"`
	SessionFiles        []sandbox.SessionFile `json:"session_files,omitempty"`
	SessionTTLRemaining string                `json:"session_ttl_remaining,omitempty"`
}

type ListResourcesResponse added in v0.5.0

type ListResourcesResponse struct {
	Resources []ResourceInfo         `json:"resources"`
	Templates []ResourceTemplateInfo `json:"templates,omitempty"`
}

ListResourcesResponse is the response for GET /api/v1/resources.

type ListSessionsResponse

type ListSessionsResponse struct {
	Sessions    []SessionResponse `json:"sessions"`
	Total       int               `json:"total"`
	MaxSessions int               `json:"max_sessions"`
}

type ProxyAuthMetadataResponse

type ProxyAuthMetadataResponse struct {
	Enabled   bool   `json:"enabled"`
	Mode      string `json:"mode,omitempty"`
	IssuerURL string `json:"issuer_url,omitempty"`
	ClientID  string `json:"client_id,omitempty"`
	Resource  string `json:"resource,omitempty"`
}

type ResourceInfo added in v0.5.0

type ResourceInfo struct {
	URI         string `json:"uri"`
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
	MIMEType    string `json:"mime_type,omitempty"`
}

ResourceInfo describes a single static resource.

type ResourceResponse

type ResourceResponse struct {
	URI      string `json:"uri"`
	MIMEType string `json:"mime_type"`
	Content  string `json:"content"`
}

type ResourceTemplateInfo added in v0.5.0

type ResourceTemplateInfo struct {
	URITemplate string `json:"uri_template"`
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
	MIMEType    string `json:"mime_type,omitempty"`
}

ResourceTemplateInfo describes a resource template with URI parameters.

type RuntimeStorageFile

type RuntimeStorageFile struct {
	Key          string `json:"key"`
	Size         int64  `json:"size"`
	LastModified string `json:"last_modified,omitempty"`
	URL          string `json:"url,omitempty"`
}

type RuntimeStorageListResponse

type RuntimeStorageListResponse struct {
	Files []RuntimeStorageFile `json:"files"`
}

type RuntimeStorageURLResponse

type RuntimeStorageURLResponse struct {
	Key string `json:"key"`
	URL string `json:"url"`
}

type RuntimeStorageUploadResponse

type RuntimeStorageUploadResponse struct {
	Key string `json:"key"`
	URL string `json:"url"`
}

type SearchEIPResult added in v0.12.0

type SearchEIPResult struct {
	Number          int     `json:"number"`
	Title           string  `json:"title"`
	Description     string  `json:"description"`
	Author          string  `json:"author,omitempty"`
	Status          string  `json:"status"`
	Type            string  `json:"type"`
	Category        string  `json:"category,omitempty"`
	Created         string  `json:"created,omitempty"`
	URL             string  `json:"url"`
	SimilarityScore float64 `json:"similarity_score"`
}

type SearchEIPsResponse added in v0.12.0

type SearchEIPsResponse struct {
	Type                string             `json:"type"`
	Query               string             `json:"query"`
	StatusFilter        string             `json:"status_filter,omitempty"`
	CategoryFilter      string             `json:"category_filter,omitempty"`
	TypeFilter          string             `json:"type_filter,omitempty"`
	TotalMatches        int                `json:"total_matches"`
	Results             []*SearchEIPResult `json:"results"`
	AvailableStatuses   []string           `json:"available_statuses"`
	AvailableCategories []string           `json:"available_categories"`
	AvailableTypes      []string           `json:"available_types"`
}

type SearchExampleResult

type SearchExampleResult struct {
	CategoryKey     string  `json:"category_key"`
	CategoryName    string  `json:"category_name"`
	ExampleName     string  `json:"example_name"`
	Description     string  `json:"description"`
	Query           string  `json:"query"`
	TargetCluster   string  `json:"target_cluster"`
	SimilarityScore float64 `json:"similarity_score"`
}

type SearchExamplesResponse

type SearchExamplesResponse struct {
	Type                string                 `json:"type"`
	Query               string                 `json:"query"`
	CategoryFilter      string                 `json:"category_filter,omitempty"`
	TotalMatches        int                    `json:"total_matches"`
	Results             []*SearchExampleResult `json:"results"`
	AvailableCategories []string               `json:"available_categories"`
}

type SearchRunbookResult

type SearchRunbookResult struct {
	Name            string   `json:"name"`
	Description     string   `json:"description"`
	Tags            []string `json:"tags"`
	Prerequisites   []string `json:"prerequisites"`
	Content         string   `json:"content"`
	FilePath        string   `json:"file_path"`
	SimilarityScore float64  `json:"similarity_score"`
}

type SearchRunbooksResponse

type SearchRunbooksResponse struct {
	Type          string                 `json:"type"`
	Query         string                 `json:"query"`
	TagFilter     string                 `json:"tag_filter,omitempty"`
	TotalMatches  int                    `json:"total_matches"`
	Results       []*SearchRunbookResult `json:"results"`
	AvailableTags []string               `json:"available_tags"`
}

type SessionResponse

type SessionResponse struct {
	SessionID      string                `json:"session_id"`
	CreatedAt      time.Time             `json:"created_at"`
	LastUsed       time.Time             `json:"last_used"`
	TTLRemaining   string                `json:"ttl_remaining"`
	WorkspaceFiles []sandbox.SessionFile `json:"workspace_files,omitempty"`
}

Jump to

Keyboard shortcuts

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