@viamrobotics/sdk 0.72.0 → 0.73.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.
@@ -6,6 +6,65 @@
6
6
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
7
7
  import { Message, proto3 } from "@bufbuild/protobuf";
8
8
 
9
+ /**
10
+ * DatasetType describes the kind of membership a dataset stores.
11
+ * buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
12
+ *
13
+ * @generated from enum viam.app.dataset.v1.DatasetType
14
+ */
15
+ export declare enum DatasetType {
16
+ /**
17
+ * DATASET_TYPE_BINARY_DATA is a dataset whose members are individual binary data objects (frames).
18
+ * This is the default for datasets created without an explicit type, including all pre-existing
19
+ * datasets.
20
+ *
21
+ * @generated from enum value: DATASET_TYPE_BINARY_DATA = 0;
22
+ */
23
+ BINARY_DATA = 0,
24
+
25
+ /**
26
+ * DATASET_TYPE_SEQUENCE_DATA is a dataset whose members are sequences. Binary-data writes
27
+ * (AddBinaryDataToDatasetByIDs, AddBinaryDataToDatasetByFilter) are rejected against datasets
28
+ * of this type; sequences are added/removed via AddSequencesToDataset / RemoveSequencesFromDataset.
29
+ *
30
+ * @generated from enum value: DATASET_TYPE_SEQUENCE_DATA = 1;
31
+ */
32
+ SEQUENCE_DATA = 1,
33
+ }
34
+
35
+ /**
36
+ * SequenceDatasetExportStatus is the lifecycle state of an export job.
37
+ *
38
+ * @generated from enum viam.app.dataset.v1.SequenceDatasetExportStatus
39
+ */
40
+ export declare enum SequenceDatasetExportStatus {
41
+ /**
42
+ * @generated from enum value: SEQUENCE_DATASET_EXPORT_STATUS_UNSPECIFIED = 0;
43
+ */
44
+ UNSPECIFIED = 0,
45
+
46
+ /**
47
+ * PENDING — accepted, not yet picked up.
48
+ *
49
+ * @generated from enum value: SEQUENCE_DATASET_EXPORT_STATUS_RUNNING = 1;
50
+ */
51
+ RUNNING = 1,
52
+
53
+ /**
54
+ * COMPLETED — Parquet file is uploaded; download_url is set.
55
+ *
56
+ * @generated from enum value: SEQUENCE_DATASET_EXPORT_STATUS_COMPLETED = 2;
57
+ */
58
+ COMPLETED = 2,
59
+
60
+ /**
61
+ * FAILED — terminal; error_message describes the cause.
62
+ *
63
+ * @generated from enum value: SEQUENCE_DATASET_EXPORT_STATUS_FAILED = 3;
64
+ */
65
+ FAILED = 3,
66
+ }
67
+
9
68
  /**
10
69
  * Dataset stores the metadata of a dataset.
11
70
  *
@@ -32,6 +91,14 @@ export declare class Dataset extends Message<Dataset> {
32
91
  */
33
92
  timeCreated?: Timestamp;
34
93
 
94
+ /**
95
+ * type is the membership kind of this dataset. Immutable after creation; defaults to
96
+ * DATASET_TYPE_BINARY_DATA when unset (including for pre-existing datasets).
97
+ *
98
+ * @generated from field: viam.app.dataset.v1.DatasetType type = 5;
99
+ */
100
+ type: DatasetType;
101
+
35
102
  constructor(data?: PartialMessage<Dataset>);
36
103
 
37
104
  static readonly runtime: typeof proto3;
@@ -63,6 +130,13 @@ export declare class CreateDatasetRequest extends Message<CreateDatasetRequest>
63
130
  */
64
131
  organizationId: string;
65
132
 
133
+ /**
134
+ * type is the membership kind for the new dataset. Defaults to DATASET_TYPE_BINARY_DATA when unset.
135
+ *
136
+ * @generated from field: optional viam.app.dataset.v1.DatasetType type = 3;
137
+ */
138
+ type?: DatasetType;
139
+
66
140
  constructor(data?: PartialMessage<CreateDatasetRequest>);
