@viamrobotics/sdk 0.40.1 → 0.41.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 (35) 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 -10
  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 +21 -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/datapipelines/v1/data_pipelines_connect.d.ts +7 -7
  23. package/dist/gen/app/datapipelines/v1/data_pipelines_pb.d.ts +35 -35
  24. package/dist/gen/app/v1/app_connect.d.ts +12 -1
  25. package/dist/gen/app/v1/app_pb.d.ts +63 -0
  26. package/dist/gen/app/v1/robot_pb.d.ts +5 -0
  27. package/dist/main.d.ts +1 -1
  28. package/dist/main.es.js +2132 -1730
  29. package/dist/main.umd.js +7 -7
  30. package/dist/services/data-manager/client.d.ts +6 -0
  31. package/dist/services/ml-model/client.d.ts +1 -1
  32. package/dist/services/ml-model/index.d.ts +1 -1
  33. package/dist/services/ml-model/ml-model.d.ts +2 -0
  34. package/dist/services/vision/vision.d.ts +21 -0
  35. package/package.json +1 -1
@@ -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.
@@ -50,6 +56,9 @@ export interface Gantry extends Resource {
50
56
  * const positions = await gantry.getPosition();
51
57
  * ```
52
58
  *
59
+ * For more information, see [Gantry
60
+ * API](https://docs.viam.com/dev/reference/apis/components/gantry/#getposition).
61
+ *
53
62
  * @returns A list of the current position of each axis in millimeters.
54
63
  */
55
64
  getPosition: (extra?: Struct) => Promise<number[]>;
@@ -66,6 +75,9 @@ export interface Gantry extends Resource {
66
75
  * const success = await gantry.home();
67
76
  * ```
68
77
  *
78
+ * For more information, see [Gantry
79
+ * API](https://docs.viam.com/dev/reference/apis/components/gantry/#home).
80
+ *
69
81
  * @returns A bool representing whether the gantry has run the homing sequence
70
82
  * successfully.
71
83
  */
@@ -82,6 +94,9 @@ export interface Gantry extends Resource {
82
94
  * const lengths = await gantry.getLengths();
83
95
  * ```
84
96
  *
97
+ * For more information, see [Gantry
98
+ * API](https://docs.viam.com/dev/reference/apis/components/gantry/#getlengths).
99
+ *
85
100
  * @returns A list of the length of each axis in millimeters.
86
101
  */
87
102
  getLengths: (extra?: Struct) => Promise<number[]>;
@@ -96,6 +111,9 @@ export interface Gantry extends Resource {
96
111
  * // Stop all motion of the gantry
97
112
  * await gantry.stop();
98
113
  * ```
114
+ *
115
+ * For more information, see [Gantry
116
+ * API](https://docs.viam.com/dev/reference/apis/components/gantry/#stop).
99
117
  */
100
118
  stop: (extra?: Struct) => Promise<void>;
101
119
  /**
@@ -110,6 +128,9 @@ export interface Gantry extends Resource {
110
128
  * const moving = await gantry.isMoving();
111
129
  * console.log('Moving:', moving);
112
130
  * ```
131
+ *
132
+ * For more information, see [Gantry
133
+ * API](https://docs.viam.com/dev/reference/apis/components/gantry/#ismoving).
113
134
  */
114
135
  isMoving: () => Promise<boolean>;
115
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
  }
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { CreateDataPipelineRequest, CreateDataPipelineResponse, DeleteDataPipelineRequest, DeleteDataPipelineResponse, DisableDataPipelineRequest, DisableDataPipelineResponse, EnableDataPipelineRequest, EnableDataPipelineResponse, GetDataPipelineRequest, GetDataPipelineResponse, ListDataPipelinesRequest, ListDataPipelinesResponse, ListPipelineRunsRequest, ListPipelineRunsResponse, UpdateDataPipelineRequest, UpdateDataPipelineResponse } from "./data_pipelines_pb.js";
6
+ import { CreateDataPipelineRequest, CreateDataPipelineResponse, DeleteDataPipelineRequest, DeleteDataPipelineResponse, DisableDataPipelineRequest, DisableDataPipelineResponse, EnableDataPipelineRequest, EnableDataPipelineResponse, GetDataPipelineRequest, GetDataPipelineResponse, ListDataPipelineRunsRequest, ListDataPipelineRunsResponse, ListDataPipelinesRequest, ListDataPipelinesResponse, UpdateDataPipelineRequest, UpdateDataPipelineResponse } from "./data_pipelines_pb.js";
7
7
  import { MethodKind } from "@bufbuild/protobuf";
8
8
 
9
9
  /**
@@ -92,14 +92,14 @@ export declare const DataPipelinesService: {
92
92
  readonly kind: MethodKind.Unary,
93
93
  },
94
94
  /**
95
- * ListPipelineRuns lists the runs of a data pipeline.
95
+ * ListDataPipelineRuns lists the runs of a data pipeline.
96
96
  *
97
- * @generated from rpc viam.app.datapipelines.v1.DataPipelinesService.ListPipelineRuns
97
+ * @generated from rpc viam.app.datapipelines.v1.DataPipelinesService.ListDataPipelineRuns
98
98
  */
99
- readonly listPipelineRuns: {
100
- readonly name: "ListPipelineRuns",
101
- readonly I: typeof ListPipelineRunsRequest,
102
- readonly O: typeof ListPipelineRunsResponse,
99
+ readonly listDataPipelineRuns: {
100
+ readonly name: "ListDataPipelineRuns",
101
+ readonly I: typeof ListDataPipelineRunsRequest,
102
+ readonly O: typeof ListDataPipelineRunsResponse,
103
103
  readonly kind: MethodKind.Unary,
104
104
  },
105
105
  }