@viamrobotics/sdk 0.74.2 → 0.75.1

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 (38) hide show
  1. package/dist/api-version.d.ts +1 -1
  2. package/dist/components/arm/arm.d.ts +42 -0
  3. package/dist/components/arm/client.d.ts +3 -0
  4. package/dist/components/arm.d.ts +1 -1
  5. package/dist/components/audio-in/audio-in.d.ts +12 -1
  6. package/dist/components/audio-in/client.d.ts +1 -0
  7. package/dist/components/audio-out/audio-out.d.ts +12 -1
  8. package/dist/components/audio-out/client.d.ts +1 -0
  9. package/dist/components/board/board.d.ts +15 -0
  10. package/dist/components/board/client.d.ts +1 -0
  11. package/dist/components/encoder/client.d.ts +1 -0
  12. package/dist/components/encoder/encoder.d.ts +15 -0
  13. package/dist/components/input-controller/client.d.ts +1 -0
  14. package/dist/components/input-controller/input-controller.d.ts +15 -0
  15. package/dist/components/motor/client.d.ts +1 -0
  16. package/dist/components/motor/motor.d.ts +15 -0
  17. package/dist/components/movement-sensor/client.d.ts +1 -0
  18. package/dist/components/movement-sensor/movement-sensor.d.ts +15 -0
  19. package/dist/components/sensor/client.d.ts +1 -0
  20. package/dist/components/servo/client.d.ts +1 -0
  21. package/dist/components/servo/servo.d.ts +15 -0
  22. package/dist/gen/app/data/v1/data_pb.d.ts +10 -0
  23. package/dist/gen/app/datapipelines/v1/data_pipelines_pb.d.ts +8 -0
  24. package/dist/gen/app/v1/app_pb.d.ts +47 -0
  25. package/dist/gen/app/v1/robot_pb.d.ts +118 -0
  26. package/dist/gen/component/arm/v1/arm_connect.d.ts +43 -1
  27. package/dist/gen/component/arm/v1/arm_pb.d.ts +499 -1
  28. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts +6 -0
  29. package/dist/gen/opentelemetry/proto/common/v1/common_pb.d.ts +3 -3
  30. package/dist/gen/opentelemetry/proto/metrics/v1/metrics_pb.d.ts +1 -1
  31. package/dist/gen/opentelemetry/proto/processcontext/v1development/process_context_pb.d.ts +79 -0
  32. package/dist/gen/opentelemetry/proto/profiles/v1development/profiles_pb.d.ts +125 -87
  33. package/dist/gen/proto/rpc/webrtc/v1/signaling_connect.d.ts +13 -1
  34. package/dist/gen/proto/rpc/webrtc/v1/signaling_pb.d.ts +266 -0
  35. package/dist/main.es.js +6048 -5523
  36. package/dist/main.umd.js +9 -9
  37. package/dist/robot/client.d.ts +24 -0
  38. package/package.json +2 -2
@@ -1 +1 @@
1
- export declare const apiVersion = "v0.1.573";
1
+ export declare const apiVersion = "v0.1.579";
@@ -5,6 +5,7 @@ import type { Geometry, Mesh } from '../../gen/common/v1/common_pb';
5
5
  import type { GetKinematicsResult } from '../../utils';
6
6
  export type ArmJointPositions = PlainMessage<armApi.JointPositions>;
7
7
  export declare const ArmJointPositions: typeof armApi.JointPositions;
8
+ export type Properties = armApi.GetPropertiesResponse;
8
9
  /** Represents a physical robot arm that exists in three-dimensional space. */
