@viamrobotics/sdk 0.78.0 → 0.79.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.
@@ -1 +1 @@
1
- export declare const apiVersion = "v0.1.601";
1
+ export declare const apiVersion = "v0.1.607";
@@ -2,7 +2,7 @@ import type { JsonObject, JsonValue } from '@bufbuild/protobuf';
2
2
  import { Struct } from '@bufbuild/protobuf';
3
3
  import { type Transport } from '@connectrpc/connect';
4
4
  import { type PackageType } from '../gen/app/packages/v1/packages_pb';
5
- import { Authorization, AuthorizedPermissions, type AllowedLoginMethods, type APIKeyWithAuthorizations, type CreateKeyFromExistingKeyAuthorizationsResponse, type CreateKeyResponse, type CreateModuleResponse, type CreateOAuthAppUserResponse, type Fragment, type FragmentImportList, type FragmentVisibility, type GetAppBrandingResponse, type GetAppContentResponse, type GetRobotPartByNameAndLocationResponse, type GetRobotPartLogsResponse, type GetRobotPartResponse, type ListOrganizationMembersResponse, type Location, type LocationAuth, type LocationSummary, type Model, type Module, type Organization, type OrganizationIdentity, type OrganizationInvite, type OrgDetails, type RegistryItem, type RegistryItemBilling, type RegistryItemStatus, type Robot, type RobotPart, type RobotPartHistoryEntry, type RotateKeyResponse, type RoverRentalRobot, type Visibility } from '../gen/app/v1/app_pb';
5
+ import { Authorization, AuthorizedPermissions, type AllowedLoginMethods, type APIKeyWithAuthorizations, type ConfigPropertyChangeResult, type CreateKeyFromExistingKeyAuthorizationsResponse, type CreateKeyResponse, type CreateModuleResponse, type CreateOAuthAppUserResponse, type Fragment, type FragmentImportList, type FragmentVisibility, type GetAppBrandingResponse, type GetAppContentResponse, type GetRobotPartByNameAndLocationResponse, type GetRobotPartLogsResponse, type GetRobotPartResponse, type ListOrganizationMembersResponse, type Location, type LocationAuth, type LocationSummary, type Model, type Module, type Organization, type OrganizationIdentity, type OrganizationInvite, type OrgDetails, type RegistryItem, type RegistryItemBilling, type RegistryItemStatus, type Robot, type RobotPart, type RobotPartHistoryEntry, type RotateKeyResponse, type RoverRentalRobot, type Visibility } from '../gen/app/v1/app_pb';
6
6
  import type { LogEntry } from '../gen/common/v1/common_pb';
7
7
  /**
8
8
  * Creates an Authorization object from auth details.
@@ -642,6 +642,30 @@ export declare class AppClient {
642
642
  * @returns The updated robot part
643
643
  */
644
644
  updateRobotPart(id: string, name: string, robotConfig: Struct): Promise<RobotPart | undefined>;
645
+ /**
646
+ * Sets individual properties in a robot part's config. Each change is written where the property
647
+ * comes from: the part config, a fragment mod or variable, or a new fragment mod.
648
+ *
649
+ * @example
650
+ *
651
+ * ```ts
652
+ * const results = await appClient.setConfigProperty('<YOUR-ROBOT-PART-ID>', [
653
+ * { path: 'components.my-arm.attributes.speed', value: 50 },
654
+ * ]);
655
+ * ```
656
+ *
657
+ * For more information, see [App
658
+ * API](https://docs.viam.com/reference/apis/fleet/#setconfigproperty).
659
+ *
660
+ * @param robotPartId The ID of the robot part to update
661
+ * @param propertyChanges The properties to set, each a path into the config (for example
662
+ * "components.my-arm.frame") and the value to set it to. Changes are applied in order.
663
+ * @returns The result of each change, in the same order as the requested changes
664
+ */
665
+ setConfigProperty(robotPartId: string, propertyChanges: {
666
+ path: string;
667
+ value: JsonValue;
668
+ }[]): Promise<ConfigPropertyChangeResult[]>;
645
669
  /**
646
670
  * Creates a new robot part.
647
671
  *
@@ -46,7 +46,8 @@ export declare class BillingClient {
46
46
  * const invoicesSummary = await billing.getInvoicesSummary('<organization-id>');
47
47
  * ```
48
48
  *
49
- * For more information, see [Billing API](https://docs.viam.com/reference/apis/billing-client/).
49
+ * For more information, see [Billing
50
+ * API](https://docs.viam.com/reference/apis/billing-client/#getinvoicessummary).
50
51
  *
51
52
  * @param orgId - The organization ID.
52
53
  */
