@viamrobotics/sdk 0.74.1 → 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.
@@ -1 +1 @@
1
- export declare const apiVersion = "v0.1.569";
1
+ export declare const apiVersion = "v0.1.573";
@@ -6192,6 +6192,13 @@ export declare class ModuleVersion extends Message<ModuleVersion> {
6192
6192
  */
6193
6193
  deprecatedStatus?: DeprecatedStatus;
6194
6194
 
6195
+ /**
6196
+ * The minimum version of viam-server required to run this version of the module.
6197
+ *
6198
+ * @generated from field: optional string min_viam_server_version = 9;
6199
+ */
6200
+ minViamServerVersion?: string;
6201
+
6195
6202
  constructor(data?: PartialMessage<ModuleVersion>);
6196
6203
 
6197
6204
  static readonly runtime: typeof proto3;
@@ -6268,6 +6275,13 @@ export declare class ModuleMetadata extends Message<ModuleMetadata> {
6268
6275
  */
6269
6276
  language?: ModuleLanguage;
6270
6277
 
6278
+ /**
6279
+ * The minimum version of viam-server required to run the module.
6280
+ *
6281
+ * @generated from field: optional string min_viam_server_version = 9;
6282
+ */
6283
+ minViamServerVersion?: string;
6284
+
6271
6285
  constructor(data?: PartialMessage<ModuleMetadata>);
6272
6286
 
6273
6287
  static readonly runtime: typeof proto3;
@@ -7556,6 +7570,13 @@ export declare class UpdateModuleMetadata extends Message<UpdateModuleMetadata>
7556
7570
  */
7557
7571
  language?: ModuleLanguage;
7558
7572
 
7573
+ /**
7574
+ * The minimum version of viam-server required to run the module.
7575
+ *
7576
+ * @generated from field: optional string min_viam_server_version = 6;
7577
+ */
7578
+ minViamServerVersion?: string;
7579
+
7559
7580
  constructor(data?: PartialMessage<UpdateModuleMetadata>);
7560
7581
 
7561
7582
  static readonly runtime: typeof proto3;
@@ -8,6 +8,7 @@ import { Message, proto3 } from "@bufbuild/protobuf";
8
8
  import type { ResourceSpans } from "../../opentelemetry/proto/trace/v1/trace_pb.js";
9
9
  import type { UploadMetadata } from "../../app/datasync/v1/data_sync_pb.js";
10
10
  import type { LogEntry, PoseInFrame, ResourceName, Transform } from "../../common/v1/common_pb.js";
11
+ import type { PackageType } from "../../app/packages/v1/packages_pb.js";
11
12
 
12
13
  /**
13
14
  * @generated from enum viam.robot.v1.PeerConnectionType
@@ -1535,6 +1536,11 @@ export declare class GetMachineStatusResponse extends Message<GetMachineStatusRe
1535
1536
  */
1536
1537
  modules: ModuleStatus[];
1537
1538
 
1539
+ /**
1540
+ * @generated from field: repeated viam.robot.v1.PackageStatus packages = 6;
1541
+ */
1542
+ packages: PackageStatus[];
1543
+
1538
1544
  constructor(data?: PartialMessage<GetMachineStatusResponse>);
1539
1545
 
1540
1546
  static readonly runtime: typeof proto3;
@@ -1827,6 +1833,129 @@ export declare enum ModuleStatus_State {
1827
1833
  CLOSING = 5,
1828
1834
  }
1829
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
+
1830
1959
  /**
1831
1960
  * @generated from message viam.robot.v1.ConfigStatus
1832
1961
  */
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, type UploadDataFromPathResponse, } 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';