@viamrobotics/sdk 0.6.0-rc.0 → 0.7.0-rc.0
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/app/data-client.d.ts +12 -2
- package/dist/components/movement-sensor/client.d.ts +2 -2
- package/dist/components/movement-sensor/movement-sensor.d.ts +4 -11
- package/dist/components/movementsensor.d.ts +1 -1
- package/dist/components/power-sensor/client.d.ts +3 -3
- package/dist/components/power-sensor/power-sensor.d.ts +2 -6
- package/dist/components/powersensor.d.ts +1 -1
- package/dist/gen/app/cloudslam/v1/cloud_slam_pb.d.ts +15 -6
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +40 -0
- package/dist/gen/app/mltraining/v1/ml_training_pb_service.d.ts +19 -0
- package/dist/gen/app/v1/end_user_pb.d.ts +0 -8
- package/dist/gen/app/v1/robot_pb.d.ts +46 -0
- package/dist/gen/common/v1/common_pb.d.ts +45 -0
- package/dist/gen/component/movementsensor/v1/movementsensor_pb_service.d.ts +19 -0
- package/dist/gen/component/powersensor/v1/powersensor_pb_service.d.ts +19 -0
- package/dist/gen/component/sensor/v1/sensor_pb.d.ts +0 -46
- package/dist/gen/component/sensor/v1/sensor_pb_service.d.ts +6 -6
- package/dist/gen/robot/v1/robot_pb.d.ts +6 -0
- package/dist/gen/service/motion/v1/motion_pb.d.ts +33 -5
- package/dist/gen/service/navigation/v1/navigation_pb.d.ts +75 -0
- package/dist/gen/service/navigation/v1/navigation_pb_service.d.ts +19 -0
- package/dist/main.d.ts +3 -3
- package/dist/main.es.js +688 -329
- package/dist/main.umd.js +5 -5
- package/dist/services/motion/types.d.ts +1 -0
- package/dist/services/motion.d.ts +1 -1
- package/dist/services/navigation/client.d.ts +1 -1
- package/package.json +2 -2
|
@@ -8,14 +8,24 @@ export type FilterOptions = Partial<pb.Filter.AsObject> & {
|
|
|
8
8
|
tags?: string[];
|
|
9
9
|
};
|
|
10
10
|
type TabularData = {
|
|
11
|
-
data?:
|
|
12
|
-
|
|
11
|
+
data?: {
|
|
12
|
+
[key: string]: googleStructPb.JavaScriptValue;
|
|
13
|
+
};
|
|
14
|
+
metadata?: pb.CaptureMetadata.AsObject;
|
|
13
15
|
timeRequested?: Date;
|
|
14
16
|
timeReceived?: Date;
|
|
15
17
|
};
|
|
16
18
|
export declare class DataClient {
|
|
17
19
|
private service;
|
|
18
20
|
constructor(serviceHost: string, grpcOptions: RpcOptions);
|
|
21
|
+
/**
|
|
22
|
+
* Filter and download tabular data. The returned metadata might be empty if
|
|
23
|
+
* the metadata index of the data is out of the bounds of the returned
|
|
24
|
+
* metadata list.
|
|
25
|
+
*
|
|
26
|
+
* @param filter - Optional `pb.Filter` specifying tabular data to retrieve.
|
|
27
|
+
* No `filter` implies all tabular data.
|
|
28
|
+
*/
|
|
19
29
|
tabularDataByFilter(filter?: pb.Filter): Promise<TabularData[]>;
|
|
20
30
|
binaryDataByFilter(filter?: pb.Filter): Promise<pb.BinaryData.AsObject[]>;
|
|
21
31
|
binaryDataByIds(ids: BinaryID[]): Promise<pb.BinaryData.AsObject[]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RobotClient } from '../../robot';
|
|
2
2
|
import type { Options, StructType } from '../../types';
|
|
3
3
|
import pb from '../../gen/component/movementsensor/v1/movementsensor_pb';
|
|
4
|
-
import type { MovementSensor
|
|
4
|
+
import type { MovementSensor } from './movement-sensor';
|
|
5
5
|
/**
|
|
6
6
|
* A gRPC-web client for the MovementSensor component.
|
|
7
7
|
*
|
|
@@ -21,6 +21,6 @@ export declare class MovementSensorClient implements MovementSensor {
|
|
|
21
21
|
getProperties(extra?: {}): Promise<pb.GetPropertiesResponse.AsObject>;
|
|
22
22
|
getAccuracy(extra?: {}): Promise<Record<string, number>>;
|
|
23
23
|
getLinearAcceleration(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Vector3.AsObject>;
|
|
24
|
-
getReadings(extra?: {}): Promise<
|
|
24
|
+
getReadings(extra?: {}): Promise<Record<string, unknown>>;
|
|
25
25
|
doCommand(command: StructType): Promise<StructType>;
|
|
26
26
|
}
|
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
import type { Orientation, StructType, Vector3 } from '../../types';
|
|
2
|
-
import type { Sensor } from '../sensor';
|
|
1
|
+
import type { Resource, Orientation, StructType, Vector3 } from '../../types';
|
|
3
2
|
import pb from '../../gen/component/movementsensor/v1/movementsensor_pb';
|
|
4
3
|
export type MovementSensorPosition = pb.GetPositionResponse.AsObject;
|
|
5
4
|
export type MovementSensorProperties = pb.GetPropertiesResponse.AsObject;
|
|
6
|
-
export type MovementSensorReadings = {
|
|
7
|
-
position?: MovementSensorPosition;
|
|
8
|
-
linearVelocity?: Vector3;
|
|
9
|
-
angularVelocity?: Vector3;
|
|
10
|
-
linearAcceleration?: Vector3;
|
|
11
|
-
compassHeading?: number;
|
|
12
|
-
orientation?: Orientation;
|
|
13
|
-
};
|
|
14
5
|
/**
|
|
15
6
|
* Represents any sensor that reports information about the robot's direction,
|
|
16
7
|
* position, and/or speed.
|
|
17
8
|
*/
|
|
18
|
-
export interface MovementSensor extends
|
|
9
|
+
export interface MovementSensor extends Resource {
|
|
19
10
|
/** Get linear velocity across x/y/z axes */
|
|
20
11
|
getLinearVelocity(extra?: StructType): Promise<Vector3>;
|
|
21
12
|
/** Get the angular velocity across x/y/z axes */
|
|
@@ -38,4 +29,6 @@ export interface MovementSensor extends Sensor {
|
|
|
38
29
|
getAccuracy(extra?: StructType): Promise<Record<string, number>>;
|
|
39
30
|
/** Get linear acceleration across x/y/z axes */
|
|
40
31
|
getLinearAcceleration(extra?: StructType): Promise<Vector3>;
|
|
32
|
+
/** Return the readings of a sensor. */
|
|
33
|
+
getReadings(extra?: StructType): Promise<Record<string, unknown>>;
|
|
41
34
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { MovementSensorPosition, MovementSensorProperties,
|
|
1
|
+
export type { MovementSensorPosition, MovementSensorProperties, MovementSensor, } from './movement-sensor/movement-sensor';
|
|
2
2
|
export { MovementSensorClient } from './movement-sensor/client';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { RobotClient } from '../../robot';
|
|
2
2
|
import type { Options, StructType } from '../../types';
|
|
3
|
-
import type { PowerSensor
|
|
3
|
+
import type { PowerSensor } from './power-sensor';
|
|
4
4
|
/**
|
|
5
|
-
* A gRPC-web client for the
|
|
5
|
+
* A gRPC-web client for the PowerSensor component.
|
|
6
6
|
*
|
|
7
7
|
* @group Clients
|
|
8
8
|
*/
|
|
@@ -15,6 +15,6 @@ export declare class PowerSensorClient implements PowerSensor {
|
|
|
15
15
|
getVoltage(extra?: {}): Promise<readonly [number, boolean]>;
|
|
16
16
|
getCurrent(extra?: {}): Promise<readonly [number, boolean]>;
|
|
17
17
|
getPower(extra?: {}): Promise<number>;
|
|
18
|
-
getReadings(extra?: {}): Promise<
|
|
18
|
+
getReadings(extra?: {}): Promise<Record<string, unknown>>;
|
|
19
19
|
doCommand(command: StructType): Promise<StructType>;
|
|
20
20
|
}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import type { StructType } from '../../types';
|
|
2
2
|
import type { Sensor } from '../sensor';
|
|
3
|
-
export type PowerSensorReadings = {
|
|
4
|
-
voltage?: number;
|
|
5
|
-
current?: number;
|
|
6
|
-
isAc?: boolean;
|
|
7
|
-
power?: number;
|
|
8
|
-
};
|
|
9
3
|
/** Represents any sensor that reports voltage, current, and/or power */
|
|
10
4
|
export interface PowerSensor extends Sensor {
|
|
11
5
|
/** Get Voltage in volts and a boolean that returns true if AC */
|
|
@@ -14,4 +8,6 @@ export interface PowerSensor extends Sensor {
|
|
|
14
8
|
getCurrent(extra?: StructType): Promise<readonly [number, boolean]>;
|
|
15
9
|
/** Get Power in watts */
|
|
16
10
|
getPower(extra?: StructType): Promise<number>;
|
|
11
|
+
/** Return the readings of a sensor. */
|
|
12
|
+
getReadings(extra?: StructType): Promise<Record<string, unknown>>;
|
|
17
13
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { PowerSensor } from './power-sensor/power-sensor';
|
|
2
2
|
export { PowerSensorClient } from './power-sensor/client';
|
|
@@ -366,8 +366,8 @@ export class UpdateMappingSessionMetadataByIDRequest extends jspb.Message {
|
|
|
366
366
|
getSessionId(): string;
|
|
367
367
|
setSessionId(value: string): void;
|
|
368
368
|
|
|
369
|
-
getEndStatus():
|
|
370
|
-
setEndStatus(value:
|
|
369
|
+
getEndStatus(): EndStatusMap[keyof EndStatusMap];
|
|
370
|
+
setEndStatus(value: EndStatusMap[keyof EndStatusMap]): void;
|
|
371
371
|
|
|
372
372
|
hasTimeCloudRunJobEnded(): boolean;
|
|
373
373
|
clearTimeCloudRunJobEnded(): void;
|
|
@@ -390,7 +390,7 @@ export class UpdateMappingSessionMetadataByIDRequest extends jspb.Message {
|
|
|
390
390
|
export namespace UpdateMappingSessionMetadataByIDRequest {
|
|
391
391
|
export type AsObject = {
|
|
392
392
|
sessionId: string,
|
|
393
|
-
endStatus:
|
|
393
|
+
endStatus: EndStatusMap[keyof EndStatusMap],
|
|
394
394
|
timeCloudRunJobEnded?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
395
395
|
errorMsg: string,
|
|
396
396
|
}
|
|
@@ -442,8 +442,8 @@ export class MappingMetadata extends jspb.Message {
|
|
|
442
442
|
getTimeCloudRunJobEnded(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
443
443
|
setTimeCloudRunJobEnded(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
444
444
|
|
|
445
|
-
getEndStatus():
|
|
446
|
-
setEndStatus(value:
|
|
445
|
+
getEndStatus(): EndStatusMap[keyof EndStatusMap];
|
|
446
|
+
setEndStatus(value: EndStatusMap[keyof EndStatusMap]): void;
|
|
447
447
|
|
|
448
448
|
getCloudRunJobId(): string;
|
|
449
449
|
setCloudRunJobId(value: string): void;
|
|
@@ -482,7 +482,7 @@ export namespace MappingMetadata {
|
|
|
482
482
|
timeCloudRunJobStarted?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
483
483
|
timeEndSubmitted?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
484
484
|
timeCloudRunJobEnded?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
485
|
-
endStatus:
|
|
485
|
+
endStatus: EndStatusMap[keyof EndStatusMap],
|
|
486
486
|
cloudRunJobId: string,
|
|
487
487
|
viamServerVersion: string,
|
|
488
488
|
mapName: string,
|
|
@@ -492,3 +492,12 @@ export namespace MappingMetadata {
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
|
|
495
|
+
export interface EndStatusMap {
|
|
496
|
+
END_STATUS_UNSPECIFIED: 0;
|
|
497
|
+
END_STATUS_SUCCESS: 1;
|
|
498
|
+
END_STATUS_TIMEOUT: 2;
|
|
499
|
+
END_STATUS_FAIL: 3;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
export const EndStatus: EndStatusMap;
|
|
503
|
+
|
|
@@ -13,6 +13,9 @@ export class SubmitTrainingJobRequest extends jspb.Message {
|
|
|
13
13
|
getFilter(): app_data_v1_data_pb.Filter | undefined;
|
|
14
14
|
setFilter(value?: app_data_v1_data_pb.Filter): void;
|
|
15
15
|
|
|
16
|
+
getDatasetId(): string;
|
|
17
|
+
setDatasetId(value: string): void;
|
|
18
|
+
|
|
16
19
|
getOrganizationId(): string;
|
|
17
20
|
setOrganizationId(value: string): void;
|
|
18
21
|
|
|
@@ -43,6 +46,7 @@ export class SubmitTrainingJobRequest extends jspb.Message {
|
|
|
43
46
|
export namespace SubmitTrainingJobRequest {
|
|
44
47
|
export type AsObject = {
|
|
45
48
|
filter?: app_data_v1_data_pb.Filter.AsObject,
|
|
49
|
+
datasetId: string,
|
|
46
50
|
organizationId: string,
|
|
47
51
|
modelName: string,
|
|
48
52
|
modelVersion: string,
|
|
@@ -247,6 +251,42 @@ export namespace CancelTrainingJobResponse {
|
|
|
247
251
|
}
|
|
248
252
|
}
|
|
249
253
|
|
|
254
|
+
export class DeleteCompletedTrainingJobRequest extends jspb.Message {
|
|
255
|
+
getId(): string;
|
|
256
|
+
setId(value: string): void;
|
|
257
|
+
|
|
258
|
+
serializeBinary(): Uint8Array;
|
|
259
|
+
toObject(includeInstance?: boolean): DeleteCompletedTrainingJobRequest.AsObject;
|
|
260
|
+
static toObject(includeInstance: boolean, msg: DeleteCompletedTrainingJobRequest): DeleteCompletedTrainingJobRequest.AsObject;
|
|
261
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
262
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
263
|
+
static serializeBinaryToWriter(message: DeleteCompletedTrainingJobRequest, writer: jspb.BinaryWriter): void;
|
|
264
|
+
static deserializeBinary(bytes: Uint8Array): DeleteCompletedTrainingJobRequest;
|
|
265
|
+
static deserializeBinaryFromReader(message: DeleteCompletedTrainingJobRequest, reader: jspb.BinaryReader): DeleteCompletedTrainingJobRequest;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export namespace DeleteCompletedTrainingJobRequest {
|
|
269
|
+
export type AsObject = {
|
|
270
|
+
id: string,
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export class DeleteCompletedTrainingJobResponse extends jspb.Message {
|
|
275
|
+
serializeBinary(): Uint8Array;
|
|
276
|
+
toObject(includeInstance?: boolean): DeleteCompletedTrainingJobResponse.AsObject;
|
|
277
|
+
static toObject(includeInstance: boolean, msg: DeleteCompletedTrainingJobResponse): DeleteCompletedTrainingJobResponse.AsObject;
|
|
278
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
279
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
280
|
+
static serializeBinaryToWriter(message: DeleteCompletedTrainingJobResponse, writer: jspb.BinaryWriter): void;
|
|
281
|
+
static deserializeBinary(bytes: Uint8Array): DeleteCompletedTrainingJobResponse;
|
|
282
|
+
static deserializeBinaryFromReader(message: DeleteCompletedTrainingJobResponse, reader: jspb.BinaryReader): DeleteCompletedTrainingJobResponse;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export namespace DeleteCompletedTrainingJobResponse {
|
|
286
|
+
export type AsObject = {
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
250
290
|
export interface ModelTypeMap {
|
|
251
291
|
MODEL_TYPE_UNSPECIFIED: 0;
|
|
252
292
|
MODEL_TYPE_SINGLE_LABEL_CLASSIFICATION: 1;
|
|
@@ -40,12 +40,22 @@ type MLTrainingServiceCancelTrainingJob = {
|
|
|
40
40
|
readonly responseType: typeof app_mltraining_v1_ml_training_pb.CancelTrainingJobResponse;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
+
type MLTrainingServiceDeleteCompletedTrainingJob = {
|
|
44
|
+
readonly methodName: string;
|
|
45
|
+
readonly service: typeof MLTrainingService;
|
|
46
|
+
readonly requestStream: false;
|
|
47
|
+
readonly responseStream: false;
|
|
48
|
+
readonly requestType: typeof app_mltraining_v1_ml_training_pb.DeleteCompletedTrainingJobRequest;
|
|
49
|
+
readonly responseType: typeof app_mltraining_v1_ml_training_pb.DeleteCompletedTrainingJobResponse;
|
|
50
|
+
};
|
|
51
|
+
|
|
43
52
|
export class MLTrainingService {
|
|
44
53
|
static readonly serviceName: string;
|
|
45
54
|
static readonly SubmitTrainingJob: MLTrainingServiceSubmitTrainingJob;
|
|
46
55
|
static readonly GetTrainingJob: MLTrainingServiceGetTrainingJob;
|
|
47
56
|
static readonly ListTrainingJobs: MLTrainingServiceListTrainingJobs;
|
|
48
57
|
static readonly CancelTrainingJob: MLTrainingServiceCancelTrainingJob;
|
|
58
|
+
static readonly DeleteCompletedTrainingJob: MLTrainingServiceDeleteCompletedTrainingJob;
|
|
49
59
|
}
|
|
50
60
|
|
|
51
61
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -116,5 +126,14 @@ export class MLTrainingServiceClient {
|
|
|
116
126
|
requestMessage: app_mltraining_v1_ml_training_pb.CancelTrainingJobRequest,
|
|
117
127
|
callback: (error: ServiceError|null, responseMessage: app_mltraining_v1_ml_training_pb.CancelTrainingJobResponse|null) => void
|
|
118
128
|
): UnaryResponse;
|
|
129
|
+
deleteCompletedTrainingJob(
|
|
130
|
+
requestMessage: app_mltraining_v1_ml_training_pb.DeleteCompletedTrainingJobRequest,
|
|
131
|
+
metadata: grpc.Metadata,
|
|
132
|
+
callback: (error: ServiceError|null, responseMessage: app_mltraining_v1_ml_training_pb.DeleteCompletedTrainingJobResponse|null) => void
|
|
133
|
+
): UnaryResponse;
|
|
134
|
+
deleteCompletedTrainingJob(
|
|
135
|
+
requestMessage: app_mltraining_v1_ml_training_pb.DeleteCompletedTrainingJobRequest,
|
|
136
|
+
callback: (error: ServiceError|null, responseMessage: app_mltraining_v1_ml_training_pb.DeleteCompletedTrainingJobResponse|null) => void
|
|
137
|
+
): UnaryResponse;
|
|
119
138
|
}
|
|
120
139
|
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
5
|
|
|
6
6
|
export class IsLegalAcceptedRequest extends jspb.Message {
|
|
7
|
-
getUserId(): string;
|
|
8
|
-
setUserId(value: string): void;
|
|
9
|
-
|
|
10
7
|
serializeBinary(): Uint8Array;
|
|
11
8
|
toObject(includeInstance?: boolean): IsLegalAcceptedRequest.AsObject;
|
|
12
9
|
static toObject(includeInstance: boolean, msg: IsLegalAcceptedRequest): IsLegalAcceptedRequest.AsObject;
|
|
@@ -19,7 +16,6 @@ export class IsLegalAcceptedRequest extends jspb.Message {
|
|
|
19
16
|
|
|
20
17
|
export namespace IsLegalAcceptedRequest {
|
|
21
18
|
export type AsObject = {
|
|
22
|
-
userId: string,
|
|
23
19
|
}
|
|
24
20
|
}
|
|
25
21
|
|
|
@@ -44,9 +40,6 @@ export namespace IsLegalAcceptedResponse {
|
|
|
44
40
|
}
|
|
45
41
|
|
|
46
42
|
export class AcceptLegalRequest extends jspb.Message {
|
|
47
|
-
getUserId(): string;
|
|
48
|
-
setUserId(value: string): void;
|
|
49
|
-
|
|
50
43
|
serializeBinary(): Uint8Array;
|
|
51
44
|
toObject(includeInstance?: boolean): AcceptLegalRequest.AsObject;
|
|
52
45
|
static toObject(includeInstance: boolean, msg: AcceptLegalRequest): AcceptLegalRequest.AsObject;
|
|
@@ -59,7 +52,6 @@ export class AcceptLegalRequest extends jspb.Message {
|
|
|
59
52
|
|
|
60
53
|
export namespace AcceptLegalRequest {
|
|
61
54
|
export type AsObject = {
|
|
62
|
-
userId: string,
|
|
63
55
|
}
|
|
64
56
|
}
|
|
65
57
|
|
|
@@ -114,6 +114,26 @@ export namespace LocationSecret {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
export class AppValidationStatus extends jspb.Message {
|
|
118
|
+
getError(): string;
|
|
119
|
+
setError(value: string): void;
|
|
120
|
+
|
|
121
|
+
serializeBinary(): Uint8Array;
|
|
122
|
+
toObject(includeInstance?: boolean): AppValidationStatus.AsObject;
|
|
123
|
+
static toObject(includeInstance: boolean, msg: AppValidationStatus): AppValidationStatus.AsObject;
|
|
124
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
125
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
126
|
+
static serializeBinaryToWriter(message: AppValidationStatus, writer: jspb.BinaryWriter): void;
|
|
127
|
+
static deserializeBinary(bytes: Uint8Array): AppValidationStatus;
|
|
128
|
+
static deserializeBinaryFromReader(message: AppValidationStatus, reader: jspb.BinaryReader): AppValidationStatus;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export namespace AppValidationStatus {
|
|
132
|
+
export type AsObject = {
|
|
133
|
+
error: string,
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
117
137
|
export class CloudConfig extends jspb.Message {
|
|
118
138
|
getId(): string;
|
|
119
139
|
setId(value: string): void;
|
|
@@ -283,6 +303,8 @@ export class ProcessConfig extends jspb.Message {
|
|
|
283
303
|
getStopTimeout(): google_protobuf_duration_pb.Duration | undefined;
|
|
284
304
|
setStopTimeout(value?: google_protobuf_duration_pb.Duration): void;
|
|
285
305
|
|
|
306
|
+
getEnvMap(): jspb.Map<string, string>;
|
|
307
|
+
clearEnvMap(): void;
|
|
286
308
|
serializeBinary(): Uint8Array;
|
|
287
309
|
toObject(includeInstance?: boolean): ProcessConfig.AsObject;
|
|
288
310
|
static toObject(includeInstance: boolean, msg: ProcessConfig): ProcessConfig.AsObject;
|
|
@@ -303,6 +325,7 @@ export namespace ProcessConfig {
|
|
|
303
325
|
log: boolean,
|
|
304
326
|
stopSignal: number,
|
|
305
327
|
stopTimeout?: google_protobuf_duration_pb.Duration.AsObject,
|
|
328
|
+
envMap: Array<[string, string]>,
|
|
306
329
|
}
|
|
307
330
|
}
|
|
308
331
|
|
|
@@ -1183,6 +1206,19 @@ export class ModuleConfig extends jspb.Message {
|
|
|
1183
1206
|
getLogLevel(): string;
|
|
1184
1207
|
setLogLevel(value: string): void;
|
|
1185
1208
|
|
|
1209
|
+
getType(): string;
|
|
1210
|
+
setType(value: string): void;
|
|
1211
|
+
|
|
1212
|
+
getModuleId(): string;
|
|
1213
|
+
setModuleId(value: string): void;
|
|
1214
|
+
|
|
1215
|
+
getEnvMap(): jspb.Map<string, string>;
|
|
1216
|
+
clearEnvMap(): void;
|
|
1217
|
+
hasStatus(): boolean;
|
|
1218
|
+
clearStatus(): void;
|
|
1219
|
+
getStatus(): AppValidationStatus | undefined;
|
|
1220
|
+
setStatus(value?: AppValidationStatus): void;
|
|
1221
|
+
|
|
1186
1222
|
serializeBinary(): Uint8Array;
|
|
1187
1223
|
toObject(includeInstance?: boolean): ModuleConfig.AsObject;
|
|
1188
1224
|
static toObject(includeInstance: boolean, msg: ModuleConfig): ModuleConfig.AsObject;
|
|
@@ -1198,6 +1234,10 @@ export namespace ModuleConfig {
|
|
|
1198
1234
|
name: string,
|
|
1199
1235
|
path: string,
|
|
1200
1236
|
logLevel: string,
|
|
1237
|
+
type: string,
|
|
1238
|
+
moduleId: string,
|
|
1239
|
+
envMap: Array<[string, string]>,
|
|
1240
|
+
status?: AppValidationStatus.AsObject,
|
|
1201
1241
|
}
|
|
1202
1242
|
}
|
|
1203
1243
|
|
|
@@ -1214,6 +1254,11 @@ export class PackageConfig extends jspb.Message {
|
|
|
1214
1254
|
getType(): string;
|
|
1215
1255
|
setType(value: string): void;
|
|
1216
1256
|
|
|
1257
|
+
hasStatus(): boolean;
|
|
1258
|
+
clearStatus(): void;
|
|
1259
|
+
getStatus(): AppValidationStatus | undefined;
|
|
1260
|
+
setStatus(value?: AppValidationStatus): void;
|
|
1261
|
+
|
|
1217
1262
|
serializeBinary(): Uint8Array;
|
|
1218
1263
|
toObject(includeInstance?: boolean): PackageConfig.AsObject;
|
|
1219
1264
|
static toObject(includeInstance: boolean, msg: PackageConfig): PackageConfig.AsObject;
|
|
@@ -1230,6 +1275,7 @@ export namespace PackageConfig {
|
|
|
1230
1275
|
pb_package: string,
|
|
1231
1276
|
version: string,
|
|
1232
1277
|
type: string,
|
|
1278
|
+
status?: AppValidationStatus.AsObject,
|
|
1233
1279
|
}
|
|
1234
1280
|
}
|
|
1235
1281
|
|
|
@@ -704,6 +704,51 @@ export namespace GetGeometriesResponse {
|
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
|
|
707
|
+
export class GetReadingsRequest extends jspb.Message {
|
|
708
|
+
getName(): string;
|
|
709
|
+
setName(value: string): void;
|
|
710
|
+
|
|
711
|
+
hasExtra(): boolean;
|
|
712
|
+
clearExtra(): void;
|
|
713
|
+
getExtra(): google_protobuf_struct_pb.Struct | undefined;
|
|
714
|
+
setExtra(value?: google_protobuf_struct_pb.Struct): void;
|
|
715
|
+
|
|
716
|
+
serializeBinary(): Uint8Array;
|
|
717
|
+
toObject(includeInstance?: boolean): GetReadingsRequest.AsObject;
|
|
718
|
+
static toObject(includeInstance: boolean, msg: GetReadingsRequest): GetReadingsRequest.AsObject;
|
|
719
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
720
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
721
|
+
static serializeBinaryToWriter(message: GetReadingsRequest, writer: jspb.BinaryWriter): void;
|
|
722
|
+
static deserializeBinary(bytes: Uint8Array): GetReadingsRequest;
|
|
723
|
+
static deserializeBinaryFromReader(message: GetReadingsRequest, reader: jspb.BinaryReader): GetReadingsRequest;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
export namespace GetReadingsRequest {
|
|
727
|
+
export type AsObject = {
|
|
728
|
+
name: string,
|
|
729
|
+
extra?: google_protobuf_struct_pb.Struct.AsObject,
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
export class GetReadingsResponse extends jspb.Message {
|
|
734
|
+
getReadingsMap(): jspb.Map<string, google_protobuf_struct_pb.Value>;
|
|
735
|
+
clearReadingsMap(): void;
|
|
736
|
+
serializeBinary(): Uint8Array;
|
|
737
|
+
toObject(includeInstance?: boolean): GetReadingsResponse.AsObject;
|
|
738
|
+
static toObject(includeInstance: boolean, msg: GetReadingsResponse): GetReadingsResponse.AsObject;
|
|
739
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
740
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
741
|
+
static serializeBinaryToWriter(message: GetReadingsResponse, writer: jspb.BinaryWriter): void;
|
|
742
|
+
static deserializeBinary(bytes: Uint8Array): GetReadingsResponse;
|
|
743
|
+
static deserializeBinaryFromReader(message: GetReadingsResponse, reader: jspb.BinaryReader): GetReadingsResponse;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
export namespace GetReadingsResponse {
|
|
747
|
+
export type AsObject = {
|
|
748
|
+
readingsMap: Array<[string, google_protobuf_struct_pb.Value.AsObject]>,
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
|
|
707
752
|
export const safetyHeartbeatMonitored: jspb.ExtensionFieldInfo<boolean>;
|
|
708
753
|
|
|
709
754
|
export interface KinematicsFileFormatMap {
|
|
@@ -95,6 +95,15 @@ type MovementSensorServiceGetGeometries = {
|
|
|
95
95
|
readonly responseType: typeof common_v1_common_pb.GetGeometriesResponse;
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
+
type MovementSensorServiceGetReadings = {
|
|
99
|
+
readonly methodName: string;
|
|
100
|
+
readonly service: typeof MovementSensorService;
|
|
101
|
+
readonly requestStream: false;
|
|
102
|
+
readonly responseStream: false;
|
|
103
|
+
readonly requestType: typeof common_v1_common_pb.GetReadingsRequest;
|
|
104
|
+
readonly responseType: typeof common_v1_common_pb.GetReadingsResponse;
|
|
105
|
+
};
|
|
106
|
+
|
|
98
107
|
export class MovementSensorService {
|
|
99
108
|
static readonly serviceName: string;
|
|
100
109
|
static readonly GetLinearVelocity: MovementSensorServiceGetLinearVelocity;
|
|
@@ -107,6 +116,7 @@ export class MovementSensorService {
|
|
|
107
116
|
static readonly GetLinearAcceleration: MovementSensorServiceGetLinearAcceleration;
|
|
108
117
|
static readonly DoCommand: MovementSensorServiceDoCommand;
|
|
109
118
|
static readonly GetGeometries: MovementSensorServiceGetGeometries;
|
|
119
|
+
static readonly GetReadings: MovementSensorServiceGetReadings;
|
|
110
120
|
}
|
|
111
121
|
|
|
112
122
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -231,5 +241,14 @@ export class MovementSensorServiceClient {
|
|
|
231
241
|
requestMessage: common_v1_common_pb.GetGeometriesRequest,
|
|
232
242
|
callback: (error: ServiceError|null, responseMessage: common_v1_common_pb.GetGeometriesResponse|null) => void
|
|
233
243
|
): UnaryResponse;
|
|
244
|
+
getReadings(
|
|
245
|
+
requestMessage: common_v1_common_pb.GetReadingsRequest,
|
|
246
|
+
metadata: grpc.Metadata,
|
|
247
|
+
callback: (error: ServiceError|null, responseMessage: common_v1_common_pb.GetReadingsResponse|null) => void
|
|
248
|
+
): UnaryResponse;
|
|
249
|
+
getReadings(
|
|
250
|
+
requestMessage: common_v1_common_pb.GetReadingsRequest,
|
|
251
|
+
callback: (error: ServiceError|null, responseMessage: common_v1_common_pb.GetReadingsResponse|null) => void
|
|
252
|
+
): UnaryResponse;
|
|
234
253
|
}
|
|
235
254
|
|
|
@@ -32,6 +32,15 @@ type PowerSensorServiceGetPower = {
|
|
|
32
32
|
readonly responseType: typeof component_powersensor_v1_powersensor_pb.GetPowerResponse;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
+
type PowerSensorServiceGetReadings = {
|
|
36
|
+
readonly methodName: string;
|
|
37
|
+
readonly service: typeof PowerSensorService;
|
|
38
|
+
readonly requestStream: false;
|
|
39
|
+
readonly responseStream: false;
|
|
40
|
+
readonly requestType: typeof common_v1_common_pb.GetReadingsRequest;
|
|
41
|
+
readonly responseType: typeof common_v1_common_pb.GetReadingsResponse;
|
|
42
|
+
};
|
|
43
|
+
|
|
35
44
|
type PowerSensorServiceDoCommand = {
|
|
36
45
|
readonly methodName: string;
|
|
37
46
|
readonly service: typeof PowerSensorService;
|
|
@@ -46,6 +55,7 @@ export class PowerSensorService {
|
|
|
46
55
|
static readonly GetVoltage: PowerSensorServiceGetVoltage;
|
|
47
56
|
static readonly GetCurrent: PowerSensorServiceGetCurrent;
|
|
48
57
|
static readonly GetPower: PowerSensorServiceGetPower;
|
|
58
|
+
static readonly GetReadings: PowerSensorServiceGetReadings;
|
|
49
59
|
static readonly DoCommand: PowerSensorServiceDoCommand;
|
|
50
60
|
}
|
|
51
61
|
|
|
@@ -108,6 +118,15 @@ export class PowerSensorServiceClient {
|
|
|
108
118
|
requestMessage: component_powersensor_v1_powersensor_pb.GetPowerRequest,
|
|
109
119
|
callback: (error: ServiceError|null, responseMessage: component_powersensor_v1_powersensor_pb.GetPowerResponse|null) => void
|
|
110
120
|
): UnaryResponse;
|
|
121
|
+
getReadings(
|
|
122
|
+
requestMessage: common_v1_common_pb.GetReadingsRequest,
|
|
123
|
+
metadata: grpc.Metadata,
|
|
124
|
+
callback: (error: ServiceError|null, responseMessage: common_v1_common_pb.GetReadingsResponse|null) => void
|
|
125
|
+
): UnaryResponse;
|
|
126
|
+
getReadings(
|
|
127
|
+
requestMessage: common_v1_common_pb.GetReadingsRequest,
|
|
128
|
+
callback: (error: ServiceError|null, responseMessage: common_v1_common_pb.GetReadingsResponse|null) => void
|
|
129
|
+
): UnaryResponse;
|
|
111
130
|
doCommand(
|
|
112
131
|
requestMessage: common_v1_common_pb.DoCommandRequest,
|
|
113
132
|
metadata: grpc.Metadata,
|
|
@@ -4,50 +4,4 @@
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
5
|
import * as common_v1_common_pb from "../../../common/v1/common_pb";
|
|
6
6
|
import * as google_api_annotations_pb from "../../../google/api/annotations_pb";
|
|
7
|
-
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
|
|
8
|
-
|
|
9
|
-
export class GetReadingsRequest extends jspb.Message {
|
|
10
|
-
getName(): string;
|
|
11
|
-
setName(value: string): void;
|
|
12
|
-
|
|
13
|
-
hasExtra(): boolean;
|
|
14
|
-
clearExtra(): void;
|
|
15
|
-
getExtra(): google_protobuf_struct_pb.Struct | undefined;
|
|
16
|
-
setExtra(value?: google_protobuf_struct_pb.Struct): void;
|
|
17
|
-
|
|
18
|
-
serializeBinary(): Uint8Array;
|
|
19
|
-
toObject(includeInstance?: boolean): GetReadingsRequest.AsObject;
|
|
20
|
-
static toObject(includeInstance: boolean, msg: GetReadingsRequest): GetReadingsRequest.AsObject;
|
|
21
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
22
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
23
|
-
static serializeBinaryToWriter(message: GetReadingsRequest, writer: jspb.BinaryWriter): void;
|
|
24
|
-
static deserializeBinary(bytes: Uint8Array): GetReadingsRequest;
|
|
25
|
-
static deserializeBinaryFromReader(message: GetReadingsRequest, reader: jspb.BinaryReader): GetReadingsRequest;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export namespace GetReadingsRequest {
|
|
29
|
-
export type AsObject = {
|
|
30
|
-
name: string,
|
|
31
|
-
extra?: google_protobuf_struct_pb.Struct.AsObject,
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export class GetReadingsResponse extends jspb.Message {
|
|
36
|
-
getReadingsMap(): jspb.Map<string, google_protobuf_struct_pb.Value>;
|
|
37
|
-
clearReadingsMap(): void;
|
|
38
|
-
serializeBinary(): Uint8Array;
|
|
39
|
-
toObject(includeInstance?: boolean): GetReadingsResponse.AsObject;
|
|
40
|
-
static toObject(includeInstance: boolean, msg: GetReadingsResponse): GetReadingsResponse.AsObject;
|
|
41
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
42
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
43
|
-
static serializeBinaryToWriter(message: GetReadingsResponse, writer: jspb.BinaryWriter): void;
|
|
44
|
-
static deserializeBinary(bytes: Uint8Array): GetReadingsResponse;
|
|
45
|
-
static deserializeBinaryFromReader(message: GetReadingsResponse, reader: jspb.BinaryReader): GetReadingsResponse;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export namespace GetReadingsResponse {
|
|
49
|
-
export type AsObject = {
|
|
50
|
-
readingsMap: Array<[string, google_protobuf_struct_pb.Value.AsObject]>,
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
7
|
|
|
@@ -10,8 +10,8 @@ type SensorServiceGetReadings = {
|
|
|
10
10
|
readonly service: typeof SensorService;
|
|
11
11
|
readonly requestStream: false;
|
|
12
12
|
readonly responseStream: false;
|
|
13
|
-
readonly requestType: typeof
|
|
14
|
-
readonly responseType: typeof
|
|
13
|
+
readonly requestType: typeof common_v1_common_pb.GetReadingsRequest;
|
|
14
|
+
readonly responseType: typeof common_v1_common_pb.GetReadingsResponse;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
type SensorServiceDoCommand = {
|
|
@@ -72,13 +72,13 @@ export class SensorServiceClient {
|
|
|
72
72
|
|
|
73
73
|
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
74
74
|
getReadings(
|
|
75
|
-
requestMessage:
|
|
75
|
+
requestMessage: common_v1_common_pb.GetReadingsRequest,
|
|
76
76
|
metadata: grpc.Metadata,
|
|
77
|
-
callback: (error: ServiceError|null, responseMessage:
|
|
77
|
+
callback: (error: ServiceError|null, responseMessage: common_v1_common_pb.GetReadingsResponse|null) => void
|
|
78
78
|
): UnaryResponse;
|
|
79
79
|
getReadings(
|
|
80
|
-
requestMessage:
|
|
81
|
-
callback: (error: ServiceError|null, responseMessage:
|
|
80
|
+
requestMessage: common_v1_common_pb.GetReadingsRequest,
|
|
81
|
+
callback: (error: ServiceError|null, responseMessage: common_v1_common_pb.GetReadingsResponse|null) => void
|
|
82
82
|
): UnaryResponse;
|
|
83
83
|
doCommand(
|
|
84
84
|
requestMessage: common_v1_common_pb.DoCommandRequest,
|
|
@@ -643,6 +643,11 @@ export class Status extends jspb.Message {
|
|
|
643
643
|
getStatus(): google_protobuf_struct_pb.Struct | undefined;
|
|
644
644
|
setStatus(value?: google_protobuf_struct_pb.Struct): void;
|
|
645
645
|
|
|
646
|
+
hasLastReconfigured(): boolean;
|
|
647
|
+
clearLastReconfigured(): void;
|
|
648
|
+
getLastReconfigured(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
649
|
+
setLastReconfigured(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
650
|
+
|
|
646
651
|
serializeBinary(): Uint8Array;
|
|
647
652
|
toObject(includeInstance?: boolean): Status.AsObject;
|
|
648
653
|
static toObject(includeInstance: boolean, msg: Status): Status.AsObject;
|
|
@@ -657,6 +662,7 @@ export namespace Status {
|
|
|
657
662
|
export type AsObject = {
|
|
658
663
|
name?: common_v1_common_pb.ResourceName.AsObject,
|
|
659
664
|
status?: google_protobuf_struct_pb.Struct.AsObject,
|
|
665
|
+
lastReconfigured?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
660
666
|
}
|
|
661
667
|
}
|
|
662
668
|
|