@viamrobotics/sdk 0.3.3 → 0.4.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 +24 -0
- package/dist/app/viam-client.d.ts +11 -0
- package/dist/app/viam-transport.d.ts +10 -0
- package/dist/gen/app/cloudslam/v1/cloud_slam_pb.d.ts +494 -0
- package/dist/gen/app/cloudslam/v1/cloud_slam_pb_service.d.ts +177 -0
- package/dist/gen/app/data/v1/data_pb.d.ts +1342 -0
- package/dist/gen/app/data/v1/data_pb_service.d.ts +386 -0
- package/dist/gen/app/dataset/v1/dataset_pb.d.ts +246 -0
- package/dist/gen/app/dataset/v1/dataset_pb_service.d.ts +139 -0
- package/dist/gen/app/datasync/v1/data_sync_pb.d.ts +425 -0
- package/dist/gen/app/datasync/v1/data_sync_pb_service.d.ts +85 -0
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +270 -0
- package/dist/gen/app/mltraining/v1/ml_training_pb_service.d.ts +120 -0
- package/dist/gen/app/packages/v1/packages_pb.d.ts +368 -0
- package/dist/gen/app/packages/v1/packages_pb_service.d.ts +112 -0
- package/dist/gen/app/v1/app_pb.d.ts +3801 -0
- package/dist/gen/app/v1/app_pb_service.d.ts +1225 -0
- package/dist/gen/app/v1/billing_pb.d.ts +753 -0
- package/dist/gen/app/v1/billing_pb_service.d.ts +207 -0
- package/dist/gen/app/v1/end_user_pb.d.ts +81 -0
- package/dist/gen/app/v1/end_user_pb_service.d.ts +82 -0
- package/dist/gen/app/v1/robot_pb.d.ts +1245 -0
- package/dist/gen/app/v1/robot_pb_service.d.ts +120 -0
- package/dist/gen/component/board/v1/board_pb.d.ts +50 -0
- package/dist/gen/component/board/v1/board_pb_service.d.ts +19 -0
- package/dist/gen/service/motion/v1/motion_pb.d.ts +442 -0
- package/dist/gen/service/motion/v1/motion_pb_service.d.ts +76 -0
- package/dist/gen/service/navigation/v1/navigation_pb.d.ts +1 -0
- package/dist/main.d.ts +12 -0
- package/dist/main.es.js +35870 -25701
- package/dist/main.umd.js +20 -18
- package/dist/robot/dial.d.ts +9 -0
- package/dist/services/navigation/client.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// package: viam.app.dataset.v1
|
|
2
|
+
// file: app/dataset/v1/dataset.proto
|
|
3
|
+
|
|
4
|
+
import * as app_dataset_v1_dataset_pb from "../../../app/dataset/v1/dataset_pb";
|
|
5
|
+
import {grpc} from "@improbable-eng/grpc-web";
|
|
6
|
+
|
|
7
|
+
type DatasetServiceCreateDataset = {
|
|
8
|
+
readonly methodName: string;
|
|
9
|
+
readonly service: typeof DatasetService;
|
|
10
|
+
readonly requestStream: false;
|
|
11
|
+
readonly responseStream: false;
|
|
12
|
+
readonly requestType: typeof app_dataset_v1_dataset_pb.CreateDatasetRequest;
|
|
13
|
+
readonly responseType: typeof app_dataset_v1_dataset_pb.CreateDatasetResponse;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type DatasetServiceDeleteDataset = {
|
|
17
|
+
readonly methodName: string;
|
|
18
|
+
readonly service: typeof DatasetService;
|
|
19
|
+
readonly requestStream: false;
|
|
20
|
+
readonly responseStream: false;
|
|
21
|
+
readonly requestType: typeof app_dataset_v1_dataset_pb.DeleteDatasetRequest;
|
|
22
|
+
readonly responseType: typeof app_dataset_v1_dataset_pb.DeleteDatasetResponse;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
type DatasetServiceRenameDataset = {
|
|
26
|
+
readonly methodName: string;
|
|
27
|
+
readonly service: typeof DatasetService;
|
|
28
|
+
readonly requestStream: false;
|
|
29
|
+
readonly responseStream: false;
|
|
30
|
+
readonly requestType: typeof app_dataset_v1_dataset_pb.RenameDatasetRequest;
|
|
31
|
+
readonly responseType: typeof app_dataset_v1_dataset_pb.RenameDatasetResponse;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
type DatasetServiceListDatasetsByOrganizationID = {
|
|
35
|
+
readonly methodName: string;
|
|
36
|
+
readonly service: typeof DatasetService;
|
|
37
|
+
readonly requestStream: false;
|
|
38
|
+
readonly responseStream: false;
|
|
39
|
+
readonly requestType: typeof app_dataset_v1_dataset_pb.ListDatasetsByOrganizationIDRequest;
|
|
40
|
+
readonly responseType: typeof app_dataset_v1_dataset_pb.ListDatasetsByOrganizationIDResponse;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
type DatasetServiceListDatasetsByIDs = {
|
|
44
|
+
readonly methodName: string;
|
|
45
|
+
readonly service: typeof DatasetService;
|
|
46
|
+
readonly requestStream: false;
|
|
47
|
+
readonly responseStream: false;
|
|
48
|
+
readonly requestType: typeof app_dataset_v1_dataset_pb.ListDatasetsByIDsRequest;
|
|
49
|
+
readonly responseType: typeof app_dataset_v1_dataset_pb.ListDatasetsByIDsResponse;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export class DatasetService {
|
|
53
|
+
static readonly serviceName: string;
|
|
54
|
+
static readonly CreateDataset: DatasetServiceCreateDataset;
|
|
55
|
+
static readonly DeleteDataset: DatasetServiceDeleteDataset;
|
|
56
|
+
static readonly RenameDataset: DatasetServiceRenameDataset;
|
|
57
|
+
static readonly ListDatasetsByOrganizationID: DatasetServiceListDatasetsByOrganizationID;
|
|
58
|
+
static readonly ListDatasetsByIDs: DatasetServiceListDatasetsByIDs;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
62
|
+
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
63
|
+
|
|
64
|
+
interface UnaryResponse {
|
|
65
|
+
cancel(): void;
|
|
66
|
+
}
|
|
67
|
+
interface ResponseStream<T> {
|
|
68
|
+
cancel(): void;
|
|
69
|
+
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
70
|
+
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
71
|
+
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
72
|
+
}
|
|
73
|
+
interface RequestStream<T> {
|
|
74
|
+
write(message: T): RequestStream<T>;
|
|
75
|
+
end(): void;
|
|
76
|
+
cancel(): void;
|
|
77
|
+
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
78
|
+
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
79
|
+
}
|
|
80
|
+
interface BidirectionalStream<ReqT, ResT> {
|
|
81
|
+
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
82
|
+
end(): void;
|
|
83
|
+
cancel(): void;
|
|
84
|
+
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
85
|
+
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
86
|
+
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export class DatasetServiceClient {
|
|
90
|
+
readonly serviceHost: string;
|
|
91
|
+
|
|
92
|
+
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
93
|
+
createDataset(
|
|
94
|
+
requestMessage: app_dataset_v1_dataset_pb.CreateDatasetRequest,
|
|
95
|
+
metadata: grpc.Metadata,
|
|
96
|
+
callback: (error: ServiceError|null, responseMessage: app_dataset_v1_dataset_pb.CreateDatasetResponse|null) => void
|
|
97
|
+
): UnaryResponse;
|
|
98
|
+
createDataset(
|
|
99
|
+
requestMessage: app_dataset_v1_dataset_pb.CreateDatasetRequest,
|
|
100
|
+
callback: (error: ServiceError|null, responseMessage: app_dataset_v1_dataset_pb.CreateDatasetResponse|null) => void
|
|
101
|
+
): UnaryResponse;
|
|
102
|
+
deleteDataset(
|
|
103
|
+
requestMessage: app_dataset_v1_dataset_pb.DeleteDatasetRequest,
|
|
104
|
+
metadata: grpc.Metadata,
|
|
105
|
+
callback: (error: ServiceError|null, responseMessage: app_dataset_v1_dataset_pb.DeleteDatasetResponse|null) => void
|
|
106
|
+
): UnaryResponse;
|
|
107
|
+
deleteDataset(
|
|
108
|
+
requestMessage: app_dataset_v1_dataset_pb.DeleteDatasetRequest,
|
|
109
|
+
callback: (error: ServiceError|null, responseMessage: app_dataset_v1_dataset_pb.DeleteDatasetResponse|null) => void
|
|
110
|
+
): UnaryResponse;
|
|
111
|
+
renameDataset(
|
|
112
|
+
requestMessage: app_dataset_v1_dataset_pb.RenameDatasetRequest,
|
|
113
|
+
metadata: grpc.Metadata,
|
|
114
|
+
callback: (error: ServiceError|null, responseMessage: app_dataset_v1_dataset_pb.RenameDatasetResponse|null) => void
|
|
115
|
+
): UnaryResponse;
|
|
116
|
+
renameDataset(
|
|
117
|
+
requestMessage: app_dataset_v1_dataset_pb.RenameDatasetRequest,
|
|
118
|
+
callback: (error: ServiceError|null, responseMessage: app_dataset_v1_dataset_pb.RenameDatasetResponse|null) => void
|
|
119
|
+
): UnaryResponse;
|
|
120
|
+
listDatasetsByOrganizationID(
|
|
121
|
+
requestMessage: app_dataset_v1_dataset_pb.ListDatasetsByOrganizationIDRequest,
|
|
122
|
+
metadata: grpc.Metadata,
|
|
123
|
+
callback: (error: ServiceError|null, responseMessage: app_dataset_v1_dataset_pb.ListDatasetsByOrganizationIDResponse|null) => void
|
|
124
|
+
): UnaryResponse;
|
|
125
|
+
listDatasetsByOrganizationID(
|
|
126
|
+
requestMessage: app_dataset_v1_dataset_pb.ListDatasetsByOrganizationIDRequest,
|
|
127
|
+
callback: (error: ServiceError|null, responseMessage: app_dataset_v1_dataset_pb.ListDatasetsByOrganizationIDResponse|null) => void
|
|
128
|
+
): UnaryResponse;
|
|
129
|
+
listDatasetsByIDs(
|
|
130
|
+
requestMessage: app_dataset_v1_dataset_pb.ListDatasetsByIDsRequest,
|
|
131
|
+
metadata: grpc.Metadata,
|
|
132
|
+
callback: (error: ServiceError|null, responseMessage: app_dataset_v1_dataset_pb.ListDatasetsByIDsResponse|null) => void
|
|
133
|
+
): UnaryResponse;
|
|
134
|
+
listDatasetsByIDs(
|
|
135
|
+
requestMessage: app_dataset_v1_dataset_pb.ListDatasetsByIDsRequest,
|
|
136
|
+
callback: (error: ServiceError|null, responseMessage: app_dataset_v1_dataset_pb.ListDatasetsByIDsResponse|null) => void
|
|
137
|
+
): UnaryResponse;
|
|
138
|
+
}
|
|
139
|
+
|
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
// package: viam.app.datasync.v1
|
|
2
|
+
// file: app/datasync/v1/data_sync.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as google_api_annotations_pb from "../../../google/api/annotations_pb";
|
|
6
|
+
import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb";
|
|
7
|
+
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
|
|
8
|
+
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
9
|
+
|
|
10
|
+
export class DataCaptureUploadRequest extends jspb.Message {
|
|
11
|
+
hasMetadata(): boolean;
|
|
12
|
+
clearMetadata(): void;
|
|
13
|
+
getMetadata(): UploadMetadata | undefined;
|
|
14
|
+
setMetadata(value?: UploadMetadata): void;
|
|
15
|
+
|
|
16
|
+
clearSensorContentsList(): void;
|
|
17
|
+
getSensorContentsList(): Array<SensorData>;
|
|
18
|
+
setSensorContentsList(value: Array<SensorData>): void;
|
|
19
|
+
addSensorContents(value?: SensorData, index?: number): SensorData;
|
|
20
|
+
|
|
21
|
+
serializeBinary(): Uint8Array;
|
|
22
|
+
toObject(includeInstance?: boolean): DataCaptureUploadRequest.AsObject;
|
|
23
|
+
static toObject(includeInstance: boolean, msg: DataCaptureUploadRequest): DataCaptureUploadRequest.AsObject;
|
|
24
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
25
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
26
|
+
static serializeBinaryToWriter(message: DataCaptureUploadRequest, writer: jspb.BinaryWriter): void;
|
|
27
|
+
static deserializeBinary(bytes: Uint8Array): DataCaptureUploadRequest;
|
|
28
|
+
static deserializeBinaryFromReader(message: DataCaptureUploadRequest, reader: jspb.BinaryReader): DataCaptureUploadRequest;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export namespace DataCaptureUploadRequest {
|
|
32
|
+
export type AsObject = {
|
|
33
|
+
metadata?: UploadMetadata.AsObject,
|
|
34
|
+
sensorContentsList: Array<SensorData.AsObject>,
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class DataCaptureUploadResponse extends jspb.Message {
|
|
39
|
+
getFileId(): string;
|
|
40
|
+
setFileId(value: string): void;
|
|
41
|
+
|
|
42
|
+
serializeBinary(): Uint8Array;
|
|
43
|
+
toObject(includeInstance?: boolean): DataCaptureUploadResponse.AsObject;
|
|
44
|
+
static toObject(includeInstance: boolean, msg: DataCaptureUploadResponse): DataCaptureUploadResponse.AsObject;
|
|
45
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
46
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
47
|
+
static serializeBinaryToWriter(message: DataCaptureUploadResponse, writer: jspb.BinaryWriter): void;
|
|
48
|
+
static deserializeBinary(bytes: Uint8Array): DataCaptureUploadResponse;
|
|
49
|
+
static deserializeBinaryFromReader(message: DataCaptureUploadResponse, reader: jspb.BinaryReader): DataCaptureUploadResponse;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export namespace DataCaptureUploadResponse {
|
|
53
|
+
export type AsObject = {
|
|
54
|
+
fileId: string,
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export class FileUploadRequest extends jspb.Message {
|
|
59
|
+
hasMetadata(): boolean;
|
|
60
|
+
clearMetadata(): void;
|
|
61
|
+
getMetadata(): UploadMetadata | undefined;
|
|
62
|
+
setMetadata(value?: UploadMetadata): void;
|
|
63
|
+
|
|
64
|
+
hasFileContents(): boolean;
|
|
65
|
+
clearFileContents(): void;
|
|
66
|
+
getFileContents(): FileData | undefined;
|
|
67
|
+
setFileContents(value?: FileData): void;
|
|
68
|
+
|
|
69
|
+
getUploadPacketCase(): FileUploadRequest.UploadPacketCase;
|
|
70
|
+
serializeBinary(): Uint8Array;
|
|
71
|
+
toObject(includeInstance?: boolean): FileUploadRequest.AsObject;
|
|
72
|
+
static toObject(includeInstance: boolean, msg: FileUploadRequest): FileUploadRequest.AsObject;
|
|
73
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
74
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
75
|
+
static serializeBinaryToWriter(message: FileUploadRequest, writer: jspb.BinaryWriter): void;
|
|
76
|
+
static deserializeBinary(bytes: Uint8Array): FileUploadRequest;
|
|
77
|
+
static deserializeBinaryFromReader(message: FileUploadRequest, reader: jspb.BinaryReader): FileUploadRequest;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export namespace FileUploadRequest {
|
|
81
|
+
export type AsObject = {
|
|
82
|
+
metadata?: UploadMetadata.AsObject,
|
|
83
|
+
fileContents?: FileData.AsObject,
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export enum UploadPacketCase {
|
|
87
|
+
UPLOAD_PACKET_NOT_SET = 0,
|
|
88
|
+
METADATA = 1,
|
|
89
|
+
FILE_CONTENTS = 2,
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export class FileUploadResponse extends jspb.Message {
|
|
94
|
+
getFileId(): string;
|
|
95
|
+
setFileId(value: string): void;
|
|
96
|
+
|
|
97
|
+
serializeBinary(): Uint8Array;
|
|
98
|
+
toObject(includeInstance?: boolean): FileUploadResponse.AsObject;
|
|
99
|
+
static toObject(includeInstance: boolean, msg: FileUploadResponse): FileUploadResponse.AsObject;
|
|
100
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
101
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
102
|
+
static serializeBinaryToWriter(message: FileUploadResponse, writer: jspb.BinaryWriter): void;
|
|
103
|
+
static deserializeBinary(bytes: Uint8Array): FileUploadResponse;
|
|
104
|
+
static deserializeBinaryFromReader(message: FileUploadResponse, reader: jspb.BinaryReader): FileUploadResponse;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export namespace FileUploadResponse {
|
|
108
|
+
export type AsObject = {
|
|
109
|
+
fileId: string,
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export class StreamingDataCaptureUploadRequest extends jspb.Message {
|
|
114
|
+
hasMetadata(): boolean;
|
|
115
|
+
clearMetadata(): void;
|
|
116
|
+
getMetadata(): DataCaptureUploadMetadata | undefined;
|
|
117
|
+
setMetadata(value?: DataCaptureUploadMetadata): void;
|
|
118
|
+
|
|
119
|
+
hasData(): boolean;
|
|
120
|
+
clearData(): void;
|
|
121
|
+
getData(): Uint8Array | string;
|
|
122
|
+
getData_asU8(): Uint8Array;
|
|
123
|
+
getData_asB64(): string;
|
|
124
|
+
setData(value: Uint8Array | string): void;
|
|
125
|
+
|
|
126
|
+
getUploadPacketCase(): StreamingDataCaptureUploadRequest.UploadPacketCase;
|
|
127
|
+
serializeBinary(): Uint8Array;
|
|
128
|
+
toObject(includeInstance?: boolean): StreamingDataCaptureUploadRequest.AsObject;
|
|
129
|
+
static toObject(includeInstance: boolean, msg: StreamingDataCaptureUploadRequest): StreamingDataCaptureUploadRequest.AsObject;
|
|
130
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
131
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
132
|
+
static serializeBinaryToWriter(message: StreamingDataCaptureUploadRequest, writer: jspb.BinaryWriter): void;
|
|
133
|
+
static deserializeBinary(bytes: Uint8Array): StreamingDataCaptureUploadRequest;
|
|
134
|
+
static deserializeBinaryFromReader(message: StreamingDataCaptureUploadRequest, reader: jspb.BinaryReader): StreamingDataCaptureUploadRequest;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export namespace StreamingDataCaptureUploadRequest {
|
|
138
|
+
export type AsObject = {
|
|
139
|
+
metadata?: DataCaptureUploadMetadata.AsObject,
|
|
140
|
+
data: Uint8Array | string,
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export enum UploadPacketCase {
|
|
144
|
+
UPLOAD_PACKET_NOT_SET = 0,
|
|
145
|
+
METADATA = 1,
|
|
146
|
+
DATA = 2,
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export class StreamingDataCaptureUploadResponse extends jspb.Message {
|
|
151
|
+
getFileId(): string;
|
|
152
|
+
setFileId(value: string): void;
|
|
153
|
+
|
|
154
|
+
serializeBinary(): Uint8Array;
|
|
155
|
+
toObject(includeInstance?: boolean): StreamingDataCaptureUploadResponse.AsObject;
|
|
156
|
+
static toObject(includeInstance: boolean, msg: StreamingDataCaptureUploadResponse): StreamingDataCaptureUploadResponse.AsObject;
|
|
157
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
158
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
159
|
+
static serializeBinaryToWriter(message: StreamingDataCaptureUploadResponse, writer: jspb.BinaryWriter): void;
|
|
160
|
+
static deserializeBinary(bytes: Uint8Array): StreamingDataCaptureUploadResponse;
|
|
161
|
+
static deserializeBinaryFromReader(message: StreamingDataCaptureUploadResponse, reader: jspb.BinaryReader): StreamingDataCaptureUploadResponse;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export namespace StreamingDataCaptureUploadResponse {
|
|
165
|
+
export type AsObject = {
|
|
166
|
+
fileId: string,
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export class SensorMetadata extends jspb.Message {
|
|
171
|
+
hasTimeRequested(): boolean;
|
|
172
|
+
clearTimeRequested(): void;
|
|
173
|
+
getTimeRequested(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
174
|
+
setTimeRequested(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
175
|
+
|
|
176
|
+
hasTimeReceived(): boolean;
|
|
177
|
+
clearTimeReceived(): void;
|
|
178
|
+
getTimeReceived(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
179
|
+
setTimeReceived(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
180
|
+
|
|
181
|
+
serializeBinary(): Uint8Array;
|
|
182
|
+
toObject(includeInstance?: boolean): SensorMetadata.AsObject;
|
|
183
|
+
static toObject(includeInstance: boolean, msg: SensorMetadata): SensorMetadata.AsObject;
|
|
184
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
185
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
186
|
+
static serializeBinaryToWriter(message: SensorMetadata, writer: jspb.BinaryWriter): void;
|
|
187
|
+
static deserializeBinary(bytes: Uint8Array): SensorMetadata;
|
|
188
|
+
static deserializeBinaryFromReader(message: SensorMetadata, reader: jspb.BinaryReader): SensorMetadata;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export namespace SensorMetadata {
|
|
192
|
+
export type AsObject = {
|
|
193
|
+
timeRequested?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
194
|
+
timeReceived?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export class SensorData extends jspb.Message {
|
|
199
|
+
hasMetadata(): boolean;
|
|
200
|
+
clearMetadata(): void;
|
|
201
|
+
getMetadata(): SensorMetadata | undefined;
|
|
202
|
+
setMetadata(value?: SensorMetadata): void;
|
|
203
|
+
|
|
204
|
+
hasStruct(): boolean;
|
|
205
|
+
clearStruct(): void;
|
|
206
|
+
getStruct(): google_protobuf_struct_pb.Struct | undefined;
|
|
207
|
+
setStruct(value?: google_protobuf_struct_pb.Struct): void;
|
|
208
|
+
|
|
209
|
+
hasBinary(): boolean;
|
|
210
|
+
clearBinary(): void;
|
|
211
|
+
getBinary(): Uint8Array | string;
|
|
212
|
+
getBinary_asU8(): Uint8Array;
|
|
213
|
+
getBinary_asB64(): string;
|
|
214
|
+
setBinary(value: Uint8Array | string): void;
|
|
215
|
+
|
|
216
|
+
getDataCase(): SensorData.DataCase;
|
|
217
|
+
serializeBinary(): Uint8Array;
|
|
218
|
+
toObject(includeInstance?: boolean): SensorData.AsObject;
|
|
219
|
+
static toObject(includeInstance: boolean, msg: SensorData): SensorData.AsObject;
|
|
220
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
221
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
222
|
+
static serializeBinaryToWriter(message: SensorData, writer: jspb.BinaryWriter): void;
|
|
223
|
+
static deserializeBinary(bytes: Uint8Array): SensorData;
|
|
224
|
+
static deserializeBinaryFromReader(message: SensorData, reader: jspb.BinaryReader): SensorData;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export namespace SensorData {
|
|
228
|
+
export type AsObject = {
|
|
229
|
+
metadata?: SensorMetadata.AsObject,
|
|
230
|
+
struct?: google_protobuf_struct_pb.Struct.AsObject,
|
|
231
|
+
binary: Uint8Array | string,
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export enum DataCase {
|
|
235
|
+
DATA_NOT_SET = 0,
|
|
236
|
+
STRUCT = 2,
|
|
237
|
+
BINARY = 3,
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export class FileData extends jspb.Message {
|
|
242
|
+
getData(): Uint8Array | string;
|
|
243
|
+
getData_asU8(): Uint8Array;
|
|
244
|
+
getData_asB64(): string;
|
|
245
|
+
setData(value: Uint8Array | string): void;
|
|
246
|
+
|
|
247
|
+
serializeBinary(): Uint8Array;
|
|
248
|
+
toObject(includeInstance?: boolean): FileData.AsObject;
|
|
249
|
+
static toObject(includeInstance: boolean, msg: FileData): FileData.AsObject;
|
|
250
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
251
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
252
|
+
static serializeBinaryToWriter(message: FileData, writer: jspb.BinaryWriter): void;
|
|
253
|
+
static deserializeBinary(bytes: Uint8Array): FileData;
|
|
254
|
+
static deserializeBinaryFromReader(message: FileData, reader: jspb.BinaryReader): FileData;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export namespace FileData {
|
|
258
|
+
export type AsObject = {
|
|
259
|
+
data: Uint8Array | string,
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export class UploadMetadata extends jspb.Message {
|
|
264
|
+
getPartId(): string;
|
|
265
|
+
setPartId(value: string): void;
|
|
266
|
+
|
|
267
|
+
getComponentType(): string;
|
|
268
|
+
setComponentType(value: string): void;
|
|
269
|
+
|
|
270
|
+
getComponentName(): string;
|
|
271
|
+
setComponentName(value: string): void;
|
|
272
|
+
|
|
273
|
+
getMethodName(): string;
|
|
274
|
+
setMethodName(value: string): void;
|
|
275
|
+
|
|
276
|
+
getType(): DataTypeMap[keyof DataTypeMap];
|
|
277
|
+
setType(value: DataTypeMap[keyof DataTypeMap]): void;
|
|
278
|
+
|
|
279
|
+
getFileName(): string;
|
|
280
|
+
setFileName(value: string): void;
|
|
281
|
+
|
|
282
|
+
getMethodParametersMap(): jspb.Map<string, google_protobuf_any_pb.Any>;
|
|
283
|
+
clearMethodParametersMap(): void;
|
|
284
|
+
getFileExtension(): string;
|
|
285
|
+
setFileExtension(value: string): void;
|
|
286
|
+
|
|
287
|
+
clearTagsList(): void;
|
|
288
|
+
getTagsList(): Array<string>;
|
|
289
|
+
setTagsList(value: Array<string>): void;
|
|
290
|
+
addTags(value: string, index?: number): string;
|
|
291
|
+
|
|
292
|
+
serializeBinary(): Uint8Array;
|
|
293
|
+
toObject(includeInstance?: boolean): UploadMetadata.AsObject;
|
|
294
|
+
static toObject(includeInstance: boolean, msg: UploadMetadata): UploadMetadata.AsObject;
|
|
295
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
296
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
297
|
+
static serializeBinaryToWriter(message: UploadMetadata, writer: jspb.BinaryWriter): void;
|
|
298
|
+
static deserializeBinary(bytes: Uint8Array): UploadMetadata;
|
|
299
|
+
static deserializeBinaryFromReader(message: UploadMetadata, reader: jspb.BinaryReader): UploadMetadata;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export namespace UploadMetadata {
|
|
303
|
+
export type AsObject = {
|
|
304
|
+
partId: string,
|
|
305
|
+
componentType: string,
|
|
306
|
+
componentName: string,
|
|
307
|
+
methodName: string,
|
|
308
|
+
type: DataTypeMap[keyof DataTypeMap],
|
|
309
|
+
fileName: string,
|
|
310
|
+
methodParametersMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>,
|
|
311
|
+
fileExtension: string,
|
|
312
|
+
tagsList: Array<string>,
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export class CaptureInterval extends jspb.Message {
|
|
317
|
+
hasStart(): boolean;
|
|
318
|
+
clearStart(): void;
|
|
319
|
+
getStart(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
320
|
+
setStart(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
321
|
+
|
|
322
|
+
hasEnd(): boolean;
|
|
323
|
+
clearEnd(): void;
|
|
324
|
+
getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
325
|
+
setEnd(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
326
|
+
|
|
327
|
+
serializeBinary(): Uint8Array;
|
|
328
|
+
toObject(includeInstance?: boolean): CaptureInterval.AsObject;
|
|
329
|
+
static toObject(includeInstance: boolean, msg: CaptureInterval): CaptureInterval.AsObject;
|
|
330
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
331
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
332
|
+
static serializeBinaryToWriter(message: CaptureInterval, writer: jspb.BinaryWriter): void;
|
|
333
|
+
static deserializeBinary(bytes: Uint8Array): CaptureInterval;
|
|
334
|
+
static deserializeBinaryFromReader(message: CaptureInterval, reader: jspb.BinaryReader): CaptureInterval;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export namespace CaptureInterval {
|
|
338
|
+
export type AsObject = {
|
|
339
|
+
start?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
340
|
+
end?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
export class DataCaptureMetadata extends jspb.Message {
|
|
345
|
+
getComponentType(): string;
|
|
346
|
+
setComponentType(value: string): void;
|
|
347
|
+
|
|
348
|
+
getComponentName(): string;
|
|
349
|
+
setComponentName(value: string): void;
|
|
350
|
+
|
|
351
|
+
getMethodName(): string;
|
|
352
|
+
setMethodName(value: string): void;
|
|
353
|
+
|
|
354
|
+
getType(): DataTypeMap[keyof DataTypeMap];
|
|
355
|
+
setType(value: DataTypeMap[keyof DataTypeMap]): void;
|
|
356
|
+
|
|
357
|
+
getMethodParametersMap(): jspb.Map<string, google_protobuf_any_pb.Any>;
|
|
358
|
+
clearMethodParametersMap(): void;
|
|
359
|
+
getFileExtension(): string;
|
|
360
|
+
setFileExtension(value: string): void;
|
|
361
|
+
|
|
362
|
+
clearTagsList(): void;
|
|
363
|
+
getTagsList(): Array<string>;
|
|
364
|
+
setTagsList(value: Array<string>): void;
|
|
365
|
+
addTags(value: string, index?: number): string;
|
|
366
|
+
|
|
367
|
+
serializeBinary(): Uint8Array;
|
|
368
|
+
toObject(includeInstance?: boolean): DataCaptureMetadata.AsObject;
|
|
369
|
+
static toObject(includeInstance: boolean, msg: DataCaptureMetadata): DataCaptureMetadata.AsObject;
|
|
370
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
371
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
372
|
+
static serializeBinaryToWriter(message: DataCaptureMetadata, writer: jspb.BinaryWriter): void;
|
|
373
|
+
static deserializeBinary(bytes: Uint8Array): DataCaptureMetadata;
|
|
374
|
+
static deserializeBinaryFromReader(message: DataCaptureMetadata, reader: jspb.BinaryReader): DataCaptureMetadata;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export namespace DataCaptureMetadata {
|
|
378
|
+
export type AsObject = {
|
|
379
|
+
componentType: string,
|
|
380
|
+
componentName: string,
|
|
381
|
+
methodName: string,
|
|
382
|
+
type: DataTypeMap[keyof DataTypeMap],
|
|
383
|
+
methodParametersMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>,
|
|
384
|
+
fileExtension: string,
|
|
385
|
+
tagsList: Array<string>,
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export class DataCaptureUploadMetadata extends jspb.Message {
|
|
390
|
+
hasUploadMetadata(): boolean;
|
|
391
|
+
clearUploadMetadata(): void;
|
|
392
|
+
getUploadMetadata(): UploadMetadata | undefined;
|
|
393
|
+
setUploadMetadata(value?: UploadMetadata): void;
|
|
394
|
+
|
|
395
|
+
hasSensorMetadata(): boolean;
|
|
396
|
+
clearSensorMetadata(): void;
|
|
397
|
+
getSensorMetadata(): SensorMetadata | undefined;
|
|
398
|
+
setSensorMetadata(value?: SensorMetadata): void;
|
|
399
|
+
|
|
400
|
+
serializeBinary(): Uint8Array;
|
|
401
|
+
toObject(includeInstance?: boolean): DataCaptureUploadMetadata.AsObject;
|
|
402
|
+
static toObject(includeInstance: boolean, msg: DataCaptureUploadMetadata): DataCaptureUploadMetadata.AsObject;
|
|
403
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
404
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
405
|
+
static serializeBinaryToWriter(message: DataCaptureUploadMetadata, writer: jspb.BinaryWriter): void;
|
|
406
|
+
static deserializeBinary(bytes: Uint8Array): DataCaptureUploadMetadata;
|
|
407
|
+
static deserializeBinaryFromReader(message: DataCaptureUploadMetadata, reader: jspb.BinaryReader): DataCaptureUploadMetadata;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export namespace DataCaptureUploadMetadata {
|
|
411
|
+
export type AsObject = {
|
|
412
|
+
uploadMetadata?: UploadMetadata.AsObject,
|
|
413
|
+
sensorMetadata?: SensorMetadata.AsObject,
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export interface DataTypeMap {
|
|
418
|
+
DATA_TYPE_UNSPECIFIED: 0;
|
|
419
|
+
DATA_TYPE_BINARY_SENSOR: 1;
|
|
420
|
+
DATA_TYPE_TABULAR_SENSOR: 2;
|
|
421
|
+
DATA_TYPE_FILE: 3;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export const DataType: DataTypeMap;
|
|
425
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// package: viam.app.datasync.v1
|
|
2
|
+
// file: app/datasync/v1/data_sync.proto
|
|
3
|
+
|
|
4
|
+
import * as app_datasync_v1_data_sync_pb from "../../../app/datasync/v1/data_sync_pb";
|
|
5
|
+
import {grpc} from "@improbable-eng/grpc-web";
|
|
6
|
+
|
|
7
|
+
type DataSyncServiceDataCaptureUpload = {
|
|
8
|
+
readonly methodName: string;
|
|
9
|
+
readonly service: typeof DataSyncService;
|
|
10
|
+
readonly requestStream: false;
|
|
11
|
+
readonly responseStream: false;
|
|
12
|
+
readonly requestType: typeof app_datasync_v1_data_sync_pb.DataCaptureUploadRequest;
|
|
13
|
+
readonly responseType: typeof app_datasync_v1_data_sync_pb.DataCaptureUploadResponse;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type DataSyncServiceFileUpload = {
|
|
17
|
+
readonly methodName: string;
|
|
18
|
+
readonly service: typeof DataSyncService;
|
|
19
|
+
readonly requestStream: true;
|
|
20
|
+
readonly responseStream: false;
|
|
21
|
+
readonly requestType: typeof app_datasync_v1_data_sync_pb.FileUploadRequest;
|
|
22
|
+
readonly responseType: typeof app_datasync_v1_data_sync_pb.FileUploadResponse;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
type DataSyncServiceStreamingDataCaptureUpload = {
|
|
26
|
+
readonly methodName: string;
|
|
27
|
+
readonly service: typeof DataSyncService;
|
|
28
|
+
readonly requestStream: true;
|
|
29
|
+
readonly responseStream: false;
|
|
30
|
+
readonly requestType: typeof app_datasync_v1_data_sync_pb.StreamingDataCaptureUploadRequest;
|
|
31
|
+
readonly responseType: typeof app_datasync_v1_data_sync_pb.StreamingDataCaptureUploadResponse;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export class DataSyncService {
|
|
35
|
+
static readonly serviceName: string;
|
|
36
|
+
static readonly DataCaptureUpload: DataSyncServiceDataCaptureUpload;
|
|
37
|
+
static readonly FileUpload: DataSyncServiceFileUpload;
|
|
38
|
+
static readonly StreamingDataCaptureUpload: DataSyncServiceStreamingDataCaptureUpload;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
42
|
+
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
43
|
+
|
|
44
|
+
interface UnaryResponse {
|
|
45
|
+
cancel(): void;
|
|
46
|
+
}
|
|
47
|
+
interface ResponseStream<T> {
|
|
48
|
+
cancel(): void;
|
|
49
|
+
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
50
|
+
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
51
|
+
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
52
|
+
}
|
|
53
|
+
interface RequestStream<T> {
|
|
54
|
+
write(message: T): RequestStream<T>;
|
|
55
|
+
end(): void;
|
|
56
|
+
cancel(): void;
|
|
57
|
+
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
58
|
+
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
59
|
+
}
|
|
60
|
+
interface BidirectionalStream<ReqT, ResT> {
|
|
61
|
+
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
62
|
+
end(): void;
|
|
63
|
+
cancel(): void;
|
|
64
|
+
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
65
|
+
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
66
|
+
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export class DataSyncServiceClient {
|
|
70
|
+
readonly serviceHost: string;
|
|
71
|
+
|
|
72
|
+
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
73
|
+
dataCaptureUpload(
|
|
74
|
+
requestMessage: app_datasync_v1_data_sync_pb.DataCaptureUploadRequest,
|
|
75
|
+
metadata: grpc.Metadata,
|
|
76
|
+
callback: (error: ServiceError|null, responseMessage: app_datasync_v1_data_sync_pb.DataCaptureUploadResponse|null) => void
|
|
77
|
+
): UnaryResponse;
|
|
78
|
+
dataCaptureUpload(
|
|
79
|
+
requestMessage: app_datasync_v1_data_sync_pb.DataCaptureUploadRequest,
|
|
80
|
+
callback: (error: ServiceError|null, responseMessage: app_datasync_v1_data_sync_pb.DataCaptureUploadResponse|null) => void
|
|
81
|
+
): UnaryResponse;
|
|
82
|
+
fileUpload(metadata?: grpc.Metadata): RequestStream<app_datasync_v1_data_sync_pb.FileUploadRequest>;
|
|
83
|
+
streamingDataCaptureUpload(metadata?: grpc.Metadata): RequestStream<app_datasync_v1_data_sync_pb.StreamingDataCaptureUploadRequest>;
|
|
84
|
+
}
|
|
85
|
+
|