@viamrobotics/sdk 0.52.1 → 0.53.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.
@@ -0,0 +1,146 @@
1
+ // @generated by protoc-gen-es v1.10.0
2
+ // @generated from file component/audioin/v1/audioin.proto (package viam.component.audioin.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct } from "@bufbuild/protobuf";
7
+ import { Message, proto3 } from "@bufbuild/protobuf";
8
+ import type { AudioInfo } from "../../../common/v1/common_pb.js";
9
+
10
+ /**
11
+ * @generated from message viam.component.audioin.v1.GetAudioRequest
12
+ */
13
+ export declare class GetAudioRequest extends Message<GetAudioRequest> {
14
+ /**
15
+ * @generated from field: string name = 1;
16
+ */
17
+ name: string;
18
+
19
+ /**
20
+ * Desired duration of audio stream
21
+ * If not set or set to 0, the stream is infinite
22
+ *
23
+ * @generated from field: float duration_seconds = 2;
24
+ */
25
+ durationSeconds: number;
26
+
27
+ /**
28
+ * Requested audio codec for the response (e.g., "mp3", "pcm16")
29
+ *
30
+ * @generated from field: string codec = 3;
31
+ */
32
+ codec: string;
33
+
34
+ /**
35
+ * To match a request to it's responses
36
+ *
37
+ * @generated from field: string request_id = 4;
38
+ */
39
+ requestId: string;
40
+
41
+ /**
42
+ * Timestamp of the previous audio chunk, in nanoseconds, used for resuming and continuity.
43
+ *
44
+ * @generated from field: int64 previous_timestamp_nanoseconds = 5;
45
+ */
46
+ previousTimestampNanoseconds: bigint;
47
+
48
+ /**
49
+ * @generated from field: google.protobuf.Struct extra = 99;
50
+ */
51
+ extra?: Struct;
52
+
53
+ constructor(data?: PartialMessage<GetAudioRequest>);
54
+
55
+ static readonly runtime: typeof proto3;
56
+ static readonly typeName = "viam.component.audioin.v1.GetAudioRequest";
57
+ static readonly fields: FieldList;
58
+
59
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAudioRequest;
60
+
61
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAudioRequest;
62
+
63
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAudioRequest;
64
+
65
+ static equals(a: GetAudioRequest | PlainMessage<GetAudioRequest> | undefined, b: GetAudioRequest | PlainMessage<GetAudioRequest> | undefined): boolean;
66
+ }
67
+
68
+ /**
69
+ * @generated from message viam.component.audioin.v1.GetAudioResponse
70
+ */
71
+ export declare class GetAudioResponse extends Message<GetAudioResponse> {
72
+ /**
73
+ * @generated from field: viam.component.audioin.v1.AudioChunk audio = 1;
74
+ */
75
+ audio?: AudioChunk;
76
+
77
+ /**
78
+ * @generated from field: string request_id = 2;
79
+ */
80
+ requestId: string;
81
+
82
+ constructor(data?: PartialMessage<GetAudioResponse>);
83
+
84
+ static readonly runtime: typeof proto3;
85
+ static readonly typeName = "viam.component.audioin.v1.GetAudioResponse";
86
+ static readonly fields: FieldList;
87
+
88
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAudioResponse;
89
+
90
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetAudioResponse;
91
+
92
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAudioResponse;
93
+
94
+ static equals(a: GetAudioResponse | PlainMessage<GetAudioResponse> | undefined, b: GetAudioResponse | PlainMessage<GetAudioResponse> | undefined): boolean;
95
+ }
96
+
97
+ /**
98
+ * @generated from message viam.component.audioin.v1.AudioChunk
99
+ */
100
+ export declare class AudioChunk extends Message<AudioChunk> {
101
+ /**
102
+ * Audio data for this chunk, encoded according to the requested codec.
103
+ *
104
+ * @generated from field: bytes audio_data = 1;
105
+ */
106
+ audioData: Uint8Array;
107
+
108
+ /**
109
+ * Info about the audio stream for this chunk
110
+ *
111
+ * @generated from field: viam.common.v1.AudioInfo audio_info = 2;
112
+ */
113
+ audioInfo?: AudioInfo;
114
+
115
+ /**
116
+ * @generated from field: int64 start_timestamp_nanoseconds = 3;
117
+ */
118
+ startTimestampNanoseconds: bigint;
119
+
120
+ /**
121
+ * @generated from field: int64 end_timestamp_nanoseconds = 4;
122
+ */
123
+ endTimestampNanoseconds: bigint;
124
+
125
+ /**
126
+ * Sequential chunk number
127
+ *
128
+ * @generated from field: int32 sequence = 5;
129
+ */
130
+ sequence: number;
131
+
132
+ constructor(data?: PartialMessage<AudioChunk>);
133
+
134
+ static readonly runtime: typeof proto3;
135
+ static readonly typeName = "viam.component.audioin.v1.AudioChunk";
136
+ static readonly fields: FieldList;
137
+
138
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioChunk;
139
+
140
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioChunk;
141
+
142
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioChunk;
143
+
144
+ static equals(a: AudioChunk | PlainMessage<AudioChunk> | undefined, b: AudioChunk | PlainMessage<AudioChunk> | undefined): boolean;
145
+ }
146
+
@@ -0,0 +1,64 @@
1
+ // @generated by protoc-gen-connect-es v1.5.0
2
+ // @generated from file component/audioout/v1/audioout.proto (package viam.component.audioout.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { PlayRequest, PlayResponse } from "./audioout_pb.js";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+ import { DoCommandRequest, DoCommandResponse, GetGeometriesRequest, GetGeometriesResponse, GetPropertiesRequest, GetPropertiesResponse } from "../../../common/v1/common_pb.js";
9
+
10
+ /**
11
+ * An AudioOutService services all audio outputs associated with a robot
12
+ *
13
+ * @generated from service viam.component.audioout.v1.AudioOutService
14
+ */
15
+ export declare const AudioOutService: {
16
+ readonly typeName: "viam.component.audioout.v1.AudioOutService",
17
+ readonly methods: {
18
+ /**
19
+ * Play plays audio from the audioout component.
20
+ *
21
+ * @generated from rpc viam.component.audioout.v1.AudioOutService.Play
22
+ */
23
+ readonly play: {
24
+ readonly name: "Play",
25
+ readonly I: typeof PlayRequest,
26
+ readonly O: typeof PlayResponse,
27
+ readonly kind: MethodKind.Unary,
28
+ },
29
+ /**
30
+ * GetProperties returns the properties of the audioout.
31
+ *
32
+ * @generated from rpc viam.component.audioout.v1.AudioOutService.GetProperties
33
+ */
34
+ readonly getProperties: {
35
+ readonly name: "GetProperties",
36
+ readonly I: typeof GetPropertiesRequest,
37
+ readonly O: typeof GetPropertiesResponse,
38
+ readonly kind: MethodKind.Unary,
39
+ },
40
+ /**
41
+ * DoCommand sends/receives arbitrary commands
42
+ *
43
+ * @generated from rpc viam.component.audioout.v1.AudioOutService.DoCommand
44
+ */
45
+ readonly doCommand: {
46
+ readonly name: "DoCommand",
47
+ readonly I: typeof DoCommandRequest,
48
+ readonly O: typeof DoCommandResponse,
49
+ readonly kind: MethodKind.Unary,
50
+ },
51
+ /**
52
+ * GetGeometries returns the geometries of the component in their current configuration
53
+ *
54
+ * @generated from rpc viam.component.audioout.v1.AudioOutService.GetGeometries
55
+ */
56
+ readonly getGeometries: {
57
+ readonly name: "GetGeometries",
58
+ readonly I: typeof GetGeometriesRequest,
59
+ readonly O: typeof GetGeometriesResponse,
60
+ readonly kind: MethodKind.Unary,
61
+ },
62
+ }
63
+ };
64
+
@@ -0,0 +1,69 @@
1
+ // @generated by protoc-gen-es v1.10.0
2
+ // @generated from file component/audioout/v1/audioout.proto (package viam.component.audioout.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct } from "@bufbuild/protobuf";
7
+ import { Message, proto3 } from "@bufbuild/protobuf";
8
+ import type { AudioInfo } from "../../../common/v1/common_pb.js";
9
+
10
+ /**
11
+ * @generated from message viam.component.audioout.v1.PlayRequest
12
+ */
13
+ export declare class PlayRequest extends Message<PlayRequest> {
14
+ /**
15
+ * @generated from field: string name = 1;
16
+ */
17
+ name: string;
18
+
19
+ /**
20
+ * @generated from field: bytes audio_data = 2;
21
+ */
22
+ audioData: Uint8Array;
23
+
24
+ /**
25
+ * Info describing the audio_data
26
+ *
27
+ * @generated from field: viam.common.v1.AudioInfo audio_info = 3;
28
+ */
29
+ audioInfo?: AudioInfo;
30
+
31
+ /**
32
+ * @generated from field: google.protobuf.Struct extra = 99;
33
+ */
34
+ extra?: Struct;
35
+
36
+ constructor(data?: PartialMessage<PlayRequest>);
37
+
38
+ static readonly runtime: typeof proto3;
39
+ static readonly typeName = "viam.component.audioout.v1.PlayRequest";
40
+ static readonly fields: FieldList;
41
+
42
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlayRequest;
43
+
44
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlayRequest;
45
+
46
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlayRequest;
47
+
48
+ static equals(a: PlayRequest | PlainMessage<PlayRequest> | undefined, b: PlayRequest | PlainMessage<PlayRequest> | undefined): boolean;
49
+ }
50
+
51
+ /**
52
+ * @generated from message viam.component.audioout.v1.PlayResponse
53
+ */
54
+ export declare class PlayResponse extends Message<PlayResponse> {
55
+ constructor(data?: PartialMessage<PlayResponse>);
56
+
57
+ static readonly runtime: typeof proto3;
58
+ static readonly typeName = "viam.component.audioout.v1.PlayResponse";
59
+ static readonly fields: FieldList;
60
+
61
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlayResponse;
62
+
63
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlayResponse;
64
+
65
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlayResponse;
66
+
67
+ static equals(a: PlayResponse | PlainMessage<PlayResponse> | undefined, b: PlayResponse | PlainMessage<PlayResponse> | undefined): boolean;
68
+ }
69
+
@@ -168,6 +168,22 @@ export declare class ListOperationsRequest extends Message<ListOperationsRequest
168
168
  */
