@viamrobotics/sdk 0.22.0-b.0 → 0.23.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.
@@ -116,6 +116,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
116
116
  disconnect(): Promise<void>;
117
117
  isConnected(): boolean;
118
118
  connect({ authEntity, creds, priority, dialTimeout, }?: ConnectOptions): Promise<void>;
119
+ getSessions(): Promise<proto.Session.AsObject[]>;
119
120
  getOperations(): Promise<proto.Operation[]>;
120
121
  cancelOperation(id: string): Promise<void>;
121
122
  blockForOperation(id: string): Promise<void>;
@@ -7,6 +7,13 @@ export type RobotStatusStream = ResponseStream<proto.Status[]>;
7
7
  export type CloudMetadata = proto.GetCloudMetadataResponse.AsObject;
8
8
  type Callback = (args: unknown) => void;
9
9
  export interface Robot {
10
+ /**
11
+ * Get the list of sessions currently connected to the robot.
12
+ *
13
+ * @group Sessions
14
+ * @alpha
15
+ */
16
+ getSessions(): Promise<proto.Session.AsObject[]>;
10
17
  /**
11
18
  * Get the list of operations currently running on the robot.
12
19
  *
@@ -27,7 +27,11 @@ export declare class VisionClient implements Vision {
27
27
  objectPointCloudsSupported: boolean;
28
28
  }>;
29
29
  captureAllFromCamera(cameraName: string, { returnImage, returnClassifications, returnDetections, returnObjectPointClouds, }: CaptureAllOptions, extra?: {}): Promise<{
30
- image: import("../../gen/component/camera/v1/camera_pb").Image.AsObject | undefined;
30
+ image: {
31
+ format: 0 | 2 | 1 | 3 | 4;
32
+ sourceName: string;
33
+ image: Uint8Array;
34
+ } | undefined;
31
35
  classifications: pb.Classification.AsObject[];
32
36
  detections: pb.Detection.AsObject[];
33
37
  objectPointClouds: commonPB.PointCloudObject.AsObject[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/sdk",
3
- "version": "0.22.0-b.0",
3
+ "version": "0.23.0",
4
4
  "description": "",
5
5
  "main": "./dist/main.umd.js",
6
6
  "module": "./dist/main.es.js",