alexatypes

package
v0.0.0-...-f8c32d9 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

The missing types I couldn't find from anywhere in AWS's SDK or the Go ecosystem

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlexaAuthorizationAcceptGrantInput

type AlexaAuthorizationAcceptGrantInput struct {
	Grant struct {
		Type string `json:"type"`
		Code string `json:"code"`
	} `json:"grant"`
	Grantee TypeAndToken `json:"grantee"`
}

type AlexaBrightnessControllerSetBrightness

type AlexaBrightnessControllerSetBrightness struct {
	Brightness int `json:"brightness"`
}

type AlexaColorControllerSetColor

type AlexaColorControllerSetColor struct {
	Color ColorHsv `json:"color"`
}

type AlexaColorTemperatureControllerSetColorTemperature

type AlexaColorTemperatureControllerSetColorTemperature struct {
	ColorTemperatureInKelvin int `json:"colorTemperatureInKelvin"`
}

type AlexaDiscoveryDiscoverInput

type AlexaDiscoveryDiscoverInput struct {
	Scope TypeAndToken `json:"scope"`
}

type AlexaEvent

type AlexaEvent struct {
	Header   AlexaEventHeader `json:"header"`
	Endpoint *Endpoint        `json:"endpoint,omitempty"`
	Payload  *json.RawMessage `json:"payload"`
}

type AlexaEventHeader

type AlexaEventHeader struct {
	Namespace        string  `json:"namespace"`
	Name             string  `json:"name"`
	PayloadVersion   string  `json:"payloadVersion"`
	MessageId        string  `json:"messageId"`
	CorrelationToken *string `json:"correlationToken,omitempty"`
}

shared in directive input & responses

type AlexaPercentageControllerSetPercentage

type AlexaPercentageControllerSetPercentage struct {
	Percentage int `json:"percentage"`
}

type AlexaPlaybackControllerFastForward

type AlexaPlaybackControllerFastForward NoPayload

type AlexaPlaybackControllerNext

type AlexaPlaybackControllerNext NoPayload

type AlexaPlaybackControllerPause

type AlexaPlaybackControllerPause NoPayload

type AlexaPlaybackControllerPlay

type AlexaPlaybackControllerPlay NoPayload

type AlexaPlaybackControllerPrevious

type AlexaPlaybackControllerPrevious NoPayload

type AlexaPlaybackControllerRewind

type AlexaPlaybackControllerRewind NoPayload

type AlexaPlaybackControllerStartOver

type AlexaPlaybackControllerStartOver NoPayload

type AlexaPlaybackControllerStop

type AlexaPlaybackControllerStop NoPayload

type AlexaPowerControllerTurnOff

type AlexaPowerControllerTurnOff NoPayload

type AlexaPowerControllerTurnOn

type AlexaPowerControllerTurnOn NoPayload

type AlexaProperty

type AlexaProperty struct {
	Namespace                 string      `json:"namespace"`
	Name                      string      `json:"name"`
	Value                     interface{} `json:"value"` // can contain basically whatever..
	TimeOfSample              time.Time   `json:"timeOfSample"`
	UncertaintyInMilliseconds int         `json:"uncertaintyInMilliseconds"`
}

type AlexaReportStateInput

type AlexaReportStateInput NoPayload

type AlexaResponse

type AlexaResponse struct {
	Context *AlexaResponseContext `json:"context,omitempty"`
	Event   AlexaEvent            `json:"event"`
}

type AlexaResponseContext

type AlexaResponseContext struct {
	Properties []AlexaProperty `json:"properties"`
}

type Change

type Change struct {
	Properties []AlexaProperty `json:"properties"`
	Cause      *ChangeCause    `json:"cause,omitempty"`
}

type ChangeCause

type ChangeCause struct {
	Type string `json:"type"`
}

type ChangeReport

type ChangeReport struct {
	Change Change `json:"change"`
}

type ColorHsv

type ColorHsv struct {
	Hue        float64 `json:"hue"`
	Saturation float64 `json:"saturation"`
	Brightness float64 `json:"brightness"`
}

in HSV

type DirectiveInput

type DirectiveInput struct {
	Directive AlexaEvent `json:"directive"`
}

type Endpoint

type Endpoint struct {
	Scope      *TypeAndToken     `json:"scope,omitempty"`
	EndpointId string            `json:"endpointId"`
	Cookie     map[string]string `json:"cookie,omitempty"`
}

type EndpointSpec

type EndpointSpec struct {
	EndpointId        string                   `json:"endpointId"`
	ManufacturerName  string                   `json:"manufacturerName"`
	Version           string                   `json:"version"`
	FriendlyName      string                   `json:"friendlyName"`
	Description       string                   `json:"description"`
	DisplayCategories []string                 `json:"displayCategories"`
	Capabilities      []EndpointSpecCapability `json:"capabilities"`
	Cookie            map[string]string        `json:"cookie"`
}

type EndpointSpecCapability

type EndpointSpecCapability struct {
	Type                string                            `json:"type"`
	Interface           string                            `json:"interface"`
	Version             string                            `json:"version"`
	Properties          *EndpointSpecCapabilityProperties `json:"properties,omitempty"`
	SupportedOperations []string                          `json:"supportedOperations,omitempty"`
}

type EndpointSpecCapabilityNamedProperty

type EndpointSpecCapabilityNamedProperty struct {
	Name string `json:"name"`
}

type EndpointSpecCapabilityProperties

type EndpointSpecCapabilityProperties struct {
	Supported           []EndpointSpecCapabilityNamedProperty `json:"supported"`
	ProactivelyReported bool                                  `json:"proactivelyReported"`
	Retrievable         bool                                  `json:"retrievable"`
}

type EndpointsPayload

type EndpointsPayload struct {
	Endpoints []EndpointSpec `json:"endpoints"`
}

type NoPayload

type NoPayload struct{}

type TypeAndToken

type TypeAndToken struct {
	Type  string `json:"type"`
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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