@viamrobotics/sdk 0.0.50 → 0.0.52-alpha.1

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 (40) hide show
  1. package/dist/components/arm/{Client.d.ts → client.d.ts} +1 -1
  2. package/dist/components/arm.d.ts +2 -2
  3. package/dist/components/base/{Client.d.ts → client.d.ts} +1 -1
  4. package/dist/components/base.d.ts +2 -2
  5. package/dist/components/board/{Client.d.ts → client.d.ts} +1 -1
  6. package/dist/components/board.d.ts +2 -2
  7. package/dist/components/camera/{Camera.d.ts → camera.d.ts} +3 -3
  8. package/dist/components/camera/{Client.d.ts → client.d.ts} +3 -3
  9. package/dist/components/camera.d.ts +2 -2
  10. package/dist/components/encoder/{Client.d.ts → client.d.ts} +1 -1
  11. package/dist/components/encoder.d.ts +3 -3
  12. package/dist/components/motor/{Client.d.ts → client.d.ts} +1 -1
  13. package/dist/components/motor.d.ts +2 -2
  14. package/dist/components/{movementsensor/Client.d.ts → movement-sensor/client.d.ts} +1 -1
  15. package/dist/components/movementsensor.d.ts +2 -2
  16. package/dist/components/sensor/{Client.d.ts → client.d.ts} +1 -1
  17. package/dist/components/sensor.d.ts +2 -2
  18. package/dist/extra/stream/{Client.d.ts → client.d.ts} +1 -1
  19. package/dist/extra/stream.d.ts +2 -2
  20. package/dist/main.d.ts +1 -1
  21. package/dist/main.es.js +2402 -2407
  22. package/dist/main.umd.js +5 -5
  23. package/dist/robot/{Client.d.ts → client.d.ts} +3 -3
  24. package/dist/robot/dial.d.ts +1 -1
  25. package/dist/robot/{SessionTransport.d.ts → session-transport.d.ts} +1 -1
  26. package/dist/robot.d.ts +2 -2
  27. package/dist/services/motion/{Client.d.ts → client.d.ts} +1 -1
  28. package/dist/services/motion.d.ts +2 -2
  29. package/package.json +1 -1
  30. package/dist/components/arm/{Arm.d.ts → arm.d.ts} +0 -0
  31. package/dist/components/base/{Base.d.ts → base.d.ts} +0 -0
  32. package/dist/components/board/{Board.d.ts → board.d.ts} +0 -0
  33. package/dist/components/encoder/{Encoder.d.ts → encoder.d.ts} +0 -0
  34. package/dist/components/motor/{Motor.d.ts → motor.d.ts} +0 -0
  35. package/dist/components/{movementsensor/MovementSensor.d.ts → movement-sensor/movement-sensor.d.ts} +0 -0
  36. package/dist/components/sensor/{Sensor.d.ts → sensor.d.ts} +0 -0
  37. package/dist/extra/stream/{Stream.d.ts → stream.d.ts} +0 -0
  38. package/dist/robot/{Robot.d.ts → robot.d.ts} +1 -1
  39. /package/dist/robot/{SessionManager.d.ts → session-manager.d.ts} +0 -0
  40. /package/dist/services/motion/{Motion.d.ts → motion.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  import type { RobotClient } from '../../robot';
2
2
  import pb from '../../gen/component/arm/v1/arm_pb';
3
3
  import type { Options, Pose } from '../../types';
4
- import type { Arm } from './Arm';
4
+ import type { Arm } from './arm';
5
5
  /**
6
6
  * A gRPC-web client for the Arm component.
7
7
  *
@@ -1,2 +1,2 @@
1
- export type { Arm } from './arm/Arm';
2
- export { ArmClient } from './arm/Client';
1
+ export type { Arm } from './arm/arm';
2
+ export { ArmClient } from './arm/client';
@@ -1,6 +1,6 @@
1
1
  import type { RobotClient } from '../../robot';
2
- import type { Base } from './Base';
3
2
  import type { Options, Vector3 } from '../../types';
3
+ import type { Base } from './base';
4
4
  /**
5
5
  * A gRPC-web client for the Base component.
6
6
  *
@@ -1,2 +1,2 @@
1
- export type { Base } from './base/Base';
2
- export { BaseClient } from './base/Client';
1
+ export type { Base } from './base/base';
2
+ export { BaseClient } from './base/client';
@@ -1,7 +1,7 @@
1
- import type { Board } from './Board';
2
1
  import type { RobotClient } from '../../robot';
3
2
  import type { Options } from '../../types';
4
3
  import pb from '../../gen/component/board/v1/board_pb';
4
+ import type { Board } from './board';
5
5
  /**
6
6
  * A gRPC-web client for the Board component.
7
7
  *
@@ -1,2 +1,2 @@
1
- export type { Board } from './board/Board';
2
- export { BoardClient } from './board/Client';
1
+ export type { Board } from './board/board';
2
+ export { BoardClient } from './board/client';
@@ -7,7 +7,7 @@ export interface Properties {
7
7
  /** Camera distortion parameters, if available. */
8
8
  distortionParameters?: DistortionParameters.AsObject;
9
9
  }