67
141
 
68
142
  static readonly runtime: typeof proto3;
@@ -200,7 +274,8 @@ export declare class RenameDatasetResponse extends Message<RenameDatasetResponse
200
274
  }
201
275
 
202
276
  /**
203
- * ListDatasetsByOrganizationIDRequest requests all of the datasets for an organization.
277
+ * ListDatasetsByOrganizationIDRequest requests all of the datasets for an organization,
278
+ * optionally filtering on DatasetType
204
279
  *
205
280
  * @generated from message viam.app.dataset.v1.ListDatasetsByOrganizationIDRequest
206
281
  */
@@ -210,6 +285,14 @@ export declare class ListDatasetsByOrganizationIDRequest extends Message<ListDat
210
285
  */
211
286
  organizationId: string;
212
287
 
288
+ /**
289
+ * Optional DataseType to filter on.
290
+ * If unset, will return all types.
291
+ *
292
+ * @generated from field: optional viam.app.dataset.v1.DatasetType type = 2;
293
+ */
294
+ type?: DatasetType;
295
+
213
296
  constructor(data?: PartialMessage<ListDatasetsByOrganizationIDRequest>);
214
297
 
215
298
  static readonly runtime: typeof proto3;
@@ -365,3 +448,146 @@ export declare class MergeDatasetsResponse extends Message<MergeDatasetsResponse
365
448
  static equals(a: MergeDatasetsResponse | PlainMessage<MergeDatasetsResponse> | undefined, b: MergeDatasetsResponse | PlainMessage<MergeDatasetsResponse> | undefined): boolean;
366
449
  }
367
450
 
