@viamrobotics/sdk 0.32.0 → 0.34.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.
@@ -3,8 +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 { DiscoveryQuery, RestartModuleRequest, Status, TransformPCDRequest, TransformPoseRequest } from '../gen/robot/v1/robot_pb';
7
- import type { ResourceName } from '../types';
6
+ import { DiscoveryQuery, RestartModuleRequest, TransformPCDRequest, TransformPoseRequest } from '../gen/robot/v1/robot_pb';
8
7
  import type { Robot } from './robot';
9
8
  interface WebRTCOptions {
10
9
  enabled: boolean;
@@ -61,7 +60,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
61
60
  private navigationServiceClient;
62
61
  private motionServiceClient;
63
62
  private visionServiceClient;
64
- private sensorsServiceClient;
65
63
  private servoServiceClient;
66
64
  private slamServiceClient;
67
65
  constructor(serviceHost: string, webrtcOptions?: WebRTCOptions, sessionOptions?: SessionOptions, directOptions?: DirectOptions);
@@ -228,7 +226,11 @@ export declare class RobotClient extends EventDispatcher implements Robot {
228
226
  readonly I: typeof import("../gen/component/arm/v1/arm_pb").MoveToJointPositionsRequest;
229
227
  readonly O: typeof import("../gen/component/arm/v1/arm_pb").MoveToJointPositionsResponse;
230
228
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
231
- };
229
+ }; /**
230
+ * A gRPC-web client for a Robot.
231
+ *
232
+ * @group Clients
233
+ */
232
234
  readonly moveThroughJointPositions: {
233
235
  readonly name: "MoveThroughJointPositions";
234
236
  readonly I: typeof import("../gen/component/arm/v1/arm_pb").MoveThroughJointPositionsRequest;
@@ -950,29 +952,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
950
952
  };
951
953
  };
952
954
  }>;
953
- get sensorsService(): PromiseClient<{
954
- readonly typeName: "viam.service.sensors.v1.SensorsService";
955
- readonly methods: {
956
- readonly getSensors: {
957
- readonly name: "GetSensors";
958
- readonly I: typeof import("../gen/service/sensors/v1/sensors_pb").GetSensorsRequest;
959
- readonly O: typeof import("../gen/service/sensors/v1/sensors_pb").GetSensorsResponse;
960
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
961
- };
962
- readonly getReadings: {
963
- readonly name: "GetReadings";
964
- readonly I: typeof import("../gen/service/sensors/v1/sensors_pb").GetReadingsRequest;
965
- readonly O: typeof import("../gen/service/sensors/v1/sensors_pb").GetReadingsResponse;
966
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
967
- };
968
- readonly doCommand: {
969
- readonly name: "DoCommand";
970
- readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest;
971
- readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
972
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
973
- };
974
- };
975
- }>;
976
955
  get servoService(): PromiseClient<{
977
956
  readonly typeName: "viam.component.servo.v1.ServoService";
978
957
  readonly methods: {
@@ -1066,8 +1045,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
1066
1045
  getCloudMetadata(): Promise<import("../gen/robot/v1/robot_pb").GetCloudMetadataResponse>;
1067
1046
  resourceNames(): Promise<import("../gen/common/v1/common_pb").ResourceName[]>;
1068
1047
  resourceRPCSubtypes(): Promise<import("../gen/robot/v1/robot_pb").ResourceRPCSubtype[]>;
1069
- getStatus(resourceNames?: ResourceName[]): Promise<Status[]>;
1070
- streamStatus(resourceNames?: ResourceName[], durationMs?: number): AsyncIterable<Status[]>;
1048
+ getMachineStatus(): Promise<import("../gen/robot/v1/robot_pb").GetMachineStatusResponse>;
1071
1049
  restartModule(moduleId?: string, moduleName?: string): Promise<void>;
1072
1050
  }
1073
1051
  export {};
@@ -105,26 +105,6 @@ export interface Robot {
105
105
  * @alpha
106
106
  */
107
107
  resourceRPCSubtypes(): Promise<proto.ResourceRPCSubtype[]>;
108
- /**
109
- * Get a list of all statuses requested. An empty request signifies all
110
- * resources.
111
- *
112
- * @param resourceNames - The list of resources for which to receive statuses.
113
- * @group Status
114
- * @alpha
115
- */
116
- getStatus(resourceNames?: ResourceName[]): Promise<proto.Status[]>;
117
- /**
118
- * Periodically receive the status of all statuses requested. An empty request
119
- * signifies all resources.
120
- *
121
- * @param resourceNames - The list of resources for which to receive statuses.
122
- * Default is [].
123
- * @param duration - How often to send a new status. Default is 0.5 seconds.
124
- * @group Status
125
- * @alpha
126
- */
127
- streamStatus(resourceNames?: ResourceName[], durationMs?: number): AsyncIterable<proto.Status[]>;
128
108
  /**
129
109
  * Call a function when a connection event occurs.
130
110
  *
@@ -146,6 +126,12 @@ export interface Robot {
146
126
  * @alpha
147
127
  */
148
128
  getCloudMetadata(): Promise<CloudMetadata>;
129
+ /**
130
+ * Get the current status of the robot.
131
+ *
132
+ * @alpha
133
+ */
134
+ getMachineStatus(): Promise<proto.GetMachineStatusResponse>;
149
135
  /**
150
136
  * Restarts a module running on the machine with the given id or name.
151
137
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/sdk",
3
- "version": "0.32.0",
3
+ "version": "0.34.0",
4
4
  "description": "",
5
5
  "main": "./dist/main.umd.js",
6
6
  "module": "./dist/main.es.js",