@viamrobotics/sdk 0.73.0 → 0.74.0-b.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 (126) hide show
  1. package/dist/api-version.d.ts +1 -1
  2. package/dist/app/app-client.d.ts +186 -254
  3. package/dist/app/billing-client.d.ts +6 -15
  4. package/dist/app/data-client.d.ts +175 -252
  5. package/dist/app/ml-training-client.d.ts +5 -5
  6. package/dist/app/provisioning-client.d.ts +2 -4
  7. package/dist/app/viam-client.d.ts +1 -1
  8. package/dist/app/viam-transport.d.ts +1 -4
  9. package/dist/assert.d.ts +2 -3
  10. package/dist/components/arm/arm.d.ts +2 -2
  11. package/dist/components/arm/client.d.ts +1 -1
  12. package/dist/components/audio-out/audio-out.d.ts +6 -7
  13. package/dist/components/audioin.d.ts +1 -1
  14. package/dist/components/audioout.d.ts +1 -1
  15. package/dist/components/base/base.d.ts +10 -11
  16. package/dist/components/board/board.d.ts +8 -15
  17. package/dist/components/board/client.d.ts +1 -1
  18. package/dist/components/camera/camera.d.ts +2 -4
  19. package/dist/components/camera/client.d.ts +2 -2
  20. package/dist/components/encoder/encoder.d.ts +4 -5
  21. package/dist/components/encoder.d.ts +1 -1
  22. package/dist/components/gantry/gantry.d.ts +7 -10
  23. package/dist/components/generic/generic.d.ts +1 -4
  24. package/dist/components/gripper/gripper.d.ts +1 -2
  25. package/dist/components/input-controller/input-controller.d.ts +5 -15
  26. package/dist/components/inputcontroller.d.ts +1 -1
  27. package/dist/components/motor/motor.d.ts +17 -19
  28. package/dist/components/movement-sensor/movement-sensor.d.ts +14 -42
  29. package/dist/components/pose-tracker/pose-tracker.d.ts +1 -4
  30. package/dist/components/power-sensor/power-sensor.d.ts +6 -20
  31. package/dist/components/switch/switch.d.ts +2 -3
  32. package/dist/debug.d.ts +7 -15
  33. package/dist/events.d.ts +12 -10
  34. package/dist/extra/stream/client.d.ts +12 -11
  35. package/dist/extra/stream/stream.d.ts +1 -1
  36. package/dist/gen/app/agent/v1/agent_connect.d.ts +1 -1
  37. package/dist/gen/app/build/v1/build_connect.d.ts +1 -1
  38. package/dist/gen/app/cloudslam/v1/cloud_slam_connect.d.ts +1 -1
  39. package/dist/gen/app/data/v1/data_connect.d.ts +1 -1
  40. package/dist/gen/app/datapipelines/v1/data_pipelines_connect.d.ts +1 -1
  41. package/dist/gen/app/dataset/v1/dataset_connect.d.ts +1 -1
  42. package/dist/gen/app/datasync/v1/data_sync_connect.d.ts +1 -1
  43. package/dist/gen/app/mlinference/v1/ml_inference_connect.d.ts +1 -1
  44. package/dist/gen/app/mltraining/v1/ml_training_connect.d.ts +1 -1
  45. package/dist/gen/app/packages/v1/packages_connect.d.ts +1 -1
  46. package/dist/gen/app/v1/app_connect.d.ts +38 -2
  47. package/dist/gen/app/v1/app_pb.d.ts +278 -1
  48. package/dist/gen/app/v1/billing_connect.d.ts +1 -1
  49. package/dist/gen/app/v1/end_user_connect.d.ts +1 -1
  50. package/dist/gen/app/v1/robot_connect.d.ts +1 -1
  51. package/dist/gen/component/arm/v1/arm_connect.d.ts +1 -1
  52. package/dist/gen/component/audioin/v1/audioin_connect.d.ts +1 -1
  53. package/dist/gen/component/audioout/v1/audioout_connect.d.ts +1 -1
  54. package/dist/gen/component/base/v1/base_connect.d.ts +1 -1
  55. package/dist/gen/component/board/v1/board_connect.d.ts +1 -1
  56. package/dist/gen/component/button/v1/button_connect.d.ts +1 -1
  57. package/dist/gen/component/camera/v1/camera_connect.d.ts +1 -1
  58. package/dist/gen/component/encoder/v1/encoder_connect.d.ts +1 -1
  59. package/dist/gen/component/gantry/v1/gantry_connect.d.ts +1 -1
  60. package/dist/gen/component/generic/v1/generic_connect.d.ts +1 -1
  61. package/dist/gen/component/gripper/v1/gripper_connect.d.ts +1 -1
  62. package/dist/gen/component/inputcontroller/v1/input_controller_connect.d.ts +1 -1
  63. package/dist/gen/component/motor/v1/motor_connect.d.ts +1 -1
  64. package/dist/gen/component/movementsensor/v1/movementsensor_connect.d.ts +1 -1
  65. package/dist/gen/component/posetracker/v1/pose_tracker_connect.d.ts +1 -1
  66. package/dist/gen/component/powersensor/v1/powersensor_connect.d.ts +1 -1
  67. package/dist/gen/component/sensor/v1/sensor_connect.d.ts +1 -1
  68. package/dist/gen/component/servo/v1/servo_connect.d.ts +1 -1
  69. package/dist/gen/component/switch/v1/switch_connect.d.ts +1 -1
  70. package/dist/gen/component/testecho/v1/testecho_connect.d.ts +1 -1
  71. package/dist/gen/google/bytestream/bytestream_connect.d.ts +1 -1
  72. package/dist/gen/google/iam/v1/iam_policy_connect.d.ts +1 -1
  73. package/dist/gen/google/longrunning/operations_connect.d.ts +1 -1
  74. package/dist/gen/grpc/reflection/v1/reflection_connect.d.ts +1 -1
  75. package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_connect.d.ts +1 -1
  76. package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_connect.d.ts +1 -1
  77. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts +1 -1
  78. package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_connect.d.ts +1 -1
  79. package/dist/gen/proto/rpc/examples/echo/v1/echo_connect.d.ts +1 -1
  80. package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_connect.d.ts +1 -1
  81. package/dist/gen/proto/rpc/v1/auth_connect.d.ts +1 -1
  82. package/dist/gen/proto/rpc/webrtc/v1/signaling_connect.d.ts +1 -1
  83. package/dist/gen/provisioning/v1/provisioning_connect.d.ts +1 -1
  84. package/dist/gen/robot/v1/robot_connect.d.ts +1 -1
  85. package/dist/gen/robot/v1/robot_pb.d.ts +115 -0
  86. package/dist/gen/service/datamanager/v1/data_manager_connect.d.ts +1 -1
  87. package/dist/gen/service/discovery/v1/discovery_connect.d.ts +1 -1
  88. package/dist/gen/service/generic/v1/generic_connect.d.ts +1 -1
  89. package/dist/gen/service/mlmodel/v1/mlmodel_connect.d.ts +1 -1
  90. package/dist/gen/service/motion/v1/motion_connect.d.ts +1 -1
  91. package/dist/gen/service/navigation/v1/navigation_connect.d.ts +1 -1
  92. package/dist/gen/service/sensors/v1/sensors_connect.d.ts +1 -1
  93. package/dist/gen/service/shell/v1/shell_connect.d.ts +1 -1
  94. package/dist/gen/service/slam/v1/slam_connect.d.ts +1 -1
  95. package/dist/gen/service/video/v1/video_connect.d.ts +1 -1
  96. package/dist/gen/service/vision/v1/vision_connect.d.ts +1 -1
  97. package/dist/gen/service/worldstatestore/v1/world_state_store_connect.d.ts +1 -1
  98. package/dist/gen/stream/v1/stream_connect.d.ts +1 -1
  99. package/dist/main.d.ts +11 -12
  100. package/dist/main.es.js +29098 -33211
  101. package/dist/main.umd.js +6 -7
  102. package/dist/robot/client.d.ts +59 -86
  103. package/dist/robot/dial.d.ts +7 -10
  104. package/dist/robot/robot.d.ts +29 -29
  105. package/dist/rpc/client-channel.d.ts +1 -1
  106. package/dist/rpc/client-stream.d.ts +4 -5
  107. package/dist/rpc/connection-closed-error.d.ts +1 -1
  108. package/dist/rpc/dial.d.ts +34 -41
  109. package/dist/rpc/signaling-exchange.d.ts +1 -1
  110. package/dist/rpc/stream-client-stream.d.ts +1 -1
  111. package/dist/rpc/unary-client-stream.d.ts +1 -1
  112. package/dist/services/data-manager/client.d.ts +5 -14
  113. package/dist/services/data-manager/data-manager.d.ts +1 -1
  114. package/dist/services/generic/client.d.ts +1 -1
  115. package/dist/services/generic/generic.d.ts +1 -2
  116. package/dist/services/motion/motion.d.ts +53 -78
  117. package/dist/services/navigation/client.d.ts +1 -1
  118. package/dist/services/navigation/navigation.d.ts +2 -4
  119. package/dist/services/slam/client.d.ts +1 -1
  120. package/dist/services/slam/slam.d.ts +4 -6
  121. package/dist/services/video/video.d.ts +2 -6
  122. package/dist/services/vision/vision.d.ts +13 -19
  123. package/dist/services/world-state-store/world-state-store.d.ts +6 -19
  124. package/dist/types.d.ts +5 -7
  125. package/dist/utils.d.ts +5 -5
  126. package/package.json +29 -29
