Encapsulates all intent request and response objects.

Index

Enumerations

Classes

Interfaces

Type aliases

Type aliases

EventHandler

Handler type for EVENT intent.

EventRequest

Request Object for EVENT intent.

EventResponse

Response Object for EVENT intent.

ExecuteErrors

ExecuteErrors: string

For a list of the supported EXECUTE error codes, see Errors and exceptions

ExecuteRequest

Request passed to the application's EXECUTE intent handler, containing a list of commands and target device IDs to be updated.

See ExecuteHandler for more details.

ExecuteResponse

ExecuteResponse: CloudResponse<ExecutePayload>

Container for the status of the commands that the local app received in an EXECUTE intent.

Use Response.Builder to create an ExecuteResponse instance and set the corresponding status for each target device ID present in the ExecuteRequest.

const response = new Execute.Response.Builder()
    .setRequestId(request.requestId);

const result = localHomeApp.getDeviceManager()
  .send(deviceCommand)
  .then((result) => {
    // Handle command success
    response.setSuccessState(device.id, state);
  })
  .catch((err: IntentFlow.HandlerError) => {
    // Handle command error
    response.setErrorState(device.id, err.errorCode);
  });

return result.then(() => response.build());

See ExecuteHandler for more details.

ExecuteStatus

ExecuteStatus: "SUCCESS" | "PENDING" | "OFFLINE" | "ERROR" | "EXCEPTIONS"

Response status codes for EXECUTE intent requests.

IdentifyRequest

Request passed to the application's IDENTIFY intent handler, containing a LocalIdentifiedDevice detected by the local scan configuration.

See IdentifyHandler for more details.

IdentifyResponse

Response returned by the application's IDENTIFY intent handler to describe the locally discovered device.

See IdentifyHandler for more details.

IndicateHandler

Handler type for INDICATE intent.

IndicateRequest

Request Object for INDICATE intent.

IndicateResponse

Response Object for INDICATE intent.

ParseNotificationHandler

Handler type for PARSE_NOTIFICATION intent.

ParseNotificationRequest

ParseNotificationRequest: RequestInterface<LocalNotifyingDevice>

Request Object for PARSE_NOTIFICATION intent.

ParseNotificationResponse

Response Object for PARSE_NOTIFICATION intent.

ProvisionHandler

Handler type for PROVISION intent.

ProvisionRequest

Request Object for PROVISION intent.

ProvisionResponse

Response Object for PROVISION intent.

ProxySelectedHandler

Callback registered with the App via onProxySelected() to allow app to save proxyData for the hub device.

ProxySelectedRequest

Request passed to the application's PROXY_SELECTED intent handler, containing a LocalIdentifiedDevice detected by the local scan configuration.

ProxySelectedResponse

ProxySelectedResponse: ResponseInterface<ProxySelectedPayload>

Response returned by the application's PROXY_SELECTED intent handler to save information about the selected proxy.

QueryRequest

Request passed to the application's QUERY intent handler, containing a list of device IDs to report state.

See QueryHandler for more details.

QueryResponse

QueryResponse: CloudResponse<QueryPayload>

Response returned by the application's QUERY intent handler.

See QueryHandler for more details.

ReachableDevicesRequest

ReachableDevicesRequest: RequestInterface<LocalIdentifiedDevice>

Request passed to the application's REACHABLE_DEVICES intent handler, containing a LocalIdentifiedDevice successfully identified as a proxy or hub.

See ReachableDevicesHandler for more details.

ReachableDevicesResponse

ReachableDevicesResponse: ResponseInterface<ReachableDevicesPayload>

Response returned by the application's REACHABLE_DEVICES intent handler to describe additional devices visible to the proxy device.

See ReachableDevicesHandler for more details.

RegisterHandler

Handler type for REGISTER intent.

RegisterRequest

Request Object for REGISTER intent.

RegisterResponse

Response Object for REGISTER intent.

UnprovisionHandler

Handler type for UNPROVISION intent.

UnprovisionRequest

Request Object for UNPROVISION intent.

UnprovisionResponse

UnprovisionResponse: ResponseInterface<ResponsePayload>

Response Object for UNPROVISION intent.

UpdateHandler

Handler type for UPDATE intent.

UpdateRequest

Request Object for UPDATE intent.

UpdateResponse

Response Object for UPDATE intent.