9
10
  export interface Arm extends Resource {
10
11
  /**
@@ -156,4 +157,45 @@ export interface Arm extends Resource {
156
157
  * API](https://docs.viam.com/dev/reference/apis/components/arm/#ismoving).
157
158
  */
158
159
  isMoving: () => Promise<boolean>;
160
+ /**
161
+ * Get the optional features the arm supports.
162
+ *
163
+ * @example
164
+ *
165
+ * ```ts
166
+ * const arm = new VIAM.ArmClient(machine, 'my_arm');
167
+ * const properties = await arm.getProperties();
168
+ * console.log(properties);
169
+ * ```
170
+ */
171
+ getProperties: (extra?: Struct) => Promise<Properties>;
172
+ /**
173
+ * Enter or exit manual mode for an arm that supports it.
174
+ *
175
+ * @example
176
+ *
177
+ * ```ts
178
+ * const arm = new VIAM.ArmClient(machine, 'my_arm');
179
+ *
180
+ * // Enter manual mode for 60 seconds
181
+ * await arm.setManualMode(true, 60);
182
+ * ```
183
+ *
184
+ * @param manualMode - Whether to enter (true) or exit (false) manual mode.
185
+ * @param enabledFor - How long to stay in manual mode, in seconds. 0 or undefined means no time
186
+ * limit.
187
+ */
188
+ setManualMode: (manualMode: boolean, enabledFor?: number, extra?: Struct) => Promise<void>;
189
+ /**
190
+ * Get whether the arm is currently in manual mode.
191
+ *
192
+ * @example
193
+ *
194
+ * ```ts
195
+ * const arm = new VIAM.ArmClient(machine, 'my_arm');
196
+ * const manualMode = await arm.getManualMode();
197
+ * console.log(manualMode);
198
+ * ```
199
+ */
200
+ getManualMode: (extra?: Struct) => Promise<boolean>;
159
201
  }