169
169
  pageToken: string;
170
170
 
171
+ /**
172
+ * When set to `true`, operations that are reachable are returned as normal,
173
+ * and those that are unreachable are returned in the
174
+ * [ListOperationsResponse.unreachable] field.
175
+ *
176
+ * This can only be `true` when reading across collections e.g. when `parent`
177
+ * is set to `"projects/example/locations/-"`.
178
+ *
179
+ * This field is not by default supported and will result in an
180
+ * `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
181
+ * service or product specific documentation.
182
+ *
183
+ * @generated from field: bool return_partial_success = 5;
184
+ */
185
+ returnPartialSuccess: boolean;
186
+
171
187
  constructor(data?: PartialMessage<ListOperationsRequest>);
172
188
 
173
189
  static readonly runtime: typeof proto3;
@@ -204,6 +220,16 @@ export declare class ListOperationsResponse extends Message<ListOperationsRespon
204
220
  */
205
221
  nextPageToken: string;
206
222
 
223
+ /**
224
+ * Unordered list. Unreachable resources. Populated when the request sets
225
+ * `ListOperationsRequest.return_partial_success` and reads across
226
+ * collections e.g. when attempting to list all resources across all supported
227
+ * locations.
228
+ *
229
+ * @generated from field: repeated string unreachable = 3;
230
+ */
231
+ unreachable: string[];
232
+
207
233
  constructor(data?: PartialMessage<ListOperationsResponse>);
