@viamrobotics/sdk 0.20.0 → 0.21.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 -0
- package/dist/app/viam-transport.d.ts +2 -7
- package/dist/gen/google/api/expr/v1alpha1/syntax_pb.d.ts +4 -0
- package/dist/gen/robot/v1/robot_pb.d.ts +49 -0
- package/dist/gen/robot/v1/robot_pb_service.d.ts +19 -0
- package/dist/main.es.js +232 -61
- package/dist/main.umd.js +3 -3
- package/dist/robot/dial.d.ts +6 -0
- package/dist/utils.d.ts +9 -0
- package/package.json +3 -1
package/dist/robot/dial.d.ts
CHANGED
|
@@ -12,6 +12,9 @@ export interface DialDirectConf {
|
|
|
12
12
|
noReconnect?: boolean;
|
|
13
13
|
reconnectMaxAttempts?: number;
|
|
14
14
|
reconnectMaxWait?: number;
|
|
15
|
+
reconnectAbortSignal?: {
|
|
16
|
+
abort: boolean;
|
|
17
|
+
};
|
|
15
18
|
dialTimeout?: number;
|
|
16
19
|
}
|
|
17
20
|
interface ICEServer {
|
|
@@ -34,6 +37,9 @@ export interface DialWebRTCConf {
|
|
|
34
37
|
noReconnect?: boolean;
|
|
35
38
|
reconnectMaxAttempts?: number;
|
|
36
39
|
reconnectMaxWait?: number;
|
|
40
|
+
reconnectAbortSignal?: {
|
|
41
|
+
abort: boolean;
|
|
42
|
+
};
|
|
37
43
|
signalingAddress: string;
|
|
38
44
|
iceServers?: ICEServer[];
|
|
39
45
|
priority?: number;
|
package/dist/utils.d.ts
CHANGED
|
@@ -27,4 +27,13 @@ export declare const encodeWorldState: (obj: common.WorldState.AsObject) => comm
|
|
|
27
27
|
export declare const encodeGeoPoint: (obj: common.GeoPoint.AsObject) => common.GeoPoint;
|
|
28
28
|
/** Convert a GeoGeometry object to a Protobuf Datatype */
|
|
29
29
|
export declare const encodeGeoGeometry: (obj: common.GeoGeometry.AsObject) => common.GeoGeometry;
|
|
30
|
+
export declare class MetadataTransport implements grpc.Transport {
|
|
31
|
+
private metadata;
|
|
32
|
+
protected readonly transport: grpc.Transport;
|
|
33
|
+
constructor(transportFactory: grpc.TransportFactory, opts: grpc.TransportOptions, metadata?: grpc.Metadata);
|
|
34
|
+
start(metadata: grpc.Metadata): void;
|
|
35
|
+
sendMessage(msgBytes: Uint8Array): void;
|
|
36
|
+
finishSend(): void;
|
|
37
|
+
cancel(): void;
|
|
38
|
+
}
|
|
30
39
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viamrobotics/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/main.umd.js",
|
|
6
6
|
"module": "./dist/main.es.js",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
+
"prebuild": "ts-node ./scripts/write-versions.ts",
|
|
19
20
|
"build": "npm run build:bundle && npm run build:types && npm run build:copy-dts",
|
|
20
21
|
"build:bundle": "vite build",
|
|
21
22
|
"build:types": "tsc --project tsconfig.build.json",
|
|
@@ -72,6 +73,7 @@
|
|
|
72
73
|
"prettier": "^3.1.1",
|
|
73
74
|
"prettier-plugin-jsdoc": "^1.1.1",
|
|
74
75
|
"protoc-gen-js": "^3.21.2",
|
|
76
|
+
"ts-node": "^10.9.2",
|
|
75
77
|
"ts-protoc-gen": "^0.15.0",
|
|
76
78
|
"typedoc": "^0.25.4",
|
|
77
79
|
"typescript": "^5.3.3",
|