@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.
- package/dist/app/data-client.d.ts +31 -8
- package/dist/components/gripper/client.d.ts +1 -0
- package/dist/components/gripper/gripper.d.ts +18 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.es.js +4059 -3943
- package/dist/main.umd.js +7 -7
- package/dist/robot/client.d.ts +6 -7
- package/package.json +1 -1
package/dist/robot/client.d.ts
CHANGED
|
@@ -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
|
-
};
|
|
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>;
|