@viamrobotics/sdk 0.73.0-b.0 → 0.73.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 (123) hide show
  1. package/dist/app/app-client.d.ts +254 -130
  2. package/dist/app/billing-client.d.ts +15 -6
  3. package/dist/app/data-client.d.ts +252 -175
  4. package/dist/app/ml-training-client.d.ts +5 -5
  5. package/dist/app/provisioning-client.d.ts +4 -2
  6. package/dist/app/viam-client.d.ts +1 -1
  7. package/dist/app/viam-transport.d.ts +4 -1
  8. package/dist/assert.d.ts +3 -2
  9. package/dist/components/arm/arm.d.ts +2 -2
  10. package/dist/components/arm/client.d.ts +1 -1
  11. package/dist/components/audio-out/audio-out.d.ts +7 -6
  12. package/dist/components/audioin.d.ts +1 -1
  13. package/dist/components/audioout.d.ts +1 -1
  14. package/dist/components/base/base.d.ts +11 -10
  15. package/dist/components/board/board.d.ts +15 -8
  16. package/dist/components/board/client.d.ts +1 -1
  17. package/dist/components/camera/camera.d.ts +4 -2
  18. package/dist/components/camera/client.d.ts +2 -2
  19. package/dist/components/encoder/encoder.d.ts +5 -4
  20. package/dist/components/encoder.d.ts +1 -1
  21. package/dist/components/gantry/gantry.d.ts +10 -7
  22. package/dist/components/generic/generic.d.ts +4 -1
  23. package/dist/components/gripper/gripper.d.ts +2 -1
  24. package/dist/components/input-controller/input-controller.d.ts +15 -5
  25. package/dist/components/inputcontroller.d.ts +1 -1
  26. package/dist/components/motor/motor.d.ts +19 -17
  27. package/dist/components/movement-sensor/movement-sensor.d.ts +42 -14
  28. package/dist/components/pose-tracker/pose-tracker.d.ts +4 -1
  29. package/dist/components/power-sensor/power-sensor.d.ts +20 -6
  30. package/dist/components/switch/switch.d.ts +3 -2
  31. package/dist/debug.d.ts +15 -7
  32. package/dist/events.d.ts +10 -12
  33. package/dist/extra/stream/client.d.ts +11 -12
  34. package/dist/extra/stream/stream.d.ts +1 -1
  35. package/dist/gen/app/agent/v1/agent_connect.d.ts +1 -1
  36. package/dist/gen/app/build/v1/build_connect.d.ts +1 -1
  37. package/dist/gen/app/cloudslam/v1/cloud_slam_connect.d.ts +1 -1
  38. package/dist/gen/app/data/v1/data_connect.d.ts +1 -1
  39. package/dist/gen/app/datapipelines/v1/data_pipelines_connect.d.ts +1 -1
  40. package/dist/gen/app/dataset/v1/dataset_connect.d.ts +1 -1
  41. package/dist/gen/app/datasync/v1/data_sync_connect.d.ts +1 -1
  42. package/dist/gen/app/mlinference/v1/ml_inference_connect.d.ts +1 -1
  43. package/dist/gen/app/mltraining/v1/ml_training_connect.d.ts +1 -1
  44. package/dist/gen/app/packages/v1/packages_connect.d.ts +1 -1
  45. package/dist/gen/app/v1/app_connect.d.ts +1 -1
  46. package/dist/gen/app/v1/billing_connect.d.ts +1 -1
  47. package/dist/gen/app/v1/end_user_connect.d.ts +1 -1
  48. package/dist/gen/app/v1/robot_connect.d.ts +1 -1
  49. package/dist/gen/component/arm/v1/arm_connect.d.ts +1 -1
  50. package/dist/gen/component/audioin/v1/audioin_connect.d.ts +1 -1
  51. package/dist/gen/component/audioout/v1/audioout_connect.d.ts +1 -1
  52. package/dist/gen/component/base/v1/base_connect.d.ts +1 -1
  53. package/dist/gen/component/board/v1/board_connect.d.ts +1 -1
  54. package/dist/gen/component/button/v1/button_connect.d.ts +1 -1
  55. package/dist/gen/component/camera/v1/camera_connect.d.ts +1 -1
  56. package/dist/gen/component/encoder/v1/encoder_connect.d.ts +1 -1
  57. package/dist/gen/component/gantry/v1/gantry_connect.d.ts +1 -1
  58. package/dist/gen/component/generic/v1/generic_connect.d.ts +1 -1
  59. package/dist/gen/component/gripper/v1/gripper_connect.d.ts +1 -1
  60. package/dist/gen/component/inputcontroller/v1/input_controller_connect.d.ts +1 -1
  61. package/dist/gen/component/motor/v1/motor_connect.d.ts +1 -1
  62. package/dist/gen/component/movementsensor/v1/movementsensor_connect.d.ts +1 -1
  63. package/dist/gen/component/posetracker/v1/pose_tracker_connect.d.ts +1 -1
  64. package/dist/gen/component/powersensor/v1/powersensor_connect.d.ts +1 -1
  65. package/dist/gen/component/sensor/v1/sensor_connect.d.ts +1 -1
  66. package/dist/gen/component/servo/v1/servo_connect.d.ts +1 -1
  67. package/dist/gen/component/switch/v1/switch_connect.d.ts +1 -1
  68. package/dist/gen/component/testecho/v1/testecho_connect.d.ts +1 -1
  69. package/dist/gen/google/bytestream/bytestream_connect.d.ts +1 -1
  70. package/dist/gen/google/iam/v1/iam_policy_connect.d.ts +1 -1
  71. package/dist/gen/google/longrunning/operations_connect.d.ts +1 -1
  72. package/dist/gen/grpc/reflection/v1/reflection_connect.d.ts +1 -1
  73. package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_connect.d.ts +1 -1
  74. package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_connect.d.ts +1 -1
  75. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts +1 -1
  76. package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_connect.d.ts +1 -1
  77. package/dist/gen/proto/rpc/examples/echo/v1/echo_connect.d.ts +1 -1
  78. package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_connect.d.ts +1 -1
  79. package/dist/gen/proto/rpc/v1/auth_connect.d.ts +1 -1
  80. package/dist/gen/proto/rpc/webrtc/v1/signaling_connect.d.ts +1 -1
  81. package/dist/gen/provisioning/v1/provisioning_connect.d.ts +1 -1
  82. package/dist/gen/robot/v1/robot_connect.d.ts +1 -1
  83. package/dist/gen/service/datamanager/v1/data_manager_connect.d.ts +1 -1
  84. package/dist/gen/service/discovery/v1/discovery_connect.d.ts +1 -1
  85. package/dist/gen/service/generic/v1/generic_connect.d.ts +1 -1
  86. package/dist/gen/service/mlmodel/v1/mlmodel_connect.d.ts +1 -1
  87. package/dist/gen/service/motion/v1/motion_connect.d.ts +1 -1
  88. package/dist/gen/service/navigation/v1/navigation_connect.d.ts +1 -1
  89. package/dist/gen/service/sensors/v1/sensors_connect.d.ts +1 -1
  90. package/dist/gen/service/shell/v1/shell_connect.d.ts +1 -1
  91. package/dist/gen/service/slam/v1/slam_connect.d.ts +1 -1
  92. package/dist/gen/service/video/v1/video_connect.d.ts +1 -1
  93. package/dist/gen/service/vision/v1/vision_connect.d.ts +1 -1
  94. package/dist/gen/service/worldstatestore/v1/world_state_store_connect.d.ts +1 -1
  95. package/dist/gen/stream/v1/stream_connect.d.ts +1 -1
  96. package/dist/main.d.ts +11 -10
  97. package/dist/main.es.js +33210 -28872
  98. package/dist/main.umd.js +7 -6
  99. package/dist/robot/client.d.ts +86 -59
  100. package/dist/robot/dial.d.ts +10 -7
  101. package/dist/robot/robot.d.ts +29 -27
  102. package/dist/rpc/client-channel.d.ts +1 -1
  103. package/dist/rpc/client-stream.d.ts +5 -4
  104. package/dist/rpc/connection-closed-error.d.ts +1 -1
  105. package/dist/rpc/dial.d.ts +41 -34
  106. package/dist/rpc/signaling-exchange.d.ts +1 -1
  107. package/dist/rpc/stream-client-stream.d.ts +1 -1
  108. package/dist/rpc/unary-client-stream.d.ts +1 -1
  109. package/dist/services/data-manager/client.d.ts +14 -5
  110. package/dist/services/data-manager/data-manager.d.ts +1 -1
  111. package/dist/services/generic/client.d.ts +1 -1
  112. package/dist/services/generic/generic.d.ts +2 -1
  113. package/dist/services/motion/motion.d.ts +78 -53
  114. package/dist/services/navigation/client.d.ts +1 -1
  115. package/dist/services/navigation/navigation.d.ts +4 -2
  116. package/dist/services/slam/client.d.ts +1 -1
  117. package/dist/services/slam/slam.d.ts +6 -4
  118. package/dist/services/video/video.d.ts +6 -2
  119. package/dist/services/vision/vision.d.ts +19 -13
  120. package/dist/services/world-state-store/world-state-store.d.ts +19 -6
  121. package/dist/types.d.ts +7 -5
  122. package/dist/utils.d.ts +5 -5
  123. package/package.json +29 -29