@@ -6,8 +6,8 @@ export type MovementSensorPosition = sensorApi.GetPositionResponse;
6
6
  export type MovementSensorProperties = sensorApi.GetPropertiesResponse;
7
7
  export declare const MovementSensorAccuracy: typeof sensorApi.GetAccuracyResponse, MovementSensorPosition: typeof sensorApi.GetPositionResponse, MovementSensorProperties: typeof sensorApi.GetPropertiesResponse;
8
8
  /**
9
- * Represents any sensor that reports information about the robot's direction,
10
- * position, and/or speed.
9
+ * Represents any sensor that reports information about the robot's direction, position, and/or
10
+ * speed.
11
11
  */
12
12
  export interface MovementSensor extends Resource {
13
13
  /**
@@ -16,10 +16,7 @@ export interface MovementSensor extends Resource {
16
16
  * @example
17
17
  *
18
18
  * ```ts
19
- * const movementSensor = new VIAM.MovementSensorClient(
20
- * machine,
21
- * 'my_movement_sensor'
22
- * );
19
+ * const movementSensor = new VIAM.MovementSensorClient(machine, 'my_movement_sensor');
23
20
  * const linearVelocity = await movementSensor.getLinearVelocity();
24
21
  * ```
25
22
  *
@@ -33,10 +30,7 @@ export interface MovementSensor extends Resource {
33
30
  * @example
34
31
  *
35
32
  * ```ts
36
- * const movementSensor = new VIAM.MovementSensorClient(
37
- * machine,
38
- * 'my_movement_sensor'
39
- * );
33
+ * const movementSensor = new VIAM.MovementSensorClient(machine, 'my_movement_sensor');
40
34
  * const angularVelocity = await movementSensor.getAngularVelocity();
41
35
  * ```
42
36
  *
@@ -45,16 +39,13 @@ export interface MovementSensor extends Resource {
45
39
  */
46
40
  getAngularVelocity(extra?: Struct): Promise<Vector3>;
47
41
  /**
48
- * Get the compass heading, which is a number from 0-359 where 0 is North, 90
49
- * is East, 180 is South, and 270 is West.
42
+ * Get the compass heading, which is a number from 0-359 where 0 is North, 90 is East, 180 is
43
+ * South, and 270 is West.
50
44
  *
51
45
  * @example
52
46
  *
53
47
  * ```ts
54
- * const movementSensor = new VIAM.MovementSensorClient(
55
- * machine,
56
- * 'my_movement_sensor'
57
- * );
48
+ * const movementSensor = new VIAM.MovementSensorClient(machine, 'my_movement_sensor');
58
49
  * const compassHeading = await movementSensor.getCompassHeading();
59
50
  * ```
60
51
  *
@@ -68,10 +59,7 @@ export interface MovementSensor extends Resource {
68
59
  * @example
69
60
  *
70
61
  * ```ts
71
- * const movementSensor = new VIAM.MovementSensorClient(
72
- * machine,
73
- * 'my_movement_sensor'
74
- * );
62
+ * const movementSensor = new VIAM.MovementSensorClient(machine, 'my_movement_sensor');
75
63
  * const orientation = await movementSensor.getOrientation();
76
64
  * ```
77
65
  *
@@ -85,10 +73,7 @@ export interface MovementSensor extends Resource {
85
73
  * @example
86
74
  *
87
75
  * ```ts
88
- * const movementSensor = new VIAM.MovementSensorClient(
89
- * machine,
90
- * 'my_movement_sensor'
91
- * );
76
+ * const movementSensor = new VIAM.MovementSensorClient(machine, 'my_movement_sensor');
92
77
  * const position = await movementSensor.getPosition();
93
78
  * ```
94
79
  *
@@ -102,10 +87,7 @@ export interface MovementSensor extends Resource {
102
87
  * @example
103
88
  *
104
89
  * ```ts
105
- * const movementSensor = new VIAM.MovementSensorClient(
106
- * machine,
107
- * 'my_movement_sensor'
108
- * );
90
+ * const movementSensor = new VIAM.MovementSensorClient(machine, 'my_movement_sensor');
109
91
  * const properties = await movementSensor.getProperties();
110
92
  * ```
111
93
  *
@@ -119,10 +101,7 @@ export interface MovementSensor extends Resource {
119
101
  * @example
120
102
  *
121
103
  * ```ts
122
- * const movementSensor = new VIAM.MovementSensorClient(
123
- * machine,
124
- * 'my_movement_sensor'
125
- * );
104
+ * const movementSensor = new VIAM.MovementSensorClient(machine, 'my_movement_sensor');
126
105
  * const accuracy = await movementSensor.getAccuracy();
127
106
  * ```
128
107
  *
@@ -136,12 +115,8 @@ export interface MovementSensor extends Resource {
136
115
  * @example
137
116
  *
138
117
  * ```ts
139
- * const movementSensor = new VIAM.MovementSensorClient(
140
- * machine,
141
- * 'my_movement_sensor'
142
- * );
143
- * const linearAcceleration =
144
- * await movementSensor.getLinearAcceleration();
118
+ * const movementSensor = new VIAM.MovementSensorClient(machine, 'my_movement_sensor');
119
+ * const linearAcceleration = await movementSensor.getLinearAcceleration();
145
120
  * ```
146
121
  *
147
122
  * For more information, see [Movement Sensor
@@ -154,10 +129,7 @@ export interface MovementSensor extends Resource {
154
129
  * @example
155
130
  *
156
131
  * ```ts
157
- * const movementSensor = new VIAM.MovementSensorClient(
158
- * machine,
159
- * 'my_movement_sensor'
160
- * );
132
+ * const movementSensor = new VIAM.MovementSensorClient(machine, 'my_movement_sensor');
161
133
  * const readings = await movementSensor.getReadings();
162
134
  * ```
163
135
  *
@@ -8,10 +8,7 @@ export interface PoseTracker extends Resource {
8
8
  * @example
9
9
  *
10
10
  * ```ts
11
- * const generic = new VIAM.GenericComponentClient(
12
- * machine,
13
- * 'my_generic_component'
14
- * );
11
+ * const generic = new VIAM.GenericComponentClient(machine, 'my_generic_component');
15
12
  *
16
13
  * // Get the geometries of this component
17
14
  * const geometries = await generic.getGeometries();
@@ -3,16 +3,12 @@ import type { Sensor } from '../sensor';
3
3
  /** Represents any sensor that reports voltage, current, and/or power */
4
4
  export interface PowerSensor extends Sensor {
5
5
  /**
6
- * Get voltage in volts and a boolean indicating whether the voltage is AC
7
- * (true) or DC (false).
6
+ * Get voltage in volts and a boolean indicating whether the voltage is AC (true) or DC (false).
8
7
  *
9
8
  * @example
10
9
  *
11
10
  * ```ts
12
- * const powerSensor = new VIAM.PowerSensorClient(
13
- * machine,
14
- * 'my_power_sensor'
15
- * );
11
+ * const powerSensor = new VIAM.PowerSensorClient(machine, 'my_power_sensor');
16
12
  * const [voltage, isAc] = await powerSensor.getVoltage();
17
13
  * ```
18
14
  *
@@ -21,16 +17,12 @@ export interface PowerSensor extends Sensor {
21
17
  */
22
18
  getVoltage(extra?: Struct): Promise<readonly [number, boolean]>;
23
19
  /**
24
- * Get Current in amps and a boolean indicating whether the voltage is AC
25
- * (true) or DC (false).
20
+ * Get Current in amps and a boolean indicating whether the voltage is AC (true) or DC (false).
26
21
  *
27
22
  * @example
28
23
  *
29
24
  * ```ts
30
- * const powerSensor = new VIAM.PowerSensorClient(
31
- * machine,
32
- * 'my_power_sensor'
33
- * );
25
+ * const powerSensor = new VIAM.PowerSensorClient(machine, 'my_power_sensor');
34
26
  * const [current, isAc] = await powerSensor.getCurrent();
35
27
  * ```
36
28
  *
@@ -44,10 +36,7 @@ export interface PowerSensor extends Sensor {
44
36
  * @example
45
37
  *
46
38
  * ```ts
47
- * const powerSensor = new VIAM.PowerSensorClient(
48
- * machine,
49
- * 'my_power_sensor'
50
- * );
39
+ * const powerSensor = new VIAM.PowerSensorClient(machine, 'my_power_sensor');
51
40
  * const power = await powerSensor.getPower();
52
41
  * ```
53
42
  *
@@ -61,10 +50,7 @@ export interface PowerSensor extends Sensor {
61
50
  * @example
62
51
  *
63
52
  * ```ts
64
- * const powerSensor = new VIAM.PowerSensorClient(
65
- * machine,
66
- * 'my_power_sensor'
67
- * );
53
+ * const powerSensor = new VIAM.PowerSensorClient(machine, 'my_power_sensor');
68
54
  * const readings = await powerSensor.getReadings();
69
55
  * ```
70
56
  *
@@ -47,9 +47,8 @@ export interface Switch extends Resource {
47
47
  */
48
48
  getPosition: (extra?: Struct) => Promise<number>;
49
49
  /**
50
- * Get the total number of positions available on the switch, along with their
51
- * labels. Labels should either be null, undefined, empty, or the same length
52
- * has the number of positions.
50
+ * Get the total number of positions available on the switch, along with their labels. Labels
51
+ * should either be null, undefined, empty, or the same length has the number of positions.
53
52
  *
54
53
  * @example
55
54
  *
package/dist/debug.d.ts CHANGED
@@ -6,10 +6,7 @@
6
6
  * @example Log connection events to the browser console:
7
7
  *
8
8
  * ```ts
9
- * import {
10
- * setDebugLogWriter,
11
- * createConsoleLogWriter,
12
- * } from '@viamrobotics/sdk';
9
+ * import { setDebugLogWriter, createConsoleLogWriter } from '@viamrobotics/sdk';
13
10
  * setDebugLogWriter(createConsoleLogWriter());
14
11
  * ```
15
12
  *
@@ -19,9 +16,7 @@
19
16
  * import fs from 'node:fs';
20
17
  * import { setDebugLogWriter } from '@viamrobotics/sdk';
21
18
  * const logFile = fs.createWriteStream('viam-debug.log', { flags: 'a' });
22
- * setDebugLogWriter((entry) =>
23
- * logFile.write(JSON.stringify(entry) + '\n')
24
- * );
19
+ * setDebugLogWriter((entry) => logFile.write(JSON.stringify(entry) + '\n'));
25
20
  * ```
26
21
  *
27
22
  * Logged events:
@@ -39,8 +34,8 @@ export interface DebugLogEntry {
39
34
  /** The time at which the event occurred. */
40
35
  timestamp: Date;
41
36
  /**
42
- * The type of event. One of: `dial_started`, `dial_success`, `dial_failed`,
43
- * `grpc_request`, `grpc_response`, `client_closed`, `ice_disconnected`.
37
+ * The type of event. One of: `dial_started`, `dial_success`, `dial_failed`, `grpc_request`,
38
+ * `grpc_response`, `client_closed`, `ice_disconnected`.
44
39
  */
45
40
  event: string;
46
41
  /** The ID of the connection this event relates to, when applicable. */
@@ -50,16 +45,13 @@ export interface DebugLogEntry {
50
45
  /** A function that receives structured debug log entries from the SDK. */
51
46
  export type DebugLogWriter = (entry: DebugLogEntry) => void;
52
47
  /**
53
- * Set a writer function to receive structured debug log entries from the SDK.
54
- * Pass `undefined` to disable debug logging.
48
+ * Set a writer function to receive structured debug log entries from the SDK. Pass `undefined` to
49
+ * disable debug logging.
55
50
  *
56
51
  * @example
57
52
  *
58
53
  * ```ts
59
- * import {
60
- * setDebugLogWriter,
61
- * createConsoleLogWriter,
62
- * } from '@viamrobotics/sdk';
54
+ * import { setDebugLogWriter, createConsoleLogWriter } from '@viamrobotics/sdk';
63
55
  * // Enable:
64
56
  * setDebugLogWriter(createConsoleLogWriter());
65
57
  * // Disable:
package/dist/events.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- type Callback = (args: unknown) => void;
1
+ type Callback<E> = (args: E) => void;
2
2
  /**
3
- * MachineConnectionEvent events are emitted by a Client's EventDispatcher when
4
- * connection events occur.
3
+ * MachineConnectionEvent events are emitted by a Client's EventDispatcher when connection events
4
+ * occur.
5
5
  */
6
6
  export declare enum MachineConnectionEvent {
7
7
  CONNECTING = "connecting",
@@ -12,12 +12,14 @@ export declare enum MachineConnectionEvent {
12
12
  RECONNECTING = "reconnecting",
13
13
  RECONNECTION_FAILED = "reconnection_failed"
14
14
  }
15
- export declare class EventDispatcher {
16
- listeners: Partial<Record<string, Set<Callback>>>;
17
- on(type: string, listener: Callback): void;
18
- once(type: string, listener: Callback): void;
19
- has(type: string, listener: Callback): boolean | undefined;
20
- off(type: string, listener: Callback): void;
21
- emit(type: string, args: unknown): void;
15
+ export declare class EventDispatcher<Events extends object> {
16
+ listeners: Partial<{
17
+ [K in keyof Events]: Set<Callback<Events[K]>>;
18
+ }>;
19
+ on<K extends keyof Events & string>(type: K, listener: Callback<Events[K]>): void;
20
+ once<K extends keyof Events & string>(type: K, listener: Callback<Events[K]>): void;
21
+ has<K extends keyof Events & string>(type: K, listener: Callback<Events[K]>): boolean | undefined;
22
+ off<K extends keyof Events & string>(type: K, listener: Callback<Events[K]>): void;
23
+ emit<K extends keyof Events & string>(type: K, args: Events[K]): void;
22
24
  }
23
25
  export {};
@@ -1,5 +1,5 @@
1
1
  import { EventDispatcher } from '../../events';
2
- import { Resolution } from '../../gen/stream/v1/stream_pb';
2
+ import { type Resolution } from '../../gen/stream/v1/stream_pb';
3
3
  import type { RobotClient } from '../../robot';
4
4
  import type { Options } from '../../types';
5
5
  import type { Stream } from './stream';
@@ -8,7 +8,9 @@ import type { Stream } from './stream';
8
8
  *
9
9
  * @group Clients
10
10
  */
11
- export declare class StreamClient extends EventDispatcher implements Stream {
11
+ export declare class StreamClient extends EventDispatcher<{
12
+ track: RTCTrackEvent;
13
+ }> implements Stream {
12
14
  private client;
13
15
  private readonly options;
14
16
  private streams;
@@ -16,17 +18,16 @@ export declare class StreamClient extends EventDispatcher implements Stream {
16
18
  add(name: string): Promise<void>;
17
19
  remove(name: string): Promise<void>;
18
20
  /**
19
- * Get the available livestream resolutions for a camera component. If the
20
- * stream client cannot find any available resolutions, an empty list will be
21
- * returned.
21
+ * Get the available livestream resolutions for a camera component. If the stream client cannot
22
+ * find any available resolutions, an empty list will be returned.
22
23
  *
23
24
  * @param resourceName - The name of a camera component.
24
25
  * @returns A list of available resolutions for livestreaming.
25
26
  */
26
27
  getOptions(resourceName: string): Promise<Resolution[]>;
27
28
  /**
28
- * Set the livestream options for a camera component. This will change the
29
- * resolution of the stream to the specified width and height.
29
+ * Set the livestream options for a camera component. This will change the resolution of the
30
+ * stream to the specified width and height.
30
31
  *
31
32
  * @param name - The name of a camera component.
32
33
  * @param width - The width of the resolution.
@@ -34,16 +35,16 @@ export declare class StreamClient extends EventDispatcher implements Stream {
34
35
  */
35
36
  setOptions(name: string, width: number, height: number): Promise<void>;
36
37
  /**
37
- * Reset the livestream options for a camera component. This will reset the
38
- * resolution to the default component attributes.
38
+ * Reset the livestream options for a camera component. This will reset the resolution to the
39
+ * default component attributes.
39
40
  *
40
41
  * @param name - The name of a camera component.
41
42
  */
42
43
  resetOptions(name: string): Promise<void>;
43
44
  private STREAM_TIMEOUT;
44
45
  /**
45
- * Get a stream by name from a StreamClient. Will time out if stream is not
46
- * received within 5 seconds.
46
+ * Get a stream by name from a StreamClient. Will time out if stream is not received within 5
47
+ * seconds.
47
48
  *
48
49
  * @param name - The name of a camera component.
49
50
  */
@@ -1,4 +1,4 @@
1
- import { Resolution } from '../../gen/stream/v1/stream_pb';
1
+ import { type Resolution } from '../../gen/stream/v1/stream_pb';
2
2
  export interface Stream {
3
3
  /** Add a stream by name. */
4
4
  add: (name: string) => Promise<void>;
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.5.0
1
+ // @generated by protoc-gen-connect-es v1.6.1
2
2
  // @generated from file app/agent/v1/agent.proto (package viam.app.agent.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.5.0
1
+ // @generated by protoc-gen-connect-es v1.6.1
2
2
  // @generated from file app/build/v1/build.proto (package viam.app.build.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.5.0
1
+ // @generated by protoc-gen-connect-es v1.6.1
2
2
  // @generated from file app/cloudslam/v1/cloud_slam.proto (package viam.app.cloudslam.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.5.0
1
+ // @generated by protoc-gen-connect-es v1.6.1
2
2
  // @generated from file app/data/v1/data.proto (package viam.app.data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.5.0
1
+ // @generated by protoc-gen-connect-es v1.6.1
2
2
  // @generated from file app/datapipelines/v1/data_pipelines.proto (package viam.app.datapipelines.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.5.0
1
+ // @generated by protoc-gen-connect-es v1.6.1
2
2
  // @generated from file app/dataset/v1/dataset.proto (package viam.app.dataset.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.5.0
1
+ // @generated by protoc-gen-connect-es v1.6.1
2
2
  // @generated from file app/datasync/v1/data_sync.proto (package viam.app.datasync.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.5.0
1
+ // @generated by protoc-gen-connect-es v1.6.1
2
2
  // @generated from file app/mlinference/v1/ml_inference.proto (package viam.app.mlinference.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.5.0
1
+ // @generated by protoc-gen-connect-es v1.6.1
2
2
  // @generated from file app/mltraining/v1/ml_training.proto (package viam.app.mltraining.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.5.0
1
+ // @generated by protoc-gen-connect-es v1.6.1
2
2
  // @generated from file app/packages/v1/packages.proto (package viam.app.packages.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,9 +1,9 @@
1
- // @generated by protoc-gen-connect-es v1.5.0
1
+ // @generated by protoc-gen-connect-es v1.6.1
2
2
  // @generated from file app/v1/app.proto (package viam.app.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { AddRoleRequest, AddRoleResponse, ChangeRoleRequest, ChangeRoleResponse, CheckPermissionsRequest, CheckPermissionsResponse, CreateFragmentRequest, CreateFragmentResponse, CreateKeyFromExistingKeyAuthorizationsRequest, CreateKeyFromExistingKeyAuthorizationsResponse, CreateKeyRequest, CreateKeyResponse, CreateLocationRequest, CreateLocationResponse, CreateLocationSecretRequest, CreateLocationSecretResponse, CreateModuleRequest, CreateModuleResponse, CreateOAuthAppRequest, CreateOAuthAppResponse, CreateOAuthAppUserRequest, CreateOAuthAppUserResponse, CreateOrganizationInviteRequest, CreateOrganizationInviteResponse, CreateOrganizationRequest, CreateOrganizationResponse, CreateRegistryItemRequest, CreateRegistryItemResponse, CreateRobotPartSecretRequest, CreateRobotPartSecretResponse, DeleteDevicePushTokenRequest, DeleteDevicePushTokenResponse, DeleteFirebaseConfigRequest, DeleteFirebaseConfigResponse, DeleteFragmentRequest, DeleteFragmentResponse, DeleteFragmentTagRequest, DeleteFragmentTagResponse, DeleteKeyRequest, DeleteKeyResponse, DeleteLocationRequest, DeleteLocationResponse, DeleteLocationSecretRequest, DeleteLocationSecretResponse, DeleteOAuthAppRequest, DeleteOAuthAppResponse, DeleteOrganizationInviteRequest, DeleteOrganizationInviteResponse, DeleteOrganizationMemberRequest, DeleteOrganizationMemberResponse, DeleteOrganizationRequest, DeleteOrganizationResponse, DeleteRegistryItemRequest, DeleteRegistryItemResponse, DeleteRobotPartRequest, DeleteRobotPartResponse, DeleteRobotPartSecretRequest, DeleteRobotPartSecretResponse, DeleteRobotRequest, DeleteRobotResponse, DisableAuthServiceRequest, DisableAuthServiceResponse, DisableBillingServiceRequest, DisableBillingServiceResponse, EnableAuthServiceRequest, EnableAuthServiceResponse, EnableBillingServiceRequest, EnableBillingServiceResponse, GetAppBrandingRequest, GetAppBrandingResponse, GetAppContentRequest, GetAppContentResponse, GetBillingServiceConfigRequest, GetBillingServiceConfigResponse, GetDevicePushTokensRequest, GetDevicePushTokensResponse, GetFirebaseConfigRequest, GetFirebaseConfigResponse, GetFragmentHistoryRequest, GetFragmentHistoryResponse, GetFragmentRequest, GetFragmentResponse, GetFragmentUsageRequest, GetFragmentUsageResponse, GetLocationMetadataRequest, GetLocationMetadataResponse, GetLocationRequest, GetLocationResponse, GetModuleRequest, GetModuleResponse, GetOrganizationMetadataRequest, GetOrganizationMetadataResponse, GetOrganizationNamespaceAvailabilityRequest, GetOrganizationNamespaceAvailabilityResponse, GetOrganizationRequest, GetOrganizationResponse, GetOrganizationsWithAccessToLocationRequest, GetOrganizationsWithAccessToLocationResponse, GetRegistryItemRequest, GetRegistryItemResponse, GetRobotAPIKeysRequest, GetRobotAPIKeysResponse, GetRobotMetadataRequest, GetRobotMetadataResponse, GetRobotPartByNameAndLocationRequest, GetRobotPartByNameAndLocationResponse, GetRobotPartHistoryRequest, GetRobotPartHistoryResponse, GetRobotPartLogsRequest, GetRobotPartLogsResponse, GetRobotPartMetadataRequest, GetRobotPartMetadataResponse, GetRobotPartRequest, GetRobotPartResponse, GetRobotPartsRequest, GetRobotPartsResponse, GetRobotRequest, GetRobotResponse, GetRoverRentalRobotsRequest, GetRoverRentalRobotsResponse, GetUserIDByEmailRequest, GetUserIDByEmailResponse, ListAuthorizationsRequest, ListAuthorizationsResponse, ListFragmentsRequest, ListFragmentsResponse, ListKeysRequest, ListKeysResponse, ListLocationsRequest, ListLocationsResponse, ListMachineFragmentsRequest, ListMachineFragmentsResponse, ListMachineSummariesRequest, ListMachineSummariesResponse, ListModulesRequest, ListModulesResponse, ListNestedFragmentsRequest, ListNestedFragmentsResponse, ListOAuthAppsRequest, ListOAuthAppsResponse, ListOrganizationMembersRequest, ListOrganizationMembersResponse, ListOrganizationsByUserRequest, ListOrganizationsByUserResponse, ListOrganizationsRequest, ListOrganizationsResponse, ListRegistryItemsRequest, ListRegistryItemsResponse, ListRobotsForLocationsRequest, ListRobotsForLocationsResponse, ListRobotsForOrgRequest, ListRobotsForOrgResponse, ListRobotsRequest, ListRobotsResponse, LocationAuthRequest, LocationAuthResponse, MarkPartAsMainRequest, MarkPartAsMainResponse, MarkPartForRestartRequest, MarkPartForRestartResponse, NewRobotPartRequest, NewRobotPartResponse, NewRobotRequest, NewRobotResponse, OrganizationGetLogoRequest, OrganizationGetLogoResponse, OrganizationGetSupportEmailRequest, OrganizationGetSupportEmailResponse, OrganizationSetLogoRequest, OrganizationSetLogoResponse, OrganizationSetSupportEmailRequest, OrganizationSetSupportEmailResponse, ReadOAuthAppRequest, ReadOAuthAppResponse, RemoveRoleRequest, RemoveRoleResponse, RenameKeyRequest, RenameKeyResponse, RenameRegistryItemRequest, RenameRegistryItemResponse, ResendOrganizationInviteRequest, ResendOrganizationInviteResponse, RotateKeyRequest, RotateKeyResponse, SearchOrganizationsRequest, SearchOrganizationsResponse, SetFirebaseConfigRequest, SetFirebaseConfigResponse, SetFragmentTagRequest, SetFragmentTagResponse, ShareLocationRequest, ShareLocationResponse, TailRobotPartLogsRequest, TailRobotPartLogsResponse, TransferRegistryItemRequest, TransferRegistryItemResponse, UnshareLocationRequest, UnshareLocationResponse, UpdateBillingServiceRequest, UpdateBillingServiceResponse, UpdateFragmentRequest, UpdateFragmentResponse, UpdateLocationMetadataRequest, UpdateLocationMetadataResponse, UpdateLocationRequest, UpdateLocationResponse, UpdateModuleRequest, UpdateModuleResponse, UpdateOAuthAppRequest, UpdateOAuthAppResponse, UpdateOrganizationInviteAuthorizationsRequest, UpdateOrganizationInviteAuthorizationsResponse, UpdateOrganizationMetadataRequest, UpdateOrganizationMetadataResponse, UpdateOrganizationNamespaceRequest, UpdateOrganizationNamespaceResponse, UpdateOrganizationRequest, UpdateOrganizationResponse, UpdateRegistryItemRequest, UpdateRegistryItemResponse, UpdateRobotMetadataRequest, UpdateRobotMetadataResponse, UpdateRobotPartMetadataRequest, UpdateRobotPartMetadataResponse, UpdateRobotPartRequest, UpdateRobotPartResponse, UpdateRobotRequest, UpdateRobotResponse, UploadDevicePushTokenRequest, UploadDevicePushTokenResponse, UploadModuleFileRequest, UploadModuleFileResponse } from "./app_pb.js";
6
+ import { AddRoleRequest, AddRoleResponse, ChangeRoleRequest, ChangeRoleResponse, CheckPermissionsRequest, CheckPermissionsResponse, CreateFragmentRequest, CreateFragmentResponse, CreateKeyFromExistingKeyAuthorizationsRequest, CreateKeyFromExistingKeyAuthorizationsResponse, CreateKeyRequest, CreateKeyResponse, CreateLocationRequest, CreateLocationResponse, CreateLocationSecretRequest, CreateLocationSecretResponse, CreateModuleRequest, CreateModuleResponse, CreateOAuthAppRequest, CreateOAuthAppResponse, CreateOAuthAppUserRequest, CreateOAuthAppUserResponse, CreateOrganizationInviteRequest, CreateOrganizationInviteResponse, CreateOrganizationRequest, CreateOrganizationResponse, CreateRegistryItemRequest, CreateRegistryItemResponse, CreateRobotPartSecretRequest, CreateRobotPartSecretResponse, DeleteDevicePushTokenRequest, DeleteDevicePushTokenResponse, DeleteFirebaseConfigRequest, DeleteFirebaseConfigResponse, DeleteFragmentRequest, DeleteFragmentResponse, DeleteFragmentTagRequest, DeleteFragmentTagResponse, DeleteKeyRequest, DeleteKeyResponse, DeleteLocationRequest, DeleteLocationResponse, DeleteLocationSecretRequest, DeleteLocationSecretResponse, DeleteOAuthAppRequest, DeleteOAuthAppResponse, DeleteOrganizationInviteRequest, DeleteOrganizationInviteResponse, DeleteOrganizationMemberRequest, DeleteOrganizationMemberResponse, DeleteOrganizationRequest, DeleteOrganizationResponse, DeleteRegistryItemRequest, DeleteRegistryItemResponse, DeleteRobotPartRequest, DeleteRobotPartResponse, DeleteRobotPartSecretRequest, DeleteRobotPartSecretResponse, DeleteRobotRequest, DeleteRobotResponse, DeprecateRegistryItemRequest, DeprecateRegistryItemResponse, DeprecateRegistryItemVersionRequest, DeprecateRegistryItemVersionResponse, DisableAuthServiceRequest, DisableAuthServiceResponse, DisableBillingServiceRequest, DisableBillingServiceResponse, EnableAuthServiceRequest, EnableAuthServiceResponse, EnableBillingServiceRequest, EnableBillingServiceResponse, GetAppBrandingRequest, GetAppBrandingResponse, GetAppContentRequest, GetAppContentResponse, GetBillingServiceConfigRequest, GetBillingServiceConfigResponse, GetDevicePushTokensRequest, GetDevicePushTokensResponse, GetFirebaseConfigRequest, GetFirebaseConfigResponse, GetFragmentHistoryRequest, GetFragmentHistoryResponse, GetFragmentRequest, GetFragmentResponse, GetFragmentUsageRequest, GetFragmentUsageResponse, GetLocationMetadataRequest, GetLocationMetadataResponse, GetLocationRequest, GetLocationResponse, GetModuleRequest, GetModuleResponse, GetOrganizationMetadataRequest, GetOrganizationMetadataResponse, GetOrganizationNamespaceAvailabilityRequest, GetOrganizationNamespaceAvailabilityResponse, GetOrganizationRequest, GetOrganizationResponse, GetOrganizationsWithAccessToLocationRequest, GetOrganizationsWithAccessToLocationResponse, GetRegistryItemRequest, GetRegistryItemResponse, GetRobotAPIKeysRequest, GetRobotAPIKeysResponse, GetRobotMetadataRequest, GetRobotMetadataResponse, GetRobotPartByNameAndLocationRequest, GetRobotPartByNameAndLocationResponse, GetRobotPartHistoryRequest, GetRobotPartHistoryResponse, GetRobotPartLogsRequest, GetRobotPartLogsResponse, GetRobotPartMetadataRequest, GetRobotPartMetadataResponse, GetRobotPartRequest, GetRobotPartResponse, GetRobotPartsRequest, GetRobotPartsResponse, GetRobotRequest, GetRobotResponse, GetRoverRentalRobotsRequest, GetRoverRentalRobotsResponse, GetUserIDByEmailRequest, GetUserIDByEmailResponse, ListAuthorizationsRequest, ListAuthorizationsResponse, ListFragmentsRequest, ListFragmentsResponse, ListKeysRequest, ListKeysResponse, ListLocationsRequest, ListLocationsResponse, ListMachineFragmentsRequest, ListMachineFragmentsResponse, ListMachineSummariesRequest, ListMachineSummariesResponse, ListModulesRequest, ListModulesResponse, ListNestedFragmentsRequest, ListNestedFragmentsResponse, ListOAuthAppsRequest, ListOAuthAppsResponse, ListOrganizationMembersRequest, ListOrganizationMembersResponse, ListOrganizationsByUserRequest, ListOrganizationsByUserResponse, ListOrganizationsRequest, ListOrganizationsResponse, ListRegistryItemsRequest, ListRegistryItemsResponse, ListRobotsForLocationsRequest, ListRobotsForLocationsResponse, ListRobotsForOrgRequest, ListRobotsForOrgResponse, ListRobotsRequest, ListRobotsResponse, LocationAuthRequest, LocationAuthResponse, MarkPartAsMainRequest, MarkPartAsMainResponse, MarkPartForRestartRequest, MarkPartForRestartResponse, NewRobotPartRequest, NewRobotPartResponse, NewRobotRequest, NewRobotResponse, OrganizationGetLogoRequest, OrganizationGetLogoResponse, OrganizationGetSupportEmailRequest, OrganizationGetSupportEmailResponse, OrganizationSetLogoRequest, OrganizationSetLogoResponse, OrganizationSetSupportEmailRequest, OrganizationSetSupportEmailResponse, ReadOAuthAppRequest, ReadOAuthAppResponse, RemoveRoleRequest, RemoveRoleResponse, RenameKeyRequest, RenameKeyResponse, RenameRegistryItemRequest, RenameRegistryItemResponse, ResendOrganizationInviteRequest, ResendOrganizationInviteResponse, RotateKeyRequest, RotateKeyResponse, SearchOrganizationsRequest, SearchOrganizationsResponse, SetFirebaseConfigRequest, SetFirebaseConfigResponse, SetFragmentTagRequest, SetFragmentTagResponse, ShareLocationRequest, ShareLocationResponse, TailRobotPartLogsRequest, TailRobotPartLogsResponse, TransferRegistryItemRequest, TransferRegistryItemResponse, UndeprecateRegistryItemRequest, UndeprecateRegistryItemResponse, UndeprecateRegistryItemVersionRequest, UndeprecateRegistryItemVersionResponse, UnshareLocationRequest, UnshareLocationResponse, UpdateBillingServiceRequest, UpdateBillingServiceResponse, UpdateFragmentRequest, UpdateFragmentResponse, UpdateLocationMetadataRequest, UpdateLocationMetadataResponse, UpdateLocationRequest, UpdateLocationResponse, UpdateModuleRequest, UpdateModuleResponse, UpdateOAuthAppRequest, UpdateOAuthAppResponse, UpdateOrganizationInviteAuthorizationsRequest, UpdateOrganizationInviteAuthorizationsResponse, UpdateOrganizationMetadataRequest, UpdateOrganizationMetadataResponse, UpdateOrganizationNamespaceRequest, UpdateOrganizationNamespaceResponse, UpdateOrganizationRequest, UpdateOrganizationResponse, UpdateRegistryItemRequest, UpdateRegistryItemResponse, UpdateRobotMetadataRequest, UpdateRobotMetadataResponse, UpdateRobotPartMetadataRequest, UpdateRobotPartMetadataResponse, UpdateRobotPartRequest, UpdateRobotPartResponse, UpdateRobotRequest, UpdateRobotResponse, UploadDevicePushTokenRequest, UploadDevicePushTokenResponse, UploadModuleFileRequest, UploadModuleFileResponse } from "./app_pb.js";
7
7
  import { MethodKind } from "@bufbuild/protobuf";
8
8
 
9
9
  /**
@@ -1035,6 +1035,24 @@ export declare const AppService: {
1035
1035
  readonly O: typeof TransferRegistryItemResponse,
1036
1036
  readonly kind: MethodKind.Unary,
1037
1037
  },
1038
+ /**
1039
+ * @generated from rpc viam.app.v1.AppService.DeprecateRegistryItem
1040
+ */
1041
+ readonly deprecateRegistryItem: {
1042
+ readonly name: "DeprecateRegistryItem",
1043
+ readonly I: typeof DeprecateRegistryItemRequest,
1044
+ readonly O: typeof DeprecateRegistryItemResponse,
1045
+ readonly kind: MethodKind.Unary,
1046
+ },
1047
+ /**
1048
+ * @generated from rpc viam.app.v1.AppService.UndeprecateRegistryItem
1049
+ */
1050
+ readonly undeprecateRegistryItem: {
1051
+ readonly name: "UndeprecateRegistryItem",
1052
+ readonly I: typeof UndeprecateRegistryItemRequest,
1053
+ readonly O: typeof UndeprecateRegistryItemResponse,
1054
+ readonly kind: MethodKind.Unary,
1055
+ },
1038
1056
  /**
1039
1057
  * @generated from rpc viam.app.v1.AppService.CreateModule
1040
1058
  */
@@ -1080,6 +1098,24 @@ export declare const AppService: {
1080
1098
  readonly O: typeof ListModulesResponse,
1081
1099
  readonly kind: MethodKind.Unary,
1082
1100
  },
1101
+ /**
1102
+ * @generated from rpc viam.app.v1.AppService.DeprecateRegistryItemVersion
1103
+ */
1104
+ readonly deprecateRegistryItemVersion: {
1105
+ readonly name: "DeprecateRegistryItemVersion",
1106
+ readonly I: typeof DeprecateRegistryItemVersionRequest,
1107
+ readonly O: typeof DeprecateRegistryItemVersionResponse,
1108
+ readonly kind: MethodKind.Unary,
1109
+ },
1110
+ /**
1111
+ * @generated from rpc viam.app.v1.AppService.UndeprecateRegistryItemVersion
1112
+ */
1113
+ readonly undeprecateRegistryItemVersion: {
1114
+ readonly name: "UndeprecateRegistryItemVersion",
1115
+ readonly I: typeof UndeprecateRegistryItemVersionRequest,
1116
+ readonly O: typeof UndeprecateRegistryItemVersionResponse,
1117
+ readonly kind: MethodKind.Unary,
1118
+ },
1083
1119
  /**
1084
1120
  * @generated from rpc viam.app.v1.AppService.CreateKey
1085
1121
  */