@@ -1,4 +1,5 @@
1
1
  import type { Transport } from '@connectrpc/connect';
2
+ import { type RobotClient } from '../robot';
2
3
  import { AppClient } from './app-client';
3
4
  import { BillingClient } from './billing-client';
4
5
  import { DataClient } from './data-client';
@@ -26,6 +27,6 @@ export declare class ViamClient {
26
27
  readonly billingClient: BillingClient;
27
28
  constructor(transport: Transport, credentials: Credentials);
28
29
  getRobotSecretFromHost(host: string): Promise<string | undefined>;
29
- connectToMachine({ host, id }: ViamClientMachineConnectionOpts): Promise<import("../robot").RobotClient>;
30
+ connectToMachine({ host, id, }: ViamClientMachineConnectionOpts): Promise<RobotClient>;
30
31
  }
31
32
  export {};
@@ -4,10 +4,9 @@ export type Credentials = Credential | AccessToken;
4
4
  /** A credential that can be exchanged to obtain an access token */
5
5
  export interface Credential {
6
6
  authEntity: string;
7
- type: CredentialType;
7
+ type: 'api-key';
8
8
  payload: string;
9
9
  }
10
- export type CredentialType = 'api-key' | 'robot-secret';
11
10
  /** An access token used to access protected resources. */
