@viamrobotics/sdk 0.5.0-rc.0 → 0.6.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.
@@ -38,6 +38,11 @@ interface DirectOptions {
38
38
  interface SessionOptions {
39
39
  disabled: boolean;
40
40
  }
41
+ export interface ConnectOptions {
42
+ authEntity?: string;
43
+ creds?: Credentials;
44
+ priority?: number;
45
+ }
41
46
  declare abstract class ServiceClient {
42
47
  serviceHost: string;
43
48
  options?: grpc.RpcOptions | undefined;
@@ -105,7 +110,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
105
110
  get peerConnection(): RTCPeerConnection | undefined;
106
111
  disconnect(): Promise<void>;
107
112
  isConnected(): boolean;
108
- connect(authEntity?: string | undefined, creds?: Credentials | undefined): Promise<void>;
113
+ connect({ authEntity, creds, priority, }?: ConnectOptions): Promise<void>;
109
114
  getOperations(): Promise<proto.Operation[]>;
110
115
  cancelOperation(id: string): Promise<void>;
111
116
  blockForOperation(id: string): Promise<void>;
@@ -37,6 +37,7 @@ export interface DialWebRTCConf {
37
37
  reconnectMaxWait?: number;
38
38
  signalingAddress: string;
39
39
  iceServers?: ICEServer[];
40
+ priority?: number;
40
41
  }
41
42
  /** Options required to dial a robot. */
42
43
  export type DialConf = DialDirectConf | DialWebRTCConf;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/sdk",
3
- "version": "0.5.0-rc.0",
3
+ "version": "0.6.0-rc.0",
4
4
  "description": "",
5
5
  "main": "./dist/main.umd.js",
6
6
  "module": "./dist/main.es.js",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "homepage": "https://github.com/viamrobotics/viam-typescript-sdk#readme",
47
47
  "dependencies": {
48
- "@viamrobotics/rpc": "^0.1.37",
48
+ "@viamrobotics/rpc": "^0.1.38",
49
49
  "exponential-backoff": "^3.1.1"
50
50
  },
51
51
  "devDependencies": {
@@ -74,6 +74,7 @@
74
74
  "typedoc": "^0.24.1",
75
75
  "typescript": "^5.0.3",
76
76
  "vite": "^4.2.1",
77
- "vitest": "^0.28.4"
77
+ "vitest": "^0.28.4",
78
+ "yaml": "^2.3.3"
78
79
  }
79
80
  }