@viamrobotics/sdk 0.61.0 → 0.62.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.
- package/dist/api-version.d.ts +1 -1
- package/dist/app/app-client.d.ts +4 -2
- package/dist/app/data-client.d.ts +50 -12
- package/dist/components/arm/arm.d.ts +5 -2
- package/dist/components/arm/client.d.ts +2 -1
- package/dist/components/gantry/client.d.ts +2 -1
- package/dist/components/gantry/gantry.d.ts +5 -2
- package/dist/gen/app/data/v1/data_pb.d.ts +10 -0
- package/dist/gen/app/v1/app_pb.d.ts +40 -5
- package/dist/gen/common/v1/common_pb.d.ts +7 -0
- package/dist/main.es.js +1864 -1776
- package/dist/main.umd.js +7 -7
- package/dist/utils.d.ts +9 -2
- package/package.json +1 -1
- package/dist/gen/component/audioinput/v1/audioinput_connect.d.ts +0 -78
- package/dist/gen/component/audioinput/v1/audioinput_pb.d.ts +0 -279
package/dist/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Struct, type JsonValue, type PartialMessage } from '@bufbuild/protobuf';
|
|
2
2
|
import type { CallOptions } from '@connectrpc/connect';
|
|
3
|
-
import { DoCommandRequest, DoCommandResponse, GetKinematicsRequest, GetKinematicsResponse, GetGeometriesRequest, GetGeometriesResponse, Geometry } from './gen/common/v1/common_pb';
|
|
3
|
+
import { DoCommandRequest, DoCommandResponse, GetKinematicsRequest, GetKinematicsResponse, GetGeometriesRequest, GetGeometriesResponse, Geometry, Mesh } from './gen/common/v1/common_pb';
|
|
4
4
|
import type { Options, Vector3 } from './types';
|
|
5
5
|
import type { Frame } from './gen/app/v1/robot_pb';
|
|
6
6
|
export declare const clientHeaders: Headers;
|
|
@@ -25,9 +25,16 @@ export interface KinematicsData {
|
|
|
25
25
|
}[];
|
|
26
26
|
links: Frame[];
|
|
27
27
|
}
|
|
28
|
+
/** Newer kinematics return shape that includes meshes */
|
|
29
|
+
export interface GetKinematicsResultWithMeshes {
|
|
30
|
+
kinematicsData: KinematicsData;
|
|
31
|
+
meshesByUrdfFilepath: Record<string, Mesh>;
|
|
32
|
+
}
|
|
33
|
+
/** Shared type for kinematics return value (legacy or with meshes) */
|
|
34
|
+
export type GetKinematicsResult = KinematicsData | GetKinematicsResultWithMeshes;
|
|
28
35
|
type getKinematics = (request: PartialMessage<GetKinematicsRequest>, options?: CallOptions) => Promise<GetKinematicsResponse>;
|
|
29
36
|
/** Get kinematics information using a resource client */
|
|
30
|
-
export declare const getKinematicsFromClient: (getKinematicsMethod: getKinematics, name: string, extra?: Struct, callOptions?: CallOptions) => Promise<
|
|
37
|
+
export declare const getKinematicsFromClient: (getKinematicsMethod: getKinematics, name: string, extra?: Struct, callOptions?: CallOptions) => Promise<GetKinematicsResult>;
|
|
31
38
|
type getGeometries = (request: PartialMessage<GetGeometriesRequest>, options?: CallOptions) => Promise<GetGeometriesResponse>;
|
|
32
39
|
/** Get geometries information using a resource client */
|
|
33
40
|
export declare const getGeometriesFromClient: (getGeometriesMethod: getGeometries, name: string, extra?: Struct, callOptions?: CallOptions) => Promise<Geometry[]>;
|
package/package.json
CHANGED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-es v1.5.0
|
|
2
|
-
// @generated from file component/audioinput/v1/audioinput.proto (package viam.component.audioinput.v1, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
|
|
6
|
-
import { ChunksRequest, ChunksResponse, PropertiesRequest, PropertiesResponse, RecordRequest } from "./audioinput_pb.js";
|
|
7
|
-
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
-
import { HttpBody } from "../../../google/api/httpbody_pb.js";
|
|
9
|
-
import { DoCommandRequest, DoCommandResponse, GetGeometriesRequest, GetGeometriesResponse } from "../../../common/v1/common_pb.js";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* An AudioInputService services all audio inputs associated with a robot
|
|
13
|
-
*
|
|
14
|
-
* @generated from service viam.component.audioinput.v1.AudioInputService
|
|
15
|
-
*/
|
|
16
|
-
export declare const AudioInputService: {
|
|
17
|
-
readonly typeName: "viam.component.audioinput.v1.AudioInputService",
|
|
18
|
-
readonly methods: {
|
|
19
|
-
/**
|
|
20
|
-
* Chunks returns audio chunks forever from an audio input of the underlying robot.
|
|
21
|
-
*
|
|
22
|
-
* @generated from rpc viam.component.audioinput.v1.AudioInputService.Chunks
|
|
23
|
-
*/
|
|
24
|
-
readonly chunks: {
|
|
25
|
-
readonly name: "Chunks",
|
|
26
|
-
readonly I: typeof ChunksRequest,
|
|
27
|
-
readonly O: typeof ChunksResponse,
|
|
28
|
-
readonly kind: MethodKind.ServerStreaming,
|
|
29
|
-
},
|
|
30
|
-
/**
|
|
31
|
-
* Properties returns properties of an audio input of the underlying robot.
|
|
32
|
-
*
|
|
33
|
-
* @generated from rpc viam.component.audioinput.v1.AudioInputService.Properties
|
|
34
|
-
*/
|
|
35
|
-
readonly properties: {
|
|
36
|
-
readonly name: "Properties",
|
|
37
|
-
readonly I: typeof PropertiesRequest,
|
|
38
|
-
readonly O: typeof PropertiesResponse,
|
|
39
|
-
readonly kind: MethodKind.Unary,
|
|
40
|
-
},
|
|
41
|
-
/**
|
|
42
|
-
* Record records audio from an audio input of the underlying robot
|
|
43
|
-
* to an HTTP response. A specific MIME type cannot be requested and may not necessarily
|
|
44
|
-
* be the same one returned each time.
|
|
45
|
-
*
|
|
46
|
-
* @generated from rpc viam.component.audioinput.v1.AudioInputService.Record
|
|
47
|
-
*/
|
|
48
|
-
readonly record: {
|
|
49
|
-
readonly name: "Record",
|
|
50
|
-
readonly I: typeof RecordRequest,
|
|
51
|
-
readonly O: typeof HttpBody,
|
|
52
|
-
readonly kind: MethodKind.Unary,
|
|
53
|
-
},
|
|
54
|
-
/**
|
|
55
|
-
* DoCommand sends/receives arbitrary commands
|
|
56
|
-
*
|
|
57
|
-
* @generated from rpc viam.component.audioinput.v1.AudioInputService.DoCommand
|
|
58
|
-
*/
|
|
59
|
-
readonly doCommand: {
|
|
60
|
-
readonly name: "DoCommand",
|
|
61
|
-
readonly I: typeof DoCommandRequest,
|
|
62
|
-
readonly O: typeof DoCommandResponse,
|
|
63
|
-
readonly kind: MethodKind.Unary,
|
|
64
|
-
},
|
|
65
|
-
/**
|
|
66
|
-
* GetGeometries returns the geometries of the component in their current configuration
|
|
67
|
-
*
|
|
68
|
-
* @generated from rpc viam.component.audioinput.v1.AudioInputService.GetGeometries
|
|
69
|
-
*/
|
|
70
|
-
readonly getGeometries: {
|
|
71
|
-
readonly name: "GetGeometries",
|
|
72
|
-
readonly I: typeof GetGeometriesRequest,
|
|
73
|
-
readonly O: typeof GetGeometriesResponse,
|
|
74
|
-
readonly kind: MethodKind.Unary,
|
|
75
|
-
},
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
|
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.0
|
|
2
|
-
// @generated from file component/audioinput/v1/audioinput.proto (package viam.component.audioinput.v1, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
|
|
6
|
-
import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
-
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @generated from enum viam.component.audioinput.v1.SampleFormat
|
|
11
|
-
*/
|
|
12
|
-
export declare enum SampleFormat {
|
|
13
|
-
/**
|
|
14
|
-
* @generated from enum value: SAMPLE_FORMAT_UNSPECIFIED = 0;
|
|
15
|
-
*/
|
|
16
|
-
UNSPECIFIED = 0,
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @generated from enum value: SAMPLE_FORMAT_INT16_INTERLEAVED = 1;
|
|
20
|
-
*/
|
|
21
|
-
INT16_INTERLEAVED = 1,
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @generated from enum value: SAMPLE_FORMAT_FLOAT32_INTERLEAVED = 2;
|
|
25
|
-
*/
|
|
26
|
-
FLOAT32_INTERLEAVED = 2,
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @generated from message viam.component.audioinput.v1.RecordRequest
|
|
31
|
-
*/
|
|
32
|
-
export declare class RecordRequest extends Message<RecordRequest> {
|
|
33
|
-
/**
|
|
34
|
-
* Name of an audio input
|
|
35
|
-
*
|
|
36
|
-
* @generated from field: string name = 1;
|
|
37
|
-
*/
|
|
38
|
-
name: string;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* @generated from field: google.protobuf.Duration duration = 2;
|
|
42
|
-
*/
|
|
43
|
-
duration?: Duration;
|
|
44
|
-
|
|
45
|
-
constructor(data?: PartialMessage<RecordRequest>);
|
|
46
|
-
|
|
47
|
-
static readonly runtime: typeof proto3;
|
|
48
|
-
static readonly typeName = "viam.component.audioinput.v1.RecordRequest";
|
|
49
|
-
static readonly fields: FieldList;
|
|
50
|
-
|
|
51
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RecordRequest;
|
|
52
|
-
|
|
53
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RecordRequest;
|
|
54
|
-
|
|
55
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RecordRequest;
|
|
56
|
-
|
|
57
|
-
static equals(a: RecordRequest | PlainMessage<RecordRequest> | undefined, b: RecordRequest | PlainMessage<RecordRequest> | undefined): boolean;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @generated from message viam.component.audioinput.v1.AudioChunkInfo
|
|
62
|
-
*/
|
|
63
|
-
export declare class AudioChunkInfo extends Message<AudioChunkInfo> {
|
|
64
|
-
/**
|
|
65
|
-
* Actual sample encoding format of the response
|
|
66
|
-
*
|
|
67
|
-
* @generated from field: viam.component.audioinput.v1.SampleFormat sample_format = 1;
|
|
68
|
-
*/
|
|
69
|
-
sampleFormat: SampleFormat;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @generated from field: uint32 channels = 2;
|
|
73
|
-
*/
|
|
74
|
-
channels: number;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* @generated from field: int64 sampling_rate = 3;
|
|
78
|
-
*/
|
|
79
|
-
samplingRate: bigint;
|
|
80
|
-
|
|
81
|
-
constructor(data?: PartialMessage<AudioChunkInfo>);
|
|
82
|
-
|
|
83
|
-
static readonly runtime: typeof proto3;
|
|
84
|
-
static readonly typeName = "viam.component.audioinput.v1.AudioChunkInfo";
|
|
85
|
-
static readonly fields: FieldList;
|
|
86
|
-
|
|
87
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioChunkInfo;
|
|
88
|
-
|
|
89
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioChunkInfo;
|
|
90
|
-
|
|
91
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioChunkInfo;
|
|
92
|
-
|
|
93
|
-
static equals(a: AudioChunkInfo | PlainMessage<AudioChunkInfo> | undefined, b: AudioChunkInfo | PlainMessage<AudioChunkInfo> | undefined): boolean;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* @generated from message viam.component.audioinput.v1.AudioChunk
|
|
98
|
-
*/
|
|
99
|
-
export declare class AudioChunk extends Message<AudioChunk> {
|
|
100
|
-
/**
|
|
101
|
-
* Data is PCM data that is organized according to the sample format
|
|
102
|
-
* along with its possible interleaving. Data in each format is
|
|
103
|
-
* Little Endian.
|
|
104
|
-
*
|
|
105
|
-
* @generated from field: bytes data = 1;
|
|
106
|
-
*/
|
|
107
|
-
data: Uint8Array;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Length is the number of samples
|
|
111
|
-
*
|
|
112
|
-
* @generated from field: uint32 length = 2;
|
|
113
|
-
*/
|
|
114
|
-
length: number;
|
|
115
|
-
|
|
116
|
-
constructor(data?: PartialMessage<AudioChunk>);
|
|
117
|
-
|
|
118
|
-
static readonly runtime: typeof proto3;
|
|
119
|
-
static readonly typeName = "viam.component.audioinput.v1.AudioChunk";
|
|
120
|
-
static readonly fields: FieldList;
|
|
121
|
-
|
|
122
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioChunk;
|
|
123
|
-
|
|
124
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioChunk;
|
|
125
|
-
|
|
126
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioChunk;
|
|
127
|
-
|
|
128
|
-
static equals(a: AudioChunk | PlainMessage<AudioChunk> | undefined, b: AudioChunk | PlainMessage<AudioChunk> | undefined): boolean;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* @generated from message viam.component.audioinput.v1.ChunksRequest
|
|
133
|
-
*/
|
|
134
|
-
export declare class ChunksRequest extends Message<ChunksRequest> {
|
|
135
|
-
/**
|
|
136
|
-
* Name of an audio input
|
|
137
|
-
*
|
|
138
|
-
* @generated from field: string name = 1;
|
|
139
|
-
*/
|
|
140
|
-
name: string;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Requested sample encoding format of the response
|
|
144
|
-
*
|
|
145
|
-
* @generated from field: viam.component.audioinput.v1.SampleFormat sample_format = 2;
|
|
146
|
-
*/
|
|
147
|
-
sampleFormat: SampleFormat;
|
|
148
|
-
|
|
149
|
-
constructor(data?: PartialMessage<ChunksRequest>);
|
|
150
|
-
|
|
151
|
-
static readonly runtime: typeof proto3;
|
|
152
|
-
static readonly typeName = "viam.component.audioinput.v1.ChunksRequest";
|
|
153
|
-
static readonly fields: FieldList;
|
|
154
|
-
|
|
155
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChunksRequest;
|
|
156
|
-
|
|
157
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChunksRequest;
|
|
158
|
-
|
|
159
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChunksRequest;
|
|
160
|
-
|
|
161
|
-
static equals(a: ChunksRequest | PlainMessage<ChunksRequest> | undefined, b: ChunksRequest | PlainMessage<ChunksRequest> | undefined): boolean;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* @generated from message viam.component.audioinput.v1.ChunksResponse
|
|
166
|
-
*/
|
|
167
|
-
export declare class ChunksResponse extends Message<ChunksResponse> {
|
|
168
|
-
/**
|
|
169
|
-
* @generated from oneof viam.component.audioinput.v1.ChunksResponse.type
|
|
170
|
-
*/
|
|
171
|
-
type: {
|
|
172
|
-
/**
|
|
173
|
-
* @generated from field: viam.component.audioinput.v1.AudioChunkInfo info = 1;
|
|
174
|
-
*/
|
|
175
|
-
value: AudioChunkInfo;
|
|
176
|
-
case: "info";
|
|
177
|
-
} | {
|
|
178
|
-
/**
|
|
179
|
-
* @generated from field: viam.component.audioinput.v1.AudioChunk chunk = 2;
|
|
180
|
-
*/
|
|
181
|
-
value: AudioChunk;
|
|
182
|
-
case: "chunk";
|
|
183
|
-
} | { case: undefined; value?: undefined };
|
|
184
|
-
|
|
185
|
-
constructor(data?: PartialMessage<ChunksResponse>);
|
|
186
|
-
|
|
187
|
-
static readonly runtime: typeof proto3;
|
|
188
|
-
static readonly typeName = "viam.component.audioinput.v1.ChunksResponse";
|
|
189
|
-
static readonly fields: FieldList;
|
|
190
|
-
|
|
191
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChunksResponse;
|
|
192
|
-
|
|
193
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChunksResponse;
|
|
194
|
-
|
|
195
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChunksResponse;
|
|
196
|
-
|
|
197
|
-
static equals(a: ChunksResponse | PlainMessage<ChunksResponse> | undefined, b: ChunksResponse | PlainMessage<ChunksResponse> | undefined): boolean;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* @generated from message viam.component.audioinput.v1.PropertiesRequest
|
|
202
|
-
*/
|
|
203
|
-
export declare class PropertiesRequest extends Message<PropertiesRequest> {
|
|
204
|
-
/**
|
|
205
|
-
* Name of an audio input
|
|
206
|
-
*
|
|
207
|
-
* @generated from field: string name = 1;
|
|
208
|
-
*/
|
|
209
|
-
name: string;
|
|
210
|
-
|
|
211
|
-
constructor(data?: PartialMessage<PropertiesRequest>);
|
|
212
|
-
|
|
213
|
-
static readonly runtime: typeof proto3;
|
|
214
|
-
static readonly typeName = "viam.component.audioinput.v1.PropertiesRequest";
|
|
215
|
-
static readonly fields: FieldList;
|
|
216
|
-
|
|
217
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PropertiesRequest;
|
|
218
|
-
|
|
219
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PropertiesRequest;
|
|
220
|
-
|
|
221
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PropertiesRequest;
|
|
222
|
-
|
|
223
|
-
static equals(a: PropertiesRequest | PlainMessage<PropertiesRequest> | undefined, b: PropertiesRequest | PlainMessage<PropertiesRequest> | undefined): boolean;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* @generated from message viam.component.audioinput.v1.PropertiesResponse
|
|
228
|
-
*/
|
|
229
|
-
export declare class PropertiesResponse extends Message<PropertiesResponse> {
|
|
230
|
-
/**
|
|
231
|
-
* @generated from field: uint32 channel_count = 1;
|
|
232
|
-
*/
|
|
233
|
-
channelCount: number;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* @generated from field: google.protobuf.Duration latency = 2;
|
|
237
|
-
*/
|
|
238
|
-
latency?: Duration;
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* @generated from field: uint32 sample_rate = 3;
|
|
242
|
-
*/
|
|
243
|
-
sampleRate: number;
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* @generated from field: uint32 sample_size = 4;
|
|
247
|
-
*/
|
|
248
|
-
sampleSize: number;
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* @generated from field: bool is_big_endian = 5;
|
|
252
|
-
*/
|
|
253
|
-
isBigEndian: boolean;
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* @generated from field: bool is_float = 6;
|
|
257
|
-
*/
|
|
258
|
-
isFloat: boolean;
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* @generated from field: bool is_interleaved = 7;
|
|
262
|
-
*/
|
|
263
|
-
isInterleaved: boolean;
|
|
264
|
-
|
|
265
|
-
constructor(data?: PartialMessage<PropertiesResponse>);
|
|
266
|
-
|
|
267
|
-
static readonly runtime: typeof proto3;
|
|
268
|
-
static readonly typeName = "viam.component.audioinput.v1.PropertiesResponse";
|
|
269
|
-
static readonly fields: FieldList;
|
|
270
|
-
|
|
271
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PropertiesResponse;
|
|
272
|
-
|
|
273
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PropertiesResponse;
|
|
274
|
-
|
|
275
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PropertiesResponse;
|
|
276
|
-
|
|
277
|
-
static equals(a: PropertiesResponse | PlainMessage<PropertiesResponse> | undefined, b: PropertiesResponse | PlainMessage<PropertiesResponse> | undefined): boolean;
|
|
278
|
-
}
|
|
279
|
-
|