@viamrobotics/sdk 0.66.1 → 0.67.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.
@@ -1 +1 @@
1
- export declare const apiVersion = "v0.1.523";
1
+ export declare const apiVersion = "v0.1.528";
@@ -1,6 +1,6 @@
1
- import { type JsonValue } from '@bufbuild/protobuf';
1
+ import { type JsonValue, type PartialMessage } from '@bufbuild/protobuf';
2
2
  import { type Client, type Transport } from '@connectrpc/connect';
3
- import { BinaryID, CaptureMetadata, Filter, Index, IndexableCollection, Order, TabularDataSource, TabularDataSourceType } from '../gen/app/data/v1/data_pb';
3
+ import { BinaryID, CaptureMetadata, Filter, Index, IndexableCollection, Order, TabularDataSource, TabularDataSourceType, DeleteTabularFilter } from '../gen/app/data/v1/data_pb';
4
4
  import { DataPipelinesService } from '../gen/app/datapipelines/v1/data_pipelines_connect';
5
5
  import { DataPipeline, DataPipelineRun } from '../gen/app/datapipelines/v1/data_pipelines_pb';
6
6
  import type { Dataset as PBDataset } from '../gen/app/dataset/v1/dataset_pb';
@@ -313,6 +313,16 @@ export declare class DataClient {
313
313
  * '123abc45-1234-5678-90ab-cdef12345678',
314
314
  * 10
315
315
  * );
