@viamrobotics/sdk 0.31.0 → 0.33.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 +15 -0
- package/dist/gen/app/data/v1/data_pb.d.ts +6 -6
- package/dist/gen/app/v1/app_pb.d.ts +54 -0
- package/dist/gen/app/v1/billing_pb.d.ts +5 -0
- package/dist/gen/app/v1/robot_pb.d.ts +8 -0
- package/dist/gen/google/api/client_pb.d.ts +14 -0
- package/dist/gen/robot/v1/robot_pb.d.ts +30 -0
- package/dist/main.d.ts +0 -28
- package/dist/main.es.js +2668 -2703
- package/dist/main.umd.js +7 -7
- package/dist/robot/client.d.ts +6 -29
- package/dist/robot/robot.d.ts +0 -20
- package/package.json +1 -1
package/dist/api-version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const apiVersion = "v0.1.
|
|
1
|
+
export declare const apiVersion = "v0.1.373";
|
|
@@ -317,6 +317,21 @@ export declare class DataClient {
|
|
|
317
317
|
*/
|
|
318
318
|
binaryDataCaptureUpload(binaryData: Uint8Array, partId: string, componentType: string, componentName: string, methodName: string, fileExtension: string, dataRequestTimes: [Date, Date], tags?: string[]): Promise<string>;
|
|
319
319
|
createFilter(options: FilterOptions): Filter;
|
|
320
|
+
/**
|
|
321
|
+
* Gets the most recent tabular data captured from the specified data source,
|
|
322
|
+
* as long as it was synced within the last year.
|
|
323
|
+
*
|
|
324
|
+
* @param partId The ID of the part that owns the data
|
|
325
|
+
* @param resourceName The name of the requested resource that captured the
|
|
326
|
+
* data
|
|
327
|
+
* @param resourceSubtype The subtype of the requested resource that captured
|
|
328
|
+
* the data
|
|
329
|
+
* @param methodName The data capture method name
|
|
330
|
+
* @returns A tuple containing [timeCaptured, timeSynced, payload] or null if
|
|
331
|
+
* no data has been synced for the specified resource OR the most recently
|
|
332
|
+
* captured data was over a year ago
|
|
333
|
+
*/
|
|
334
|
+
getLatestTabularData(partId: string, resourceName: string, resourceSubtype: string, methodName: string): Promise<[Date, Date, Record<string, JsonValue>] | null>;
|
|
320
335
|
}
|
|
321
336
|
export { type BinaryID, type Order } from '../gen/app/data/v1/data_pb';
|
|
322
337
|
export { type UploadMetadata } from '../gen/app/datasync/v1/data_sync_pb';
|
|
@@ -655,14 +655,14 @@ export declare class ExportTabularDataResponse extends Message<ExportTabularData
|
|
|
655
655
|
partId: string;
|
|
656
656
|
|
|
657
657
|
/**
|
|
658
|
-
* @generated from field: string
|
|
658
|
+
* @generated from field: string resource_name = 2;
|
|
659
659
|
*/
|
|
660
|
-
|
|
660
|
+
resourceName: string;
|
|
661
661
|
|
|
662
662
|
/**
|
|
663
|
-
* @generated from field: string
|
|
663
|
+
* @generated from field: string resource_subtype = 3;
|
|
664
664
|
*/
|
|
665
|
-
|
|
665
|
+
resourceSubtype: string;
|
|
666
666
|
|
|
667
667
|
/**
|
|
668
668
|
* @generated from field: string method_name = 4;
|
|
@@ -700,9 +700,9 @@ export declare class ExportTabularDataResponse extends Message<ExportTabularData
|
|
|
700
700
|
partName: string;
|
|
701
701
|
|
|
702
702
|
/**
|
|
703
|
-
* @generated from field:
|
|
703
|
+
* @generated from field: google.protobuf.Struct method_parameters = 11;
|
|
704
704
|
*/
|
|
705
|
-
methodParameters
|
|
705
|
+
methodParameters?: Struct;
|
|
706
706
|
|
|
707
707
|
/**
|
|
708
708
|
* @generated from field: repeated string tags = 12;
|
|
@@ -3293,6 +3293,45 @@ export declare class FragmentError extends Message<FragmentError> {
|
|
|
3293
3293
|
static equals(a: FragmentError | PlainMessage<FragmentError> | undefined, b: FragmentError | PlainMessage<FragmentError> | undefined): boolean;
|
|
3294
3294
|
}
|
|
3295
3295
|
|
|
3296
|
+
/**
|
|
3297
|
+
* @generated from message viam.app.v1.FragmentUsage
|
|
3298
|
+
*/
|
|
3299
|
+
export declare class FragmentUsage extends Message<FragmentUsage> {
|
|
3300
|
+
/**
|
|
3301
|
+
* @generated from field: int32 fragment_id = 1;
|
|
3302
|
+
*/
|
|
3303
|
+
fragmentId: number;
|
|
3304
|
+
|
|
3305
|
+
/**
|
|
3306
|
+
* @generated from field: int64 organizations = 2;
|
|
3307
|
+
*/
|
|
3308
|
+
organizations: bigint;
|
|
3309
|
+
|
|
3310
|
+
/**
|
|
3311
|
+
* @generated from field: int64 machines = 3;
|
|
3312
|
+
*/
|
|
3313
|
+
machines: bigint;
|
|
3314
|
+
|
|
3315
|
+
/**
|
|
3316
|
+
* @generated from field: int64 machines_in_current_org = 4;
|
|
3317
|
+
*/
|
|
3318
|
+
machinesInCurrentOrg: bigint;
|
|
3319
|
+
|
|
3320
|
+
constructor(data?: PartialMessage<FragmentUsage>);
|
|
3321
|
+
|
|
3322
|
+
static readonly runtime: typeof proto3;
|
|
3323
|
+
static readonly typeName = "viam.app.v1.FragmentUsage";
|
|
3324
|
+
static readonly fields: FieldList;
|
|
3325
|
+
|
|
3326
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FragmentUsage;
|
|
3327
|
+
|
|
3328
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FragmentUsage;
|
|
3329
|
+
|
|
3330
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FragmentUsage;
|
|
3331
|
+
|
|
3332
|
+
static equals(a: FragmentUsage | PlainMessage<FragmentUsage> | undefined, b: FragmentUsage | PlainMessage<FragmentUsage> | undefined): boolean;
|
|
3333
|
+
}
|
|
3334
|
+
|
|
3296
3335
|
/**
|
|
3297
3336
|
* @generated from message viam.app.v1.ResolvedFragment
|
|
3298
3337
|
*/
|
|
@@ -3370,6 +3409,11 @@ export declare class ListFragmentsResponse extends Message<ListFragmentsResponse
|
|
|
3370
3409
|
*/
|
|
3371
3410
|
fragments: Fragment[];
|
|
3372
3411
|
|
|
3412
|
+
/**
|
|
3413
|
+
* @generated from field: repeated viam.app.v1.FragmentUsage fragment_usages = 2;
|
|
3414
|
+
*/
|
|
3415
|
+
fragmentUsages: FragmentUsage[];
|
|
3416
|
+
|
|
3373
3417
|
constructor(data?: PartialMessage<ListFragmentsResponse>);
|
|
3374
3418
|
|
|
3375
3419
|
static readonly runtime: typeof proto3;
|
|
@@ -3394,6 +3438,11 @@ export declare class GetFragmentRequest extends Message<GetFragmentRequest> {
|
|
|
3394
3438
|
*/
|
|
3395
3439
|
id: string;
|
|
3396
3440
|
|
|
3441
|
+
/**
|
|
3442
|
+
* @generated from field: string current_organization_id = 2;
|
|
3443
|
+
*/
|
|
3444
|
+
currentOrganizationId: string;
|
|
3445
|
+
|
|
3397
3446
|
constructor(data?: PartialMessage<GetFragmentRequest>);
|
|
3398
3447
|
|
|
3399
3448
|
static readonly runtime: typeof proto3;
|
|
@@ -3418,6 +3467,11 @@ export declare class GetFragmentResponse extends Message<GetFragmentResponse> {
|
|
|
3418
3467
|
*/
|
|
3419
3468
|
fragment?: Fragment;
|
|
3420
3469
|
|
|
3470
|
+
/**
|
|
3471
|
+
* @generated from field: viam.app.v1.FragmentUsage fragment_usage = 2;
|
|
3472
|
+
*/
|
|
3473
|
+
fragmentUsage?: FragmentUsage;
|
|
3474
|
+
|
|
3421
3475
|
constructor(data?: PartialMessage<GetFragmentResponse>);
|
|
3422
3476
|
|
|
3423
3477
|
static readonly runtime: typeof proto3;
|
|
@@ -69,6 +69,11 @@ export declare enum UsageCostType {
|
|
|
69
69
|
* @generated from enum value: USAGE_COST_TYPE_PER_MACHINE = 8;
|
|
70
70
|
*/
|
|
71
71
|
PER_MACHINE = 8,
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @generated from enum value: USAGE_COST_TYPE_TRIGGER_NOTIFICATION = 9;
|
|
75
|
+
*/
|
|
76
|
+
TRIGGER_NOTIFICATION = 9,
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
/**
|
|
@@ -127,6 +127,14 @@ export declare class RobotConfig extends Message<RobotConfig> {
|
|
|
127
127
|
*/
|
|
128
128
|
maintenance?: MaintenanceConfig;
|
|
129
129
|
|
|
130
|
+
/**
|
|
131
|
+
* Disables the robot's log deduplication (identical, noisy logs will still
|
|
132
|
+
* be output individually instead of aggregated.)
|
|
133
|
+
*
|
|
134
|
+
* @generated from field: bool disable_log_deduplication = 17;
|
|
135
|
+
*/
|
|
136
|
+
disableLogDeduplication: boolean;
|
|
137
|
+
|
|
130
138
|
constructor(data?: PartialMessage<RobotConfig>);
|
|
131
139
|
|
|
132
140
|
static readonly runtime: typeof proto3;
|
|
@@ -717,6 +717,20 @@ export declare class GoSettings extends Message<GoSettings> {
|
|
|
717
717
|
*/
|
|
718
718
|
common?: CommonLanguageSettings;
|
|
719
719
|
|
|
720
|
+
/**
|
|
721
|
+
* Map of service names to renamed services. Keys are the package relative
|
|
722
|
+
* service names and values are the name to be used for the service client
|
|
723
|
+
* and call options.
|
|
724
|
+
*
|
|
725
|
+
* publishing:
|
|
726
|
+
* go_settings:
|
|
727
|
+
* renamed_services:
|
|
728
|
+
* Publisher: TopicAdmin
|
|
729
|
+
*
|
|
730
|
+
* @generated from field: map<string, string> renamed_services = 2;
|
|
731
|
+
*/
|
|
732
|
+
renamedServices: { [key: string]: string };
|
|
733
|
+
|
|
720
734
|
constructor(data?: PartialMessage<GoSettings>);
|
|
721
735
|
|
|
722
736
|
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
|
*
|