@viamrobotics/sdk 0.74.1 → 0.75.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.
Files changed (33) hide show
  1. package/dist/api-version.d.ts +1 -1
  2. package/dist/components/audio-in/audio-in.d.ts +12 -1
  3. package/dist/components/audio-in/client.d.ts +1 -0
  4. package/dist/components/audio-out/audio-out.d.ts +12 -1
  5. package/dist/components/audio-out/client.d.ts +1 -0
  6. package/dist/components/board/board.d.ts +15 -0
  7. package/dist/components/board/client.d.ts +1 -0
  8. package/dist/components/encoder/client.d.ts +1 -0
  9. package/dist/components/encoder/encoder.d.ts +15 -0
  10. package/dist/components/input-controller/client.d.ts +1 -0
  11. package/dist/components/input-controller/input-controller.d.ts +15 -0
  12. package/dist/components/motor/client.d.ts +1 -0
  13. package/dist/components/motor/motor.d.ts +15 -0
  14. package/dist/components/movement-sensor/client.d.ts +1 -0
  15. package/dist/components/movement-sensor/movement-sensor.d.ts +15 -0
  16. package/dist/components/sensor/client.d.ts +1 -0
  17. package/dist/components/servo/client.d.ts +1 -0
  18. package/dist/components/servo/servo.d.ts +15 -0
  19. package/dist/gen/app/v1/app_pb.d.ts +21 -0
  20. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts +6 -0
  21. package/dist/gen/opentelemetry/proto/common/v1/common_pb.d.ts +3 -3
  22. package/dist/gen/opentelemetry/proto/metrics/v1/metrics_pb.d.ts +1 -1
  23. package/dist/gen/opentelemetry/proto/processcontext/v1development/process_context_pb.d.ts +79 -0
  24. package/dist/gen/opentelemetry/proto/profiles/v1development/profiles_pb.d.ts +125 -87
  25. package/dist/gen/proto/rpc/webrtc/v1/signaling_connect.d.ts +13 -1
  26. package/dist/gen/proto/rpc/webrtc/v1/signaling_pb.d.ts +248 -0
  27. package/dist/gen/robot/v1/robot_pb.d.ts +129 -0
  28. package/dist/main.d.ts +2 -2
  29. package/dist/main.es.js +12280 -9540
  30. package/dist/main.umd.js +9 -6
  31. package/dist/robot/robot.d.ts +2 -0
  32. package/dist/urdf.d.ts +7 -0
  33. package/package.json +3 -2
@@ -7,6 +7,137 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM
7
7
  import { Message, proto3 } from "@bufbuild/protobuf";
8
8
  import type { Status } from "../../../../google/rpc/status_pb.js";
9
9
 
