@viamrobotics/sdk 0.74.0-b.0 → 0.74.1

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,6 +6,7 @@
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";
10
11
 
11
12
  /**
@@ -71,6 +72,100 @@ export declare class SendTracesResponse extends Message<SendTracesResponse> {
71
72
  static equals(a: SendTracesResponse | PlainMessage<SendTracesResponse> | undefined, b: SendTracesResponse | PlainMessage<SendTracesResponse> | undefined): boolean;
72
73
  }
73
74
 
75
+ /**
76
+ * @generated from message viam.robot.v1.UploadDataFromPathRequest
77
+ */
78
+ export declare class UploadDataFromPathRequest extends Message<UploadDataFromPathRequest> {
79
+ /**
80
+ * File or folder path on the robot to upload.
81
+ *
82
+ * @generated from field: string path = 1;
83
+ */
84
+ path: string;
85
+
86
+ /**
87
+ * Optional metadata to apply to uploaded files.
88
+ *
89
+ * @generated from field: optional viam.app.datasync.v1.UploadMetadata upload_metadata = 2;
90
+ */
91
+ uploadMetadata?: UploadMetadata;
92
+
93
+ /**
94
+ * Additional arguments to the method.
95
+ *
96
+ * @generated from field: google.protobuf.Struct extra = 99;
97
+ */
98
+ extra?: Struct;
99
+
100
+ constructor(data?: PartialMessage<UploadDataFromPathRequest>);
101
+
102
+ static readonly runtime: typeof proto3;
103
+ static readonly typeName = "viam.robot.v1.UploadDataFromPathRequest";
104
+ static readonly fields: FieldList;
105
+
106
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UploadDataFromPathRequest;
107
+
108
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UploadDataFromPathRequest;
109
+
110
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UploadDataFromPathRequest;
111
+
112
+ static equals(a: UploadDataFromPathRequest | PlainMessage<UploadDataFromPathRequest> | undefined, b: UploadDataFromPathRequest | PlainMessage<UploadDataFromPathRequest> | undefined): boolean;
113
+ }
114
+
115
+ /**
116
+ * @generated from message viam.robot.v1.UploadDataFromPathResponse
117
+ */
118
+ export declare class UploadDataFromPathResponse extends Message<UploadDataFromPathResponse> {
119
+ /**
120
+ * Total number of files successfully uploaded.
121
+ *
122
+ * @generated from field: uint64 files_uploaded = 1;
123
+ */
124
+ filesUploaded: bigint;
125
+
126
+ /**
127
+ * Total number of files that failed to upload.
128
+ *
129
+ * @generated from field: uint64 files_failed = 2;
130
+ */
131
+ filesFailed: bigint;
132
+
133
+ /**
134
+ * Total bytes successfully uploaded.
135
+ *
136
+ * @generated from field: uint64 bytes_uploaded = 3;
137
+ */
138
+ bytesUploaded: bigint;
139
+
140
+ /**
141
+ * Total bytes discovered in the directory.
142
+ *
143
+ * @generated from field: uint64 bytes_total = 4;
144
+ */
145
+ bytesTotal: bigint;
146
+
147
+ /**
148
+ * Successfully uploaded binary data ids.
149
+ *
150
+ * @generated from field: repeated string ids = 5;
151
+ */
152
+ ids: string[];
153
+
154
+ constructor(data?: PartialMessage<UploadDataFromPathResponse>);
155
+
156
+ static readonly runtime: typeof proto3;
157
+ static readonly typeName = "viam.robot.v1.UploadDataFromPathResponse";
158
+ static readonly fields: FieldList;
159
+
160
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UploadDataFromPathResponse;
161
+
162
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UploadDataFromPathResponse;
163
+
164
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UploadDataFromPathResponse;
165
+
166
+ static equals(a: UploadDataFromPathResponse | PlainMessage<UploadDataFromPathResponse> | undefined, b: UploadDataFromPathResponse | PlainMessage<UploadDataFromPathResponse> | undefined): boolean;
167
+ }
168
+
74
169
  /**
75
170
  * @generated from message viam.robot.v1.TunnelRequest
76
171
  */
@@ -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 Robot, type UploadDataFromPathResponse, } from './robot';
3
3
  /**
4
4
  * Raw Protobuf interfaces for a Robot component.
5
5
  *