@viamrobotics/sdk 0.79.0 → 0.79.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.
- package/dist/api-version.d.ts +1 -1
- package/dist/components/power-sensor/client.d.ts +2 -0
- package/dist/components/power-sensor/power-sensor.d.ts +35 -0
- package/dist/components/powersensor.d.ts +1 -1
- package/dist/gen/app/v1/app_pb.d.ts +8 -0
- package/dist/gen/app/v1/billing_pb.d.ts +5 -0
- package/dist/gen/app/v1/robot_pb.d.ts +128 -0
- package/dist/gen/common/v1/common_pb.d.ts +40 -0
- package/dist/gen/component/powersensor/v1/powersensor_connect.d.ts +23 -1
- package/dist/gen/component/powersensor/v1/powersensor_pb.d.ts +132 -0
- package/dist/gen/robot/v1/robot_pb.d.ts +34 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.es.js +8927 -8722
- package/dist/main.umd.js +8 -8
- package/dist/robot/robot.d.ts +1 -0
- package/dist/types.d.ts +2 -1
- package/package.json +2 -2
package/dist/api-version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const apiVersion = "v0.1.
|
|
1
|
+
export declare const apiVersion = "v0.1.610";
|
|
@@ -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<readonly [number, boolean]>;
|
|
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,38 @@ 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, and a boolean indicating
|
|
52
|
+
* whether the battery is charging.
|
|
53
|
+
*
|
|
54
|
+
* Check `isBatteryPercentSupported` from {@link getProperties} first. The charging boolean is only
|
|
55
|
+
* meaningful when `isChargingSupported` is true.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
*
|
|
59
|
+
* ```ts
|
|
60
|
+
* const powerSensor = new VIAM.PowerSensorClient(machine, 'my_power_sensor');
|
|
61
|
+
* const [percent, isCharging] = await powerSensor.getBatteryPercent();
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* For more information, see [Power Sensor
|
|
65
|
+
* API](https://docs.viam.com/reference/apis/components/power-sensor/#getbatterypercent).
|
|
66
|
+
*/
|
|
67
|
+
getBatteryPercent(extra?: Struct): Promise<readonly [number, boolean]>;
|
|
68
|
+
/**
|
|
69
|
+
* Get the properties of the power sensor, such as whether it supports {@link getBatteryPercent}.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
*
|
|
73
|
+
* ```ts
|
|
74
|
+
* const powerSensor = new VIAM.PowerSensorClient(machine, 'my_power_sensor');
|
|
75
|
+
* const { isBatteryPercentSupported } = await powerSensor.getProperties();
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* For more information, see [Power Sensor
|
|
79
|
+
* API](https://docs.viam.com/reference/apis/components/power-sensor/#getproperties).
|
|
80
|
+
*/
|
|
81
|
+
getProperties(extra?: Struct): Promise<PowerSensorProperties>;
|
|
47
82
|
/**
|
|
48
83
|
* Return the readings of a sensor.
|
|
49
84
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export { PowerSensorProperties, type PowerSensor } from './power-sensor/power-sensor';
|
|
2
2
|
export { PowerSensorClient } from './power-sensor/client';
|
|
@@ -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
|
/**
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct } from "@bufbuild/protobuf";
|
|
7
7
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
8
|
import type { Geometry, LogEntry, ResourceName } from "../../common/v1/common_pb.js";
|
|
9
|
+
import type { ModuleStatus_State } from "../../robot/v1/robot_pb.js";
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* @generated from enum viam.app.v1.CredentialsType
|
|
@@ -1640,6 +1641,29 @@ export declare class AgentInfo extends Message<AgentInfo> {
|
|
|
1640
1641
|
*/
|
|
1641
1642
|
platformTags: string[];
|
|
1642
1643
|
|
|
1644
|
+
/**
|
|
1645
|
+
* modules in the applied config (registry and local) with their running version and status
|
|
1646
|
+
*
|
|
1647
|
+
* @generated from field: repeated viam.app.v1.ModuleVersionInfo module_versions = 8;
|
|
1648
|
+
*/
|
|
1649
|
+
moduleVersions: ModuleVersionInfo[];
|
|
1650
|
+
|
|
1651
|
+
/**
|
|
1652
|
+
* how long this viam-server process has been running, measured with a monotonic clock;
|
|
1653
|
+
* app anchors it to the time the request is received
|
|
1654
|
+
*
|
|
1655
|
+
* @generated from field: google.protobuf.Duration viam_server_uptime = 9;
|
|
1656
|
+
*/
|
|
1657
|
+
viamServerUptime?: Duration;
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* true while a pending reconfigure is being held back by the maintenance sensor;
|
|
1661
|
+
* false once that reconfigure is applied (or when nothing is pending)
|
|
1662
|
+
*
|
|
1663
|
+
* @generated from field: bool reconfigure_blocked = 10;
|
|
1664
|
+
*/
|
|
1665
|
+
reconfigureBlocked: boolean;
|
|
1666
|
+
|
|
1643
1667
|
constructor(data?: PartialMessage<AgentInfo>);
|
|
1644
1668
|
|
|
1645
1669
|
static readonly runtime: typeof proto3;
|
|
@@ -1655,6 +1679,76 @@ export declare class AgentInfo extends Message<AgentInfo> {
|
|
|
1655
1679
|
static equals(a: AgentInfo | PlainMessage<AgentInfo> | undefined, b: AgentInfo | PlainMessage<AgentInfo> | undefined): boolean;
|
|
1656
1680
|
}
|
|
1657
1681
|
|
|
1682
|
+
/**
|
|
1683
|
+
* @generated from message viam.app.v1.ModuleVersionInfo
|
|
1684
|
+
*/
|
|
1685
|
+
export declare class ModuleVersionInfo extends Message<ModuleVersionInfo> {
|
|
1686
|
+
/**
|
|
1687
|
+
* registry module ID, e.g. "viam:realsense" (empty for local modules)
|
|
1688
|
+
*
|
|
1689
|
+
* @generated from field: string module_id = 1;
|
|
1690
|
+
*/
|
|
1691
|
+
moduleId: string;
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
* module name from the machine config; unique within the part
|
|
1695
|
+
*
|
|
1696
|
+
* @generated from field: string module_name = 8;
|
|
1697
|
+
*/
|
|
1698
|
+
moduleName: string;
|
|
1699
|
+
|
|
1700
|
+
/**
|
|
1701
|
+
* version currently running ("local" for local modules; empty if not running or unknown)
|
|
1702
|
+
*
|
|
1703
|
+
* @generated from field: string running_version = 2;
|
|
1704
|
+
*/
|
|
1705
|
+
runningVersion: string;
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* how long the running version has been ready, measured with a monotonic clock; app anchors it
|
|
1709
|
+
* to the time the request is received (unset if not running)
|
|
1710
|
+
*
|
|
1711
|
+
* @generated from field: google.protobuf.Duration running_for = 3;
|
|
1712
|
+
*/
|
|
1713
|
+
runningFor?: Duration;
|
|
1714
|
+
|
|
1715
|
+
/**
|
|
1716
|
+
* current lifecycle state of the module process
|
|
1717
|
+
*
|
|
1718
|
+
* @generated from field: viam.robot.v1.ModuleStatus.State state = 4;
|
|
1719
|
+
*/
|
|
1720
|
+
state: ModuleStatus_State;
|
|
1721
|
+
|
|
1722
|
+
/**
|
|
1723
|
+
* failures since the module was last ready
|
|
1724
|
+
*
|
|
1725
|
+
* @generated from field: uint32 consecutive_failures = 6;
|
|
1726
|
+
*/
|
|
1727
|
+
consecutiveFailures: number;
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* times the module has become ready since viam-server started, including the first start;
|
|
1731
|
+
* only goes up, and resets when viam-server restarts
|
|
1732
|
+
*
|
|
1733
|
+
* @generated from field: uint32 ready_count = 7;
|
|
1734
|
+
*/
|
|
1735
|
+
readyCount: number;
|
|
1736
|
+
|
|
1737
|
+
constructor(data?: PartialMessage<ModuleVersionInfo>);
|
|
1738
|
+
|
|
1739
|
+
static readonly runtime: typeof proto3;
|
|
1740
|
+
static readonly typeName = "viam.app.v1.ModuleVersionInfo";
|
|
1741
|
+
static readonly fields: FieldList;
|
|
1742
|
+
|
|
1743
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModuleVersionInfo;
|
|
1744
|
+
|
|
1745
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModuleVersionInfo;
|
|
1746
|
+
|
|
1747
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModuleVersionInfo;
|
|
1748
|
+
|
|
1749
|
+
static equals(a: ModuleVersionInfo | PlainMessage<ModuleVersionInfo> | undefined, b: ModuleVersionInfo | PlainMessage<ModuleVersionInfo> | undefined): boolean;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1658
1752
|
/**
|
|
1659
1753
|
* @generated from message viam.app.v1.ConfigRequest
|
|
1660
1754
|
*/
|
|
@@ -2038,6 +2132,11 @@ export declare class MaintenanceConfig extends Message<MaintenanceConfig> {
|
|
|
2038
2132
|
*/
|
|
2039
2133
|
maintenanceAllowedKey: string;
|
|
2040
2134
|
|
|
2135
|
+
/**
|
|
2136
|
+
* @generated from field: viam.app.v1.FollowPartRef follow_part = 3;
|
|
2137
|
+
*/
|
|
2138
|
+
followPart?: FollowPartRef;
|
|
2139
|
+
|
|
2041
2140
|
constructor(data?: PartialMessage<MaintenanceConfig>);
|
|
2042
2141
|
|
|
2043
2142
|
static readonly runtime: typeof proto3;
|
|
@@ -2053,3 +2152,32 @@ export declare class MaintenanceConfig extends Message<MaintenanceConfig> {
|
|
|
2053
2152
|
static equals(a: MaintenanceConfig | PlainMessage<MaintenanceConfig> | undefined, b: MaintenanceConfig | PlainMessage<MaintenanceConfig> | undefined): boolean;
|
|
2054
2153
|
}
|
|
2055
2154
|
|
|
2155
|
+
/**
|
|
2156
|
+
* @generated from message viam.app.v1.FollowPartRef
|
|
2157
|
+
*/
|
|
2158
|
+
export declare class FollowPartRef extends Message<FollowPartRef> {
|
|
2159
|
+
/**
|
|
2160
|
+
* @generated from field: string address = 1;
|
|
2161
|
+
*/
|
|
2162
|
+
address: string;
|
|
2163
|
+
|
|
2164
|
+
/**
|
|
2165
|
+
* @generated from field: viam.app.v1.RemoteAuth auth = 2;
|
|
2166
|
+
*/
|
|
2167
|
+
auth?: RemoteAuth;
|
|
2168
|
+
|
|
2169
|
+
constructor(data?: PartialMessage<FollowPartRef>);
|
|
2170
|
+
|
|
2171
|
+
static readonly runtime: typeof proto3;
|
|
2172
|
+
static readonly typeName = "viam.app.v1.FollowPartRef";
|
|
2173
|
+
static readonly fields: FieldList;
|
|
2174
|
+
|
|
2175
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FollowPartRef;
|
|
2176
|
+
|
|
2177
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FollowPartRef;
|
|
2178
|
+
|
|
2179
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FollowPartRef;
|
|
2180
|
+
|
|
2181
|
+
static equals(a: FollowPartRef | PlainMessage<FollowPartRef> | undefined, b: FollowPartRef | PlainMessage<FollowPartRef> | undefined): boolean;
|
|
2182
|
+
}
|
|
2183
|
+
|
|
@@ -395,6 +395,40 @@ export declare class Capsule extends Message<Capsule> {
|
|
|
395
395
|
static equals(a: Capsule | PlainMessage<Capsule> | undefined, b: Capsule | PlainMessage<Capsule> | undefined): boolean;
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
+
/**
|
|
399
|
+
* Cylinder is a solid right circular cylinder, flat end caps included, whose axis is the local Z
|
|
400
|
+
* axis of the geometry's center pose.
|
|
401
|
+
*
|
|
402
|
+
* @generated from message viam.common.v1.Cylinder
|
|
403
|
+
*/
|
|
404
|
+
export declare class Cylinder extends Message<Cylinder> {
|
|
405
|
+
/**
|
|
406
|
+
* @generated from field: double radius_mm = 1;
|
|
407
|
+
*/
|
|
408
|
+
radiusMm: number;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Full end-to-end length along the cylinder's axis.
|
|
412
|
+
*
|
|
413
|
+
* @generated from field: double length_mm = 2;
|
|
414
|
+
*/
|
|
415
|
+
lengthMm: number;
|
|
416
|
+
|
|
417
|
+
constructor(data?: PartialMessage<Cylinder>);
|
|
418
|
+
|
|
419
|
+
static readonly runtime: typeof proto3;
|
|
420
|
+
static readonly typeName = "viam.common.v1.Cylinder";
|
|
421
|
+
static readonly fields: FieldList;
|
|
422
|
+
|
|
423
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Cylinder;
|
|
424
|
+
|
|
425
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Cylinder;
|
|
426
|
+
|
|
427
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Cylinder;
|
|
428
|
+
|
|
429
|
+
static equals(a: Cylinder | PlainMessage<Cylinder> | undefined, b: Cylinder | PlainMessage<Cylinder> | undefined): boolean;
|
|
430
|
+
}
|
|
431
|
+
|
|
398
432
|
/**
|
|
399
433
|
* RectangularPrism contains a Vector3 field corresponding to the X, Y, Z dimensions of the prism in mms
|
|
400
434
|
* These dimensions are with respect to the referenceframe in which the RectangularPrism is defined
|
|
@@ -534,6 +568,12 @@ export declare class Geometry extends Message<Geometry> {
|
|
|
534
568
|
*/
|
|
535
569
|
value: PointCloud;
|
|
536
570
|
case: "pointcloud";
|
|
571
|
+
} | {
|
|
572
|
+
/**
|
|
573
|
+
* @generated from field: viam.common.v1.Cylinder cylinder = 8;
|
|
574
|
+
*/
|
|
575
|
+
value: Cylinder;
|
|
576
|
+
case: "cylinder";
|
|
537
577
|
} | { case: undefined; value?: undefined };
|
|
538
578
|
|
|
539
579
|
/**
|
|
@@ -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,135 @@ 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
|
+
/**
|
|
245
|
+
* Whether the battery is charging. Only meaningful when GetProperties reports is_charging_supported.
|
|
246
|
+
*
|
|
247
|
+
* @generated from field: bool is_charging = 2;
|
|
248
|
+
*/
|
|
249
|
+
isCharging: boolean;
|
|
250
|
+
|
|
251
|
+
constructor(data?: PartialMessage<GetBatteryPercentResponse>);
|
|
252
|
+
|
|
253
|
+
static readonly runtime: typeof proto3;
|
|
254
|
+
static readonly typeName = "viam.component.powersensor.v1.GetBatteryPercentResponse";
|
|
255
|
+
static readonly fields: FieldList;
|
|
256
|
+
|
|
257
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBatteryPercentResponse;
|
|
258
|
+
|
|
259
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBatteryPercentResponse;
|
|
260
|
+
|
|
261
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBatteryPercentResponse;
|
|
262
|
+
|
|
263
|
+
static equals(a: GetBatteryPercentResponse | PlainMessage<GetBatteryPercentResponse> | undefined, b: GetBatteryPercentResponse | PlainMessage<GetBatteryPercentResponse> | undefined): boolean;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* @generated from message viam.component.powersensor.v1.GetPropertiesRequest
|
|
268
|
+
*/
|
|
269
|
+
export declare class GetPropertiesRequest extends Message<GetPropertiesRequest> {
|
|
270
|
+
/**
|
|
271
|
+
* Name of a power sensor
|
|
272
|
+
*
|
|
273
|
+
* @generated from field: string name = 1;
|
|
274
|
+
*/
|
|
275
|
+
name: string;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Additional arguments to the method
|
|
279
|
+
*
|
|
280
|
+
* @generated from field: google.protobuf.Struct extra = 99;
|
|
281
|
+
*/
|
|
282
|
+
extra?: Struct;
|
|
283
|
+
|
|
284
|
+
constructor(data?: PartialMessage<GetPropertiesRequest>);
|
|
285
|
+
|
|
286
|
+
static readonly runtime: typeof proto3;
|
|
287
|
+
static readonly typeName = "viam.component.powersensor.v1.GetPropertiesRequest";
|
|
288
|
+
static readonly fields: FieldList;
|
|
289
|
+
|
|
290
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPropertiesRequest;
|
|
291
|
+
|
|
292
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPropertiesRequest;
|
|
293
|
+
|
|
294
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPropertiesRequest;
|
|
295
|
+
|
|
296
|
+
static equals(a: GetPropertiesRequest | PlainMessage<GetPropertiesRequest> | undefined, b: GetPropertiesRequest | PlainMessage<GetPropertiesRequest> | undefined): boolean;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @generated from message viam.component.powersensor.v1.GetPropertiesResponse
|
|
301
|
+
*/
|
|
302
|
+
export declare class GetPropertiesResponse extends Message<GetPropertiesResponse> {
|
|
303
|
+
/**
|
|
304
|
+
* Whether the power sensor supports GetBatteryPercent
|
|
305
|
+
*
|
|
306
|
+
* @generated from field: bool is_battery_percent_supported = 1;
|
|
307
|
+
*/
|
|
308
|
+
isBatteryPercentSupported: boolean;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Whether GetBatteryPercent reports a meaningful is_charging
|
|
312
|
+
*
|
|
313
|
+
* @generated from field: bool is_charging_supported = 2;
|
|
314
|
+
*/
|
|
315
|
+
isChargingSupported: boolean;
|
|
316
|
+
|
|
317
|
+
constructor(data?: PartialMessage<GetPropertiesResponse>);
|
|
318
|
+
|
|
319
|
+
static readonly runtime: typeof proto3;
|
|
320
|
+
static readonly typeName = "viam.component.powersensor.v1.GetPropertiesResponse";
|
|
321
|
+
static readonly fields: FieldList;
|
|
322
|
+
|
|
323
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPropertiesResponse;
|
|
324
|
+
|
|
325
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPropertiesResponse;
|
|
326
|
+
|
|
327
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPropertiesResponse;
|
|
328
|
+
|
|
329
|
+
static equals(a: GetPropertiesResponse | PlainMessage<GetPropertiesResponse> | undefined, b: GetPropertiesResponse | PlainMessage<GetPropertiesResponse> | undefined): boolean;
|
|
330
|
+
}
|
|
331
|
+
|
|
@@ -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
|
@@ -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
|
*
|