451
+ /**
452
+ * StartSequenceDatasetExportRequest specifies the sequence dataset to export.
453
+ *
454
+ * @generated from message viam.app.dataset.v1.StartSequenceDatasetExportRequest
455
+ */
456
+ export declare class StartSequenceDatasetExportRequest extends Message<StartSequenceDatasetExportRequest> {
457
+ /**
458
+ * @generated from field: string dataset_id = 1;
459
+ */
460
+ datasetId: string;
461
+
462
+ constructor(data?: PartialMessage<StartSequenceDatasetExportRequest>);
463
+
464
+ static readonly runtime: typeof proto3;
465
+ static readonly typeName = "viam.app.dataset.v1.StartSequenceDatasetExportRequest";
466
+ static readonly fields: FieldList;
467
+
468
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartSequenceDatasetExportRequest;
469
+
470
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartSequenceDatasetExportRequest;
471
+
472
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartSequenceDatasetExportRequest;
473
+
474
+ static equals(a: StartSequenceDatasetExportRequest | PlainMessage<StartSequenceDatasetExportRequest> | undefined, b: StartSequenceDatasetExportRequest | PlainMessage<StartSequenceDatasetExportRequest> | undefined): boolean;
475
+ }
476
+
477
+ /**
478
+ * StartSequenceDatasetExportResponse returns the job_id to poll with
479
+ *
480
+ * @generated from message viam.app.dataset.v1.StartSequenceDatasetExportResponse
481
+ */
482
+ export declare class StartSequenceDatasetExportResponse extends Message<StartSequenceDatasetExportResponse> {
483
+ /**
484
+ * @generated from field: string job_id = 1;
485
+ */
486
+ jobId: string;
487
+
488
+ constructor(data?: PartialMessage<StartSequenceDatasetExportResponse>);
489
+
490
+ static readonly runtime: typeof proto3;
491
+ static readonly typeName = "viam.app.dataset.v1.StartSequenceDatasetExportResponse";
492
+ static readonly fields: FieldList;
493
+
494
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartSequenceDatasetExportResponse;
495
+
496
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartSequenceDatasetExportResponse;
497
+
498
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartSequenceDatasetExportResponse;
499
+
500
+ static equals(a: StartSequenceDatasetExportResponse | PlainMessage<StartSequenceDatasetExportResponse> | undefined, b: StartSequenceDatasetExportResponse | PlainMessage<StartSequenceDatasetExportResponse> | undefined): boolean;
501
+ }
502
+
503
+ /**
504
+ * GetSequenceDatasetExportRequest looks up an export job by its job_id.
505
+ *
506
+ * @generated from message viam.app.dataset.v1.GetSequenceDatasetExportRequest
507
+ */
508
+ export declare class GetSequenceDatasetExportRequest extends Message<GetSequenceDatasetExportRequest> {
509
+ /**
510
+ * @generated from field: string job_id = 1;
511
+ */
512
+ jobId: string;
513
+
514
+ constructor(data?: PartialMessage<GetSequenceDatasetExportRequest>);
515
+
516
+ static readonly runtime: typeof proto3;
517
+ static readonly typeName = "viam.app.dataset.v1.GetSequenceDatasetExportRequest";
518
+ static readonly fields: FieldList;
519
+
520
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSequenceDatasetExportRequest;
521
+
522
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSequenceDatasetExportRequest;
523
+
524
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSequenceDatasetExportRequest;
525
+
526
+ static equals(a: GetSequenceDatasetExportRequest | PlainMessage<GetSequenceDatasetExportRequest> | undefined, b: GetSequenceDatasetExportRequest | PlainMessage<GetSequenceDatasetExportRequest> | undefined): boolean;
527
+ }
528
+
529
+ /**
530
+ * GetSequenceDatasetExportResponse reports the current status of an export
531
+ * job. download_url and expires_at are set only when status is COMPLETED;
532
+ * error_message is set only when status is FAILED.
533
+ *
534
+ * @generated from message viam.app.dataset.v1.GetSequenceDatasetExportResponse
535
+ */
536
+ export declare class GetSequenceDatasetExportResponse extends Message<GetSequenceDatasetExportResponse> {
537
+ /**
538
+ * @generated from field: string job_id = 1;
539
+ */
540
+ jobId: string;
541
+
542
+ /**
543
+ * @generated from field: viam.app.dataset.v1.SequenceDatasetExportStatus status = 2;
544
+ */
545
+ status: SequenceDatasetExportStatus;
546
+
547
+ /**
548
+ * Short-lived (e.g. 1h) signed URL for direct download from backing
549
+ * storage. Empty unless status is COMPLETED.
550
+ *
551
+ * @generated from field: string download_url = 3;
552
+ */
553
+ downloadUrl: string;
554
+
555
+ /**
556
+ * When download_url stops working. Empty unless status is COMPLETED.
557
+ *
558
+ * @generated from field: google.protobuf.Timestamp expires_at = 4;
559
+ */
560
+ expiresAt?: Timestamp;
561
+
562
+ /**
563
+ * Human-readable cause; empty unless status is FAILED.
564
+ *
565
+ * @generated from field: string error_message = 5;
566
+ */
567
+ errorMessage: string;
568
+
569
+ /**
570
+ * @generated from field: google.protobuf.Timestamp created_at = 6;
571
+ */
572
+ createdAt?: Timestamp;
573
+
574
+ /**
575
+ * @generated from field: google.protobuf.Timestamp completed_at = 7;
576
+ */
577
+ completedAt?: Timestamp;
578
+
579
+ constructor(data?: PartialMessage<GetSequenceDatasetExportResponse>);
580
+
581
+ static readonly runtime: typeof proto3;
582
+ static readonly typeName = "viam.app.dataset.v1.GetSequenceDatasetExportResponse";
583
+ static readonly fields: FieldList;
584
+
585
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSequenceDatasetExportResponse;
586
+
587
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSequenceDatasetExportResponse;
588
+
589
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSequenceDatasetExportResponse;
590
+
591
+ static equals(a: GetSequenceDatasetExportResponse | PlainMessage<GetSequenceDatasetExportResponse> | undefined, b: GetSequenceDatasetExportResponse | PlainMessage<GetSequenceDatasetExportResponse> | undefined): boolean;
592
+ }
593
+
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { PlayRequest, PlayResponse } from "./audioout_pb.js";
6
+ import { PlayRequest, PlayResponse, PlayStreamRequest, PlayStreamResponse } from "./audioout_pb.js";
7
7
  import { MethodKind } from "@bufbuild/protobuf";
