@viamrobotics/sdk 0.68.1 → 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.
Files changed (70) hide show
  1. package/dist/api-version.d.ts +1 -1
  2. package/dist/components/arm/client.d.ts +1 -0
  3. package/dist/components/audio-in/client.d.ts +1 -0
  4. package/dist/components/audio-out/client.d.ts +1 -0
  5. package/dist/components/base/client.d.ts +1 -0
  6. package/dist/components/board/client.d.ts +1 -0
  7. package/dist/components/button/client.d.ts +1 -0
  8. package/dist/components/camera/client.d.ts +1 -0
  9. package/dist/components/encoder/client.d.ts +1 -0
  10. package/dist/components/gantry/client.d.ts +1 -0
  11. package/dist/components/generic/client.d.ts +1 -0
  12. package/dist/components/gripper/client.d.ts +1 -0
  13. package/dist/components/input-controller/client.d.ts +1 -0
  14. package/dist/components/motor/client.d.ts +1 -0
  15. package/dist/components/movement-sensor/client.d.ts +1 -0
  16. package/dist/components/pose-tracker/client.d.ts +1 -0
  17. package/dist/components/power-sensor/client.d.ts +1 -0
  18. package/dist/components/sensor/client.d.ts +1 -0
  19. package/dist/components/servo/client.d.ts +1 -0
  20. package/dist/components/switch/client.d.ts +1 -0
  21. package/dist/events.d.ts +3 -1
  22. package/dist/gen/app/build/v1/build_pb.d.ts +17 -1
  23. package/dist/gen/app/v1/app_connect.d.ts +68 -1
  24. package/dist/gen/app/v1/app_pb.d.ts +359 -0
  25. package/dist/gen/google/api/client_pb.d.ts +4 -0
  26. package/dist/gen/google/api/expr/v1alpha1/checked_pb.d.ts +35 -2
  27. package/dist/gen/google/api/expr/v1alpha1/eval_pb.d.ts +8 -8
  28. package/dist/gen/google/api/expr/v1alpha1/explain_pb.d.ts +1 -1
  29. package/dist/gen/google/api/expr/v1alpha1/syntax_pb.d.ts +20 -21
  30. package/dist/gen/google/api/expr/v1alpha1/value_pb.d.ts +2 -2
  31. package/dist/gen/google/rpc/code_pb.d.ts +1 -1
  32. package/dist/gen/google/rpc/context/attribute_context_pb.d.ts +11 -1
  33. package/dist/gen/google/rpc/error_details_pb.d.ts +5 -5
  34. package/dist/gen/google/rpc/status_pb.d.ts +1 -1
  35. package/dist/gen/google/type/calendar_period_pb.d.ts +1 -1
  36. package/dist/gen/google/type/color_pb.d.ts +9 -9
  37. package/dist/gen/google/type/date_pb.d.ts +11 -8
  38. package/dist/gen/google/type/datetime_pb.d.ts +17 -16
  39. package/dist/gen/google/type/dayofweek_pb.d.ts +1 -1
  40. package/dist/gen/google/type/decimal_pb.d.ts +11 -12
  41. package/dist/gen/google/type/expr_pb.d.ts +1 -1
  42. package/dist/gen/google/type/fraction_pb.d.ts +1 -1
  43. package/dist/gen/google/type/interval_pb.d.ts +1 -1
  44. package/dist/gen/google/type/latlng_pb.d.ts +4 -4
  45. package/dist/gen/google/type/localized_text_pb.d.ts +3 -2
  46. package/dist/gen/google/type/money_pb.d.ts +1 -1
  47. package/dist/gen/google/type/month_pb.d.ts +1 -1
  48. package/dist/gen/google/type/phone_number_pb.d.ts +20 -14
  49. package/dist/gen/google/type/postal_address_pb.d.ts +39 -38
  50. package/dist/gen/google/type/quaternion_pb.d.ts +4 -3
  51. package/dist/gen/google/type/timeofday_pb.d.ts +11 -7
  52. package/dist/gen/robot/v1/robot_pb.d.ts +0 -8
  53. package/dist/main.d.ts +1 -1
  54. package/dist/main.es.js +6622 -6095
  55. package/dist/main.umd.js +7 -7
  56. package/dist/robot/client.d.ts +68 -31
  57. package/dist/robot/robot.d.ts +2 -1
  58. package/dist/rpc/dial.d.ts +29 -0
  59. package/dist/services/data-manager/client.d.ts +1 -0
  60. package/dist/services/discovery/client.d.ts +1 -0
  61. package/dist/services/generic/client.d.ts +1 -0
  62. package/dist/services/motion/client.d.ts +1 -0
  63. package/dist/services/navigation/client.d.ts +1 -0
  64. package/dist/services/slam/client.d.ts +1 -0
  65. package/dist/services/video/client.d.ts +1 -0
  66. package/dist/services/vision/client.d.ts +1 -0
  67. package/dist/services/world-state-store/client.d.ts +1 -0
  68. package/dist/types.d.ts +2 -0
  69. package/dist/utils.d.ts +4 -1
  70. package/package.json +2 -1
