Skip to content

Commit

Permalink
feat(homegraph)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### homegraph:v1

The following keys were deleted:
- schemas.Device.properties.nonLocalTraits.description
- schemas.Device.properties.nonLocalTraits.items.$ref
- schemas.Device.properties.nonLocalTraits.type
- schemas.NonLocalTrait.description
- schemas.NonLocalTrait.id
- schemas.NonLocalTrait.properties.trait.description
- schemas.NonLocalTrait.properties.trait.type
- schemas.NonLocalTrait.type
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 20, 2021
1 parent f6fbf99 commit 1f42f6b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.
20 changes: 1 addition & 19 deletions discovery/homegraph-v1.json
Expand Up @@ -216,7 +216,7 @@
}
}
},
"revision": "20210326",
"revision": "20210409",
"rootUrl": "https://homegraph.googleapis.com/",
"schemas": {
"AgentDeviceId": {
Expand Down Expand Up @@ -277,13 +277,6 @@
"$ref": "DeviceNames",
"description": "Names given to this device by your smart home Action."
},
"nonLocalTraits": {
"description": "See description for \"traits\". For Smart Home Entertainment Devices (SHED) devices, some traits can only be executed on 3P cloud, e.g. \"non_local_traits\": [ { \"trait\": \"action.devices.traits.MediaInitiation\" }, { \"trait\": \"action.devices.traits.Channel\" } ] go/shed-per-trait-routing.",
"items": {
"$ref": "NonLocalTrait"
},
"type": "array"
},
"notificationSupportedByAgent": {
"description": "Indicates whether your smart home Action will report notifications to Google for this device via ReportStateAndNotification. If your smart home Action enables users to control device notifications, you should update this field and call RequestSyncDevices.",
"type": "boolean"
Expand Down Expand Up @@ -375,17 +368,6 @@
"properties": {},
"type": "object"
},
"NonLocalTrait": {
"description": "LINT.IfChange go/shed-per-trait-routing. Making it object to allow for extendible design, where we can add attributes in future.",
"id": "NonLocalTrait",
"properties": {
"trait": {
"description": "Trait name, e.g., \"action.devices.traits.MediaInitiation\". See [device traits](https://developers.google.com/assistant/smarthome/traits).",
"type": "string"
}
},
"type": "object"
},
"QueryRequest": {
"description": "Request type for the [`Query`](#google.home.graph.v1.HomeGraphApiService.Query) call.",
"id": "QueryRequest",
Expand Down
13 changes: 0 additions & 13 deletions src/apis/homegraph/v1.ts
Expand Up @@ -173,10 +173,6 @@ export namespace homegraph_v1 {
* Names given to this device by your smart home Action.
*/
name?: Schema$DeviceNames;
/**
* See description for "traits". For Smart Home Entertainment Devices (SHED) devices, some traits can only be executed on 3P cloud, e.g. "non_local_traits": [ { "trait": "action.devices.traits.MediaInitiation" \}, { "trait": "action.devices.traits.Channel" \} ] go/shed-per-trait-routing.
*/
nonLocalTraits?: Schema$NonLocalTrait[];
/**
* Indicates whether your smart home Action will report notifications to Google for this device via ReportStateAndNotification. If your smart home Action enables users to control device notifications, you should update this field and call RequestSyncDevices.
*/
Expand Down Expand Up @@ -248,15 +244,6 @@ export namespace homegraph_v1 {
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`.
*/
export interface Schema$Empty {}
/**
* LINT.IfChange go/shed-per-trait-routing. Making it object to allow for extendible design, where we can add attributes in future.
*/
export interface Schema$NonLocalTrait {
/**
* Trait name, e.g., "action.devices.traits.MediaInitiation". See [device traits](https://developers.google.com/assistant/smarthome/traits).
*/
trait?: string | null;
}
/**
* Request type for the [`Query`](#google.home.graph.v1.HomeGraphApiService.Query) call.
*/
Expand Down

0 comments on commit 1f42f6b

Please sign in to comment.