@viamrobotics/sdk 0.15.0-rc.0 → 0.16.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/app-client.d.ts +583 -0
- package/dist/app/data-client.d.ts +292 -14
- package/dist/app/viam-client.d.ts +2 -0
- package/dist/events.d.ts +10 -2
- package/dist/gen/app/agent/v1/agent_pb.d.ts +0 -148
- package/dist/gen/app/agent/v1/agent_pb_service.d.ts +0 -48
- package/dist/gen/app/v1/billing_pb.d.ts +12 -0
- package/dist/gen/common/v1/common_pb.d.ts +0 -62
- package/dist/gen/component/board/v1/board_pb.d.ts +25 -39
- package/dist/gen/component/board/v1/board_pb_service.d.ts +0 -19
- package/dist/gen/service/shell/v1/shell_pb.d.ts +283 -0
- package/dist/gen/service/shell/v1/shell_pb_service.d.ts +22 -0
- package/dist/gen/service/vision/v1/vision_pb.d.ts +147 -0
- package/dist/gen/service/vision/v1/vision_pb_service.d.ts +38 -0
- package/dist/main.d.ts +12 -0
- package/dist/main.es.js +47906 -30182
- package/dist/main.umd.js +19 -19
- package/dist/robot/robot.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
import { type RpcOptions } from '@improbable-eng/grpc-web/dist/typings/client.d';
|
|
2
2
|
import * as googleStructPb from 'google-protobuf/google/protobuf/struct_pb';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import dataPb from '../gen/app/data/v1/data_pb';
|
|
4
|
+
import datasetPb from '../gen/app/dataset/v1/dataset_pb';
|
|
5
|
+
import dataSyncPb from '../gen/app/datasync/v1/data_sync_pb';
|
|
6
|
+
type ValueOf<T> = T[keyof T];
|
|
7
|
+
export declare const Order: dataPb.OrderMap;
|
|
8
|
+
export type Order = ValueOf<typeof dataPb.Order>;
|
|
9
|
+
export type BinaryID = dataPb.BinaryID.AsObject;
|
|
10
|
+
export type UploadMetadata = dataSyncPb.UploadMetadata.AsObject;
|
|
11
|
+
export type FilterOptions = Partial<dataPb.Filter.AsObject> & {
|
|
6
12
|
endTime?: Date;
|
|
7
13
|
startTime?: Date;
|
|
8
14
|
tags?: string[];
|
|
9
15
|
};
|
|
10
16
|
interface TabularData {
|
|
11
17
|
data?: Record<string, googleStructPb.JavaScriptValue>;
|
|
12
|
-
metadata?:
|
|
18
|
+
metadata?: dataPb.CaptureMetadata.AsObject;
|
|
13
19
|
timeRequested?: Date;
|
|
14
20
|
timeReceived?: Date;
|
|
15
21
|
}
|
|
22
|
+
type Dataset = Partial<datasetPb.Dataset.AsObject> & {
|
|
23
|
+
created?: Date;
|
|
24
|
+
};
|
|
16
25
|
export declare class DataClient {
|
|
17
|
-
private
|
|
26
|
+
private dataService;
|
|
27
|
+
private datasetService;
|
|
28
|
+
private dataSyncService;
|
|
18
29
|
constructor(serviceHost: string, grpcOptions: RpcOptions);
|
|
19
30
|
/**
|
|
20
31
|
* Obtain unified tabular data and metadata, queried with SQL.
|
|
@@ -37,16 +48,283 @@ export declare class DataClient {
|
|
|
37
48
|
[key: string]: googleStructPb.JavaScriptValue;
|
|
38
49
|
}[]>;
|
|
39
50
|
/**
|
|
40
|
-
* Filter and
|
|
41
|
-
* the metadata index of the data is out of the bounds of the returned
|
|
42
|
-
* metadata list.
|
|
51
|
+
* Filter and get a page of tabular data. The returned metadata might be empty
|
|
52
|
+
* if the metadata index of the data is out of the bounds of the returned
|
|
53
|
+
* metadata list. The data will be paginated into pages of `limit` items, and
|
|
54
|
+
* the pagination ID will be included in the returned tuple.
|
|
55
|
+
*
|
|
56
|
+
* @param filter Optional `pb.Filter` specifying tabular data to retrieve. No
|
|
57
|
+
* `filter` implies all tabular data.
|
|
58
|
+
* @param limit The maximum number of entries to include in a page. Defaults
|
|
59
|
+
* to 50 if unspecfied
|
|
60
|
+
* @param sortOrder The desired sort order of the data
|
|
61
|
+
* @param last Optional string indicating the ID of the last-returned data. If
|
|
62
|
+
* provided, the server will return the next data entries after the `last`
|
|
63
|
+
* ID.
|
|
64
|
+
* @param countOnly Whether to return only the total count of entries
|
|
65
|
+
* @param includeInternalData Whether to retun internal data. Internal data is
|
|
66
|
+
* used for Viam-specific data ingestion, like cloud SLAM. Defaults to
|
|
67
|
+
* `false`.
|
|
68
|
+
* @returns An array of data objects, the count (number of entries), and the
|
|
69
|
+
* last-returned page ID.
|
|
70
|
+
*/
|
|
71
|
+
tabularDataByFilter(filter?: dataPb.Filter, limit?: number, sortOrder?: Order, last?: string, countOnly?: boolean, includeInternalData?: boolean): Promise<{
|
|
72
|
+
data: TabularData[];
|
|
73
|
+
count: number;
|
|
74
|
+
last: string;
|
|
75
|
+
}>;
|
|
76
|
+
/**
|
|
77
|
+
* Filter and get a page of binary data. The returned metadata might be empty
|
|
78
|
+
* if the metadata index of the data is out of the bounds of the returned
|
|
79
|
+
* metadata list. The data will be paginated into pages of `limit` items, and
|
|
80
|
+
* the pagination ID will be included in the returned tuple.
|
|
81
|
+
*
|
|
82
|
+
* @param filter Optional `pb.Filter` specifying binary data to retrieve. No
|
|
83
|
+
* `filter` implies all binary data.
|
|
84
|
+
* @param limit The maximum number of entries to include in a page. Defaults
|
|
85
|
+
* to 50 if unspecfied
|
|
86
|
+
* @param sortOrder The desired sort order of the data
|
|
87
|
+
* @param last Optional string indicating the ID of the last-returned data. If
|
|
88
|
+
* provided, the server will return the next data entries after the `last`
|
|
89
|
+
* ID.
|
|
90
|
+
* @param includeBinary Whether to include binary file data with each
|
|
91
|
+
* retrieved file
|
|
92
|
+
* @param countOnly Whether to return only the total count of entries
|
|
93
|
+
* @param includeInternalData Whether to retun internal data. Internal data is
|
|
94
|
+
* used for Viam-specific data ingestion, like cloud SLAM. Defaults to
|
|
95
|
+
* `false`.
|
|
96
|
+
* @returns An array of data objects, the count (number of entries), and the
|
|
97
|
+
* last-returned page ID.
|
|
98
|
+
*/
|
|
99
|
+
binaryDataByFilter(filter?: dataPb.Filter, limit?: number, sortOrder?: Order, last?: string, includeBinary?: boolean, countOnly?: boolean, includeInternalData?: boolean): Promise<{
|
|
100
|
+
data: dataPb.BinaryData.AsObject[];
|
|
101
|
+
count: number;
|
|
102
|
+
last: string;
|
|
103
|
+
}>;
|
|
104
|
+
/**
|
|
105
|
+
* Get binary data using the BinaryID.
|
|
106
|
+
*
|
|
107
|
+
* @param ids The IDs of the requested binary data
|
|
108
|
+
* @returns An array of data objects
|
|
109
|
+
*/
|
|
110
|
+
binaryDataByIds(ids: BinaryID[]): Promise<dataPb.BinaryData.AsObject[]>;
|
|
111
|
+
/**
|
|
112
|
+
* Delete tabular data older than a specified number of days.
|
|
113
|
+
*
|
|
114
|
+
* @param orgId The ID of organization to delete data from
|
|
115
|
+
* @param deleteOlderThanDays Delete data that was captured more than this
|
|
116
|
+
* many days ago. For example if `deleteOlderThanDays` is 10, this deletes
|
|
117
|
+
* any data that was captured more than 10 days ago. If it is 0, all
|
|
118
|
+
* existing data is deleted.
|
|
119
|
+
* @returns The number of items deleted
|
|
120
|
+
*/
|
|
121
|
+
deleteTabularData(orgId: string, deleteOlderThanDays: number): Promise<number>;
|
|
122
|
+
/**
|
|
123
|
+
* Filter and delete binary data.
|
|
124
|
+
*
|
|
125
|
+
* @param filter Optional `pb.Filter` specifying binary data to delete. No
|
|
126
|
+
* `filter` implies all binary data.
|
|
127
|
+
* @param includeInternalData Whether or not to delete internal data. Default
|
|
128
|
+
* is true
|
|
129
|
+
* @returns The number of items deleted
|
|
130
|
+
*/
|
|
131
|
+
deleteBinaryDataByFilter(filter?: dataPb.Filter, includeInternalData?: boolean): Promise<number>;
|
|
132
|
+
/**
|
|
133
|
+
* Delete binary data, specified by ID.
|
|
134
|
+
*
|
|
135
|
+
* @param ids The IDs of the data to be deleted. Must be non-empty.
|
|
136
|
+
* @returns The number of items deleted
|
|
137
|
+
*/
|
|
138
|
+
deleteBinaryDataByIds(ids: BinaryID[]): Promise<number>;
|
|
139
|
+
/**
|
|
140
|
+
* Add tags to binary data, specified by ID.
|
|
141
|
+
*
|
|
142
|
+
* @param tags The list of tags to add to specified binary data. Must be
|
|
143
|
+
* non-empty.
|
|
144
|
+
* @param ids The IDs of the data to be tagged. Must be non-empty.
|
|
145
|
+
*/
|
|
146
|
+
addTagsToBinaryDataByIds(tags: string[], ids: BinaryID[]): Promise<void>;
|
|
147
|
+
/**
|
|
148
|
+
* Add tags to binary data, specified by filter.
|
|
149
|
+
*
|
|
150
|
+
* @param tags The tags to add to the data
|
|
151
|
+
* @param filter Optional `pb.Filter` specifying binary data to add tags to.
|
|
152
|
+
* No `filter` implies all binary data.
|
|
153
|
+
*/
|
|
154
|
+
addTagsToBinaryDataByFilter(tags: string[], filter?: dataPb.Filter): Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* Remove tags from binary data, specified by ID.
|
|
157
|
+
*
|
|
158
|
+
* @param tags List of tags to remove from specified binary data. Must be
|
|
159
|
+
* non-empty.
|
|
160
|
+
* @param ids The IDs of the data to be edited. Must be non-empty.
|
|
161
|
+
* @returns The number of items deleted
|
|
162
|
+
*/
|
|
163
|
+
removeTagsFromBinaryDataByIds(tags: string[], ids: BinaryID[]): Promise<number>;
|
|
164
|
+
/**
|
|
165
|
+
* Remove tags from binary data, specified by filter.
|
|
166
|
+
*
|
|
167
|
+
* @param tags List of tags to remove from specified binary data. Must be
|
|
168
|
+
* non-empty.
|
|
169
|
+
* @param filter Optional `pb.Filter` specifying binary data to add tags to.
|
|
170
|
+
* No `filter` implies all binary data.
|
|
171
|
+
* @returns The number of items deleted
|
|
172
|
+
*/
|
|
173
|
+
removeTagsFromBinaryDataByFilter(tags: string[], filter?: dataPb.Filter): Promise<number>;
|
|
174
|
+
/**
|
|
175
|
+
* Get a list of tags using a filter.
|
|
176
|
+
*
|
|
177
|
+
* @param filter Optional `pb.Filter` specifying what data to get tags from.
|
|
178
|
+
* No `filter` implies all data.
|
|
179
|
+
* @returns The list of tags
|
|
180
|
+
*/
|
|
181
|
+
tagsByFilter(filter?: dataPb.Filter): Promise<string[]>;
|
|
182
|
+
/**
|
|
183
|
+
* Add bounding box to an image.
|
|
184
|
+
*
|
|
185
|
+
* @param binaryId The ID of the image to add the bounding box to
|
|
186
|
+
* @param label A label for the bounding box
|
|
187
|
+
* @param xMinNormalized The min X value of the bounding box normalized from 0
|
|
188
|
+
* to 1
|
|
189
|
+
* @param yMinNormalized The min Y value of the bounding box normalized from 0
|
|
190
|
+
* to 1
|
|
191
|
+
* @param xMaxNormalized The max X value of the bounding box normalized from 0
|
|
192
|
+
* to 1
|
|
193
|
+
* @param yMaxNormalized The max Y value of the bounding box normalized from 0
|
|
194
|
+
* to 1
|
|
195
|
+
* @returns The bounding box ID
|
|
196
|
+
*/
|
|
197
|
+
addBoundingBoxToImageById(id: BinaryID, label: string, xMinNormalized: number, yMinNormalized: number, xMaxNormalized: number, yMaxNormalized: number): Promise<string>;
|
|
198
|
+
/**
|
|
199
|
+
* Remove a bounding box from an image.
|
|
200
|
+
*
|
|
201
|
+
* @param binId The ID of the image to remove the bounding box from
|
|
202
|
+
* @param bboxId The ID of the bounding box to remove
|
|
203
|
+
*/
|
|
204
|
+
removeBoundingBoxFromImageById(binId: BinaryID, bboxId: string): Promise<void>;
|
|
205
|
+
/**
|
|
206
|
+
* Get a list of bounding box labels using a Filter.
|
|
207
|
+
*
|
|
208
|
+
* @param filter Optional `pb.Filter` specifying what data to get tags from.
|
|
209
|
+
* No `filter` implies all labels.
|
|
210
|
+
* @returns The list of bounding box labels
|
|
211
|
+
*/
|
|
212
|
+
boundingBoxLabelsByFilter(filter?: dataPb.Filter): Promise<string[]>;
|
|
213
|
+
/**
|
|
214
|
+
* Configure a database user for the Viam organization's MongoDB Atlas Data
|
|
215
|
+
* Federation instance. It can also be used to reset the password of the
|
|
216
|
+
* existing database user.
|
|
217
|
+
*
|
|
218
|
+
* @param orgId The ID of the organization
|
|
219
|
+
* @param password The password of the user
|
|
220
|
+
*/
|
|
221
|
+
configureDatabaseUser(orgId: string, password: string): Promise<void>;
|
|
222
|
+
/**
|
|
223
|
+
* Get a connection to access a MongoDB Atlas Data federation instance.
|
|
224
|
+
*
|
|
225
|
+
* @param orId Organization to retrieve connection for
|
|
226
|
+
* @returns Hostname of the federated database
|
|
227
|
+
*/
|
|
228
|
+
getDatabaseConnection(orgId: string): Promise<string>;
|
|
229
|
+
/**
|
|
230
|
+
* Add BinaryData to the provided dataset.
|
|
231
|
+
*
|
|
232
|
+
* @param ids The IDs of binary data to add to dataset
|
|
233
|
+
* @param datasetId The ID of the dataset to be added to
|
|
234
|
+
*/
|
|
235
|
+
addBinaryDataToDatasetByIds(ids: BinaryID[], datasetId: string): Promise<void>;
|
|
236
|
+
/**
|
|
237
|
+
* Remove BinaryData from the provided dataset.
|
|
238
|
+
*
|
|
239
|
+
* @param ids The IDs of the binary data to remove from dataset
|
|
240
|
+
* @param datasetId The ID of the dataset to be removed from
|
|
241
|
+
*/
|
|
242
|
+
removeBinaryDataFromDatasetByIds(ids: BinaryID[], datasetId: string): Promise<void>;
|
|
243
|
+
/**
|
|
244
|
+
* Create a new dataset.
|
|
245
|
+
*
|
|
246
|
+
* @param name The name of the new dataset
|
|
247
|
+
* @param orgId The ID of the organization the dataset is being created in
|
|
248
|
+
* @returns The ID of the dataset
|
|
249
|
+
*/
|
|
250
|
+
createDataset(name: string, orgId: string): Promise<string>;
|
|
251
|
+
/**
|
|
252
|
+
* Delete a dataset.
|
|
253
|
+
*
|
|
254
|
+
* @param id The ID of the dataset.
|
|
255
|
+
*/
|
|
256
|
+
deleteDataset(id: string): Promise<void>;
|
|
257
|
+
/**
|
|
258
|
+
* Rename a dataset.
|
|
259
|
+
*
|
|
260
|
+
* @param id The ID of the dataset
|
|
261
|
+
* @param name The new name of the dataset
|
|
262
|
+
*/
|
|
263
|
+
renameDataset(id: string, name: string): Promise<void>;
|
|
264
|
+
/**
|
|
265
|
+
* List all of the datasets for an organization.
|
|
266
|
+
*
|
|
267
|
+
* @param orgId The ID of the organization
|
|
268
|
+
* @returns The list of datasets in the organization
|
|
269
|
+
*/
|
|
270
|
+
listDatasetsByOrganizationID(orgId: string): Promise<Dataset[]>;
|
|
271
|
+
/**
|
|
272
|
+
* List all of the datasets specified by the given dataset IDs.
|
|
273
|
+
*
|
|
274
|
+
* @param ids The list of IDs of the datasets
|
|
275
|
+
* @returns The list of datasets
|
|
276
|
+
*/
|
|
277
|
+
listDatasetsByIds(ids: string[]): Promise<Dataset[]>;
|
|
278
|
+
/**
|
|
279
|
+
* Uploads the content and metadata for tabular data.
|
|
280
|
+
*
|
|
281
|
+
* Upload tabular data collected on a robot through a specific component
|
|
282
|
+
* (e.g., a motor) along with the relevant metadata to app.viam.com. Tabular
|
|
283
|
+
* data can be found under the "Sensors" subtab of the Data tab on
|
|
284
|
+
* app.viam.com.
|
|
285
|
+
*
|
|
286
|
+
* @param tabularData The list of data to be uploaded, represented tabularly
|
|
287
|
+
* as an array.
|
|
288
|
+
* @param partId The part ID of the component used to capture the data
|
|
289
|
+
* @param componentType The type of the component used to capture the data
|
|
290
|
+
* (e.g., "movementSensor")
|
|
291
|
+
* @param componentName The name of the component used to capture the data
|
|
292
|
+
* @param methodName The name of the method used to capture the data.
|
|
293
|
+
* @param tags The list of tags to allow for tag-based filtering when
|
|
294
|
+
* retrieving data
|
|
295
|
+
* @param dataRequestTimes Array of Date tuples, each containing two `Date`
|
|
296
|
+
* objects denoting the times this data was requested[0] by the robot and
|
|
297
|
+
* received[1] from the appropriate sensor. Passing a list of tabular data
|
|
298
|
+
* and Timestamps with length n > 1 will result in n datapoints being
|
|
299
|
+
* uploaded, all tied to the same metadata.
|
|
300
|
+
* @returns The file ID of the uploaded data
|
|
301
|
+
*/
|
|
302
|
+
tabularDataCaptureUpload(tabularData: Record<string, googleStructPb.JavaScriptValue>[], partId: string, componentType: string, componentName: string, methodName: string, tags?: string[], dataRequestTimes?: [Date, Date][]): Promise<string>;
|
|
303
|
+
/**
|
|
304
|
+
* Uploads the content and metadata for binary data.
|
|
305
|
+
*
|
|
306
|
+
* Upload binary data collected on a robot through a specific component (e.g.,
|
|
307
|
+
* a motor) along with the relevant metadata to app.viam.com. binary data can
|
|
308
|
+
* be found under the "Sensors" subtab of the Data tab on app.viam.com.
|
|
43
309
|
*
|
|
44
|
-
* @param
|
|
45
|
-
*
|
|
310
|
+
* @param binaryData The data to be uploaded, represented in bytes
|
|
311
|
+
* @param partId The part ID of the component used to capture the data
|
|
312
|
+
* @param componentType The type of the component used to capture the data
|
|
313
|
+
* (e.g., "movementSensor")
|
|
314
|
+
* @param componentName The name of the component used to capture the data
|
|
315
|
+
* @param methodName The name of the method used to capture the data.
|
|
316
|
+
* @param fileExtension The file extension of binary data including the
|
|
317
|
+
* period, e.g. .jpg, .png, .pcd. The backend will route the binary to its
|
|
318
|
+
* corresponding mime type based on this extension. Files with a .jpeg,
|
|
319
|
+
* .jpg, or .png extension will be saved to the images tab.
|
|
320
|
+
* @param tags The list of tags to allow for tag-based filtering when
|
|
321
|
+
* retrieving data
|
|
322
|
+
* @param dataRequestTimes Tuple containing `Date` objects denoting the times
|
|
323
|
+
* this data was requested[0] by the robot and received[1] from the
|
|
324
|
+
* appropriate sensor.
|
|
325
|
+
* @returns The file ID of the uploaded data
|
|
46
326
|
*/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
binaryDataByIds(ids: BinaryID[]): Promise<pb.BinaryData.AsObject[]>;
|
|
50
|
-
createFilter(options: FilterOptions): pb.Filter;
|
|
327
|
+
binaryDataCaptureUpload(binaryData: Uint8Array, partId: string, componentType: string, componentName: string, methodName: string, fileExtension: string, tags?: string[], dataRequestTimes?: [Date, Date]): Promise<string>;
|
|
328
|
+
createFilter(options: FilterOptions): dataPb.Filter;
|
|
51
329
|
}
|
|
52
330
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { grpc } from '@improbable-eng/grpc-web';
|
|
2
2
|
import { type Credential, type AccessToken } from './viam-transport';
|
|
3
3
|
import { DataClient } from './data-client';
|
|
4
|
+
import { AppClient } from './app-client';
|
|
4
5
|
import { BillingClient } from './billing-client';
|
|
5
6
|
import { MlTrainingClient } from './ml-training-client';
|
|
6
7
|
import { ProvisioningClient } from './provisioning-client';
|
|
@@ -15,6 +16,7 @@ export declare class ViamClient {
|
|
|
15
16
|
private transportFactory;
|
|
16
17
|
private serviceHost;
|
|
17
18
|
dataClient: DataClient | undefined;
|
|
19
|
+
appClient: AppClient | undefined;
|
|
18
20
|
mlTrainingClient: MlTrainingClient | undefined;
|
|
19
21
|
provisioningClient: ProvisioningClient | undefined;
|
|
20
22
|
billingClient: BillingClient | undefined;
|
package/dist/events.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
type Callback = (args: unknown) => void;
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* MachineConnectionEvent events are emitted by a Client's EventDispatcher when
|
|
4
|
+
* connection events occur.
|
|
5
|
+
*
|
|
6
|
+
* TODO: Emit 'connecting' and 'connected' events
|
|
7
|
+
*/
|
|
8
|
+
export declare enum MachineConnectionEvent {
|
|
9
|
+
RECONNECTED = "reconnected",
|
|
10
|
+
DISCONNECTED = "disconnected"
|
|
11
|
+
}
|
|
4
12
|
export declare class EventDispatcher {
|
|
5
13
|
listeners: Partial<Record<string, Set<Callback>>>;
|
|
6
14
|
on(type: string, listener: Callback): void;
|
|
@@ -4,154 +4,6 @@
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
5
|
import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb";
|
|
6
6
|
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
|
|
7
|
-
import * as tagger_v1_tagger_pb from "../../../tagger/v1/tagger_pb";
|
|
8
|
-
|
|
9
|
-
export class GetAgentConfigRequest extends jspb.Message {
|
|
10
|
-
getId(): string;
|
|
11
|
-
setId(value: string): void;
|
|
12
|
-
|
|
13
|
-
serializeBinary(): Uint8Array;
|
|
14
|
-
toObject(includeInstance?: boolean): GetAgentConfigRequest.AsObject;
|
|
15
|
-
static toObject(includeInstance: boolean, msg: GetAgentConfigRequest): GetAgentConfigRequest.AsObject;
|
|
16
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
17
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
18
|
-
static serializeBinaryToWriter(message: GetAgentConfigRequest, writer: jspb.BinaryWriter): void;
|
|
19
|
-
static deserializeBinary(bytes: Uint8Array): GetAgentConfigRequest;
|
|
20
|
-
static deserializeBinaryFromReader(message: GetAgentConfigRequest, reader: jspb.BinaryReader): GetAgentConfigRequest;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export namespace GetAgentConfigRequest {
|
|
24
|
-
export type AsObject = {
|
|
25
|
-
id: string,
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export class GetAgentConfigResponse extends jspb.Message {
|
|
30
|
-
hasAgentConfig(): boolean;
|
|
31
|
-
clearAgentConfig(): void;
|
|
32
|
-
getAgentConfig(): AppAgentConfig | undefined;
|
|
33
|
-
setAgentConfig(value?: AppAgentConfig): void;
|
|
34
|
-
|
|
35
|
-
serializeBinary(): Uint8Array;
|
|
36
|
-
toObject(includeInstance?: boolean): GetAgentConfigResponse.AsObject;
|
|
37
|
-
static toObject(includeInstance: boolean, msg: GetAgentConfigResponse): GetAgentConfigResponse.AsObject;
|
|
38
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
39
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
40
|
-
static serializeBinaryToWriter(message: GetAgentConfigResponse, writer: jspb.BinaryWriter): void;
|
|
41
|
-
static deserializeBinary(bytes: Uint8Array): GetAgentConfigResponse;
|
|
42
|
-
static deserializeBinaryFromReader(message: GetAgentConfigResponse, reader: jspb.BinaryReader): GetAgentConfigResponse;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export namespace GetAgentConfigResponse {
|
|
46
|
-
export type AsObject = {
|
|
47
|
-
agentConfig?: AppAgentConfig.AsObject,
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export class UpdateAgentConfigRequest extends jspb.Message {
|
|
52
|
-
getId(): string;
|
|
53
|
-
setId(value: string): void;
|
|
54
|
-
|
|
55
|
-
hasAgentConfig(): boolean;
|
|
56
|
-
clearAgentConfig(): void;
|
|
57
|
-
getAgentConfig(): AppAgentConfig | undefined;
|
|
58
|
-
setAgentConfig(value?: AppAgentConfig): void;
|
|
59
|
-
|
|
60
|
-
serializeBinary(): Uint8Array;
|
|
61
|
-
toObject(includeInstance?: boolean): UpdateAgentConfigRequest.AsObject;
|
|
62
|
-
static toObject(includeInstance: boolean, msg: UpdateAgentConfigRequest): UpdateAgentConfigRequest.AsObject;
|
|
63
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
64
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
65
|
-
static serializeBinaryToWriter(message: UpdateAgentConfigRequest, writer: jspb.BinaryWriter): void;
|
|
66
|
-
static deserializeBinary(bytes: Uint8Array): UpdateAgentConfigRequest;
|
|
67
|
-
static deserializeBinaryFromReader(message: UpdateAgentConfigRequest, reader: jspb.BinaryReader): UpdateAgentConfigRequest;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export namespace UpdateAgentConfigRequest {
|
|
71
|
-
export type AsObject = {
|
|
72
|
-
id: string,
|
|
73
|
-
agentConfig?: AppAgentConfig.AsObject,
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export class UpdateAgentConfigResponse extends jspb.Message {
|
|
78
|
-
hasAgentConfig(): boolean;
|
|
79
|
-
clearAgentConfig(): void;
|
|
80
|
-
getAgentConfig(): AppAgentConfig | undefined;
|
|
81
|
-
setAgentConfig(value?: AppAgentConfig): void;
|
|
82
|
-
|
|
83
|
-
serializeBinary(): Uint8Array;
|
|
84
|
-
toObject(includeInstance?: boolean): UpdateAgentConfigResponse.AsObject;
|
|
85
|
-
static toObject(includeInstance: boolean, msg: UpdateAgentConfigResponse): UpdateAgentConfigResponse.AsObject;
|
|
86
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
87
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
88
|
-
static serializeBinaryToWriter(message: UpdateAgentConfigResponse, writer: jspb.BinaryWriter): void;
|
|
89
|
-
static deserializeBinary(bytes: Uint8Array): UpdateAgentConfigResponse;
|
|
90
|
-
static deserializeBinaryFromReader(message: UpdateAgentConfigResponse, reader: jspb.BinaryReader): UpdateAgentConfigResponse;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export namespace UpdateAgentConfigResponse {
|
|
94
|
-
export type AsObject = {
|
|
95
|
-
agentConfig?: AppAgentConfig.AsObject,
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export class AppAgentConfig extends jspb.Message {
|
|
100
|
-
getSubsystemConfigsMap(): jspb.Map<string, AppSubsystemConfig>;
|
|
101
|
-
clearSubsystemConfigsMap(): void;
|
|
102
|
-
serializeBinary(): Uint8Array;
|
|
103
|
-
toObject(includeInstance?: boolean): AppAgentConfig.AsObject;
|
|
104
|
-
static toObject(includeInstance: boolean, msg: AppAgentConfig): AppAgentConfig.AsObject;
|
|
105
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
106
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
107
|
-
static serializeBinaryToWriter(message: AppAgentConfig, writer: jspb.BinaryWriter): void;
|
|
108
|
-
static deserializeBinary(bytes: Uint8Array): AppAgentConfig;
|
|
109
|
-
static deserializeBinaryFromReader(message: AppAgentConfig, reader: jspb.BinaryReader): AppAgentConfig;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export namespace AppAgentConfig {
|
|
113
|
-
export type AsObject = {
|
|
114
|
-
subsystemConfigsMap: Array<[string, AppSubsystemConfig.AsObject]>,
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export class AppSubsystemConfig extends jspb.Message {
|
|
119
|
-
getReleaseChannel(): string;
|
|
120
|
-
setReleaseChannel(value: string): void;
|
|
121
|
-
|
|
122
|
-
getPinVersion(): string;
|
|
123
|
-
setPinVersion(value: string): void;
|
|
124
|
-
|
|
125
|
-
getPinUrl(): string;
|
|
126
|
-
setPinUrl(value: string): void;
|
|
127
|
-
|
|
128
|
-
getDisableSubsystem(): boolean;
|
|
129
|
-
setDisableSubsystem(value: boolean): void;
|
|
130
|
-
|
|
131
|
-
hasAttributes(): boolean;
|
|
132
|
-
clearAttributes(): void;
|
|
133
|
-
getAttributes(): google_protobuf_struct_pb.Struct | undefined;
|
|
134
|
-
setAttributes(value?: google_protobuf_struct_pb.Struct): void;
|
|
135
|
-
|
|
136
|
-
serializeBinary(): Uint8Array;
|
|
137
|
-
toObject(includeInstance?: boolean): AppSubsystemConfig.AsObject;
|
|
138
|
-
static toObject(includeInstance: boolean, msg: AppSubsystemConfig): AppSubsystemConfig.AsObject;
|
|
139
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
140
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
141
|
-
static serializeBinaryToWriter(message: AppSubsystemConfig, writer: jspb.BinaryWriter): void;
|
|
142
|
-
static deserializeBinary(bytes: Uint8Array): AppSubsystemConfig;
|
|
143
|
-
static deserializeBinaryFromReader(message: AppSubsystemConfig, reader: jspb.BinaryReader): AppSubsystemConfig;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export namespace AppSubsystemConfig {
|
|
147
|
-
export type AsObject = {
|
|
148
|
-
releaseChannel: string,
|
|
149
|
-
pinVersion: string,
|
|
150
|
-
pinUrl: string,
|
|
151
|
-
disableSubsystem: boolean,
|
|
152
|
-
attributes?: google_protobuf_struct_pb.Struct.AsObject,
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
7
|
|
|
156
8
|
export class DeviceAgentConfigRequest extends jspb.Message {
|
|
157
9
|
getId(): string;
|
|
@@ -4,30 +4,6 @@
|
|
|
4
4
|
import * as app_agent_v1_agent_pb from "../../../app/agent/v1/agent_pb";
|
|
5
5
|
import {grpc} from "@improbable-eng/grpc-web";
|
|
6
6
|
|
|
7
|
-
type AgentAppServiceGetAgentConfig = {
|
|
8
|
-
readonly methodName: string;
|
|
9
|
-
readonly service: typeof AgentAppService;
|
|
10
|
-
readonly requestStream: false;
|
|
11
|
-
readonly responseStream: false;
|
|
12
|
-
readonly requestType: typeof app_agent_v1_agent_pb.GetAgentConfigRequest;
|
|
13
|
-
readonly responseType: typeof app_agent_v1_agent_pb.GetAgentConfigResponse;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
type AgentAppServiceUpdateAgentConfig = {
|
|
17
|
-
readonly methodName: string;
|
|
18
|
-
readonly service: typeof AgentAppService;
|
|
19
|
-
readonly requestStream: false;
|
|
20
|
-
readonly responseStream: false;
|
|
21
|
-
readonly requestType: typeof app_agent_v1_agent_pb.UpdateAgentConfigRequest;
|
|
22
|
-
readonly responseType: typeof app_agent_v1_agent_pb.UpdateAgentConfigResponse;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export class AgentAppService {
|
|
26
|
-
static readonly serviceName: string;
|
|
27
|
-
static readonly GetAgentConfig: AgentAppServiceGetAgentConfig;
|
|
28
|
-
static readonly UpdateAgentConfig: AgentAppServiceUpdateAgentConfig;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
7
|
type AgentDeviceServiceDeviceAgentConfig = {
|
|
32
8
|
readonly methodName: string;
|
|
33
9
|
readonly service: typeof AgentDeviceService;
|
|
@@ -70,30 +46,6 @@ interface BidirectionalStream<ReqT, ResT> {
|
|
|
70
46
|
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
71
47
|
}
|
|
72
48
|
|
|
73
|
-
export class AgentAppServiceClient {
|
|
74
|
-
readonly serviceHost: string;
|
|
75
|
-
|
|
76
|
-
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
77
|
-
getAgentConfig(
|
|
78
|
-
requestMessage: app_agent_v1_agent_pb.GetAgentConfigRequest,
|
|
79
|
-
metadata: grpc.Metadata,
|
|
80
|
-
callback: (error: ServiceError|null, responseMessage: app_agent_v1_agent_pb.GetAgentConfigResponse|null) => void
|
|
81
|
-
): UnaryResponse;
|
|
82
|
-
getAgentConfig(
|
|
83
|
-
requestMessage: app_agent_v1_agent_pb.GetAgentConfigRequest,
|
|
84
|
-
callback: (error: ServiceError|null, responseMessage: app_agent_v1_agent_pb.GetAgentConfigResponse|null) => void
|
|
85
|
-
): UnaryResponse;
|
|
86
|
-
updateAgentConfig(
|
|
87
|
-
requestMessage: app_agent_v1_agent_pb.UpdateAgentConfigRequest,
|
|
88
|
-
metadata: grpc.Metadata,
|
|
89
|
-
callback: (error: ServiceError|null, responseMessage: app_agent_v1_agent_pb.UpdateAgentConfigResponse|null) => void
|
|
90
|
-
): UnaryResponse;
|
|
91
|
-
updateAgentConfig(
|
|
92
|
-
requestMessage: app_agent_v1_agent_pb.UpdateAgentConfigRequest,
|
|
93
|
-
callback: (error: ServiceError|null, responseMessage: app_agent_v1_agent_pb.UpdateAgentConfigResponse|null) => void
|
|
94
|
-
): UnaryResponse;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
49
|
export class AgentDeviceServiceClient {
|
|
98
50
|
readonly serviceHost: string;
|
|
99
51
|
|
|
@@ -225,6 +225,15 @@ export class GetCurrentMonthUsageResponse extends jspb.Message {
|
|
|
225
225
|
getTotalUsageWithoutDiscount(): number;
|
|
226
226
|
setTotalUsageWithoutDiscount(value: number): void;
|
|
227
227
|
|
|
228
|
+
getPerMachineUsageCost(): number;
|
|
229
|
+
setPerMachineUsageCost(value: number): void;
|
|
230
|
+
|
|
231
|
+
getBinaryDataCloudStorageUsageCost(): number;
|
|
232
|
+
setBinaryDataCloudStorageUsageCost(value: number): void;
|
|
233
|
+
|
|
234
|
+
getOtherCloudStorageUsageCost(): number;
|
|
235
|
+
setOtherCloudStorageUsageCost(value: number): void;
|
|
236
|
+
|
|
228
237
|
serializeBinary(): Uint8Array;
|
|
229
238
|
toObject(includeInstance?: boolean): GetCurrentMonthUsageResponse.AsObject;
|
|
230
239
|
static toObject(includeInstance: boolean, msg: GetCurrentMonthUsageResponse): GetCurrentMonthUsageResponse.AsObject;
|
|
@@ -247,6 +256,9 @@ export namespace GetCurrentMonthUsageResponse {
|
|
|
247
256
|
discountAmount: number,
|
|
248
257
|
totalUsageWithDiscount: number,
|
|
249
258
|
totalUsageWithoutDiscount: number,
|
|
259
|
+
perMachineUsageCost: number,
|
|
260
|
+
binaryDataCloudStorageUsageCost: number,
|
|
261
|
+
otherCloudStorageUsageCost: number,
|
|
250
262
|
}
|
|
251
263
|
}
|
|
252
264
|
|
|
@@ -38,68 +38,6 @@ export namespace ResourceName {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export class BoardStatus extends jspb.Message {
|
|
42
|
-
getAnalogsMap(): jspb.Map<string, AnalogStatus>;
|
|
43
|
-
clearAnalogsMap(): void;
|
|
44
|
-
getDigitalInterruptsMap(): jspb.Map<string, DigitalInterruptStatus>;
|
|
45
|
-
clearDigitalInterruptsMap(): void;
|
|
46
|
-
serializeBinary(): Uint8Array;
|
|
47
|
-
toObject(includeInstance?: boolean): BoardStatus.AsObject;
|
|
48
|
-
static toObject(includeInstance: boolean, msg: BoardStatus): BoardStatus.AsObject;
|
|
49
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
50
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
51
|
-
static serializeBinaryToWriter(message: BoardStatus, writer: jspb.BinaryWriter): void;
|
|
52
|
-
static deserializeBinary(bytes: Uint8Array): BoardStatus;
|
|
53
|
-
static deserializeBinaryFromReader(message: BoardStatus, reader: jspb.BinaryReader): BoardStatus;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export namespace BoardStatus {
|
|
57
|
-
export type AsObject = {
|
|
58
|
-
analogsMap: Array<[string, AnalogStatus.AsObject]>,
|
|
59
|
-
digitalInterruptsMap: Array<[string, DigitalInterruptStatus.AsObject]>,
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export class AnalogStatus extends jspb.Message {
|
|
64
|
-
getValue(): number;
|
|
65
|
-
setValue(value: number): void;
|
|
66
|
-
|
|
67
|
-
serializeBinary(): Uint8Array;
|
|
68
|
-
toObject(includeInstance?: boolean): AnalogStatus.AsObject;
|
|
69
|
-
static toObject(includeInstance: boolean, msg: AnalogStatus): AnalogStatus.AsObject;
|
|
70
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
71
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
72
|
-
static serializeBinaryToWriter(message: AnalogStatus, writer: jspb.BinaryWriter): void;
|
|
73
|
-
static deserializeBinary(bytes: Uint8Array): AnalogStatus;
|
|
74
|
-
static deserializeBinaryFromReader(message: AnalogStatus, reader: jspb.BinaryReader): AnalogStatus;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export namespace AnalogStatus {
|
|
78
|
-
export type AsObject = {
|
|
79
|
-
value: number,
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export class DigitalInterruptStatus extends jspb.Message {
|
|
84
|
-
getValue(): number;
|
|
85
|
-
setValue(value: number): void;
|
|
86
|
-
|
|
87
|
-
serializeBinary(): Uint8Array;
|
|
88
|
-
toObject(includeInstance?: boolean): DigitalInterruptStatus.AsObject;
|
|
89
|
-
static toObject(includeInstance: boolean, msg: DigitalInterruptStatus): DigitalInterruptStatus.AsObject;
|
|
90
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
91
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
92
|
-
static serializeBinaryToWriter(message: DigitalInterruptStatus, writer: jspb.BinaryWriter): void;
|
|
93
|
-
static deserializeBinary(bytes: Uint8Array): DigitalInterruptStatus;
|
|
94
|
-
static deserializeBinaryFromReader(message: DigitalInterruptStatus, reader: jspb.BinaryReader): DigitalInterruptStatus;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export namespace DigitalInterruptStatus {
|
|
98
|
-
export type AsObject = {
|
|
99
|
-
value: number,
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
41
|
export class Pose extends jspb.Message {
|
|
104
42
|
getX(): number;
|
|
105
43
|
setX(value: number): void;
|