homebridge-nest-accfactory 0.0.6 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,216 +1,272 @@
1
1
  syntax = "proto3";
2
2
 
3
+ import "google/protobuf/wrappers.proto";
4
+
3
5
  package google.internal.home.foyer.v1;
4
6
 
5
- message StructuresService {
6
- message GetHomeGraphRequest {
7
- enum DefaultHiddenDeviceType {
8
- DEVICE_TYPE_UNKNOWN = 0;
9
- DEVICE_TYPE_TOPAZ = 1;
10
- DEVICE_TYPE_KRYPTONITE = 2;
11
- DEVICE_TYPE_ANTIGUA = 3;
12
- DEVICE_TYPE_NEST_TAG = 4;
13
- DEVICE_TYPE_NEST_HEATLINK = 5;
14
- }
7
+ message GetHomeGraphRequest {
8
+ enum DefaultHiddenDeviceType {
9
+ DEVICE_TYPE_UNKNOWN = 0;
10
+ DEVICE_TYPE_TOPAZ = 1;
11
+ DEVICE_TYPE_KRYPTONITE = 2;
12
+ DEVICE_TYPE_ANTIGUA = 3;
13
+ DEVICE_TYPE_NEST_TAG = 4;
14
+ DEVICE_TYPE_NEST_HEATLINK = 5;
15
+ }
16
+
17
+ string requestId = 3; // 64 hex characters - random is OK
18
+ int32 unknown1 = 4; // always 1?
19
+ int32 unknown2 = 5; // always 1?
20
+ repeated DefaultHiddenDeviceType deviceTypesToUnhideArray = 10;
21
+ }
22
+
23
+ message GetHomeGraphResponse {
24
+ uint64 responseTimestamp = 1; // Epoch in ms for this response
25
+ repeated Home homes = 2;
26
+ }
27
+
28
+ message Home {
29
+ string uuid = 1;
30
+ string name = 2;
31
+ Address address = 3;
32
+ repeated EmailAddress linked_users = 4;
33
+ repeated Room rooms = 6;
34
+ repeated Device devices = 7;
35
+ }
15
36
 
16
- string requestId = 3; // 64 hex characters - random is OK
17
- int32 unknown1 = 4; // always 1?
18
- int32 unknown2 = 5; // always 1?
19
- repeated DefaultHiddenDeviceType deviceTypesToUnhideArray = 10;
37
+ message Address {
38
+ string line1 = 1;
39
+ message Coordinates {
40
+ double latitude = 1;
41
+ double longitude = 2;
20
42
  }
43
+ Coordinates coordinates = 2;
44
+ uint64 timeCreated = 5;
45
+ string timezone = 6;
46
+ }
47
+
48
+ message EmailAddress {
49
+ string value = 1;
50
+ // field #4 has an unknown varint (1)
51
+ }
21
52
 
22
- message GetHomeGraphResponse {
23
- uint64 responseTimestamp = 1; // Epoch in ms for this response
24
- repeated Home homes = 2;
53
+ message Room {
54
+ string uuid = 1;
55
+ string name = 3;
56
+ message Category {
57
+ string name = 1;
25
58
  }
59
+ Category category = 4;
60
+ repeated Device devices = 5;
61
+ }
26
62
 
27
- message Home {
28
- string uuid = 1;
29
- string name = 2;
30
- Address address = 3;
31
- repeated EmailAddress linked_users = 4;
32
- repeated Room rooms = 6;
33
- repeated Device devices = 7;
63
+ message Device {
64
+ message Id {
65
+ string googleUuid = 1;
66
+ ThirdPartyId thirdPartyId = 2;
34
67
  }
35
68
 
36
- message Address {
37
- string line1 = 1;
38
- message Coordinates {
39
- double latitude = 1;
40
- double longitude = 2;
41
- }
42
- Coordinates coordinates = 2;
43
- uint64 timeCreated = 5;
44
- string timezone = 6;
69
+ message ThirdPartyId {
70
+ string idType = 1;
71
+ string id = 2;
45
72
  }
46
73
 
47
- message EmailAddress {
48
- string value = 1;
49
- // field #4 has an unknown varint (1)
74
+ message OtherThirdPartyIds {
75
+ repeated ThirdPartyId otherThirdPartyId = 1;
50
76
  }
51
77
 
52
- message Room {
53
- string uuid = 1;
54
- string name = 3;
55
- message Category {
56
- string name = 1;
57
- }
58
- Category category = 4;
59
- repeated Device devices = 5;
78
+ Id id = 1;
79
+ OtherThirdPartyIds otherIds = 39;
80
+ }
81
+
82
+ message SendTalkbackRequest {
83
+ enum TalkbackCommand {
84
+ COMMAND_UNSPECIFIED = 0;
85
+ COMMAND_START = 1;
86
+ COMMAND_STOP = 2;
60
87
  }
61
88
 
62
- message Device {
63
- message Id {
64
- string googleUuid = 1;
65
- ThirdPartyId thirdPartyId = 2;
66
- }
89
+ google.protobuf.StringValue googleDeviceId = 1;
90
+ string streamId = 2;
91
+ TalkbackCommand command = 3;
92
+ }
67
93
 
68
- message ThirdPartyId {
69
- string idType = 1;
70
- string id = 2;
71
- }
94
+ message SendTalkbackResponse {
72
95
 
73
- message OtherThirdPartyIds {
74
- repeated ThirdPartyId otherThirdPartyId = 1;
75
- }
96
+ }
97
+
98
+ message SendCameraViewIntentRequest {
99
+ enum ViewIntentCommand {
100
+ VIEW_INTENT_UNSPECIFIED = 0;
101
+ VIEW_INTENT_START = 1;
102
+ }
76
103
 
77
- Id id = 1;
78
- OtherThirdPartyIds otherIds = 39;
104
+ message ViewIntentRequest {
105
+ google.protobuf.StringValue googleDeviceId = 1;
106
+ ViewIntentCommand command = 2;
79
107
  }
108
+
109
+ ViewIntentRequest request = 1;
80
110
  }
81
111
 
82
- message CameraService {
83
- message SendTalkbackRequest {
84
- enum TalkbackCommand {
85
- COMMAND_UNSPECIFIED = 0;
86
- COMMAND_START = 1;
87
- COMMAND_STOP = 2;
88
- }
112
+ message SendCameraViewIntentResponse {
89
113
 
90
- google.protobuf.StringValue googleDeviceId = 1;
91
- string streamId = 2;
92
- TalkbackCommand command = 3;
114
+ }
115
+
116
+ message JoinStreamRequest {
117
+ enum JoinStreamRequest_StreamContext {
118
+ STREAM_CONTEXT_UNSPECIFIED = 0;
119
+ STREAM_CONTEXT_DEFAULT = 1;
120
+ STREAM_CONTEXT_SETUP = 2;
93
121
  }
94
122
 
95
- message SendTalkbackResponse {
123
+ enum JoinStreamRequest_EndStreamReason {
124
+ REASON_UNSPECIFIED = 0;
125
+ REASON_UNKNOWN = 1;
126
+ REASON_USER_EXITED_SESSION = 2;
127
+ REASON_VIDEO_TIME_OUT = 3;
128
+ REASON_AUDIO_TIME_OUT = 4;
129
+ REASON_NETWORK_FAILURE = 5;
130
+ REASON_INCOMPATIBLE_VIDEO_CODEC = 6;
131
+ REASON_AUDIO_ENCODE_ERROR = 7;
132
+ REASON_AUDIO_DECODE_ERROR = 8;
133
+ }
96
134
 
135
+ enum JoinStreamRequest_VideoResolution {
136
+ VIDEO_RESOLUTION_UNSPECIFIED = 0;
137
+ VIDEO_RESOLUTION_STANDARD = 1;
138
+ VIDEO_RESOLUTION_FULL_HIGH = 2;
97
139
  }
98
140
 
99
- message SendCameraViewIntentRequest {
100
- enum ViewIntentCommand {
101
- VIEW_INTENT_UNSPECIFIED = 0;
102
- VIEW_INTENT_START = 1;
103
- }
141
+ string sdp = 1;
142
+ string deviceId = 2;
143
+ string command = 3;
144
+ string streamId = 4;
145
+ bool local = 5;
146
+ JoinStreamRequest_StreamContext streamContext = 6;
147
+ JoinStreamRequest_EndStreamReason endStreamReason = 7;
148
+ JoinStreamRequest_VideoResolution requestedVideoResolution = 8;
149
+ }
104
150
 
105
- message ViewIntentRequest {
106
- google.protobuf.StringValue googleDeviceId = 1;
107
- ViewIntentCommand command = 2;
108
- }
151
+ message JoinStreamResponse {
152
+ enum StreamTerminationStatus {
153
+ STATUS_UNSPECIFIED = 0;
154
+ STATUS_STREAM_TERMINATED = 1;
155
+ STATUS_STREAM_NOT_TERMINATED = 2; // e.g. invalid stream ID specified
156
+ }
109
157
 
110
- ViewIntentRequest request = 1;
158
+ enum StreamExtensionStatus {
159
+ STATUS_UNSPECIFIED = 0;
160
+ STATUS_STREAM_EXTENDED = 1;
161
+ STATUS_STREAM_NOT_EXTENDED = 2; // e.g. invalid stream ID specified
111
162
  }
112
163
 
113
- message SendCameraViewIntentResponse {
164
+ string sdp = 1;
165
+ string responseType = 2;
166
+ string streamId = 3;
167
+ StreamTerminationStatus streamTerminationStatus = 4;
168
+ StreamExtensionStatus streamExtensionStatus = 5;
169
+ }
114
170
 
171
+ message UpdateTraitsRequest {
172
+ message Request {
173
+ TargetDevice device = 1;
174
+ TraitToUpdate trait = 2;
115
175
  }
116
176
 
117
- message JoinStreamRequest {
118
- enum JoinStreamRequest_StreamContext {
119
- STREAM_CONTEXT_UNSPECIFIED = 0;
120
- STREAM_CONTEXT_DEFAULT = 1;
121
- STREAM_CONTEXT_SETUP = 2;
122
- }
177
+ message TargetDevice {
178
+ string googleDeviceId = 1;
179
+ google.protobuf.StringValue service = 2;
180
+ }
123
181
 
124
- enum JoinStreamRequest_EndStreamReason {
125
- REASON_UNSPECIFIED = 0;
126
- REASON_UNKNOWN = 1;
127
- REASON_USER_EXITED_SESSION = 2;
128
- REASON_VIDEO_TIME_OUT = 3;
129
- REASON_AUDIO_TIME_OUT = 4;
130
- REASON_NETWORK_FAILURE = 5;
131
- REASON_INCOMPATIBLE_VIDEO_CODEC = 6;
132
- REASON_AUDIO_ENCODE_ERROR = 7;
133
- REASON_AUDIO_DECODE_ERROR = 8;
134
- }
182
+ message TraitToUpdate {
183
+ string category = 1;
184
+ UpdateTrait updateTrait = 2;
185
+ }
135
186
 
136
- enum JoinStreamRequest_VideoResolution {
137
- VIDEO_RESOLUTION_UNSPECIFIED = 0;
138
- VIDEO_RESOLUTION_STANDARD = 1;
139
- VIDEO_RESOLUTION_FULL_HIGH = 2;
140
- }
187
+ message UpdateTrait {
188
+ string name = 1;
189
+ TraitValue value = 2;
190
+ }
141
191
 
142
- string sdp = 1;
143
- string deviceId = 2;
144
- string command = 3;
145
- string streamId = 4;
146
- bool local = 5;
147
- JoinStreamRequest_StreamContext streamContext = 6;
148
- JoinStreamRequest_EndStreamReason endStreamReason = 7;
149
- JoinStreamRequest_VideoResolution requestedVideoResolution = 8;
150
- }
151
-
152
- message JoinStreamResponse {
153
- enum StreamTerminationStatus {
154
- STATUS_UNSPECIFIED = 0;
155
- STATUS_STREAM_TERMINATED = 1;
156
- STATUS_STREAM_NOT_TERMINATED = 2; // e.g. invalid stream ID specified
157
- }
192
+ message TraitValue {
193
+ string string = 3;
194
+ int32 intValue = 4;
195
+ Properties properties = 5;
196
+ PropertyArray array = 6;
197
+ }
158
198
 
159
- enum StreamExtensionStatus {
160
- STATUS_UNSPECIFIED = 0;
161
- STATUS_STREAM_EXTENDED = 1;
162
- STATUS_STREAM_NOT_EXTENDED = 2; // e.g. invalid stream ID specified
163
- }
199
+ message PropertyArray {
200
+ repeated TraitValue values = 1;
201
+ }
164
202
 
165
- string sdp = 1;
166
- string responseType = 2;
167
- string streamId = 3;
168
- StreamTerminationStatus streamTerminationStatus = 4;
169
- StreamExtensionStatus streamExtensionStatus = 5;
203
+ message Properties {
204
+ repeated UpdateTrait properties = 1;
170
205
  }
206
+
207
+ Request request = 1;
171
208
  }
172
209
 
173
- message HomeControlService {
174
- message UpdateTraitsRequest {
175
- message Request {
176
- TargetDevice device = 1;
177
- TraitToUpdate trait = 2;
178
- }
210
+ message UpdateTraitsResponse {
179
211
 
180
- message TargetDevice {
181
- string googleDeviceId = 1;
182
- google.protobuf.StringValue service = 2;
183
- }
212
+ }
184
213
 
185
- message TraitToUpdate {
186
- string category = 1;
187
- UpdateTrait updateTrait = 2;
188
- }
214
+ message GetAssistantDeviceSettingsResponse {
215
+ message Message1 {
216
+ uint32 num1 = 1;
217
+ uint32 num2 = 2;
218
+ uint32 num4 = 4;
219
+ uint32 num5 = 5;
220
+ uint32 num6 = 6;
221
+ string string10 = 10;
222
+ }
223
+ Message1 message1 = 1;
224
+ }
189
225
 
190
- message UpdateTrait {
191
- string name = 1;
192
- TraitValue value = 2;
193
- }
226
+ message UpdateAssistantDeviceSettingsRequest {
227
+ string string1 = 1;
194
228
 
195
- message TraitValue {
196
- string string = 3;
197
- int32 intValue = 4;
198
- Properties properties = 5;
199
- PropertyArray array = 6;
200
- }
229
+ message DeviceInfo {
230
+ string device_id = 1;
201
231
 
202
- message PropertyArray {
203
- repeated TraitValue values = 1;
232
+ message ProjectInfo {
233
+ string api_project_id = 1;
234
+ string string2 = 2;
204
235
  }
236
+ ProjectInfo project_info = 2;
237
+ }
238
+ DeviceInfo device_info = 2;
205
239
 
206
- message Properties {
207
- repeated UpdateTrait properties = 1;
240
+ message UpdateData {
241
+ message Message1 {
242
+ uint32 youtube_restricted_mode = 4; // 1=off, 2=on
243
+ uint32 youtube_tv_content_filter = 5; // 1=off, 2=on
244
+ string locale = 10; // local like "en-US"
208
245
  }
209
-
210
- Request request = 1;
246
+ Message1 message1 = 1;
211
247
  }
248
+ UpdateData update_data = 3;
249
+ }
212
250
 
213
- message UpdateTraitsResponse {
251
+ message UpdateAssistantDeviceSettingsResponse {
252
+ string string1 = 1;
253
+ }
214
254
 
215
- }
255
+ service StructuresService {
256
+ rpc GetHomeGraph(GetHomeGraphRequest) returns (GetHomeGraphResponse);
257
+ }
258
+
259
+ service CameraService {
260
+ rpc SendTalkback(SendTalkbackRequest) returns (SendTalkbackResponse);
261
+ rpc SendCameraViewIntent(SendCameraViewIntentRequest) returns (SendCameraViewIntentResponse);
262
+ rpc JoinStream(JoinStreamRequest) returns (JoinStreamResponse);
263
+ }
264
+
265
+ service HomeControlService {
266
+ rpc UpdateTraits(UpdateTraitsRequest) returns (UpdateTraitsResponse);
267
+ }
268
+
269
+ service HomeDevicesService {
270
+ rpc GetAssistantDeviceSettings (GetAssistantDeviceSettingsRequest) returns (stream GetAssistantDeviceSettingsResponse);
271
+ rpc UpdateAssistantDeviceSettings (UpdateAssistantDeviceSettingsRequest) returns (stream UpdateAssistantDeviceSettingsResponse);
216
272
  }
Binary file
Binary file