@viamrobotics/sdk 0.26.0 → 0.26.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 (40) hide show
  1. package/README.md +5 -2
  2. package/dist/api-version.d.ts +1 -1
  3. package/dist/components/arm/client.d.ts +9 -7
  4. package/dist/components/base/base.d.ts +1 -1
  5. package/dist/components/base/client.d.ts +10 -8
  6. package/dist/components/board/client.d.ts +14 -12
  7. package/dist/components/camera/client.d.ts +7 -5
  8. package/dist/components/encoder/client.d.ts +6 -4
  9. package/dist/components/gantry/client.d.ts +9 -7
  10. package/dist/components/generic/client.d.ts +3 -1
  11. package/dist/components/gripper/client.d.ts +7 -5
  12. package/dist/components/input-controller/client.d.ts +5 -3
  13. package/dist/components/motor/client.d.ts +13 -11
  14. package/dist/components/movement-sensor/client.d.ts +12 -10
  15. package/dist/components/power-sensor/client.d.ts +7 -5
  16. package/dist/components/sensor/client.d.ts +4 -2
  17. package/dist/components/servo/client.d.ts +7 -5
  18. package/dist/gen/app/build/v1/build_pb.d.ts +14 -0
  19. package/dist/gen/app/mlinference/v1/ml_inference_connect.d.ts +26 -0
  20. package/dist/gen/app/mlinference/v1/ml_inference_pb.d.ts +71 -0
  21. package/dist/gen/app/v1/app_pb.d.ts +35 -0
  22. package/dist/gen/app/v1/billing_pb.d.ts +177 -90
  23. package/dist/gen/app/v1/robot_pb.d.ts +7 -0
  24. package/dist/gen/proto/rpc/webrtc/v1/signaling_pb.d.ts +29 -0
  25. package/dist/gen/robot/v1/robot_pb.d.ts +5 -0
  26. package/dist/main.d.ts +1 -1
  27. package/dist/main.es.js +4175 -4102
  28. package/dist/main.umd.js +6 -6
  29. package/dist/rpc/base-channel.d.ts +1 -2
  30. package/dist/rpc/signaling-exchange.d.ts +1 -1
  31. package/dist/services/data-manager/client.d.ts +4 -2
  32. package/dist/services/generic/client.d.ts +3 -1
  33. package/dist/services/motion/client.d.ts +10 -8
  34. package/dist/services/navigation/client.d.ts +12 -10
  35. package/dist/services/slam/client.d.ts +7 -5
  36. package/dist/services/vision/client.d.ts +10 -8
  37. package/dist/utils.d.ts +5 -1
  38. package/package.json +10 -4
  39. package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_connect.d.ts +0 -26
  40. package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_pb.d.ts +0 -73
package/README.md CHANGED
@@ -10,7 +10,6 @@ Build and connect to robots with TypeScript
10
10
 
11
11
  > **Warning**
12
12
  > This is a beta release of the Viam TypeScript SDK. Stability is not guaranteed. Breaking changes are likely to occur, and occur often.
13
- > TS SDK only works in a browser environment.
14
13
 
15
14
  ## Usage
16
15
 
@@ -28,12 +27,16 @@ npm install @viamrobotics/sdk
28
27
 