8
8
  import { DoCommandRequest, DoCommandResponse, GetGeometriesRequest, GetGeometriesResponse, GetPropertiesRequest, GetPropertiesResponse, GetStatusRequest, GetStatusResponse } from "../../../common/v1/common_pb.js";
9
9
 
@@ -26,6 +26,20 @@ export declare const AudioOutService: {
26
26
  readonly O: typeof PlayResponse,
27
27
  readonly kind: MethodKind.Unary,
28
28
  },
29
+ /**
30
+ * PlayStream streams audio chunks to the audioout component for playback.
31
+ * The first message on the stream must be a PlayStreamInit containing the
32
+ * component name and AudioInfo describing the audio format; subsequent
33
+ * messages must be PlayStreamChunk payloads.
34
+ *
35
+ * @generated from rpc viam.component.audioout.v1.AudioOutService.PlayStream
36
+ */
37
+ readonly playStream: {
38
+ readonly name: "PlayStream",
39
+ readonly I: typeof PlayStreamRequest,
40
+ readonly O: typeof PlayStreamResponse,
41
+ readonly kind: MethodKind.ClientStreaming,
42
+ },
29
43
  /**
30
44
  * GetProperties returns the properties of the audioout.
31
45
  *
@@ -48,6 +48,102 @@ export declare class PlayRequest extends Message<PlayRequest> {
48
48
  static equals(a: PlayRequest | PlainMessage<PlayRequest> | undefined, b: PlayRequest | PlainMessage<PlayRequest> | undefined): boolean;
49
49
  }
50
50
 
51
+ /**
52
+ * @generated from message viam.component.audioout.v1.PlayStreamRequest
53
+ */
54
+ export declare class PlayStreamRequest extends Message<PlayStreamRequest> {
55
+ /**
56
+ * @generated from oneof viam.component.audioout.v1.PlayStreamRequest.payload
57
+ */
58
+ payload: {
59
+ /**
60
+ * sent on first message
61
+ *
62
+ * @generated from field: viam.component.audioout.v1.PlayStreamInit init = 1;
63
+ */
64
+ value: PlayStreamInit;
65
+ case: "init";
66
+ } | {
67
+ /**
68
+ * @generated from field: viam.component.audioout.v1.PlayStreamChunk audio_chunk = 2;
69
+ */
70
+ value: PlayStreamChunk;
71
+ case: "audioChunk";
72
+ } | { case: undefined; value?: undefined };
73
+
74
+ constructor(data?: PartialMessage<PlayStreamRequest>);
75
+
76
+ static readonly runtime: typeof proto3;
77
+ static readonly typeName = "viam.component.audioout.v1.PlayStreamRequest";
78
+ static readonly fields: FieldList;
79
+
80
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlayStreamRequest;
81
+
82
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlayStreamRequest;
83
+
84
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlayStreamRequest;
85
+
86
+ static equals(a: PlayStreamRequest | PlainMessage<PlayStreamRequest> | undefined, b: PlayStreamRequest | PlainMessage<PlayStreamRequest> | undefined): boolean;
87
+ }
88
+
89
+ /**
90
+ * @generated from message viam.component.audioout.v1.PlayStreamChunk
91
+ */
92
+ export declare class PlayStreamChunk extends Message<PlayStreamChunk> {
93
+ /**
94
+ * @generated from field: bytes audio_data = 1;
95
+ */
96
+ audioData: Uint8Array;
97
+
98
+ constructor(data?: PartialMessage<PlayStreamChunk>);
99
+
100
+ static readonly runtime: typeof proto3;
101
+ static readonly typeName = "viam.component.audioout.v1.PlayStreamChunk";
102
+ static readonly fields: FieldList;
103
+
104
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlayStreamChunk;
105
+
106
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlayStreamChunk;
107
+
108
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlayStreamChunk;
109
+
110
+ static equals(a: PlayStreamChunk | PlainMessage<PlayStreamChunk> | undefined, b: PlayStreamChunk | PlainMessage<PlayStreamChunk> | undefined): boolean;
111
+ }
112
+
113
+ /**
114
+ * @generated from message viam.component.audioout.v1.PlayStreamInit
115
+ */
116
+ export declare class PlayStreamInit extends Message<PlayStreamInit> {
117
+ /**
118
+ * @generated from field: string name = 1;
119
+ */
120
+ name: string;
121
+
122
+ /**
123
+ * @generated from field: viam.common.v1.AudioInfo audio_info = 2;
124
+ */
125
+ audioInfo?: AudioInfo;
126
+
127
+ /**
128
+ * @generated from field: google.protobuf.Struct extra = 99;
129
+ */
130
+ extra?: Struct;
131
+
132
+ constructor(data?: PartialMessage<PlayStreamInit>);
133
+
134
+ static readonly runtime: typeof proto3;
135
+ static readonly typeName = "viam.component.audioout.v1.PlayStreamInit";
136
+ static readonly fields: FieldList;
137
+
138
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlayStreamInit;
139
+
140
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlayStreamInit;
141
+
142
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlayStreamInit;
143
+
144
+ static equals(a: PlayStreamInit | PlainMessage<PlayStreamInit> | undefined, b: PlayStreamInit | PlainMessage<PlayStreamInit> | undefined): boolean;
145
+ }
146
+
51
147
  /**
52
148
  * @generated from message viam.component.audioout.v1.PlayResponse
53
149
  */