208
234
 
209
235
  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, RobotClient as Client, createRobotClient, type CloudMetadata, type DialConf, type DialDirectConf, type DialWebRTCConf, type Robot, } from './robot';
2
+ export { RobotClient as Client, createRobotClient, RobotClient, type CloudMetadata, type DialConf, type DialDirectConf, type DialWebRTCConf, type Robot, } from './robot';
3
3
  /**
4
4
  * Raw Protobuf interfaces for a Robot component.
5
5
  *
@@ -10,8 +10,8 @@ export { RobotClient, RobotClient as Client, createRobotClient, type CloudMetada
10
10
  */
11
11
  export * as robotApi from './gen/robot/v1/robot_pb';
12
12
  export { createViamClient, type ViamClient, type ViamClientOptions, } from './app/viam-client';
13
- export { type AccessToken, type Credential, type CredentialType, type Credentials, } from './app/viam-transport';
14
- export { type BinaryID, type DataClient, type FilterOptions, } from './app/data-client';
13
+ export { type AccessToken, type Credential, type Credentials, type CredentialType, } from './app/viam-transport';
14
+ export { type BinaryID, type DataClient, type FilterOptions, type IndexableCollection, } from './app/data-client';
15
15
  /**
16
16
  * Raw Protobuf interfaces for Data.
17
17
  *
@@ -63,6 +63,9 @@ export { type BillingClient } from './app/billing-client';
63
63
  */
64
64
  export * as billingApi from './gen/app/v1/billing_pb';
65
65
  export { ArmClient, ArmJointPositions, type Arm } from './components/arm';
66
+ export { AudioInClient, type AudioIn, type AudioChunk, } from './components/audioin';
67
+ export { AudioOutClient, type AudioOut } from './components/audioout';
68
+ export { AudioCodec, type AudioCodecType, type AudioProperties, } from './audio-common';
66
69
  /**
67
70
  * Raw Protobuf interfaces for an Arm component.
68
71
  *
@@ -142,7 +145,7 @@ export { GantryClient, type Gantry } from './components/gantry';
142
145
  * @group Raw Protobufs
143
146
  */
144
147
  export * as gantryApi from './gen/component/gantry/v1/gantry_pb';
145
- export { MLModelClient, type MLModel, type Metadata, type TensorInfo, type FlatTensors, } from './services/ml-model';
148
+ export { MLModelClient, type FlatTensors, type Metadata, type MLModel, type TensorInfo, } from './services/ml-model';
146
149
  export { MotorClient, type Motor } from './components/motor';
147
150
  /**
148
151
  * Raw Protobuf interfaces for a Motor component.