316
+ *
317
+ * // Delete with additional filter constraints
318
+ * const data = await dataClient.deleteTabularData(
319
+ * '123abc45-1234-5678-90ab-cdef12345678',
320
+ * 10,
321
+ * {
322
+ * locationIds: ['location-id'],
323
+ * componentName: 'camera',
324
+ * }
325
+ * );
316
326
  * ```
317
327
  *
318
328
  * For more information, see [Data
@@ -320,12 +330,14 @@ export declare class DataClient {
320
330
  *
321
331
  * @param organizationId The ID of organization to delete data from
322
332
  * @param deleteOlderThanDays Delete data that was captured more than this
323
- * many days ago. For example if `deleteOlderThanDays` is 10, this deletes
324
- * any data that was captured more than 10 days ago. If it is 0, all
325
- * existing data is deleted.
333
+ * many days ago. For example, a value of 10 deletes any data that was
334
+ * captured more than 10 days ago. A value of 0 deletes all existing data.
335
+ * @param filter Optional filter to further constrain which data is deleted.
336
+ * If provided, only data matching the filter will be deleted. If omitted,
337
+ * data is deleted based on organization_id and delete_older_than_days.
326
338
  * @returns The number of items deleted
327
339
  */
328
- deleteTabularData(organizationId: string, deleteOlderThanDays: number): Promise<bigint>;
340
+ deleteTabularData(organizationId: string, deleteOlderThanDays: number, filter?: PartialMessage<DeleteTabularFilter>): Promise<bigint>;
329
341
  /**
330
342
  * Filter and delete binary data.
331
343
  *
@@ -82,6 +82,20 @@ export declare class DeviceAgentConfigRequest extends Message<DeviceAgentConfigR
82
82
  */
83
83
  versionInfo?: VersionInfo;
84
84
 
85
+ /**
86
+ * how long viam-agent has been running since its most recent start
87
+ *
88
+ * @generated from field: google.protobuf.Duration agent_uptime = 5;
89
+ */
90
+ agentUptime?: Duration;
91
+
92
+ /**
93
+ * how long viam-server has been running since its most recent start (omitted if not running)
94
+ *
95
+ * @generated from field: google.protobuf.Duration viam_server_uptime = 6;
96
+ */
97
+ viamServerUptime?: Duration;
98
+
85
99
  constructor(data?: PartialMessage<DeviceAgentConfigRequest>);
86
100
 
87
101
  static readonly runtime: typeof proto3;
@@ -88,6 +88,14 @@ export declare class StartBuildRequest extends Message<StartBuildRequest> {
88
88
  */
89
89
  workdir?: string;
90
90
 
91
+ /**
92
+ * optional distro for linux platforms. defaults to bullseye.
93
+ * must be bookworm for cpp module builds.
94
+ *
95
+ * @generated from field: optional string distro = 8;
96
+ */
97
+ distro?: string;
98
+
91
99
  constructor(data?: PartialMessage<StartBuildRequest>);
92
100
 
93
101
  static readonly runtime: typeof proto3;
@@ -1372,6 +1372,62 @@ export declare class BinaryMetadata extends Message<BinaryMetadata> {
1372
1372
  static equals(a: BinaryMetadata | PlainMessage<BinaryMetadata> | undefined, b: BinaryMetadata | PlainMessage<BinaryMetadata> | undefined): boolean;
1373
1373
  }
1374
1374
 
1375
+ /**
1376
+ * TabularFilter filters tabular data. All fields are optional; omitted fields are treated as unconstrained.
1377
+ *
1378
+ * @generated from message viam.app.data.v1.DeleteTabularFilter
1379
+ */
1380
+ export declare class DeleteTabularFilter extends Message<DeleteTabularFilter> {
1381
+ /**
1382
+ * @generated from field: repeated string location_ids = 1;
1383
+ */
1384
+ locationIds: string[];
1385
+
1386
+ /**
1387
+ * @generated from field: string robot_id = 2;
1388
+ */
1389
+ robotId: string;
1390
+
1391
+ /**
1392
+ * @generated from field: string part_id = 3;
1393
+ */
1394
+ partId: string;
1395
+
1396
+ /**
1397
+ * @generated from field: string component_type = 4;
1398
+ */
1399
+ componentType: string;
1400
+
1401
+ /**
1402
+ * @generated from field: string component_name = 5;
1403
+ */
1404
+ componentName: string;
1405
+
1406
+ /**
1407
+ * @generated from field: string method = 6;
1408
+ */
1409
+ method: string;
1410
+
1411
+ /**
1412
+ * @generated from field: viam.app.data.v1.TagsFilter tags_filter = 7;
1413
+ */
1414
+ tagsFilter?: TagsFilter;
1415
+
1416
+ constructor(data?: PartialMessage<DeleteTabularFilter>);
1417
+
1418
+ static readonly runtime: typeof proto3;
1419
+ static readonly typeName = "viam.app.data.v1.DeleteTabularFilter";
1420
+ static readonly fields: FieldList;
1421
+
1422
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteTabularFilter;
1423
+
1424
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteTabularFilter;
1425
+
1426
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteTabularFilter;
1427
+
1428
+ static equals(a: DeleteTabularFilter | PlainMessage<DeleteTabularFilter> | undefined, b: DeleteTabularFilter | PlainMessage<DeleteTabularFilter> | undefined): boolean;
1429
+ }
1430
+
1375
1431
  /**
1376
1432
  * DeleteTabularDataRequest deletes the data from the organization that is older than `delete_older_than_days`
1377
1433
  * in UTC time. For example, if delete_older_than_days=1 and the request is made at 1AM EST on March 11
@@ -1379,6 +1435,7 @@ export declare class BinaryMetadata extends Message<BinaryMetadata> {
1379
1435
  * If the request is at 10PM EST on March 11 (March 12 2AM UTC), this deletes all data captured
1380
1436
  * through March 11 11:59:59PM UTC.
1381
1437
  * If delete_older_than_days is 0, all existing data is deleted.
1438
+ * If no filter is provided, data will be deleted based on organization_id.
1382
1439
  *
1383
1440
  * @generated from message viam.app.data.v1.DeleteTabularDataRequest
1384
1441
  */
@@ -1393,6 +1450,11 @@ export declare class DeleteTabularDataRequest extends Message<DeleteTabularDataR
1393
1450
  */
1394
1451
  deleteOlderThanDays: number;
1395
1452
 
1453
+ /**
1454
+ * @generated from field: optional viam.app.data.v1.DeleteTabularFilter filter = 3;
1455
+ */
1456
+ filter?: DeleteTabularFilter;
1457
+
1396
1458
  constructor(data?: PartialMessage<DeleteTabularDataRequest>);
1397
1459
 
1398
1460
  static readonly runtime: typeof proto3;
@@ -8914,6 +8914,11 @@ export declare class OAuthConfig extends Message<OAuthConfig> {
8914
8914
  */
8915
8915
  enabledGrants: EnabledGrant[];
8916
8916
 
8917
+ /**
8918
+ * @generated from field: string invite_redirect_uri = 8;
8919
+ */
8920
+ inviteRedirectUri: string;
8921
+
8917
8922
  constructor(data?: PartialMessage<OAuthConfig>);
8918
8923
 
8919
8924
  static readonly runtime: typeof proto3;
@@ -191,6 +191,60 @@ export declare class Orientation extends Message<Orientation> {
191
191
  static equals(a: Orientation | PlainMessage<Orientation> | undefined, b: Orientation | PlainMessage<Orientation> | undefined): boolean;
192
192
  }
193
193
 
194
+ /**
195
+ * @generated from message viam.common.v1.PoseCloud
196
+ */
197
+ export declare class PoseCloud extends Message<PoseCloud> {
198
+ /**
199
+ * @generated from field: double x = 1;
200
+ */
201
+ x: number;
202
+
203
+ /**
204
+ * @generated from field: double y = 2;
205
+ */
206
+ y: number;
207
+
208
+ /**
209
+ * @generated from field: double z = 3;
210
+ */
211
+ z: number;
212
+
213
+ /**
214
+ * @generated from field: double o_x = 4;
215
+ */
216
+ oX: number;
217
+
218
+ /**
219
+ * @generated from field: double o_y = 5;
220
+ */
221
+ oY: number;
222
+
223
+ /**
224
+ * @generated from field: double o_z = 6;
225
+ */
226
+ oZ: number;
227
+
228
+ /**
229
+ * @generated from field: double theta = 7;
230
+ */
231
+ theta: number;
232
+
233
+ constructor(data?: PartialMessage<PoseCloud>);
234
+
235
+ static readonly runtime: typeof proto3;
236
+ static readonly typeName = "viam.common.v1.PoseCloud";
237
+ static readonly fields: FieldList;
238
+
239
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoseCloud;
240
+
241
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoseCloud;
242
+
243
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoseCloud;
244
+
245
+ static equals(a: PoseCloud | PlainMessage<PoseCloud> | undefined, b: PoseCloud | PlainMessage<PoseCloud> | undefined): boolean;
246
+ }
247
+
194
248
  /**
195
249
  * PoseInFrame contains a pose and the reference frame in which it was observed
196
250
  *
@@ -207,6 +261,11 @@ export declare class PoseInFrame extends Message<PoseInFrame> {
207
261
  */
208
262
  pose?: Pose;
209
263
 
264
+ /**
265
+ * @generated from field: optional viam.common.v1.PoseCloud goal_cloud = 3;
266
+ */
267
+ goalCloud?: PoseCloud;
268
+
210
269
  constructor(data?: PartialMessage<PoseInFrame>);
211
270
 
212
271
  static readonly runtime: typeof proto3;
@@ -76,6 +76,23 @@ export declare class AnyValue extends Message<AnyValue> {
76
76
  */
77
77
  value: Uint8Array;
78
78
  case: "bytesValue";
79
+ } | {
80
+ /**
81
+ * Reference to the string value in ProfilesDictionary.string_table.
82
+ *
83
+ * Note: This is currently used exclusively in the Profiling signal.
84
+ * Implementers of OTLP receivers for signals other than Profiling should
85
+ * treat the presence of this value as a non-fatal issue.
86
+ * Log an error or warning indicating an unexpected field intended for the
87
+ * Profiling signal and process the data as if this value were absent or
88
+ * empty, ignoring its semantic content for the non-Profiling signal.
89
+ *
90
+ * Status: [Development]
91
+ *
92
+ * @generated from field: int32 string_value_strindex = 8;
93
+ */
94
+ value: number;
95
+ case: "stringValueStrindex";
79
96
  } | { case: undefined; value?: undefined };
80
97
 
81
98
  constructor(data?: PartialMessage<AnyValue>);
@@ -168,6 +185,7 @@ export declare class KeyValueList extends Message<KeyValueList> {
168
185
  export declare class KeyValue extends Message<KeyValue> {
169
186
  /**
170
187
  * The key name of the pair.
188
+ * key_ref MUST NOT be set if key is used.
171
189
  *
172
190
  * @generated from field: string key = 1;
173
191
  */
@@ -180,6 +198,23 @@ export declare class KeyValue extends Message<KeyValue> {
180
198
  */
181
199
  value?: AnyValue;
182
200
 
201
+ /**
202
+ * Reference to the string key in ProfilesDictionary.string_table.
203
+ * key MUST NOT be set if key_strindex is used.
204
+ *
205
+ * Note: This is currently used exclusively in the Profiling signal.
206
+ * Implementers of OTLP receivers for signals other than Profiling should
207
+ * treat the presence of this key as a non-fatal issue.
208
+ * Log an error or warning indicating an unexpected field intended for the
209
+ * Profiling signal and process the data as if this value were absent or
210
+ * empty, ignoring its semantic content for the non-Profiling signal.
211
+ *
212
+ * Status: [Development]
213
+ *
214
+ * @generated from field: int32 key_strindex = 3;
215
+ */
216
+ keyStrindex: number;
217
+
183
218
  constructor(data?: PartialMessage<KeyValue>);
184
219
 
185
220
  static readonly runtime: typeof proto3;
@@ -29,8 +29,6 @@ import type { AnyValue, InstrumentationScope, KeyValue } from "../../common/v1/c
29
29
  */
30
30
  export declare enum SeverityNumber {
31
31
  /**
32
- * UNSPECIFIED is the default SeverityNumber, it MUST NOT be used.
33
- *
34
32
  * @generated from enum value: SEVERITY_NUMBER_UNSPECIFIED = 0;
35
33
  */
36
34
  UNSPECIFIED = 0,
@@ -344,14 +344,19 @@ export declare class Profile extends Message<Profile> {
344
344
  samples: Sample[];
345
345
 
346
346
  /**
347
- * Time of collection (UTC) represented as nanoseconds past the epoch.
347
+ * Time of collection. Value is UNIX Epoch time in nanoseconds since 00:00:00
348
+ * UTC on 1 January 1970.
348
349
  *
349
350
  * @generated from field: fixed64 time_unix_nano = 3;
350
351
  */
351
352
  timeUnixNano: bigint;
352
353
 
353
354
  /**
354
- * Duration of the profile, if a duration makes sense.
355
+ * Duration of the profile. For instant profiles like live heap snapshot, the
356
+ * duration can be zero but it may be preferable to set time_unix_nano to the
357
+ * process start time and duration_nano to the relative time when the profile
358
+ * was gathered. This ensures Sample.timestamps_unix_nano values such as
359
+ * allocation timestamp fall into the profile time range.
355
360
  *
356
361
  * @generated from field: uint64 duration_nano = 4;
357
362
  */
@@ -530,7 +535,11 @@ export declare class ValueType extends Message<ValueType> {
530
535
  * both fields are populated, they MUST contain the same number of elements, and
531
536
  * the elements at the same index MUST refer to the same event.
532
537
  *
533
- * Examples of different ways of representing a sample with the total value of 10:
538
+ * For the purposes of efficiently representing aggregated data observations, a Sample is regarded
539
+ * as having a shared identity and an associated collection of per-observation data points.
540
+ * Samples having the same identity SHOULD be combined by inserting timestamps and values to the data arrays.
541
+ *
542
+ * Examples of different ways ('shapes') of representing a sample with the total value of 10:
534
543
  *
535
544
  * Report of a stacktrace at 10 timestamps (consumers must assume the value is 1 for each point):
536
545
  * values: []
@@ -544,6 +553,10 @@ export declare class ValueType extends Message<ValueType> {
544
553
  * values: [2, 2, 3, 3]
545
554
  * timestamps_unix_nano: [1, 2, 3, 4]
546
555
  *
556
+ * All Samples for a Profile SHOULD have the same shape, i.e. all data observation series should consistently
557
+ * adopt the same data recording style.
558
+ *
559
+ *
547
560
  * @generated from message opentelemetry.proto.profiles.v1development.Sample
548
561
  */
549
562
  export declare class Sample extends Message<Sample> {
@@ -554,17 +567,10 @@ export declare class Sample extends Message<Sample> {
554
567
  */
555
568
  stackIndex: number;
556
569
 
557
- /**
558
- * The type and unit of each value is defined by Profile.sample_type.
559
- *
560
- * @generated from field: repeated int64 values = 2;
561
- */
562
- values: bigint[];
563
-
564
570
  /**
565
571
  * References to attributes in ProfilesDictionary.attribute_table. [optional]
566
572
  *
567
- * @generated from field: repeated int32 attribute_indices = 3;
573
+ * @generated from field: repeated int32 attribute_indices = 2;
568
574
  */
569
575
  attributeIndices: number[];
570
576
 
@@ -572,13 +578,22 @@ export declare class Sample extends Message<Sample> {
572
578
  * Reference to link in ProfilesDictionary.link_table. [optional]
573
579
  * It can be unset / set to 0 if no link exists, as link_table[0] is always a 'null' default value.
574
580
  *
575
- * @generated from field: int32 link_index = 4;
581
+ * @generated from field: int32 link_index = 3;
576
582
  */
577
583
  linkIndex: number;
578
584
 
579
585
  /**
580
- * Timestamps associated with Sample represented in nanoseconds. These
581
- * timestamps should fall within the Profile's time range.
586
+ * The type and unit of each value is defined by Profile.sample_type.
587
+ *
588
+ * @generated from field: repeated int64 values = 4;
589
+ */
590
+ values: bigint[];
591
+
592
+ /**
593
+ * Timestamps associated with Sample. Value is UNIX Epoch time in nanoseconds
594
+ * since 00:00:00 UTC on 1 January 1970. The timestamps should fall within the
595
+ * [Profile.time_unix_nano, Profile.time_unix_nano + Profile.duration_nano)
596
+ * time range.
582
597
  *
583
598
  * @generated from field: repeated fixed64 timestamps_unix_nano = 5;
584
599
  */