29
28
  [https://ts.viam.dev](https://ts.viam.dev/)
30
29
 
30
+ ## Node
31
+
32
+ To use this SDK with node, read the [documentation](/Node.md) or view the [example](/examples/node/)
33
+
31
34
  ## React Native
32
35
 
33
36
  To use this SDK with React Native, read the [documentation](/ReactNative.md) or view the [example](/examples/react-native/)
34
37
 
35
38
  ## License
36
39
 
37
- Copyright 2022-2023 Viam Inc.
40
+ Copyright 2022-2024 Viam Inc.
38
41
 
39
42
  Apache 2.0 - See [LICENSE](https://github.com/viamrobotics/viam-typescript-sdk/blob/main/LICENSE) file
@@ -1 +1 @@
1
- export declare const apiVersion = "v0.1.342";
1
+ export declare const apiVersion = "v0.1.348";
@@ -1,4 +1,5 @@
1
1
  import { Struct, type JsonValue } from '@bufbuild/protobuf';
2
+ import type { CallOptions } from '@connectrpc/connect';
2
3
  import { JointPositions } from '../../gen/component/arm/v1/arm_pb';
3
4
  import type { RobotClient } from '../../robot';
4
5
  import type { Options, Pose } from '../../types';
@@ -12,12 +13,13 @@ export declare class ArmClient implements Arm {
12
13
  private client;
13
14
  private readonly name;
14
15
  private readonly options;
16
+ callOptions: CallOptions;
15
17
  constructor(client: RobotClient, name: string, options?: Options);
16
- getEndPosition(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Pose>;
17
- moveToPosition(pose: Pose, extra?: {}): Promise<void>;
18
- moveToJointPositions(jointPositionsList: number[], extra?: {}): Promise<void>;
19
- getJointPositions(extra?: {}): Promise<JointPositions>;
20
- stop(extra?: {}): Promise<void>;
21
- isMoving(): Promise<boolean>;
22
- doCommand(command: Struct): Promise<JsonValue>;
18
+ getEndPosition(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Pose>;
19
+ moveToPosition(pose: Pose, extra?: {}, callOptions?: CallOptions): Promise<void>;
20
+ moveToJointPositions(jointPositionsList: number[], extra?: {}, callOptions?: CallOptions): Promise<void>;
21
+ getJointPositions(extra?: {}, callOptions?: CallOptions): Promise<JointPositions>;
22
+ stop(extra?: {}, callOptions?: CallOptions): Promise<void>;
23
+ isMoving(callOptions?: CallOptions): Promise<boolean>;
24
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
23
25
  }
@@ -38,7 +38,7 @@ export interface Base extends Resource {
38
38
  /** Stop a base */
39
39
  stop(extra?: Struct): Promise<void>;
40
40
  /** Return true if the base is in motion. */
41
- isMoving(extra?: Struct): Promise<boolean>;
41
+ isMoving(): Promise<boolean>;
42
42
  /** Return the base's properties. */
43
43
  getProperties(extra?: Struct): Promise<BaseProperties>;
44
44
  }
@@ -1,4 +1,5 @@
1
1
  import { Struct, type JsonValue } from '@bufbuild/protobuf';
2
+ import type { CallOptions } from '@connectrpc/connect';
2
3
  import type { RobotClient } from '../../robot';
3
4
  import type { Options, Vector3 } from '../../types';
4
5
  import type { Base } from './base';
@@ -11,13 +12,14 @@ export declare class BaseClient implements Base {
11
12
  private client;
12
13
  private readonly name;
13
14
  private readonly options;
15
+ callOptions: CallOptions;
14
16
  constructor(client: RobotClient, name: string, options?: Options);
15
- moveStraight(distanceMm: number, mmPerSec: number, extra?: {}): Promise<void>;
16
- spin(angleDeg: number, degsPerSec: number, extra?: {}): Promise<void>;
17
- setPower(linear: Vector3, angular: Vector3, extra?: {}): Promise<void>;
18
- setVelocity(linear: Vector3, angular: Vector3, extra?: {}): Promise<void>;
19
- stop(extra?: {}): Promise<void>;
20
- isMoving(): Promise<boolean>;
21
- doCommand(command: Struct): Promise<JsonValue>;
22
- getProperties(extra?: {}): Promise<import("../../gen/component/base/v1/base_pb").GetPropertiesResponse>;
17
+ moveStraight(distanceMm: number, mmPerSec: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
18
+ spin(angleDeg: number, degsPerSec: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
19
+ setPower(linear: Vector3, angular: Vector3, extra?: {}, callOptions?: CallOptions): Promise<void>;
20
+ setVelocity(linear: Vector3, angular: Vector3, extra?: {}, callOptions?: CallOptions): Promise<void>;
21
+ stop(extra?: {}, callOptions?: CallOptions): Promise<void>;
22
+ isMoving(callOptions?: CallOptions): Promise<boolean>;
23
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
24
+ getProperties(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/base/v1/base_pb").GetPropertiesResponse>;
23
25
  }
@@ -1,6 +1,7 @@
1
1
  import type { RobotClient } from '../../robot';
2
2
  import type { Options } from '../../types';
3
3
  import { Duration, Struct, type JsonValue } from '@bufbuild/protobuf';
4
+ import type { CallOptions } from '@connectrpc/connect';
4
5
  import { type Board, type PowerMode, type Tick } from './board';
5
6
  /**
6
7
  * A gRPC-web client for the Board component.
@@ -11,17 +12,18 @@ export declare class BoardClient implements Board {
11
12
  private client;
12
13
  private readonly name;
13
14
  private readonly options;
15
+ callOptions: CallOptions;
14
16
  constructor(client: RobotClient, name: string, options?: Options);
15
- setGPIO(pin: string, high: boolean, extra?: {}): Promise<void>;
16
- getGPIO(pin: string, extra?: {}): Promise<boolean>;
17
- getPWM(pin: string, extra?: {}): Promise<number>;
18
- setPWM(pin: string, dutyCyle: number, extra?: {}): Promise<void>;
19
- getPWMFrequency(pin: string, extra?: {}): Promise<number>;
20
- setPWMFrequency(pin: string, frequencyHz: number, extra?: {}): Promise<void>;
21
- readAnalogReader(analogReader: string, extra?: {}): Promise<import("../../gen/component/board/v1/board_pb").ReadAnalogReaderResponse>;
22
- writeAnalog(pin: string, value: number, extra?: {}): Promise<void>;
23
- getDigitalInterruptValue(digitalInterruptName: string, extra?: {}): Promise<number>;
24
- streamTicks(interrupts: string[], queue: Tick[], extra?: {}): Promise<void>;
25
- setPowerMode(powerMode: PowerMode, duration?: Duration, extra?: {}): Promise<void>;
26
- doCommand(command: Struct): Promise<JsonValue>;
17
+ setGPIO(pin: string, high: boolean, extra?: {}, callOptions?: CallOptions): Promise<void>;
18
+ getGPIO(pin: string, extra?: {}, callOptions?: CallOptions): Promise<boolean>;
19
+ getPWM(pin: string, extra?: {}, callOptions?: CallOptions): Promise<number>;
20
+ setPWM(pin: string, dutyCyle: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
21
+ getPWMFrequency(pin: string, extra?: {}, callOptions?: CallOptions): Promise<number>;
22
+ setPWMFrequency(pin: string, frequencyHz: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
23
+ readAnalogReader(analogReader: string, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/board/v1/board_pb").ReadAnalogReaderResponse>;
24
+ writeAnalog(pin: string, value: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
25
+ getDigitalInterruptValue(digitalInterruptName: string, extra?: {}, callOptions?: CallOptions): Promise<number>;
26
+ streamTicks(interrupts: string[], queue: Tick[], extra?: {}, callOptions?: CallOptions): Promise<void>;
27
+ setPowerMode(powerMode: PowerMode, duration?: Duration, extra?: {}, callOptions?: CallOptions): Promise<void>;
28
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
27
29
  }
@@ -1,4 +1,5 @@
1
1
  import type { JsonValue, Struct } from '@bufbuild/protobuf';
2
+ import type { CallOptions } from '@connectrpc/connect';
2
3
  import type { RobotClient } from '../../robot';
3
4
  import type { Options } from '../../types';
4
5
  import type { Camera, MimeType } from './camera';
@@ -11,10 +12,11 @@ export declare class CameraClient implements Camera {
11
12
  private client;
12
13
  private readonly name;
13
14
  private readonly options;
15
+ callOptions: CallOptions;
14
16
  constructor(client: RobotClient, name: string, options?: Options);
15
- getImage(mimeType?: MimeType): Promise<Uint8Array>;
16
- renderFrame(mimeType?: MimeType): Promise<Blob>;
17
- getPointCloud(): Promise<Uint8Array>;
18
- getProperties(): Promise<import("../../gen/component/camera/v1/camera_pb").GetPropertiesResponse>;
19
- doCommand(command: Struct): Promise<JsonValue>;
17
+ getImage(mimeType?: MimeType, callOptions?: CallOptions): Promise<Uint8Array>;
18
+ renderFrame(mimeType?: MimeType, callOptions?: CallOptions): Promise<Blob>;
19
+ getPointCloud(callOptions?: CallOptions): Promise<Uint8Array>;
20
+ getProperties(callOptions?: CallOptions): Promise<import("../../gen/component/camera/v1/camera_pb").GetPropertiesResponse>;
21
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
20
22
  }
@@ -1,4 +1,5 @@
1
1
  import { Struct, type JsonValue } from '@bufbuild/protobuf';
2
+ import type { CallOptions } from '@connectrpc/connect';
2
3
  import type { RobotClient } from '../../robot';
3
4
  import type { Options } from '../../types';
4
5
  import { EncoderPositionType, type Encoder } from './encoder';
@@ -11,9 +12,10 @@ export declare class EncoderClient implements Encoder {
11
12
  private client;
12
13
  private readonly name;
13
14
  private readonly options;
15
+ callOptions: CallOptions;
14
16
  constructor(client: RobotClient, name: string, options?: Options);
15
- resetPosition(extra?: {}): Promise<void>;
16
- getProperties(extra?: {}): Promise<import("../../gen/component/encoder/v1/encoder_pb").GetPropertiesResponse>;
17
- getPosition(positionType?: EncoderPositionType, extra?: {}): Promise<readonly [number, import("../../gen/component/encoder/v1/encoder_pb").PositionType]>;
18
- doCommand(command: Struct): Promise<JsonValue>;
17
+ resetPosition(extra?: {}, callOptions?: CallOptions): Promise<void>;
18
+ getProperties(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/encoder/v1/encoder_pb").GetPropertiesResponse>;
19
+ getPosition(positionType?: EncoderPositionType, extra?: {}, callOptions?: CallOptions): Promise<readonly [number, import("../../gen/component/encoder/v1/encoder_pb").PositionType]>;
20
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
19
21
  }
@@ -1,4 +1,5 @@
1
1
  import { Struct, type JsonValue } from '@bufbuild/protobuf';
2
+ import type { CallOptions } from '@connectrpc/connect';
2
3
  import type { RobotClient } from '../../robot';
3
4
  import type { Options } from '../../types';
4
5
  import type { Gantry } from './gantry';
@@ -11,12 +12,13 @@ export declare class GantryClient implements Gantry {
11
12
  private client;
12
13
  private readonly name;
13
14
  private readonly options;
15
+ callOptions: CallOptions;
14
16
  constructor(client: RobotClient, name: string, options?: Options);
15
- getPosition(extra?: {}): Promise<number[]>;
16
- moveToPosition(positionsMm: number[], speedsMmPerSec: number[], extra?: {}): Promise<void>;
17
- home(extra?: {}): Promise<boolean>;
18
- getLengths(extra?: {}): Promise<number[]>;
19
- stop(extra?: {}): Promise<void>;
20
- isMoving(): Promise<boolean>;
21
- doCommand(command: Struct): Promise<JsonValue>;
17
+ getPosition(extra?: {}, callOptions?: CallOptions): Promise<number[]>;
18
+ moveToPosition(positionsMm: number[], speedsMmPerSec: number[], extra?: {}, callOptions?: CallOptions): Promise<void>;
19
+ home(extra?: {}, callOptions?: CallOptions): Promise<boolean>;
20
+ getLengths(extra?: {}, callOptions?: CallOptions): Promise<number[]>;
21
+ stop(extra?: {}, callOptions?: CallOptions): Promise<void>;
22
+ isMoving(callOptions?: CallOptions): Promise<boolean>;
23
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
22
24
  }
@@ -1,4 +1,5 @@
1
1
  import type { JsonValue, Struct } from '@bufbuild/protobuf';
2
+ import type { CallOptions } from '@connectrpc/connect';
2
3
  import type { RobotClient } from '../../robot';
3
4
  import type { Options } from '../../types';
4
5
  import type { Generic } from './generic';
@@ -11,6 +12,7 @@ export declare class GenericClient implements Generic {
11
12
  private client;
12
13
  private readonly name;
13
14
  private readonly options;
15
+ callOptions: CallOptions;
14
16
  constructor(client: RobotClient, name: string, options?: Options);
15
- doCommand(command: Struct): Promise<JsonValue>;
17
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
16
18
  }
@@ -1,4 +1,5 @@
1
1
  import { Struct, type JsonValue } from '@bufbuild/protobuf';
2
+ import type { CallOptions } from '@connectrpc/connect';
2
3
  import type { RobotClient } from '../../robot';
3
4
  import type { Options } from '../../types';
4
5
  import type { Gripper } from './gripper';
@@ -11,10 +12,11 @@ export declare class GripperClient implements Gripper {
11
12
  private client;
12
13
  private readonly name;
13
14
  private readonly options;
15
+ callOptions: CallOptions;
14
16
  constructor(client: RobotClient, name: string, options?: Options);
15
- open(extra?: {}): Promise<void>;
16
- grab(extra?: {}): Promise<void>;
17
- stop(extra?: {}): Promise<void>;
18
- isMoving(): Promise<boolean>;
19
- doCommand(command: Struct): Promise<JsonValue>;
17
+ open(extra?: {}, callOptions?: CallOptions): Promise<void>;
18
+ grab(extra?: {}, callOptions?: CallOptions): Promise<void>;
19
+ stop(extra?: {}, callOptions?: CallOptions): Promise<void>;
20
+ isMoving(callOptions?: CallOptions): Promise<boolean>;
21
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
20
22
  }
@@ -1,6 +1,7 @@
1
1
  import type { RobotClient } from '../../robot';
2
2
  import type { Options } from '../../types';
3
3
  import { Struct, type JsonValue } from '@bufbuild/protobuf';
4
+ import type { CallOptions } from '@connectrpc/connect';
4
5
  import type { InputController, InputControllerEvent } from './input-controller';
5
6
  /**
6
7
  * A gRPC-web client for the Input Controller component.
@@ -11,8 +12,9 @@ export declare class InputControllerClient implements InputController {
11
12
  private client;
12
13
  private readonly name;
13
14
  private readonly options;
15
+ callOptions: CallOptions;
14
16
  constructor(client: RobotClient, name: string, options?: Options);
15
- getEvents(extra?: {}): Promise<import("../../gen/component/inputcontroller/v1/input_controller_pb").Event[]>;
16
- triggerEvent(event: InputControllerEvent, extra?: {}): Promise<void>;
17
- doCommand(command: Struct): Promise<JsonValue>;
17
+ getEvents(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/inputcontroller/v1/input_controller_pb").Event[]>;
18
+ triggerEvent(event: InputControllerEvent, extra?: {}, callOptions?: CallOptions): Promise<void>;
19
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
18
20
  }
@@ -1,4 +1,5 @@
1
1
  import { Struct, type JsonValue } from '@bufbuild/protobuf';
2
+ import type { CallOptions } from '@connectrpc/connect';
2
3
  import type { RobotClient } from '../../robot';
3
4
  import type { Options } from '../../types';
4
5
  import type { Motor } from './motor';
@@ -11,18 +12,19 @@ export declare class MotorClient implements Motor {
11
12
  private client;
12
13
  private readonly name;
13
14
  private readonly options;
15
+ callOptions: CallOptions;
14
16
  constructor(client: RobotClient, name: string, options?: Options);
15
- setPower(power: number, extra?: {}): Promise<void>;
16
- goFor(rpm: number, revolutions: number, extra?: {}): Promise<void>;
17
- goTo(rpm: number, positionRevolutions: number, extra?: {}): Promise<void>;
18
- setRPM(rpm: number, extra?: {}): Promise<void>;
19
- resetZeroPosition(offset: number, extra?: {}): Promise<void>;
20
- stop(extra?: {}): Promise<void>;
21
- getProperties(extra?: {}): Promise<{
17
+ setPower(power: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
18
+ goFor(rpm: number, revolutions: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
19
+ goTo(rpm: number, positionRevolutions: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
20
+ setRPM(rpm: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
21
+ resetZeroPosition(offset: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
22
+ stop(extra?: {}, callOptions?: CallOptions): Promise<void>;
23
+ getProperties(extra?: {}, callOptions?: CallOptions): Promise<{
22
24
  positionReporting: boolean;
23
25
  }>;
24
- getPosition(extra?: {}): Promise<number>;
25
- isPowered(extra?: {}): Promise<readonly [boolean, number]>;
26
- isMoving(): Promise<boolean>;
27
- doCommand(command: Struct): Promise<JsonValue>;
26
+ getPosition(extra?: {}, callOptions?: CallOptions): Promise<number>;
27
+ isPowered(extra?: {}, callOptions?: CallOptions): Promise<readonly [boolean, number]>;
28
+ isMoving(callOptions?: CallOptions): Promise<boolean>;
29
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
28
30
  }
@@ -1,4 +1,5 @@
1
1
  import { Struct, type JsonValue } from '@bufbuild/protobuf';
2
+ import type { CallOptions } from '@connectrpc/connect';
2
3
  import type { RobotClient } from '../../robot';
3
4
  import type { Options } from '../../types';
4
5
  import type { MovementSensor } from './movement-sensor';
@@ -11,15 +12,16 @@ export declare class MovementSensorClient implements MovementSensor {
11
12
  private client;
12
13
  private readonly name;
13
14
  private readonly options;
15
+ callOptions: CallOptions;
14
16
  constructor(client: RobotClient, name: string, options?: Options);
15
- getLinearVelocity(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Vector3>;
16
- getAngularVelocity(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Vector3>;
17
- getCompassHeading(extra?: {}): Promise<number>;
18
- getOrientation(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Orientation>;
19
- getPosition(extra?: {}): Promise<import("../../gen/component/movementsensor/v1/movementsensor_pb").GetPositionResponse>;
20
- getProperties(extra?: {}): Promise<import("../../gen/component/movementsensor/v1/movementsensor_pb").GetPropertiesResponse>;
21
- getAccuracy(extra?: {}): Promise<import("../../gen/component/movementsensor/v1/movementsensor_pb").GetAccuracyResponse>;
22
- getLinearAcceleration(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Vector3>;
23
- getReadings(extra?: {}): Promise<Record<string, JsonValue>>;
24
- doCommand(command: Struct): Promise<JsonValue>;
17
+ getLinearVelocity(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Vector3>;
18
+ getAngularVelocity(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Vector3>;
19
+ getCompassHeading(extra?: {}, callOptions?: CallOptions): Promise<number>;
20
+ getOrientation(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Orientation>;
21
+ getPosition(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/movementsensor/v1/movementsensor_pb").GetPositionResponse>;
22
+ getProperties(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/movementsensor/v1/movementsensor_pb").GetPropertiesResponse>;
23
+ getAccuracy(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/movementsensor/v1/movementsensor_pb").GetAccuracyResponse>;
24
+ getLinearAcceleration(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Vector3>;
25
+ getReadings(extra?: {}, callOptions?: CallOptions): Promise<Record<string, JsonValue>>;
26
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
25
27
  }
@@ -1,4 +1,5 @@
1
1
  import { Struct, type JsonValue } from '@bufbuild/protobuf';
2
+ import type { CallOptions } from '@connectrpc/connect';
2
3
  import type { RobotClient } from '../../robot';
3
4
  import type { Options } from '../../types';
4
5
  import type { PowerSensor } from './power-sensor';
@@ -11,10 +12,11 @@ export declare class PowerSensorClient implements PowerSensor {
11
12
  private client;
12
13
  private readonly name;
13
14
  private readonly options;
15
+ callOptions: CallOptions;
14
16
  constructor(client: RobotClient, name: string, options?: Options);
15
- getVoltage(extra?: {}): Promise<readonly [number, boolean]>;
16
- getCurrent(extra?: {}): Promise<readonly [number, boolean]>;
17
- getPower(extra?: {}): Promise<number>;
18
- getReadings(extra?: {}): Promise<Record<string, JsonValue>>;
19
- doCommand(command: Struct): Promise<JsonValue>;
17
+ getVoltage(extra?: {}, callOptions?: CallOptions): Promise<readonly [number, boolean]>;
18
+ getCurrent(extra?: {}, callOptions?: CallOptions): Promise<readonly [number, boolean]>;
19
+ getPower(extra?: {}, callOptions?: CallOptions): Promise<number>;
20
+ getReadings(extra?: {}, callOptions?: CallOptions): Promise<Record<string, JsonValue>>;
21
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
20
22
  }
@@ -1,6 +1,7 @@
1
1
  import type { RobotClient } from '../../robot';
2
2
  import type { Options } from '../../types';
3
3
  import { Struct, type JsonValue } from '@bufbuild/protobuf';
4
+ import type { CallOptions } from '@connectrpc/connect';
4
5
  import type { Sensor } from './sensor';
5
6
  /**
6
7
  * A gRPC-web client for the Sensor component.
@@ -11,7 +12,8 @@ export declare class SensorClient implements Sensor {
11
12
  private client;
12
13
  private readonly name;
13
14
  private readonly options;
15
+ callOptions: CallOptions;
14
16
  constructor(client: RobotClient, name: string, options?: Options);
15
- getReadings(extra?: {}): Promise<Record<string, JsonValue>>;
16
- doCommand(command: Struct): Promise<JsonValue>;
17
+ getReadings(extra?: {}, callOptions?: CallOptions): Promise<Record<string, JsonValue>>;
18
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
17
19
  }
@@ -1,4 +1,5 @@
1
1
  import { Struct, type JsonValue } from '@bufbuild/protobuf';
2
+ import type { CallOptions } from '@connectrpc/connect';
2
3
  import type { RobotClient } from '../../robot';
3
4
  import type { Options } from '../../types';
4
5
  import type { Servo } from './servo';
@@ -11,10 +12,11 @@ export declare class ServoClient implements Servo {
11
12
  private client;
12
13
  private readonly name;
13
14
  private readonly options;
15
+ callOptions: CallOptions;
14
16
  constructor(client: RobotClient, name: string, options?: Options);
15
- move(angleDeg: number, extra?: {}): Promise<void>;
16
- getPosition(extra?: {}): Promise<number>;
17
- stop(extra?: {}): Promise<void>;
18
- isMoving(): Promise<boolean>;
19
- doCommand(command: Struct): Promise<JsonValue>;
17
+ move(angleDeg: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
18
+ getPosition(extra?: {}, callOptions?: CallOptions): Promise<number>;
19
+ stop(extra?: {}, callOptions?: CallOptions): Promise<void>;
20
+ isMoving(callOptions?: CallOptions): Promise<boolean>;
21
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
20
22
  }
@@ -73,6 +73,20 @@ export declare class StartBuildRequest extends Message<StartBuildRequest> {
73
73
  */
74
74
  moduleVersion: string;
75
75
 
76
+ /**
77
+ * checkout token. provide this for private repos
78
+ *
79
+ * @generated from field: optional string token = 6;
80
+ */
81
+ token?: string;
82
+
83
+ /**
84
+ * optional working directory. defaults to repo root.
85
+ *
86
+ * @generated from field: optional string workdir = 7;
87
+ */
88
+ workdir?: string;
89
+
76
90
  constructor(data?: PartialMessage<StartBuildRequest>);
77
91
 
78
92
  static readonly runtime: typeof proto3;
@@ -0,0 +1,26 @@
1
+ // @generated by protoc-gen-connect-es v1.5.0
2
+ // @generated from file app/mlinference/v1/ml_inference.proto (package viam.app.mlinference.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { GetInferenceRequest, GetInferenceResponse } from "./ml_inference_pb.js";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from service viam.app.mlinference.v1.MLInferenceService
11
+ */
12
+ export declare const MLInferenceService: {
13
+ readonly typeName: "viam.app.mlinference.v1.MLInferenceService",
14
+ readonly methods: {
15
+ /**
16
+ * @generated from rpc viam.app.mlinference.v1.MLInferenceService.GetInference
17
+ */
18
+ readonly getInference: {
19
+ readonly name: "GetInference",
20
+ readonly I: typeof GetInferenceRequest,
21
+ readonly O: typeof GetInferenceResponse,
22
+ readonly kind: MethodKind.Unary,
23
+ },
24
+ }
25
+ };
26
+
@@ -0,0 +1,71 @@
1
+ // @generated by protoc-gen-es v1.10.0
2
+ // @generated from file app/mlinference/v1/ml_inference.proto (package viam.app.mlinference.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Message, proto3 } from "@bufbuild/protobuf";
8
+ import type { BinaryID } from "../../data/v1/data_pb.js";
9
+
10
+ /**
11
+ * @generated from message viam.app.mlinference.v1.GetInferenceRequest
12
+ */
13
+ export declare class GetInferenceRequest extends Message<GetInferenceRequest> {
14
+ /**
15
+ * The model framework and model type are inferred from the ML model registry item;
16
+ * For valid model types (classification, detections) we will return the formatted
17
+ * labels or annotations from the associated inference outputs.
18
+ *
19
+ * @generated from field: string registry_item_id = 1;
20
+ */
21
+ registryItemId: string;
22
+
23
+ /**
24
+ * @generated from field: string registry_item_version = 2;
25
+ */
26
+ registryItemVersion: string;
27
+
28
+ /**
29
+ * @generated from field: viam.app.data.v1.BinaryID binary_id = 3;
30
+ */
31
+ binaryId?: BinaryID;
32
+
33
+ /**
34
+ * @generated from field: string organization_id = 4;
35
+ */
36
+ organizationId: string;
37
+
38
+ constructor(data?: PartialMessage<GetInferenceRequest>);
39
+
40
+ static readonly runtime: typeof proto3;
41
+ static readonly typeName = "viam.app.mlinference.v1.GetInferenceRequest";
42
+ static readonly fields: FieldList;
43
+
44
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetInferenceRequest;
45
+
46
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetInferenceRequest;
47
+
48
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetInferenceRequest;
49
+
50
+ static equals(a: GetInferenceRequest | PlainMessage<GetInferenceRequest> | undefined, b: GetInferenceRequest | PlainMessage<GetInferenceRequest> | undefined): boolean;
51
+ }
52
+
53
+ /**
54
+ * @generated from message viam.app.mlinference.v1.GetInferenceResponse
55
+ */
56
+ export declare class GetInferenceResponse extends Message<GetInferenceResponse> {
57
+ constructor(data?: PartialMessage<GetInferenceResponse>);
58
+
59
+ static readonly runtime: typeof proto3;
60
+ static readonly typeName = "viam.app.mlinference.v1.GetInferenceResponse";
61
+ static readonly fields: FieldList;
62
+
63
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetInferenceResponse;
64
+
65
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetInferenceResponse;
66
+
67
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetInferenceResponse;
68
+
69
+ static equals(a: GetInferenceResponse | PlainMessage<GetInferenceResponse> | undefined, b: GetInferenceResponse | PlainMessage<GetInferenceResponse> | undefined): boolean;
70
+ }
71
+
@@ -3929,6 +3929,13 @@ export declare class ModuleVersion extends Message<ModuleVersion> {
3929
3929
  */
3930
3930
  entrypoint: string;
3931
3931
 
3932
+ /**
3933
+ * The path to a setup script that is run before a newly downloaded module starts.
3934
+ *
3935
+ * @generated from field: optional string first_run = 5;
3936
+ */
3937
+ firstRun?: string;
3938
+
3932
3939
  constructor(data?: PartialMessage<ModuleVersion>);
3933
3940
 
3934
3941
  static readonly runtime: typeof proto3;
@@ -3970,6 +3977,13 @@ export declare class ModuleMetadata extends Message<ModuleMetadata> {
3970
3977
  */
3971
3978
  entrypoint: string;
3972
3979
 
3980
+ /**
3981
+ * The path to a setup script that is run before a newly downloaded module starts.
3982
+ *
3983
+ * @generated from field: optional string first_run = 4;
3984
+ */
3985
+ firstRun?: string;
3986
+
3973
3987
  constructor(data?: PartialMessage<ModuleMetadata>);
3974
3988
 
3975
3989
  static readonly runtime: typeof proto3;
@@ -4700,6 +4714,13 @@ export declare class UpdateModuleRequest extends Message<UpdateModuleRequest> {
4700
4714
  */
4701
4715
  entrypoint: string;
4702
4716
 
4717
+ /**
4718
+ * The path to a setup script that is run before a newly downloaded module starts.
4719
+ *
4720
+ * @generated from field: optional string first_run = 7;
4721
+ */
4722
+ firstRun?: string;
4723
+
4703
4724
  constructor(data?: PartialMessage<UpdateModuleRequest>);
4704
4725
 
4705
4726
  static readonly runtime: typeof proto3;
@@ -5022,6 +5043,13 @@ export declare class Module extends Message<Module> {
5022
5043
  */
5023
5044
  publicNamespace: string;
5024
5045
 
5046
+ /**
5047
+ * The path to a setup script that is run before a newly downloaded module starts.
5048
+ *
5049
+ * @generated from field: optional string first_run = 13;
5050
+ */
5051
+ firstRun?: string;
5052
+
5025
5053
  constructor(data?: PartialMessage<Module>);
5026
5054
 
5027
5055
  static readonly runtime: typeof proto3;
@@ -5069,6 +5097,13 @@ export declare class VersionHistory extends Message<VersionHistory> {
5069
5097
  */
5070
5098
  entrypoint: string;
5071
5099
 
5100
+ /**
5101
+ * The path to a setup script that is run before a newly downloaded module starts.
5102
+ *
5103
+ * @generated from field: optional string first_run = 5;
5104
+ */
5105
+ firstRun?: string;
5106
+
5072
5107
  constructor(data?: PartialMessage<VersionHistory>);
5073
5108
 
5074
5109
  static readonly runtime: typeof proto3;