actions-on-google / actions-on-google-nodejs

Node.js client library for Actions on Google
https://actions-on-google.github.io/actions-on-google-nodejs
Apache License 2.0
900 stars 197 forks source link

Incorrect scheme for SmartHomeV1QueryResponse #406

Open Shatungoo opened 3 years ago

Shatungoo commented 3 years ago

2 optional fields (errorCode and debugString) missed inside interface SmartHomeV1QueryResponse.

Scheme from google https://developers.google.com/assistant/smarthome/reference/intent/query#response_format payload:

Library(src/service/smarthome/api/v1.ts) doesn't contain errorCode and debugString into reposnce(it uses the same scheme as payload for SmartHomeV1QueryRequest)


export interface SmartHomeV1QueryPayload {
  devices: ApiClientObjectMap<any>
}

export interface SmartHomeV1QueryResponse {
  requestId: string,
  payload: SmartHomeV1QueryPayload
}