@viamrobotics/sdk 0.35.0 → 0.35.2-b.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/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/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 +10 -0
- package/dist/gen/app/v1/billing_pb.d.ts +2 -2
- package/dist/gen/app/v1/end_user_connect.d.ts +3 -0
- package/dist/gen/app/v1/end_user_pb.d.ts +6 -0
- package/dist/gen/component/button/v1/button_connect.d.ts +42 -0
- package/dist/gen/component/button/v1/button_pb.d.ts +56 -0
- package/dist/gen/component/switch/v1/switch_connect.d.ts +66 -0
- package/dist/gen/component/switch/v1/switch_pb.d.ts +167 -0
- package/dist/gen/robot/v1/robot_connect.d.ts +14 -1
- package/dist/gen/robot/v1/robot_pb.d.ts +59 -2
- package/dist/main.d.ts +66 -57
- package/dist/main.es.js +9253 -7911
- package/dist/main.umd.js +7 -7
- package/dist/robot/client.d.ts +28 -12
- package/dist/robot/robot.d.ts +10 -7
- package/dist/services/discovery/client.d.ts +19 -0
- package/dist/services/discovery/client.spec.d.ts +1 -0
- package/dist/services/discovery/discovery.d.ts +13 -0
- package/dist/services/discovery.d.ts +2 -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.387";
|
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -3244,6 +3244,16 @@ export declare class FragmentHistoryEntry extends Message<FragmentHistoryEntry>
|
|
|
3244
3244
|
*/
|
|
3245
3245
|
editedBy?: AuthenticatorInfo;
|
|
3246
3246
|
|
|
3247
|
+
/**
|
|
3248
|
+
* @generated from field: string revision = 5;
|
|
3249
|
+
*/
|
|
3250
|
+
revision: string;
|
|
3251
|
+
|
|
3252
|
+
/**
|
|
3253
|
+
* @generated from field: google.protobuf.Struct config = 6;
|
|
3254
|
+
*/
|
|
3255
|
+
config?: Struct;
|
|
3256
|
+
|
|
3247
3257
|
constructor(data?: PartialMessage<FragmentHistoryEntry>);
|
|
3248
3258
|
|
|
3249
3259
|
static readonly runtime: typeof proto3;
|
|
@@ -135,9 +135,9 @@ export declare enum UsageCostType {
|
|
|
135
135
|
LOGS_EGRESS = 20,
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
|
-
* @generated from enum value:
|
|
138
|
+
* @generated from enum value: USAGE_COST_TYPE_TRAINING_LOGS_EGRESS = 21;
|
|
139
139
|
*/
|
|
140
|
-
|
|
140
|
+
TRAINING_LOGS_EGRESS = 21,
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
/**
|
|
@@ -39,6 +39,7 @@ export declare const EndUserService: {
|
|
|
39
39
|
* Allows users to register third party auth applications using Viam linked to the indicated organization
|
|
40
40
|
*
|
|
41
41
|
* @generated from rpc viam.app.v1.EndUserService.RegisterAuthApplication
|
|
42
|
+
* @deprecated
|
|
42
43
|
*/
|
|
43
44
|
readonly registerAuthApplication: {
|
|
44
45
|
readonly name: "RegisterAuthApplication",
|
|
@@ -50,6 +51,7 @@ export declare const EndUserService: {
|
|
|
50
51
|
* Allows users to update their third party auth applications
|
|
51
52
|
*
|
|
52
53
|
* @generated from rpc viam.app.v1.EndUserService.UpdateAuthApplication
|
|
54
|
+
* @deprecated
|
|
53
55
|
*/
|
|
54
56
|
readonly updateAuthApplication: {
|
|
55
57
|
readonly name: "UpdateAuthApplication",
|
|
@@ -61,6 +63,7 @@ export declare const EndUserService: {
|
|
|
61
63
|
* Allows users to get the config for their third party auth applications
|
|
62
64
|
*
|
|
63
65
|
* @generated from rpc viam.app.v1.EndUserService.GetAuthApplication
|
|
66
|
+
* @deprecated
|
|
64
67
|
*/
|
|
65
68
|
readonly getAuthApplication: {
|
|
66
69
|
readonly name: "GetAuthApplication",
|
|
@@ -91,6 +91,7 @@ export declare class AcceptLegalResponse extends Message<AcceptLegalResponse> {
|
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* @generated from message viam.app.v1.RegisterAuthApplicationRequest
|
|
94
|
+
* @deprecated
|
|
94
95
|
*/
|
|
95
96
|
export declare class RegisterAuthApplicationRequest extends Message<RegisterAuthApplicationRequest> {
|
|
96
97
|
/**
|
|
@@ -135,6 +136,7 @@ export declare class RegisterAuthApplicationRequest extends Message<RegisterAuth
|
|
|
135
136
|
|
|
136
137
|
/**
|
|
137
138
|
* @generated from message viam.app.v1.RegisterAuthApplicationResponse
|
|
139
|
+
* @deprecated
|
|
138
140
|
*/
|
|
139
141
|
export declare class RegisterAuthApplicationResponse extends Message<RegisterAuthApplicationResponse> {
|
|
140
142
|
/**
|
|
@@ -169,6 +171,7 @@ export declare class RegisterAuthApplicationResponse extends Message<RegisterAut
|
|
|
169
171
|
|
|
170
172
|
/**
|
|
171
173
|
* @generated from message viam.app.v1.UpdateAuthApplicationRequest
|
|
174
|
+
* @deprecated
|
|
172
175
|
*/
|
|
173
176
|
export declare class UpdateAuthApplicationRequest extends Message<UpdateAuthApplicationRequest> {
|
|
174
177
|
/**
|
|
@@ -218,6 +221,7 @@ export declare class UpdateAuthApplicationRequest extends Message<UpdateAuthAppl
|
|
|
218
221
|
|
|
219
222
|
/**
|
|
220
223
|
* @generated from message viam.app.v1.UpdateAuthApplicationResponse
|
|
224
|
+
* @deprecated
|
|
221
225
|
*/
|
|
222
226
|
export declare class UpdateAuthApplicationResponse extends Message<UpdateAuthApplicationResponse> {
|
|
223
227
|
/**
|
|
@@ -247,6 +251,7 @@ export declare class UpdateAuthApplicationResponse extends Message<UpdateAuthApp
|
|
|
247
251
|
|
|
248
252
|
/**
|
|
249
253
|
* @generated from message viam.app.v1.GetAuthApplicationRequest
|
|
254
|
+
* @deprecated
|
|
250
255
|
*/
|
|
251
256
|
export declare class GetAuthApplicationRequest extends Message<GetAuthApplicationRequest> {
|
|
252
257
|
/**
|
|
@@ -276,6 +281,7 @@ export declare class GetAuthApplicationRequest extends Message<GetAuthApplicatio
|
|
|
276
281
|
|
|
277
282
|
/**
|
|
278
283
|
* @generated from message viam.app.v1.GetAuthApplicationResponse
|
|
284
|
+
* @deprecated
|
|
279
285
|
*/
|
|
280
286
|
export declare class GetAuthApplicationResponse extends Message<GetAuthApplicationResponse> {
|
|
281
287
|
/**
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.5.0
|
|
2
|
+
// @generated from file component/button/v1/button.proto (package viam.component.button.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { PushRequest, PushResponse } from "./button_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
import { DoCommandRequest, DoCommandResponse } from "../../../common/v1/common_pb.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* A ButtonService services buttons associated with a machine
|
|
12
|
+
*
|
|
13
|
+
* @generated from service viam.component.button.v1.ButtonService
|
|
14
|
+
*/
|
|
15
|
+
export declare const ButtonService: {
|
|
16
|
+
readonly typeName: "viam.component.button.v1.ButtonService",
|
|
17
|
+
readonly methods: {
|
|
18
|
+
/**
|
|
19
|
+
* Pushes a button
|
|
20
|
+
*
|
|
21
|
+
* @generated from rpc viam.component.button.v1.ButtonService.Push
|
|
22
|
+
*/
|
|
23
|
+
readonly push: {
|
|
24
|
+
readonly name: "Push",
|
|
25
|
+
readonly I: typeof PushRequest,
|
|
26
|
+
readonly O: typeof PushResponse,
|
|
27
|
+
readonly kind: MethodKind.Unary,
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* DoCommand sends/receives arbitrary commands
|
|
31
|
+
*
|
|
32
|
+
* @generated from rpc viam.component.button.v1.ButtonService.DoCommand
|
|
33
|
+
*/
|
|
34
|
+
readonly doCommand: {
|
|
35
|
+
readonly name: "DoCommand",
|
|
36
|
+
readonly I: typeof DoCommandRequest,
|
|
37
|
+
readonly O: typeof DoCommandResponse,
|
|
38
|
+
readonly kind: MethodKind.Unary,
|
|
39
|
+
},
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0
|
|
2
|
+
// @generated from file component/button/v1/button.proto (package viam.component.button.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message viam.component.button.v1.PushRequest
|
|
11
|
+
*/
|
|
12
|
+
export declare class PushRequest extends Message<PushRequest> {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: string name = 1;
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: google.protobuf.Struct extra = 99;
|
|
20
|
+
*/
|
|
21
|
+
extra?: Struct;
|
|
22
|
+
|
|
23
|
+
constructor(data?: PartialMessage<PushRequest>);
|
|
24
|
+
|
|
25
|
+
static readonly runtime: typeof proto3;
|
|
26
|
+
static readonly typeName = "viam.component.button.v1.PushRequest";
|
|
27
|
+
static readonly fields: FieldList;
|
|
28
|
+
|
|
29
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PushRequest;
|
|
30
|
+
|
|
31
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PushRequest;
|
|
32
|
+
|
|
33
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PushRequest;
|
|
34
|
+
|
|
35
|
+
static equals(a: PushRequest | PlainMessage<PushRequest> | undefined, b: PushRequest | PlainMessage<PushRequest> | undefined): boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @generated from message viam.component.button.v1.PushResponse
|
|
40
|
+
*/
|
|
41
|
+
export declare class PushResponse extends Message<PushResponse> {
|
|
42
|
+
constructor(data?: PartialMessage<PushResponse>);
|
|
43
|
+
|
|
44
|
+
static readonly runtime: typeof proto3;
|
|
45
|
+
static readonly typeName = "viam.component.button.v1.PushResponse";
|
|
46
|
+
static readonly fields: FieldList;
|
|
47
|
+
|
|
48
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PushResponse;
|
|
49
|
+
|
|
50
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PushResponse;
|
|
51
|
+
|
|
52
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PushResponse;
|
|
53
|
+
|
|
54
|
+
static equals(a: PushResponse | PlainMessage<PushResponse> | undefined, b: PushResponse | PlainMessage<PushResponse> | undefined): boolean;
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.5.0
|
|
2
|
+
// @generated from file component/switch/v1/switch.proto (package viam.component.switch.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { GetNumberOfPositionsRequest, GetNumberOfPositionsResponse, GetPositionRequest, GetPositionResponse, SetPositionRequest, SetPositionResponse } from "./switch_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
import { DoCommandRequest, DoCommandResponse } from "../../../common/v1/common_pb.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* A SwitchService services switches associated with a machine.
|
|
12
|
+
* Switches can have multiple discrete positions - e.g. a simple
|
|
13
|
+
* switch has 2 positions, but a knob could have 10 positions.
|
|
14
|
+
*
|
|
15
|
+
* @generated from service viam.component.switch.v1.SwitchService
|
|
16
|
+
*/
|
|
17
|
+
export declare const SwitchService: {
|
|
18
|
+
readonly typeName: "viam.component.switch.v1.SwitchService",
|
|
19
|
+
readonly methods: {
|
|
20
|
+
/**
|
|
21
|
+
* Set the position of the switch
|
|
22
|
+
*
|
|
23
|
+
* @generated from rpc viam.component.switch.v1.SwitchService.SetPosition
|
|
24
|
+
*/
|
|
25
|
+
readonly setPosition: {
|
|
26
|
+
readonly name: "SetPosition",
|
|
27
|
+
readonly I: typeof SetPositionRequest,
|
|
28
|
+
readonly O: typeof SetPositionResponse,
|
|
29
|
+
readonly kind: MethodKind.Unary,
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* Get the position of the switch
|
|
33
|
+
*
|
|
34
|
+
* @generated from rpc viam.component.switch.v1.SwitchService.GetPosition
|
|
35
|
+
*/
|
|
36
|
+
readonly getPosition: {
|
|
37
|
+
readonly name: "GetPosition",
|
|
38
|
+
readonly I: typeof GetPositionRequest,
|
|
39
|
+
readonly O: typeof GetPositionResponse,
|
|
40
|
+
readonly kind: MethodKind.Unary,
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* Get the number of positions that the switch supports
|
|
44
|
+
*
|
|
45
|
+
* @generated from rpc viam.component.switch.v1.SwitchService.GetNumberOfPositions
|
|
46
|
+
*/
|
|
47
|
+
readonly getNumberOfPositions: {
|
|
48
|
+
readonly name: "GetNumberOfPositions",
|
|
49
|
+
readonly I: typeof GetNumberOfPositionsRequest,
|
|
50
|
+
readonly O: typeof GetNumberOfPositionsResponse,
|
|
51
|
+
readonly kind: MethodKind.Unary,
|
|
52
|
+
},
|
|
53
|
+
/**
|
|
54
|
+
* DoCommand sends/receives arbitrary commands
|
|
55
|
+
*
|
|
56
|
+
* @generated from rpc viam.component.switch.v1.SwitchService.DoCommand
|
|
57
|
+
*/
|
|
58
|
+
readonly doCommand: {
|
|
59
|
+
readonly name: "DoCommand",
|
|
60
|
+
readonly I: typeof DoCommandRequest,
|
|
61
|
+
readonly O: typeof DoCommandResponse,
|
|
62
|
+
readonly kind: MethodKind.Unary,
|
|
63
|
+
},
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0
|
|
2
|
+
// @generated from file component/switch/v1/switch.proto (package viam.component.switch.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message viam.component.switch.v1.SetPositionRequest
|
|
11
|
+
*/
|
|
12
|
+
export declare class SetPositionRequest extends Message<SetPositionRequest> {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: string name = 1;
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: uint32 position = 2;
|
|
20
|
+
*/
|
|
21
|
+
position: number;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: google.protobuf.Struct extra = 99;
|
|
25
|
+
*/
|
|
26
|
+
extra?: Struct;
|
|
27
|
+
|
|
28
|
+
constructor(data?: PartialMessage<SetPositionRequest>);
|
|
29
|
+
|
|
30
|
+
static readonly runtime: typeof proto3;
|
|
31
|
+
static readonly typeName = "viam.component.switch.v1.SetPositionRequest";
|
|
32
|
+
static readonly fields: FieldList;
|
|
33
|
+
|
|
34
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetPositionRequest;
|
|
35
|
+
|
|
36
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetPositionRequest;
|
|
37
|
+
|
|
38
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetPositionRequest;
|
|
39
|
+
|
|
40
|
+
static equals(a: SetPositionRequest | PlainMessage<SetPositionRequest> | undefined, b: SetPositionRequest | PlainMessage<SetPositionRequest> | undefined): boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @generated from message viam.component.switch.v1.SetPositionResponse
|
|
45
|
+
*/
|
|
46
|
+
export declare class SetPositionResponse extends Message<SetPositionResponse> {
|
|
47
|
+
constructor(data?: PartialMessage<SetPositionResponse>);
|
|
48
|
+
|
|
49
|
+
static readonly runtime: typeof proto3;
|
|
50
|
+
static readonly typeName = "viam.component.switch.v1.SetPositionResponse";
|
|
51
|
+
static readonly fields: FieldList;
|
|
52
|
+
|
|
53
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetPositionResponse;
|
|
54
|
+
|
|
55
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetPositionResponse;
|
|
56
|
+
|
|
57
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetPositionResponse;
|
|
58
|
+
|
|
59
|
+
static equals(a: SetPositionResponse | PlainMessage<SetPositionResponse> | undefined, b: SetPositionResponse | PlainMessage<SetPositionResponse> | undefined): boolean;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @generated from message viam.component.switch.v1.GetPositionRequest
|
|
64
|
+
*/
|
|
65
|
+
export declare class GetPositionRequest extends Message<GetPositionRequest> {
|
|
66
|
+
/**
|
|
67
|
+
* @generated from field: string name = 1;
|
|
68
|
+
*/
|
|
69
|
+
name: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: google.protobuf.Struct extra = 99;
|
|
73
|
+
*/
|
|
74
|
+
extra?: Struct;
|
|
75
|
+
|
|
76
|
+
constructor(data?: PartialMessage<GetPositionRequest>);
|
|
77
|
+
|
|
78
|
+
static readonly runtime: typeof proto3;
|
|
79
|
+
static readonly typeName = "viam.component.switch.v1.GetPositionRequest";
|
|
80
|
+
static readonly fields: FieldList;
|
|
81
|
+
|
|
82
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPositionRequest;
|
|
83
|
+
|
|
84
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPositionRequest;
|
|
85
|
+
|
|
86
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPositionRequest;
|
|
87
|
+
|
|
88
|
+
static equals(a: GetPositionRequest | PlainMessage<GetPositionRequest> | undefined, b: GetPositionRequest | PlainMessage<GetPositionRequest> | undefined): boolean;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @generated from message viam.component.switch.v1.GetPositionResponse
|
|
93
|
+
*/
|
|
94
|
+
export declare class GetPositionResponse extends Message<GetPositionResponse> {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: uint32 position = 1;
|
|
97
|
+
*/
|
|
98
|
+
position: number;
|
|
99
|
+
|
|
100
|
+
constructor(data?: PartialMessage<GetPositionResponse>);
|
|
101
|
+
|
|
102
|
+
static readonly runtime: typeof proto3;
|
|
103
|
+
static readonly typeName = "viam.component.switch.v1.GetPositionResponse";
|
|
104
|
+
static readonly fields: FieldList;
|
|
105
|
+
|
|
106
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPositionResponse;
|
|
107
|
+
|
|
108
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPositionResponse;
|
|
109
|
+
|
|
110
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPositionResponse;
|
|
111
|
+
|
|
112
|
+
static equals(a: GetPositionResponse | PlainMessage<GetPositionResponse> | undefined, b: GetPositionResponse | PlainMessage<GetPositionResponse> | undefined): boolean;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @generated from message viam.component.switch.v1.GetNumberOfPositionsRequest
|
|
117
|
+
*/
|
|
118
|
+
export declare class GetNumberOfPositionsRequest extends Message<GetNumberOfPositionsRequest> {
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: string name = 1;
|
|
121
|
+
*/
|
|
122
|
+
name: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @generated from field: google.protobuf.Struct extra = 99;
|
|
126
|
+
*/
|
|
127
|
+
extra?: Struct;
|
|
128
|
+
|
|
129
|
+
constructor(data?: PartialMessage<GetNumberOfPositionsRequest>);
|
|
130
|
+
|
|
131
|
+
static readonly runtime: typeof proto3;
|
|
132
|
+
static readonly typeName = "viam.component.switch.v1.GetNumberOfPositionsRequest";
|
|
133
|
+
static readonly fields: FieldList;
|
|
134
|
+
|
|
135
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetNumberOfPositionsRequest;
|
|
136
|
+
|
|
137
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetNumberOfPositionsRequest;
|
|
138
|
+
|
|
139
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetNumberOfPositionsRequest;
|
|
140
|
+
|
|
141
|
+
static equals(a: GetNumberOfPositionsRequest | PlainMessage<GetNumberOfPositionsRequest> | undefined, b: GetNumberOfPositionsRequest | PlainMessage<GetNumberOfPositionsRequest> | undefined): boolean;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @generated from message viam.component.switch.v1.GetNumberOfPositionsResponse
|
|
146
|
+
*/
|
|
147
|
+
export declare class GetNumberOfPositionsResponse extends Message<GetNumberOfPositionsResponse> {
|
|
148
|
+
/**
|
|
149
|
+
* @generated from field: uint32 number_of_positions = 1;
|
|
150
|
+
*/
|
|
151
|
+
numberOfPositions: number;
|
|
152
|
+
|
|
153
|
+
constructor(data?: PartialMessage<GetNumberOfPositionsResponse>);
|
|
154
|
+
|
|
155
|
+
static readonly runtime: typeof proto3;
|
|
156
|
+
static readonly typeName = "viam.component.switch.v1.GetNumberOfPositionsResponse";
|
|
157
|
+
static readonly fields: FieldList;
|
|
158
|
+
|
|
159
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetNumberOfPositionsResponse;
|
|
160
|
+
|
|
161
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetNumberOfPositionsResponse;
|
|
162
|
+
|
|
163
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetNumberOfPositionsResponse;
|
|
164
|
+
|
|
165
|
+
static equals(a: GetNumberOfPositionsResponse | PlainMessage<GetNumberOfPositionsResponse> | undefined, b: GetNumberOfPositionsResponse | PlainMessage<GetNumberOfPositionsResponse> | undefined): boolean;
|
|
166
|
+
}
|
|
167
|
+
|
|
@@ -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
|
/**
|
|
@@ -85,8 +85,10 @@ export declare const RobotService: {
|
|
|
85
85
|
},
|
|
86
86
|
/**
|
|
87
87
|
* DiscoverComponents returns the list of discovered component configurations.
|
|
88
|
+
* This API is deprecated
|
|
88
89
|
*
|
|
89
90
|
* @generated from rpc viam.robot.v1.RobotService.DiscoverComponents
|
|
91
|
+
* @deprecated
|
|
90
92
|
*/
|
|
91
93
|
readonly discoverComponents: {
|
|
92
94
|
readonly name: "DiscoverComponents",
|
|
@@ -245,6 +247,17 @@ export declare const RobotService: {
|
|
|
245
247
|
readonly O: typeof GetVersionResponse,
|
|
246
248
|
readonly kind: MethodKind.Unary,
|
|
247
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
|
+
},
|
|
248
261
|
}
|
|
249
262
|
};
|
|
250
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;
|
|
@@ -639,6 +692,7 @@ export declare class GetSessionsResponse extends Message<GetSessionsResponse> {
|
|
|
639
692
|
|
|
640
693
|
/**
|
|
641
694
|
* @generated from message viam.robot.v1.DiscoveryQuery
|
|
695
|
+
* @deprecated
|
|
642
696
|
*/
|
|
643
697
|
export declare class DiscoveryQuery extends Message<DiscoveryQuery> {
|
|
644
698
|
/**
|
|
@@ -673,6 +727,7 @@ export declare class DiscoveryQuery extends Message<DiscoveryQuery> {
|
|
|
673
727
|
|
|
674
728
|
/**
|
|
675
729
|
* @generated from message viam.robot.v1.Discovery
|
|
730
|
+
* @deprecated
|
|
676
731
|
*/
|
|
677
732
|
export declare class Discovery extends Message<Discovery> {
|
|
678
733
|
/**
|
|
@@ -784,6 +839,7 @@ export declare class GetModelsFromModulesResponse extends Message<GetModelsFromM
|
|
|
784
839
|
|
|
785
840
|
/**
|
|
786
841
|
* @generated from message viam.robot.v1.DiscoverComponentsRequest
|
|
842
|
+
* @deprecated
|
|
787
843
|
*/
|
|
788
844
|
export declare class DiscoverComponentsRequest extends Message<DiscoverComponentsRequest> {
|
|
789
845
|
/**
|
|
@@ -808,6 +864,7 @@ export declare class DiscoverComponentsRequest extends Message<DiscoverComponent
|
|
|
808
864
|
|
|
809
865
|
/**
|
|
810
866
|
* @generated from message viam.robot.v1.DiscoverComponentsResponse
|
|
867
|
+
* @deprecated
|
|
811
868
|
*/
|
|
812
869
|
export declare class DiscoverComponentsResponse extends Message<DiscoverComponentsResponse> {
|
|
813
870
|
/**
|