12
11
  export interface AccessToken {
13
12
  type: 'access-token';
@@ -15,4 +14,4 @@ export interface AccessToken {
15
14
  }
16
15
  export declare const isCredential: (object: Credentials | undefined) => object is Credential;
17
16
  /** Initialize an authenticated transport that can access protected resources. */
18
- export declare const createViamTransport: (serviceHost: string, credential: Credential | AccessToken) => Promise<Transport>;
17
+ export declare const createViamTransport: (serviceHost: string, credential: Credentials) => Promise<Transport>;
@@ -117,7 +117,8 @@ export interface Board extends Resource {
117
117
  * const freq = await board.getPWMFrequency('15');
118
118
  * ```
119
119
  *
120
- * For more information, see [Board API](https://docs.viam.com/reference/apis/components/board/).
120
+ * For more information, see [Board
121
+ * API](https://docs.viam.com/reference/apis/components/board/#pwmfrequency).
121
122
  *
122
123
  * @param pin - The pin.
123
124
  */
@@ -17,6 +17,8 @@ export declare class PowerSensorClient implements PowerSensor {
17
17
  getVoltage(extra?: {}, callOptions?: CallOptions): Promise<readonly [number, boolean]>;
18
18
  getCurrent(extra?: {}, callOptions?: CallOptions): Promise<readonly [number, boolean]>;
19
19
  getPower(extra?: {}, callOptions?: CallOptions): Promise<number>;
20
+ getBatteryPercent(extra?: {}, callOptions?: CallOptions): Promise<number>;
21
+ getProperties(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/powersensor/v1/powersensor_pb").GetPropertiesResponse>;
20
22
  getReadings(extra?: {}, callOptions?: CallOptions): Promise<Record<string, JsonValue>>;
21
23
  getStatus(callOptions?: CallOptions): Promise<JsonValue>;
22
24
  doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
@@ -1,5 +1,8 @@
1
1
  import type { JsonValue, Struct } from '@bufbuild/protobuf';
2
+ import * as powerSensorApi from '../../gen/component/powersensor/v1/powersensor_pb';
2
3
  import type { Sensor } from '../sensor';
4
+ export type PowerSensorProperties = powerSensorApi.GetPropertiesResponse;
5
+ export declare const PowerSensorProperties: typeof powerSensorApi.GetPropertiesResponse;
3
6
  /** Represents any sensor that reports voltage, current, and/or power */
4
7
  export interface PowerSensor extends Sensor {
5
8
  /**
@@ -44,6 +47,36 @@ export interface PowerSensor extends Sensor {
44
47
  * API](https://docs.viam.com/reference/apis/components/power-sensor/#getpower).
45
48
  */
46
49
  getPower(extra?: Struct): Promise<number>;
50
+ /**
51
+ * Get the remaining battery charge as a percentage from 0 to 100.
52
+ *
53
+ * Check `isBatteryPercentSupported` from {@link getProperties} first.
54
+ *
55
+ * @example
56
+ *
57
+ * ```ts
58
+ * const powerSensor = new VIAM.PowerSensorClient(machine, 'my_power_sensor');
59
+ * const percent = await powerSensor.getBatteryPercent();
60
+ * ```
61
+ *
62
+ * For more information, see [Power Sensor
63
+ * API](https://docs.viam.com/reference/apis/components/power-sensor/#getbatterypercent).
64
+ */
65
+ getBatteryPercent(extra?: Struct): Promise<number>;
66
+ /**
67
+ * Get the properties of the power sensor, such as whether it supports {@link getBatteryPercent}.
68
+ *
69
+ * @example
70
+ *
71
+ * ```ts
72
+ * const powerSensor = new VIAM.PowerSensorClient(machine, 'my_power_sensor');
73
+ * const { isBatteryPercentSupported } = await powerSensor.getProperties();
74
+ * ```
75
+ *
76
+ * For more information, see [Power Sensor
77
+ * API](https://docs.viam.com/reference/apis/components/power-sensor/#getproperties).
78
+ */
79
+ getProperties(extra?: Struct): Promise<PowerSensorProperties>;
47
80
  /**
48
81
  * Return the readings of a sensor.
49
82
  *
@@ -1,2 +1,2 @@
1
- export type { PowerSensor } from './power-sensor/power-sensor';
1
+ export { PowerSensorProperties, type PowerSensor } from './power-sensor/power-sensor';
2
2
  export { PowerSensorClient } from './power-sensor/client';
@@ -30,6 +30,13 @@ export declare enum ModelType {
30
30
  * @generated from enum value: MODEL_TYPE_OBJECT_DETECTION = 3;
31
31
  */
32
32
  OBJECT_DETECTION = 3,
33
+
34
+ /**
35
+ * A policy that controls a robot.
36
+ *
37
+ * @generated from enum value: MODEL_TYPE_ROBOT_POLICY = 4;
38
+ */
39
+ ROBOT_POLICY = 4,
33
40
  }
34
41
 
35
42
  /**
@@ -8080,6 +8080,14 @@ export declare class Model extends Message<Model> {
8080
8080
  */
8081
8081
  supportedHardware: string[];
8082
8082
 
8083
+ /**
8084
+ * The full set of co-equal APIs this model serves. The `api` field is always one of these and is
8085
+ * retained for tooling that predates `apis`; new code should read `apis`.
8086
+ *
8087
+ * @generated from field: repeated string apis = 6;
8088
+ */
8089
+ apis: string[];
8090
+
8083
8091
  constructor(data?: PartialMessage<Model>);
8084
8092
 
8085
8093
  static readonly runtime: typeof proto3;
@@ -178,6 +178,11 @@ export declare enum UsageCostType {
178
178
  * @generated from enum value: USAGE_COST_TYPE_SIMULATION_COMPUTE = 28;
179
179
  */
180
180
  SIMULATION_COMPUTE = 28,
181
+
182
+ /**
183
+ * @generated from enum value: USAGE_COST_TYPE_AI_USAGE = 29;
184
+ */
185
+ AI_USAGE = 29,
181
186
  }
182
187
 
183
188
  /**
@@ -847,25 +847,37 @@ export declare class AuthConfig extends Message<AuthConfig> {
847
847
  }
848
848
 
849
849
  /**
850
- * A UserPermission describes a User and the permissions granted to
851
- * that user.
850
+ * A UserPermission describes the Users a set of permissions is granted to.
852
851
  *
853
852
  * @generated from message viam.app.v1.UserPermission
854
853
  */
855
854
  export declare class UserPermission extends Message<UserPermission> {
856
855
  /**
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.
856
+ * users are the Users these permissions apply to. A User can be listed in
857
+ * only one UserPermission for a set of UserPermissions, counting both users
858
+ * and user.
859
859
  *
860
- * @generated from field: viam.app.v1.User user = 1;
860
+ * @generated from field: repeated viam.app.v1.User users = 3;
861
861
  */
862
- user?: User;
862
+ users: User[];
863
863
 
864
864
  /**
865
+ * permissions are the methods these Users may invoke, by resource. A User
866
+ * named here with no permissions may invoke nothing.
867
+ *
865
868
  * @generated from field: repeated viam.app.v1.Permission permissions = 2;
866
869
  */
867
870
  permissions: Permission[];
868
871
 
872
+ /**
873
+ * user is a single User these permissions apply to. Superseded by users:
874
+ * prefer users in new writers, and expect readers to ignore user when users
875
+ * is set.
876
+ *
877
+ * @generated from field: viam.app.v1.User user = 1;
878
+ */
879
+ user?: User;
880
+
869
881
  constructor(data?: PartialMessage<UserPermission>);
870
882
 
871
883
  static readonly runtime: typeof proto3;
@@ -2026,6 +2038,11 @@ export declare class MaintenanceConfig extends Message<MaintenanceConfig> {
2026
2038
  */
2027
2039
  maintenanceAllowedKey: string;
2028
2040
 
2041
+ /**
2042
+ * @generated from field: viam.app.v1.FollowPartRef follow_part = 3;
2043
+ */
2044
+ followPart?: FollowPartRef;
2045
+
2029
2046
  constructor(data?: PartialMessage<MaintenanceConfig>);
2030
2047
 
2031
2048
  static readonly runtime: typeof proto3;
@@ -2041,3 +2058,32 @@ export declare class MaintenanceConfig extends Message<MaintenanceConfig> {
2041
2058
  static equals(a: MaintenanceConfig | PlainMessage<MaintenanceConfig> | undefined, b: MaintenanceConfig | PlainMessage<MaintenanceConfig> | undefined): boolean;
2042
2059
  }
2043
2060
 
2061
+ /**
2062
+ * @generated from message viam.app.v1.FollowPartRef
2063
+ */
2064
+ export declare class FollowPartRef extends Message<FollowPartRef> {
2065
+ /**
2066
+ * @generated from field: string address = 1;
2067
+ */
2068
+ address: string;
2069
+
2070
+ /**
2071
+ * @generated from field: viam.app.v1.RemoteAuth auth = 2;
2072
+ */
2073
+ auth?: RemoteAuth;
2074
+
2075
+ constructor(data?: PartialMessage<FollowPartRef>);
2076
+
2077
+ static readonly runtime: typeof proto3;
2078
+ static readonly typeName = "viam.app.v1.FollowPartRef";
2079
+ static readonly fields: FieldList;
2080
+
2081
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FollowPartRef;
2082
+
2083
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FollowPartRef;
2084
+
2085
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FollowPartRef;
2086
+
2087
+ static equals(a: FollowPartRef | PlainMessage<FollowPartRef> | undefined, b: FollowPartRef | PlainMessage<FollowPartRef> | undefined): boolean;
2088
+ }
2089
+
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { GetCurrentRequest, GetCurrentResponse, GetPowerRequest, GetPowerResponse, GetVoltageRequest, GetVoltageResponse } from "./powersensor_pb.js";
6
+ import { GetBatteryPercentRequest, GetBatteryPercentResponse, GetCurrentRequest, GetCurrentResponse, GetPowerRequest, GetPowerResponse, GetPropertiesRequest, GetPropertiesResponse, GetVoltageRequest, GetVoltageResponse } from "./powersensor_pb.js";
7
7
  import { MethodKind } from "@bufbuild/protobuf";
8
8
  import { DoCommandRequest, DoCommandResponse, GetReadingsRequest, GetReadingsResponse, GetStatusRequest, GetStatusResponse } from "../../../common/v1/common_pb.js";
9
9
 
@@ -48,6 +48,28 @@ export declare const PowerSensorService: {
48
48
  readonly O: typeof GetPowerResponse,
49
49
  readonly kind: MethodKind.Unary,
50
50
  },
51
+ /**
52
+ * GetBatteryPercent returns the remaining charge of the battery the power sensor monitors
53
+ *
54
+ * @generated from rpc viam.component.powersensor.v1.PowerSensorService.GetBatteryPercent
55
+ */
56
+ readonly getBatteryPercent: {
57
+ readonly name: "GetBatteryPercent",
58
+ readonly I: typeof GetBatteryPercentRequest,
59
+ readonly O: typeof GetBatteryPercentResponse,
60
+ readonly kind: MethodKind.Unary,
61
+ },
62
+ /**
63
+ * GetProperties returns the properties of a power sensor
64
+ *
65
+ * @generated from rpc viam.component.powersensor.v1.PowerSensorService.GetProperties
66
+ */
67
+ readonly getProperties: {
68
+ readonly name: "GetProperties",
69
+ readonly I: typeof GetPropertiesRequest,
70
+ readonly O: typeof GetPropertiesResponse,
71
+ readonly kind: MethodKind.Unary,
72
+ },
51
73
  /**
52
74
  * GetReadings returns the readings of a sensor of the underlying robot.
53
75
  *
@@ -197,3 +197,121 @@ export declare class GetPowerResponse extends Message<GetPowerResponse> {
197
197
  static equals(a: GetPowerResponse | PlainMessage<GetPowerResponse> | undefined, b: GetPowerResponse | PlainMessage<GetPowerResponse> | undefined): boolean;
198
198
  }
199
199
 
200
+ /**
201
+ * @generated from message viam.component.powersensor.v1.GetBatteryPercentRequest
202
+ */
203
+ export declare class GetBatteryPercentRequest extends Message<GetBatteryPercentRequest> {
204
+ /**
205
+ * Name of a power sensor
206
+ *
207
+ * @generated from field: string name = 1;
208
+ */
209
+ name: string;
210
+
211
+ /**
212
+ * Additional arguments to the method
213
+ *
214
+ * @generated from field: google.protobuf.Struct extra = 99;
215
+ */
216
+ extra?: Struct;
217
+
218
+ constructor(data?: PartialMessage<GetBatteryPercentRequest>);
219
+
220
+ static readonly runtime: typeof proto3;
221
+ static readonly typeName = "viam.component.powersensor.v1.GetBatteryPercentRequest";
222
+ static readonly fields: FieldList;
223
+
224
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBatteryPercentRequest;
225
+
226
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBatteryPercentRequest;
227
+
228
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBatteryPercentRequest;
229
+
230
+ static equals(a: GetBatteryPercentRequest | PlainMessage<GetBatteryPercentRequest> | undefined, b: GetBatteryPercentRequest | PlainMessage<GetBatteryPercentRequest> | undefined): boolean;
231
+ }
232
+
233
+ /**
234
+ * @generated from message viam.component.powersensor.v1.GetBatteryPercentResponse
235
+ */
236
+ export declare class GetBatteryPercentResponse extends Message<GetBatteryPercentResponse> {
237
+ /**
238
+ * Remaining battery charge, from 0 to 100
239
+ *
240
+ * @generated from field: double percent = 1;
241
+ */
242
+ percent: number;
243
+
244
+ constructor(data?: PartialMessage<GetBatteryPercentResponse>);
245
+
246
+ static readonly runtime: typeof proto3;
247
+ static readonly typeName = "viam.component.powersensor.v1.GetBatteryPercentResponse";
248
+ static readonly fields: FieldList;
249
+
250
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBatteryPercentResponse;
251
+
252
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBatteryPercentResponse;
253
+
254
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBatteryPercentResponse;
255
+
256
+ static equals(a: GetBatteryPercentResponse | PlainMessage<GetBatteryPercentResponse> | undefined, b: GetBatteryPercentResponse | PlainMessage<GetBatteryPercentResponse> | undefined): boolean;
257
+ }
258
+
259
+ /**
260
+ * @generated from message viam.component.powersensor.v1.GetPropertiesRequest
261
+ */
262
+ export declare class GetPropertiesRequest extends Message<GetPropertiesRequest> {
263
+ /**
264
+ * Name of a power sensor
265
+ *
266
+ * @generated from field: string name = 1;
267
+ */
268
+ name: string;
269
+
270
+ /**
271
+ * Additional arguments to the method
272
+ *
273
+ * @generated from field: google.protobuf.Struct extra = 99;
274
+ */
275
+ extra?: Struct;
276
+
277
+ constructor(data?: PartialMessage<GetPropertiesRequest>);
278
+
279
+ static readonly runtime: typeof proto3;
280
+ static readonly typeName = "viam.component.powersensor.v1.GetPropertiesRequest";
281
+ static readonly fields: FieldList;
282
+
283
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPropertiesRequest;
284
+
285
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPropertiesRequest;
286
+
287
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPropertiesRequest;
288
+
289
+ static equals(a: GetPropertiesRequest | PlainMessage<GetPropertiesRequest> | undefined, b: GetPropertiesRequest | PlainMessage<GetPropertiesRequest> | undefined): boolean;
290
+ }
291
+
292
+ /**
293
+ * @generated from message viam.component.powersensor.v1.GetPropertiesResponse
294
+ */
295
+ export declare class GetPropertiesResponse extends Message<GetPropertiesResponse> {
296
+ /**
297
+ * Whether the power sensor supports GetBatteryPercent
298
+ *
299
+ * @generated from field: bool is_battery_percent_supported = 1;
300
+ */
301
+ isBatteryPercentSupported: boolean;
302
+
303
+ constructor(data?: PartialMessage<GetPropertiesResponse>);
304
+
305
+ static readonly runtime: typeof proto3;
306
+ static readonly typeName = "viam.component.powersensor.v1.GetPropertiesResponse";
307
+ static readonly fields: FieldList;
308
+
309
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPropertiesResponse;
310
+
311
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPropertiesResponse;
312
+
313
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPropertiesResponse;
314
+
315
+ static equals(a: GetPropertiesResponse | PlainMessage<GetPropertiesResponse> | undefined, b: GetPropertiesResponse | PlainMessage<GetPropertiesResponse> | undefined): boolean;
316
+ }
317
+
@@ -1549,6 +1549,11 @@ export declare class GetMachineStatusResponse extends Message<GetMachineStatusRe
1549
1549
  */
1550
1550
  packages: PackageStatus[];
1551
1551
 
1552
+ /**
1553
+ * @generated from field: viam.robot.v1.MaintenanceStatus maintenance_status = 7;
1554
+ */
1555
+ maintenanceStatus?: MaintenanceStatus;
1556
+
1552
1557
  constructor(data?: PartialMessage<GetMachineStatusResponse>);
1553
1558
 
1554
1559
  static readonly runtime: typeof proto3;
@@ -1589,6 +1594,35 @@ export declare enum GetMachineStatusResponse_State {
1589
1594
  RUNNING = 2,
1590
1595
  }
1591
1596
 
1597
+ /**
1598
+ * @generated from message viam.robot.v1.MaintenanceStatus
1599
+ */
1600
+ export declare class MaintenanceStatus extends Message<MaintenanceStatus> {
1601
+ /**
1602
+ * @generated from field: bool allowed = 1;
1603
+ */
1604
+ allowed: boolean;
1605
+
1606
+ /**
1607
+ * @generated from field: string reason = 2;
1608
+ */
1609
+ reason: string;
1610
+
1611
+ constructor(data?: PartialMessage<MaintenanceStatus>);
1612
+
1613
+ static readonly runtime: typeof proto3;
1614
+ static readonly typeName = "viam.robot.v1.MaintenanceStatus";
1615
+ static readonly fields: FieldList;
1616
+
1617
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MaintenanceStatus;
1618
+
1619
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MaintenanceStatus;
1620
+
1621
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MaintenanceStatus;
1622
+
1623
+ static equals(a: MaintenanceStatus | PlainMessage<MaintenanceStatus> | undefined, b: MaintenanceStatus | PlainMessage<MaintenanceStatus> | undefined): boolean;
1624
+ }
1625
+
1592
1626
  /**
1593
1627
  * @generated from message viam.robot.v1.JobStatus
1594
1628
  */
package/dist/main.d.ts CHANGED
@@ -10,8 +10,8 @@ export { RobotClient as Client, createRobotClient, RobotClient, type CloudMetada
10
10
  */
11
11
  export * as robotApi from './gen/robot/v1/robot_pb';
12
12
  export { createViamClient, type ViamClient, type ViamClientOptions } from './app/viam-client';
13
- export { type AccessToken, type Credential, type Credentials, type CredentialType, } from './app/viam-transport';
14
- export { type BinaryDataCaptureUploadOptions, type BinaryID, type DataClient, DatasetType, type FilterOptions, type GetSequenceDatasetExportResponse, type IndexableCollection, type Sequence, SequenceDatasetExportStatus, type SequenceResourceFilter, } from './app/data-client';
13
+ export { type AccessToken, type Credential, type Credentials } from './app/viam-transport';
14
+ export { DatasetType, SequenceDatasetExportStatus, type BinaryDataCaptureUploadOptions, type BinaryID, type DataClient, type FilterOptions, type GetSequenceDatasetExportResponse, type IndexableCollection, type Sequence, type SequenceResourceFilter, } from './app/data-client';
15
15
  /**
16
16
  * Raw Protobuf interfaces for Data.
17
17
  *
@@ -62,10 +62,10 @@ export { type BillingClient } from './app/billing-client';
62
62
  * @group Raw Protobufs
63
63
  */
64
64
  export * as billingApi from './gen/app/v1/billing_pb';
65
+ export { AudioCodec, type AudioCodecType, type AudioProperties } from './audio-common';
65
66
  export { ArmClient, ArmJointPositions, type Arm } from './components/arm';
66
- export { AudioInClient, type AudioIn, type AudioChunk } from './components/audioin';
67
+ export { AudioInClient, type AudioChunk, type AudioIn } from './components/audioin';
67
68
  export { AudioOutClient, type AudioOut } from './components/audioout';
68
- export { AudioCodec, type AudioCodecType, type AudioProperties } from './audio-common';
69
69
  /**
70
70
  * Raw Protobuf interfaces for an Arm component.
71
71
  *
@@ -166,7 +166,7 @@ export { MovementSensorAccuracy, MovementSensorClient, MovementSensorPosition, M
166
166
  * @group Raw Protobufs
167
167
  */
168
168
  export * as movementSensorApi from './gen/component/movementsensor/v1/movementsensor_pb';
169
- export { PowerSensorClient, type PowerSensor } from './components/powersensor';
169
+ export { PowerSensorClient, PowerSensorProperties, type PowerSensor, } from './components/powersensor';
170
170
  /**
171
171
  * Raw Protobuf interfaces for a PowerSensor component.
172
172
  *
@@ -256,7 +256,7 @@ export { DataManagerClient, type DataManager } from './services/data-manager';
256
256
  * @group Raw Protobufs
257
257
  */
258
258
  export * as dataManagerApi from './gen/service/datamanager/v1/data_manager_pb';
259
- export { NavigationClient, type Costmap, GoalState, type GoalStatus, type Location, MapType, type NavError, NavErrorCode, NavMode, type NavigateRouteOptions, type Plan, type Position, type Progress, type Properties, type Route, type RouteProgress, type Status, type Velocity, type Waypoint, type Zone, } from './services/navigation';
259
+ export { GoalState, MapType, NavErrorCode, NavigationClient, NavMode, type Costmap, type GoalStatus, type Location, type NavError, type NavigateRouteOptions, type Plan, type Position, type Progress, type Properties, type Route, type RouteProgress, type Status, type Velocity, type Waypoint, type Zone, } from './services/navigation';
260
260
  /**
261
261
  * Raw Protobuf interfaces for a Navigation service.
262
262
  *