@viamrobotics/sdk 0.40.0 → 0.40.2

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 (36) hide show
  1. package/dist/api-version.d.ts +1 -1
  2. package/dist/app/app-client.d.ts +234 -0
  3. package/dist/app/billing-client.d.ts +12 -0
  4. package/dist/app/data-client.d.ts +98 -11
  5. package/dist/app/ml-training-client.d.ts +18 -0
  6. package/dist/components/arm/arm.d.ts +21 -0
  7. package/dist/components/base/base.d.ts +24 -0
  8. package/dist/components/board/board.d.ts +33 -0
  9. package/dist/components/button/button.d.ts +3 -0
  10. package/dist/components/camera/camera.d.ts +12 -0
  11. package/dist/components/encoder/encoder.d.ts +9 -0
  12. package/dist/components/gantry/gantry.d.ts +25 -0
  13. package/dist/components/generic/generic.d.ts +3 -0
  14. package/dist/components/gripper/gripper.d.ts +15 -0
  15. package/dist/components/input-controller/input-controller.d.ts +6 -0
  16. package/dist/components/motor/motor.d.ts +30 -0
  17. package/dist/components/movement-sensor/movement-sensor.d.ts +27 -0
  18. package/dist/components/power-sensor/power-sensor.d.ts +12 -0
  19. package/dist/components/sensor/sensor.d.ts +3 -0
  20. package/dist/components/servo/servo.d.ts +12 -0
  21. package/dist/components/switch/switch.d.ts +9 -0
  22. package/dist/gen/app/data/v1/data_pb.d.ts +21 -10
  23. package/dist/gen/app/datapipelines/v1/data_pipelines_connect.d.ts +34 -1
  24. package/dist/gen/app/datapipelines/v1/data_pipelines_pb.d.ts +259 -7
  25. package/dist/gen/app/datasync/v1/data_sync_pb.d.ts +4 -2
  26. package/dist/gen/app/v1/app_connect.d.ts +21 -1
  27. package/dist/gen/app/v1/app_pb.d.ts +121 -0
  28. package/dist/gen/app/v1/robot_pb.d.ts +5 -0
  29. package/dist/gen/google/rpc/error_details_pb.d.ts +89 -0
  30. package/dist/main.es.js +4574 -4144
  31. package/dist/main.umd.js +7 -7
  32. package/dist/services/data-manager/client.d.ts +6 -0
  33. package/dist/services/motion/motion.d.ts +161 -2
  34. package/dist/services/slam/slam.d.ts +47 -2
  35. package/dist/services/vision/vision.d.ts +21 -0
  36. package/package.json +1 -1
