// @generated by protoc-gen-es-lite unknown with parameter "target=ts,ts_nocheck=false" // @generated from file github.com/s4wave/spacewave/bldr/desktop/tray/tray.proto (package bldr.desktop.tray, syntax proto3) /* eslint-disable */ import { createEnumType } from '@aptre/protobuf-es-lite/enum' import type { MessageType } from '@aptre/protobuf-es-lite/message' import { createMessageType } from '@aptre/protobuf-es-lite/message' /** * DesktopTrayEntryKind describes native menu mapping semantics. * * @generated from enum bldr.desktop.tray.DesktopTrayEntryKind */ export enum DesktopTrayEntryKind { /** * DESKTOP_TRAY_ENTRY_KIND_UNSPECIFIED leaves row semantics unset. */ UNSPECIFIED = 0, /** * DESKTOP_TRAY_ENTRY_KIND_SECTION renders a disabled section heading. */ SECTION = 1, /** * DESKTOP_TRAY_ENTRY_KIND_SEPARATOR renders a native separator. */ SEPARATOR = 2, /** * DESKTOP_TRAY_ENTRY_KIND_STATUS renders a disabled status row. */ STATUS = 3, /** * DESKTOP_TRAY_ENTRY_KIND_ACTION renders an invokable action row. */ ACTION = 4, /** * DESKTOP_TRAY_ENTRY_KIND_SUBMENU renders a submenu container. */ SUBMENU = 5, } export const DesktopTrayEntryKind_Enum = /* @__PURE__ */ createEnumType( 'bldr.desktop.tray.DesktopTrayEntryKind', [ [0, 'DESKTOP_TRAY_ENTRY_KIND_UNSPECIFIED'], [1, 'DESKTOP_TRAY_ENTRY_KIND_SECTION'], [2, 'DESKTOP_TRAY_ENTRY_KIND_SEPARATOR'], [3, 'DESKTOP_TRAY_ENTRY_KIND_STATUS'], [4, 'DESKTOP_TRAY_ENTRY_KIND_ACTION'], [5, 'DESKTOP_TRAY_ENTRY_KIND_SUBMENU'], ], ) /** * DesktopTrayActionKind describes selectable action semantics. * * @generated from enum bldr.desktop.tray.DesktopTrayActionKind */ export enum DesktopTrayActionKind { /** * DESKTOP_TRAY_ACTION_KIND_UNSPECIFIED leaves action semantics unset. */ UNSPECIFIED = 0, /** * DESKTOP_TRAY_ACTION_KIND_OPEN_ROUTE opens or focuses an app route. */ OPEN_ROUTE = 1, /** * DESKTOP_TRAY_ACTION_KIND_NEW_WINDOW opens an app route in a new window. */ NEW_WINDOW = 2, /** * DESKTOP_TRAY_ACTION_KIND_COPY_TEXT copies text to the native clipboard. */ COPY_TEXT = 3, /** * DESKTOP_TRAY_ACTION_KIND_REVEAL_PATH reveals a local filesystem path. */ REVEAL_PATH = 4, /** * DESKTOP_TRAY_ACTION_KIND_QUIT requests explicit runtime quit. */ QUIT = 5, /** * DESKTOP_TRAY_ACTION_KIND_ATTACHED_HANDLER invokes the attached action resource. */ ATTACHED_HANDLER = 6, } export const DesktopTrayActionKind_Enum = /* @__PURE__ */ createEnumType( 'bldr.desktop.tray.DesktopTrayActionKind', [ [0, 'DESKTOP_TRAY_ACTION_KIND_UNSPECIFIED'], [1, 'DESKTOP_TRAY_ACTION_KIND_OPEN_ROUTE'], [2, 'DESKTOP_TRAY_ACTION_KIND_NEW_WINDOW'], [3, 'DESKTOP_TRAY_ACTION_KIND_COPY_TEXT'], [4, 'DESKTOP_TRAY_ACTION_KIND_REVEAL_PATH'], [5, 'DESKTOP_TRAY_ACTION_KIND_QUIT'], [6, 'DESKTOP_TRAY_ACTION_KIND_ATTACHED_HANDLER'], ], ) /** * DesktopTrayIconState describes collapsed tray icon status. * * @generated from enum bldr.desktop.tray.DesktopTrayIconState */ export enum DesktopTrayIconState { /** * DESKTOP_TRAY_ICON_STATE_UNSPECIFIED leaves icon status unset. */ UNSPECIFIED = 0, /** * DESKTOP_TRAY_ICON_STATE_NORMAL indicates steady healthy state. */ NORMAL = 1, /** * DESKTOP_TRAY_ICON_STATE_ACTIVE indicates useful background activity. */ ACTIVE = 2, /** * DESKTOP_TRAY_ICON_STATE_ATTENTION indicates user action is needed. */ ATTENTION = 3, /** * DESKTOP_TRAY_ICON_STATE_DISCONNECTED indicates runtime disconnection. */ DISCONNECTED = 4, /** * DESKTOP_TRAY_ICON_STATE_QUITTING indicates explicit shutdown is running. */ QUITTING = 5, } export const DesktopTrayIconState_Enum = /* @__PURE__ */ createEnumType( 'bldr.desktop.tray.DesktopTrayIconState', [ [0, 'DESKTOP_TRAY_ICON_STATE_UNSPECIFIED'], [1, 'DESKTOP_TRAY_ICON_STATE_NORMAL'], [2, 'DESKTOP_TRAY_ICON_STATE_ACTIVE'], [3, 'DESKTOP_TRAY_ICON_STATE_ATTENTION'], [4, 'DESKTOP_TRAY_ICON_STATE_DISCONNECTED'], [5, 'DESKTOP_TRAY_ICON_STATE_QUITTING'], ], ) /** * DesktopTraySeverity describes row urgency. * * @generated from enum bldr.desktop.tray.DesktopTraySeverity */ export enum DesktopTraySeverity { /** * DESKTOP_TRAY_SEVERITY_UNSPECIFIED leaves severity unset. */ UNSPECIFIED = 0, /** * DESKTOP_TRAY_SEVERITY_INFO marks informational status. */ INFO = 1, /** * DESKTOP_TRAY_SEVERITY_WARNING marks a recoverable warning. */ WARNING = 2, /** * DESKTOP_TRAY_SEVERITY_CRITICAL marks a blocking issue. */ CRITICAL = 3, } export const DesktopTraySeverity_Enum = /* @__PURE__ */ createEnumType( 'bldr.desktop.tray.DesktopTraySeverity', [ [0, 'DESKTOP_TRAY_SEVERITY_UNSPECIFIED'], [1, 'DESKTOP_TRAY_SEVERITY_INFO'], [2, 'DESKTOP_TRAY_SEVERITY_WARNING'], [3, 'DESKTOP_TRAY_SEVERITY_CRITICAL'], ], ) /** * DesktopTrayState is the full tray tree snapshot. * * @generated from message bldr.desktop.tray.DesktopTrayState */ export interface DesktopTrayState { /** * Entries contains the registered tray entries. */ entries?: DesktopTrayEntry[] /** * IconState describes the collapsed platform icon status. */ iconState?: DesktopTrayIconState /** * StatusText is short platform icon tooltip text. */ statusText?: string } export const DesktopTrayState: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.DesktopTrayState', () => [ [1, 'entries', 11, 1, DesktopTrayEntry.codec], [2, 'icon_state', 14, 0, DesktopTrayIconState_Enum], [3, 'status_text', 9], ], ) /** * DesktopTrayEntry describes one platform-neutral tray row. * * @generated from message bldr.desktop.tray.DesktopTrayEntry */ export interface DesktopTrayEntry { /** * Id identifies the entry within the tray tree. */ id?: string /** * Kind describes how the entry maps to a native menu item. */ kind?: DesktopTrayEntryKind /** * Path places the entry under nested submenu labels. */ path?: string[] /** * Group orders related entries and creates section breaks between groups. */ group?: string /** * Order sorts entries within a path and group. */ order?: number /** * Label is primary display text. */ label?: string /** * Detail is secondary display text. */ detail?: string /** * StatusText is compact status text for the row. */ statusText?: string /** * IconName is a platform-neutral icon hint. */ iconName?: string /** * IconState is a platform-neutral status hint. */ iconState?: DesktopTrayIconState /** * Severity describes attention urgency for status and action rows. */ severity?: DesktopTraySeverity /** * Active is set when the row describes active foreground work. */ active?: boolean /** * Enabled indicates whether an action row can run. */ enabled?: boolean /** * Action describes what happens when an action row is selected. */ action?: DesktopTrayAction } export const DesktopTrayEntry: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.DesktopTrayEntry', () => [ [1, 'id', 9], [2, 'kind', 14, 0, DesktopTrayEntryKind_Enum], [3, 'path', 9, 1], [4, 'group', 9], [5, 'order', 5], [6, 'label', 9], [7, 'detail', 9], [8, 'status_text', 9], [9, 'icon_name', 9], [10, 'icon_state', 14, 0, DesktopTrayIconState_Enum], [11, 'severity', 14, 0, DesktopTraySeverity_Enum], [12, 'active', 8], [13, 'enabled', 8], [14, 'action', 11, 0, DesktopTrayAction.codec], ], ) /** * DesktopTrayAction describes a selectable tray action. * * @generated from message bldr.desktop.tray.DesktopTrayAction */ export interface DesktopTrayAction { /** * Kind describes the platform-neutral action category. */ kind?: DesktopTrayActionKind /** * Route is the app route used by route-opening actions. */ route?: string /** * Value is action-specific text such as copy text or a filesystem path. */ value?: string } export const DesktopTrayAction: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.DesktopTrayAction', () => [ [1, 'kind', 14, 0, DesktopTrayActionKind_Enum], [2, 'route', 9], [3, 'value', 9], ], ) /** * RegisterDesktopTrayEntryRequest is the request for RegisterDesktopTrayEntry. * * @generated from message bldr.desktop.tray.RegisterDesktopTrayEntryRequest */ export interface RegisterDesktopTrayEntryRequest { /** * Entry is the tray entry to register. */ entry?: DesktopTrayEntry /** * AttachedActionResourceId is an optional attached DesktopTrayActionHandlerService resource. */ attachedActionResourceId?: number } export const RegisterDesktopTrayEntryRequest: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.RegisterDesktopTrayEntryRequest', () => [ [1, 'entry', 11, 0, DesktopTrayEntry.codec], [2, 'attached_action_resource_id', 13], ], ) /** * RegisterDesktopTrayEntryResponse is the response for RegisterDesktopTrayEntry. * * @generated from message bldr.desktop.tray.RegisterDesktopTrayEntryResponse */ export interface RegisterDesktopTrayEntryResponse { /** * ResourceId is the registered DesktopTrayEntryResourceService resource. */ resourceId?: number } export const RegisterDesktopTrayEntryResponse: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.RegisterDesktopTrayEntryResponse', () => [[1, 'resource_id', 13]], ) /** * WatchDesktopTrayRequest is the request for WatchDesktopTray. * * @generated from message bldr.desktop.tray.WatchDesktopTrayRequest */ export interface WatchDesktopTrayRequest {} export const WatchDesktopTrayRequest: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.WatchDesktopTrayRequest', () => [], ) /** * WatchDesktopTrayResponse is the response for WatchDesktopTray. * * @generated from message bldr.desktop.tray.WatchDesktopTrayResponse */ export interface WatchDesktopTrayResponse { /** * State is the current tray tree snapshot. */ state?: DesktopTrayState } export const WatchDesktopTrayResponse: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.WatchDesktopTrayResponse', () => [[1, 'state', 11, 0, DesktopTrayState.codec]], ) /** * InvokeDesktopTrayEntryRequest is the request for InvokeDesktopTrayEntry. * * @generated from message bldr.desktop.tray.InvokeDesktopTrayEntryRequest */ export interface InvokeDesktopTrayEntryRequest { /** * EntryId is the entry id to invoke. */ entryId?: string } export const InvokeDesktopTrayEntryRequest: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.InvokeDesktopTrayEntryRequest', () => [[1, 'entry_id', 9]], ) /** * InvokeDesktopTrayEntryResponse is the response for InvokeDesktopTrayEntry. * * @generated from message bldr.desktop.tray.InvokeDesktopTrayEntryResponse */ export interface InvokeDesktopTrayEntryResponse {} export const InvokeDesktopTrayEntryResponse: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.InvokeDesktopTrayEntryResponse', () => [], ) /** * SetDesktopTrayEntryRequest is the request for SetDesktopTrayEntry. * * @generated from message bldr.desktop.tray.SetDesktopTrayEntryRequest */ export interface SetDesktopTrayEntryRequest { /** * Entry is the replacement entry state. */ entry?: DesktopTrayEntry } export const SetDesktopTrayEntryRequest: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.SetDesktopTrayEntryRequest', () => [[1, 'entry', 11, 0, DesktopTrayEntry.codec]], ) /** * SetDesktopTrayEntryResponse is the response for SetDesktopTrayEntry. * * @generated from message bldr.desktop.tray.SetDesktopTrayEntryResponse */ export interface SetDesktopTrayEntryResponse {} export const SetDesktopTrayEntryResponse: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.SetDesktopTrayEntryResponse', () => [], ) /** * SetDesktopTrayEntryActiveRequest is the request for SetDesktopTrayEntryActive. * * @generated from message bldr.desktop.tray.SetDesktopTrayEntryActiveRequest */ export interface SetDesktopTrayEntryActiveRequest { /** * Active is the replacement active flag. */ active?: boolean } export const SetDesktopTrayEntryActiveRequest: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.SetDesktopTrayEntryActiveRequest', () => [[1, 'active', 8]], ) /** * SetDesktopTrayEntryActiveResponse is the response for SetDesktopTrayEntryActive. * * @generated from message bldr.desktop.tray.SetDesktopTrayEntryActiveResponse */ export interface SetDesktopTrayEntryActiveResponse {} export const SetDesktopTrayEntryActiveResponse: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.SetDesktopTrayEntryActiveResponse', () => [], ) /** * SetDesktopTrayEntryEnabledRequest is the request for SetDesktopTrayEntryEnabled. * * @generated from message bldr.desktop.tray.SetDesktopTrayEntryEnabledRequest */ export interface SetDesktopTrayEntryEnabledRequest { /** * Enabled is the replacement enabled flag. */ enabled?: boolean } export const SetDesktopTrayEntryEnabledRequest: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.SetDesktopTrayEntryEnabledRequest', () => [[1, 'enabled', 8]], ) /** * SetDesktopTrayEntryEnabledResponse is the response for SetDesktopTrayEntryEnabled. * * @generated from message bldr.desktop.tray.SetDesktopTrayEntryEnabledResponse */ export interface SetDesktopTrayEntryEnabledResponse {} export const SetDesktopTrayEntryEnabledResponse: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.SetDesktopTrayEntryEnabledResponse', () => [], ) /** * HandleDesktopTrayActionRequest is the request for HandleDesktopTrayAction. * * @generated from message bldr.desktop.tray.HandleDesktopTrayActionRequest */ export interface HandleDesktopTrayActionRequest { /** * EntryId identifies the invoked tray entry. */ entryId?: string /** * Action is the action payload from the registered entry. */ action?: DesktopTrayAction } export const HandleDesktopTrayActionRequest: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.HandleDesktopTrayActionRequest', () => [ [1, 'entry_id', 9], [2, 'action', 11, 0, DesktopTrayAction.codec], ], ) /** * HandleDesktopTrayActionResponse is the response for HandleDesktopTrayAction. * * @generated from message bldr.desktop.tray.HandleDesktopTrayActionResponse */ export interface HandleDesktopTrayActionResponse {} export const HandleDesktopTrayActionResponse: MessageType = /* @__PURE__ */ createMessageType( 'bldr.desktop.tray.HandleDesktopTrayActionResponse', () => [], )