@viamrobotics/sdk 0.68.2 → 0.69.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 -1
- package/dist/events.d.ts +3 -1
- package/dist/gen/app/v1/app_pb.d.ts +61 -0
- package/dist/gen/google/api/client_pb.d.ts +4 -0
- package/dist/gen/google/api/expr/v1alpha1/checked_pb.d.ts +35 -2
- package/dist/gen/google/api/expr/v1alpha1/eval_pb.d.ts +8 -8
- package/dist/gen/google/api/expr/v1alpha1/explain_pb.d.ts +1 -1
- package/dist/gen/google/api/expr/v1alpha1/syntax_pb.d.ts +20 -21
- package/dist/gen/google/api/expr/v1alpha1/value_pb.d.ts +2 -2
- package/dist/gen/google/rpc/code_pb.d.ts +1 -1
- package/dist/gen/google/rpc/context/attribute_context_pb.d.ts +11 -1
- package/dist/gen/google/rpc/error_details_pb.d.ts +5 -5
- package/dist/gen/google/rpc/status_pb.d.ts +1 -1
- package/dist/gen/google/type/calendar_period_pb.d.ts +1 -1
- package/dist/gen/google/type/color_pb.d.ts +9 -9
- package/dist/gen/google/type/date_pb.d.ts +11 -8
- package/dist/gen/google/type/datetime_pb.d.ts +17 -16
- package/dist/gen/google/type/dayofweek_pb.d.ts +1 -1
- package/dist/gen/google/type/decimal_pb.d.ts +11 -12
- package/dist/gen/google/type/expr_pb.d.ts +1 -1
- package/dist/gen/google/type/fraction_pb.d.ts +1 -1
- package/dist/gen/google/type/interval_pb.d.ts +1 -1
- package/dist/gen/google/type/latlng_pb.d.ts +4 -4
- package/dist/gen/google/type/localized_text_pb.d.ts +3 -2
- package/dist/gen/google/type/money_pb.d.ts +1 -1
- package/dist/gen/google/type/month_pb.d.ts +1 -1
- package/dist/gen/google/type/phone_number_pb.d.ts +20 -14
- package/dist/gen/google/type/postal_address_pb.d.ts +39 -38
- package/dist/gen/google/type/quaternion_pb.d.ts +4 -3
- package/dist/gen/google/type/timeofday_pb.d.ts +11 -7
- package/dist/main.es.js +1515 -1483
- package/dist/main.umd.js +7 -7
- package/dist/robot/client.d.ts +38 -34
- package/dist/robot/robot.d.ts +2 -1
- package/dist/rpc/dial.d.ts +5 -0
- package/package.json +1 -1
package/dist/robot/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ServiceType } from '@bufbuild/protobuf';
|
|
2
|
-
import { type Client } from '@connectrpc/connect';
|
|
2
|
+
import { type CallOptions, type Client } 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';
|
|
@@ -58,6 +58,11 @@ export interface DialWebRTCConf {
|
|
|
58
58
|
turnTransport?: 'tcp' | 'udp';
|
|
59
59
|
/** Overrides the port of the matched TURN URI. */
|
|
60
60
|
turnPort?: number;
|
|
61
|
+
/**
|
|
62
|
+
* When true, the connection to the signaling server is made over plain HTTP
|
|
63
|
+
* (no TLS). Use this when connecting to a robot running with `no_tls: true`.
|
|
64
|
+
*/
|
|
65
|
+
signalingInsecure?: boolean;
|
|
61
66
|
/**
|
|
62
67
|
* Set timeout in milliseconds for dialing. Default is defined by
|
|
63
68
|
* DIAL_TIMEOUT. A value of 0 disables the timeout.
|
|
@@ -120,6 +125,7 @@ interface WebRTCOptions {
|
|
|
120
125
|
turnScheme?: 'turn' | 'turns';
|
|
121
126
|
turnTransport?: 'tcp' | 'udp';
|
|
122
127
|
turnPort?: number;
|
|
128
|
+
signalingInsecure?: boolean;
|
|
123
129
|
}
|
|
124
130
|
interface DirectOptions {
|
|
125
131
|
noReconnect?: boolean;
|
|
@@ -195,6 +201,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
195
201
|
private slamServiceClient;
|
|
196
202
|
private worldStateStoreServiceClient;
|
|
197
203
|
private currentRetryAttempt;
|
|
204
|
+
private isReconnecting;
|
|
198
205
|
private onICEConnectionStateChange?;
|
|
199
206
|
private onDataChannelClose?;
|
|
200
207
|
private onTrack?;
|
|
@@ -426,12 +433,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
426
433
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
427
434
|
};
|
|
428
435
|
readonly getGeometries: {
|
|
429
|
-
/**
|
|
430
|
-
* Set timeout in milliseconds for dialing. Default is defined by
|
|
431
|
-
* DIAL_TIMEOUT. A value of 0 disables the timeout.
|
|
432
|
-
*
|
|
433
|
-
* @deprecated Use `dialTimeoutMs` instead.
|
|
434
|
-
*/
|
|
435
436
|
readonly name: "GetGeometries";
|
|
436
437
|
readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
|
|
437
438
|
readonly O: typeof import("../gen/common/v1/common_pb").GetGeometriesResponse;
|
|
@@ -495,7 +496,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
495
496
|
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
496
497
|
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
497
498
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
498
|
-
};
|
|
499
|
+
}; /**
|
|
500
|
+
* When set, filters the signaling server's TURN list to only the server whose
|
|
501
|
+
* parsed URI matches (compared by scheme, host, port, and transport —
|
|
502
|
+
* defaulting transport to UDP if unspecified). Example:
|
|
503
|
+
* `"turn:turn.viam.com:443"`
|
|
504
|
+
*/
|
|
499
505
|
readonly getGeometries: {
|
|
500
506
|
readonly name: "GetGeometries";
|
|
501
507
|
readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
|
|
@@ -568,10 +574,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
568
574
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
569
575
|
};
|
|
570
576
|
readonly writeAnalog: {
|
|
571
|
-
/**
|
|
572
|
-
* Set timeout in milliseconds for dialing. Default is defined by
|
|
573
|
-
* DIAL_TIMEOUT. A value of 0 disables the timeout.
|
|
574
|
-
*/
|
|
575
577
|
readonly name: "WriteAnalog";
|
|
576
578
|
readonly I: typeof import("../gen/component/board/v1/board_pb").WriteAnalogRequest;
|
|
577
579
|
readonly O: typeof import("../gen/component/board/v1/board_pb").WriteAnalogResponse;
|
|
@@ -639,7 +641,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
639
641
|
readonly getGeometries: {
|
|
640
642
|
readonly name: "GetGeometries";
|
|
641
643
|
readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
|
|
642
|
-
readonly O: typeof import("../gen/common/v1/common_pb").GetGeometriesResponse;
|
|
644
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetGeometriesResponse;
|
|
643
645
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
644
646
|
};
|
|
645
647
|
};
|
|
@@ -674,11 +676,11 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
674
676
|
readonly stop: {
|
|
675
677
|
readonly name: "Stop";
|
|
676
678
|
readonly I: typeof import("../gen/component/gantry/v1/gantry_pb").StopRequest;
|
|
677
|
-
readonly O: typeof import("../gen/component/gantry/v1/gantry_pb").StopResponse;
|
|
679
|
+
readonly O: typeof import("../gen/component/gantry/v1/gantry_pb").StopResponse;
|
|
678
680
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
679
681
|
};
|
|
680
682
|
readonly isMoving: {
|
|
681
|
-
readonly name: "IsMoving";
|
|
683
|
+
readonly name: "IsMoving";
|
|
682
684
|
readonly I: typeof import("../gen/component/gantry/v1/gantry_pb").IsMovingRequest;
|
|
683
685
|
readonly O: typeof import("../gen/component/gantry/v1/gantry_pb").IsMovingResponse;
|
|
684
686
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
@@ -771,6 +773,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
771
773
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
772
774
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
773
775
|
};
|
|
776
|
+
/** @default Number.POSITIVE_INFINITY */
|
|
774
777
|
readonly getStatus: {
|
|
775
778
|
readonly name: "GetStatus";
|
|
776
779
|
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
@@ -848,7 +851,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
848
851
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
849
852
|
};
|
|
850
853
|
readonly getProperties: {
|
|
851
|
-
readonly name: "GetProperties";
|
|
854
|
+
readonly name: "GetProperties";
|
|
852
855
|
readonly I: typeof import("../gen/component/movementsensor/v1/movementsensor_pb").GetPropertiesRequest;
|
|
853
856
|
readonly O: typeof import("../gen/component/movementsensor/v1/movementsensor_pb").GetPropertiesResponse;
|
|
854
857
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
@@ -997,21 +1000,21 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
997
1000
|
readonly goTo: {
|
|
998
1001
|
readonly name: "GoTo";
|
|
999
1002
|
readonly I: typeof import("../gen/component/motor/v1/motor_pb").GoToRequest;
|
|
1000
|
-
readonly O: typeof import("../gen/component/motor/v1/motor_pb").GoToResponse;
|
|
1003
|
+
readonly O: typeof import("../gen/component/motor/v1/motor_pb").GoToResponse; /** Options required to dial a robot via WebRTC. */
|
|
1001
1004
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1002
1005
|
};
|
|
1003
1006
|
readonly setRPM: {
|
|
1004
1007
|
readonly name: "SetRPM";
|
|
1005
1008
|
readonly I: typeof import("../gen/component/motor/v1/motor_pb").SetRPMRequest;
|
|
1006
|
-
readonly O: typeof import("../gen/component/motor/v1/motor_pb").SetRPMResponse;
|
|
1007
|
-
* Called when a non-retryable error is encountered during reconnection.
|
|
1008
|
-
* Return true to treat the error as retryable. Does not override
|
|
1009
|
-
* reconnectMaxAttempts — retries are still bounded by that limit.
|
|
1010
|
-
*/
|
|
1009
|
+
readonly O: typeof import("../gen/component/motor/v1/motor_pb").SetRPMResponse;
|
|
1011
1010
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1012
1011
|
};
|
|
1013
1012
|
readonly resetZeroPosition: {
|
|
1014
1013
|
readonly name: "ResetZeroPosition";
|
|
1014
|
+
/**
|
|
1015
|
+
* When true, sets ICE transport policy to relay-only so only TURN candidates
|
|
1016
|
+
* are used. Useful for testing relay connectivity through a TURN server.
|
|
1017
|
+
*/
|
|
1015
1018
|
readonly I: typeof import("../gen/component/motor/v1/motor_pb").ResetZeroPositionRequest;
|
|
1016
1019
|
readonly O: typeof import("../gen/component/motor/v1/motor_pb").ResetZeroPositionResponse;
|
|
1017
1020
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
@@ -1109,11 +1112,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1109
1112
|
readonly name: "GetObstacles";
|
|
1110
1113
|
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").GetObstaclesRequest;
|
|
1111
1114
|
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").GetObstaclesResponse;
|
|
1112
|
-
/**
|
|
1113
|
-
* Called when a non-retryable error is encountered during reconnection.
|
|
1114
|
-
* Return true to treat the error as retryable. Does not override
|
|
1115
|
-
* reconnectMaxAttempts — retries are still bounded by that limit.
|
|
1116
|
-
*/
|
|
1117
1115
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1118
1116
|
};
|
|
1119
1117
|
readonly getPaths: {
|
|
@@ -1131,7 +1129,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1131
1129
|
readonly doCommand: {
|
|
1132
1130
|
readonly name: "DoCommand";
|
|
1133
1131
|
readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest;
|
|
1134
|
-
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
1132
|
+
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
1135
1133
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1136
1134
|
};
|
|
1137
1135
|
readonly getStatus: {
|
|
@@ -1219,7 +1217,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1219
1217
|
readonly getStatus: {
|
|
1220
1218
|
readonly name: "GetStatus";
|
|
1221
1219
|
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
1222
|
-
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
1220
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse; /**
|
|
1221
|
+
* Set timeout in milliseconds for dialing. Default is defined by
|
|
1222
|
+
* DIAL_TIMEOUT. A value of 0 disables the timeout.
|
|
1223
|
+
*
|
|
1224
|
+
* @deprecated Use `dialTimeoutMs` instead.
|
|
1225
|
+
*/
|
|
1223
1226
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1224
1227
|
};
|
|
1225
1228
|
};
|
|
@@ -1254,10 +1257,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1254
1257
|
readonly getObjectPointClouds: {
|
|
1255
1258
|
readonly name: "GetObjectPointClouds";
|
|
1256
1259
|
readonly I: typeof import("../gen/service/vision/v1/vision_pb").GetObjectPointCloudsRequest;
|
|
1257
|
-
readonly O: typeof import("../gen/service/vision/v1/vision_pb").GetObjectPointCloudsResponse;
|
|
1258
|
-
* When true, sets ICE transport policy to relay-only so only TURN candidates
|
|
1259
|
-
* are used. Useful for testing relay connectivity through a TURN server.
|
|
1260
|
-
*/
|
|
1260
|
+
readonly O: typeof import("../gen/service/vision/v1/vision_pb").GetObjectPointCloudsResponse;
|
|
1261
1261
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1262
1262
|
};
|
|
1263
1263
|
readonly getProperties: {
|
|
@@ -1282,6 +1282,10 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1282
1282
|
readonly name: "GetStatus";
|
|
1283
1283
|
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
1284
1284
|
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
1285
|
+
/**
|
|
1286
|
+
* Set timeout in milliseconds for dialing. Default is defined by
|
|
1287
|
+
* DIAL_TIMEOUT. A value of 0 disables the timeout.
|
|
1288
|
+
*/
|
|
1285
1289
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1286
1290
|
};
|
|
1287
1291
|
};
|
|
@@ -1429,7 +1433,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1429
1433
|
blockForOperation(id: string): Promise<void>;
|
|
1430
1434
|
stopAll(): Promise<void>;
|
|
1431
1435
|
frameSystemConfig(transforms: Transform[]): Promise<import("../gen/robot/v1/robot_pb").FrameSystemConfig[]>;
|
|
1432
|
-
transformPose(source: PoseInFrame, destination: string, supplementalTransforms: Transform[]): Promise<PoseInFrame>;
|
|
1436
|
+
transformPose(source: PoseInFrame, destination: string, supplementalTransforms: Transform[], callOptions?: CallOptions): Promise<PoseInFrame>;
|
|
1433
1437
|
transformPCD(pointCloudPCD: Uint8Array, source: string, destination: string): Promise<Uint8Array>;
|
|
1434
1438
|
getModelsFromModules(): Promise<import("../gen/robot/v1/robot_pb").ModuleModel[]>;
|
|
1435
1439
|
getCloudMetadata(): Promise<import("../gen/robot/v1/robot_pb").GetCloudMetadataResponse>;
|
package/dist/robot/robot.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PlainMessage, Struct } from '@bufbuild/protobuf';
|
|
2
|
+
import type { CallOptions } from '@connectrpc/connect';
|
|
2
3
|
import { MachineConnectionEvent } from '../events';
|
|
3
4
|
import * as proto from '../gen/robot/v1/robot_pb';
|
|
4
5
|
import type { PoseInFrame, ResourceName, Transform } from '../types';
|
|
@@ -110,7 +111,7 @@ export interface Robot {
|
|
|
110
111
|
* @group Frame System
|
|
111
112
|
* @alpha
|
|
112
113
|
*/
|
|
113
|
-
transformPose(source: PoseInFrame, destination: string, supplementalTransforms: Transform[]): Promise<PoseInFrame>;
|
|
114
|
+
transformPose(source: PoseInFrame, destination: string, supplementalTransforms: Transform[], callOptions?: CallOptions): Promise<PoseInFrame>;
|
|
114
115
|
/**
|
|
115
116
|
* Transform a given source point cloud from the reference frame to a new
|
|
116
117
|
* specified destination which is a reference frame.
|
package/dist/rpc/dial.d.ts
CHANGED
|
@@ -80,6 +80,11 @@ export interface DialWebRTCOptions {
|
|
|
80
80
|
turnTransport?: 'tcp' | 'udp';
|
|
81
81
|
/** Overrides the port of the matched TURN URI. */
|
|
82
82
|
turnPort?: number;
|
|
83
|
+
/**
|
|
84
|
+
* When true, the connection to the signaling server is made over plain HTTP
|
|
85
|
+
* (no TLS). Use this when connecting to a robot running with `no_tls: true`.
|
|
86
|
+
*/
|
|
87
|
+
signalingInsecure?: boolean;
|
|
83
88
|
}
|
|
84
89
|
export type TransportFactory = (init: TransportInitOptions) => Transport;
|
|
85
90
|
interface TransportInitOptions {
|