@viamrobotics/sdk 0.74.0 → 0.74.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.
@@ -6,7 +6,9 @@
6
6
  import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct, Timestamp } from "@bufbuild/protobuf";
7
7
  import { Message, proto3 } from "@bufbuild/protobuf";
8
8
  import type { ResourceSpans } from "../../opentelemetry/proto/trace/v1/trace_pb.js";
9
+ import type { UploadMetadata } from "../../app/datasync/v1/data_sync_pb.js";
9
10
  import type { LogEntry, PoseInFrame, ResourceName, Transform } from "../../common/v1/common_pb.js";
11
+ import type { PackageType } from "../../app/packages/v1/packages_pb.js";
10
12
 
11
13
  /**
12
14
  * @generated from enum viam.robot.v1.PeerConnectionType
@@ -71,6 +73,100 @@ export declare class SendTracesResponse extends Message<SendTracesResponse> {
71
73
  static equals(a: SendTracesResponse | PlainMessage<SendTracesResponse> | undefined, b: SendTracesResponse | PlainMessage<SendTracesResponse> | undefined): boolean;
72
74
  }
73
75
 
76
+ /**
77
+ * @generated from message viam.robot.v1.UploadDataFromPathRequest
78
+ */
79
+ export declare class UploadDataFromPathRequest extends Message<UploadDataFromPathRequest> {
80
+ /**
81
+ * File or folder path on the robot to upload.
82
+ *
83
+ * @generated from field: string path = 1;
84
+ */
85
+ path: string;
86
+
87
+ /**
88
+ * Optional metadata to apply to uploaded files.
89
+ *
90
+ * @generated from field: optional viam.app.datasync.v1.UploadMetadata upload_metadata = 2;
91
+ */
92
+ uploadMetadata?: UploadMetadata;
93
+
94
+ /**
95
+ * Additional arguments to the method.
96
+ *
97
+ * @generated from field: google.protobuf.Struct extra = 99;
98
+ */
99
+ extra?: Struct;
100
+
101
+ constructor(data?: PartialMessage<UploadDataFromPathRequest>);
102
+
103
+ static readonly runtime: typeof proto3;
104
+ static readonly typeName = "viam.robot.v1.UploadDataFromPathRequest";
105
+ static readonly fields: FieldList;
106
+
107
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UploadDataFromPathRequest;
108
+
109
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UploadDataFromPathRequest;
110
+
111
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UploadDataFromPathRequest;
112
+
113
+ static equals(a: UploadDataFromPathRequest | PlainMessage<UploadDataFromPathRequest> | undefined, b: UploadDataFromPathRequest | PlainMessage<UploadDataFromPathRequest> | undefined): boolean;
114
+ }
115
+
116
+ /**
117
+ * @generated from message viam.robot.v1.UploadDataFromPathResponse
118
+ */
119
+ export declare class UploadDataFromPathResponse extends Message<UploadDataFromPathResponse> {
120
+ /**
121
+ * Total number of files successfully uploaded.
122
+ *
123
+ * @generated from field: uint64 files_uploaded = 1;
124
+ */
125
+ filesUploaded: bigint;
126
+
127
+ /**
128
+ * Total number of files that failed to upload.
129
+ *
130
+ * @generated from field: uint64 files_failed = 2;
131
+ */
132
+ filesFailed: bigint;
133
+
134
+ /**
135
+ * Total bytes successfully uploaded.
136
+ *
137
+ * @generated from field: uint64 bytes_uploaded = 3;
138
+ */
139
+ bytesUploaded: bigint;
140
+
141
+ /**
142
+ * Total bytes discovered in the directory.
143
+ *
144
+ * @generated from field: uint64 bytes_total = 4;
145
+ */
146
+ bytesTotal: bigint;
147
+
148
+ /**
149
+ * Successfully uploaded binary data ids.
150
+ *
151
+ * @generated from field: repeated string ids = 5;
152
+ */
153
+ ids: string[];
154
+
155
+ constructor(data?: PartialMessage<UploadDataFromPathResponse>);
156
+
157
+ static readonly runtime: typeof proto3;
158
+ static readonly typeName = "viam.robot.v1.UploadDataFromPathResponse";
159
+ static readonly fields: FieldList;
160
+
161
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UploadDataFromPathResponse;
162
+
163
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UploadDataFromPathResponse;
164
+
165
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UploadDataFromPathResponse;
166
+
167
+ static equals(a: UploadDataFromPathResponse | PlainMessage<UploadDataFromPathResponse> | undefined, b: UploadDataFromPathResponse | PlainMessage<UploadDataFromPathResponse> | undefined): boolean;
168
+ }
169
+
74
170
  /**
75
171
  * @generated from message viam.robot.v1.TunnelRequest
76
172
  */
@@ -1440,6 +1536,11 @@ export declare class GetMachineStatusResponse extends Message<GetMachineStatusRe
1440
1536
  */
1441
1537
  modules: ModuleStatus[];
1442
1538
 
1539
+ /**
1540
+ * @generated from field: repeated viam.robot.v1.PackageStatus packages = 6;
1541
+ */
1542
+ packages: PackageStatus[];
1543
+
1443
1544
  constructor(data?: PartialMessage<GetMachineStatusResponse>);
