Documentation
¶
Index ¶
- Constants
- func StaticCommands(commands ...*Config) appsdk.TypedHandlerFunc[GetCommandsRequest, GetCommandsResponse]
- type ActionResult
- type AutoCompleteArgument
- type Chat
- type Choice
- type Config
- type ExecuteRequest
- type ExtensionBuilder
- func (b *ExtensionBuilder) Execute(name string, handler appsdk.TypedHandlerFunc[ExecuteRequest, ActionResult]) *ExtensionBuilder
- func (b *ExtensionBuilder) ExtensionFunction(name string, opts ...appsdk.FunctionOption) *ExtensionBuilder
- func (b *ExtensionBuilder) Function(name string, opts ...appsdk.FunctionOption) *ExtensionBuilder
- func (b *ExtensionBuilder) GetCommands(handler appsdk.TypedHandlerFunc[GetCommandsRequest, GetCommandsResponse]) *ExtensionBuilder
- func (b *ExtensionBuilder) Register(app *appsdk.App) error
- func (b *ExtensionBuilder) Suggestions(name string, ...) *ExtensionBuilder
- type GetCommandsRequest
- type GetCommandsResponse
- type GetSuggestionsRequest
- type GetSuggestionsResponse
- type NameDescI18n
- type NameI18n
- type ParamDefinition
- type ProtoActionResult
- type ProtoAutoCompleteArgument
- type ProtoChat
- type ProtoChoice
- type ProtoConfig
- type ProtoExecuteRequest
- type ProtoGetCommandsRequest
- type ProtoGetCommandsResponse
- type ProtoGetSuggestionsRequest
- type ProtoGetSuggestionsResponse
- type ProtoNameDescI18n
- type ProtoNameI18n
- type ProtoParamDefI18n
- type ProtoParamDefinition
- type ProtoTrigger
- type Suggestion
- type Trigger
Constants ¶
View Source
const ( ExtensionName = "command" SystemVersion = "v1" FunctionGetCommands = "extension.command.metadata.getCommands" FunctionGetSuggestions = "extension.command.command.getSuggestions" FunctionExecute = "extension.command.command.execute" ScopeFront = "front" ScopeDesk = "desk" AlfModeDisable = "disable" AlfModeRecommend = "recommend" )
Variables ¶
This section is empty.
Functions ¶
func StaticCommands ¶
func StaticCommands(commands ...*Config) appsdk.TypedHandlerFunc[GetCommandsRequest, GetCommandsResponse]
Types ¶
type ActionResult ¶
type ActionResult = sdkv1.CommandResult
type AutoCompleteArgument ¶
type AutoCompleteArgument = sdkv1.CommandAutoCompleteArgument
type Chat ¶
type Chat = sdkv1.ExtensionChat
type Choice ¶
type Choice = sdkv1.CommandChoice
type Config ¶
type Config = sdkv1.CommandConfig
type ExecuteRequest ¶
type ExecuteRequest = sdkv1.CommandExecuteInput
type ExtensionBuilder ¶
type ExtensionBuilder struct {
// contains filtered or unexported fields
}
func Extension ¶
func Extension() *ExtensionBuilder
func (*ExtensionBuilder) Execute ¶
func (b *ExtensionBuilder) Execute(name string, handler appsdk.TypedHandlerFunc[ExecuteRequest, ActionResult]) *ExtensionBuilder
func (*ExtensionBuilder) ExtensionFunction ¶
func (b *ExtensionBuilder) ExtensionFunction(name string, opts ...appsdk.FunctionOption) *ExtensionBuilder
func (*ExtensionBuilder) Function ¶
func (b *ExtensionBuilder) Function(name string, opts ...appsdk.FunctionOption) *ExtensionBuilder
func (*ExtensionBuilder) GetCommands ¶
func (b *ExtensionBuilder) GetCommands(handler appsdk.TypedHandlerFunc[GetCommandsRequest, GetCommandsResponse]) *ExtensionBuilder
func (*ExtensionBuilder) Suggestions ¶
func (b *ExtensionBuilder) Suggestions(name string, handler appsdk.TypedHandlerFunc[GetSuggestionsRequest, GetSuggestionsResponse]) *ExtensionBuilder
type GetCommandsRequest ¶
type GetCommandsRequest = sdkv1.CommandGetCommandsInput
type GetCommandsResponse ¶
type GetCommandsResponse = sdkv1.CommandGetCommandsOutput
type GetSuggestionsRequest ¶
type GetSuggestionsRequest = sdkv1.CommandGetSuggestionsInput
type GetSuggestionsResponse ¶
type GetSuggestionsResponse = sdkv1.CommandGetSuggestionsOutput
type NameDescI18n ¶
type NameDescI18n = sdkv1.CommandNameDescI18N
type NameI18n ¶
type NameI18n = sdkv1.CommandNameI18N
type ParamDefinition ¶
type ParamDefinition = sdkv1.CommandParamDefinition
type ProtoActionResult ¶
type ProtoActionResult = sdkv1.CommandResult
type ProtoAutoCompleteArgument ¶
type ProtoAutoCompleteArgument = sdkv1.CommandAutoCompleteArgument
type ProtoChat ¶
type ProtoChat = sdkv1.ExtensionChat
type ProtoChoice ¶
type ProtoChoice = sdkv1.CommandChoice
type ProtoConfig ¶
type ProtoConfig = sdkv1.CommandConfig
type ProtoExecuteRequest ¶
type ProtoExecuteRequest = sdkv1.CommandExecuteInput
type ProtoGetCommandsRequest ¶
type ProtoGetCommandsRequest = sdkv1.CommandGetCommandsInput
type ProtoGetCommandsResponse ¶
type ProtoGetCommandsResponse = sdkv1.CommandGetCommandsOutput
type ProtoGetSuggestionsRequest ¶
type ProtoGetSuggestionsRequest = sdkv1.CommandGetSuggestionsInput
type ProtoGetSuggestionsResponse ¶
type ProtoGetSuggestionsResponse = sdkv1.CommandGetSuggestionsOutput
type ProtoNameDescI18n ¶
type ProtoNameDescI18n = sdkv1.CommandNameDescI18N
type ProtoNameI18n ¶
type ProtoNameI18n = sdkv1.CommandNameI18N
type ProtoParamDefI18n ¶
type ProtoParamDefI18n = sdkv1.CommandParamDefI18N
type ProtoParamDefinition ¶
type ProtoParamDefinition = sdkv1.CommandParamDefinition
type ProtoTrigger ¶
type ProtoTrigger = sdkv1.CommandTrigger
type Suggestion ¶
type Suggestion = sdkv1.CommandChoice
type Trigger ¶
type Trigger = sdkv1.CommandTrigger
Click to show internal directories.
Click to hide internal directories.