@viamrobotics/sdk 0.38.1 → 0.40.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 (37) hide show
  1. package/dist/api-version.d.ts +1 -1
  2. package/dist/app/app-client.d.ts +651 -12
  3. package/dist/app/billing-client.d.ts +54 -0
  4. package/dist/app/data-client.d.ts +336 -10
  5. package/dist/app/ml-training-client.d.ts +94 -0
  6. package/dist/components/arm/arm.d.ts +82 -7
  7. package/dist/components/base/base.d.ts +106 -4
  8. package/dist/components/board/board.d.ts +119 -2
  9. package/dist/components/button/button.d.ts +12 -1
  10. package/dist/components/camera/camera.d.ts +51 -2
  11. package/dist/components/encoder/encoder.d.ts +36 -2
  12. package/dist/components/gantry/gantry.d.ts +84 -6
  13. package/dist/components/generic/generic.d.ts +16 -1
  14. package/dist/components/gripper/gripper.d.ts +62 -5
  15. package/dist/components/input-controller/input-controller.d.ts +36 -2
  16. package/dist/components/motor/motor.d.ts +108 -4
  17. package/dist/components/movement-sensor/movement-sensor.d.ts +114 -10
  18. package/dist/components/power-sensor/power-sensor.d.ts +54 -4
  19. package/dist/components/sensor/sensor.d.ts +12 -1
  20. package/dist/components/servo/servo.d.ts +54 -4
  21. package/dist/components/switch/switch.d.ts +49 -3
  22. package/dist/gen/app/data/v1/data_pb.d.ts +81 -0
  23. package/dist/gen/app/v1/app_pb.d.ts +45 -0
  24. package/dist/gen/app/v1/billing_connect.d.ts +23 -1
  25. package/dist/gen/app/v1/billing_pb.d.ts +91 -0
  26. package/dist/main.d.ts +1 -0
  27. package/dist/main.es.js +5940 -4409
  28. package/dist/main.umd.js +7 -7
  29. package/dist/robot/client.d.ts +28 -2
  30. package/dist/robot/robot.d.ts +80 -8
  31. package/dist/services/data-manager/client.d.ts +32 -0
  32. package/dist/services/ml-model/client.d.ts +13 -0
  33. package/dist/services/ml-model/index.d.ts +2 -0
  34. package/dist/services/ml-model/ml-model.d.ts +7 -0
  35. package/dist/services/vision/vision.d.ts +77 -0
  36. package/dist/types.d.ts +9 -0
  37. package/package.json +1 -1
@@ -7,8 +7,62 @@ export type GetCurrentMonthUsageResponse = Partial<PBGetCurrentMonthUsageRespons
7
7
  export declare class BillingClient {
8
8
  private client;
9
9
  constructor(transport: Transport);
10
+ /**
11
+ * Get the data usage information for the current month for a given
12
+ * organization.
13
+ *
14
+ * @example
15
+ *
16
+ * ```ts
17
+ * const usage = await billing.getCurrentMonthUsage('<organization-id>');
18
+ * ```
19
+ *
20
+ * @param orgId - The organization ID.
21
+ */
10
22
  getCurrentMonthUsage(orgId: string): Promise<GetCurrentMonthUsageResponse>;
23
+ /**
24
+ * Get the billing information (payment method, billing tier, etc.) for a
25
+ * given org.
26
+ *
27
+ * @example
28
+ *
29
+ * ```ts
30
+ * const billingInfo = await billing.getOrgBillingInformation(
31
+ * '<organization-id>'
32
+ * );
33
+ * ```
34
+ *
35
+ * @param orgId - The organization ID.
36
+ */
11
37
  getOrgBillingInformation(orgId: string): Promise<import("../gen/app/v1/billing_pb").GetOrgBillingInformationResponse>;
38
+ /**
39
+ * Get total outstanding balance plus invoice summaries for a given org.
40
+ *
41
+ * @example
42
+ *
43
+ * ```ts
44
+ * const invoicesSummary = await billing.getInvoicesSummary(
45
+ * '<organization-id>'
46
+ * );
47
+ * ```
48
+ *
49
+ * @param orgId - The organization ID.
50
+ */
12
51
  getInvoicesSummary(orgId: string): Promise<import("../gen/app/v1/billing_pb").GetInvoicesSummaryResponse>;
52
+ /**
53
+ * Get invoice PDF data.
54
+ *
55
+ * @example
56
+ *
57
+ * ```ts
58
+ * const invoicePdf = await billing.getInvoicePdf(
59
+ * '<invoice-id>',
60
+ * '<organization-id>'
61
+ * );
62
+ * ```
63
+ *
64
+ * @param id - The invoice ID.
65
+ * @param orgId - The organization ID.
66
+ */
13
67
  getInvoicePdf(id: string, orgId: string): Promise<Uint8Array>;
14
68
  }
