slackappmanifest

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppHome

type AppHome struct {
	HomeTabEnabled             types.Bool `tfsdk:"home_tab_enabled"`
	MessagesTabEnabled         types.Bool `tfsdk:"messages_tab_enabled"`
	MessagesTabReadOnlyEnabled types.Bool `tfsdk:"messages_tab_read_only_enabled"`
}

func (AppHome) Read

func (h AppHome) Read() manifest.AppHome

type BotUser

type BotUser struct {
	DisplayName  types.String `tfsdk:"display_name"`
	AlwaysOnline types.Bool   `tfsdk:"always_online"`
}

func (BotUser) Read

func (u BotUser) Read() manifest.BotUser

type DisplayInformation

type DisplayInformation struct {
	Name            types.String `tfsdk:"name"`
	Description     types.String `tfsdk:"description"`
	LongDescription types.String `tfsdk:"long_description"`
	BackgroundColor types.String `tfsdk:"background_color"`
}

func (*DisplayInformation) Read

func (*DisplayInformation) Schema

type EventSubscriptions added in v0.2.0

type EventSubscriptions struct {
	RequestURL types.String `tfsdk:"request_url"`
	BotEvents  types.Set    `tfsdk:"bot_events"`
	UserEvents types.Set    `tfsdk:"user_events"`
}

func (EventSubscriptions) Read added in v0.2.0

type Features

type Features struct {
	// Blocks
	AppHome       *AppHome       `tfsdk:"app_home"`
	BotUser       *BotUser       `tfsdk:"bot_user"`
	Shortcuts     []Shortcut     `tfsdk:"shortcut"`
	SlashCommands []SlashCommand `tfsdk:"slash_command"`
	WorkflowSteps []WorkflowStep `tfsdk:"workflow_step"`

	// Arguments
	UnfurlDomains types.Set `tfsdk:"unfurl_domains"`
}

func (Features) Read

func (f Features) Read() manifest.Features

func (*Features) Schema

func (*Features) Schema() *schema.SingleNestedBlock

type Interactivity

type Interactivity struct {
	IsEnabled             types.Bool   `tfsdk:"is_enabled"`
	RequestURL            types.String `tfsdk:"request_url"`
	MessageMenuOptionsURL types.String `tfsdk:"message_menu_options_url"`
}

func (Interactivity) Read

type Metadata

type Metadata struct {
	MajorVersion types.Int64 `tfsdk:"major_version"`
	MinorVersion types.Int64 `tfsdk:"minor_version"`
}

func (Metadata) Read

func (m Metadata) Read() manifest.Metadata

func (*Metadata) Schema

func (*Metadata) Schema() *schema.SingleNestedBlock

type OauthConfig

type OauthConfig struct {
	// Blocks
	Scopes *Scopes `tfsdk:"scopes"`

	// Arguments
	RedirectURLs types.Set `tfsdk:"redirect_urls"`
}

func (OauthConfig) Read

func (c OauthConfig) Read() manifest.OauthConfig

func (*OauthConfig) Schema

type Scopes

type Scopes struct {
	Bot  types.Set `tfsdk:"bot"`
	User types.Set `tfsdk:"user"`
}

func (Scopes) Read

func (s Scopes) Read() manifest.Scopes

type Settings

type Settings struct {
	// Blocks
	EventSubscriptions *EventSubscriptions `tfsdk:"event_subscriptions"`
	Interactivity      *Interactivity      `tfsdk:"interactivity"`

	// Arguments
	AllowedIPAddressRanges types.Set  `tfsdk:"allowed_ip_address_ranges"`
	OrgDeployEnabled       types.Bool `tfsdk:"org_deploy_enabled"`
	SocketModeEnabled      types.Bool `tfsdk:"socket_mode_enabled"`
	TokenRotationEnabled   types.Bool `tfsdk:"token_rotation_enabled"`
}

func (Settings) Read

func (s Settings) Read() manifest.Settings

func (*Settings) Schema

func (*Settings) Schema() *schema.SingleNestedBlock

type Shortcut

type Shortcut struct {
	Name        types.String `tfsdk:"name"`
	CallbackID  types.String `tfsdk:"callback_id"`
	Description types.String `tfsdk:"description"`
	Type        types.String `tfsdk:"type"`
}

func (Shortcut) Read

func (s Shortcut) Read() manifest.Shortcut

type SlashCommand

type SlashCommand struct {
	Command      types.String `tfsdk:"command"`
	Description  types.String `tfsdk:"description"`
	ShouldEscape types.Bool   `tfsdk:"should_escape"`
	URL          types.String `tfsdk:"url"`
	UsageHint    types.String `tfsdk:"usage_hint"`
}

func (SlashCommand) Read

type WorkflowStep

type WorkflowStep struct {
	Name       types.String `tfsdk:"name"`
	CallbackID types.String `tfsdk:"callback_id"`
}

func (WorkflowStep) Read

Jump to

Keyboard shortcuts

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