@viamrobotics/sdk 0.0.16 → 0.0.18

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.
@@ -1,3 +1,2 @@
1
1
  export type { Robot } from './robot/Robot';
2
2
  export { RobotClient } from './robot/Client';
3
- export * as robotApi from '../gen/robot/v1/robot_pb.esm';
@@ -0,0 +1,11 @@
1
+ declare type Callback = (args: any) => void;
2
+ export declare class EventDispatcher {
3
+ listeners: Record<string, Set<Callback>>;
4
+ on(type: string, listener: Callback): void;
5
+ once(type: string, listener: Callback): void;
6
+ has(type: string, listener: Callback): boolean | undefined;
7
+ off(type: string, listener: Callback): void;
8
+ emit(type: string, args: any): void;
9
+ }
10
+ export declare const events: EventDispatcher;
11
+ export {};
package/dist/main.d.ts CHANGED
@@ -23,12 +23,13 @@ import motionApi from './gen/service/motion/v1/motion_pb.esm';
23
23
  import motorApi from './gen/component/motor/v1/motor_pb.esm';
24
24
  import movementSensorApi from './gen/component/movementsensor/v1/movementsensor_pb.esm';
25
25
  import navigationApi from './gen/service/navigation/v1/navigation_pb.esm';
26
+ import robotApi from './gen/robot/v1/robot_pb.esm';
26
27
  import sensorApi from './gen/component/sensor/v1/sensor_pb.esm';
27
28
  import sensorsApi from './gen/service/sensors/v1/sensors_pb.esm';
28
29
  import servoApi from './gen/component/servo/v1/servo_pb.esm';
29
30
  import slamApi from './gen/service/slam/v1/slam_pb.esm';
30
31
  import streamApi from './gen/proto/stream/v1/stream_pb.esm';
31
32
  import visionApi from './gen/service/vision/v1/vision_pb.esm';
32
- export { type Robot, RobotClient, robotApi } from './components/robot';
33
- export { commonApi, armApi, baseApi, boardApi, cameraApi, gantryApi, genericApi, gripperApi, inputControllerApi, motorApi, motionApi, movementSensorApi, servoApi, navigationApi, sensorApi, sensorsApi, slamApi, visionApi, streamApi, Camera, Motor, Base, Board, Sensor, BaseClient, BoardClient, CameraClient, Client, MotorClient, SensorClient, StreamClient, };
33
+ export { type Robot, RobotClient } from './components/robot';
34
+ export { commonApi, armApi, baseApi, boardApi, cameraApi, gantryApi, genericApi, gripperApi, inputControllerApi, motorApi, motionApi, movementSensorApi, servoApi, navigationApi, robotApi, sensorApi, sensorsApi, slamApi, visionApi, streamApi, Camera, Motor, Base, Board, Sensor, BaseClient, BoardClient, CameraClient, Client, MotorClient, SensorClient, StreamClient, };
34
35
  export type { ResponseStream, ServiceError, } from './gen/robot/v1/robot_pb_service.esm';
package/dist/main.es.js CHANGED
@@ -199935,10 +199935,7 @@ var timestamp_pb$1 = {};
199935
199935
  PEER_CONNECTION_TYPE_WEBRTC: 2
199936
199936
  }, r.object.extend(o, proto.viam.robot.v1);
199937
199937
  })(robot_pb);
199938
- const robot_pb_esm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
199939
- __proto__: null,
199940
- default: robot_pb
199941
- }, Symbol.toStringTag, { value: "Module" })), timeoutBlob = new Blob(
199938
+ const timeoutBlob = new Blob(
199942
199939
  [
199943
199940
  `self.onmessage = function(e) {
199944
199941
  setTimeout(() => self.postMessage(""), e.data);
@@ -389130,7 +389127,7 @@ export {
389130
389127
  motor_pb as motorApi,
389131
389128
  movementsensor_pb as movementSensorApi,
389132
389129
  navigation_pb as navigationApi,
389133
- robot_pb_esm as robotApi,
389130
+ robot_pb as robotApi,
389134
389131
  sensor_pb as sensorApi,
389135
389132
  sensors_pb as sensorsApi,
389136
389133
  servo_pb as servoApi,