@@ -13,6 +13,9 @@ export interface Button extends Resource {
13
13
  * // Push the button
14
14
  * await button.push();
15
15
  * ```
16
+ *
17
+ * For more information, see [Button
18
+ * API](https://docs.viam.com/dev/reference/apis/components/button/#push).
16
19
  */
17
20
  push: (extra?: Struct) => Promise<void>;
18
21
  }
@@ -43,6 +43,9 @@ export interface Camera extends Resource {
43
43
  * }
44
44
  * ```
45
45
  *
46
+ * For more information, see [Camera
47
+ * API](https://docs.viam.com/dev/reference/apis/components/camera/#getimage).
48
+ *
46
49
  * @param mimeType - A specific MIME type to request. This is not necessarily
47
50
  * the same type that will be returned.
48
51
  */
@@ -58,6 +61,9 @@ export interface Camera extends Resource {
58
61
  * const image = await camera.renderFrame(mimeType);
59
62
  * ```
60
63
  *
64
+ * For more information, see [Camera
65
+ * API](https://docs.viam.com/dev/reference/apis/components/camera/#renderframe).
66
+ *
61
67
  * @param mimeType - A specific MIME type to request. This is not necessarily
62
68
  * the same type that will be returned.
63
69
  */
@@ -71,6 +77,9 @@ export interface Camera extends Resource {
71
77
  * const camera = new VIAM.CameraClient(machine, 'my_camera');
72
78
  * const pointCloud = await camera.getPointCloud();
73
79
  * ```
80
+ *
81
+ * For more information, see [Camera
82
+ * API](https://docs.viam.com/dev/reference/apis/components/camera/#getpointcloud).
74
83
  */
75
84
  getPointCloud: (extra?: Struct) => Promise<Uint8Array>;
76
85
  /**
@@ -82,6 +91,9 @@ export interface Camera extends Resource {
82
91
  * const camera = new VIAM.CameraClient(machine, 'my_camera');
83
92
  * const properties = await camera.getProperties();
84
93
  * ```
94
+ *
95
+ * For more information, see [Camera
96
+ * API](https://docs.viam.com/dev/reference/apis/components/camera/#getproperties).
85
97
  */
86
98
  getProperties: () => Promise<Properties>;
87
99
  }
@@ -17,6 +17,9 @@ export interface Encoder extends Resource {
17
17
  * // Reset the zero position of the encoder
18
18
  * await encoder.resetPosition();
19
19
  * ```
20
+ *
21
+ * For more information, see [Encoder
22
+ * API](https://docs.viam.com/dev/reference/apis/components/encoder/#resetposition).
20
23
  */
21
24
  resetPosition(extra?: Struct): Promise<void>;
22
25
  /**
@@ -30,6 +33,9 @@ export interface Encoder extends Resource {
30
33
  * // Get whether the encoder returns position in ticks or degrees
31
34
  * const properties = await encoder.getProperties();
32
35
  * ```
36
+ *
37
+ * For more information, see [Encoder
38
+ * API](https://docs.viam.com/dev/reference/apis/components/encoder/#getproperties).
33
39
  */
34
40
  getProperties(extra?: Struct): Promise<EncoderProperties>;
35
41
  /**
@@ -48,6 +54,9 @@ export interface Encoder extends Resource {
48
54
  * console.log('The encoder position is currently', position, posType);
49
55
  * ```
50
56
  *
57
+ * For more information, see [Encoder
58
+ * API](https://docs.viam.com/dev/reference/apis/components/encoder/#getposition).
59
+ *
51
60
  * @param positionType - The type of position the encoder returns (ticks or
52
61
  * degrees)
53
62
  */
@@ -14,6 +14,9 @@ export interface Gantry extends Resource {
14
14
  * // Get the geometries of this component
15
15
  * const geometries = await gantry.getGeometries();
16
16
  * ```
17
+ *
18
+ * For more information, see [Gantry
19
+ * API](https://docs.viam.com/dev/reference/apis/components/gantry/#getgeometries).
17
20
  */
18
21
  getGeometries: (extra?: Struct) => Promise<Geometry[]>;
19
22
  /**
@@ -33,6 +36,9 @@ export interface Gantry extends Resource {
33
36
  * await gantry.moveToPosition(positions, speeds);
34
37
  * ```
35
38
  *
39
+ * For more information, see [Gantry
40
+ * API](https://docs.viam.com/dev/reference/apis/components/gantry/#movetoposition).
41
+ *
36
42
  * @param positionsMm - The goal positions for each axis of the gantry.
37
43
  * @param speedsMmPerSec - The desired speed for each axis to move to the
38
44
  * respective position in positionsMm.
@@ -49,6 +55,11 @@ export interface Gantry extends Resource {
49
55
  * // Get the current positions of the axes in millimeters
50
56
  * const positions = await gantry.getPosition();
51
57
  * ```
58
+ *
59
+ * For more information, see [Gantry
60
+ * API](https://docs.viam.com/dev/reference/apis/components/gantry/#getposition).
61
+ *
62
+ * @returns A list of the current position of each axis in millimeters.
52
63
  */
53
64
  getPosition: (extra?: Struct) => Promise<number[]>;
54
65
  /**
@@ -64,6 +75,9 @@ export interface Gantry extends Resource {
64
75
  * const success = await gantry.home();
65
76
  * ```
66
77
  *
78
+ * For more information, see [Gantry
79
+ * API](https://docs.viam.com/dev/reference/apis/components/gantry/#home).
80
+ *
67
81
  * @returns A bool representing whether the gantry has run the homing sequence
68
82
  * successfully.
69
83
  */
@@ -79,6 +93,11 @@ export interface Gantry extends Resource {
79
93
  * // Get the lengths of the axes in millimeters
80
94
  * const lengths = await gantry.getLengths();
81
95
  * ```
96
+ *
97
+ * For more information, see [Gantry
98
+ * API](https://docs.viam.com/dev/reference/apis/components/gantry/#getlengths).
99
+ *
100
+ * @returns A list of the length of each axis in millimeters.
82
101
  */
83
102
  getLengths: (extra?: Struct) => Promise<number[]>;
84
103
  /**
@@ -92,6 +111,9 @@ export interface Gantry extends Resource {
92
111
  * // Stop all motion of the gantry
93
112
  * await gantry.stop();
94
113
  * ```
114
+ *
115
+ * For more information, see [Gantry
116
+ * API](https://docs.viam.com/dev/reference/apis/components/gantry/#stop).
95
117
  */
96
118
  stop: (extra?: Struct) => Promise<void>;
97
119
  /**
@@ -106,6 +128,9 @@ export interface Gantry extends Resource {
106
128
  * const moving = await gantry.isMoving();
107
129
  * console.log('Moving:', moving);
108
130
  * ```
131
+ *
132
+ * For more information, see [Gantry
133
+ * API](https://docs.viam.com/dev/reference/apis/components/gantry/#ismoving).
109
134
  */
110
135
  isMoving: () => Promise<boolean>;
111
136
  }
@@ -17,6 +17,9 @@ export interface Generic extends Resource {
17
17
  * const geometries = await generic.getGeometries();
18
18
  * console.log('Geometries:', geometries);
19
19
  * ```
20
+ *
21
+ * For more information, see [Generic
22
+ * API](https://docs.viam.com/dev/reference/apis/components/generic/#getgeometries).
20
23
  */
21
24
  getGeometries: (extra?: Struct) => Promise<Geometry[]>;
22
25
  }
@@ -15,6 +15,9 @@ export interface Gripper extends Resource {
15
15
  * const geometries = await gripper.getGeometries();
16
16
  * console.log('Geometries:', geometries);
17
17
  * ```
18
+ *
19
+ * For more information, see [Gripper
20
+ * API](https://docs.viam.com/dev/reference/apis/components/gripper/#getgeometries).
18
21
  */
19
22
  getGeometries: (extra?: Struct) => Promise<Geometry[]>;
20
23
  /**
@@ -28,6 +31,9 @@ export interface Gripper extends Resource {
28
31
  * // Open the gripper
29
32
  * await gripper.open();
30
33
  * ```
34
+ *
35
+ * For more information, see [Gripper
36
+ * API](https://docs.viam.com/dev/reference/apis/components/gripper/#open).
31
37
  */
32
38
  open: (extra?: Struct) => Promise<void>;
33
39
  /**
@@ -41,6 +47,9 @@ export interface Gripper extends Resource {
41
47
  * // Close the gripper to grab
42
48
  * await gripper.grab();
43
49
  * ```
50
+ *
51
+ * For more information, see [Gripper
52
+ * API](https://docs.viam.com/dev/reference/apis/components/gripper/#grab).
44
53
  */
45
54
  grab: (extra?: Struct) => Promise<void>;
46
55
  /**
@@ -54,6 +63,9 @@ export interface Gripper extends Resource {
54
63
  * // Stop the gripper's current motion
55
64
  * await gripper.stop();
56
65
  * ```
66
+ *
67
+ * For more information, see [Gripper
68
+ * API](https://docs.viam.com/dev/reference/apis/components/gripper/#stop).
57
69
  */
58
70
  stop: (extra?: Struct) => Promise<void>;
59
71
  /**
@@ -68,6 +80,9 @@ export interface Gripper extends Resource {
68
80
  * const moving = await gripper.isMoving();
69
81
  * console.log('Gripper is moving:', moving);
70
82
  * ```
83
+ *
84
+ * For more information, see [Gripper
85
+ * API](https://docs.viam.com/dev/reference/apis/components/gripper/#ismoving).
71
86
  */
72
87
  isMoving: () => Promise<boolean>;
73
88
  }
@@ -23,6 +23,9 @@ export interface InputController extends Resource {
23
23
  * const recentEvents = await controller.getEvents();
24
24
  * console.log('Recent events:', recentEvents);
25
25
  * ```
26
+ *
27
+ * For more information, see [Input Controller
28
+ * API](https://docs.viam.com/dev/reference/apis/components/input-controller/#getevents).
26
29
  */
27
30
  getEvents(extra?: Struct): Promise<InputControllerEvent[]>;
28
31
  /**
@@ -48,6 +51,9 @@ export interface InputController extends Resource {
48
51
  * // Trigger the event
49
52
  * await controller.triggerEvent(buttonPressEvent);
50
53
  * ```
54
+ *
55
+ * For more information, see [Input Controller
56
+ * API](https://docs.viam.com/dev/reference/apis/components/input-controller/#triggerevent).
51
57
  */
52
58
  triggerEvent(event: InputControllerEvent, extra?: Struct): Promise<void>;
53
59
  }
@@ -18,6 +18,9 @@ export interface Motor extends Resource {
18
18
  * await motor.setPower(0.4);
19
19
  * ```
20
20
  *
21
+ * For more information, see [Motor
22
+ * API](https://docs.viam.com/dev/reference/apis/components/motor/#setpower).
23
+ *
21
24
  * @param power - A value between -1 and 1 where negative values indicate a
22
25
  * backwards direction and positive values a forward direction.
23
26
  */
@@ -36,6 +39,9 @@ export interface Motor extends Resource {
36
39
  * await motor.goFor(60, 7.2);
37
40
  * ```
38
41
  *
42
+ * For more information, see [Motor
43
+ * API](https://docs.viam.com/dev/reference/apis/components/motor/#gofor).
44
+ *
39
45
  * @param rpm - Speed in revolutions per minute.
40
46
  * @param revolutions - Number of revolutions relative to the motor's starting
41
47
  * position. If this value is 0, this will run the motor at the given rpm
@@ -56,6 +62,9 @@ export interface Motor extends Resource {
56
62
  * await motor.goTo(75, 8.3);
57
63
  * ```
58
64
  *
65
+ * For more information, see [Motor
66
+ * API](https://docs.viam.com/dev/reference/apis/components/motor/#goto).
67
+ *
59
68
  * @param rpm - Speed in revolutions per minute.
60
69
  * @param positionRevolutions - Number of revolutions relative to the motor's
61
70
  * home position.
@@ -74,6 +83,9 @@ export interface Motor extends Resource {
74
83
  * await motor.setRPM(75);
75
84
  * ```
76
85
  *
86
+ * For more information, see [Motor
87
+ * API](https://docs.viam.com/dev/reference/apis/components/motor/#setrpm).
88
+ *
77
89
  * @param rpm - Speed in revolutions per minute.
78
90
  */
79
91
  setRPM(rpm: number, extra?: Struct): Promise<void>;
@@ -90,6 +102,9 @@ export interface Motor extends Resource {
90
102
  * await motor.resetZeroPosition(0.0);
91
103
  * ```
92
104
  *
105
+ * For more information, see [Motor
106
+ * API](https://docs.viam.com/dev/reference/apis/components/motor/#resetzeroposition).
107
+ *
93
108
  * @param offset - Position from which to offset the current position.
94
109
  */
95
110
  resetZeroPosition(offset: number, extra?: Struct): Promise<void>;
@@ -104,6 +119,9 @@ export interface Motor extends Resource {
104
119
  * // Stop the motor
105
120
  * await motor.stop();
106
121
  * ```
122
+ *
123
+ * For more information, see [Motor
124
+ * API](https://docs.viam.com/dev/reference/apis/components/motor/#stop).
107
125
  */
108
126
  stop(extra?: Struct): Promise<void>;
109
127
  /**
@@ -119,6 +137,9 @@ export interface Motor extends Resource {
119
137
  * const properties = await motor.getProperties();
120
138
  * console.log('Properties:', properties);
121
139
  * ```
140
+ *
141
+ * For more information, see [Motor
142
+ * API](https://docs.viam.com/dev/reference/apis/components/motor/#getproperties).
122
143
  */
123
144
  getProperties(extra?: Struct): Promise<Properties>;
124
145
  /**
@@ -134,6 +155,9 @@ export interface Motor extends Resource {
134
155
  * const position = await motor.getPosition();
135
156
  * console.log('Position:', position);
136
157
  * ```
158
+ *
159
+ * For more information, see [Motor
160
+ * API](https://docs.viam.com/dev/reference/apis/components/motor/#getposition).
137
161
  */
138
162
  getPosition(extra?: Struct): Promise<number>;
139
163
  /**
@@ -149,6 +173,9 @@ export interface Motor extends Resource {
149
173
  * console.log('Powered:', isPowered);
150
174
  * console.log('Power percentage:', powerPct);
151
175
  * ```
176
+ *
177
+ * For more information, see [Motor
178
+ * API](https://docs.viam.com/dev/reference/apis/components/motor/#ispowered).
152
179
  */
153
180
  isPowered(extra?: Struct): Promise<readonly [boolean, number]>;
154
181
  /**
@@ -163,6 +190,9 @@ export interface Motor extends Resource {
163
190
  * const moving = await motor.isMoving();
164
191
  * console.log('Moving:', moving);
165
192
  * ```
193
+ *
194
+ * For more information, see [Motor
195
+ * API](https://docs.viam.com/dev/reference/apis/components/motor/#ismoving).
166
196
  */
167
197
  isMoving(): Promise<boolean>;
168
198
  }
@@ -22,6 +22,9 @@ export interface MovementSensor extends Resource {
22
22
  * );
23
23
  * const linearVelocity = await movementSensor.getLinearVelocity();
24
24
  * ```
25
+ *
26
+ * For more information, see [Movement Sensor
27
+ * API](https://docs.viam.com/dev/reference/apis/components/movement-sensor/#getlinearvelocity).
25
28
  */
26
29
  getLinearVelocity(extra?: Struct): Promise<Vector3>;
27
30
  /**
@@ -36,6 +39,9 @@ export interface MovementSensor extends Resource {
36
39
  * );
37
40
  * const angularVelocity = await movementSensor.getAngularVelocity();
38
41
  * ```
42
+ *
43
+ * For more information, see [Movement Sensor
44
+ * API](https://docs.viam.com/dev/reference/apis/components/movement-sensor/#getangularvelocity).
39
45
  */
40
46
  getAngularVelocity(extra?: Struct): Promise<Vector3>;
41
47
  /**
@@ -51,6 +57,9 @@ export interface MovementSensor extends Resource {
51
57
  * );
52
58
  * const compassHeading = await movementSensor.getCompassHeading();
53
59
  * ```
60
+ *
61
+ * For more information, see [Movement Sensor
62
+ * API](https://docs.viam.com/dev/reference/apis/components/movement-sensor/#getcompassheading).
54
63
  */
55
64
  getCompassHeading(extra?: Struct): Promise<number>;
56
65
  /**
@@ -65,6 +74,9 @@ export interface MovementSensor extends Resource {
65
74
  * );
66
75
  * const orientation = await movementSensor.getOrientation();
67
76
  * ```
77
+ *
78
+ * For more information, see [Movement Sensor
79
+ * API](https://docs.viam.com/dev/reference/apis/components/movement-sensor/#getorientation).
68
80
  */
69
81
  getOrientation(extra?: Struct): Promise<Orientation>;
70
82
  /**
@@ -79,6 +91,9 @@ export interface MovementSensor extends Resource {
79
91
  * );
80
92
  * const position = await movementSensor.getPosition();
81
93
  * ```
94
+ *
95
+ * For more information, see [Movement Sensor
96
+ * API](https://docs.viam.com/dev/reference/apis/components/movement-sensor/#getposition).
82
97
  */
83
98
  getPosition(extra?: Struct): Promise<MovementSensorPosition>;
84
99
  /**
@@ -93,6 +108,9 @@ export interface MovementSensor extends Resource {
93
108
  * );
94
109
  * const properties = await movementSensor.getProperties();
95
110
  * ```
111
+ *
112
+ * For more information, see [Movement Sensor
113
+ * API](https://docs.viam.com/dev/reference/apis/components/movement-sensor/#getproperties).
96
114
  */
97
115
  getProperties(extra?: Struct): Promise<MovementSensorProperties>;
98
116
  /**
@@ -107,6 +125,9 @@ export interface MovementSensor extends Resource {
107
125
  * );
108
126
  * const accuracy = await movementSensor.getAccuracy();
109
127
  * ```
128
+ *
129
+ * For more information, see [Movement Sensor
130
+ * API](https://docs.viam.com/dev/reference/apis/components/movement-sensor/#getaccuracy).
110
131
  */
111
132
  getAccuracy(extra?: Struct): Promise<MovementSensorAccuracy>;
112
133
  /**
@@ -122,6 +143,9 @@ export interface MovementSensor extends Resource {
122
143
  * const linearAcceleration =
123
144
  * await movementSensor.getLinearAcceleration();
124
145
  * ```
146
+ *
147
+ * For more information, see [Movement Sensor
148
+ * API](https://docs.viam.com/dev/reference/apis/components/movement-sensor/#getlinearacceleration).
125
149
  */
126
150
  getLinearAcceleration(extra?: Struct): Promise<Vector3>;
127
151
  /**
@@ -136,6 +160,9 @@ export interface MovementSensor extends Resource {
136
160
  * );
137
161
  * const readings = await movementSensor.getReadings();
138
162
  * ```
163
+ *
164
+ * For more information, see [Movement Sensor
165
+ * API](https://docs.viam.com/dev/reference/apis/components/movement-sensor/#getreadings).
139
166
  */
140
167
  getReadings(extra?: Struct): Promise<Record<string, JsonValue>>;
141
168
  }
@@ -15,6 +15,9 @@ export interface PowerSensor extends Sensor {
15
15
  * );
16
16
  * const [voltage, isAc] = await powerSensor.getVoltage();
17
17
  * ```
18
+ *
19
+ * For more information, see [Power Sensor
20
+ * API](https://docs.viam.com/dev/reference/apis/components/power-sensor/#getvoltage).
18
21
  */
19
22
  getVoltage(extra?: Struct): Promise<readonly [number, boolean]>;
20
23
  /**
@@ -30,6 +33,9 @@ export interface PowerSensor extends Sensor {
30
33
  * );
31
34
  * const [current, isAc] = await powerSensor.getCurrent();
32
35
  * ```
36
+ *
37
+ * For more information, see [Power Sensor
38
+ * API](https://docs.viam.com/dev/reference/apis/components/power-sensor/#getcurrent).
33
39
  */
34
40
  getCurrent(extra?: Struct): Promise<readonly [number, boolean]>;
35
41
  /**
@@ -44,6 +50,9 @@ export interface PowerSensor extends Sensor {
44
50
  * );
45
51
  * const power = await powerSensor.getPower();
46
52
  * ```
53
+ *
54
+ * For more information, see [Power Sensor
55
+ * API](https://docs.viam.com/dev/reference/apis/components/power-sensor/#getpower).
47
56
  */
48
57
  getPower(extra?: Struct): Promise<number>;
49
58
  /**
@@ -58,6 +67,9 @@ export interface PowerSensor extends Sensor {
58
67
  * );
59
68
  * const readings = await powerSensor.getReadings();
60
69
  * ```
70
+ *
71
+ * For more information, see [Power Sensor
72
+ * API](https://docs.viam.com/dev/reference/apis/components/power-sensor/#getreadings).
61
73
  */
62
74
  getReadings(extra?: Struct): Promise<Record<string, JsonValue>>;
63
75
  }
@@ -13,6 +13,9 @@ export interface Sensor extends Resource {
13
13
  * // Get the readings of a sensor.
14
14
  * const readings = await sensor.getReadings();
15
15
  * ```
16
+ *
17
+ * For more information, see [Sensor
18
+ * API](https://docs.viam.com/dev/reference/apis/components/sensor/#getreadings).
16
19
  */
17
20
  getReadings(extra?: Struct): Promise<Record<string, JsonValue>>;
18
21
  }
@@ -16,6 +16,9 @@ export interface Servo extends Resource {
16
16
  * // Move the servo from its origin to the desired angle of 90 degrees
17
17
  * await servo.move(90);
18
18
  * ```
19
+ *
20
+ * For more information, see [Servo
21
+ * API](https://docs.viam.com/dev/reference/apis/components/servo/#move).
19
22
  */
20
23
  move(angleDeg: number, extra?: Struct): Promise<void>;
21
24
  /**
@@ -29,6 +32,9 @@ export interface Servo extends Resource {
29
32
  * // Get the current set angle of the servo
30
33
  * const pos = await servo.getPosition();
31
34
  * ```
35
+ *
36
+ * For more information, see [Servo
37
+ * API](https://docs.viam.com/dev/reference/apis/components/servo/#getposition).
32
38
  */
33
39
  getPosition(extra?: Struct): Promise<number>;
34
40
  /**
@@ -45,6 +51,9 @@ export interface Servo extends Resource {
45
51
  * // Stop the servo. It is assumed that the servo stops moving immediately
46
52
  * await servo.stop();
47
53
  * ```
54
+ *
55
+ * For more information, see [Servo
56
+ * API](https://docs.viam.com/dev/reference/apis/components/servo/#stop).
48
57
  */
49
58
  stop(extra?: Struct): Promise<void>;
50
59
  /**
@@ -58,6 +67,9 @@ export interface Servo extends Resource {
58
67
  * const moving = await servo.isMoving();
59
68
  * console.log('Moving:', moving);
60
69
  * ```
70
+ *
71
+ * For more information, see [Servo
72
+ * API](https://docs.viam.com/dev/reference/apis/components/servo/#ismoving).
61
73
  */
62
74
  isMoving(): Promise<boolean>;
63
75
  }
@@ -16,6 +16,9 @@ export interface Switch extends Resource {
16
16
  * // Update the switch from its current position to position 0
17
17
  * await mySwitch.setPosition(0);
18
18
  * ```
19
+ *
20
+ * For more information, see [Switch
21
+ * API](https://docs.viam.com/dev/reference/apis/components/switch/#setposition).
19
22
  */
20
23
  setPosition: (position: number, extra?: Struct) => Promise<void>;
21
24
  /**
@@ -38,6 +41,9 @@ export interface Switch extends Resource {
38
41
  * // Get the current set position
39
42
  * const pos2 = await mySwitch.getPosition();
40
43
  * ```
44
+ *
45
+ * For more information, see [Switch
46
+ * API](https://docs.viam.com/dev/reference/apis/components/switch/#getposition).
41
47
  */
42
48
  getPosition: (extra?: Struct) => Promise<number>;
43
49
  /**
@@ -52,6 +58,9 @@ export interface Switch extends Resource {
52
58
  * const numPositions = await mySwitch.getNumberOfPositions();
53
59
  * console.log('Number of positions:', numPositions);
54
60
  * ```
61
+ *
62
+ * For more information, see [Switch
63
+ * API](https://docs.viam.com/dev/reference/apis/components/switch/#getnumberofpositions).
55
64
  */
56
65
  getNumberOfPositions: (extra?: Struct) => Promise<number>;
57
66
  }
@@ -1010,6 +1010,7 @@ export declare class BinaryDataByFilterResponse extends Message<BinaryDataByFilt
1010
1010
  * BinaryID is the unique identifier for a file that one can request to be retrieved or modified.
1011
1011
  *
1012
1012
  * @generated from message viam.app.data.v1.BinaryID
1013
+ * @deprecated
1013
1014
  */
1014
1015
  export declare class BinaryID extends Message<BinaryID> {
1015
1016
  /**
@@ -1054,7 +1055,8 @@ export declare class BinaryDataByIDsRequest extends Message<BinaryDataByIDsReque
1054
1055
  includeBinary: boolean;
1055
1056
 
1056
1057
  /**
1057
- * @generated from field: repeated viam.app.data.v1.BinaryID binary_ids = 3;
1058
+ * @generated from field: repeated viam.app.data.v1.BinaryID binary_ids = 3 [deprecated = true];
1059
+ * @deprecated
1058
1060
  */
1059
1061
  binaryIds: BinaryID[];
1060
1062
 
@@ -1239,7 +1241,8 @@ export declare class Annotations extends Message<Annotations> {
1239
1241
  */
1240
1242
  export declare class BinaryMetadata extends Message<BinaryMetadata> {
1241
1243
  /**
1242
- * @generated from field: string id = 1;
1244
+ * @generated from field: string id = 1 [deprecated = true];
1245
+ * @deprecated
1243
1246
  */
1244
1247
  id: string;
1245
1248
 
@@ -1429,7 +1432,8 @@ export declare class DeleteBinaryDataByFilterResponse extends Message<DeleteBina
1429
1432
  */
1430
1433
  export declare class DeleteBinaryDataByIDsRequest extends Message<DeleteBinaryDataByIDsRequest> {
1431
1434
  /**
1432
- * @generated from field: repeated viam.app.data.v1.BinaryID binary_ids = 2;
1435
+ * @generated from field: repeated viam.app.data.v1.BinaryID binary_ids = 2 [deprecated = true];
1436
+ * @deprecated
1433
1437
  */
1434
1438
  binaryIds: BinaryID[];
1435
1439
 
@@ -1486,7 +1490,8 @@ export declare class DeleteBinaryDataByIDsResponse extends Message<DeleteBinaryD
1486
1490
  */
1487
1491
  export declare class AddTagsToBinaryDataByIDsRequest extends Message<AddTagsToBinaryDataByIDsRequest> {
1488
1492
  /**
1489
- * @generated from field: repeated viam.app.data.v1.BinaryID binary_ids = 3;
1493
+ * @generated from field: repeated viam.app.data.v1.BinaryID binary_ids = 3 [deprecated = true];
1494
+ * @deprecated
1490
1495
  */
1491
1496
  binaryIds: BinaryID[];
1492
1497
 
@@ -1591,7 +1596,8 @@ export declare class AddTagsToBinaryDataByFilterResponse extends Message<AddTags
1591
1596
  */
1592
1597
  export declare class RemoveTagsFromBinaryDataByIDsRequest extends Message<RemoveTagsFromBinaryDataByIDsRequest> {
1593
1598
  /**
1594
- * @generated from field: repeated viam.app.data.v1.BinaryID binary_ids = 3;
1599
+ * @generated from field: repeated viam.app.data.v1.BinaryID binary_ids = 3 [deprecated = true];
1600
+ * @deprecated
1595
1601
  */
1596
1602
  binaryIds: BinaryID[];
1597
1603
 
@@ -1763,7 +1769,8 @@ export declare class TagsByFilterResponse extends Message<TagsByFilterResponse>
1763
1769
  */
1764
1770
  export declare class AddBoundingBoxToImageByIDRequest extends Message<AddBoundingBoxToImageByIDRequest> {
1765
1771
  /**
1766
- * @generated from field: viam.app.data.v1.BinaryID binary_id = 7;
1772
+ * @generated from field: viam.app.data.v1.BinaryID binary_id = 7 [deprecated = true];
1773
+ * @deprecated
1767
1774
  */
1768
1775
  binaryId?: BinaryID;
1769
1776
 
@@ -1845,7 +1852,8 @@ export declare class AddBoundingBoxToImageByIDResponse extends Message<AddBoundi
1845
1852
  */
1846
1853
  export declare class RemoveBoundingBoxFromImageByIDRequest extends Message<RemoveBoundingBoxFromImageByIDRequest> {
1847
1854
  /**
1848
- * @generated from field: viam.app.data.v1.BinaryID binary_id = 3;
1855
+ * @generated from field: viam.app.data.v1.BinaryID binary_id = 3 [deprecated = true];
1856
+ * @deprecated
1849
1857
  */
1850
1858
  binaryId?: BinaryID;
1851
1859
 
@@ -1900,7 +1908,8 @@ export declare class RemoveBoundingBoxFromImageByIDResponse extends Message<Remo
1900
1908
  */
1901
1909
  export declare class UpdateBoundingBoxRequest extends Message<UpdateBoundingBoxRequest> {
1902
1910
  /**
1903
- * @generated from field: viam.app.data.v1.BinaryID binary_id = 1;
1911
+ * @generated from field: viam.app.data.v1.BinaryID binary_id = 1 [deprecated = true];
1912
+ * @deprecated
1904
1913
  */
1905
1914
  binaryId?: BinaryID;
1906
1915
 
@@ -2148,7 +2157,8 @@ export declare class GetDatabaseConnectionResponse extends Message<GetDatabaseCo
2148
2157
  */
2149
2158
  export declare class AddBinaryDataToDatasetByIDsRequest extends Message<AddBinaryDataToDatasetByIDsRequest> {
2150
2159
  /**
2151
- * @generated from field: repeated viam.app.data.v1.BinaryID binary_ids = 1;
2160
+ * @generated from field: repeated viam.app.data.v1.BinaryID binary_ids = 1 [deprecated = true];
2161
+ * @deprecated
2152
2162
  */
2153
2163
  binaryIds: BinaryID[];
2154
2164
 
@@ -2203,7 +2213,8 @@ export declare class AddBinaryDataToDatasetByIDsResponse extends Message<AddBina
2203
2213
  */
2204
2214
  export declare class RemoveBinaryDataFromDatasetByIDsRequest extends Message<RemoveBinaryDataFromDatasetByIDsRequest> {
2205
2215
  /**
2206
- * @generated from field: repeated viam.app.data.v1.BinaryID binary_ids = 1;
2216
+ * @generated from field: repeated viam.app.data.v1.BinaryID binary_ids = 1 [deprecated = true];
2217
+ * @deprecated
2207
2218
  */
2208
2219
  binaryIds: BinaryID[];
2209
2220