@@ -1,5 +1,5 @@
1
1
  import { type Transport } from '@connectrpc/connect';
2
- import { type ModelType, type TrainingStatus } from '../gen/app/mltraining/v1/ml_training_pb';
2
+ import { ModelType, TrainingStatus } from '../gen/app/mltraining/v1/ml_training_pb';
3
3
  export declare class MlTrainingClient {
4
4
  private client;
5
5
  constructor(transport: Transport);
@@ -15,7 +15,7 @@ export declare class MlTrainingClient {
15
15
  * '<your-model-name>',
16
16
  * '1.0.0',
17
17
  * ModelType.SINGLE_LABEL_CLASSIFICATION,
18
- * ['tag1', 'tag2'],
18
+ * ['tag1', 'tag2']
19
19
  * );
20
20
  * ```
21
21
  *
@@ -42,7 +42,7 @@ export declare class MlTrainingClient {
42
42
  * 'viam:classification-tflite',
43
43
  * '1.0.0',
44
44
  * '<your-model-name>',
45
- * '1.0.0',
45
+ * '1.0.0'
46
46
  * );
47
47
  * ```
48
48
  *
@@ -80,7 +80,7 @@ export declare class MlTrainingClient {
80
80
  * ```ts
81
81
  * const jobs = await mlTrainingClient.listTrainingJobs(
82
82
  * '<organization-id>',
83
- * TrainingStatus.RUNNING,
83
+ * TrainingStatus.RUNNING
84
84
  * );
85
85
  * ```
86
86
  *
@@ -122,4 +122,4 @@ export declare class MlTrainingClient {
122
122
  */
123
123
  deleteCompletedTrainingJob(id: string): Promise<null>;
124
124
  }
125
- export { ModelType, TrainingStatus } from '../gen/app/mltraining/v1/ml_training_pb';
125
+ export { ModelType, TrainingStatus, } from '../gen/app/mltraining/v1/ml_training_pb';
@@ -10,7 +10,8 @@ export declare class ProvisioningClient {
10
10
  */
11
11
  getSmartMachineStatus(): Promise<import("../gen/provisioning/v1/provisioning_pb").GetSmartMachineStatusResponse>;
12
12
  /**
13
- * Set the network credentials of the Smart Machine, so it can connect to the internet.
13
+ * Set the network credentials of the Smart Machine, so it can connect to the
14
+ * internet.
14
15
  *
15
16
  * @param type - The type of network
16
17
  * @param ssid - The SSID of the network
@@ -18,7 +19,8 @@ export declare class ProvisioningClient {
18
19
  */
19
20
  setNetworkCredentials(type: string, ssid: string, psk: string): Promise<void>;
20
21
  /**
21
- * Set the Viam credentials of the smart machine credentials, so it connect to the Cloud.
22
+ * Set the Viam credentials of the smart machine credentials, so it connect to
23
+ * the Cloud.
22
24
  *
23
25
  * @param cloud - The configuration of the Cloud
24
26
  */
@@ -26,6 +26,6 @@ export declare class ViamClient {
26
26
  readonly billingClient: BillingClient;
27
27
  constructor(transport: Transport, credentials: Credentials);
28
28
  getRobotSecretFromHost(host: string): Promise<string | undefined>;
29
- connectToMachine({ host, id }: ViamClientMachineConnectionOpts): Promise<import("../robot").RobotClient>;
29
+ connectToMachine({ host, id, }: ViamClientMachineConnectionOpts): Promise<import("../robot").RobotClient>;
30
30
  }
31
31
  export {};
@@ -1,5 +1,8 @@
1
1
  import type { Transport } from '@connectrpc/connect';
2
- /** Credentials are either used to obtain an access token or provide an existing one */
2
+ /**
3
+ * Credentials are either used to obtain an access token or provide an existing
4
+ * one
5
+ */
3
6
  export type Credentials = Credential | AccessToken;
4
7
  /** A credential that can be exchanged to obtain an access token */
5
8
  export interface Credential {
package/dist/assert.d.ts CHANGED
@@ -2,7 +2,8 @@
2
2
  /**
3
3
  * Assert that a value is defined.
4
4
  *
5
- * @example Const stringify = (value: number | undefined): number => { assertExists(value) return
6
- * `${value}` // TS now knows that value is of type `number` }
5
+ * @example Const stringify = (value: number | undefined): number => {
6
+ * assertExists(value) return `${value}` // TS now knows that value is of type
7
+ * `number` }
7
8
  */
8
9
  export declare const assertExists: <T>(value: T, message: string) => asserts value is NonNullable<T>;
@@ -62,8 +62,8 @@ export interface Arm extends Resource {
62
62
  * API](https://docs.viam.com/dev/reference/apis/components/arm/#getkinematics).
63
63
  * ```
64
64
  *
65
- * @returns The legacy kinematics data shape or the newer object containing kinematics data plus a
66
- * map of URDF mesh file paths to mesh data.
65
+ * @returns The legacy kinematics data shape or the newer object containing
66
+ * kinematics data plus a map of URDF mesh file paths to mesh data.
67
67
  */
68
68
  getKinematics: (extra?: Struct) => Promise<GetKinematicsResult>;
69
69
  /**
@@ -4,7 +4,7 @@ import { JointPositions } from '../../gen/component/arm/v1/arm_pb';
4
4
  import type { RobotClient } from '../../robot';
5
5
  import type { Options, Pose } from '../../types';
6
6
  import type { Arm } from './arm';
7
- import { type Mesh } from '../../gen/common/v1/common_pb';
7
+ import { Mesh } from '../../gen/common/v1/common_pb';
8
8
  import type { GetKinematicsResult } from '../../utils';
9
9
  /**
10
10
  * A gRPC-web client for the Arm component.
@@ -16,15 +16,16 @@ export interface AudioOut extends Resource {
16
16
  * ```
17
17
  *
18
18
  * @param audioData - The audio data to play
19
- * @param audioInfo - Information about the audio format (optional, required for raw pcm data)
19
+ * @param audioInfo - Information about the audio format (optional, required
20
+ * for raw pcm data)
20
21
  */
21
22
  play: (audioData: Uint8Array, audioInfo?: AudioInfo, extra?: Struct) => Promise<void>;
22
23
  /**
23
24
  * Stream audio chunks to the device for playback.
24
25
  *
25
- * The caller provides an async iterable of raw audio bytes. Each chunk must match the codec and
26
- * format described by `audioInfo`. Playback starts as chunks arrive on the server, before the
27
- * iterable is exhausted.
26
+ * The caller provides an async iterable of raw audio bytes. Each chunk must
27
+ * match the codec and format described by `audioInfo`. Playback starts as
28
+ * chunks arrive on the server, before the iterable is exhausted.
28
29
  *
29
30
  * @example
30
31
  *
@@ -43,8 +44,8 @@ export interface AudioOut extends Resource {
43
44
  * await audioOut.playStream(audioInfo, chunks());
44
45
  * ```
45
46
  *
46
- * @param audioInfo - Information about the audio format (codec, sample rate, channels) that
47
- * applies to every chunk
47
+ * @param audioInfo - Information about the audio format (codec, sample rate,
48
+ * channels) that applies to every chunk
48
49
  * @param chunks - Async iterable of audio byte chunks to play in order
49
50
  */
50
51
  playStream: (audioInfo: AudioInfo, chunks: AsyncIterable<Uint8Array>, extra?: Struct) => Promise<void>;
@@ -1,3 +1,3 @@
1
1
  export { type AudioIn, type AudioChunk } from './audio-in/audio-in';
2
2
  export { AudioInClient } from './audio-in/client';
3
- export { type AudioProperties, AudioCodec, type AudioCodecType } from '../audio-common';
3
+ export { type AudioProperties, AudioCodec, type AudioCodecType, } from '../audio-common';
@@ -1,3 +1,3 @@
1
1
  export { type AudioOut } from './audio-out/audio-out';
2
2
  export { AudioOutClient } from './audio-out/client';
3
- export { type AudioProperties, AudioCodec, type AudioCodecType } from '../audio-common';
3
+ export { type AudioProperties, AudioCodec, type AudioCodecType, } from '../audio-common';
@@ -20,8 +20,8 @@ export interface Base extends Resource {
20
20
  */
21
21
  getGeometries: (extra?: Struct) => Promise<Geometry[]>;
22
22
  /**
23
- * Move a base in a straight line by a given distance at a given speed. This method blocks until
24
- * completed or cancelled.
23
+ * Move a base in a straight line by a given distance at a given speed. This
24
+ * method blocks until completed or cancelled.
25
25
  *
26
26
  * @example
27
27
  *
@@ -43,8 +43,8 @@ export interface Base extends Resource {
43
43
  */
44
44
  moveStraight(distanceMm: number, mmPerSec: number, extra?: Struct): Promise<void>;
45
45
  /**
46
- * Spin a base by a given angle at a given angular speed. This method blocks until completed or
47
- * cancelled.
46
+ * Spin a base by a given angle at a given angular speed. This method blocks
47
+ * until completed or cancelled.
48
48
  *
49
49
  * @example
50
50
  *
@@ -66,7 +66,8 @@ export interface Base extends Resource {
66
66
  */
67
67
  spin(angleDeg: number, degsPerSec: number, extra?: Struct): Promise<void>;
68
68
  /**
69
- * Set the linear and angular power of a base from -1 to 1 in terms of power for each direction.
69
+ * Set the linear and angular power of a base from -1 to 1 in terms of power
70
+ * for each direction.
70
71
  *
71
72
  * @example
72
73
  *
@@ -76,25 +77,25 @@ export interface Base extends Resource {
76
77
  * // Move forward at 75% power
77
78
  * await base.setPower(
78
79
  * { x: 0, y: 0.75, z: 0 }, // linear power
79
- * { x: 0, y: 0, z: 0 }, // no rotation
80
+ * { x: 0, y: 0, z: 0 } // no rotation
80
81
  * );
81
82
  *
82
83
  * // Move straight back at 100% power
83
84
  * await base.setPower(
84
85
  * { x: 0, y: -1, z: 0 }, // linear power
85
- * { x: 0, y: 0, z: 0 }, // no rotation
86
+ * { x: 0, y: 0, z: 0 } // no rotation
86
87
  * );
87
88
  *
88
89
  * // Turn counter-clockwise at 50% power
89
90
  * await base.setPower(
90
91
  * { x: 0, y: 0, z: 0 }, // no linear movement
91
- * { x: 0, y: 0, z: 0.5 }, // rotate around z-axis
92
+ * { x: 0, y: 0, z: 0.5 } // rotate around z-axis
92
93
  * );
93
94
  *
94
95
  * // Turn clockwise at 60% power
95
96
  * await base.setPower(
96
97
  * { x: 0, y: 0, z: 0 }, // no linear movement
97
- * { x: 0, y: 0, z: -0.6 }, // rotate around z-axis
98
+ * { x: 0, y: 0, z: -0.6 } // rotate around z-axis
98
99
  * );
99
100
  * ```
100
101
  *
@@ -116,7 +117,7 @@ export interface Base extends Resource {
116
117
  * // Move forward at 50mm/s while spinning 15 degrees per second to the left
117
118
  * await base.setVelocity(
118
119
  * { x: 0, y: 50, z: 0 }, // linear velocity in mm/s
119
- * { x: 0, y: 0, z: 15 }, // 15 degrees per second counter-clockwise
120
+ * { x: 0, y: 0, z: 15 } // 15 degrees per second counter-clockwise
120
121
  * );
121
122
  * ```
122
123
  *
@@ -10,8 +10,8 @@ export interface Tick {
10
10
  time: number;
11
11
  }
12
12
  /**
13
- * Represents a physical general purpose compute board that contains various components such as
14
- * analog readers, and digital interrupts.
13
+ * Represents a physical general purpose compute board that contains various
14
+ * components such as analog readers, and digital interrupts.
15
15
  */
16
16
  export interface Board extends Resource {
17
17
  /**
@@ -48,7 +48,8 @@ export interface Board extends Resource {
48
48
  * API](https://docs.viam.com/dev/reference/apis/components/board/#setgpio).
49
49
  *
50
50
  * @param pin - The pin number.
51
- * @param high - When true, set the given pin to high. When false, set the given pin to low.
51
+ * @param high - When true, set the given pin to high. When false, set the
52
+ * given pin to low.
52
53
  */
53
54
  setGPIO(pin: string, high: boolean, extra?: Struct): Promise<void>;
54
55
  /**
@@ -124,7 +125,8 @@ export interface Board extends Resource {
124
125
  * API](https://docs.viam.com/dev/reference/apis/components/board/#setpwmfrequency).
125
126
  *
126
127
  * @param pin - The pin.
127
- * @param frequencyHz - The PWM frequency, in hertz. 0 will use the board's default PWM frequency.
128
+ * @param frequencyHz - The PWM frequency, in hertz. 0 will use the board's
129
+ * default PWM frequency.
128
130
  */
129
131
  setPWMFrequency(pin: string, frequencyHz: number, extra?: Struct): Promise<void>;
130
132
  /**
@@ -137,7 +139,9 @@ export interface Board extends Resource {
137
139
  *
138
140
  * // Get the value of the analog signal "my_example_analog_reader" has most
139
141
  * // recently measured.
140
- * const reading = await board.readAnalogReader('my_example_analog_reader');
142
+ * const reading = await board.readAnalogReader(
143
+ * 'my_example_analog_reader'
144
+ * );
141
145
  * ```
142
146
  *
143
147
  * For more information, see [Board
@@ -166,7 +170,8 @@ export interface Board extends Resource {
166
170
  */
167
171
  writeAnalog(pin: string, value: number, extra?: Struct): Promise<void>;
168
172
  /**
169
- * Return the current value of the interrupt which is based on the type of interrupt.
173
+ * Return the current value of the interrupt which is based on the type of
174
+ * interrupt.
170
175
  *
171
176
  * @example
172
177
  *
@@ -174,7 +179,9 @@ export interface Board extends Resource {
174
179
  * const board = new VIAM.BoardClient(machine, 'my_board');
175
180
  *
176
181
  * // Get the number of times this DigitalInterrupt has been interrupted with a tick.
177
- * const count = await board.getDigitalInterruptValue('my_example_digital_interrupt');
182
+ * const count = await board.getDigitalInterruptValue(
183
+ * 'my_example_digital_interrupt'
184
+ * );
178
185
  * ```
179
186
  *
180
187
  * For more information, see [Board
@@ -196,7 +203,7 @@ export interface Board extends Resource {
196
203
  *
197
204
  * for await (const tick of ticks) {
198
205
  * console.log(
199
- * `Pin ${tick.pinName} changed to ${tick.high ? 'high' : 'low'} at ${tick.time}`,
206
+ * `Pin ${tick.pinName} changed to ${tick.high ? 'high' : 'low'} at ${tick.time}`
200
207
  * );
201
208
  * }
202
209
  * ```
@@ -1,6 +1,6 @@
1
1
  import type { RobotClient } from '../../robot';
2
2
  import type { Options } from '../../types';
3
- import { type Duration, Struct, type JsonValue } from '@bufbuild/protobuf';
3
+ import { Duration, Struct, type JsonValue } from '@bufbuild/protobuf';
4
4
  import type { CallOptions } from '@connectrpc/connect';
5
5
  import { type Board, type PowerMode, type Tick } from './board';
6
6
  /**
@@ -36,8 +36,10 @@ export interface Camera extends Resource {
36
36
  * const images = await camera.getImages();
37
37
  * ```
38
38
  *
39
- * @param filterSourceNames - A list of source names to filter the images by. If empty or
40
- * undefined, all images will be returned.
39
+ * TODO(docs): include docs link for get images TS example
40
+ *
41
+ * @param filterSourceNames - A list of source names to filter the images by.
42
+ * If empty or undefined, all images will be returned.
41
43
  * @param extra - Extra parameters to pass to the camera.
42
44
  */
43
45
  getImages: (filterSourceNames?: string[], extra?: Struct) => Promise<{
@@ -18,12 +18,12 @@ export declare class CameraClient implements Camera {
18
18
  getImages(filterSourceNames?: string[], extra?: {}, callOptions?: CallOptions): Promise<{
19
19
  images: {
20
20
  sourceName: string;
21
- image: Uint8Array<ArrayBufferLike>;
21
+ image: Uint8Array;
22
22
  mimeType: string;
23
23
  }[];
24
24
  metadata: ResponseMetadata;
25
25
  }>;
26
- getPointCloud(extra?: {}, callOptions?: CallOptions): Promise<Uint8Array<ArrayBufferLike>>;
26
+ getPointCloud(extra?: {}, callOptions?: CallOptions): Promise<Uint8Array>;
27
27
  getProperties(callOptions?: CallOptions): Promise<import("../../gen/component/camera/v1/camera_pb").GetPropertiesResponse>;
28
28
  getStatus(callOptions?: CallOptions): Promise<JsonValue>;
29
29
  doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
@@ -39,8 +39,8 @@ export interface Encoder extends Resource {
39
39
  */
40
40
  getProperties(extra?: Struct): Promise<EncoderProperties>;
41
41
  /**
42
- * Return the current position either in relative units (ticks away from a zero position) or
43
- * absolute units (degrees along a circle).
42
+ * Return the current position either in relative units (ticks away from a
43
+ * zero position) or absolute units (degrees along a circle).
44
44
  *
45
45
  * @example
46
46
  *
@@ -49,7 +49,7 @@ export interface Encoder extends Resource {
49
49
  *
50
50
  * // Get the position of the encoder in ticks
51
51
  * const [position, posType] = await encoder.getPosition(
52
- * EncoderPositionType.POSITION_TYPE_TICKS_COUNT,
52
+ * EncoderPositionType.POSITION_TYPE_TICKS_COUNT
53
53
  * );
54
54
  * console.log('The encoder position is currently', position, posType);
55
55
  * ```
@@ -57,7 +57,8 @@ export interface Encoder extends Resource {
57
57
  * For more information, see [Encoder
58
58
  * API](https://docs.viam.com/dev/reference/apis/components/encoder/#getposition).
59
59
  *
60
- * @param positionType - The type of position the encoder returns (ticks or degrees)
60
+ * @param positionType - The type of position the encoder returns (ticks or
61
+ * degrees)
61
62
  */
62
63
  getPosition(positionType?: EncoderPositionType, extra?: Struct): Promise<readonly [number, EncoderPositionType]>;
63
64
  }
@@ -1,2 +1,2 @@
1
1
  export { EncoderClient } from './encoder/client';
2
- export { EncoderPositionType, EncoderProperties, type Encoder } from './encoder/encoder';
2
+ export { EncoderPositionType, EncoderProperties, type Encoder, } from './encoder/encoder';
@@ -35,12 +35,13 @@ export interface Gantry extends Resource {
35
35
  * For more information, see [Gantry
36
36
  * API](https://docs.viam.com/dev/reference/apis/components/gantry/#getkinematics).
37
37
  *
38
- * @returns The legacy kinematics data shape or the newer object containing kinematics data plus a
39
- * map of URDF mesh file paths to mesh data.
38
+ * @returns The legacy kinematics data shape or the newer object containing
39
+ * kinematics data plus a map of URDF mesh file paths to mesh data.
40
40
  */
41
41
  getKinematics: (extra?: Struct) => Promise<GetKinematicsResult>;
42
42
  /**
43
- * Move each axis of the gantry to the positionsMm at the speeds in speedsMmPerSec.
43
+ * Move each axis of the gantry to the positionsMm at the speeds in
44
+ * speedsMmPerSec.
44
45
  *
45
46
  * @example
46
47
  *
@@ -59,8 +60,8 @@ export interface Gantry extends Resource {
59
60
  * API](https://docs.viam.com/dev/reference/apis/components/gantry/#movetoposition).
60
61
  *
61
62
  * @param positionsMm - The goal positions for each axis of the gantry.
62
- * @param speedsMmPerSec - The desired speed for each axis to move to the respective position in
63
- * positionsMm.
63
+ * @param speedsMmPerSec - The desired speed for each axis to move to the
64
+ * respective position in positionsMm.
64
65
  */
65
66
  moveToPosition: (positionsMm: number[], speedsMmPerSec: number[], extra?: Struct) => Promise<void>;
66
67
  /**
@@ -82,7 +83,8 @@ export interface Gantry extends Resource {
82
83
  */
83
84
  getPosition: (extra?: Struct) => Promise<number[]>;
84
85
  /**
85
- * Runs the homing sequence to find the start and end positions of the gantry axis.
86
+ * Runs the homing sequence to find the start and end positions of the gantry
87
+ * axis.
86
88
  *
87
89
  * @example
88
90
  *
@@ -96,7 +98,8 @@ export interface Gantry extends Resource {
96
98
  * For more information, see [Gantry
97
99
  * API](https://docs.viam.com/dev/reference/apis/components/gantry/#home).
98
100
  *
99
- * @returns A bool representing whether the gantry has run the homing sequence successfully.
101
+ * @returns A bool representing whether the gantry has run the homing sequence
102
+ * successfully.
100
103
  */
101
104
  home: (extra?: Struct) => Promise<boolean>;
102
105
  /**
@@ -8,7 +8,10 @@ export interface Generic extends Resource {
8
8
  * @example
9
9
  *
10
10
  * ```ts
11
- * const generic = new VIAM.GenericComponentClient(machine, 'my_generic_component');
11
+ * const generic = new VIAM.GenericComponentClient(
12
+ * machine,
13
+ * 'my_generic_component'
14
+ * );
12
15
  *
13
16
  * // Get the geometries of this component
14
17
  * const geometries = await generic.getGeometries();
@@ -86,7 +86,8 @@ export interface Gripper extends Resource {
86
86
  */
87
87
  isMoving: () => Promise<boolean>;
88
88
  /**
89
- * Get information about whether the gripper is currently holding onto an object.
89
+ * Get information about whether the gripper is currently holding onto an
90
+ * object.
90
91
  *
91
92
  * @example
92
93
  *
@@ -3,7 +3,10 @@ import * as pb from '../../gen/component/inputcontroller/v1/input_controller_pb'
3
3
  import type { Resource } from '../../types';
4
4
  export type InputControllerEvent = PlainMessage<pb.Event>;
5
5
  export declare const InputControllerEvent: typeof pb.Event;
6
- /** Represents a human interface device like a mouse or keyboard that emits events for controls. */
6
+ /**
7
+ * Represents a human interface device like a mouse or keyboard that emits
8
+ * events for controls.
9
+ */
7
10
  export interface InputController extends Resource {
8
11
  /**
9
12
  * Returns a list of events representing the last event on each control.
@@ -11,7 +14,10 @@ export interface InputController extends Resource {
11
14
  * @example
12
15
  *
13
16
  * ```ts
14
- * const controller = new VIAM.InputControllerClient(machine, 'my_controller');
17
+ * const controller = new VIAM.InputControllerClient(
18
+ * machine,
19
+ * 'my_controller'
20
+ * );
15
21
  *
16
22
  * // Get the most recent Event for each Control
17
23
  * const recentEvents = await controller.getEvents();
@@ -23,13 +29,17 @@ export interface InputController extends Resource {
23
29
  */
24
30
  getEvents(extra?: Struct): Promise<InputControllerEvent[]>;
25
31
  /**
26
- * TriggerEvent, where supported, injects an InputControllerEvent into an input controller to
27
- * (virtually) generate events like button presses or axis movements.
32
+ * TriggerEvent, where supported, injects an InputControllerEvent into an
33
+ * input controller to (virtually) generate events like button presses or axis
34
+ * movements.
28
35
  *
29
36
  * @example
30
37
  *
31
38
  * ```ts
32
- * const controller = new VIAM.InputControllerClient(machine, 'my_controller');
39
+ * const controller = new VIAM.InputControllerClient(
40
+ * machine,
41
+ * 'my_controller'
42
+ * );
33
43
  *
34
44
  * // Create a "Button is Pressed" event for the control BUTTON_START
35
45
  * const buttonPressEvent = new VIAM.InputControllerEvent({
@@ -1,2 +1,2 @@
1
1
  export { InputControllerClient } from './input-controller/client';
2
- export { InputControllerEvent, type InputController } from './input-controller/input-controller';
2
+ export { InputControllerEvent, type InputController, } from './input-controller/input-controller';
@@ -21,13 +21,14 @@ export interface Motor extends Resource {
21
21
  * For more information, see [Motor
22
22
  * API](https://docs.viam.com/dev/reference/apis/components/motor/#setpower).
23
23
  *
24
- * @param power - A value between -1 and 1 where negative values indicate a backwards direction
25
- * and positive values a forward direction.
24
+ * @param power - A value between -1 and 1 where negative values indicate a
25
+ * backwards direction and positive values a forward direction.
26
26
  */
27
27
  setPower(power: number, extra?: Struct): Promise<void>;
28
28
  /**
29
- * Turn the motor at a specified speed for either a specified number of revolutions or
30
- * indefinitely. Raise an error if position reporting is not supported.
29
+ * Turn the motor at a specified speed for either a specified number of
30
+ * revolutions or indefinitely. Raise an error if position reporting is not
31
+ * supported.
31
32
  *
32
33
  * @example
33
34
  *
@@ -42,15 +43,15 @@ export interface Motor extends Resource {
42
43
  * API](https://docs.viam.com/dev/reference/apis/components/motor/#gofor).
43
44
  *
44
45
  * @param rpm - Speed in revolutions per minute.
45
- * @param revolutions - Number of revolutions relative to the motor's starting position. If this
46
- * value is 0, this will run the motor at the given rpm indefinitely. If this value is nonzero,
47
- * this will block until the number of revolutions has been completed or another operation comes
48
- * in.
46
+ * @param revolutions - Number of revolutions relative to the motor's starting
47
+ * position. If this value is 0, this will run the motor at the given rpm
48
+ * indefinitely. If this value is nonzero, this will block until the number
49
+ * of revolutions has been completed or another operation comes in.
49
50
  */
50
51
  goFor(rpm: number, revolutions: number, extra?: Struct): Promise<void>;
51
52
  /**
52
- * Move the motor to a specific position relative to its home position at a specified speed. Raise
53
- * an error if position reporting is not supported.
53
+ * Move the motor to a specific position relative to its home position at a
54
+ * specified speed. Raise an error if position reporting is not supported.
54
55
  *
55
56
  * @example
56
57
  *
@@ -65,12 +66,13 @@ export interface Motor extends Resource {
65
66
  * API](https://docs.viam.com/dev/reference/apis/components/motor/#goto).
66
67
  *
67
68
  * @param rpm - Speed in revolutions per minute.
68
- * @param positionRevolutions - Number of revolutions relative to the motor's home position.
69
+ * @param positionRevolutions - Number of revolutions relative to the motor's
70
+ * home position.
69
71
  */
70
72
  goTo(rpm: number, positionRevolutions: number, extra?: Struct): Promise<void>;
71
73
  /**
72
- * Move the motor indefinitely at a specified speed. Raise an error if position reporting is not
73
- * supported.
74
+ * Move the motor indefinitely at a specified speed. Raise an error if
75
+ * position reporting is not supported.
74
76
  *
75
77
  * @example
76
78
  *
@@ -88,8 +90,8 @@ export interface Motor extends Resource {
88
90
  */
89
91
  setRPM(rpm: number, extra?: Struct): Promise<void>;
90
92
  /**
91
- * Set the current position of the motor as the new zero position, offset by a given position.
92
- * Raise an error if position reporting is not supported.
93
+ * Set the current position of the motor as the new zero position, offset by a
94
+ * given position. Raise an error if position reporting is not supported.
93
95
  *
94
96
  * @example
95
97
  *
@@ -141,8 +143,8 @@ export interface Motor extends Resource {
141
143
  */
142
144
  getProperties(extra?: Struct): Promise<Properties>;
143
145
  /**
144
- * Return the position of the motor relative to its zero position. Raise an error if position
145
- * reporting is not supported.
146
+ * Return the position of the motor relative to its zero position. Raise an
147
+ * error if position reporting is not supported.
146
148
  *
147
149
  * @example
148
150
  *