@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.
@@ -1 +1 @@
1
- export declare const apiVersion = "v0.1.479";
1
+ export declare const apiVersion = "v0.1.483";
@@ -1,6 +1,6 @@
1
1
  import { type JsonValue } from '@bufbuild/protobuf';
2
2
  import { type Client, type Transport } from '@connectrpc/connect';
3
- import { BinaryID, CaptureMetadata, Filter, Order, TabularDataSource, TabularDataSourceType } from '../gen/app/data/v1/data_pb';
3
+ import { BinaryID, CaptureMetadata, Filter, Index, IndexableCollection, Order, TabularDataSource, TabularDataSourceType } 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';
@@ -68,7 +68,7 @@ export declare class DataClient {
68
68
  private datasetClient;
69
69
  private dataSyncClient;
70
70
  private dataPipelinesClient;
71
- static readonly UPLOAD_CHUNK_SIZE = 8;
71
+ static readonly UPLOAD_CHUNK_SIZE: number;
72
72
  constructor(transport: Transport);
73
73
  /**
74
74
  * Obtain unified tabular data and metadata from the specified data source.
@@ -155,9 +155,10 @@ export declare class DataClient {
155
155
  * store. Defaults to false. Deprecated - use dataSource instead.
156
156
  * @param dataSource The data source to query. Defaults to the standard data
157
157
  * source.
158
+ * @param queryPrefixName Optional name of the query prefix.
158
159
  * @returns An array of data objects
159
160
  */
160
- tabularDataByMQL(organizationId: string, query: Uint8Array[] | Record<string, Date | JsonValue>[], useRecentData?: boolean, tabularDataSource?: TabularDataSource): Promise<(Object | any[])[]>;
161
+ tabularDataByMQL(organizationId: string, query: Uint8Array[] | Record<string, Date | JsonValue>[], useRecentData?: boolean, tabularDataSource?: TabularDataSource, queryPrefixName?: string): Promise<(Object | any[])[]>;
161
162
  /**
162
163
  * Filter and get a page of tabular data. The returned metadata might be empty
163
164
  * if the metadata index of the data is out of the bounds of the returned
@@ -910,6 +911,7 @@ export declare class DataClient {
910
911
  * @param query The MQL query to run as a list of BSON documents
911
912
  * @param schedule The schedule to run the query on (cron expression)
912
913
  * @param dataSourceType The type of data source to use for the data pipeline
914
+ * @param enableBackfill Whether to enable backfill for the data pipeline
913
915
  * @returns The ID of the created data pipeline
914
916
  */
915
917
  createDataPipeline(organizationId: string, name: string, query: Uint8Array[] | Record<string, Date | JsonValue>[], schedule: string, enableBackfill: boolean, dataSourceType?: TabularDataSourceType): Promise<string>;
@@ -950,6 +952,69 @@ export declare class DataClient {
950
952
  * @returns A page of data pipeline runs
951
953
  */
952
954
  listDataPipelineRuns(pipelineId: string, pageSize?: number): Promise<ListDataPipelineRunsPage>;
955
+ /**
956
+ * CreateIndex starts a custom index build
957
+ *
958
+ * @example
959
+ *
960
+ * ```ts
961
+ * await dataClient.createIndex(
962
+ * '123abc45-1234-5678-90ab-cdef12345678',
963
+ * IndexableCollection.HOT_STORE,
964
+ * [new TextEncoder().encode(JSON.stringify({ field: 1 }))]
965
+ * );
966
+ * ```
967
+ *
968
+ * @param organizationId The ID of the organization
969
+ * @param collectionType The type of collection to create the index on
970
+ * @param indexSpec The MongoDB index specification in JSON format, as a
971
+ * Uint8Array
972
+ * @param pipelineName Optional name of the pipeline if collectionType is
973
+ * PIPELINE_SINK
974
+ */
975
+ createIndex(organizationId: string, collectionType: IndexableCollection, indexSpec: {
976
+ keys: Record<string, number>;
977
+ options?: Record<string, unknown>;
978
+ }, pipelineName?: string): Promise<void>;
979
+ /**
980
+ * ListIndexes returns all the indexes for a given collection
981
+ *
982
+ * @example
983
+ *
984
+ * ```ts
985
+ * const indexes = await dataClient.listIndexes(
986
+ * '123abc45-1234-5678-90ab-cdef12345678',
987
+ * IndexableCollection.HOT_STORE
988
+ * );
989
+ * ```
990
+ *
991
+ * @param organizationId The ID of the organization
992
+ * @param collectionType The type of collection to list indexes for
993
+ * @param pipelineName Optional name of the pipeline if collectionType is
994
+ * PIPELINE_SINK
995
+ * @returns An array of indexes
996
+ */
997
+ listIndexes(organizationId: string, collectionType: IndexableCollection, pipelineName?: string): Promise<Index[]>;
998
+ /**
999
+ * DeleteIndex drops the specified custom index from a collection
1000
+ *
1001
+ * @example
1002
+ *
1003
+ * ```ts
1004
+ * await dataClient.deleteIndex(
1005
+ * '123abc45-1234-5678-90ab-cdef12345678',
1006
+ * IndexableCollection.HOT_STORE,
1007
+ * 'my_index'
1008
+ * );
1009
+ * ```
1010
+ *
1011
+ * @param organizationId The ID of the organization
1012
+ * @param collectionType The type of collection to delete the index from
1013
+ * @param indexName The name of the index to delete
1014
+ * @param pipelineName Optional name of the pipeline if collectionType is
1015
+ * PIPELINE_SINK
1016
+ */
1017
+ deleteIndex(organizationId: string, collectionType: IndexableCollection, indexName: string, pipelineName?: string): Promise<void>;
953
1018
  }
954
1019
  export declare class ListDataPipelineRunsPage {
955
1020
  private readonly dataPipelinesClient;
@@ -974,5 +1039,5 @@ export declare class ListDataPipelineRunsPage {
974
1039
  */
975
1040
  nextPage(): Promise<ListDataPipelineRunsPage>;
976
1041
  }
977
- export { type BinaryID, type Order } from '../gen/app/data/v1/data_pb';
1042
+ export { type BinaryID, type IndexableCollection, type Order, } from '../gen/app/data/v1/data_pb';
978
1043
  export { type UploadMetadata } from '../gen/app/datasync/v1/data_sync_pb';
@@ -0,0 +1,20 @@
1
+ export interface AudioProperties {
2
+ /** List of audio codecs supported by the device */
3
+ supportedCodecs: string[];
4
+ /** Current sample rate in Hz */
5
+ sampleRateHz: number;
6
+ /** Maximum number of audio channels supported (e.g., 1 for mono, 2 for stereo) */
7
+ numChannels: number;
8
+ }
9
+ /** Common audio codec constants */
10
+ export declare const AudioCodec: {
11
+ readonly MP3: "mp3";
12
+ readonly PCM16: "pcm16";
13
+ readonly PCM32: "pcm32";
14
+ readonly PCM32_FLOAT: "pcm32float";
15
+ readonly AAC: "aac";
16
+ readonly OPUS: "opus";
17
+ readonly FLAC: "flac";
18
+ readonly WAV: "wav";
19
+ };
20
+ export type AudioCodecType = (typeof AudioCodec)[keyof typeof AudioCodec];
@@ -0,0 +1,36 @@
1
+ import type { Resource, Struct } from '../../types';
2
+ import type { AudioInfo } from '../../gen/common/v1/common_pb';
3
+ import type { AudioProperties } from '../../audio-common';
4
+ export interface AudioChunk {
5
+ audioData: Uint8Array;
6
+ audioInfo?: AudioInfo;
7
+ startTimeNs: bigint;
8
+ endTimeNs: bigint;
9
+ sequence: number;
10
+ requestID: string;
11
+ }
12
+ /** Represents a device that takes audio input. */
13
+ export interface AudioIn extends Resource {
14
+ /**
15
+ * Stream audio from the device.
16
+ *
17
+ * @example
18
+ *
19
+ * ```ts
20
+ * const audioIn = new VIAM.AudioInClient(machine, 'my_audio_in');
21
+ * const stream = audioIn.getAudio(VIAM.AudioCodec.PCM16, 3, 0n, {});
22
+ * ```
23
+ */
24
+ getAudio(codec: string, durationSeconds: number, previousTimestamp?: bigint, extra?: Struct): AsyncIterable<AudioChunk>;
25
+ /**
26
+ * Return the audio input properties.
27
+ *
28
+ * @example
29
+ *
30
+ * ```ts
31
+ * const audioIn = new VIAM.AudioInClient(machine, 'my_audio_in');
32
+ * const properties = await audioIn.getProperties();
33
+ * ```
34
+ */
35
+ getProperties: () => Promise<AudioProperties>;
36
+ }
@@ -0,0 +1,19 @@
1
+ import type { RobotClient } from '../../robot';
2
+ import type { Options } from '../../types';
3
+ import { Struct, type JsonValue } from '@bufbuild/protobuf';
4
+ import type { CallOptions } from '@connectrpc/connect';
5
+ import { type AudioIn, type AudioChunk } from './audio-in';
6
+ export declare class AudioInClient implements AudioIn {
7
+ private client;
8
+ readonly name: string;
9
+ private readonly options;
10
+ callOptions: CallOptions;
11
+ constructor(client: RobotClient, name: string, options?: Options);
12
+ getAudio(codec: string, durationSeconds: number, previousTimestamp?: bigint, extra?: {}, callOptions?: CallOptions): AsyncIterable<AudioChunk>;
13
+ getProperties(callOptions?: CallOptions): Promise<{
14
+ supportedCodecs: string[];
15
+ sampleRateHz: number;
16
+ numChannels: number;
17
+ }>;
18
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
19
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,34 @@
1
+ import type { Resource, Struct } from '../../types';
2
+ import type { AudioInfo } from '../../gen/common/v1/common_pb';
3
+ import type { AudioProperties } from '../../audio-common';
4
+ /** Represents a device that outputs audio. */
5
+ export interface AudioOut extends Resource {
6
+ /**
7
+ * Play audio on the device.
8
+ *
9
+ * @example
10
+ *
11
+ * ```ts
12
+ * const audioOut = new VIAM.AudioOutClient(machine, 'my_audio_out');
13
+ * const audioData = new Uint8Array([...]); // Your audio data
14
+ * const audioInfo = { codec: 'pcm16', sampleRateHz: 48000, numChannels: 2 };
15
+ * await audioOut.play(audioData, audioInfo);
16
+ * ```
17
+ *
18
+ * @param audioData - The audio data to play
19
+ * @param audioInfo - Information about the audio format (optional, required
20
+ * for raw pcm data)
21
+ */
22
+ play: (audioData: Uint8Array, audioInfo?: AudioInfo, extra?: Struct) => Promise<void>;
23
+ /**
24
+ * Return the audio output properties.
25
+ *
26
+ * @example
27
+ *
28
+ * ```ts
29
+ * const audioOut = new VIAM.AudioOutClient(machine, 'my_audio_out');
30
+ * const properties = await audioOut.getProperties();
31
+ * ```
32
+ */
33
+ getProperties: () => Promise<AudioProperties>;
34
+ }
@@ -0,0 +1,25 @@
1
+ import type { RobotClient } from '../../robot';
2
+ import type { Options } from '../../types';
3
+ import { Struct, type JsonValue } from '@bufbuild/protobuf';
4
+ import type { CallOptions } from '@connectrpc/connect';
5
+ import { type AudioInfo } from '../../gen/common/v1/common_pb';
6
+ import { type AudioOut } from './audio-out';
7
+ /**
8
+ * A gRPC-web client for the AudioOut component.
9
+ *
10
+ * @group Clients
11
+ */
12
+ export declare class AudioOutClient implements AudioOut {
13
+ private client;
14
+ readonly name: string;
15
+ private readonly options;
16
+ callOptions: CallOptions;
17
+ constructor(client: RobotClient, name: string, options?: Options);
18
+ play(audioData: Uint8Array, audioInfo?: AudioInfo, extra?: {}, callOptions?: CallOptions): Promise<void>;
19
+ getProperties(callOptions?: CallOptions): Promise<{
20
+ supportedCodecs: string[];
21
+ sampleRateHz: number;
22
+ numChannels: number;
23
+ }>;
24
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
25
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export { type AudioIn, type AudioChunk } from './audio-in/audio-in';
2
+ export { AudioInClient } from './audio-in/client';
3
+ export { type AudioProperties, AudioCodec, type AudioCodecType, } from '../audio-common';
@@ -0,0 +1,3 @@
1
+ export { type AudioOut } from './audio-out/audio-out';
2
+ export { AudioOutClient } from './audio-out/client';
3
+ export { type AudioProperties, AudioCodec, type AudioCodecType, } from '../audio-common';
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { GetLogsRequest, GetLogsResponse, LinkOrgRequest, LinkOrgResponse, LinkRepoRequest, LinkRepoResponse, ListAppLinksRequest, ListAppLinksResponse, ListJobsRequest, ListJobsResponse, ListRepoLinksRequest, ListRepoLinksResponse, RemoveAppLinkRequest, RemoveAppLinkResponse, StartBuildRequest, StartBuildResponse, UnlinkOrgRequest, UnlinkOrgResponse, UnlinkRepoRequest, UnlinkRepoResponse } from "./build_pb.js";
6
+ import { GetLogsRequest, GetLogsResponse, LinkOrgRequest, LinkOrgResponse, LinkRepoRequest, LinkRepoResponse, ListAppLinksRequest, ListAppLinksResponse, ListJobsRequest, ListJobsResponse, ListRepoLinksRequest, ListRepoLinksResponse, RemoveAppLinkRequest, RemoveAppLinkResponse, StartBuildRequest, StartBuildResponse, StartReloadBuildRequest, StartReloadBuildResponse, UnlinkOrgRequest, UnlinkOrgResponse, UnlinkRepoRequest, UnlinkRepoResponse } from "./build_pb.js";
7
7
  import { MethodKind } from "@bufbuild/protobuf";
8
8
 
9
9
  /**
@@ -124,6 +124,17 @@ export declare const BuildService: {
124
124
  readonly O: typeof UnlinkOrgResponse,
125
125
  readonly kind: MethodKind.Unary,
126
126
  },
127
+ /**
128
+ * upload the local dev environment and build a module for hot reloading
129
+ *
130
+ * @generated from rpc viam.app.build.v1.BuildService.StartReloadBuild
131
+ */
132
+ readonly startReloadBuild: {
133
+ readonly name: "StartReloadBuild",
134
+ readonly I: typeof StartReloadBuildRequest,
135
+ readonly O: typeof StartReloadBuildResponse,
136
+ readonly kind: MethodKind.ClientStreaming,
137
+ },
127
138
  }
128
139
  };
129
140
 
@@ -5,6 +5,7 @@
5
5
 
6
6
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
7
7
  import { Message, proto3 } from "@bufbuild/protobuf";
8
+ import type { CreatePackageRequest } from "../../packages/v1/packages_pb.js";
8
9
 
9
10
  /**
10
11
  * @generated from enum viam.app.build.v1.JobStatus
@@ -155,6 +156,106 @@ export declare class GetLogsRequest extends Message<GetLogsRequest> {
155
156
  static equals(a: GetLogsRequest | PlainMessage<GetLogsRequest> | undefined, b: GetLogsRequest | PlainMessage<GetLogsRequest> | undefined): boolean;
156
157
  }
157
158
 
159
+ /**
160
+ * @generated from message viam.app.build.v1.ReloadBuildInfo
161
+ */
162
+ export declare class ReloadBuildInfo extends Message<ReloadBuildInfo> {
163
+ /**
164
+ * platform to build the reload module for
165
+ *
166
+ * @generated from field: string platform = 1;
167
+ */
168
+ platform: string;
169
+
170
+ /**
171
+ * optional working directory. defaults to repo root
172
+ *
173
+ * @generated from field: optional string workdir = 2;
174
+ */
175
+ workdir?: string;
176
+
177
+ /**
178
+ * org ID for the module
179
+ *
180
+ * @generated from field: string module_id = 3;
181
+ */
182
+ moduleId: string;
183
+
184
+ constructor(data?: PartialMessage<ReloadBuildInfo>);
185
+
186
+ static readonly runtime: typeof proto3;
187
+ static readonly typeName = "viam.app.build.v1.ReloadBuildInfo";
188
+ static readonly fields: FieldList;
189
+
190
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReloadBuildInfo;
191
+
192
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReloadBuildInfo;
193
+
194
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReloadBuildInfo;
195
+
196
+ static equals(a: ReloadBuildInfo | PlainMessage<ReloadBuildInfo> | undefined, b: ReloadBuildInfo | PlainMessage<ReloadBuildInfo> | undefined): boolean;
197
+ }
198
+
199
+ /**
200
+ * @generated from message viam.app.build.v1.StartReloadBuildRequest
201
+ */
202
+ export declare class StartReloadBuildRequest extends Message<StartReloadBuildRequest> {
203
+ /**
204
+ * @generated from oneof viam.app.build.v1.StartReloadBuildRequest.cloud_build
205
+ */
206
+ cloudBuild: {
207
+ /**
208
+ * @generated from field: viam.app.packages.v1.CreatePackageRequest package = 1;
209
+ */
210
+ value: CreatePackageRequest;
211
+ case: "package";
212
+ } | {
213
+ /**
214
+ * @generated from field: viam.app.build.v1.ReloadBuildInfo build_info = 2;
215
+ */
216
+ value: ReloadBuildInfo;
217
+ case: "buildInfo";
218
+ } | { case: undefined; value?: undefined };
219
+
220
+ constructor(data?: PartialMessage<StartReloadBuildRequest>);
221
+
222
+ static readonly runtime: typeof proto3;
223
+ static readonly typeName = "viam.app.build.v1.StartReloadBuildRequest";
224
+ static readonly fields: FieldList;
225
+
226
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartReloadBuildRequest;
227
+
228
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartReloadBuildRequest;
229
+
230
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartReloadBuildRequest;
231
+
232
+ static equals(a: StartReloadBuildRequest | PlainMessage<StartReloadBuildRequest> | undefined, b: StartReloadBuildRequest | PlainMessage<StartReloadBuildRequest> | undefined): boolean;
233
+ }
234
+
235
+ /**
236
+ * @generated from message viam.app.build.v1.StartReloadBuildResponse
237
+ */
238
+ export declare class StartReloadBuildResponse extends Message<StartReloadBuildResponse> {
239
+ /**
240
+ * @generated from field: string build_id = 1;
241
+ */
242
+ buildId: string;
243
+
244
+ constructor(data?: PartialMessage<StartReloadBuildResponse>);
245
+
246
+ static readonly runtime: typeof proto3;
247
+ static readonly typeName = "viam.app.build.v1.StartReloadBuildResponse";
248
+ static readonly fields: FieldList;
249
+
250
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartReloadBuildResponse;
251
+
252
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartReloadBuildResponse;
253
+
254
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartReloadBuildResponse;
255
+
256
+ static equals(a: StartReloadBuildResponse | PlainMessage<StartReloadBuildResponse> | undefined, b: StartReloadBuildResponse | PlainMessage<StartReloadBuildResponse> | undefined): boolean;
257
+ }
258
+
158
259
  /**
159
260
  * GetLogsResponse is a streaming endpoint that may have multiple messages that belong
160
261
  * to the same build_step if there are too many bytes to fit into a single gRPC
@@ -913,6 +913,11 @@ export declare class CreateInvoiceAndChargeImmediatelyRequest extends Message<Cr
913
913
  */
914
914
  orgIdForBranding?: string;
915
915
 
916
+ /**
917
+ * @generated from field: bool disable_email = 5;
918
+ */
919
+ disableEmail: boolean;
920
+
916
921
  constructor(data?: PartialMessage<CreateInvoiceAndChargeImmediatelyRequest>);
917
922
 
918
923
  static readonly runtime: typeof proto3;
@@ -52,16 +52,6 @@ export declare class ResourceName extends Message<ResourceName> {
52
52
  */
53
53
  name: string;
54
54
 
55
- /**
56
- * @generated from field: repeated string remote_path = 5;
57
- */
58
- remotePath: string[];
59
-
60
- /**
61
- * @generated from field: string local_name = 6;
62
- */
63
- localName: string;
64
-
65
55
  constructor(data?: PartialMessage<ResourceName>);
66
56
 
67
57
  static readonly runtime: typeof proto3;
@@ -1059,6 +1049,119 @@ export declare class LogEntry extends Message<LogEntry> {
1059
1049
  static equals(a: LogEntry | PlainMessage<LogEntry> | undefined, b: LogEntry | PlainMessage<LogEntry> | undefined): boolean;
1060
1050
  }
1061
1051
 
1052
+ /**
1053
+ * Information about an audio stream or device.
1054
+ *
1055
+ * @generated from message viam.common.v1.AudioInfo
1056
+ */
1057
+ export declare class AudioInfo extends Message<AudioInfo> {
1058
+ /**
1059
+ * Audio codec used for the stream or device (e.g., "pcm16", "pcm32float", "mp3")
1060
+ *
1061
+ * @generated from field: string codec = 1;
1062
+ */
1063
+ codec: string;
1064
+
1065
+ /**
1066
+ * Sample rate of the audio in Hz
1067
+ *
1068
+ * @generated from field: int32 sample_rate_hz = 2;
1069
+ */
1070
+ sampleRateHz: number;
1071
+
1072
+ /**
1073
+ * Number of audio channels in the recording or playback
1074
+ *
1075
+ * @generated from field: int32 num_channels = 3;
1076
+ */
1077
+ numChannels: number;
1078
+
1079
+ constructor(data?: PartialMessage<AudioInfo>);
1080
+
1081
+ static readonly runtime: typeof proto3;
1082
+ static readonly typeName = "viam.common.v1.AudioInfo";
1083
+ static readonly fields: FieldList;
1084
+
1085
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioInfo;
1086
+
1087
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioInfo;
1088
+
1089
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioInfo;
1090
+
1091
+ static equals(a: AudioInfo | PlainMessage<AudioInfo> | undefined, b: AudioInfo | PlainMessage<AudioInfo> | undefined): boolean;
1092
+ }
1093
+
1094
+ /**
1095
+ * Shared properties for AudioIn and AudioOut components.
1096
+ *
1097
+ * @generated from message viam.common.v1.GetPropertiesRequest
1098
+ */
1099
+ export declare class GetPropertiesRequest extends Message<GetPropertiesRequest> {
1100
+ /**
1101
+ * @generated from field: string name = 1;
1102
+ */
1103
+ name: string;
1104
+
1105
+ /**
1106
+ * @generated from field: google.protobuf.Struct extra = 99;
1107
+ */
1108
+ extra?: Struct;
1109
+
1110
+ constructor(data?: PartialMessage<GetPropertiesRequest>);
1111
+
1112
+ static readonly runtime: typeof proto3;
1113
+ static readonly typeName = "viam.common.v1.GetPropertiesRequest";
1114
+ static readonly fields: FieldList;
1115
+
1116
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPropertiesRequest;
1117
+
1118
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPropertiesRequest;
1119
+
1120
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPropertiesRequest;
1121
+
1122
+ static equals(a: GetPropertiesRequest | PlainMessage<GetPropertiesRequest> | undefined, b: GetPropertiesRequest | PlainMessage<GetPropertiesRequest> | undefined): boolean;
1123
+ }
1124
+
1125
+ /**
1126
+ * @generated from message viam.common.v1.GetPropertiesResponse
1127
+ */
1128
+ export declare class GetPropertiesResponse extends Message<GetPropertiesResponse> {
1129
+ /**
1130
+ * List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")
1131
+ *
1132
+ * @generated from field: repeated string supported_codecs = 1;
1133
+ */
1134
+ supportedCodecs: string[];
1135
+
1136
+ /**
1137
+ * current sample rate in Hz
1138
+ *
1139
+ * @generated from field: int32 sample_rate_hz = 2;
1140
+ */
1141
+ sampleRateHz: number;
1142
+
1143
+ /**
1144
+ * Maximum number of audio channels supported (e.g., 1 for mono, 2 for stereo)
1145
+ *
1146
+ * @generated from field: int32 num_channels = 3;
1147
+ */
1148
+ numChannels: number;
1149
+
1150
+ constructor(data?: PartialMessage<GetPropertiesResponse>);
1151
+
1152
+ static readonly runtime: typeof proto3;
1153
+ static readonly typeName = "viam.common.v1.GetPropertiesResponse";
1154
+ static readonly fields: FieldList;
1155
+
1156
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPropertiesResponse;
1157
+
1158
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPropertiesResponse;
1159
+
1160
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPropertiesResponse;
1161
+
1162
+ static equals(a: GetPropertiesResponse | PlainMessage<GetPropertiesResponse> | undefined, b: GetPropertiesResponse | PlainMessage<GetPropertiesResponse> | undefined): boolean;
1163
+ }
1164
+
1062
1165
  /**
1063
1166
  * safety_heartbeat_monitored is used on methods to signify that if a session is in use
1064
1167
  * and the session was the last to call this method, the resource associated with the
@@ -0,0 +1,64 @@
1
+ // @generated by protoc-gen-connect-es v1.5.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 { GetAudioRequest, GetAudioResponse } from "./audioin_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 AudioInService services all audio inputss associated with a robot
12
+ *
13
+ * @generated from service viam.component.audioin.v1.AudioInService
14
+ */
15
+ export declare const AudioInService: {
16
+ readonly typeName: "viam.component.audioin.v1.AudioInService",
17
+ readonly methods: {
18
+ /**
19
+ * GetAudio streams audio from the given audioin
20
+ *
21
+ * @generated from rpc viam.component.audioin.v1.AudioInService.GetAudio
22
+ */
23
+ readonly getAudio: {
24
+ readonly name: "GetAudio",
25
+ readonly I: typeof GetAudioRequest,
26
+ readonly O: typeof GetAudioResponse,
27
+ readonly kind: MethodKind.ServerStreaming,
28
+ },
29
+ /**
30
+ * GetProperties returns the properties of the audioin
31
+ *
32
+ * @generated from rpc viam.component.audioin.v1.AudioInService.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.audioin.v1.AudioInService.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.audioin.v1.AudioInService.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
+