@viamrobotics/sdk 0.38.1 → 0.39.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/api-version.d.ts +1 -1
- package/dist/app/app-client.d.ts +9 -1
- package/dist/app/billing-client.d.ts +54 -0
- package/dist/app/data-client.d.ts +10 -10
- package/dist/app/ml-training-client.d.ts +94 -0
- package/dist/components/camera/camera.d.ts +51 -2
- package/dist/components/movement-sensor/movement-sensor.d.ts +114 -10
- package/dist/components/power-sensor/power-sensor.d.ts +54 -4
- package/dist/components/sensor/sensor.d.ts +12 -1
- package/dist/gen/app/data/v1/data_pb.d.ts +8 -0
- package/dist/main.es.js +3960 -3722
- package/dist/main.umd.js +7 -7
- package/dist/services/data-manager/client.d.ts +32 -0
- package/dist/types.d.ts +9 -0
- package/package.json +1 -1
|
@@ -9,6 +9,38 @@ export declare class DataManagerClient implements DataManager {
|
|
|
9
9
|
private readonly options;
|
|
10
10
|
callOptions: CallOptions;
|
|
11
11
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
12
|
+
/**
|
|
13
|
+
* Sync data stored on the machine to the cloud.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* const dataManager = new VIAM.DataManagerClient(
|
|
19
|
+
* machine,
|
|
20
|
+
* 'my_data_manager'
|
|
21
|
+
* );
|
|
22
|
+
* await dataManager.sync();
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @param extra - Extra arguments to pass to the sync request.
|
|
26
|
+
* @param callOptions - Call options for the sync request.
|
|
27
|
+
*/
|
|
12
28
|
sync(extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Do a command on the data manager.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
*
|
|
34
|
+
* ```ts
|
|
35
|
+
* const dataManager = new VIAM.DataManagerClient(
|
|
36
|
+
* machine,
|
|
37
|
+
* 'my_data_manager'
|
|
38
|
+
* );
|
|
39
|
+
* await dataManager.doCommand(new Struct({ cmd: 'test', data1: 500 }));
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @param command - The command to do.
|
|
43
|
+
* @param callOptions - Call options for the command.
|
|
44
|
+
*/
|
|
13
45
|
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
14
46
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -10,6 +10,15 @@ export interface Resource {
|
|
|
10
10
|
/**
|
|
11
11
|
* Send/Receive arbitrary commands to the resource.
|
|
12
12
|
*
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* const result = await resource.doCommand({
|
|
17
|
+
* name: 'myCommand',
|
|
18
|
+
* args: { key: 'value' },
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
13
22
|
* @param command - The command to execute.
|
|
14
23
|
*/
|
|
15
24
|
doCommand(command: Struct): Promise<JsonValue>;
|