@viamrobotics/sdk 0.35.1 → 0.35.2
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/components/button/button.d.ts +7 -0
- package/dist/components/button/client.d.ts +19 -0
- package/dist/components/button.d.ts +2 -0
- package/dist/components/camera/camera.d.ts +4 -3
- package/dist/components/camera/client.d.ts +4 -4
- package/dist/components/switch/client.d.ts +21 -0
- package/dist/components/switch/switch.d.ts +11 -0
- package/dist/components/switch.d.ts +2 -0
- package/dist/gen/app/v1/app_pb.d.ts +94 -0
- package/dist/gen/robot/v1/robot_connect.d.ts +12 -1
- package/dist/gen/robot/v1/robot_pb.d.ts +55 -2
- package/dist/main.d.ts +66 -57
- package/dist/main.es.js +9900 -8852
- package/dist/main.umd.js +7 -7
- package/dist/robot/client.d.ts +6 -0
- 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.389";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
2
|
+
import type { CallOptions } from '@connectrpc/connect';
|
|
3
|
+
import type { RobotClient } from '../../robot';
|
|
4
|
+
import type { Options } from '../../types';
|
|
5
|
+
import type { Button } from './button';
|
|
6
|
+
/**
|
|
7
|
+
* A gRPC-web client for the Button component.
|
|
8
|
+
*
|
|
9
|
+
* @group Clients
|
|
10
|
+
*/
|
|
11
|
+
export declare class ButtonClient implements Button {
|
|
12
|
+
private client;
|
|
13
|
+
private readonly name;
|
|
14
|
+
private readonly options;
|
|
15
|
+
callOptions: CallOptions;
|
|
16
|
+
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
|
+
push(extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
18
|
+
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
19
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Struct } from '@bufbuild/protobuf';
|
|
1
2
|
import type { DistortionParameters, IntrinsicParameters } from '../../gen/component/camera/v1/camera_pb';
|
|
2
3
|
import type { Resource } from '../../types';
|
|
3
4
|
export interface Properties {
|
|
@@ -19,16 +20,16 @@ export interface Camera extends Resource {
|
|
|
19
20
|
* @param mimeType - A specific MIME type to request. This is not necessarily
|
|
20
21
|
* the same type that will be returned.
|
|
21
22
|
*/
|
|
22
|
-
getImage: (mimeType?: MimeType) => Promise<Uint8Array>;
|
|
23
|
+
getImage: (mimeType?: MimeType, extra?: Struct) => Promise<Uint8Array>;
|
|
23
24
|
/**
|
|
24
25
|
* Render a frame from a camera to an HTTP response.
|
|
25
26
|
*
|
|
26
27
|
* @param mimeType - A specific MIME type to request. This is not necessarily
|
|
27
28
|
* the same type that will be returned.
|
|
28
29
|
*/
|
|
29
|
-
renderFrame: (mimeType?: MimeType) => Promise<Blob>;
|
|
30
|
+
renderFrame: (mimeType?: MimeType, extra?: Struct) => Promise<Blob>;
|
|
30
31
|
/** Return a point cloud from a camera. */
|
|
31
|
-
getPointCloud: () => Promise<Uint8Array>;
|
|
32
|
+
getPointCloud: (extra?: Struct) => Promise<Uint8Array>;
|
|
32
33
|
/** Return the camera properties. */
|
|
33
34
|
getProperties: () => Promise<Properties>;
|
|
34
35
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type JsonValue, Struct } from '@bufbuild/protobuf';
|
|
2
2
|
import type { CallOptions } from '@connectrpc/connect';
|
|
3
3
|
import type { RobotClient } from '../../robot';
|
|
4
4
|
import type { Options } from '../../types';
|
|
@@ -14,9 +14,9 @@ export declare class CameraClient implements Camera {
|
|
|
14
14
|
private readonly options;
|
|
15
15
|
callOptions: CallOptions;
|
|
16
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
|
-
getImage(mimeType?: MimeType, callOptions?: CallOptions): Promise<Uint8Array>;
|
|
18
|
-
renderFrame(mimeType?: MimeType, callOptions?: CallOptions): Promise<Blob>;
|
|
19
|
-
getPointCloud(callOptions?: CallOptions): Promise<Uint8Array>;
|
|
17
|
+
getImage(mimeType?: MimeType, extra?: {}, callOptions?: CallOptions): Promise<Uint8Array>;
|
|
18
|
+
renderFrame(mimeType?: MimeType, extra?: {}, callOptions?: CallOptions): Promise<Blob>;
|
|
19
|
+
getPointCloud(extra?: {}, callOptions?: CallOptions): Promise<Uint8Array>;
|
|
20
20
|
getProperties(callOptions?: CallOptions): Promise<import("../../gen/component/camera/v1/camera_pb").GetPropertiesResponse>;
|
|
21
21
|
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
22
22
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
2
|
+
import type { CallOptions } from '@connectrpc/connect';
|
|
3
|
+
import type { RobotClient } from '../../robot';
|
|
4
|
+
import type { Options } from '../../types';
|
|
5
|
+
import type { Switch } from './switch';
|
|
6
|
+
/**
|
|
7
|
+
* A gRPC-web client for the Switch component.
|
|
8
|
+
*
|
|
9
|
+
* @group Clients
|
|
10
|
+
*/
|
|
11
|
+
export declare class SwitchClient implements Switch {
|
|
12
|
+
private client;
|
|
13
|
+
private readonly name;
|
|
14
|
+
private readonly options;
|
|
15
|
+
callOptions: CallOptions;
|
|
16
|
+
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
|
+
setPosition(position: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
18
|
+
getPosition(extra?: {}, callOptions?: CallOptions): Promise<number>;
|
|
19
|
+
getNumberOfPositions(extra?: {}, callOptions?: CallOptions): Promise<number>;
|
|
20
|
+
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Struct } from '@bufbuild/protobuf';
|
|
2
|
+
import type { Resource } from '../../types';
|
|
3
|
+
/** Represents a physical switch with multiple positions. */
|
|
4
|
+
export interface Switch extends Resource {
|
|
5
|
+
/** Set the switch to a specific position. */
|
|
6
|
+
setPosition: (position: number, extra?: Struct) => Promise<void>;
|
|
7
|
+
/** Get the current position of the switch. */
|
|
8
|
+
getPosition: (extra?: Struct) => Promise<number>;
|
|
9
|
+
/** Get the total number of positions available on the switch. */
|
|
10
|
+
getNumberOfPositions: (extra?: Struct) => Promise<number>;
|
|
11
|
+
}
|
|
@@ -1270,6 +1270,11 @@ export declare class BillingAddress extends Message<BillingAddress> {
|
|
|
1270
1270
|
*/
|
|
1271
1271
|
zipcode: string;
|
|
1272
1272
|
|
|
1273
|
+
/**
|
|
1274
|
+
* @generated from field: string country = 6;
|
|
1275
|
+
*/
|
|
1276
|
+
country: string;
|
|
1277
|
+
|
|
1273
1278
|
constructor(data?: PartialMessage<BillingAddress>);
|
|
1274
1279
|
|
|
1275
1280
|
static readonly runtime: typeof proto3;
|
|
@@ -3205,6 +3210,11 @@ export declare class Fragment extends Message<Fragment> {
|
|
|
3205
3210
|
*/
|
|
3206
3211
|
lastUpdated?: Timestamp;
|
|
3207
3212
|
|
|
3213
|
+
/**
|
|
3214
|
+
* @generated from field: string revision = 14;
|
|
3215
|
+
*/
|
|
3216
|
+
revision: string;
|
|
3217
|
+
|
|
3208
3218
|
constructor(data?: PartialMessage<Fragment>);
|
|
3209
3219
|
|
|
3210
3220
|
static readonly runtime: typeof proto3;
|
|
@@ -3269,6 +3279,64 @@ export declare class FragmentHistoryEntry extends Message<FragmentHistoryEntry>
|
|
|
3269
3279
|
static equals(a: FragmentHistoryEntry | PlainMessage<FragmentHistoryEntry> | undefined, b: FragmentHistoryEntry | PlainMessage<FragmentHistoryEntry> | undefined): boolean;
|
|
3270
3280
|
}
|
|
3271
3281
|
|
|
3282
|
+
/**
|
|
3283
|
+
* @generated from message viam.app.v1.FragmentRevision
|
|
3284
|
+
*/
|
|
3285
|
+
export declare class FragmentRevision extends Message<FragmentRevision> {
|
|
3286
|
+
/**
|
|
3287
|
+
* @generated from field: string revision = 1;
|
|
3288
|
+
*/
|
|
3289
|
+
revision: string;
|
|
3290
|
+
|
|
3291
|
+
/**
|
|
3292
|
+
* @generated from field: google.protobuf.Timestamp created_at = 2;
|
|
3293
|
+
*/
|
|
3294
|
+
createdAt?: Timestamp;
|
|
3295
|
+
|
|
3296
|
+
constructor(data?: PartialMessage<FragmentRevision>);
|
|
3297
|
+
|
|
3298
|
+
static readonly runtime: typeof proto3;
|
|
3299
|
+
static readonly typeName = "viam.app.v1.FragmentRevision";
|
|
3300
|
+
static readonly fields: FieldList;
|
|
3301
|
+
|
|
3302
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FragmentRevision;
|
|
3303
|
+
|
|
3304
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FragmentRevision;
|
|
3305
|
+
|
|
3306
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FragmentRevision;
|
|
3307
|
+
|
|
3308
|
+
static equals(a: FragmentRevision | PlainMessage<FragmentRevision> | undefined, b: FragmentRevision | PlainMessage<FragmentRevision> | undefined): boolean;
|
|
3309
|
+
}
|
|
3310
|
+
|
|
3311
|
+
/**
|
|
3312
|
+
* @generated from message viam.app.v1.FragmentTag
|
|
3313
|
+
*/
|
|
3314
|
+
export declare class FragmentTag extends Message<FragmentTag> {
|
|
3315
|
+
/**
|
|
3316
|
+
* @generated from field: string tag = 1;
|
|
3317
|
+
*/
|
|
3318
|
+
tag: string;
|
|
3319
|
+
|
|
3320
|
+
/**
|
|
3321
|
+
* @generated from field: string revision = 2;
|
|
3322
|
+
*/
|
|
3323
|
+
revision: string;
|
|
3324
|
+
|
|
3325
|
+
constructor(data?: PartialMessage<FragmentTag>);
|
|
3326
|
+
|
|
3327
|
+
static readonly runtime: typeof proto3;
|
|
3328
|
+
static readonly typeName = "viam.app.v1.FragmentTag";
|
|
3329
|
+
static readonly fields: FieldList;
|
|
3330
|
+
|
|
3331
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FragmentTag;
|
|
3332
|
+
|
|
3333
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FragmentTag;
|
|
3334
|
+
|
|
3335
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FragmentTag;
|
|
3336
|
+
|
|
3337
|
+
static equals(a: FragmentTag | PlainMessage<FragmentTag> | undefined, b: FragmentTag | PlainMessage<FragmentTag> | undefined): boolean;
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3272
3340
|
/**
|
|
3273
3341
|
* @generated from message viam.app.v1.FragmentError
|
|
3274
3342
|
*/
|
|
@@ -3304,6 +3372,8 @@ export declare class FragmentError extends Message<FragmentError> {
|
|
|
3304
3372
|
}
|
|
3305
3373
|
|
|
3306
3374
|
/**
|
|
3375
|
+
* Cached fragment usage statistics
|
|
3376
|
+
*
|
|
3307
3377
|
* @generated from message viam.app.v1.FragmentUsage
|
|
3308
3378
|
*/
|
|
3309
3379
|
export declare class FragmentUsage extends Message<FragmentUsage> {
|
|
@@ -3327,6 +3397,13 @@ export declare class FragmentUsage extends Message<FragmentUsage> {
|
|
|
3327
3397
|
*/
|
|
3328
3398
|
machinesInCurrentOrg: number;
|
|
3329
3399
|
|
|
3400
|
+
/**
|
|
3401
|
+
* revision or tag
|
|
3402
|
+
*
|
|
3403
|
+
* @generated from field: optional string version = 5;
|
|
3404
|
+
*/
|
|
3405
|
+
version?: string;
|
|
3406
|
+
|
|
3330
3407
|
constructor(data?: PartialMessage<FragmentUsage>);
|
|
3331
3408
|
|
|
3332
3409
|
static readonly runtime: typeof proto3;
|
|
@@ -3453,6 +3530,13 @@ export declare class GetFragmentRequest extends Message<GetFragmentRequest> {
|
|
|
3453
3530
|
*/
|
|
3454
3531
|
currentOrganizationId: string;
|
|
3455
3532
|
|
|
3533
|
+
/**
|
|
3534
|
+
* revision or tag
|
|
3535
|
+
*
|
|
3536
|
+
* @generated from field: optional string version = 3;
|
|
3537
|
+
*/
|
|
3538
|
+
version?: string;
|
|
3539
|
+
|
|
3456
3540
|
constructor(data?: PartialMessage<GetFragmentRequest>);
|
|
3457
3541
|
|
|
3458
3542
|
static readonly runtime: typeof proto3;
|
|
@@ -3482,6 +3566,16 @@ export declare class GetFragmentResponse extends Message<GetFragmentResponse> {
|
|
|
3482
3566
|
*/
|
|
3483
3567
|
fragmentUsage?: FragmentUsage;
|
|
3484
3568
|
|
|
3569
|
+
/**
|
|
3570
|
+
* @generated from field: repeated viam.app.v1.FragmentRevision revisions = 3;
|
|
3571
|
+
*/
|
|
3572
|
+
revisions: FragmentRevision[];
|
|
3573
|
+
|
|
3574
|
+
/**
|
|
3575
|
+
* @generated from field: repeated viam.app.v1.FragmentTag tags = 4;
|
|
3576
|
+
*/
|
|
3577
|
+
tags: FragmentTag[];
|
|
3578
|
+
|
|
3485
3579
|
constructor(data?: PartialMessage<GetFragmentResponse>);
|
|
3486
3580
|
|
|
3487
3581
|
static readonly runtime: typeof proto3;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { BlockForOperationRequest, BlockForOperationResponse, CancelOperationRequest, CancelOperationResponse, DiscoverComponentsRequest, DiscoverComponentsResponse, FrameSystemConfigRequest, FrameSystemConfigResponse, GetCloudMetadataRequest, GetCloudMetadataResponse, GetMachineStatusRequest, GetMachineStatusResponse, GetModelsFromModulesRequest, GetModelsFromModulesResponse, GetOperationsRequest, GetOperationsResponse, GetSessionsRequest, GetSessionsResponse, GetStatusRequest, GetStatusResponse, GetVersionRequest, GetVersionResponse, LogRequest, LogResponse, ResourceNamesRequest, ResourceNamesResponse, ResourceRPCSubtypesRequest, ResourceRPCSubtypesResponse, RestartModuleRequest, RestartModuleResponse, SendSessionHeartbeatRequest, SendSessionHeartbeatResponse, ShutdownRequest, ShutdownResponse, StartSessionRequest, StartSessionResponse, StopAllRequest, StopAllResponse, StreamStatusRequest, StreamStatusResponse, TransformPCDRequest, TransformPCDResponse, TransformPoseRequest, TransformPoseResponse } from "./robot_pb.js";
|
|
6
|
+
import { BlockForOperationRequest, BlockForOperationResponse, CancelOperationRequest, CancelOperationResponse, DiscoverComponentsRequest, DiscoverComponentsResponse, FrameSystemConfigRequest, FrameSystemConfigResponse, GetCloudMetadataRequest, GetCloudMetadataResponse, GetMachineStatusRequest, GetMachineStatusResponse, GetModelsFromModulesRequest, GetModelsFromModulesResponse, GetOperationsRequest, GetOperationsResponse, GetSessionsRequest, GetSessionsResponse, GetStatusRequest, GetStatusResponse, GetVersionRequest, GetVersionResponse, LogRequest, LogResponse, ResourceNamesRequest, ResourceNamesResponse, ResourceRPCSubtypesRequest, ResourceRPCSubtypesResponse, RestartModuleRequest, RestartModuleResponse, SendSessionHeartbeatRequest, SendSessionHeartbeatResponse, ShutdownRequest, ShutdownResponse, StartSessionRequest, StartSessionResponse, StopAllRequest, StopAllResponse, StreamStatusRequest, StreamStatusResponse, TransformPCDRequest, TransformPCDResponse, TransformPoseRequest, TransformPoseResponse, TunnelRequest, TunnelResponse } from "./robot_pb.js";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -247,6 +247,17 @@ export declare const RobotService: {
|
|
|
247
247
|
readonly O: typeof GetVersionResponse,
|
|
248
248
|
readonly kind: MethodKind.Unary,
|
|
249
249
|
},
|
|
250
|
+
/**
|
|
251
|
+
* Tunnel tunnels traffic to the destination port of the robot server.
|
|
252
|
+
*
|
|
253
|
+
* @generated from rpc viam.robot.v1.RobotService.Tunnel
|
|
254
|
+
*/
|
|
255
|
+
readonly tunnel: {
|
|
256
|
+
readonly name: "Tunnel",
|
|
257
|
+
readonly I: typeof TunnelRequest,
|
|
258
|
+
readonly O: typeof TunnelResponse,
|
|
259
|
+
readonly kind: MethodKind.BiDiStreaming,
|
|
260
|
+
},
|
|
250
261
|
}
|
|
251
262
|
};
|
|
252
263
|
|
|
@@ -28,12 +28,65 @@ export declare enum PeerConnectionType {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
|
|
31
|
+
* @generated from message viam.robot.v1.TunnelRequest
|
|
32
|
+
*/
|
|
33
|
+
export declare class TunnelRequest extends Message<TunnelRequest> {
|
|
34
|
+
/**
|
|
35
|
+
* @generated from field: uint32 destination_port = 1;
|
|
36
|
+
*/
|
|
37
|
+
destinationPort: number;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @generated from field: bytes data = 2;
|
|
41
|
+
*/
|
|
42
|
+
data: Uint8Array;
|
|
43
|
+
|
|
44
|
+
constructor(data?: PartialMessage<TunnelRequest>);
|
|
45
|
+
|
|
46
|
+
static readonly runtime: typeof proto3;
|
|
47
|
+
static readonly typeName = "viam.robot.v1.TunnelRequest";
|
|
48
|
+
static readonly fields: FieldList;
|
|
49
|
+
|
|
50
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TunnelRequest;
|
|
51
|
+
|
|
52
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TunnelRequest;
|
|
53
|
+
|
|
54
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TunnelRequest;
|
|
55
|
+
|
|
56
|
+
static equals(a: TunnelRequest | PlainMessage<TunnelRequest> | undefined, b: TunnelRequest | PlainMessage<TunnelRequest> | undefined): boolean;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @generated from message viam.robot.v1.TunnelResponse
|
|
61
|
+
*/
|
|
62
|
+
export declare class TunnelResponse extends Message<TunnelResponse> {
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: bytes data = 1;
|
|
65
|
+
*/
|
|
66
|
+
data: Uint8Array;
|
|
67
|
+
|
|
68
|
+
constructor(data?: PartialMessage<TunnelResponse>);
|
|
69
|
+
|
|
70
|
+
static readonly runtime: typeof proto3;
|
|
71
|
+
static readonly typeName = "viam.robot.v1.TunnelResponse";
|
|
72
|
+
static readonly fields: FieldList;
|
|
73
|
+
|
|
74
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TunnelResponse;
|
|
75
|
+
|
|
76
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TunnelResponse;
|
|
77
|
+
|
|
78
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TunnelResponse;
|
|
79
|
+
|
|
80
|
+
static equals(a: TunnelResponse | PlainMessage<TunnelResponse> | undefined, b: TunnelResponse | PlainMessage<TunnelResponse> | undefined): boolean;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
33
84
|
* @generated from message viam.robot.v1.FrameSystemConfig
|
|
34
85
|
*/
|
|
35
86
|
export declare class FrameSystemConfig extends Message<FrameSystemConfig> {
|
|
36
87
|
/**
|
|
88
|
+
* this is an experimental API message
|
|
89
|
+
*
|
|
37
90
|
* @generated from field: viam.common.v1.Transform frame = 1;
|
|
38
91
|
*/
|
|
39
92
|
frame?: Transform;
|