@projectqai/proto 0.0.18 → 0.0.22
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.
- package/dist/controller_pb.d.ts +42 -67
- package/dist/controller_pb.js +15 -62
- package/dist/geometry_pb.d.ts +284 -0
- package/dist/geometry_pb.js +82 -0
- package/dist/metrics_pb.d.ts +677 -0
- package/dist/metrics_pb.js +51 -0
- package/dist/world_pb.d.ts +438 -207
- package/dist/world_pb.js +133 -103
- package/package.json +5 -15
package/dist/world_pb.d.ts
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
6
|
import type { JsonObject, Message } from "@bufbuild/protobuf";
|
|
7
|
+
import type { MetricComponent } from "./metrics_pb";
|
|
7
8
|
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
9
|
+
import type { LocalGeometry, PlanarGeometry } from "./geometry_pb";
|
|
8
10
|
|
|
9
11
|
/**
|
|
10
12
|
* Describes the file world.proto.
|
|
@@ -42,6 +44,11 @@ export declare type Entity = Message<"world.Entity"> & {
|
|
|
42
44
|
*/
|
|
43
45
|
priority?: Priority;
|
|
44
46
|
|
|
47
|
+
/**
|
|
48
|
+
* @generated from field: optional world.Lease lease = 6;
|
|
49
|
+
*/
|
|
50
|
+
lease?: Lease;
|
|
51
|
+
|
|
45
52
|
/**
|
|
46
53
|
* @generated from field: optional world.GeoSpatialComponent geo = 11;
|
|
47
54
|
*/
|
|
@@ -117,6 +124,11 @@ export declare type Entity = Message<"world.Entity"> & {
|
|
|
117
124
|
*/
|
|
118
125
|
power?: PowerComponent;
|
|
119
126
|
|
|
127
|
+
/**
|
|
128
|
+
* @generated from field: optional world.CaptureComponent capture = 35;
|
|
129
|
+
*/
|
|
130
|
+
capture?: CaptureComponent;
|
|
131
|
+
|
|
120
132
|
/**
|
|
121
133
|
* experimental, dont use yet externally
|
|
122
134
|
*
|
|
@@ -134,6 +146,11 @@ export declare type Entity = Message<"world.Entity"> & {
|
|
|
134
146
|
*/
|
|
135
147
|
config?: ConfigurationComponent;
|
|
136
148
|
|
|
149
|
+
/**
|
|
150
|
+
* @generated from field: optional world.ConfigurableComponent configurable = 52;
|
|
151
|
+
*/
|
|
152
|
+
configurable?: ConfigurableComponent;
|
|
153
|
+
|
|
137
154
|
/**
|
|
138
155
|
* @generated from field: optional world.MissionComponent mission = 31;
|
|
139
156
|
*/
|
|
@@ -143,6 +160,26 @@ export declare type Entity = Message<"world.Entity"> & {
|
|
|
143
160
|
* @generated from field: optional world.LinkComponent link = 32;
|
|
144
161
|
*/
|
|
145
162
|
link?: LinkComponent;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @generated from field: optional world.MetricComponent metric = 36;
|
|
166
|
+
*/
|
|
167
|
+
metric?: MetricComponent;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: optional world.SensorComponent sensor = 37;
|
|
171
|
+
*/
|
|
172
|
+
sensor?: SensorComponent;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @generated from field: optional world.LocalShapeComponent local_shape = 29;
|
|
176
|
+
*/
|
|
177
|
+
localShape?: LocalShapeComponent;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: optional world.InteractivityComponent interactivity = 60;
|
|
181
|
+
*/
|
|
182
|
+
interactivity?: InteractivityComponent;
|
|
146
183
|
};
|
|
147
184
|
|
|
148
185
|
/**
|
|
@@ -177,6 +214,32 @@ export declare type Controller = Message<"world.Controller"> & {
|
|
|
177
214
|
*/
|
|
178
215
|
export declare const ControllerSchema: GenMessage<Controller>;
|
|
179
216
|
|
|
217
|
+
/**
|
|
218
|
+
* Leases are used by controllers to negotiate exclusivity on an entity
|
|
219
|
+
* The engine rejects pushes that attempt to change the holder of an active lease,
|
|
220
|
+
* which a controller can use to "lock" something.
|
|
221
|
+
* Note that this is a local lock, it is not distirbuted vertically
|
|
222
|
+
*
|
|
223
|
+
* @generated from message world.Lease
|
|
224
|
+
*/
|
|
225
|
+
export declare type Lease = Message<"world.Lease"> & {
|
|
226
|
+
/**
|
|
227
|
+
* @generated from field: string controller = 1;
|
|
228
|
+
*/
|
|
229
|
+
controller: string;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* @generated from field: optional google.protobuf.Timestamp expires = 2;
|
|
233
|
+
*/
|
|
234
|
+
expires?: Timestamp;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Describes the message world.Lease.
|
|
239
|
+
* Use `create(LeaseSchema)` to create a new message.
|
|
240
|
+
*/
|
|
241
|
+
export declare const LeaseSchema: GenMessage<Lease>;
|
|
242
|
+
|
|
180
243
|
/**
|
|
181
244
|
* @generated from message world.Lifetime
|
|
182
245
|
*/
|
|
@@ -260,6 +323,31 @@ export declare type SymbolComponent = Message<"world.SymbolComponent"> & {
|
|
|
260
323
|
*/
|
|
261
324
|
export declare const SymbolComponentSchema: GenMessage<SymbolComponent>;
|
|
262
325
|
|
|
326
|
+
/**
|
|
327
|
+
* @generated from message world.InteractivityComponent
|
|
328
|
+
*/
|
|
329
|
+
export declare type InteractivityComponent = Message<"world.InteractivityComponent"> & {
|
|
330
|
+
/**
|
|
331
|
+
* use lucide names for max compat
|
|
332
|
+
*
|
|
333
|
+
* @generated from field: optional string icon = 1;
|
|
334
|
+
*/
|
|
335
|
+
icon?: string;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* some url where a user can learn more about this entity
|
|
339
|
+
*
|
|
340
|
+
* @generated from field: optional string reference_url = 3;
|
|
341
|
+
*/
|
|
342
|
+
referenceUrl?: string;
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Describes the message world.InteractivityComponent.
|
|
347
|
+
* Use `create(InteractivityComponentSchema)` to create a new message.
|
|
348
|
+
*/
|
|
349
|
+
export declare const InteractivityComponentSchema: GenMessage<InteractivityComponent>;
|
|
350
|
+
|
|
263
351
|
/**
|
|
264
352
|
* @generated from message world.Camera
|
|
265
353
|
*/
|
|
@@ -278,6 +366,27 @@ export declare type Camera = Message<"world.Camera"> & {
|
|
|
278
366
|
* @generated from field: world.CameraProtocol protocol = 3;
|
|
279
367
|
*/
|
|
280
368
|
protocol: CameraProtocol;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* horizontal field of view in degrees
|
|
372
|
+
*
|
|
373
|
+
* @generated from field: optional double fov = 4;
|
|
374
|
+
*/
|
|
375
|
+
fov?: number;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* minimum detection range in meters (blind zone)
|
|
379
|
+
*
|
|
380
|
+
* @generated from field: optional double range_min = 5;
|
|
381
|
+
*/
|
|
382
|
+
rangeMin?: number;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* maximum detection range in meters
|
|
386
|
+
*
|
|
387
|
+
* @generated from field: optional double range_max = 6;
|
|
388
|
+
*/
|
|
389
|
+
rangeMax?: number;
|
|
281
390
|
};
|
|
282
391
|
|
|
283
392
|
/**
|
|
@@ -349,6 +458,24 @@ export declare type BearingComponent = Message<"world.BearingComponent"> & {
|
|
|
349
458
|
*/
|
|
350
459
|
export declare const BearingComponentSchema: GenMessage<BearingComponent>;
|
|
351
460
|
|
|
461
|
+
/**
|
|
462
|
+
* @generated from message world.SensorComponent
|
|
463
|
+
*/
|
|
464
|
+
export declare type SensorComponent = Message<"world.SensorComponent"> & {
|
|
465
|
+
/**
|
|
466
|
+
* entity IDS of GeoShapeComponent entities that describe the coverage
|
|
467
|
+
*
|
|
468
|
+
* @generated from field: repeated string coverage = 2;
|
|
469
|
+
*/
|
|
470
|
+
coverage: string[];
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Describes the message world.SensorComponent.
|
|
475
|
+
* Use `create(SensorComponentSchema)` to create a new message.
|
|
476
|
+
*/
|
|
477
|
+
export declare const SensorComponentSchema: GenMessage<SensorComponent>;
|
|
478
|
+
|
|
352
479
|
/**
|
|
353
480
|
* @generated from message world.Quaternion
|
|
354
481
|
*/
|
|
@@ -646,6 +773,28 @@ export declare type KinematicsComponent = Message<"world.KinematicsComponent"> &
|
|
|
646
773
|
*/
|
|
647
774
|
export declare const KinematicsComponentSchema: GenMessage<KinematicsComponent>;
|
|
648
775
|
|
|
776
|
+
/**
|
|
777
|
+
* @generated from message world.Geometry
|
|
778
|
+
*/
|
|
779
|
+
export declare type Geometry = Message<"world.Geometry"> & {
|
|
780
|
+
/**
|
|
781
|
+
* @generated from field: bytes wkb = 1 [deprecated = true];
|
|
782
|
+
* @deprecated
|
|
783
|
+
*/
|
|
784
|
+
wkb: Uint8Array;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* @generated from field: world.PlanarGeometry planar = 2;
|
|
788
|
+
*/
|
|
789
|
+
planar?: PlanarGeometry;
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Describes the message world.Geometry.
|
|
794
|
+
* Use `create(GeometrySchema)` to create a new message.
|
|
795
|
+
*/
|
|
796
|
+
export declare const GeometrySchema: GenMessage<Geometry>;
|
|
797
|
+
|
|
649
798
|
/**
|
|
650
799
|
* @generated from message world.GeoShapeComponent
|
|
651
800
|
*/
|
|
@@ -662,6 +811,29 @@ export declare type GeoShapeComponent = Message<"world.GeoShapeComponent"> & {
|
|
|
662
811
|
*/
|
|
663
812
|
export declare const GeoShapeComponentSchema: GenMessage<GeoShapeComponent>;
|
|
664
813
|
|
|
814
|
+
/**
|
|
815
|
+
* @generated from message world.LocalShapeComponent
|
|
816
|
+
*/
|
|
817
|
+
export declare type LocalShapeComponent = Message<"world.LocalShapeComponent"> & {
|
|
818
|
+
/**
|
|
819
|
+
* entity ID whose frame this geometry is defined in
|
|
820
|
+
*
|
|
821
|
+
* @generated from field: string relative_to = 2;
|
|
822
|
+
*/
|
|
823
|
+
relativeTo: string;
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* @generated from field: optional world.LocalGeometry geometry = 1;
|
|
827
|
+
*/
|
|
828
|
+
geometry?: LocalGeometry;
|
|
829
|
+
};
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Describes the message world.LocalShapeComponent.
|
|
833
|
+
* Use `create(LocalShapeComponentSchema)` to create a new message.
|
|
834
|
+
*/
|
|
835
|
+
export declare const LocalShapeComponentSchema: GenMessage<LocalShapeComponent>;
|
|
836
|
+
|
|
665
837
|
/**
|
|
666
838
|
* @generated from message world.ClassificationComponent
|
|
667
839
|
*/
|
|
@@ -922,6 +1094,27 @@ export declare type LinkComponent = Message<"world.LinkComponent"> & {
|
|
|
922
1094
|
* @generated from field: optional string via = 5;
|
|
923
1095
|
*/
|
|
924
1096
|
via?: string;
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* last measured end-to-end latency in milliseconds
|
|
1100
|
+
*
|
|
1101
|
+
* @generated from field: optional uint32 last_latency_ms = 6;
|
|
1102
|
+
*/
|
|
1103
|
+
lastLatencyMs?: number;
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* exponential moving average of latency in milliseconds
|
|
1107
|
+
*
|
|
1108
|
+
* @generated from field: optional uint32 avg_latency_ms = 7;
|
|
1109
|
+
*/
|
|
1110
|
+
avgLatencyMs?: number;
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* last time data was received over this link
|
|
1114
|
+
*
|
|
1115
|
+
* @generated from field: optional google.protobuf.Timestamp last_seen = 8;
|
|
1116
|
+
*/
|
|
1117
|
+
lastSeen?: Timestamp;
|
|
925
1118
|
};
|
|
926
1119
|
|
|
927
1120
|
/**
|
|
@@ -930,6 +1123,52 @@ export declare type LinkComponent = Message<"world.LinkComponent"> & {
|
|
|
930
1123
|
*/
|
|
931
1124
|
export declare const LinkComponentSchema: GenMessage<LinkComponent>;
|
|
932
1125
|
|
|
1126
|
+
/**
|
|
1127
|
+
* @generated from message world.CaptureComponent
|
|
1128
|
+
*/
|
|
1129
|
+
export declare type CaptureComponent = Message<"world.CaptureComponent"> & {
|
|
1130
|
+
/**
|
|
1131
|
+
* last raw payload received from this entity
|
|
1132
|
+
*
|
|
1133
|
+
* @generated from field: optional bytes payload = 1;
|
|
1134
|
+
*/
|
|
1135
|
+
payload?: Uint8Array;
|
|
1136
|
+
|
|
1137
|
+
/**
|
|
1138
|
+
* application-level port (e.g. LoRaWAN FPort, UDP port)
|
|
1139
|
+
*
|
|
1140
|
+
* @generated from field: optional uint32 port = 2;
|
|
1141
|
+
*/
|
|
1142
|
+
port?: number;
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* content type hint (e.g. "application/octet-stream", "application/json")
|
|
1146
|
+
*
|
|
1147
|
+
* @generated from field: optional string content_type = 3;
|
|
1148
|
+
*/
|
|
1149
|
+
contentType?: string;
|
|
1150
|
+
|
|
1151
|
+
/**
|
|
1152
|
+
* entity ID of the device that captured this data
|
|
1153
|
+
*
|
|
1154
|
+
* @generated from field: optional string captured_by = 4;
|
|
1155
|
+
*/
|
|
1156
|
+
capturedBy?: string;
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* when the payload was captured
|
|
1160
|
+
*
|
|
1161
|
+
* @generated from field: optional google.protobuf.Timestamp captured_at = 5;
|
|
1162
|
+
*/
|
|
1163
|
+
capturedAt?: Timestamp;
|
|
1164
|
+
};
|
|
1165
|
+
|
|
1166
|
+
/**
|
|
1167
|
+
* Describes the message world.CaptureComponent.
|
|
1168
|
+
* Use `create(CaptureComponentSchema)` to create a new message.
|
|
1169
|
+
*/
|
|
1170
|
+
export declare const CaptureComponentSchema: GenMessage<CaptureComponent>;
|
|
1171
|
+
|
|
933
1172
|
/**
|
|
934
1173
|
* @generated from message world.PowerComponent
|
|
935
1174
|
*/
|
|
@@ -963,42 +1202,99 @@ export declare type PowerComponent = Message<"world.PowerComponent"> & {
|
|
|
963
1202
|
export declare const PowerComponentSchema: GenMessage<PowerComponent>;
|
|
964
1203
|
|
|
965
1204
|
/**
|
|
966
|
-
* @generated from message world.
|
|
1205
|
+
* @generated from message world.DeviceClassOption
|
|
967
1206
|
*/
|
|
968
|
-
export declare type
|
|
1207
|
+
export declare type DeviceClassOption = Message<"world.DeviceClassOption"> & {
|
|
969
1208
|
/**
|
|
970
|
-
* @generated from field: string
|
|
1209
|
+
* @generated from field: string class = 1;
|
|
971
1210
|
*/
|
|
972
|
-
|
|
1211
|
+
class: string;
|
|
973
1212
|
|
|
974
1213
|
/**
|
|
975
|
-
*
|
|
1214
|
+
* Human-readable label for the UI select (e.g. "USB Serial Device")
|
|
1215
|
+
*
|
|
1216
|
+
* @generated from field: string label = 2;
|
|
1217
|
+
*/
|
|
1218
|
+
label: string;
|
|
1219
|
+
};
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* Describes the message world.DeviceClassOption.
|
|
1223
|
+
* Use `create(DeviceClassOptionSchema)` to create a new message.
|
|
1224
|
+
*/
|
|
1225
|
+
export declare const DeviceClassOptionSchema: GenMessage<DeviceClassOption>;
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* Presence of this component indicates a controller is managing this entity.
|
|
1229
|
+
* It declares what can be configured and reports the controller's state.
|
|
1230
|
+
* Always on the same entity as a DeviceComponent.
|
|
1231
|
+
* ConfigurationComponent (user-created config) is also placed on this entity.
|
|
1232
|
+
*
|
|
1233
|
+
* @generated from message world.ConfigurableComponent
|
|
1234
|
+
*/
|
|
1235
|
+
export declare type ConfigurableComponent = Message<"world.ConfigurableComponent"> & {
|
|
1236
|
+
/**
|
|
1237
|
+
* @generated from field: google.protobuf.Struct schema = 1;
|
|
976
1238
|
*/
|
|
977
1239
|
schema?: JsonObject;
|
|
978
1240
|
|
|
979
1241
|
/**
|
|
980
|
-
*
|
|
1242
|
+
* current state reported by the controller
|
|
1243
|
+
*
|
|
1244
|
+
* @generated from field: google.protobuf.Struct value = 2;
|
|
981
1245
|
*/
|
|
982
1246
|
value?: JsonObject;
|
|
983
1247
|
|
|
984
1248
|
/**
|
|
985
|
-
* @generated from field: world.
|
|
1249
|
+
* @generated from field: world.ConfigurableState state = 3;
|
|
986
1250
|
*/
|
|
987
|
-
state:
|
|
1251
|
+
state: ConfigurableState;
|
|
988
1252
|
|
|
989
1253
|
/**
|
|
990
|
-
* @generated from field: optional string error =
|
|
1254
|
+
* @generated from field: optional string error = 4;
|
|
991
1255
|
*/
|
|
992
1256
|
error?: string;
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* Human-readable label for the UI (e.g. "Defaults", "USB Device", "Channel 0")
|
|
1260
|
+
*
|
|
1261
|
+
* @generated from field: optional string label = 5;
|
|
1262
|
+
*/
|
|
1263
|
+
label?: string;
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* Echoed from ConfigurationComponent.version after the controller
|
|
1267
|
+
* has finished processing the configuration.
|
|
1268
|
+
*
|
|
1269
|
+
* @generated from field: uint64 applied_version = 6;
|
|
1270
|
+
*/
|
|
1271
|
+
appliedVersion: bigint;
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* what kinds of devices can be attached underneath this entity
|
|
1275
|
+
*
|
|
1276
|
+
* @generated from field: repeated world.DeviceClassOption supported_device_classes = 7;
|
|
1277
|
+
*/
|
|
1278
|
+
supportedDeviceClasses: DeviceClassOption[];
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* indicated when the controller will activate this entity
|
|
1282
|
+
*
|
|
1283
|
+
* @generated from field: optional google.protobuf.Timestamp scheduled_at = 8;
|
|
1284
|
+
*/
|
|
1285
|
+
scheduledAt?: Timestamp;
|
|
993
1286
|
};
|
|
994
1287
|
|
|
995
1288
|
/**
|
|
996
|
-
* Describes the message world.
|
|
997
|
-
* Use `create(
|
|
1289
|
+
* Describes the message world.ConfigurableComponent.
|
|
1290
|
+
* Use `create(ConfigurableComponentSchema)` to create a new message.
|
|
998
1291
|
*/
|
|
999
|
-
export declare const
|
|
1292
|
+
export declare const ConfigurableComponentSchema: GenMessage<ConfigurableComponent>;
|
|
1000
1293
|
|
|
1001
1294
|
/**
|
|
1295
|
+
* Physical device in the device tree. Describes hardware topology only.
|
|
1296
|
+
* Can be discovered automatically or created by hand.
|
|
1297
|
+
*
|
|
1002
1298
|
* @generated from message world.DeviceComponent
|
|
1003
1299
|
*/
|
|
1004
1300
|
export declare type DeviceComponent = Message<"world.DeviceComponent"> & {
|
|
@@ -1010,36 +1306,22 @@ export declare type DeviceComponent = Message<"world.DeviceComponent"> & {
|
|
|
1010
1306
|
parent?: string;
|
|
1011
1307
|
|
|
1012
1308
|
/**
|
|
1309
|
+
* TODO might not be needed?
|
|
1013
1310
|
* list of non-direct ancestors this device is made of
|
|
1014
1311
|
*
|
|
1015
1312
|
* @generated from field: repeated string composition = 2;
|
|
1016
1313
|
*/
|
|
1017
1314
|
composition: string[];
|
|
1018
1315
|
|
|
1019
|
-
/**
|
|
1020
|
-
* configurable keys, their current state and schema
|
|
1021
|
-
*
|
|
1022
|
-
* @generated from field: repeated world.Configurable configurable = 3;
|
|
1023
|
-
*/
|
|
1024
|
-
configurable: Configurable[];
|
|
1025
|
-
|
|
1026
1316
|
/**
|
|
1027
1317
|
* a stable identifier that remains the same no matter where the asset is connected to
|
|
1028
|
-
*
|
|
1318
|
+
* e.g. USB serial number, MAC address. lets the system recognize the same
|
|
1319
|
+
* physical hardware even if it moves to a different port or node.
|
|
1029
1320
|
*
|
|
1030
1321
|
* @generated from field: optional string unique_hardware_id = 4;
|
|
1031
1322
|
*/
|
|
1032
1323
|
uniqueHardwareId?: string;
|
|
1033
1324
|
|
|
1034
|
-
/**
|
|
1035
|
-
* unstructured controller specific labels that can be matched to configure
|
|
1036
|
-
* all devices with these properties at the same time
|
|
1037
|
-
* when not using unique_hardware_id
|
|
1038
|
-
*
|
|
1039
|
-
* @generated from field: map<string, string> labels = 5;
|
|
1040
|
-
*/
|
|
1041
|
-
labels: { [key: string]: string };
|
|
1042
|
-
|
|
1043
1325
|
/**
|
|
1044
1326
|
* @generated from field: world.DeviceState state = 6;
|
|
1045
1327
|
*/
|
|
@@ -1050,27 +1332,51 @@ export declare type DeviceComponent = Message<"world.DeviceComponent"> & {
|
|
|
1050
1332
|
*/
|
|
1051
1333
|
error?: string;
|
|
1052
1334
|
|
|
1335
|
+
/**
|
|
1336
|
+
* device class (e.g. "usb_serial", "radio", "camera")
|
|
1337
|
+
*
|
|
1338
|
+
* @generated from field: optional string class = 10;
|
|
1339
|
+
*/
|
|
1340
|
+
class?: string;
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* human-readable category for UI grouping (e.g. "Air", "Sea", "Network")
|
|
1344
|
+
*
|
|
1345
|
+
* @generated from field: optional string category = 13;
|
|
1346
|
+
*/
|
|
1347
|
+
category?: string;
|
|
1348
|
+
|
|
1053
1349
|
/**
|
|
1054
1350
|
* subsystem-specific descriptors
|
|
1055
1351
|
*
|
|
1056
|
-
* @generated from field: optional world.NodeDevice node =
|
|
1352
|
+
* @generated from field: optional world.NodeDevice node = 20;
|
|
1057
1353
|
*/
|
|
1058
1354
|
node?: NodeDevice;
|
|
1059
1355
|
|
|
1060
1356
|
/**
|
|
1061
|
-
* @generated from field: optional world.UsbDevice usb =
|
|
1357
|
+
* @generated from field: optional world.UsbDevice usb = 21;
|
|
1062
1358
|
*/
|
|
1063
1359
|
usb?: UsbDevice;
|
|
1064
1360
|
|
|
1065
1361
|
/**
|
|
1066
|
-
* @generated from field: optional world.IpDevice ip =
|
|
1362
|
+
* @generated from field: optional world.IpDevice ip = 22;
|
|
1067
1363
|
*/
|
|
1068
1364
|
ip?: IpDevice;
|
|
1069
1365
|
|
|
1070
1366
|
/**
|
|
1071
|
-
* @generated from field: optional world.SerialDevice serial =
|
|
1367
|
+
* @generated from field: optional world.SerialDevice serial = 23;
|
|
1072
1368
|
*/
|
|
1073
1369
|
serial?: SerialDevice;
|
|
1370
|
+
|
|
1371
|
+
/**
|
|
1372
|
+
* @generated from field: optional world.EthernetDevice ethernet = 24;
|
|
1373
|
+
*/
|
|
1374
|
+
ethernet?: EthernetDevice;
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* @generated from field: optional world.LPWANDevice lpwan = 25;
|
|
1378
|
+
*/
|
|
1379
|
+
lpwan?: LPWANDevice;
|
|
1074
1380
|
};
|
|
1075
1381
|
|
|
1076
1382
|
/**
|
|
@@ -1183,192 +1489,103 @@ export declare type IpDevice = Message<"world.IpDevice"> & {
|
|
|
1183
1489
|
export declare const IpDeviceSchema: GenMessage<IpDevice>;
|
|
1184
1490
|
|
|
1185
1491
|
/**
|
|
1186
|
-
* @generated from message world.
|
|
1492
|
+
* @generated from message world.EthernetDevice
|
|
1187
1493
|
*/
|
|
1188
|
-
export declare type
|
|
1189
|
-
/**
|
|
1190
|
-
* @generated from field: optional string path = 1;
|
|
1191
|
-
*/
|
|
1192
|
-
path?: string;
|
|
1193
|
-
|
|
1494
|
+
export declare type EthernetDevice = Message<"world.EthernetDevice"> & {
|
|
1194
1495
|
/**
|
|
1195
|
-
*
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
};
|
|
1199
|
-
|
|
1200
|
-
/**
|
|
1201
|
-
* Describes the message world.SerialDevice.
|
|
1202
|
-
* Use `create(SerialDeviceSchema)` to create a new message.
|
|
1203
|
-
*/
|
|
1204
|
-
export declare const SerialDeviceSchema: GenMessage<SerialDevice>;
|
|
1205
|
-
|
|
1206
|
-
/**
|
|
1207
|
-
* Desired/target configuration, created by the user/UI.
|
|
1208
|
-
*
|
|
1209
|
-
* @generated from message world.ConfigurationComponent
|
|
1210
|
-
*/
|
|
1211
|
-
export declare type ConfigurationComponent = Message<"world.ConfigurationComponent"> & {
|
|
1212
|
-
/**
|
|
1213
|
-
* @generated from field: string controller = 1;
|
|
1214
|
-
*/
|
|
1215
|
-
controller: string;
|
|
1216
|
-
|
|
1217
|
-
/**
|
|
1218
|
-
* @generated from field: string key = 2;
|
|
1219
|
-
*/
|
|
1220
|
-
key: string;
|
|
1221
|
-
|
|
1222
|
-
/**
|
|
1223
|
-
* @generated from field: google.protobuf.Struct value = 3;
|
|
1496
|
+
* MAC address in canonical colon-separated hex (e.g. "aa:bb:cc:dd:ee:ff")
|
|
1497
|
+
*
|
|
1498
|
+
* @generated from field: optional string mac_address = 1;
|
|
1224
1499
|
*/
|
|
1225
|
-
|
|
1500
|
+
macAddress?: string;
|
|
1226
1501
|
|
|
1227
1502
|
/**
|
|
1228
|
-
*
|
|
1229
|
-
* if empty, applies to all devices from this controller that advertise this key.
|
|
1503
|
+
* vendor name resolved from the OUI prefix, if known
|
|
1230
1504
|
*
|
|
1231
|
-
* @generated from field:
|
|
1505
|
+
* @generated from field: optional string vendor = 2;
|
|
1232
1506
|
*/
|
|
1233
|
-
|
|
1507
|
+
vendor?: string;
|
|
1234
1508
|
};
|
|
1235
1509
|
|
|
1236
1510
|
/**
|
|
1237
|
-
* Describes the message world.
|
|
1238
|
-
* Use `create(
|
|
1511
|
+
* Describes the message world.EthernetDevice.
|
|
1512
|
+
* Use `create(EthernetDeviceSchema)` to create a new message.
|
|
1239
1513
|
*/
|
|
1240
|
-
export declare const
|
|
1514
|
+
export declare const EthernetDeviceSchema: GenMessage<EthernetDevice>;
|
|
1241
1515
|
|
|
1242
1516
|
/**
|
|
1243
|
-
*
|
|
1244
|
-
*
|
|
1245
|
-
* @generated from message world.PlanarPoint
|
|
1517
|
+
* @generated from message world.SerialDevice
|
|
1246
1518
|
*/
|
|
1247
|
-
export declare type
|
|
1248
|
-
/**
|
|
1249
|
-
* @generated from field: double longitude = 1;
|
|
1250
|
-
*/
|
|
1251
|
-
longitude: number;
|
|
1252
|
-
|
|
1253
|
-
/**
|
|
1254
|
-
* @generated from field: double latitude = 2;
|
|
1255
|
-
*/
|
|
1256
|
-
latitude: number;
|
|
1257
|
-
|
|
1519
|
+
export declare type SerialDevice = Message<"world.SerialDevice"> & {
|
|
1258
1520
|
/**
|
|
1259
|
-
*
|
|
1260
|
-
*
|
|
1261
|
-
* @generated from field: optional double altitude = 3;
|
|
1521
|
+
* @generated from field: optional string path = 1;
|
|
1262
1522
|
*/
|
|
1263
|
-
|
|
1264
|
-
};
|
|
1265
|
-
|
|
1266
|
-
/**
|
|
1267
|
-
* Describes the message world.PlanarPoint.
|
|
1268
|
-
* Use `create(PlanarPointSchema)` to create a new message.
|
|
1269
|
-
*/
|
|
1270
|
-
export declare const PlanarPointSchema: GenMessage<PlanarPoint>;
|
|
1523
|
+
path?: string;
|
|
1271
1524
|
|
|
1272
|
-
/**
|
|
1273
|
-
* a path with zero area on the projected flat surface
|
|
1274
|
-
* a ring is considered to be closed when the first and last points are identical
|
|
1275
|
-
*
|
|
1276
|
-
* @generated from message world.PlanarRing
|
|
1277
|
-
*/
|
|
1278
|
-
export declare type PlanarRing = Message<"world.PlanarRing"> & {
|
|
1279
1525
|
/**
|
|
1280
|
-
* @generated from field:
|
|
1526
|
+
* @generated from field: optional uint32 baud_rate = 2;
|
|
1281
1527
|
*/
|
|
1282
|
-
|
|
1528
|
+
baudRate?: number;
|
|
1283
1529
|
};
|
|
1284
1530
|
|
|
1285
1531
|
/**
|
|
1286
|
-
* Describes the message world.
|
|
1287
|
-
* Use `create(
|
|
1532
|
+
* Describes the message world.SerialDevice.
|
|
1533
|
+
* Use `create(SerialDeviceSchema)` to create a new message.
|
|
1288
1534
|
*/
|
|
1289
|
-
export declare const
|
|
1535
|
+
export declare const SerialDeviceSchema: GenMessage<SerialDevice>;
|
|
1290
1536
|
|
|
1291
1537
|
/**
|
|
1292
|
-
*
|
|
1293
|
-
* / All rings must be closed (first point = last point)
|
|
1294
|
-
*
|
|
1295
|
-
* @generated from message world.PlanarPolygon
|
|
1538
|
+
* @generated from message world.LPWANDevice
|
|
1296
1539
|
*/
|
|
1297
|
-
export declare type
|
|
1540
|
+
export declare type LPWANDevice = Message<"world.LPWANDevice"> & {
|
|
1298
1541
|
/**
|
|
1299
|
-
*
|
|
1542
|
+
* IEEE 802 EUI-64 identifier (e.g. "a84041c6545d1429")
|
|
1543
|
+
*
|
|
1544
|
+
* @generated from field: optional string eui = 1;
|
|
1300
1545
|
*/
|
|
1301
|
-
|
|
1546
|
+
eui?: string;
|
|
1302
1547
|
|
|
1303
1548
|
/**
|
|
1304
|
-
*
|
|
1549
|
+
* network address assigned after join/activation (e.g. "012a7125")
|
|
1550
|
+
*
|
|
1551
|
+
* @generated from field: optional string address = 2;
|
|
1305
1552
|
*/
|
|
1306
|
-
|
|
1553
|
+
address?: string;
|
|
1307
1554
|
};
|
|
1308
1555
|
|
|
1309
1556
|
/**
|
|
1310
|
-
* Describes the message world.
|
|
1311
|
-
* Use `create(
|
|
1557
|
+
* Describes the message world.LPWANDevice.
|
|
1558
|
+
* Use `create(LPWANDeviceSchema)` to create a new message.
|
|
1312
1559
|
*/
|
|
1313
|
-
export declare const
|
|
1560
|
+
export declare const LPWANDeviceSchema: GenMessage<LPWANDevice>;
|
|
1314
1561
|
|
|
1315
1562
|
/**
|
|
1316
|
-
*
|
|
1563
|
+
* Configuration pushed onto an entity. The engine delivers entities with
|
|
1564
|
+
* Config to the matching controller via Reconcile.
|
|
1317
1565
|
*
|
|
1318
|
-
* @generated from message world.
|
|
1319
|
-
*/
|
|
1320
|
-
export declare type PlanarGeometry = Message<"world.PlanarGeometry"> & {
|
|
1321
|
-
/**
|
|
1322
|
-
* @generated from oneof world.PlanarGeometry.plane
|
|
1323
|
-
*/
|
|
1324
|
-
plane: {
|
|
1325
|
-
/**
|
|
1326
|
-
* @generated from field: world.PlanarPoint point = 1;
|
|
1327
|
-
*/
|
|
1328
|
-
value: PlanarPoint;
|
|
1329
|
-
case: "point";
|
|
1330
|
-
} | {
|
|
1331
|
-
/**
|
|
1332
|
-
* @generated from field: world.PlanarRing line = 2;
|
|
1333
|
-
*/
|
|
1334
|
-
value: PlanarRing;
|
|
1335
|
-
case: "line";
|
|
1336
|
-
} | {
|
|
1337
|
-
/**
|
|
1338
|
-
* @generated from field: world.PlanarPolygon polygon = 3;
|
|
1339
|
-
*/
|
|
1340
|
-
value: PlanarPolygon;
|
|
1341
|
-
case: "polygon";
|
|
1342
|
-
} | { case: undefined; value?: undefined };
|
|
1343
|
-
};
|
|
1344
|
-
|
|
1345
|
-
/**
|
|
1346
|
-
* Describes the message world.PlanarGeometry.
|
|
1347
|
-
* Use `create(PlanarGeometrySchema)` to create a new message.
|
|
1348
|
-
*/
|
|
1349
|
-
export declare const PlanarGeometrySchema: GenMessage<PlanarGeometry>;
|
|
1350
|
-
|
|
1351
|
-
/**
|
|
1352
|
-
* @generated from message world.Geometry
|
|
1566
|
+
* @generated from message world.ConfigurationComponent
|
|
1353
1567
|
*/
|
|
1354
|
-
export declare type
|
|
1568
|
+
export declare type ConfigurationComponent = Message<"world.ConfigurationComponent"> & {
|
|
1355
1569
|
/**
|
|
1356
|
-
* @generated from field:
|
|
1357
|
-
* @deprecated
|
|
1570
|
+
* @generated from field: google.protobuf.Struct value = 3;
|
|
1358
1571
|
*/
|
|
1359
|
-
|
|
1572
|
+
value?: JsonObject;
|
|
1360
1573
|
|
|
1361
1574
|
/**
|
|
1362
|
-
*
|
|
1575
|
+
* Monotonically increasing counter set by the config pusher.
|
|
1576
|
+
* The controller echoes this back in ConfigurableComponent.applied_version
|
|
1577
|
+
* once the configuration has been processed.
|
|
1578
|
+
*
|
|
1579
|
+
* @generated from field: uint64 version = 5;
|
|
1363
1580
|
*/
|
|
1364
|
-
|
|
1581
|
+
version: bigint;
|
|
1365
1582
|
};
|
|
1366
1583
|
|
|
1367
1584
|
/**
|
|
1368
|
-
* Describes the message world.
|
|
1369
|
-
* Use `create(
|
|
1585
|
+
* Describes the message world.ConfigurationComponent.
|
|
1586
|
+
* Use `create(ConfigurationComponentSchema)` to create a new message.
|
|
1370
1587
|
*/
|
|
1371
|
-
export declare const
|
|
1588
|
+
export declare const ConfigurationComponentSchema: GenMessage<ConfigurationComponent>;
|
|
1372
1589
|
|
|
1373
1590
|
/**
|
|
1374
1591
|
* @generated from message world.EntityFilter
|
|
@@ -1568,31 +1785,16 @@ export declare const GeoFilterSchema: GenMessage<GeoFilter>;
|
|
|
1568
1785
|
*/
|
|
1569
1786
|
export declare type DeviceFilter = Message<"world.DeviceFilter"> & {
|
|
1570
1787
|
/**
|
|
1571
|
-
*
|
|
1788
|
+
* match devices with this parent entity ID (for building the device tree)
|
|
1572
1789
|
*
|
|
1573
|
-
* @generated from field:
|
|
1790
|
+
* @generated from field: optional string parent = 1;
|
|
1574
1791
|
*/
|
|
1575
|
-
|
|
1792
|
+
parent?: string;
|
|
1576
1793
|
|
|
1577
1794
|
/**
|
|
1578
1795
|
* @generated from field: optional string unique_hardware_id = 4;
|
|
1579
1796
|
*/
|
|
1580
1797
|
uniqueHardwareId?: string;
|
|
1581
|
-
|
|
1582
|
-
/**
|
|
1583
|
-
* @generated from field: optional world.UsbDevice usb = 10;
|
|
1584
|
-
*/
|
|
1585
|
-
usb?: UsbDevice;
|
|
1586
|
-
|
|
1587
|
-
/**
|
|
1588
|
-
* @generated from field: optional world.IpDevice ip = 11;
|
|
1589
|
-
*/
|
|
1590
|
-
ip?: IpDevice;
|
|
1591
|
-
|
|
1592
|
-
/**
|
|
1593
|
-
* @generated from field: optional world.SerialDevice serial = 12;
|
|
1594
|
-
*/
|
|
1595
|
-
serial?: SerialDevice;
|
|
1596
1798
|
};
|
|
1597
1799
|
|
|
1598
1800
|
/**
|
|
@@ -1605,10 +1807,6 @@ export declare const DeviceFilterSchema: GenMessage<DeviceFilter>;
|
|
|
1605
1807
|
* @generated from message world.ConfigurationFilter
|
|
1606
1808
|
*/
|
|
1607
1809
|
export declare type ConfigurationFilter = Message<"world.ConfigurationFilter"> & {
|
|
1608
|
-
/**
|
|
1609
|
-
* @generated from field: optional string key = 1;
|
|
1610
|
-
*/
|
|
1611
|
-
key?: string;
|
|
1612
1810
|
};
|
|
1613
1811
|
|
|
1614
1812
|
/**
|
|
@@ -1695,9 +1893,21 @@ export declare const ListEntitiesResponseSchema: GenMessage<ListEntitiesResponse
|
|
|
1695
1893
|
*/
|
|
1696
1894
|
export declare type EntityChangeRequest = Message<"world.EntityChangeRequest"> & {
|
|
1697
1895
|
/**
|
|
1896
|
+
* components present (set) in the pushed entity are replaced entirely, not recursively.
|
|
1897
|
+
* Components not included in the message are left unchanged.
|
|
1898
|
+
* missing Components are NOT removed
|
|
1899
|
+
*
|
|
1698
1900
|
* @generated from field: repeated world.Entity changes = 1;
|
|
1699
1901
|
*/
|
|
1700
1902
|
changes: Entity[];
|
|
1903
|
+
|
|
1904
|
+
/**
|
|
1905
|
+
* replaces the whole entity atoomically.
|
|
1906
|
+
* missing Components ARE removed
|
|
1907
|
+
*
|
|
1908
|
+
* @generated from field: repeated world.Entity replacements = 2;
|
|
1909
|
+
*/
|
|
1910
|
+
replacements: Entity[];
|
|
1701
1911
|
};
|
|
1702
1912
|
|
|
1703
1913
|
/**
|
|
@@ -1844,6 +2054,11 @@ export declare type GetLocalNodeResponse = Message<"world.GetLocalNodeResponse">
|
|
|
1844
2054
|
* @generated from field: world.Entity entity = 1;
|
|
1845
2055
|
*/
|
|
1846
2056
|
entity?: Entity;
|
|
2057
|
+
|
|
2058
|
+
/**
|
|
2059
|
+
* @generated from field: string node_id = 2;
|
|
2060
|
+
*/
|
|
2061
|
+
nodeId: string;
|
|
1847
2062
|
};
|
|
1848
2063
|
|
|
1849
2064
|
/**
|
|
@@ -1995,6 +2210,11 @@ export enum CameraProtocol {
|
|
|
1995
2210
|
* @generated from enum value: CameraProtocolImage = 4;
|
|
1996
2211
|
*/
|
|
1997
2212
|
CameraProtocolImage = 4,
|
|
2213
|
+
|
|
2214
|
+
/**
|
|
2215
|
+
* @generated from enum value: CameraProtocolIframe = 5;
|
|
2216
|
+
*/
|
|
2217
|
+
CameraProtocolIframe = 5,
|
|
1998
2218
|
}
|
|
1999
2219
|
|
|
2000
2220
|
/**
|
|
@@ -2236,29 +2456,44 @@ export enum DeviceState {
|
|
|
2236
2456
|
export declare const DeviceStateSchema: GenEnum<DeviceState>;
|
|
2237
2457
|
|
|
2238
2458
|
/**
|
|
2239
|
-
* @generated from enum world.
|
|
2459
|
+
* @generated from enum world.ConfigurableState
|
|
2240
2460
|
*/
|
|
2241
|
-
export enum
|
|
2461
|
+
export enum ConfigurableState {
|
|
2242
2462
|
/**
|
|
2243
|
-
* @generated from enum value:
|
|
2463
|
+
* @generated from enum value: ConfigurableStateInactive = 0;
|
|
2244
2464
|
*/
|
|
2245
|
-
|
|
2465
|
+
ConfigurableStateInactive = 0,
|
|
2246
2466
|
|
|
2247
2467
|
/**
|
|
2248
|
-
* @generated from enum value:
|
|
2468
|
+
* @generated from enum value: ConfigurableStateStarting = 1;
|
|
2249
2469
|
*/
|
|
2250
|
-
|
|
2470
|
+
ConfigurableStateStarting = 1,
|
|
2251
2471
|
|
|
2252
2472
|
/**
|
|
2253
|
-
* @generated from enum value:
|
|
2473
|
+
* @generated from enum value: ConfigurableStateActive = 2;
|
|
2254
2474
|
*/
|
|
2255
|
-
|
|
2475
|
+
ConfigurableStateActive = 2,
|
|
2476
|
+
|
|
2477
|
+
/**
|
|
2478
|
+
* @generated from enum value: ConfigurableStateFailed = 3;
|
|
2479
|
+
*/
|
|
2480
|
+
ConfigurableStateFailed = 3,
|
|
2481
|
+
|
|
2482
|
+
/**
|
|
2483
|
+
* @generated from enum value: ConfigurableStateConflict = 4;
|
|
2484
|
+
*/
|
|
2485
|
+
ConfigurableStateConflict = 4,
|
|
2486
|
+
|
|
2487
|
+
/**
|
|
2488
|
+
* @generated from enum value: ConfigurableStateScheduled = 5;
|
|
2489
|
+
*/
|
|
2490
|
+
ConfigurableStateScheduled = 5,
|
|
2256
2491
|
}
|
|
2257
2492
|
|
|
2258
2493
|
/**
|
|
2259
|
-
* Describes the enum world.
|
|
2494
|
+
* Describes the enum world.ConfigurableState.
|
|
2260
2495
|
*/
|
|
2261
|
-
export declare const
|
|
2496
|
+
export declare const ConfigurableStateSchema: GenEnum<ConfigurableState>;
|
|
2262
2497
|
|
|
2263
2498
|
/**
|
|
2264
2499
|
* @generated from enum world.EntityChange
|
|
@@ -2359,10 +2594,6 @@ export declare const WorldService: GenService<{
|
|
|
2359
2594
|
/**
|
|
2360
2595
|
* Create or update an entity. Used by capabilities.
|
|
2361
2596
|
*
|
|
2362
|
-
* Push uses merge semantics: only components present (set) in the pushed entity
|
|
2363
|
-
* are updated. Components not included in the message are left unchanged.
|
|
2364
|
-
* Components cannot be removed once set.
|
|
2365
|
-
*
|
|
2366
2597
|
* @generated from rpc world.WorldService.Push
|
|
2367
2598
|
*/
|
|
2368
2599
|
push: {
|