@@ -39,6 +39,19 @@ export declare class DataClient {
39
39
  /**
40
40
  * Obtain unified tabular data and metadata from the specified data source.
41
41
  *
42
+ * @example
43
+ *
44
+ * ```ts
45
+ * const data = await dataClient.exportTabularData(
46
+ * '123abc45-1234-5678-90ab-cdef12345678',
47
+ * 'my-sensor',
48
+ * 'rdk:component:sensor',
49
+ * 'Readings',
50
+ * new Date('2025-03-25'),
51
+ * new Date('2024-03-27')
52
+ * );
53
+ * ```
54
+ *
42
55
  * @param partId The ID of the part that owns the data
43
56
  * @param resourceName The name of the requested resource that captured the
44
57
  * data
@@ -55,6 +68,15 @@ export declare class DataClient {
55
68
  /**
56
69
  * Obtain unified tabular data and metadata, queried with SQL.
57
70
  *
71
+ * @example
72
+ *
73
+ * ```ts
74
+ * const data = await dataClient.tabularDataBySQL(
75
+ * '123abc45-1234-5678-90ab-cdef12345678',
76
+ * 'SELECT * FROM readings LIMIT 5'
77
+ * );
78
+ * ```
79
+ *
58
80
  * @param organizationId The ID of the organization that owns the data
59
81
  * @param query The SQL query to run
60
82
  * @returns An array of data objects
@@ -63,6 +85,33 @@ export declare class DataClient {
63
85
  /**
64
86
  * Obtain unified tabular data and metadata, queried with MQL.
65
87
  *
88
+ * @example
89
+ *
90
+ * ```ts
91
+ * type JsonValue =
92
+ * | string
93
+ * | number
94
+ * | boolean
95
+ * | null
96
+ * | JsonValue[]
97
+ * | { [key: string]: JsonValue };
98
+ * const mqlQuery: Record<string, JsonValue>[] = [
99
+ * {
100
+ * $match: {
101
+ * component_name: 'sensor-1',
102
+ * },
103
+ * },
104
+ * {
105
+ * $limit: 5,
106
+ * },
107
+ * ];
108
+ *
109
+ * const data = await dataClient.tabularDataByMQL(
110
+ * '123abc45-1234-5678-90ab-cdef12345678',
111
+ * mqlQuery
112
+ * );
113
+ * ```
114
+ *
66
115
  * @param organizationId The ID of the organization that owns the data
67
116
  * @param query The MQL query to run as a list of BSON documents
68
117
  * @param useRecentData Whether to query blob storage or your recent data
@@ -76,6 +125,18 @@ export declare class DataClient {
76
125
  * metadata list. The data will be paginated into pages of `limit` items, and
77
126
  * the pagination ID will be included in the returned tuple.
78
127
  *
128
+ * @example
129
+ *
130
+ * ```ts
131
+ * const data = await dataClient.tabularDataByFilter(
132
+ * {
133
+ * componentName: 'sensor-1',
134
+ * componentType: 'rdk:component:sensor',
135
+ * } as Filter,
136
+ * 5
137
+ * );
138
+ * ```
139
+ *
79
140
  * @param filter Optional `pb.Filter` specifying tabular data to retrieve. No
80
141
  * `filter` implies all tabular data.
81
142
  * @param limit The maximum number of entries to include in a page. Defaults
@@ -102,6 +163,18 @@ export declare class DataClient {
102
163
  * metadata list. The data will be paginated into pages of `limit` items, and
103
164
  * the pagination ID will be included in the returned tuple.
104
165
  *
166
+ * @example
167
+ *
168
+ * ```ts
169
+ * const data = await dataClient.binaryDataByFilter(
170
+ * {
171
+ * componentName: 'camera-1',
172
+ * componentType: 'rdk:component:camera',
173
+ * } as Filter,
174
+ * 1
175
+ * );
176
+ * ```
177
+ *
105
178
  * @param filter Optional `pb.Filter` specifying binary data to retrieve. No
106
179
  * `filter` implies all binary data.
107
180
  * @param limit The maximum number of entries to include in a page. Defaults
@@ -125,15 +198,32 @@ export declare class DataClient {
125
198
  last: string;
126
199
  }>;
127
200
  /**
128
- * Get binary data using the BinaryID.
201
+ * Get binary data using the binary data ID.
202
+ *
203
+ * @example
204
+ *
205
+ * ```ts
206
+ * const data = await dataClient.binaryDataByIds([
207
+ * 'ccb74b53-1235-4328-a4b9-91dff1915a50/x5vur1fmps/YAEzj5I1kTwtYsDdf4a7ctaJpGgKRHmnM9bJNVyblk52UpqmrnMVTITaBKZctKEh',
208
+ * ]);
209
+ * ```
129
210
  *
130
211
  * @param ids The IDs of the requested binary data
131
212
  * @returns An array of data objects
132
213
  */
133
- binaryDataByIds(ids: BinaryID[]): Promise<import("../gen/app/data/v1/data_pb").BinaryData[]>;
214
+ binaryDataByIds(ids: string[] | BinaryID[]): Promise<import("../gen/app/data/v1/data_pb").BinaryData[]>;
134
215
  /**
135
216
  * Delete tabular data older than a specified number of days.
136
217
  *
218
+ * @example
219
+ *
220
+ * ```ts
221
+ * const data = await dataClient.deleteTabularData(
222
+ * '123abc45-1234-5678-90ab-cdef12345678',
223
+ * 10
224
+ * );
225
+ * ```
226
+ *
137
227
  * @param organizationId The ID of organization to delete data from
138
228
  * @param deleteOlderThanDays Delete data that was captured more than this
139
229
  * many days ago. For example if `deleteOlderThanDays` is 10, this deletes
@@ -145,6 +235,18 @@ export declare class DataClient {
145
235
  /**
146
236
  * Filter and delete binary data.
147
237
  *
238
+ * @example
239
+ *
240
+ * ```ts
241
+ * const data = await dataClient.deleteBinaryDataByFilter({
242
+ * componentName: 'camera-1',
243
+ * componentType: 'rdk:component:camera',
244
+ * organizationIds: ['123abc45-1234-5678-90ab-cdef12345678'],
245
+ * startTime: new Date('2025-03-19'),
246
+ * endTime: new Date('2025-03-20'),
247
+ * } as Filter);
248
+ * ```
249
+ *
148
250
  * @param filter Optional `pb.Filter` specifying binary data to delete. No
149
251
  * `filter` implies all binary data.
150
252
  * @param includeInternalData Whether or not to delete internal data. Default
@@ -155,21 +257,53 @@ export declare class DataClient {
155
257
  /**
156
258
  * Delete binary data, specified by ID.
157
259
  *
260
+ * @example
261
+ *
262
+ * ```ts
263
+ * const data = await dataClient.deleteBinaryDataByIds([
264
+ * 'ccb74b53-1235-4328-a4b9-91dff1915a50/x5vur1fmps/YAEzj5I1kTwtYsDdf4a7ctaJpGgKRHmnM9bJNVyblk52UpqmrnMVTITaBKZctKEh',
265
+ * ]);
266
+ * ```
267
+ *
158
268
  * @param ids The IDs of the data to be deleted. Must be non-empty.
159
269
  * @returns The number of items deleted
160
270
  */
161
- deleteBinaryDataByIds(ids: BinaryID[]): Promise<bigint>;
271
+ deleteBinaryDataByIds(ids: string[] | BinaryID[]): Promise<bigint>;
162
272
  /**
163
273
  * Add tags to binary data, specified by ID.
164
274
  *
275
+ * @example
276
+ *
277
+ * ```ts
278
+ * const data = await dataClient.addTagsToBinaryDataByIds(
279
+ * ['tag1', 'tag2'],
280
+ * [
281
+ * 'ccb74b53-1235-4328-a4b9-91dff1915a50/x5vur1fmps/YAEzj5I1kTwtYsDdf4a7ctaJpGgKRHmnM9bJNVyblk52UpqmrnMVTITaBKZctKEh',
282
+ * ]
283
+ * );
284
+ * ```
285
+ *
165
286
  * @param tags The list of tags to add to specified binary data. Must be
166
287
  * non-empty.
167
288
  * @param ids The IDs of the data to be tagged. Must be non-empty.
168
289
  */
169
- addTagsToBinaryDataByIds(tags: string[], ids: BinaryID[]): Promise<void>;
290
+ addTagsToBinaryDataByIds(tags: string[], ids: string[] | BinaryID[]): Promise<void>;
170
291
  /**
171
292
  * Add tags to binary data, specified by filter.
172
293
  *
294
+ * @example
295
+ *
296
+ * ```ts
297
+ * const data = await dataClient.addTagsToBinaryDataByFilter(
298
+ * ['tag1', 'tag2'],
299
+ * [
300
+ * {
301
+ * componentName: 'camera-1',
302
+ * } as Filter,
303
+ * ]
304
+ * );
305
+ * ```
306
+ *
173
307
  * @param tags The tags to add to the data
174
308
  * @param filter Optional `pb.Filter` specifying binary data to add tags to.
175
309
  * No `filter` implies all binary data.
@@ -178,15 +312,41 @@ export declare class DataClient {
178
312
  /**
179
313
  * Remove tags from binary data, specified by ID.
180
314
  *
315
+ * @example
316
+ *
317
+ * ```ts
318
+ * const data = await dataClient.removeTagsFromBinaryDataByIds(
319
+ * ['tag1', 'tag2'],
320
+ * [
321
+ * 'ccb74b53-1235-4328-a4b9-91dff1915a50/x5vur1fmps/YAEzj5I1kTwtYsDdf4a7ctaJpGgKRHmnM9bJNVyblk52UpqmrnMVTITaBKZctKEh',
322
+ * ]
323
+ * );
324
+ * ```
325
+ *
181
326
  * @param tags List of tags to remove from specified binary data. Must be
182
327
  * non-empty.
183
328
  * @param ids The IDs of the data to be edited. Must be non-empty.
184
329
  * @returns The number of items deleted
185
330
  */
186
- removeTagsFromBinaryDataByIds(tags: string[], ids: BinaryID[]): Promise<bigint>;
331
+ removeTagsFromBinaryDataByIds(tags: string[], ids: string[] | BinaryID[]): Promise<bigint>;
187
332
  /**
188
333
  * Remove tags from binary data, specified by filter.
189
334
  *
335
+ * @example
336
+ *
337
+ * ```ts
338
+ * const data = await dataClient.removeTagsFromBinaryDataByFilter(
339
+ * ['tag1', 'tag2'],
340
+ * {
341
+ * componentName: 'camera-1',
342
+ * componentType: 'rdk:component:camera',
343
+ * organizationIds: ['123abc45-1234-5678-90ab-cdef12345678'],
344
+ * startTime: new Date('2025-03-19'),
345
+ * endTime: new Date('2025-03-20'),
346
+ * } as Filter
347
+ * );
348
+ * ```
349
+ *
190
350
  * @param tags List of tags to remove from specified binary data. Must be
191
351
  * non-empty.
192
352
  * @param filter Optional `pb.Filter` specifying binary data to add tags to.
@@ -197,6 +357,14 @@ export declare class DataClient {
197
357
  /**
198
358
  * Get a list of tags using a filter.
199
359
  *
360
+ * @example
361
+ *
362
+ * ```ts
363
+ * const data = await dataClient.tagsByFilter({
364
+ * componentName: 'camera-1',
365
+ * } as Filter);
366
+ * ```
367
+ *
200
368
  * @param filter Optional `pb.Filter` specifying what data to get tags from.
201
369
  * No `filter` implies all data.
202
370
  * @returns The list of tags
@@ -205,6 +373,19 @@ export declare class DataClient {
205
373
  /**
206
374
  * Add bounding box to an image.
207
375
  *
376
+ * @example
377
+ *
378
+ * ```ts
379
+ * const bboxId = await dataClient.addBoundingBoxToImageById(
380
+ * 'ccb74b53-1235-4328-a4b9-91dff1915a50/x5vur1fmps/YAEzj5I1kTwtYsDdf4a7ctaJpGgKRHmnM9bJNVyblk52UpqmrnMVTITaBKZctKEh',
381
+ * 'label1',
382
+ * 0.3,
383
+ * 0.3,
384
+ * 0.6,
385
+ * 0.6
386
+ * );
387
+ * ```
388
+ *
208
389
  * @param binaryId The ID of the image to add the bounding box to
209
390
  * @param label A label for the bounding box
210
391
  * @param xMinNormalized The min X value of the bounding box normalized from 0
@@ -217,17 +398,35 @@ export declare class DataClient {
217
398
  * to 1
218
399
  * @returns The bounding box ID
219
400
  */
220
- addBoundingBoxToImageById(id: BinaryID, label: string, xMinNormalized: number, yMinNormalized: number, xMaxNormalized: number, yMaxNormalized: number): Promise<string>;
401
+ addBoundingBoxToImageById(binaryId: string | BinaryID, label: string, xMinNormalized: number, yMinNormalized: number, xMaxNormalized: number, yMaxNormalized: number): Promise<string>;
221
402
  /**
222
403
  * Remove a bounding box from an image.
223
404
  *
405
+ * @example
406
+ *
407
+ * ```ts
408
+ * // TODO(UNTESTED)
409
+ * await dataClient.removeBoundingBoxFromImageById(
410
+ * 'ccb74b53-1235-4328-a4b9-91dff1915a50/x5vur1fmps/YAEzj5I1kTwtYsDdf4a7ctaJpGgKRHmnM9bJNVyblk52UpqmrnMVTITaBKZctKEh',
411
+ * '5Z9ryhkW7ULaXROjJO6ghPYulNllnH20QImda1iZFroZpQbjahK6igQ1WbYigXED'
412
+ * );
413
+ * ```
414
+ *
224
415
  * @param binId The ID of the image to remove the bounding box from
225
416
  * @param bboxId The ID of the bounding box to remove
226
417
  */
227
- removeBoundingBoxFromImageById(binId: BinaryID, bboxId: string): Promise<void>;
418
+ removeBoundingBoxFromImageById(binId: string | BinaryID, bboxId: string): Promise<void>;
228
419
  /**
229
420
  * Get a list of bounding box labels using a Filter.
230
421
  *
422
+ * @example
423
+ *
424
+ * ```ts
425
+ * const data = await dataClient.boundingBoxLabelsByFilter({
426
+ * componentName: 'camera-1',
427
+ * } as Filter);
428
+ * ```
429
+ *
231
430
  * @param filter Optional `pb.Filter` specifying what data to get tags from.
232
431
  * No `filter` implies all labels.
233
432
  * @returns The list of bounding box labels
@@ -238,6 +437,15 @@ export declare class DataClient {
238
437
  * Federation instance. It can also be used to reset the password of the
239
438
  * existing database user.
240
439
  *
440
+ * @example
441
+ *
442
+ * ```ts
443
+ * await dataClient.configureDatabaseUser(
444
+ * '123abc45-1234-5678-90ab-cdef12345678',
445
+ * 'Password01!'
446
+ * );
447
+ * ```
448
+ *
241
449
  * @param organizationId The ID of the organization
242
450
  * @param password The password of the user
243
451
  */
@@ -245,6 +453,14 @@ export declare class DataClient {
245
453
  /**
246
454
  * Get a connection to access a MongoDB Atlas Data federation instance.
247
455
  *
456
+ * @example
457
+ *
458
+ * ```ts
459
+ * const hostname = await dataClient.getDatabaseConnection(
460
+ * '123abc45-1234-5678-90ab-cdef12345678'
461
+ * );
462
+ * ```
463
+ *
248
464
  * @param organizationId Organization to retrieve connection for
249
465
  * @returns Hostname of the federated database
250
466
  */
@@ -252,20 +468,51 @@ export declare class DataClient {
252
468
  /**
253
469
  * Add BinaryData to the provided dataset.
254
470
  *
471
+ * @example
472
+ *
473
+ * ```ts
474
+ * await dataClient.addBinaryDataToDatasetByIds(
475
+ * [
476
+ * 'ccb74b53-1235-4328-a4b9-91dff1915a50/x5vur1fmps/YAEzj5I1kTwtYsDdf4a7ctaJpGgKRHmnM9bJNVyblk52UpqmrnMVTITaBKZctKEh',
477
+ * ],
478
+ * '12ab3de4f56a7bcd89ef0ab1'
479
+ * );
480
+ * ```
481
+ *
255
482
  * @param ids The IDs of binary data to add to dataset
256
483
  * @param datasetId The ID of the dataset to be added to
257
484
  */
258
- addBinaryDataToDatasetByIds(ids: BinaryID[], datasetId: string): Promise<void>;
485
+ addBinaryDataToDatasetByIds(ids: string[] | BinaryID[], datasetId: string): Promise<void>;
259
486
  /**
260
487
  * Remove BinaryData from the provided dataset.
261
488
  *
489
+ * @example
490
+ *
491
+ * ```ts
492
+ * await dataClient.removeBinaryDataFromDatasetByIds(
493
+ * [
494
+ * 'ccb74b53-1235-4328-a4b9-91dff1915a50/x5vur1fmps/YAEzj5I1kTwtYsDdf4a7ctaJpGgKRHmnM9bJNVyblk52UpqmrnMVTITaBKZctKEh',
495
+ * ],
496
+ * '12ab3de4f56a7bcd89ef0ab1'
497
+ * );
498
+ * ```
499
+ *
262
500
  * @param ids The IDs of the binary data to remove from dataset
263
501
  * @param datasetId The ID of the dataset to be removed from
264
502
  */
265
- removeBinaryDataFromDatasetByIds(ids: BinaryID[], datasetId: string): Promise<void>;
503
+ removeBinaryDataFromDatasetByIds(ids: string[] | BinaryID[], datasetId: string): Promise<void>;
266
504
  /**
267
505
  * Create a new dataset.
268
506
  *
507
+ * @example
508
+ *
509
+ * ```ts
510
+ * const datasetId = await dataClient.createDataset(
511
+ * 'my-new-dataset',
512
+ * '123abc45-1234-5678-90ab-cdef12345678'
513
+ * );
514
+ * ```
515
+ *
269
516
  * @param name The name of the new dataset
270
517
  * @param organizationId The ID of the organization the dataset is being
271
518
  * created in
@@ -275,12 +522,27 @@ export declare class DataClient {
275
522
  /**
276
523
  * Delete a dataset.
277
524
  *
525
+ * @example
526
+ *
527
+ * ```ts
528
+ * await dataClient.deleteDataset('12ab3de4f56a7bcd89ef0ab1');
529
+ * ```
530
+ *
278
531
  * @param id The ID of the dataset.
279
532
  */
280
533
  deleteDataset(id: string): Promise<void>;
281
534
  /**
282
535
  * Rename a dataset.
283
536
  *
537
+ * @example
538
+ *
539
+ * ```ts
540
+ * await dataClient.renameDataset(
541
+ * '12ab3de4f56a7bcd89ef0ab1',
542
+ * 'my-new-dataset'
543
+ * );
544
+ * ```
545
+ *
284
546
  * @param id The ID of the dataset
285
547
  * @param name The new name of the dataset
286
548
  */
@@ -288,6 +550,14 @@ export declare class DataClient {
288
550
  /**
289
551
  * List all of the datasets for an organization.
290
552
  *
553
+ * @example
554
+ *
555
+ * ```ts
556
+ * const datasets = await dataClient.listDatasetsByOrganizationID(
557
+ * '123abc45-1234-5678-90ab-cdef12345678'
558
+ * );
559
+ * ```
560
+ *
291
561
  * @param organizationId The ID of the organization
292
562
  * @returns The list of datasets in the organization
293
563
  */
@@ -295,6 +565,14 @@ export declare class DataClient {
295
565
  /**
296
566
  * List all of the datasets specified by the given dataset IDs.
297
567
  *
568
+ * @example
569
+ *
570
+ * ```ts
571
+ * const datasets = await dataClient.listDatasetsByIds([
572
+ * '12ab3de4f56a7bcd89ef0ab1',
573
+ * ]);
574
+ * ```
575
+ *
298
576
  * @param ids The list of IDs of the datasets
299
577
  * @returns The list of datasets
300
578
  */
@@ -307,6 +585,29 @@ export declare class DataClient {
307
585
  * data can be found under the "Sensors" subtab of the Data tab on
308
586
  * app.viam.com.
309
587
  *
588
+ * @example
589
+ *
590
+ * ```ts
591
+ * const fileId = await dataClient.tabularDataCaptureUpload(
592
+ * [
593
+ * {
594
+ * timestamp: '2025-03-26T10:00:00Z',
595
+ * value: 10,
596
+ * },
597
+ * ],
598
+ * '123abc45-1234-5678-90ab-cdef12345678',
599
+ * 'rdk:component:sensor',
600
+ * 'my-sensor',
601
+ * 'Readings',
602
+ * [
603
+ * [
604
+ * new Date('2025-03-26T10:00:00Z'),
605
+ * new Date('2025-03-26T10:00:00Z'),
606
+ * ],
607
+ * ]
608
+ * );
609
+ * ```
610
+ *
310
611
  * @param tabularData The list of data to be uploaded, represented tabularly
311
612
  * as an array.
312
613
  * @param partId The part ID of the component used to capture the data
@@ -331,6 +632,20 @@ export declare class DataClient {
331
632
  * a motor) along with the relevant metadata to app.viam.com. binary data can
332
633
  * be found under the "Sensors" subtab of the Data tab on app.viam.com.
333
634
  *
635
+ * @example
636
+ *
637
+ * ```ts
638
+ * const binaryDataId = await dataClient.binaryDataCaptureUpload(
639
+ * binaryData,
640
+ * '123abc45-1234-5678-90ab-cdef12345678',
641
+ * 'rdk:component:camera',
642
+ * 'my-camera',
643
+ * 'ReadImage',
644
+ * '.jpg',
645
+ * [new Date('2025-03-19'), new Date('2025-03-19')]
646
+ * );
647
+ * ```
648
+ *
334
649
  * @param binaryData The data to be uploaded, represented in bytes
335
650
  * @param partId The part ID of the component used to capture the data
336
651
  * @param componentType The type of the component used to capture the data
@@ -346,7 +661,7 @@ export declare class DataClient {
346
661
  * @param dataRequestTimes Tuple containing `Date` objects denoting the times
347
662
  * this data was requested[0] by the robot and received[1] from the
348
663
  * appropriate sensor.
349
- * @returns The file ID of the uploaded data
664
+ * @returns The binary data ID of the uploaded data
350
665
  */
351
666
  binaryDataCaptureUpload(binaryData: Uint8Array, partId: string, componentType: string, componentName: string, methodName: string, fileExtension: string, dataRequestTimes: [Date, Date], tags?: string[]): Promise<string>;
352
667
  createFilter(options: FilterOptions): Filter;
@@ -354,6 +669,17 @@ export declare class DataClient {
354
669
  * Gets the most recent tabular data captured from the specified data source,
355
670
  * as long as it was synced within the last year.
356
671
  *
672
+ * @example
673
+ *
674
+ * ```ts
675
+ * const data = await dataClient.getLatestTabularData(
676
+ * '123abc45-1234-5678-90ab-cdef12345678',
677
+ * 'my-sensor',
678
+ * 'rdk:component:sensor',
679
+ * 'Readings'
680
+ * );
681
+ * ```
682
+ *
357
683
  * @param partId The ID of the part that owns the data
358
684
  * @param resourceName The name of the requested resource that captured the
359
685
  * data. Ex: "my-sensor"