10
+ /**
11
+ * ICECandidateType represents the type of ICE candidate selected for a WebRTC connection.
12
+ * The signaling server further classifies RELAY by relay server specific provider from the address.
13
+ *
14
+ * @generated from enum proto.rpc.webrtc.v1.ICECandidateType
15
+ */
16
+ export declare enum ICECandidateType {
17
+ /**
18
+ * @generated from enum value: ICE_CANDIDATE_TYPE_UNSPECIFIED = 0;
19
+ */
20
+ ICE_CANDIDATE_TYPE_UNSPECIFIED = 0,
21
+
22
+ /**
23
+ * ICE_CANDIDATE_TYPE_HOST indicates a direct connection was established.
24
+ *
25
+ * @generated from enum value: ICE_CANDIDATE_TYPE_HOST = 1;
26
+ */
27
+ ICE_CANDIDATE_TYPE_HOST = 1,
28
+
29
+ /**
30
+ * ICE_CANDIDATE_TYPE_STUN indicates a STUN-assisted connection was established.
31
+ *
32
+ * @generated from enum value: ICE_CANDIDATE_TYPE_STUN = 2;
33
+ */
34
+ ICE_CANDIDATE_TYPE_STUN = 2,
35
+
36
+ /**
37
+ * ICE_CANDIDATE_TYPE_RELAY indicates a TURN relay candidate was selected.
38
+ *
39
+ * @generated from enum value: ICE_CANDIDATE_TYPE_RELAY = 3;
40
+ */
41
+ ICE_CANDIDATE_TYPE_RELAY = 3,
42
+ }
43
+
44
+ /**
45
+ * DialStage is the furthest checkpoint a WebRTC dial reached. READY means the dial succeeded; any
46
+ * earlier value is the stage at which a failed dial stopped.
47
+ *
48
+ * @generated from enum proto.rpc.webrtc.v1.DialStage
49
+ */
50
+ export declare enum DialStage {
51
+ /**
52
+ * @generated from enum value: DIAL_STAGE_UNSPECIFIED = 0;
53
+ */
54
+ UNSPECIFIED = 0,
55
+
56
+ /**
57
+ * DIAL_STAGE_SIGNALING_CONNECTED: the signaling channel was established.
58
+ *
59
+ * @generated from enum value: DIAL_STAGE_SIGNALING_CONNECTED = 1;
60
+ */
61
+ SIGNALING_CONNECTED = 1,
62
+
63
+ /**
64
+ * DIAL_STAGE_CONFIG_FETCHED: ICE/TURN configuration was fetched from the signaling server.
65
+ *
66
+ * @generated from enum value: DIAL_STAGE_CONFIG_FETCHED = 2;
67
+ */
68
+ CONFIG_FETCHED = 2,
69
+
70
+ /**
71
+ * DIAL_STAGE_OFFER_SENT: the SDP offer was sent to the signaling server (the Call was accepted).
72
+ *
73
+ * @generated from enum value: DIAL_STAGE_OFFER_SENT = 3;
74
+ */
75
+ OFFER_SENT = 3,
76
+
77
+ /**
78
+ * DIAL_STAGE_ANSWER_RECEIVED: the answerer's SDP answer was received and applied.
79
+ *
80
+ * @generated from enum value: DIAL_STAGE_ANSWER_RECEIVED = 4;
81
+ */
82
+ ANSWER_RECEIVED = 4,
83
+
84
+ /**
85
+ * DIAL_STAGE_ICE_CONNECTED: ICE connectivity was established (a candidate pair connected).
86
+ *
87
+ * @generated from enum value: DIAL_STAGE_ICE_CONNECTED = 5;
88
+ */
89
+ ICE_CONNECTED = 5,
90
+
91
+ /**
92
+ * DIAL_STAGE_DTLS_CONNECTED: the DTLS handshake completed (peer connection connected) but the
93
+ * data channel is not yet open.
94
+ *
95
+ * @generated from enum value: DIAL_STAGE_DTLS_CONNECTED = 6;
96
+ */
97
+ DTLS_CONNECTED = 6,
98
+
99
+ /**
100
+ * DIAL_STAGE_READY: the connection is fully ready (data channel open). This is success.
101
+ *
102
+ * @generated from enum value: DIAL_STAGE_READY = 7;
103
+ */
104
+ READY = 7,
105
+ }
106
+
107
+ /**
108
+ * ConnectionSignalingPath is how a WebRTC dial was signaled, derived from the signaling address.
109
+ *
110
+ * @generated from enum proto.rpc.webrtc.v1.ConnectionSignalingPath
111
+ */
112
+ export declare enum ConnectionSignalingPath {
113
+ /**
114
+ * @generated from enum value: CONNECTION_SIGNALING_PATH_UNSPECIFIED = 0;
115
+ */
116
+ UNSPECIFIED = 0,
117
+
118
+ /**
119
+ * CONNECTION_SIGNALING_PATH_CLOUD_SIGNALED: signaled through app's signaling server.
120
+ *
121
+ * @generated from enum value: CONNECTION_SIGNALING_PATH_CLOUD_SIGNALED = 1;
122
+ */
123
+ CLOUD_SIGNALED = 1,
124
+
125
+ /**
126
+ * CONNECTION_SIGNALING_PATH_MDNS_LOCAL: signaled over an mDNS-discovered local-network path.
127
+ *
128
+ * @generated from enum value: CONNECTION_SIGNALING_PATH_MDNS_LOCAL = 2;
129
+ */
130
+ MDNS_LOCAL = 2,
131
+
132
+ /**
133
+ * CONNECTION_SIGNALING_PATH_LOCAL: signaled through a loopback/private-address signaling server
134
+ * (e.g. a machine's own signaling server) without mDNS discovery.
135
+ *
136
+ * @generated from enum value: CONNECTION_SIGNALING_PATH_LOCAL = 3;
137
+ */
138
+ LOCAL = 3,
139
+ }
140
+
10
141
  /**
11
142
  * ICECandidate represents an ICE candidate.
12
143
  * From https://github.com/pion/webrtc/blob/5f6baf73255598a7b4a7c9400bb0381acc9aa3dc/icecandidateinit.go
@@ -730,3 +861,120 @@ export declare class OptionalWebRTCConfigResponse extends Message<OptionalWebRTC
730
861
  static equals(a: OptionalWebRTCConfigResponse | PlainMessage<OptionalWebRTCConfigResponse> | undefined, b: OptionalWebRTCConfigResponse | PlainMessage<OptionalWebRTCConfigResponse> | undefined): boolean;
731
862
  }
732
863
 
864
+ /**
865
+ * ConnectionCandidate describes the selected ICE candidate for one side of a WebRTC connection.
866
+ *
867
+ * @generated from message proto.rpc.webrtc.v1.ConnectionCandidate
868
+ */
869
+ export declare class ConnectionCandidate extends Message<ConnectionCandidate> {
870
+ /**
871
+ * @generated from field: proto.rpc.webrtc.v1.ICECandidateType type = 1;
872
+ */
873
+ type: ICECandidateType;
874
+
875
+ /**
876
+ * relay_address is the relay server address of this candidate; set only when type is
877
+ * RELAY, so the signaling server can classify the provider by matching against known
878
+ * coturn addresses.
879
+ *
880
+ * @generated from field: string relay_address = 2;
881
+ */
882
+ relayAddress: string;
883
+
884
+ constructor(data?: PartialMessage<ConnectionCandidate>);
885
+
886
+ static readonly runtime: typeof proto3;
887
+ static readonly typeName = "proto.rpc.webrtc.v1.ConnectionCandidate";
888
+ static readonly fields: FieldList;
889
+
890
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionCandidate;
891
+
892
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionCandidate;
893
+
894
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionCandidate;
895
+
896
+ static equals(a: ConnectionCandidate | PlainMessage<ConnectionCandidate> | undefined, b: ConnectionCandidate | PlainMessage<ConnectionCandidate> | undefined): boolean;
897
+ }
898
+
899
+ /**
900
+ * ReportConnectionMetadataRequest reports metadata about a WebRTC dial, per side: local is the
901
+ * dialing SDK and remote is the robot.
902
+ *
903
+ * @generated from message proto.rpc.webrtc.v1.ReportConnectionMetadataRequest
904
+ */
905
+ export declare class ReportConnectionMetadataRequest extends Message<ReportConnectionMetadataRequest> {
906
+ /**
907
+ * @generated from field: proto.rpc.webrtc.v1.ConnectionCandidate local = 1;
908
+ */
909
+ local?: ConnectionCandidate;
910
+
911
+ /**
912
+ * @generated from field: proto.rpc.webrtc.v1.ConnectionCandidate remote = 2;
913
+ */
914
+ remote?: ConnectionCandidate;
915
+
916
+ /**
917
+ * reached_stage is the furthest dial checkpoint reached. READY indicates success; any earlier
918
+ * value is where a failed dial stopped.
919
+ *
920
+ * @generated from field: proto.rpc.webrtc.v1.DialStage reached_stage = 3;
921
+ */
922
+ reachedStage: DialStage;
923
+
924
+ /**
925
+ * duration_ms is the wall-clock time from dial start to connection ready or to the failure.
926
+ *
927
+ * @generated from field: uint32 duration_ms = 4;
928
+ */
929
+ durationMs: number;
930
+
931
+ /**
932
+ * signaling_path is how the dial was signaled (cloud / local / mDNS); reported regardless of outcome.
933
+ *
934
+ * @generated from field: proto.rpc.webrtc.v1.ConnectionSignalingPath signaling_path = 5;
935
+ */
936
+ signalingPath: ConnectionSignalingPath;
937
+
938
+ /**
939
+ * failure_code is the gRPC status code of a failed dial
940
+ *
941
+ * @generated from field: int32 failure_code = 6;
942
+ */
943
+ failureCode: number;
944
+
945
+ constructor(data?: PartialMessage<ReportConnectionMetadataRequest>);
946
+
947
+ static readonly runtime: typeof proto3;
948
+ static readonly typeName = "proto.rpc.webrtc.v1.ReportConnectionMetadataRequest";
949
+ static readonly fields: FieldList;
950
+
951
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReportConnectionMetadataRequest;
952
+
953
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReportConnectionMetadataRequest;
954
+
955
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReportConnectionMetadataRequest;
956
+
957
+ static equals(a: ReportConnectionMetadataRequest | PlainMessage<ReportConnectionMetadataRequest> | undefined, b: ReportConnectionMetadataRequest | PlainMessage<ReportConnectionMetadataRequest> | undefined): boolean;
958
+ }
959
+
960
+ /**
961
+ * ReportConnectionMetadataResponse is empty.
962
+ *
963
+ * @generated from message proto.rpc.webrtc.v1.ReportConnectionMetadataResponse
964
+ */
965
+ export declare class ReportConnectionMetadataResponse extends Message<ReportConnectionMetadataResponse> {
966
+ constructor(data?: PartialMessage<ReportConnectionMetadataResponse>);
967
+
968
+ static readonly runtime: typeof proto3;
969
+ static readonly typeName = "proto.rpc.webrtc.v1.ReportConnectionMetadataResponse";
970
+ static readonly fields: FieldList;
971
+
972
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReportConnectionMetadataResponse;
973
+
974
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReportConnectionMetadataResponse;
975
+
976
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReportConnectionMetadataResponse;
977
+
978
+ static equals(a: ReportConnectionMetadataResponse | PlainMessage<ReportConnectionMetadataResponse> | undefined, b: ReportConnectionMetadataResponse | PlainMessage<ReportConnectionMetadataResponse> | undefined): boolean;
979
+ }
980
+
@@ -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';