@viamrobotics/sdk 0.73.0 → 0.74.0-b.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-version.d.ts +1 -1
- package/dist/app/app-client.d.ts +186 -254
- package/dist/app/billing-client.d.ts +6 -15
- package/dist/app/data-client.d.ts +175 -252
- package/dist/app/ml-training-client.d.ts +5 -5
- package/dist/app/provisioning-client.d.ts +2 -4
- package/dist/app/viam-client.d.ts +1 -1
- package/dist/app/viam-transport.d.ts +1 -4
- package/dist/assert.d.ts +2 -3
- package/dist/components/arm/arm.d.ts +2 -2
- package/dist/components/arm/client.d.ts +1 -1
- package/dist/components/audio-out/audio-out.d.ts +6 -7
- package/dist/components/audioin.d.ts +1 -1
- package/dist/components/audioout.d.ts +1 -1
- package/dist/components/base/base.d.ts +10 -11
- package/dist/components/board/board.d.ts +8 -15
- package/dist/components/board/client.d.ts +1 -1
- package/dist/components/camera/camera.d.ts +2 -4
- package/dist/components/camera/client.d.ts +2 -2
- package/dist/components/encoder/encoder.d.ts +4 -5
- package/dist/components/encoder.d.ts +1 -1
- package/dist/components/gantry/gantry.d.ts +7 -10
- package/dist/components/generic/generic.d.ts +1 -4
- package/dist/components/gripper/gripper.d.ts +1 -2
- package/dist/components/input-controller/input-controller.d.ts +5 -15
- package/dist/components/inputcontroller.d.ts +1 -1
- package/dist/components/motor/motor.d.ts +17 -19
- package/dist/components/movement-sensor/movement-sensor.d.ts +14 -42
- package/dist/components/pose-tracker/pose-tracker.d.ts +1 -4
- package/dist/components/power-sensor/power-sensor.d.ts +6 -20
- package/dist/components/switch/switch.d.ts +2 -3
- package/dist/debug.d.ts +7 -15
- package/dist/events.d.ts +12 -10
- package/dist/extra/stream/client.d.ts +12 -11
- package/dist/extra/stream/stream.d.ts +1 -1
- package/dist/gen/app/agent/v1/agent_connect.d.ts +1 -1
- package/dist/gen/app/build/v1/build_connect.d.ts +1 -1
- package/dist/gen/app/cloudslam/v1/cloud_slam_connect.d.ts +1 -1
- package/dist/gen/app/data/v1/data_connect.d.ts +1 -1
- package/dist/gen/app/datapipelines/v1/data_pipelines_connect.d.ts +1 -1
- package/dist/gen/app/dataset/v1/dataset_connect.d.ts +1 -1
- package/dist/gen/app/datasync/v1/data_sync_connect.d.ts +1 -1
- package/dist/gen/app/mlinference/v1/ml_inference_connect.d.ts +1 -1
- package/dist/gen/app/mltraining/v1/ml_training_connect.d.ts +1 -1
- package/dist/gen/app/packages/v1/packages_connect.d.ts +1 -1
- package/dist/gen/app/v1/app_connect.d.ts +38 -2
- package/dist/gen/app/v1/app_pb.d.ts +278 -1
- package/dist/gen/app/v1/billing_connect.d.ts +1 -1
- package/dist/gen/app/v1/end_user_connect.d.ts +1 -1
- package/dist/gen/app/v1/robot_connect.d.ts +1 -1
- package/dist/gen/component/arm/v1/arm_connect.d.ts +1 -1
- package/dist/gen/component/audioin/v1/audioin_connect.d.ts +1 -1
- package/dist/gen/component/audioout/v1/audioout_connect.d.ts +1 -1
- package/dist/gen/component/base/v1/base_connect.d.ts +1 -1
- package/dist/gen/component/board/v1/board_connect.d.ts +1 -1
- package/dist/gen/component/button/v1/button_connect.d.ts +1 -1
- package/dist/gen/component/camera/v1/camera_connect.d.ts +1 -1
- package/dist/gen/component/encoder/v1/encoder_connect.d.ts +1 -1
- package/dist/gen/component/gantry/v1/gantry_connect.d.ts +1 -1
- package/dist/gen/component/generic/v1/generic_connect.d.ts +1 -1
- package/dist/gen/component/gripper/v1/gripper_connect.d.ts +1 -1
- package/dist/gen/component/inputcontroller/v1/input_controller_connect.d.ts +1 -1
- package/dist/gen/component/motor/v1/motor_connect.d.ts +1 -1
- package/dist/gen/component/movementsensor/v1/movementsensor_connect.d.ts +1 -1
- package/dist/gen/component/posetracker/v1/pose_tracker_connect.d.ts +1 -1
- package/dist/gen/component/powersensor/v1/powersensor_connect.d.ts +1 -1
- package/dist/gen/component/sensor/v1/sensor_connect.d.ts +1 -1
- package/dist/gen/component/servo/v1/servo_connect.d.ts +1 -1
- package/dist/gen/component/switch/v1/switch_connect.d.ts +1 -1
- package/dist/gen/component/testecho/v1/testecho_connect.d.ts +1 -1
- package/dist/gen/google/bytestream/bytestream_connect.d.ts +1 -1
- package/dist/gen/google/iam/v1/iam_policy_connect.d.ts +1 -1
- package/dist/gen/google/longrunning/operations_connect.d.ts +1 -1
- package/dist/gen/grpc/reflection/v1/reflection_connect.d.ts +1 -1
- package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_connect.d.ts +1 -1
- package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_connect.d.ts +1 -1
- package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts +1 -1
- package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_connect.d.ts +1 -1
- package/dist/gen/proto/rpc/examples/echo/v1/echo_connect.d.ts +1 -1
- package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_connect.d.ts +1 -1
- package/dist/gen/proto/rpc/v1/auth_connect.d.ts +1 -1
- package/dist/gen/proto/rpc/webrtc/v1/signaling_connect.d.ts +1 -1
- package/dist/gen/provisioning/v1/provisioning_connect.d.ts +1 -1
- package/dist/gen/robot/v1/robot_connect.d.ts +1 -1
- package/dist/gen/robot/v1/robot_pb.d.ts +115 -0
- package/dist/gen/service/datamanager/v1/data_manager_connect.d.ts +1 -1
- package/dist/gen/service/discovery/v1/discovery_connect.d.ts +1 -1
- package/dist/gen/service/generic/v1/generic_connect.d.ts +1 -1
- package/dist/gen/service/mlmodel/v1/mlmodel_connect.d.ts +1 -1
- package/dist/gen/service/motion/v1/motion_connect.d.ts +1 -1
- package/dist/gen/service/navigation/v1/navigation_connect.d.ts +1 -1
- package/dist/gen/service/sensors/v1/sensors_connect.d.ts +1 -1
- package/dist/gen/service/shell/v1/shell_connect.d.ts +1 -1
- package/dist/gen/service/slam/v1/slam_connect.d.ts +1 -1
- package/dist/gen/service/video/v1/video_connect.d.ts +1 -1
- package/dist/gen/service/vision/v1/vision_connect.d.ts +1 -1
- package/dist/gen/service/worldstatestore/v1/world_state_store_connect.d.ts +1 -1
- package/dist/gen/stream/v1/stream_connect.d.ts +1 -1
- package/dist/main.d.ts +11 -12
- package/dist/main.es.js +29098 -33211
- package/dist/main.umd.js +6 -7
- package/dist/robot/client.d.ts +59 -86
- package/dist/robot/dial.d.ts +7 -10
- package/dist/robot/robot.d.ts +29 -29
- package/dist/rpc/client-channel.d.ts +1 -1
- package/dist/rpc/client-stream.d.ts +4 -5
- package/dist/rpc/connection-closed-error.d.ts +1 -1
- package/dist/rpc/dial.d.ts +34 -41
- package/dist/rpc/signaling-exchange.d.ts +1 -1
- package/dist/rpc/stream-client-stream.d.ts +1 -1
- package/dist/rpc/unary-client-stream.d.ts +1 -1
- package/dist/services/data-manager/client.d.ts +5 -14
- package/dist/services/data-manager/data-manager.d.ts +1 -1
- package/dist/services/generic/client.d.ts +1 -1
- package/dist/services/generic/generic.d.ts +1 -2
- package/dist/services/motion/motion.d.ts +53 -78
- package/dist/services/navigation/client.d.ts +1 -1
- package/dist/services/navigation/navigation.d.ts +2 -4
- package/dist/services/slam/client.d.ts +1 -1
- package/dist/services/slam/slam.d.ts +4 -6
- package/dist/services/video/video.d.ts +2 -6
- package/dist/services/vision/vision.d.ts +13 -19
- package/dist/services/world-state-store/world-state-store.d.ts +6 -19
- package/dist/types.d.ts +5 -7
- package/dist/utils.d.ts +5 -5
- package/package.json +29 -29
|
@@ -1435,6 +1435,11 @@ export declare class GetMachineStatusResponse extends Message<GetMachineStatusRe
|
|
|
1435
1435
|
*/
|
|
1436
1436
|
jobStatuses: JobStatus[];
|
|
1437
1437
|
|
|
1438
|
+
/**
|
|
1439
|
+
* @generated from field: repeated viam.robot.v1.ModuleStatus modules = 5;
|
|
1440
|
+
*/
|
|
1441
|
+
modules: ModuleStatus[];
|
|
1442
|
+
|
|
1438
1443
|
constructor(data?: PartialMessage<GetMachineStatusResponse>);
|
|
1439
1444
|
|
|
1440
1445
|
static readonly runtime: typeof proto3;
|
|
@@ -1617,6 +1622,116 @@ export declare enum ResourceStatus_State {
|
|
|
1617
1622
|
UNHEALTHY = 5,
|
|
1618
1623
|
}
|
|
1619
1624
|
|
|
1625
|
+
/**
|
|
1626
|
+
* @generated from message viam.robot.v1.ModuleStatus
|
|
1627
|
+
*/
|
|
1628
|
+
export declare class ModuleStatus extends Message<ModuleStatus> {
|
|
1629
|
+
/**
|
|
1630
|
+
* @generated from field: string module_name = 1;
|
|
1631
|
+
*/
|
|
1632
|
+
moduleName: string;
|
|
1633
|
+
|
|
1634
|
+
/**
|
|
1635
|
+
* @generated from field: viam.robot.v1.ModuleStatus.State state = 2;
|
|
1636
|
+
*/
|
|
1637
|
+
state: ModuleStatus_State;
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* updated on every state transition
|
|
1641
|
+
*
|
|
1642
|
+
* @generated from field: google.protobuf.Timestamp last_updated = 3;
|
|
1643
|
+
*/
|
|
1644
|
+
lastUpdated?: Timestamp;
|
|
1645
|
+
|
|
1646
|
+
/**
|
|
1647
|
+
* when a module transitions to unhealthy, this field is populated with the error that caused the transition.
|
|
1648
|
+
* the error persists until the module reenters the Ready state, guaranteed to be nil in the Ready state
|
|
1649
|
+
*
|
|
1650
|
+
* @generated from field: string error = 4;
|
|
1651
|
+
*/
|
|
1652
|
+
error: string;
|
|
1653
|
+
|
|
1654
|
+
/**
|
|
1655
|
+
* number of times this module has entered the unhealthy state since the last time this module was in the ready state
|
|
1656
|
+
* this will increment if the module is in a restart loop (state transitioning between pending and starting repeatedly)
|
|
1657
|
+
* Resets to zero when the module enters the ready state or is reconfigured.
|
|
1658
|
+
* Useful for detecting modules stuck in a restart loop (like a python module with a syntax error)
|
|
1659
|
+
*
|
|
1660
|
+
* @generated from field: uint32 consecutive_failures = 5;
|
|
1661
|
+
*/
|
|
1662
|
+
consecutiveFailures: number;
|
|
1663
|
+
|
|
1664
|
+
constructor(data?: PartialMessage<ModuleStatus>);
|
|
1665
|
+
|
|
1666
|
+
static readonly runtime: typeof proto3;
|
|
1667
|
+
static readonly typeName = "viam.robot.v1.ModuleStatus";
|
|
1668
|
+
static readonly fields: FieldList;
|
|
1669
|
+
|
|
1670
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ModuleStatus;
|
|
1671
|
+
|
|
1672
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ModuleStatus;
|
|
1673
|
+
|
|
1674
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ModuleStatus;
|
|
1675
|
+
|
|
1676
|
+
static equals(a: ModuleStatus | PlainMessage<ModuleStatus> | undefined, b: ModuleStatus | PlainMessage<ModuleStatus> | undefined): boolean;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
/**
|
|
1680
|
+
* @generated from enum viam.robot.v1.ModuleStatus.State
|
|
1681
|
+
*/
|
|
1682
|
+
export declare enum ModuleStatus_State {
|
|
1683
|
+
/**
|
|
1684
|
+
* state is unknown or has not been set yet
|
|
1685
|
+
*
|
|
1686
|
+
* @generated from enum value: STATE_UNSPECIFIED = 0;
|
|
1687
|
+
*/
|
|
1688
|
+
UNSPECIFIED = 0,
|
|
1689
|
+
|
|
1690
|
+
/**
|
|
1691
|
+
* module is configured but viam-server has not yet attempted to start it
|
|
1692
|
+
* (because e.g. a required package is still downloading)
|
|
1693
|
+
* transitions -> state_starting after pre-setup completes
|
|
1694
|
+
*
|
|
1695
|
+
* @generated from enum value: STATE_PENDING = 1;
|
|
1696
|
+
*/
|
|
1697
|
+
PENDING = 1,
|
|
1698
|
+
|
|
1699
|
+
/**
|
|
1700
|
+
* module process has been spawned and viam-server is waiting for it
|
|
1701
|
+
* to send a Ready response and register its models
|
|
1702
|
+
* transitions -> state_ready on success
|
|
1703
|
+
*
|
|
1704
|
+
* @generated from enum value: STATE_STARTING = 2;
|
|
1705
|
+
*/
|
|
1706
|
+
STARTING = 2,
|
|
1707
|
+
|
|
1708
|
+
/**
|
|
1709
|
+
* module has sent a Ready response, registered its models, and is running
|
|
1710
|
+
* transitions -> state_unhealthy on bad exit
|
|
1711
|
+
*
|
|
1712
|
+
* @generated from enum value: STATE_READY = 3;
|
|
1713
|
+
*/
|
|
1714
|
+
READY = 3,
|
|
1715
|
+
|
|
1716
|
+
/**
|
|
1717
|
+
* module failed to start, exited unexpectedly,
|
|
1718
|
+
* or is being restarted after a crash. any failure in any other state goes to this state
|
|
1719
|
+
*
|
|
1720
|
+
* @generated from enum value: STATE_UNHEALTHY = 4;
|
|
1721
|
+
*/
|
|
1722
|
+
UNHEALTHY = 4,
|
|
1723
|
+
|
|
1724
|
+
/**
|
|
1725
|
+
* module process is shutting down, either because the module is being
|
|
1726
|
+
* removed from the machine or because it is restarting during a reconfigure.
|
|
1727
|
+
* on removal the module's status stops being tracked once shutdown completes;
|
|
1728
|
+
* on restart it transitions -> state_starting
|
|
1729
|
+
*
|
|
1730
|
+
* @generated from enum value: STATE_CLOSING = 5;
|
|
1731
|
+
*/
|
|
1732
|
+
CLOSING = 5,
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1620
1735
|
/**
|
|
1621
1736
|
* @generated from message viam.robot.v1.ConfigStatus
|
|
1622
1737
|
*/
|
package/dist/main.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const version: string;
|
|
2
|
-
export { RobotClient as Client, createRobotClient, RobotClient, type CloudMetadata, type DialConf, type DialDirectConf, type DialWebRTCConf, type Robot, } from './robot';
|
|
2
|
+
export { RobotClient as Client, createRobotClient, RobotClient, type CloudMetadata, type DialConf, type DialDirectConf, type DialWebRTCConf, type ModuleStatus, type ModuleStatusState, type Robot, } from './robot';
|
|
3
3
|
/**
|
|
4
4
|
* Raw Protobuf interfaces for a Robot component.
|
|
5
5
|
*
|
|
@@ -9,7 +9,7 @@ export { RobotClient as Client, createRobotClient, RobotClient, type CloudMetada
|
|
|
9
9
|
* @group Raw Protobufs
|
|
10
10
|
*/
|
|
11
11
|
export * as robotApi from './gen/robot/v1/robot_pb';
|
|
12
|
-
export { createViamClient, type ViamClient, type ViamClientOptions
|
|
12
|
+
export { createViamClient, type ViamClient, type ViamClientOptions } from './app/viam-client';
|
|
13
13
|
export { type AccessToken, type Credential, type Credentials, type CredentialType, } from './app/viam-transport';
|
|
14
14
|
export { type BinaryDataCaptureUploadOptions, type BinaryID, type DataClient, DatasetType, type FilterOptions, type GetSequenceDatasetExportResponse, type IndexableCollection, type Sequence, SequenceDatasetExportStatus, type SequenceResourceFilter, } from './app/data-client';
|
|
15
15
|
/**
|
|
@@ -32,7 +32,7 @@ export { type AppClient } from './app/app-client';
|
|
|
32
32
|
*/
|
|
33
33
|
export * as appApi from './gen/app/v1/app_pb';
|
|
34
34
|
export * as appRobotApi from './gen/app/v1/robot_pb';
|
|
35
|
-
export { ModelType, TrainingStatus, type MlTrainingClient
|
|
35
|
+
export { ModelType, TrainingStatus, type MlTrainingClient } from './app/ml-training-client';
|
|
36
36
|
/**
|
|
37
37
|
* Raw Protobuf interfaces for ML Training.
|
|
38
38
|
*
|
|
@@ -42,7 +42,7 @@ export { ModelType, TrainingStatus, type MlTrainingClient, } from './app/ml-trai
|
|
|
42
42
|
* @group Raw Protobufs
|
|
43
43
|
*/
|
|
44
44
|
export * as mlTrainingApi from './gen/app/mltraining/v1/ml_training_pb';
|
|
45
|
-
export { CloudConfig, type ProvisioningClient
|
|
45
|
+
export { CloudConfig, type ProvisioningClient } from './app/provisioning-client';
|
|
46
46
|
/**
|
|
47
47
|
* Raw Protobuf interfaces for Provisioning.
|
|
48
48
|
*
|
|
@@ -63,9 +63,9 @@ export { type BillingClient } from './app/billing-client';
|
|
|
63
63
|
*/
|
|
64
64
|
export * as billingApi from './gen/app/v1/billing_pb';
|
|
65
65
|
export { ArmClient, ArmJointPositions, type Arm } from './components/arm';
|
|
66
|
-
export { AudioInClient, type AudioIn, type AudioChunk
|
|
66
|
+
export { AudioInClient, type AudioIn, type AudioChunk } from './components/audioin';
|
|
67
67
|
export { AudioOutClient, type AudioOut } from './components/audioout';
|
|
68
|
-
export { AudioCodec, type AudioCodecType, type AudioProperties
|
|
68
|
+
export { AudioCodec, type AudioCodecType, type AudioProperties } from './audio-common';
|
|
69
69
|
/**
|
|
70
70
|
* Raw Protobuf interfaces for an Arm component.
|
|
71
71
|
*
|
|
@@ -85,7 +85,7 @@ export { BaseClient, BaseProperties, type Base } from './components/base';
|
|
|
85
85
|
* @group Raw Protobufs
|
|
86
86
|
*/
|
|
87
87
|
export * as baseApi from './gen/component/base/v1/base_pb';
|
|
88
|
-
export { AnalogValue, BoardClient, PowerMode, type Board, type Tick
|
|
88
|
+
export { AnalogValue, BoardClient, PowerMode, type Board, type Tick } from './components/board';
|
|
89
89
|
/**
|
|
90
90
|
* Raw Protobuf interfaces for a Board component.
|
|
91
91
|
*
|
|
@@ -178,8 +178,8 @@ export { PowerSensorClient, type PowerSensor } from './components/powersensor';
|
|
|
178
178
|
export * as powerSensorApi from './gen/component/powersensor/v1/powersensor_pb';
|
|
179
179
|
export { SensorClient, type Sensor } from './components/sensor';
|
|
180
180
|
/**
|
|
181
|
-
* Raw Protobuf interfaces generated with
|
|
182
|
-
*
|
|
181
|
+
* Raw Protobuf interfaces generated with https://github.com/connectrpc/connect-es for a Sensor
|
|
182
|
+
* component.
|
|
183
183
|
*
|
|
184
184
|
* @deprecated Use {@link SensorClient} instead.
|
|
185
185
|
* @group Raw Protobufs
|
|
@@ -286,7 +286,7 @@ export { SlamClient, SlamPosition, SlamProperties } from './services/slam';
|
|
|
286
286
|
* @group Raw Protobufs
|
|
287
287
|
*/
|
|
288
288
|
export * as slamApi from './gen/service/slam/v1/slam_pb';
|
|
289
|
-
export { Classification, Detection, PointCloudObject, VisionClient
|
|
289
|
+
export { Classification, Detection, PointCloudObject, VisionClient } from './services/vision';
|
|
290
290
|
/**
|
|
291
291
|
* Raw Protobuf interfaces for a Vision service.
|
|
292
292
|
*
|
|
@@ -309,8 +309,7 @@ export { GenericClient as GenericServiceClient, type Generic as GenericService,
|
|
|
309
309
|
*/
|
|
310
310
|
export * as genericServiceApi from './gen/service/generic/v1/generic_connect';
|
|
311
311
|
/**
|
|
312
|
-
* Raw Protobuf interfaces that are shared across multiple components and
|
|
313
|
-
* services.
|
|
312
|
+
* Raw Protobuf interfaces that are shared across multiple components and services.
|
|
314
313
|
*
|
|
315
314
|
* Generated with https://github.com/connectrpc/connect-es
|
|
316
315
|
*
|