view

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "ui/view"

Variables

This section is empty.

Functions

This section is empty.

Types

type GetInput

type GetInput struct {
	ID string `json:"id"`
}

type GetOutput

type GetOutput struct {
	Item *ListItem `json:"item,omitempty"`
}

type ListInput

type ListInput struct{}

type ListItem

type ListItem struct {
	ID                 string                 `json:"id,omitempty"`
	Title              string                 `json:"title,omitempty"`
	Description        string                 `json:"description,omitempty"`
	WindowKey          string                 `json:"windowKey,omitempty"`
	Presentation       string                 `json:"presentation,omitempty"`
	Region             string                 `json:"region,omitempty"`
	OpenMode           string                 `json:"openMode,omitempty"`
	WorkspaceSharePct  int                    `json:"workspaceSharePct,omitempty"`
	WorkspaceMinHeight int                    `json:"workspaceMinHeight,omitempty"`
	Parameters         []viewproto.Parameter  `json:"parameters,omitempty"`
	Capabilities       viewproto.Capabilities `json:"capabilities,omitempty"`
}

type ListOutput

type ListOutput struct {
	Items []ListItem `json:"items,omitempty"`
}

type OpenInput

type OpenInput struct {
	ID         string                 `json:"id,omitempty"`
	Parameters map[string]interface{} `json:"parameters,omitempty"`
	OpenMode   string                 `json:"openMode,omitempty"`
	Items      []OpenItem             `json:"items,omitempty"`
	ClientID   string                 `json:"clientId,omitempty"`
	TimeoutMs  int                    `json:"timeoutMs,omitempty"`
}

type OpenItem

type OpenItem struct {
	ID         string                 `json:"id"`
	Parameters map[string]interface{} `json:"parameters"`
	OpenMode   string                 `json:"openMode,omitempty"`
}

type OpenOutput

type OpenOutput struct {
	ClientID           string                 `json:"clientId,omitempty"`
	WindowID           string                 `json:"windowId,omitempty"`
	SelectedWindowID   string                 `json:"selectedWindowId,omitempty"`
	WindowKey          string                 `json:"windowKey,omitempty"`
	WindowTitle        string                 `json:"windowTitle,omitempty"`
	ConversationID     string                 `json:"conversationId,omitempty"`
	Presentation       string                 `json:"presentation,omitempty"`
	Region             string                 `json:"region,omitempty"`
	ParentKey          string                 `json:"parentKey,omitempty"`
	WorkspaceSharePct  int                    `json:"workspaceSharePct,omitempty"`
	WorkspaceMinHeight int                    `json:"workspaceMinHeight,omitempty"`
	Parameters         map[string]interface{} `json:"parameters,omitempty"`
	Items              []OpenResultItem       `json:"items,omitempty"`
	OK                 bool                   `json:"ok,omitempty"`
	Error              string                 `json:"error,omitempty"`
}

type OpenResultItem

type OpenResultItem struct {
	WindowID           string                 `json:"windowId,omitempty"`
	WindowKey          string                 `json:"windowKey,omitempty"`
	WindowTitle        string                 `json:"windowTitle,omitempty"`
	ConversationID     string                 `json:"conversationId,omitempty"`
	Presentation       string                 `json:"presentation,omitempty"`
	Region             string                 `json:"region,omitempty"`
	ParentKey          string                 `json:"parentKey,omitempty"`
	WorkspaceSharePct  int                    `json:"workspaceSharePct,omitempty"`
	WorkspaceMinHeight int                    `json:"workspaceMinHeight,omitempty"`
	Parameters         map[string]interface{} `json:"parameters,omitempty"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(repository *repo.Repository, bridge *forgeuisvc.Service) *Service

func (*Service) Method

func (s *Service) Method(name string) (svc.Executable, error)

func (*Service) Methods

func (s *Service) Methods() svc.Signatures

func (*Service) Name

func (s *Service) Name() string

Jump to

Keyboard shortcuts

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