@@ -67,3 +163,22 @@ export declare class PlayResponse extends Message<PlayResponse> {
67
163
  static equals(a: PlayResponse | PlainMessage<PlayResponse> | undefined, b: PlayResponse | PlainMessage<PlayResponse> | undefined): boolean;
68
164
  }
69
165
 
166
+ /**
167
+ * @generated from message viam.component.audioout.v1.PlayStreamResponse
168
+ */
169
+ export declare class PlayStreamResponse extends Message<PlayStreamResponse> {
170
+ constructor(data?: PartialMessage<PlayStreamResponse>);
171
+
172
+ static readonly runtime: typeof proto3;
173
+ static readonly typeName = "viam.component.audioout.v1.PlayStreamResponse";
174
+ static readonly fields: FieldList;
175
+
176
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlayStreamResponse;
177
+
178
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlayStreamResponse;
179
+
180
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlayStreamResponse;
181
+
182
+ static equals(a: PlayStreamResponse | PlainMessage<PlayStreamResponse> | undefined, b: PlayStreamResponse | PlainMessage<PlayStreamResponse> | undefined): boolean;
183
+ }
184
+
package/dist/main.d.ts CHANGED
@@ -11,7 +11,7 @@ export { RobotClient as Client, createRobotClient, RobotClient, type CloudMetada
11
11
  export * as robotApi from './gen/robot/v1/robot_pb';
12
12
  export { createViamClient, type ViamClient, type ViamClientOptions, } from './app/viam-client';
13
13
  export { type AccessToken, type Credential, type Credentials, type CredentialType, } from './app/viam-transport';
14
- export { type BinaryDataCaptureUploadOptions, type BinaryID, type DataClient, type FilterOptions, type IndexableCollection, type Sequence, type SequenceResourceFilter, } from './app/data-client';
14
+ export { type BinaryDataCaptureUploadOptions, type BinaryID, type DataClient, DatasetType, type FilterOptions, type GetSequenceDatasetExportResponse, type IndexableCollection, type Sequence, SequenceDatasetExportStatus, type SequenceResourceFilter, } from './app/data-client';
15
15
  /**
16
16
  * Raw Protobuf interfaces for Data.
17
17
  *