@viamrobotics/sdk 0.64.0 → 0.65.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.
@@ -33,6 +33,7 @@ export interface DialWebRTCConf {
33
33
  * DIAL_TIMEOUT. A value of 0 disables the timeout.
34
34
  */
35
35
  dialTimeout?: number;
36
+ extraHeaders?: Record<string, string>;
36
37
  }
37
38
  /** Options required to dial a robot via gRPC. */
38
39
  export interface DialDirectConf {
@@ -46,6 +47,7 @@ export interface DialDirectConf {
46
47
  abort: boolean;
47
48
  };
48
49
  dialTimeout?: number;
50
+ extraHeaders?: Record<string, string>;
49
51
  }
50
52
  /** Options required to dial a robot. */
51
53
  export type DialConf = DialDirectConf | DialWebRTCConf;
@@ -70,6 +72,7 @@ export interface ConnectOptions {
70
72
  creds?: Credentials;
71
73
  priority?: number;
72
74
  dialTimeout?: number;
75
+ extraHeaders?: Record<string, string>;
73
76
  }
74
77
  export declare const isDialWebRTCConf: (value: DialConf) => value is DialWebRTCConf;
75
78
  /**
@@ -576,7 +579,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
576
579
  readonly name: "DoCommand";
577
580
  readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest;
578
581
  readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
579
- /** Options required to dial a robot via gRPC. */
580
582
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
581
583
  };
582
584
  readonly getKinematics: {
@@ -893,10 +895,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
893
895
  readonly doCommand: {
894
896
  readonly name: "DoCommand";
895
897
  readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest;
896
- readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse; /**
897
- * Validates a DialConf passed to createRobotClient. Throws an error for invalid
898
- * configs.
899
- */
898
+ readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
900
899
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
901
900
  };
902
901
  readonly getGeometries: {
@@ -963,7 +962,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
963
962
  readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").GetPropertiesRequest;
964
963
  readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").GetPropertiesResponse;
965
964
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
966
- }; /** Options required to dial a robot. */
965
+ };
967
966
  readonly doCommand: {
968
967
  readonly name: "DoCommand";
969
968
  readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest;
@@ -1213,7 +1212,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
1213
1212
  private performDial;
1214
1213
  disconnect(): Promise<void>;
1215
1214
  isConnected(): boolean;
1216
- connect({ creds, priority, dialTimeout, }?: ConnectOptions): Promise<void>;
1215
+ connect({ creds, priority, dialTimeout, extraHeaders, }?: ConnectOptions): Promise<void>;
1217
1216
  getSessions(): Promise<import("../gen/robot/v1/robot_pb").Session[]>;
1218
1217
  getOperations(): Promise<import("../gen/robot/v1/robot_pb").Operation[]>;
1219
1218
  cancelOperation(id: string): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/sdk",
3
- "version": "0.64.0",
3
+ "version": "0.65.0",
4
4
  "description": "",
5
5
  "main": "./dist/main.umd.js",
6
6
  "module": "./dist/main.es.js",