@viamrobotics/sdk 0.37.0 → 0.38.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/README.md +2 -2
- package/dist/api-version.d.ts +1 -1
- package/dist/app/app-client.d.ts +58 -1
- package/dist/gen/app/data/v1/data_pb.d.ts +50 -0
- package/dist/gen/app/datasync/v1/data_sync_pb.d.ts +15 -0
- package/dist/gen/app/mlinference/v1/ml_inference_pb.d.ts +5 -0
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +5 -0
- package/dist/gen/app/v1/app_connect.d.ts +21 -1
- package/dist/gen/app/v1/app_pb.d.ts +418 -23
- package/dist/gen/common/v1/common_pb.d.ts +40 -1
- package/dist/gen/grpc/reflection/v1/reflection_connect.d.ts +50 -0
- package/dist/gen/grpc/reflection/v1/reflection_pb.d.ts +384 -0
- package/dist/gen/robot/v1/robot_connect.d.ts +12 -14
- package/dist/gen/robot/v1/robot_pb.d.ts +72 -115
- package/dist/gen/service/vision/v1/vision_pb.d.ts +22 -0
- package/dist/main.es.js +5009 -4487
- package/dist/main.umd.js +7 -7
- package/dist/robot/client.d.ts +7 -8
- package/dist/robot/robot.d.ts +2 -12
- package/dist/robot/session-manager.d.ts +5 -1
- package/dist/robot/session-transport.d.ts +1 -1
- package/package.json +2 -2
package/dist/robot/client.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { type PromiseClient } from '@connectrpc/connect';
|
|
|
3
3
|
import { type Credentials } from '../app/viam-transport';
|
|
4
4
|
import { EventDispatcher } from '../events';
|
|
5
5
|
import type { PoseInFrame, Transform } from '../gen/common/v1/common_pb';
|
|
6
|
-
import {
|
|
6
|
+
import { GetModelsFromModulesRequest, RestartModuleRequest, TransformPCDRequest, TransformPoseRequest } from '../gen/robot/v1/robot_pb';
|
|
7
7
|
import type { Robot } from './robot';
|
|
8
8
|
interface WebRTCOptions {
|
|
9
9
|
enabled: boolean;
|
|
@@ -115,12 +115,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
115
115
|
readonly O: typeof import("../gen/robot/v1/robot_pb").GetModelsFromModulesResponse;
|
|
116
116
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
117
117
|
};
|
|
118
|
-
readonly discoverComponents: {
|
|
119
|
-
readonly name: "DiscoverComponents";
|
|
120
|
-
readonly I: typeof import("../gen/robot/v1/robot_pb").DiscoverComponentsRequest;
|
|
121
|
-
readonly O: typeof import("../gen/robot/v1/robot_pb").DiscoverComponentsResponse;
|
|
122
|
-
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
123
|
-
};
|
|
124
118
|
readonly frameSystemConfig: {
|
|
125
119
|
readonly name: "FrameSystemConfig";
|
|
126
120
|
readonly I: typeof import("../gen/robot/v1/robot_pb").FrameSystemConfigRequest;
|
|
@@ -211,6 +205,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
211
205
|
readonly O: typeof import("../gen/robot/v1/robot_pb").TunnelResponse;
|
|
212
206
|
readonly kind: import("@bufbuild/protobuf").MethodKind.BiDiStreaming;
|
|
213
207
|
};
|
|
208
|
+
readonly listTunnels: {
|
|
209
|
+
readonly name: "ListTunnels";
|
|
210
|
+
readonly I: typeof import("../gen/robot/v1/robot_pb").ListTunnelsRequest;
|
|
211
|
+
readonly O: typeof import("../gen/robot/v1/robot_pb").ListTunnelsResponse;
|
|
212
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
213
|
+
};
|
|
214
214
|
};
|
|
215
215
|
}>;
|
|
216
216
|
get armService(): PromiseClient<{
|
|
@@ -1067,7 +1067,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1067
1067
|
frameSystemConfig(transforms: Transform[]): Promise<import("../gen/robot/v1/robot_pb").FrameSystemConfig[]>;
|
|
1068
1068
|
transformPose(source: PoseInFrame, destination: string, supplementalTransforms: Transform[]): Promise<PoseInFrame>;
|
|
1069
1069
|
transformPCD(pointCloudPCD: Uint8Array, source: string, destination: string): Promise<Uint8Array>;
|
|
1070
|
-
discoverComponents(queries: DiscoveryQuery[]): Promise<import("../gen/robot/v1/robot_pb").Discovery[]>;
|
|
1071
1070
|
getModelsFromModules(): Promise<import("../gen/robot/v1/robot_pb").ModuleModel[]>;
|
|
1072
1071
|
getCloudMetadata(): Promise<import("../gen/robot/v1/robot_pb").GetCloudMetadataResponse>;
|
|
1073
1072
|
resourceNames(): Promise<import("../gen/common/v1/common_pb").ResourceName[]>;
|
package/dist/robot/robot.d.ts
CHANGED
|
@@ -85,19 +85,9 @@ export interface Robot {
|
|
|
85
85
|
*/
|
|
86
86
|
transformPCD(pointCloudPCD: Uint8Array, source: string, destination: string): Promise<Uint8Array>;
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Get the list of models provided by modules on the machine.
|
|
89
89
|
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
* @param queries - The list of component models to discovery.
|
|
93
|
-
* @group Discovery
|
|
94
|
-
* @alpha
|
|
95
|
-
*/
|
|
96
|
-
discoverComponents(queries: proto.DiscoveryQuery[]): Promise<proto.Discovery[]>;
|
|
97
|
-
/**
|
|
98
|
-
* Get the list of discovered component configurations.
|
|
99
|
-
*
|
|
100
|
-
* @group ComponentConfig
|
|
90
|
+
* @group Resources
|
|
101
91
|
* @alpha
|
|
102
92
|
*/
|
|
103
93
|
getModelsFromModules(): Promise<ModuleModel[]>;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { type Transport } from '@connectrpc/connect';
|
|
2
2
|
export default class SessionManager {
|
|
3
3
|
private deferredTransport;
|
|
4
|
+
static heartbeatMonitoredMethods: Record<string, boolean>;
|
|
4
5
|
readonly transport: Transport;
|
|
5
6
|
private currentSessionID;
|
|
6
7
|
private sessionsSupported;
|
|
7
8
|
private heartbeatIntervalMs;
|
|
9
|
+
private host;
|
|
8
10
|
private starting;
|
|
9
11
|
private get client();
|
|
10
|
-
constructor(deferredTransport: () => Transport);
|
|
12
|
+
constructor(host: string, deferredTransport: () => Transport);
|
|
11
13
|
get sessionID(): string;
|
|
12
14
|
private getSessionMetadataInner;
|
|
13
15
|
reset(): void;
|
|
14
16
|
private readonly backgroundHeartbeat;
|
|
15
17
|
private heartbeat;
|
|
16
18
|
getSessionMetadata(): Promise<Headers>;
|
|
19
|
+
private applyHeartbeatMonitoredMethods;
|
|
20
|
+
private static hasHeartbeatOption;
|
|
17
21
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AnyMessage, Message, MethodInfo, PartialMessage, ServiceType } from '@bufbuild/protobuf';
|
|
2
2
|
import { type ContextValues, type StreamResponse, type Transport, type UnaryResponse } from '@connectrpc/connect';
|
|
3
|
-
import
|
|
3
|
+
import SessionManager from './session-manager';
|
|
4
4
|
export default class SessionTransport implements Transport {
|
|
5
5
|
protected readonly deferredTransport: () => Transport;
|
|
6
6
|
protected readonly sessionManager: SessionManager;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viamrobotics/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/main.umd.js",
|
|
6
6
|
"module": "./dist/main.es.js",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"npm-check-updates": "^17.1.11",
|
|
79
79
|
"prettier": "^3.1.1",
|
|
80
80
|
"prettier-plugin-jsdoc": "^1.1.1",
|
|
81
|
-
"typedoc": "^0.
|
|
81
|
+
"typedoc": "^0.27.9",
|
|
82
82
|
"typescript": "^5.3.3",
|
|
83
83
|
"vite": "^5.0.10",
|
|
84
84
|
"vitest": "^1.1.0",
|