@viamrobotics/sdk 0.32.0 → 0.34.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/data-client.d.ts +35 -4
- package/dist/gen/app/data/v1/data_pb.d.ts +6 -6
- package/dist/gen/app/mlinference/v1/ml_inference_pb.d.ts +12 -1
- package/dist/gen/app/v1/app_connect.d.ts +12 -1
- package/dist/gen/app/v1/app_pb.d.ts +280 -0
- package/dist/gen/app/v1/billing_pb.d.ts +73 -4
- package/dist/gen/app/v1/robot_pb.d.ts +8 -0
- package/dist/gen/google/rpc/context/attribute_context_pb.d.ts +2 -1
- package/dist/gen/google/rpc/error_details_pb.d.ts +24 -3
- package/dist/gen/robot/v1/robot_pb.d.ts +30 -0
- package/dist/main.d.ts +0 -28
- package/dist/main.es.js +3979 -3907
- package/dist/main.umd.js +7 -7
- package/dist/robot/client.d.ts +7 -29
- package/dist/robot/robot.d.ts +6 -20
- package/package.json +1 -1
|
@@ -75,11 +75,12 @@ export declare class ErrorInfo extends Message<ErrorInfo> {
|
|
|
75
75
|
/**
|
|
76
76
|
* Additional structured details about this error.
|
|
77
77
|
*
|
|
78
|
-
* Keys
|
|
78
|
+
* Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should
|
|
79
|
+
* ideally be lowerCamelCase. Also, they must be limited to 64 characters in
|
|
79
80
|
* length. When identifying the current value of an exceeded limit, the units
|
|
80
81
|
* should be contained in the key, not the value. For example, rather than
|
|
81
|
-
* {"instanceLimit": "100/request"}
|
|
82
|
-
* {"instanceLimitPerRequest": "100"}
|
|
82
|
+
* `{"instanceLimit": "100/request"}`, should be returned as,
|
|
83
|
+
* `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of
|
|
83
84
|
* instances that can be created in a single (batch) request.
|
|
84
85
|
*
|
|
85
86
|
* @generated from field: map<string, string> metadata = 3;
|
|
@@ -424,6 +425,26 @@ export declare class BadRequest_FieldViolation extends Message<BadRequest_FieldV
|
|
|
424
425
|
*/
|
|
425
426
|
description: string;
|
|
426
427
|
|
|
428
|
+
/**
|
|
429
|
+
* The reason of the field-level error. This is a constant value that
|
|
430
|
+
* identifies the proximate cause of the field-level error. It should
|
|
431
|
+
* uniquely identify the type of the FieldViolation within the scope of the
|
|
432
|
+
* google.rpc.ErrorInfo.domain. This should be at most 63
|
|
433
|
+
* characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`,
|
|
434
|
+
* which represents UPPER_SNAKE_CASE.
|
|
435
|
+
*
|
|
436
|
+
* @generated from field: string reason = 3;
|
|
437
|
+
*/
|
|
438
|
+
reason: string;
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Provides a localized error message for field-level errors that is safe to
|
|
442
|
+
* return to the API consumer.
|
|
443
|
+
*
|
|
444
|
+
* @generated from field: google.rpc.LocalizedMessage localized_message = 4;
|
|
445
|
+
*/
|
|
446
|
+
localizedMessage?: LocalizedMessage;
|
|
447
|
+
|
|
427
448
|
constructor(data?: PartialMessage<BadRequest_FieldViolation>);
|
|
428
449
|
|
|
429
450
|
static readonly runtime: typeof proto3;
|
|
@@ -1293,6 +1293,11 @@ export declare class GetMachineStatusResponse extends Message<GetMachineStatusRe
|
|
|
1293
1293
|
*/
|
|
1294
1294
|
config?: ConfigStatus;
|
|
1295
1295
|
|
|
1296
|
+
/**
|
|
1297
|
+
* @generated from field: viam.robot.v1.GetMachineStatusResponse.State state = 3;
|
|
1298
|
+
*/
|
|
1299
|
+
state: GetMachineStatusResponse_State;
|
|
1300
|
+
|
|
1296
1301
|
constructor(data?: PartialMessage<GetMachineStatusResponse>);
|
|
1297
1302
|
|
|
1298
1303
|
static readonly runtime: typeof proto3;
|
|
@@ -1308,6 +1313,31 @@ export declare class GetMachineStatusResponse extends Message<GetMachineStatusRe
|
|
|
1308
1313
|
static equals(a: GetMachineStatusResponse | PlainMessage<GetMachineStatusResponse> | undefined, b: GetMachineStatusResponse | PlainMessage<GetMachineStatusResponse> | undefined): boolean;
|
|
1309
1314
|
}
|
|
1310
1315
|
|
|
1316
|
+
/**
|
|
1317
|
+
* @generated from enum viam.robot.v1.GetMachineStatusResponse.State
|
|
1318
|
+
*/
|
|
1319
|
+
export declare enum GetMachineStatusResponse_State {
|
|
1320
|
+
/**
|
|
1321
|
+
* @generated from enum value: STATE_UNSPECIFIED = 0;
|
|
1322
|
+
*/
|
|
1323
|
+
UNSPECIFIED = 0,
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* the machine is reachable but still in the process of configuring initial
|
|
1327
|
+
* modules and resources.
|
|
1328
|
+
*
|
|
1329
|
+
* @generated from enum value: STATE_INITIALIZING = 1;
|
|
1330
|
+
*/
|
|
1331
|
+
INITIALIZING = 1,
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* the machine has finished initializing.
|
|
1335
|
+
*
|
|
1336
|
+
* @generated from enum value: STATE_RUNNING = 2;
|
|
1337
|
+
*/
|
|
1338
|
+
RUNNING = 2,
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1311
1341
|
/**
|
|
1312
1342
|
* @generated from message viam.robot.v1.ResourceStatus
|
|
1313
1343
|
*/
|
package/dist/main.d.ts
CHANGED
|
@@ -181,34 +181,6 @@ export * as powerSensorApi from './gen/component/powersensor/v1/powersensor_pb';
|
|
|
181
181
|
*/
|
|
182
182
|
export { SensorClient, type Sensor } from './components/sensor';
|
|
183
183
|
export * as sensorApi from './gen/component/sensor/v1/sensor_connect';
|
|
184
|
-
/**
|
|
185
|
-
* Raw Protobuf interfaces for a Sensors service.
|
|
186
|
-
*
|
|
187
|
-
* Generated with https://github.com/connectrpc/connect-es
|
|
188
|
-
*
|
|
189
|
-
* @example
|
|
190
|
-
*
|
|
191
|
-
* ```ts
|
|
192
|
-
* import { grpc } from '@improbable-eng/grpc-web';
|
|
193
|
-
*
|
|
194
|
-
* const client = {}; // replace with a connected robot client
|
|
195
|
-
*
|
|
196
|
-
* const request = new sensorsApi.GetSensorsRequest();
|
|
197
|
-
* request.setName('mysensors');
|
|
198
|
-
*
|
|
199
|
-
* client.sensorsService.getSensors(
|
|
200
|
-
* request,
|
|
201
|
-
* new grpc.Metadata(),
|
|
202
|
-
* (error, response) => {
|
|
203
|
-
* // do something with error or response
|
|
204
|
-
* }
|
|
205
|
-
* );
|
|
206
|
-
* ```
|
|
207
|
-
*
|
|
208
|
-
* @alpha
|
|
209
|
-
* @group Raw Protobufs
|
|
210
|
-
*/
|
|
211
|
-
export * as sensorsApi from './gen/service/sensors/v1/sensors_pb';
|
|
212
184
|
/**
|
|
213
185
|
* Raw Protobuf interfaces for a Stream.
|
|
214
186
|
*
|