@@ -25,6 +25,9 @@ export declare class ArmClient implements Arm {
25
25
  moveToJointPositions(jointPositionsList: number[], extra?: {}, callOptions?: CallOptions): Promise<void>;
26
26
  getJointPositions(extra?: {}, callOptions?: CallOptions): Promise<JointPositions>;
27
27
  stop(extra?: {}, callOptions?: CallOptions): Promise<void>;
28
+ getProperties(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/arm/v1/arm_pb").GetPropertiesResponse>;
29
+ setManualMode(manualMode: boolean, enabledFor?: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
30
+ getManualMode(extra?: {}, callOptions?: CallOptions): Promise<boolean>;
28
31
  isMoving(callOptions?: CallOptions): Promise<boolean>;
29
32
  getStatus(callOptions?: CallOptions): Promise<JsonValue>;
30
33
  doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
@@ -1,2 +1,2 @@
1
- export { ArmJointPositions, type Arm } from './arm/arm';
1
+ export { ArmJointPositions, type Arm, type Properties } from './arm/arm';
2
2
  export { ArmClient } from './arm/client';
@@ -1,5 +1,5 @@
1
1
  import type { Resource, Struct } from '../../types';
2
- import type { AudioInfo } from '../../gen/common/v1/common_pb';
2
+ import type { AudioInfo, Geometry } from '../../gen/common/v1/common_pb';
3
3
  import type { AudioProperties } from '../../audio-common';
4
4
  export interface AudioChunk {
5
5
  audioData: Uint8Array;
@@ -11,6 +11,17 @@ export interface AudioChunk {
11
11
  }
12
12
  /** Represents a device that takes audio input. */
13
13
  export interface AudioIn extends Resource {
14
+ /**
15
+ * Get the geometries of the component in their current configuration.
16
+ *
17
+ * @example
18
+ *
19
+ * ```ts
20
+ * const audioIn = new VIAM.AudioInClient(machine, 'my_audio_in');
21
+ * const geometries = await audioIn.getGeometries();
22
+ * ```
23
+ */
24
+ getGeometries: (extra?: Struct) => Promise<Geometry[]>;
14
25
  /**
15
26
  * Stream audio from the device.
16
27
  *
@@ -9,6 +9,7 @@ export declare class AudioInClient implements AudioIn {
9
9
  private readonly options;
10
10
  callOptions: CallOptions;
11
11
  constructor(client: RobotClient, name: string, options?: Options);
12
+ getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
12
13
  getAudio(codec: string, durationSeconds: number, previousTimestamp?: bigint, extra?: {}, callOptions?: CallOptions): AsyncIterable<AudioChunk>;
13
14
  getProperties(extra?: {}, callOptions?: CallOptions): Promise<{
14
15
  supportedCodecs: string[];
@@ -1,8 +1,19 @@
1
1
  import type { Resource, Struct } from '../../types';
2
- import type { AudioInfo } from '../../gen/common/v1/common_pb';
2
+ import type { AudioInfo, Geometry } from '../../gen/common/v1/common_pb';
3
3
  import type { AudioProperties } from '../../audio-common';
4
4
  /** Represents a device that outputs audio. */
5
5
  export interface AudioOut extends Resource {
6
+ /**
7
+ * Get the geometries of the component in their current configuration.
8
+ *
9
+ * @example
10
+ *
11
+ * ```ts
12
+ * const audioOut = new VIAM.AudioOutClient(machine, 'my_audio_out');
13
+ * const geometries = await audioOut.getGeometries();
14
+ * ```
15
+ */
16
+ getGeometries: (extra?: Struct) => Promise<Geometry[]>;
6
17
  /**
7
18
  * Play audio on the device.
8
19
  *
@@ -15,6 +15,7 @@ export declare class AudioOutClient implements AudioOut {
15
15
  private readonly options;
16
16
  callOptions: CallOptions;
17
17
  constructor(client: RobotClient, name: string, options?: Options);
18
+ getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
18
19
  play(audioData: Uint8Array, audioInfo?: AudioInfo, extra?: {}, callOptions?: CallOptions): Promise<void>;
19
20
  playStream(audioInfo: AudioInfo, chunks: AsyncIterable<Uint8Array>, extra?: {}, callOptions?: CallOptions): Promise<void>;
20
21
  getProperties(extra?: {}, callOptions?: CallOptions): Promise<{
@@ -1,6 +1,7 @@
1
1
  import type { Duration, Struct } from '@bufbuild/protobuf';
2
2
  import type { Resource } from '../../types';
3
3
  import * as boardApi from '../../gen/component/board/v1/board_pb';
4
+ import type { Geometry } from '../../gen/common/v1/common_pb';
4
5
  export type AnalogValue = boardApi.ReadAnalogReaderResponse;
5
6
  export type PowerMode = boardApi.PowerMode;
6
7
  export declare const AnalogValue: typeof boardApi.ReadAnalogReaderResponse, PowerMode: typeof boardApi.PowerMode;
@@ -14,6 +15,20 @@ export interface Tick {
14
15
  * analog readers, and digital interrupts.
15
16
  */
16
17
  export interface Board extends Resource {
18
+ /**
19
+ * Get the geometries of the component in their current configuration.
20
+ *
21
+ * @example
22
+ *
23
+ * ```ts
24
+ * const board = new VIAM.BoardClient(machine, 'my_board');
25
+ * const geometries = await board.getGeometries();
26
+ * ```
27
+ *
28
+ * For more information, see [Board
29
+ * API](https://docs.viam.com/dev/reference/apis/components/board/#getgeometries).
30
+ */
31
+ getGeometries: (extra?: Struct) => Promise<Geometry[]>;
17
32
  /**
18
33
  * Get the high/low state of the given pin.
19
34
  *
@@ -14,6 +14,7 @@ export declare class BoardClient implements Board {
14
14
  private readonly options;
15
15
  callOptions: CallOptions;
16
16
  constructor(client: RobotClient, name: string, options?: Options);
17
+ getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
17
18
  setGPIO(pin: string, high: boolean, extra?: {}, callOptions?: CallOptions): Promise<void>;
18
19
  getGPIO(pin: string, extra?: {}, callOptions?: CallOptions): Promise<boolean>;
19
20
  getPWM(pin: string, extra?: {}, callOptions?: CallOptions): Promise<number>;
@@ -14,6 +14,7 @@ export declare class EncoderClient implements Encoder {
14
14
  private readonly options;
15
15
  callOptions: CallOptions;
16
16
  constructor(client: RobotClient, name: string, options?: Options);
17
+ getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
17
18
  resetPosition(extra?: {}, callOptions?: CallOptions): Promise<void>;
18
19
  getProperties(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/encoder/v1/encoder_pb").GetPropertiesResponse>;
19
20
  getPosition(positionType?: EncoderPositionType, extra?: {}, callOptions?: CallOptions): Promise<readonly [number, import("../../gen/component/encoder/v1/encoder_pb").PositionType]>;
@@ -1,11 +1,26 @@
1
1
  import type { Struct } from '@bufbuild/protobuf';
2
2
  import type { Resource } from '../../types';
3
3
  import * as encoderApi from '../../gen/component/encoder/v1/encoder_pb';
4
+ import type { Geometry } from '../../gen/common/v1/common_pb';
4
5
  export type EncoderProperties = encoderApi.GetPropertiesResponse;
5
6
  export type EncoderPositionType = encoderApi.PositionType;
6
7
  export declare const EncoderProperties: typeof encoderApi.GetPropertiesResponse, EncoderPositionType: typeof encoderApi.PositionType;
7
8
  /** Represents a physical encoder. */
8
9
  export interface Encoder extends Resource {
10
+ /**
11
+ * Get the geometries of the component in their current configuration.
12
+ *
13
+ * @example
14
+ *
15
+ * ```ts
16
+ * const encoder = new VIAM.EncoderClient(machine, 'my_encoder');
17
+ * const geometries = await encoder.getGeometries();
18
+ * ```
19
+ *
20
+ * For more information, see [Encoder
21
+ * API](https://docs.viam.com/dev/reference/apis/components/encoder/#getgeometries).
22
+ */
23
+ getGeometries: (extra?: Struct) => Promise<Geometry[]>;
9
24
  /**
10
25
  * Set the current position of the encoder as the new zero position.
11
26
  *
@@ -14,6 +14,7 @@ export declare class InputControllerClient implements InputController {
14
14
  private readonly options;
15
15
  callOptions: CallOptions;
16
16
  constructor(client: RobotClient, name: string, options?: Options);
17
+ getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
17
18
  getEvents(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/inputcontroller/v1/input_controller_pb").Event[]>;
18
19
  triggerEvent(event: InputControllerEvent, extra?: {}, callOptions?: CallOptions): Promise<void>;
19
20
  getStatus(callOptions?: CallOptions): Promise<JsonValue>;
@@ -1,10 +1,25 @@
1
1
  import type { PlainMessage, Struct } from '@bufbuild/protobuf';
2
2
  import * as pb from '../../gen/component/inputcontroller/v1/input_controller_pb';
3
3
  import type { Resource } from '../../types';
4
+ import type { Geometry } from '../../gen/common/v1/common_pb';
4
5
  export type InputControllerEvent = PlainMessage<pb.Event>;
5
6
  export declare const InputControllerEvent: typeof pb.Event;
6
7
  /** Represents a human interface device like a mouse or keyboard that emits events for controls. */
7
8
  export interface InputController extends Resource {
9
+ /**
10
+ * Get the geometries of the component in their current configuration.
11
+ *
12
+ * @example
13
+ *
14
+ * ```ts
15
+ * const controller = new VIAM.InputControllerClient(machine, 'my_controller');
16
+ * const geometries = await controller.getGeometries();
17
+ * ```
18
+ *
19
+ * For more information, see [Input Controller
20
+ * API](https://docs.viam.com/dev/reference/apis/components/input-controller/#getgeometries).
21
+ */
22
+ getGeometries: (extra?: Struct) => Promise<Geometry[]>;
8
23
  /**
9
24
  * Returns a list of events representing the last event on each control.
10
25
  *
@@ -14,6 +14,7 @@ export declare class MotorClient implements Motor {
14
14
  private readonly options;
15
15
  callOptions: CallOptions;
16
16
  constructor(client: RobotClient, name: string, options?: Options);
17
+ getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
17
18
  setPower(power: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
18
19
  goFor(rpm: number, revolutions: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
19
20
  goTo(rpm: number, positionRevolutions: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
@@ -1,11 +1,26 @@
1
1
  import type { Struct } from '@bufbuild/protobuf';
2
2
  import type { Resource } from '../../types';
3
+ import type { Geometry } from '../../gen/common/v1/common_pb';
3
4
  export interface Properties {
4
5
  /** Whether a motor supports position reporting. */
5
6
  positionReporting: boolean;
6
7
  }
7
8
  /** Represents a physical motor. */
8
9
  export interface Motor extends Resource {
10
+ /**
11
+ * Get the geometries of the component in their current configuration.
12
+ *
13
+ * @example
14
+ *
15
+ * ```ts
16
+ * const motor = new VIAM.MotorClient(machine, 'my_motor');
17
+ * const geometries = await motor.getGeometries();
18
+ * ```
19
+ *
20
+ * For more information, see [Motor
21
+ * API](https://docs.viam.com/dev/reference/apis/components/motor/#getgeometries).
22
+ */
23
+ getGeometries: (extra?: Struct) => Promise<Geometry[]>;
9
24
  /**
10
25
  * Set the percentage of the motor's total power that should be employed.
11
26
  *
@@ -14,6 +14,7 @@ export declare class MovementSensorClient implements MovementSensor {
14
14
  private readonly options;
15
15
  callOptions: CallOptions;
16
16
  constructor(client: RobotClient, name: string, options?: Options);
17
+ getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
17
18
  getLinearVelocity(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Vector3>;
18
19
  getAngularVelocity(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Vector3>;
19
20
  getCompassHeading(extra?: {}, callOptions?: CallOptions): Promise<number>;
@@ -1,6 +1,7 @@
1
1
  import type { JsonValue, Struct } from '@bufbuild/protobuf';
2
2
  import type { Orientation, Resource, Vector3 } from '../../types';
3
3
  import * as sensorApi from '../../gen/component/movementsensor/v1/movementsensor_pb';
4
+ import type { Geometry } from '../../gen/common/v1/common_pb';
4
5
  export type MovementSensorAccuracy = sensorApi.GetAccuracyResponse;
5
6
  export type MovementSensorPosition = sensorApi.GetPositionResponse;
6
7
  export type MovementSensorProperties = sensorApi.GetPropertiesResponse;
@@ -10,6 +11,20 @@ export declare const MovementSensorAccuracy: typeof sensorApi.GetAccuracyRespons
10
11
  * speed.
11
12
  */
12
13
  export interface MovementSensor extends Resource {
14
+ /**
15
+ * Get the geometries of the component in their current configuration.
16
+ *
17
+ * @example
18
+ *
19
+ * ```ts
20
+ * const movementSensor = new VIAM.MovementSensorClient(machine, 'my_movement_sensor');
21
+ * const geometries = await movementSensor.getGeometries();
22
+ * ```
23
+ *
24
+ * For more information, see [Movement Sensor
25
+ * API](https://docs.viam.com/dev/reference/apis/components/movement-sensor/#getgeometries).
26
+ */
27
+ getGeometries: (extra?: Struct) => Promise<Geometry[]>;
13
28
  /**
14
29
  * Get linear velocity across x/y/z axes.
15
30
  *
@@ -14,6 +14,7 @@ export declare class SensorClient implements Sensor {
14
14
  private readonly options;
15
15
  callOptions: CallOptions;
16
16
  constructor(client: RobotClient, name: string, options?: Options);
17
+ getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
17
18
  getReadings(extra?: {}, callOptions?: CallOptions): Promise<Record<string, JsonValue>>;
18
19
  getStatus(callOptions?: CallOptions): Promise<JsonValue>;
19
20
  doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
@@ -14,6 +14,7 @@ export declare class ServoClient implements Servo {
14
14
  private readonly options;
15
15
  callOptions: CallOptions;
16
16
  constructor(client: RobotClient, name: string, options?: Options);
17
+ getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
17
18
  move(angleDeg: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
18
19
  getPosition(extra?: {}, callOptions?: CallOptions): Promise<number>;
19
20
  stop(extra?: {}, callOptions?: CallOptions): Promise<void>;
@@ -1,7 +1,22 @@
1
1
  import type { Struct } from '@bufbuild/protobuf';
2
2
  import type { Resource } from '../../types';
3
+ import type { Geometry } from '../../gen/common/v1/common_pb';
3
4
  /** Represents a physical servo. */
4
5
  export interface Servo extends Resource {
6
+ /**
7
+ * Get the geometries of the component in their current configuration.
8
+ *
9
+ * @example
10
+ *
11
+ * ```ts
12
+ * const servo = new VIAM.ServoClient(machine, 'my_servo');
13
+ * const geometries = await servo.getGeometries();
14
+ * ```
15
+ *
16
+ * For more information, see [Servo
17
+ * API](https://docs.viam.com/dev/reference/apis/components/servo/#getgeometries).
18
+ */
19
+ getGeometries: (extra?: Struct) => Promise<Geometry[]>;
5
20
  /**
6
21
  * Move the servo by a given angle in degrees.
7
22
  *
@@ -3539,6 +3539,11 @@ export declare class SequencesByDatasetIDRequest extends Message<SequencesByData
3539
3539
  */
3540
3540
  pageSize: number;
3541
3541
 
3542
+ /**
3543
+ * @generated from field: bool count_only = 4;
3544
+ */
3545
+ countOnly: boolean;
3546
+
3542
3547
  constructor(data?: PartialMessage<SequencesByDatasetIDRequest>);
3543
3548
 
3544
3549
  static readonly runtime: typeof proto3;
@@ -3568,6 +3573,11 @@ export declare class SequencesByDatasetIDResponse extends Message<SequencesByDat
3568
3573
  */
3569
3574
  nextPageToken: string;
3570
3575
 
3576
+ /**
3577
+ * @generated from field: uint64 count = 3;
3578
+ */
3579
+ count: bigint;
3580
+
3571
3581
  constructor(data?: PartialMessage<SequencesByDatasetIDResponse>);
3572
3582
 
3573
3583
  static readonly runtime: typeof proto3;
@@ -626,6 +626,14 @@ export declare class DataPipelineRun extends Message<DataPipelineRun> {
626
626
  */
627
627
  errorMessage: string;
628
628
 
629
+ /**
630
+ * The data source type the run executed against. Runs that predate this field
631
+ * report the pipeline's configured data source type.
632
+ *
633
+ * @generated from field: viam.app.data.v1.TabularDataSourceType data_source_type = 8;
634
+ */
635
+ dataSourceType: TabularDataSourceType;
636
+
629
637
  constructor(data?: PartialMessage<DataPipelineRun>);
630
638
 
631
639
  static readonly runtime: typeof proto3;
@@ -96,6 +96,34 @@ export declare enum LoginMethod {
96
96
  APPLE = 4,
97
97
  }
98
98
 
99
+ /**
100
+ * LogOrder is the order in which logs are returned, by time.
101
+ *
102
+ * @generated from enum viam.app.v1.LogOrder
103
+ */
104
+ export declare enum LogOrder {
105
+ /**
106
+ * LOG_ORDER_UNSPECIFIED is treated as LOG_ORDER_DESCENDING.
107
+ *
108
+ * @generated from enum value: LOG_ORDER_UNSPECIFIED = 0;
109
+ */
110
+ UNSPECIFIED = 0,
111
+
112
+ /**
113
+ * oldest logs first
114
+ *
115
+ * @generated from enum value: LOG_ORDER_ASCENDING = 1;
116
+ */
117
+ ASCENDING = 1,
118
+
119
+ /**
120
+ * newest logs first
121
+ *
122
+ * @generated from enum value: LOG_ORDER_DESCENDING = 2;
123
+ */
124
+ DESCENDING = 2,
125
+ }
126
+
99
127
  /**
100
128
  * @generated from enum viam.app.v1.FragmentVisibility
101
129
  */
@@ -3296,6 +3324,25 @@ export declare class GetRobotPartLogsRequest extends Message<GetRobotPartLogsReq
3296
3324
  */
3297
3325
  userFacingOnly?: boolean;
3298
3326
 
3327
+ /**
3328
+ * logs are returned newest first when the order field is empty
3329
+ *
3330
+ * @generated from field: optional viam.app.v1.LogOrder order = 11;
3331
+ */
3332
+ order?: LogOrder;
3333
+
3334
+ /**
3335
+ * range is a duration string in minutes, hours, or days (e.g. "10m", "10h", "10d")
3336
+ * that is resolved against whichever of start and end is present:
3337
+ * end only: [end - range, end]
3338
+ * start only: [start, start + range]
3339
+ * neither: [now - range, now]
3340
+ * Specifying range together with both start and end is an error.
3341
+ *
3342
+ * @generated from field: optional string range = 12;
3343
+ */
3344
+ range?: string;
3345
+
3299
3346
  constructor(data?: PartialMessage<GetRobotPartLogsRequest>);
3300
3347
 
3301
3348
  static readonly runtime: typeof proto3;
@@ -823,6 +823,14 @@ export declare class AuthConfig extends Message<AuthConfig> {
823
823
  */
824
824
  externalAuthConfig?: ExternalAuthConfig;
825
825
 
826
+ /**
827
+ * user_permissions represents the map of Users to Permissions for
828
+ * this machine.
829
+ *
830
+ * @generated from field: repeated viam.app.v1.UserPermission user_permissions = 4;
831
+ */
832
+ userPermissions: UserPermission[];
833
+
826
834
  constructor(data?: PartialMessage<AuthConfig>);
827
835
 
828
836
  static readonly runtime: typeof proto3;
@@ -838,6 +846,116 @@ export declare class AuthConfig extends Message<AuthConfig> {
838
846
  static equals(a: AuthConfig | PlainMessage<AuthConfig> | undefined, b: AuthConfig | PlainMessage<AuthConfig> | undefined): boolean;
839
847
  }
840
848
 
849
+ /**
850
+ * A UserPermission describes a User and the permissions granted to
851
+ * that user.
852
+ *
853
+ * @generated from message viam.app.v1.UserPermission
854
+ */
855
+ export declare class UserPermission extends Message<UserPermission> {
856
+ /**
857
+ * user is the User this UserPermission applies to. A User can only be
858
+ * listed in a single UserPermission for a set of UserPermissions.
859
+ *
860
+ * @generated from field: viam.app.v1.User user = 1;
861
+ */
862
+ user?: User;
863
+
864
+ /**
865
+ * @generated from field: repeated viam.app.v1.Permission permissions = 2;
866
+ */
867
+ permissions: Permission[];
868
+
869
+ constructor(data?: PartialMessage<UserPermission>);
870
+
871
+ static readonly runtime: typeof proto3;
872
+ static readonly typeName = "viam.app.v1.UserPermission";
873
+ static readonly fields: FieldList;
874
+
875
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserPermission;
876
+
877
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserPermission;
878
+
879
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserPermission;
880
+
881
+ static equals(a: UserPermission | PlainMessage<UserPermission> | undefined, b: UserPermission | PlainMessage<UserPermission> | undefined): boolean;
882
+ }
883
+
884
+ /**
885
+ * A User describes a single user that a set of Permissions applies to.
886
+ *
887
+ * @generated from message viam.app.v1.User
888
+ */
889
+ export declare class User extends Message<User> {
890
+ /**
891
+ * type is the type of user. Can be "api-key-id", "app-user-id", or "default".
892
+ *
893
+ * @generated from field: string type = 1;
894
+ */
895
+ type: string;
896
+
897
+ /**
898
+ * id is the API Key ID if type is "api-key-id", the Viam app user ID if
899
+ * type is "app-user-id", and empty if type is "default".
900
+ *
901
+ * @generated from field: string id = 2;
902
+ */
903
+ id: string;
904
+
905
+ constructor(data?: PartialMessage<User>);
906
+
907
+ static readonly runtime: typeof proto3;
908
+ static readonly typeName = "viam.app.v1.User";
909
+ static readonly fields: FieldList;
910
+
911
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): User;
912
+
913
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): User;
914
+
915
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): User;
916
+
917
+ static equals(a: User | PlainMessage<User> | undefined, b: User | PlainMessage<User> | undefined): boolean;
918
+ }
919
+
920
+ /**
921
+ * A Permission describes a User's ability to invoke methods on resources.
922
+ *
923
+ * @generated from message viam.app.v1.Permission
924
+ */
925
+ export declare class Permission extends Message<Permission> {
926
+ /**
927
+ * resources are the names of the resources this permission applies to,
928
+ * e.g. ["cam1", "cam2", "cam3"].
929
+ *
930
+ * @generated from field: repeated string resources = 1;
931
+ */
932
+ resources: string[];
933
+
934
+ /**
935
+ * allowed_methods is a list of fully qualified gRPC methods the user
936
+ * may invoke on the listed resources, e.g.
937
+ * ["/viam.component.camera.v1.CameraService/GetImages",
938
+ * "/viam.component.camera.v1.CameraService/GetProperties"].
939
+ *
940
+ * @generated from field: repeated string allowed_methods = 2;
941
+ */
942
+ allowedMethods: string[];
943
+
944
+ constructor(data?: PartialMessage<Permission>);
945
+
946
+ static readonly runtime: typeof proto3;
947
+ static readonly typeName = "viam.app.v1.Permission";
948
+ static readonly fields: FieldList;
949
+
950
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Permission;
951
+
952
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Permission;
953
+
954
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Permission;
955
+
956
+ static equals(a: Permission | PlainMessage<Permission> | undefined, b: Permission | PlainMessage<Permission> | undefined): boolean;
957
+ }
958
+
841
959
  /**
842
960
  * @generated from message viam.app.v1.JWKSFile
843
961
  */