@@ -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';
@@ -34,6 +34,35 @@ export interface DialWebRTCConf {
34
34
  signalingAddress: string;
35
35
  iceServers?: ICEServer[];
36
36
  priority?: number;
37
+ /**
38
+ * When true, sets ICE transport policy to relay-only so only TURN candidates
39
+ * are used. Useful for testing relay connectivity through a TURN server.
40
+ */
41
+ forceRelay?: boolean;
42
+ /**
43
+ * When true, strips TURN servers from the ICE configuration so only host and
44
+ * server-reflexive candidates are used. Useful for testing direct
45
+ * connectivity without relay fallback.
46
+ */
47
+ forceP2P?: boolean;
48
+ /**
49
+ * When set, filters the signaling server's TURN list to only the server whose
50
+ * parsed URI matches (compared by scheme, host, port, and transport —
51
+ * defaulting transport to UDP if unspecified). Example:
52
+ * `"turn:turn.viam.com:443"`
53
+ */
54
+ turnUri?: string;
55
+ /** Overrides the scheme of the matched TURN URI (`"turn"` or `"turns"`). */
56
+ turnScheme?: 'turn' | 'turns';
57
+ /** Overrides the transport of the matched TURN URI (`"tcp"` or `"udp"`). */
58
+ turnTransport?: 'tcp' | 'udp';
59
+ /** Overrides the port of the matched TURN URI. */
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;
37
66
  /**
38
67
  * Set timeout in milliseconds for dialing. Default is defined by
39
68
  * DIAL_TIMEOUT. A value of 0 disables the timeout.
@@ -90,6 +119,13 @@ interface WebRTCOptions {
90
119
  reconnectMaxAttempts?: number;
91
120
  reconnectMaxWait?: number;
92
121
  shouldRetryOnError?: () => boolean;
122
+ forceRelay?: boolean;
123
+ forceP2P?: boolean;
124
+ turnUri?: string;
125
+ turnScheme?: 'turn' | 'turns';
126
+ turnTransport?: 'tcp' | 'udp';
127
+ turnPort?: number;
128
+ signalingInsecure?: boolean;
93
129
  }
94
130
  interface DirectOptions {
95
131
  noReconnect?: boolean;
@@ -165,6 +201,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
165
201
  private slamServiceClient;
166
202
  private worldStateStoreServiceClient;
167
203
  private currentRetryAttempt;
204
+ private isReconnecting;
168
205
  private onICEConnectionStateChange?;
169
206
  private onDataChannelClose?;
170
207
  private onTrack?;
@@ -459,7 +496,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
459
496
  readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
460
497
  readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
461
498
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
462
- };
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
+ */
463
505
  readonly getGeometries: {
464
506
  readonly name: "GetGeometries";
465
507
  readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
@@ -599,7 +641,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
599
641
  readonly getGeometries: {
600
642
  readonly name: "GetGeometries";
601
643
  readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
602
- readonly O: typeof import("../gen/common/v1/common_pb").GetGeometriesResponse; /** @default 10. */
644
+ readonly O: typeof import("../gen/common/v1/common_pb").GetGeometriesResponse;
603
645
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
604
646
  };
605
647
  };
@@ -634,11 +676,11 @@ export declare class RobotClient extends EventDispatcher implements Robot {
634
676
  readonly stop: {
635
677
  readonly name: "Stop";
636
678
  readonly I: typeof import("../gen/component/gantry/v1/gantry_pb").StopRequest;
637
- readonly O: typeof import("../gen/component/gantry/v1/gantry_pb").StopResponse; /** Options required to dial a robot via WebRTC. */
679
+ readonly O: typeof import("../gen/component/gantry/v1/gantry_pb").StopResponse;
638
680
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
639
681
  };
640
682
  readonly isMoving: {
641
- readonly name: "IsMoving"; /** @default Number.POSITIVE_INFINITY */
683
+ readonly name: "IsMoving";
642
684
  readonly I: typeof import("../gen/component/gantry/v1/gantry_pb").IsMovingRequest;
643
685
  readonly O: typeof import("../gen/component/gantry/v1/gantry_pb").IsMovingResponse;
644
686
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
@@ -731,6 +773,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
731
773
  readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
732
774
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
733
775
  };
776
+ /** @default Number.POSITIVE_INFINITY */
734
777
  readonly getStatus: {
735
778
  readonly name: "GetStatus";
736
779
  readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
@@ -808,7 +851,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
808
851
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
809
852
  };
810
853
  readonly getProperties: {
811
- readonly name: "GetProperties"; /** @default Number.POSITIVE_INFINITY */
854
+ readonly name: "GetProperties";
812
855
  readonly I: typeof import("../gen/component/movementsensor/v1/movementsensor_pb").GetPropertiesRequest;
813
856
  readonly O: typeof import("../gen/component/movementsensor/v1/movementsensor_pb").GetPropertiesResponse;
814
857
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
@@ -836,12 +879,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
836
879
  readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
837
880
  readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
838
881
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
839
- }; /**
840
- * Set timeout in milliseconds for dialing. Default is defined by
841
- * DIAL_TIMEOUT. A value of 0 disables the timeout.
842
- *
843
- * @deprecated Use `dialTimeoutMs` instead.
844
- */
882
+ };
845
883
  readonly getGeometries: {
846
884
  readonly name: "GetGeometries";
847
885
  readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
@@ -962,21 +1000,21 @@ export declare class RobotClient extends EventDispatcher implements Robot {
962
1000
  readonly goTo: {
963
1001
  readonly name: "GoTo";
964
1002
  readonly I: typeof import("../gen/component/motor/v1/motor_pb").GoToRequest;
965
- 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. */
966
1004
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
967
1005
  };
968
1006
  readonly setRPM: {
969
1007
  readonly name: "SetRPM";
970
1008
  readonly I: typeof import("../gen/component/motor/v1/motor_pb").SetRPMRequest;
971
- readonly O: typeof import("../gen/component/motor/v1/motor_pb").SetRPMResponse; /**
972
- * Called when a non-retryable error is encountered during reconnection.
973
- * Return true to treat the error as retryable. Does not override
974
- * reconnectMaxAttempts — retries are still bounded by that limit.
975
- */
1009
+ readonly O: typeof import("../gen/component/motor/v1/motor_pb").SetRPMResponse;
976
1010
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
977
1011
  };
978
1012
  readonly resetZeroPosition: {
979
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
+ */
980
1018
  readonly I: typeof import("../gen/component/motor/v1/motor_pb").ResetZeroPositionRequest;
981
1019
  readonly O: typeof import("../gen/component/motor/v1/motor_pb").ResetZeroPositionResponse;
982
1020
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
@@ -1074,11 +1112,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
1074
1112
  readonly name: "GetObstacles";
1075
1113
  readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").GetObstaclesRequest;
1076
1114
  readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").GetObstaclesResponse;
1077
- /**
1078
- * Called when a non-retryable error is encountered during reconnection.
1079
- * Return true to treat the error as retryable. Does not override
1080
- * reconnectMaxAttempts — retries are still bounded by that limit.
1081
- */
1082
1115
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
1083
1116
  };
1084
1117
  readonly getPaths: {
@@ -1184,7 +1217,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
1184
1217
  readonly getStatus: {
1185
1218
  readonly name: "GetStatus";
1186
1219
  readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
1187
- 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
+ */
1188
1226
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
1189
1227
  };
1190
1228
  };
@@ -1219,12 +1257,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
1219
1257
  readonly getObjectPointClouds: {
1220
1258
  readonly name: "GetObjectPointClouds";
1221
1259
  readonly I: typeof import("../gen/service/vision/v1/vision_pb").GetObjectPointCloudsRequest;
1222
- readonly O: typeof import("../gen/service/vision/v1/vision_pb").GetObjectPointCloudsResponse; /**
1223
- * Set timeout in milliseconds for dialing. Default is defined by
1224
- * DIAL_TIMEOUT. A value of 0 disables the timeout.
1225
- *
1226
- * @deprecated Use `dialTimeoutMs` instead.
1227
- */
1260
+ readonly O: typeof import("../gen/service/vision/v1/vision_pb").GetObjectPointCloudsResponse;
1228
1261
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
1229
1262
  };
1230
1263
  readonly getProperties: {
@@ -1249,6 +1282,10 @@ export declare class RobotClient extends EventDispatcher implements Robot {
1249
1282
  readonly name: "GetStatus";
1250
1283
  readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
1251
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
+ */
1252
1289
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
1253
1290
  };
1254
1291
  };
@@ -1396,7 +1433,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
1396
1433
  blockForOperation(id: string): Promise<void>;
1397
1434
  stopAll(): Promise<void>;
1398
1435
  frameSystemConfig(transforms: Transform[]): Promise<import("../gen/robot/v1/robot_pb").FrameSystemConfig[]>;
1399
- transformPose(source: PoseInFrame, destination: string, supplementalTransforms: Transform[]): Promise<PoseInFrame>;
1436
+ transformPose(source: PoseInFrame, destination: string, supplementalTransforms: Transform[], callOptions?: CallOptions): Promise<PoseInFrame>;
1400
1437
  transformPCD(pointCloudPCD: Uint8Array, source: string, destination: string): Promise<Uint8Array>;
1401
1438
  getModelsFromModules(): Promise<import("../gen/robot/v1/robot_pb").ModuleModel[]>;
1402
1439
  getCloudMetadata(): Promise<import("../gen/robot/v1/robot_pb").GetCloudMetadataResponse>;
@@ -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.
@@ -56,6 +56,35 @@ export interface DialWebRTCOptions {
56
56
  */
57
57
  signalingAccessToken?: string;
58
58
  additionalSdpFields?: Record<string, string | number>;
59
+ /**
60
+ * When true, sets ICE transport policy to relay-only so only TURN candidates
61
+ * are used. Useful for testing relay connectivity through a TURN server.
62
+ */
63
+ forceRelay?: boolean;
64
+ /**
65
+ * When true, strips TURN servers from the ICE configuration so only host and
66
+ * server-reflexive candidates are used. Useful for testing direct
67
+ * connectivity without relay fallback.
68
+ */
69
+ forceP2P?: boolean;
70
+ /**
71
+ * When set, filters the signaling server's TURN list to only the server whose
72
+ * parsed URI matches (compared by scheme, host, port, and transport —
73
+ * defaulting transport to UDP if unspecified). Example:
74
+ * `"turn:turn.viam.com:443"`
75
+ */
76
+ turnUri?: string;
77
+ /** Overrides the scheme of the matched TURN URI (`"turn"` or `"turns"`). */
78
+ turnScheme?: 'turn' | 'turns';
79
+ /** Overrides the transport of the matched TURN URI (`"tcp"` or `"udp"`). */
80
+ turnTransport?: 'tcp' | 'udp';
81
+ /** Overrides the port of the matched TURN URI. */
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;
59
88
  }
60
89
  export type TransportFactory = (init: TransportInitOptions) => Transport;
61
90
  interface TransportInitOptions {
@@ -49,6 +49,7 @@ export declare class DataManagerClient implements DataManager {
49
49
  * @param command - The command to do.
50
50
  * @param callOptions - Call options for the command.
51
51
  */
52
+ getStatus(callOptions?: CallOptions): Promise<JsonValue>;
52
53
  doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
53
54
  /**
54
55
  * Uploads binary data to specified datasets.
@@ -15,5 +15,6 @@ export declare class DiscoveryClient implements Discovery {
15
15
  callOptions: CallOptions;
16
16
  constructor(client: RobotClient, name: string, options?: Options);
17
17
  discoverResources(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/app/v1/robot_pb").ComponentConfig[]>;
18
+ getStatus(callOptions?: CallOptions): Promise<JsonValue>;
18
19
  doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
19
20
  }
@@ -14,5 +14,6 @@ export declare class GenericClient implements Generic {
14
14
  private readonly options;
15
15
  callOptions: CallOptions;
16
16
  constructor(client: RobotClient, name: string, options?: Options);
17
+ getStatus(callOptions?: CallOptions): Promise<JsonValue>;
17
18
  doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
18
19
  }
@@ -23,5 +23,6 @@ export declare class MotionClient implements Motion {
23
23
  listPlanStatuses(onlyActivePlans?: boolean, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/motion/v1/motion_pb").ListPlanStatusesResponse>;
24
24
  /** @deprecated Use `RobotClient.getPose` instead. */
25
25
  getPose(componentName: string, destinationFrame: string, supplementalTransforms: Transform[], extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").PoseInFrame>;
26
+ getStatus(callOptions?: CallOptions): Promise<JsonValue>;
26
27
  doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
27
28
  }
@@ -24,5 +24,6 @@ export declare class NavigationClient implements Navigation {
24
24
  getObstacles(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").GeoGeometry[]>;
25
25
  getPaths(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Path[]>;
26
26
  getProperties(callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").GetPropertiesResponse>;
27
+ getStatus(callOptions?: CallOptions): Promise<JsonValue>;
27
28
  doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
28
29
  }
@@ -18,5 +18,6 @@ export declare class SlamClient implements Slam {
18
18
  getPointCloudMap(returnEditedMap?: boolean, callOptions?: CallOptions): Promise<Uint8Array>;
19
19
  getInternalState(callOptions?: CallOptions): Promise<Uint8Array>;
20
20
  getProperties(callOptions?: CallOptions): Promise<import("../../gen/service/slam/v1/slam_pb").GetPropertiesResponse>;
21
+ getStatus(callOptions?: CallOptions): Promise<JsonValue>;
21
22
  doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
22
23
  }
@@ -16,5 +16,6 @@ export declare class VideoClient implements Video {
16
16
  callOptions: CallOptions;
17
17
  constructor(client: RobotClient, name: string, options?: Options);
18
18
  getVideo(startTimestamp?: Date, endTimestamp?: Date, videoCodec?: string, videoContainer?: string, extra?: {}, callOptions?: CallOptions): AsyncIterable<VideoChunk>;
19
+ getStatus(callOptions?: CallOptions): Promise<JsonValue>;
19
20
  doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
20
21
  }
@@ -33,5 +33,6 @@ export declare class VisionClient implements Vision {
33
33
  objectPointClouds: import("../../gen/common/v1/common_pb").PointCloudObject[];
34
34
  extra: Struct | undefined;
35
35
  }>;
36
+ getStatus(callOptions?: CallOptions): Promise<JsonValue>;
36
37
  doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
37
38
  }
@@ -18,5 +18,6 @@ export declare class WorldStateStoreClient implements WorldStateStore {
18
18
  listUUIDs(extra?: {}, callOptions?: CallOptions): Promise<string[]>;
19
19
  getTransform(uuid: string, extra?: {}, callOptions?: CallOptions): Promise<import("./types").TransformWithUUID>;
20
20
  streamTransformChanges(extra?: {}, callOptions?: CallOptions): AsyncGenerator<TransformChangeEvent, void>;
21
+ getStatus(callOptions?: CallOptions): Promise<JsonValue>;
21
22
  doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
22
23
  }
package/dist/types.d.ts CHANGED
@@ -30,6 +30,8 @@ export interface Resource {
30
30
  * a plain object, which will be converted automatically.
31
31
  */
32
32
  doCommand(command: Struct | Record<string, JsonValue>): Promise<JsonValue>;
33
+ /** Get the status of the resource. */
34
+ getStatus(): Promise<JsonValue>;
33
35
  }
34
36
  import * as commonApi from './gen/common/v1/common_pb';
35
37
  export type Capsule = PlainMessage<commonApi.Capsule>;
package/dist/utils.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Struct, type JsonValue, type PartialMessage } from '@bufbuild/protobuf';
2
2
  import type { CallOptions } from '@connectrpc/connect';
3
- import { DoCommandRequest, DoCommandResponse, GetKinematicsRequest, GetKinematicsResponse, GetGeometriesRequest, GetGeometriesResponse, Geometry, Mesh } from './gen/common/v1/common_pb';
3
+ import { DoCommandRequest, DoCommandResponse, GetKinematicsRequest, GetKinematicsResponse, GetGeometriesRequest, GetGeometriesResponse, GetStatusRequest, GetStatusResponse, Geometry, Mesh } from './gen/common/v1/common_pb';
4
4
  import type { Options, Vector3 } from './types';
5
5
  import type { Frame } from './gen/app/v1/robot_pb';
6
6
  export declare const clientHeaders: Headers;
@@ -59,4 +59,7 @@ export declare const getKinematicsFromClient: (getKinematicsMethod: getKinematic
59
59
  type getGeometries = (request: PartialMessage<GetGeometriesRequest>, options?: CallOptions) => Promise<GetGeometriesResponse>;
60
60
  /** Get geometries information using a resource client */
61
61
  export declare const getGeometriesFromClient: (getGeometriesMethod: getGeometries, name: string, extra?: Struct, callOptions?: CallOptions) => Promise<Geometry[]>;
62
+ type getStatus = (request: PartialMessage<GetStatusRequest>, options?: CallOptions) => Promise<GetStatusResponse>;
63
+ /** Get the status of a resource using a resource client */
64
+ export declare const getStatusFromClient: (getStatusMethod: getStatus, name: string, options?: Options, callOptions?: CallOptions) => Promise<JsonValue>;
62
65
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/sdk",
3
- "version": "0.68.1",
3
+ "version": "0.69.0",
4
4
  "description": "",
5
5
  "main": "./dist/main.umd.js",
6
6
  "module": "./dist/main.es.js",
@@ -77,6 +77,7 @@
77
77
  "eslint-config-prettier": "^9.1.0",
78
78
  "eslint-plugin-tsdoc": "^0.2.17",
79
79
  "eslint-plugin-vitest": "^0.3.20",
80
+ "flatted": "^3.4.2",
80
81
  "grpc-web": "^1.4.2",
81
82
  "happy-dom": "^20.0.8",
82
83
  "npm-check-updates": "^17.1.11",