1444
1545
 
1445
1546
  static readonly runtime: typeof proto3;
@@ -1732,6 +1833,129 @@ export declare enum ModuleStatus_State {
1732
1833
  CLOSING = 5,
1733
1834
  }
1734
1835
 
1836
+ /**
1837
+ * @generated from message viam.robot.v1.PackageStatus
1838
+ */
1839
+ export declare class PackageStatus extends Message<PackageStatus> {
1840
+ /**
1841
+ * the package name as declared in the robot config (PackageConfig.Name)
1842
+ *
1843
+ * @generated from field: string name = 1;
1844
+ */
1845
+ name: string;
1846
+
1847
+ /**
1848
+ * the package type (module, ml_model, slam_map, etc.)
1849
+ *
1850
+ * @generated from field: viam.app.packages.v1.PackageType type = 2;
1851
+ */
1852
+ type: PackageType;
1853
+
1854
+ /**
1855
+ * current lifecycle state
1856
+ *
1857
+ * @generated from field: viam.robot.v1.PackageStatus.State state = 3;
1858
+ */
1859
+ state: PackageStatus_State;
1860
+
1861
+ /**
1862
+ * human-readable error detail when state == STATE_FAILED
1863
+ *
1864
+ * @generated from field: string error = 4;
1865
+ */
1866
+ error: string;
1867
+
1868
+ /**
1869
+ * when this status was last updated
1870
+ *
1871
+ * @generated from field: google.protobuf.Timestamp last_updated = 5;
1872
+ */
1873
+ lastUpdated?: Timestamp;
1874
+
1875
+ /**
1876
+ * the version string from PackageConfig
1877
+ *
1878
+ * @generated from field: string version = 6;
1879
+ */
1880
+ version: string;
1881
+
1882
+ /**
1883
+ * number of bytes of the package tarball downloaded so far. Only populated
1884
+ * while state == STATE_DOWNLOADING; equals total_bytes once the download completes.
1885
+ *
1886
+ * @generated from field: uint64 bytes_downloaded = 7;
1887
+ */
1888
+ bytesDownloaded: bigint;
1889
+
1890
+ /**
1891
+ * total size of the package tarball in bytes. Zero if the size is unknown.
1892
+ *
1893
+ * @generated from field: uint64 total_bytes = 8;
1894
+ */
1895
+ totalBytes: bigint;
1896
+
1897
+ constructor(data?: PartialMessage<PackageStatus>);
1898
+
1899
+ static readonly runtime: typeof proto3;
1900
+ static readonly typeName = "viam.robot.v1.PackageStatus";
1901
+ static readonly fields: FieldList;
1902
+
1903
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PackageStatus;
1904
+
1905
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PackageStatus;
1906
+
1907
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PackageStatus;
1908
+
1909
+ static equals(a: PackageStatus | PlainMessage<PackageStatus> | undefined, b: PackageStatus | PlainMessage<PackageStatus> | undefined): boolean;
1910
+ }
1911
+
1912
+ /**
1913
+ * @generated from enum viam.robot.v1.PackageStatus.State
1914
+ */
1915
+ export declare enum PackageStatus_State {
1916
+ /**
1917
+ * state is unknown or has not been set yet
1918
+ *
1919
+ * @generated from enum value: STATE_UNSPECIFIED = 0;
1920
+ */
1921
+ UNSPECIFIED = 0,
1922
+
1923
+ /**
1924
+ * package tarball is actively being fetched from the cloud
1925
+ *
1926
+ * @generated from enum value: STATE_DOWNLOADING = 1;
1927
+ */
1928
+ DOWNLOADING = 1,
1929
+
1930
+ /**
1931
+ * tarball has been downloaded and is being extracted/verified
1932
+ *
1933
+ * @generated from enum value: STATE_LOADING = 2;
1934
+ */
1935
+ LOADING = 2,
1936
+
1937
+ /**
1938
+ * first_run.sh script is executing (module packages only)
1939
+ *
1940
+ * @generated from enum value: STATE_FIRST_RUN = 3;
1941
+ */
1942
+ FIRST_RUN = 3,
1943
+
1944
+ /**
1945
+ * package is fully installed and available for use
1946
+ *
1947
+ * @generated from enum value: STATE_READY = 4;
1948
+ */
1949
+ READY = 4,
1950
+
1951
+ /**
1952
+ * package failed to download, extract, or complete first run
1953
+ *
1954
+ * @generated from enum value: STATE_FAILED = 5;
1955
+ */
1956
+ FAILED = 5,
1957
+ }
1958
+
1735
1959
  /**
1736
1960
  * @generated from message viam.robot.v1.ConfigStatus
1737
1961
  */