10
- export type MimeType = 'image/vnd.viam.rgba' | 'image/jpeg' | 'image/png' | 'pointcloud/pcd' | 'unsupported';
10
+ export type MimeType = '' | 'image/vnd.viam.rgba' | 'image/jpeg' | 'image/png' | 'pointcloud/pcd' | 'unsupported';
11
11
  /** Represents any physical hardware that can capture frames. */
12
12
  export interface Camera {
13
13
  /**
@@ -16,14 +16,14 @@ export interface Camera {
16
16
  * @param mimeType - A specific MIME type to request. This is not necessarily
17
17
  * the same type that will be returned.
18
18
  */
19
- getImage: (mimeType: MimeType) => Promise<Uint8Array>;
19
+ getImage: (mimeType?: MimeType) => Promise<Uint8Array>;
20
20
  /**
21
21
  * Render a frame from a camera to an HTTP response.
22
22
  *
23
23
  * @param mimeType - A specific MIME type to request. This is not necessarily
24
24
  * the same type that will be returned.
25
25
  */
26
- renderFrame: (mimeType: MimeType) => Promise<Blob>;
26
+ renderFrame: (mimeType?: MimeType) => Promise<Blob>;
27
27
  /** Return a point cloud from a camera. */
28
28
  getPointCloud: () => Promise<Uint8Array>;
29
29
  /** Return the camera properties. */
@@ -1,7 +1,7 @@
1
- import type { Camera, MimeType } from './Camera';
2
1
  import type { RobotClient } from '../../robot';
3
2
  import type { Options } from '../../types';
4
3
  import pb from '../../gen/component/camera/v1/camera_pb';
4
+ import type { Camera, MimeType } from './camera';
5
5
  /**
6
6
  * A gRPC-web client for the Camera component.
7
7
  *
@@ -13,8 +13,8 @@ export declare class CameraClient implements Camera {
13
13
  private readonly options;
14
14
  constructor(client: RobotClient, name: string, options?: Options);
15
15
  private get cameraService();
16
- getImage(mimeType: MimeType): Promise<Uint8Array>;
17
- renderFrame(mimeType: MimeType): Promise<Blob>;
16
+ getImage(mimeType?: MimeType): Promise<Uint8Array>;
17
+ renderFrame(mimeType?: MimeType): Promise<Blob>;
18
18
  getPointCloud(): Promise<Uint8Array>;
19
19
  getProperties(): Promise<pb.GetPropertiesResponse.AsObject>;
20
20
  }
@@ -1,2 +1,2 @@
1
- export type { Camera } from './camera/Camera';
2
- export { CameraClient } from './camera/Client';
1
+ export type { Camera, MimeType } from './camera/camera';
2
+ export { CameraClient } from './camera/client';
@@ -1,7 +1,7 @@
1
1
  import type { RobotClient } from '../../robot';
2
2
  import encoderApi from '../../gen/component/encoder/v1/encoder_pb';
3
3
  import { type Options } from '../../types';
4
- import { type Encoder, EncoderPositionType } from './Encoder';
4
+ import { type Encoder, EncoderPositionType } from './encoder';
5
5
  /**
6
6
  * A gRPC-web client for the Encoder component.
7
7
  *
@@ -1,3 +1,3 @@
1
- export type { Encoder, EncoderProperties } from './encoder/Encoder';
2
- export { EncoderPositionType } from './encoder/Encoder';
3
- export { EncoderClient } from './encoder/Client';
1
+ export type { Encoder, EncoderProperties } from './encoder/encoder';
2
+ export { EncoderPositionType } from './encoder/encoder';
3
+ export { EncoderClient } from './encoder/client';
@@ -1,6 +1,6 @@
1
1
  import type { RobotClient } from '../../robot';
2
- import type { Motor } from './Motor';
3
2
  import type { Options } from '../../types';
3
+ import type { Motor } from './motor';
4
4
  /**
5
5
  * A gRPC-web client for the Motor component.
6
6
  *
@@ -1,2 +1,2 @@
1
- export type { Motor } from './motor/Motor';
2
- export { MotorClient } from './motor/Client';
1
+ export type { Motor } from './motor/motor';
2
+ export { MotorClient } from './motor/client';
@@ -1,7 +1,7 @@
1
1
  import type { RobotClient } from '../../robot';
2
2
  import type { Options } from '../../types';
3
3
  import pb from '../../gen/component/movementsensor/v1/movementsensor_pb';
4
- import type { MovementSensor } from './MovementSensor';
4
+ import type { MovementSensor } from './movement-sensor';
5
5
  /**
6
6
  * A gRPC-web client for the MovementSensor component.
7
7
  *
@@ -1,2 +1,2 @@
1
- export type { MovementSensorPosition, MovementSensorProperties, MovementSensor, } from './movementsensor/MovementSensor';
2
- export { MovementSensorClient } from './movementsensor/Client';
1
+ export type { MovementSensorPosition, MovementSensorProperties, MovementSensor, } from './movement-sensor/movement-sensor';
2
+ export { MovementSensorClient } from './movement-sensor/client';
@@ -1,6 +1,6 @@
1
1
  import type { RobotClient } from '../../robot';
2
2
  import type { Options } from '../../types';
3
- import type { Sensor } from './Sensor';
3
+ import type { Sensor } from './sensor';
4
4
  /**
5
5
  * A gRPC-web client for the Sensor component.
6
6
  *
@@ -1,2 +1,2 @@
1
- export type { Sensor } from './sensor/Sensor';
2
- export { SensorClient } from './sensor/Client';
1
+ export type { Sensor } from './sensor/sensor';
2
+ export { SensorClient } from './sensor/client';
@@ -1,7 +1,7 @@
1
1
  import { EventDispatcher } from '../../events';
2
2
  import type { RobotClient } from '../../robot';
3
3
  import type { Options } from '../../types';
4
- import type { Stream } from './Stream';
4
+ import type { Stream } from './stream';
5
5
  /**
6
6
  * A gRPC-web client for a Stream.
7
7
  *
@@ -1,2 +1,2 @@
1
- export type { Stream } from './stream/Stream';
2
- export { StreamClient } from './stream/Client';
1
+ export type { Stream } from './stream/stream';
2
+ export { StreamClient } from './stream/client';
package/dist/main.d.ts CHANGED
@@ -58,7 +58,7 @@ export { type Board, BoardClient } from './components/board';
58
58
  * @group Raw Protobufs
59
59
  */
60
60
  export { default as cameraApi } from './gen/component/camera/v1/camera_pb';
61
- export { type Camera, CameraClient } from './components/camera';
61
+ export { type Camera, type MimeType, CameraClient } from './components/camera';
62
62
  /**
63
63
  * Raw Protobuf interfaces for an Encoder component.
64
64
  *