@@ -16,7 +16,8 @@ export declare const VisionService: {
16
16
  readonly typeName: "viam.service.vision.v1.VisionService",
17
17
  readonly methods: {
18
18
  /**
19
- * GetDetectionsFromCamera will return a list of detections in the next image given a camera and a detector
19
+ * GetDetectionsFromCamera will return a list of detections in the next image
20
+ * given a camera and a detector
20
21
  *
21
22
  * @generated from rpc viam.service.vision.v1.VisionService.GetDetectionsFromCamera
22
23
  */
@@ -27,7 +28,8 @@ export declare const VisionService: {
27
28
  readonly kind: MethodKind.Unary,
28
29
  },
29
30
  /**
30
- * GetDetections will return a list of detections in the next image given the image bytes and a detector
31
+ * GetDetections will return a list of detections in the next image given the
32
+ * image bytes and a detector
31
33
  *
32
34
  * @generated from rpc viam.service.vision.v1.VisionService.GetDetections
33
35
  */
@@ -38,7 +40,8 @@ export declare const VisionService: {
38
40
  readonly kind: MethodKind.Unary,
39
41
  },
40
42
  /**
41
- * GetClassificationsFromCamera will return a list of classifications in the next image given a camera and a classifier
43
+ * GetClassificationsFromCamera will return a list of classifications in the
44
+ * next image given a camera and a classifier
42
45
  *
43
46
  * @generated from rpc viam.service.vision.v1.VisionService.GetClassificationsFromCamera
44
47
  */
@@ -49,7 +52,8 @@ export declare const VisionService: {
49
52
  readonly kind: MethodKind.Unary,
50
53
  },
51
54
  /**
52
- * GetClassifications will return a list of classifications in the next image given the image bytes and a classifier
55
+ * GetClassifications will return a list of classifications in the next image
56
+ * given the image bytes and a classifier
53
57
  *
54
58
  * @generated from rpc viam.service.vision.v1.VisionService.GetClassifications
55
59
  */
@@ -60,9 +64,10 @@ export declare const VisionService: {
60
64
  readonly kind: MethodKind.Unary,
61
65
  },
62
66
  /**
63
- * GetObjectPointClouds returns all the found objects in a pointcloud from a camera of the underlying robot,
64
- * as well as the 3-vector center of each of the found objects.
65
- * A specific MIME type can be requested but may not necessarily be the same one returned.
67
+ * GetObjectPointClouds returns all the found objects in a pointcloud from a
68
+ * camera of the underlying robot, as well as the 3-vector center of each of
69
+ * the found objects. A specific MIME type can be requested but may not
70
+ * necessarily be the same one returned.
66
71
  *
67
72
  * @generated from rpc viam.service.vision.v1.VisionService.GetObjectPointClouds
68
73
  */
@@ -73,7 +78,8 @@ export declare const VisionService: {
73
78
  readonly kind: MethodKind.Unary,
74
79
  },
75
80
  /**
76
- * GetProperties will return the properties as booleans given the name of the vision service
81
+ * GetProperties will return the properties as booleans given the name of the
82
+ * vision service
77
83
  *
78
84
  * @generated from rpc viam.service.vision.v1.VisionService.GetProperties
79
85
  */
@@ -200,7 +200,8 @@ export declare class Detection extends Message<Detection> {
200
200
  className: string;
201
201
 
202
202
  /**
203
- * the four corners of the box, in proportion to the respective image dimension
203
+ * the four corners of the box, in proportion to the respective image
204
+ * dimension
204
205
  *
205
206
  * @generated from field: optional double x_min_normalized = 7;
206
207
  */
@@ -680,6 +681,13 @@ export declare class GetPropertiesResponse extends Message<GetPropertiesResponse
680
681
  */
681
682
  objectPointCloudsSupported: boolean;
682
683
 
684
+ /**
685
+ * the default camera used for *FromCamera and GetObjectPointClouds calls
686
+ *
687
+ * @generated from field: optional string default_camera = 4;
688
+ */
689
+ defaultCamera?: string;
690
+
683
691
  constructor(data?: PartialMessage<GetPropertiesResponse>);
684
692
 
685
693
  static readonly runtime: typeof proto3;
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 ModuleStatus, type ModuleStatusState, type Robot, } from './robot';
2
+ export { RobotClient as Client, createRobotClient, RobotClient, type CloudMetadata, type DialConf, type DialDirectConf, type DialWebRTCConf, type ModuleStatus, type ModuleStatusState, type PackageStatus, type PackageStatusState, type Robot, type UploadDataFromPathResponse, } from './robot';
3
3
  /**
4
4
  * Raw Protobuf interfaces for a Robot component.
5
5
  *
@@ -317,6 +317,6 @@ export * as genericServiceApi from './gen/service/generic/v1/generic_connect';
317
317
  */
318
318
  export * as commonApi from './gen/common/v1/common_pb';
319
319
  export * from './types';
320
- export { addMetadata, deleteMetadata, disableDebugLogging, doCommandFromClient, enableDebugLogging, getStatusFromClient, } from './utils';
320
+ export { addMetadata, deleteMetadata, disableDebugLogging, doCommandFromClient, enableDebugLogging, getStatusFromClient, type GetKinematicsResult, type GetKinematicsResultWithMeshes, type KinematicsData, } from './utils';
321
321
  export { createConsoleLogWriter, setDebugLogWriter, type DebugLogEntry, type DebugLogWriter, } from './debug';
322
322
  export { MachineConnectionEvent } from './events';