@viamrobotics/sdk 0.12.0 → 0.13.0-rc.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/README.md +1 -1
- package/dist/gen/app/cloudslam/v1/cloud_slam_pb.d.ts +39 -5
- package/dist/gen/app/v1/app_pb.d.ts +6 -0
- package/dist/gen/app/v1/robot_pb.d.ts +6 -0
- package/dist/gen/component/board/v1/board_pb.d.ts +60 -0
- package/dist/gen/component/board/v1/board_pb_service.d.ts +11 -0
- package/dist/gen/google/api/client_pb.d.ts +6 -0
- package/dist/gen/google/api/field_info_pb.d.ts +38 -0
- package/dist/gen/google/api/field_info_pb_service.d.ts +3 -0
- package/dist/gen/provisioning/v1/provisioning_pb.d.ts +279 -0
- package/dist/gen/provisioning/v1/provisioning_pb_service.d.ts +120 -0
- package/dist/gen/service/slam/v1/slam_pb.d.ts +50 -0
- package/dist/main.es.js +380 -34
- package/dist/main.umd.js +4 -4
- package/dist/provisioning/client.d.ts +15 -0
- package/dist/provisioning/provisioning.d.ts +23 -0
- package/dist/provisioning/types.d.ts +5 -0
- package/dist/services/slam/client.d.ts +1 -1
- package/dist/services/slam/slam.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,14 +35,19 @@ export class StartMappingSessionRequest extends jspb.Message {
|
|
|
35
35
|
setSensorsList(value: Array<SensorInfo>): void;
|
|
36
36
|
addSensors(value?: SensorInfo, index?: number): SensorInfo;
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
hasSlamConfig(): boolean;
|
|
39
|
+
clearSlamConfig(): void;
|
|
40
|
+
getSlamConfig(): google_protobuf_struct_pb.Struct | undefined;
|
|
41
|
+
setSlamConfig(value?: google_protobuf_struct_pb.Struct): void;
|
|
42
42
|
|
|
43
43
|
getExistingMapVersion(): string;
|
|
44
44
|
setExistingMapVersion(value: string): void;
|
|
45
45
|
|
|
46
|
+
hasModule(): boolean;
|
|
47
|
+
clearModule(): void;
|
|
48
|
+
getModule(): Module | undefined;
|
|
49
|
+
setModule(value?: Module): void;
|
|
50
|
+
|
|
46
51
|
serializeBinary(): Uint8Array;
|
|
47
52
|
toObject(includeInstance?: boolean): StartMappingSessionRequest.AsObject;
|
|
48
53
|
static toObject(includeInstance: boolean, msg: StartMappingSessionRequest): StartMappingSessionRequest.AsObject;
|
|
@@ -63,8 +68,37 @@ export namespace StartMappingSessionRequest {
|
|
|
63
68
|
robotId: string,
|
|
64
69
|
captureInterval?: CaptureInterval.AsObject,
|
|
65
70
|
sensorsList: Array<SensorInfo.AsObject>,
|
|
66
|
-
|
|
71
|
+
slamConfig?: google_protobuf_struct_pb.Struct.AsObject,
|
|
67
72
|
existingMapVersion: string,
|
|
73
|
+
module?: Module.AsObject,
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export class Module extends jspb.Message {
|
|
78
|
+
getName(): string;
|
|
79
|
+
setName(value: string): void;
|
|
80
|
+
|
|
81
|
+
getModuleId(): string;
|
|
82
|
+
setModuleId(value: string): void;
|
|
83
|
+
|
|
84
|
+
getVersion(): string;
|
|
85
|
+
setVersion(value: string): void;
|
|
86
|
+
|
|
87
|
+
serializeBinary(): Uint8Array;
|
|
88
|
+
toObject(includeInstance?: boolean): Module.AsObject;
|
|
89
|
+
static toObject(includeInstance: boolean, msg: Module): Module.AsObject;
|
|
90
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
91
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
92
|
+
static serializeBinaryToWriter(message: Module, writer: jspb.BinaryWriter): void;
|
|
93
|
+
static deserializeBinary(bytes: Uint8Array): Module;
|
|
94
|
+
static deserializeBinaryFromReader(message: Module, reader: jspb.BinaryReader): Module;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export namespace Module {
|
|
98
|
+
export type AsObject = {
|
|
99
|
+
name: string,
|
|
100
|
+
moduleId: string,
|
|
101
|
+
version: string,
|
|
68
102
|
}
|
|
69
103
|
}
|
|
70
104
|
|
|
@@ -612,6 +612,11 @@ export class CreateOrganizationInviteRequest extends jspb.Message {
|
|
|
612
612
|
setAuthorizationsList(value: Array<Authorization>): void;
|
|
613
613
|
addAuthorizations(value?: Authorization, index?: number): Authorization;
|
|
614
614
|
|
|
615
|
+
hasSendEmailInvite(): boolean;
|
|
616
|
+
clearSendEmailInvite(): void;
|
|
617
|
+
getSendEmailInvite(): boolean;
|
|
618
|
+
setSendEmailInvite(value: boolean): void;
|
|
619
|
+
|
|
615
620
|
serializeBinary(): Uint8Array;
|
|
616
621
|
toObject(includeInstance?: boolean): CreateOrganizationInviteRequest.AsObject;
|
|
617
622
|
static toObject(includeInstance: boolean, msg: CreateOrganizationInviteRequest): CreateOrganizationInviteRequest.AsObject;
|
|
@@ -627,6 +632,7 @@ export namespace CreateOrganizationInviteRequest {
|
|
|
627
632
|
organizationId: string,
|
|
628
633
|
email: string,
|
|
629
634
|
authorizationsList: Array<Authorization.AsObject>,
|
|
635
|
+
sendEmailInvite: boolean,
|
|
630
636
|
}
|
|
631
637
|
}
|
|
632
638
|
|
|
@@ -63,6 +63,11 @@ export class RobotConfig extends jspb.Message {
|
|
|
63
63
|
setPackagesList(value: Array<PackageConfig>): void;
|
|
64
64
|
addPackages(value?: PackageConfig, index?: number): PackageConfig;
|
|
65
65
|
|
|
66
|
+
clearOverwriteFragmentStatusList(): void;
|
|
67
|
+
getOverwriteFragmentStatusList(): Array<AppValidationStatus>;
|
|
68
|
+
setOverwriteFragmentStatusList(value: Array<AppValidationStatus>): void;
|
|
69
|
+
addOverwriteFragmentStatus(value?: AppValidationStatus, index?: number): AppValidationStatus;
|
|
70
|
+
|
|
66
71
|
serializeBinary(): Uint8Array;
|
|
67
72
|
toObject(includeInstance?: boolean): RobotConfig.AsObject;
|
|
68
73
|
static toObject(includeInstance: boolean, msg: RobotConfig): RobotConfig.AsObject;
|
|
@@ -86,6 +91,7 @@ export namespace RobotConfig {
|
|
|
86
91
|
modulesList: Array<ModuleConfig.AsObject>,
|
|
87
92
|
disablePartialStart: boolean,
|
|
88
93
|
packagesList: Array<PackageConfig.AsObject>,
|
|
94
|
+
overwriteFragmentStatusList: Array<AppValidationStatus.AsObject>,
|
|
89
95
|
}
|
|
90
96
|
}
|
|
91
97
|
|
|
@@ -505,6 +505,66 @@ export namespace GetDigitalInterruptValueResponse {
|
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
|
|
508
|
+
export class StreamTicksRequest extends jspb.Message {
|
|
509
|
+
getName(): string;
|
|
510
|
+
setName(value: string): void;
|
|
511
|
+
|
|
512
|
+
clearPinNamesList(): void;
|
|
513
|
+
getPinNamesList(): Array<string>;
|
|
514
|
+
setPinNamesList(value: Array<string>): void;
|
|
515
|
+
addPinNames(value: string, index?: number): string;
|
|
516
|
+
|
|
517
|
+
hasExtra(): boolean;
|
|
518
|
+
clearExtra(): void;
|
|
519
|
+
getExtra(): google_protobuf_struct_pb.Struct | undefined;
|
|
520
|
+
setExtra(value?: google_protobuf_struct_pb.Struct): void;
|
|
521
|
+
|
|
522
|
+
serializeBinary(): Uint8Array;
|
|
523
|
+
toObject(includeInstance?: boolean): StreamTicksRequest.AsObject;
|
|
524
|
+
static toObject(includeInstance: boolean, msg: StreamTicksRequest): StreamTicksRequest.AsObject;
|
|
525
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
526
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
527
|
+
static serializeBinaryToWriter(message: StreamTicksRequest, writer: jspb.BinaryWriter): void;
|
|
528
|
+
static deserializeBinary(bytes: Uint8Array): StreamTicksRequest;
|
|
529
|
+
static deserializeBinaryFromReader(message: StreamTicksRequest, reader: jspb.BinaryReader): StreamTicksRequest;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export namespace StreamTicksRequest {
|
|
533
|
+
export type AsObject = {
|
|
534
|
+
name: string,
|
|
535
|
+
pinNamesList: Array<string>,
|
|
536
|
+
extra?: google_protobuf_struct_pb.Struct.AsObject,
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
export class StreamTicksResponse extends jspb.Message {
|
|
541
|
+
getPinName(): string;
|
|
542
|
+
setPinName(value: string): void;
|
|
543
|
+
|
|
544
|
+
getTime(): number;
|
|
545
|
+
setTime(value: number): void;
|
|
546
|
+
|
|
547
|
+
getHigh(): boolean;
|
|
548
|
+
setHigh(value: boolean): void;
|
|
549
|
+
|
|
550
|
+
serializeBinary(): Uint8Array;
|
|
551
|
+
toObject(includeInstance?: boolean): StreamTicksResponse.AsObject;
|
|
552
|
+
static toObject(includeInstance: boolean, msg: StreamTicksResponse): StreamTicksResponse.AsObject;
|
|
553
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
554
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
555
|
+
static serializeBinaryToWriter(message: StreamTicksResponse, writer: jspb.BinaryWriter): void;
|
|
556
|
+
static deserializeBinary(bytes: Uint8Array): StreamTicksResponse;
|
|
557
|
+
static deserializeBinaryFromReader(message: StreamTicksResponse, reader: jspb.BinaryReader): StreamTicksResponse;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
export namespace StreamTicksResponse {
|
|
561
|
+
export type AsObject = {
|
|
562
|
+
pinName: string,
|
|
563
|
+
time: number,
|
|
564
|
+
high: boolean,
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
|
|
508
568
|
export class SetPowerModeRequest extends jspb.Message {
|
|
509
569
|
getName(): string;
|
|
510
570
|
setName(value: string): void;
|
|
@@ -104,6 +104,15 @@ type BoardServiceGetDigitalInterruptValue = {
|
|
|
104
104
|
readonly responseType: typeof component_board_v1_board_pb.GetDigitalInterruptValueResponse;
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
+
type BoardServiceStreamTicks = {
|
|
108
|
+
readonly methodName: string;
|
|
109
|
+
readonly service: typeof BoardService;
|
|
110
|
+
readonly requestStream: false;
|
|
111
|
+
readonly responseStream: true;
|
|
112
|
+
readonly requestType: typeof component_board_v1_board_pb.StreamTicksRequest;
|
|
113
|
+
readonly responseType: typeof component_board_v1_board_pb.StreamTicksResponse;
|
|
114
|
+
};
|
|
115
|
+
|
|
107
116
|
type BoardServiceSetPowerMode = {
|
|
108
117
|
readonly methodName: string;
|
|
109
118
|
readonly service: typeof BoardService;
|
|
@@ -135,6 +144,7 @@ export class BoardService {
|
|
|
135
144
|
static readonly ReadAnalogReader: BoardServiceReadAnalogReader;
|
|
136
145
|
static readonly WriteAnalog: BoardServiceWriteAnalog;
|
|
137
146
|
static readonly GetDigitalInterruptValue: BoardServiceGetDigitalInterruptValue;
|
|
147
|
+
static readonly StreamTicks: BoardServiceStreamTicks;
|
|
138
148
|
static readonly SetPowerMode: BoardServiceSetPowerMode;
|
|
139
149
|
static readonly GetGeometries: BoardServiceGetGeometries;
|
|
140
150
|
}
|
|
@@ -270,6 +280,7 @@ export class BoardServiceClient {
|
|
|
270
280
|
requestMessage: component_board_v1_board_pb.GetDigitalInterruptValueRequest,
|
|
271
281
|
callback: (error: ServiceError|null, responseMessage: component_board_v1_board_pb.GetDigitalInterruptValueResponse|null) => void
|
|
272
282
|
): UnaryResponse;
|
|
283
|
+
streamTicks(requestMessage: component_board_v1_board_pb.StreamTicksRequest, metadata?: grpc.Metadata): ResponseStream<component_board_v1_board_pb.StreamTicksResponse>;
|
|
273
284
|
setPowerMode(
|
|
274
285
|
requestMessage: component_board_v1_board_pb.SetPowerModeRequest,
|
|
275
286
|
metadata: grpc.Metadata,
|
|
@@ -145,6 +145,9 @@ export class Publishing extends jspb.Message {
|
|
|
145
145
|
getProtoReferenceDocumentationUri(): string;
|
|
146
146
|
setProtoReferenceDocumentationUri(value: string): void;
|
|
147
147
|
|
|
148
|
+
getRestReferenceDocumentationUri(): string;
|
|
149
|
+
setRestReferenceDocumentationUri(value: string): void;
|
|
150
|
+
|
|
148
151
|
serializeBinary(): Uint8Array;
|
|
149
152
|
toObject(includeInstance?: boolean): Publishing.AsObject;
|
|
150
153
|
static toObject(includeInstance: boolean, msg: Publishing): Publishing.AsObject;
|
|
@@ -167,6 +170,7 @@ export namespace Publishing {
|
|
|
167
170
|
organization: ClientLibraryOrganizationMap[keyof ClientLibraryOrganizationMap],
|
|
168
171
|
librarySettingsList: Array<ClientLibrarySettings.AsObject>,
|
|
169
172
|
protoReferenceDocumentationUri: string,
|
|
173
|
+
restReferenceDocumentationUri: string,
|
|
170
174
|
}
|
|
171
175
|
}
|
|
172
176
|
|
|
@@ -453,6 +457,8 @@ export namespace MethodSettings {
|
|
|
453
457
|
|
|
454
458
|
export const oauthScopes: jspb.ExtensionFieldInfo<string>;
|
|
455
459
|
|
|
460
|
+
export const apiVersion: jspb.ExtensionFieldInfo<string>;
|
|
461
|
+
|
|
456
462
|
export interface ClientLibraryOrganizationMap {
|
|
457
463
|
CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED: 0;
|
|
458
464
|
CLOUD: 1;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// package: google.api
|
|
2
|
+
// file: google/api/field_info.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb";
|
|
6
|
+
|
|
7
|
+
export class FieldInfo extends jspb.Message {
|
|
8
|
+
getFormat(): FieldInfo.FormatMap[keyof FieldInfo.FormatMap];
|
|
9
|
+
setFormat(value: FieldInfo.FormatMap[keyof FieldInfo.FormatMap]): void;
|
|
10
|
+
|
|
11
|
+
serializeBinary(): Uint8Array;
|
|
12
|
+
toObject(includeInstance?: boolean): FieldInfo.AsObject;
|
|
13
|
+
static toObject(includeInstance: boolean, msg: FieldInfo): FieldInfo.AsObject;
|
|
14
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
15
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
16
|
+
static serializeBinaryToWriter(message: FieldInfo, writer: jspb.BinaryWriter): void;
|
|
17
|
+
static deserializeBinary(bytes: Uint8Array): FieldInfo;
|
|
18
|
+
static deserializeBinaryFromReader(message: FieldInfo, reader: jspb.BinaryReader): FieldInfo;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export namespace FieldInfo {
|
|
22
|
+
export type AsObject = {
|
|
23
|
+
format: FieldInfo.FormatMap[keyof FieldInfo.FormatMap],
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface FormatMap {
|
|
27
|
+
FORMAT_UNSPECIFIED: 0;
|
|
28
|
+
UUID4: 1;
|
|
29
|
+
IPV4: 2;
|
|
30
|
+
IPV6: 3;
|
|
31
|
+
IPV4_OR_IPV6: 4;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const Format: FormatMap;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const fieldInfo: jspb.ExtensionFieldInfo<FieldInfo>;
|
|
38
|
+
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
// package: viam.provisioning.v1
|
|
2
|
+
// file: provisioning/v1/provisioning.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
|
|
6
|
+
export class GetSmartMachineStatusRequest extends jspb.Message {
|
|
7
|
+
serializeBinary(): Uint8Array;
|
|
8
|
+
toObject(includeInstance?: boolean): GetSmartMachineStatusRequest.AsObject;
|
|
9
|
+
static toObject(includeInstance: boolean, msg: GetSmartMachineStatusRequest): GetSmartMachineStatusRequest.AsObject;
|
|
10
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
11
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
12
|
+
static serializeBinaryToWriter(message: GetSmartMachineStatusRequest, writer: jspb.BinaryWriter): void;
|
|
13
|
+
static deserializeBinary(bytes: Uint8Array): GetSmartMachineStatusRequest;
|
|
14
|
+
static deserializeBinaryFromReader(message: GetSmartMachineStatusRequest, reader: jspb.BinaryReader): GetSmartMachineStatusRequest;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export namespace GetSmartMachineStatusRequest {
|
|
18
|
+
export type AsObject = {
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class GetSmartMachineStatusResponse extends jspb.Message {
|
|
23
|
+
hasProvisioningInfo(): boolean;
|
|
24
|
+
clearProvisioningInfo(): void;
|
|
25
|
+
getProvisioningInfo(): ProvisioningInfo | undefined;
|
|
26
|
+
setProvisioningInfo(value?: ProvisioningInfo): void;
|
|
27
|
+
|
|
28
|
+
getHasSmartMachineCredentials(): boolean;
|
|
29
|
+
setHasSmartMachineCredentials(value: boolean): void;
|
|
30
|
+
|
|
31
|
+
getIsOnline(): boolean;
|
|
32
|
+
setIsOnline(value: boolean): void;
|
|
33
|
+
|
|
34
|
+
hasLatestConnectionAttempt(): boolean;
|
|
35
|
+
clearLatestConnectionAttempt(): void;
|
|
36
|
+
getLatestConnectionAttempt(): NetworkInfo | undefined;
|
|
37
|
+
setLatestConnectionAttempt(value?: NetworkInfo): void;
|
|
38
|
+
|
|
39
|
+
clearErrorsList(): void;
|
|
40
|
+
getErrorsList(): Array<string>;
|
|
41
|
+
setErrorsList(value: Array<string>): void;
|
|
42
|
+
addErrors(value: string, index?: number): string;
|
|
43
|
+
|
|
44
|
+
serializeBinary(): Uint8Array;
|
|
45
|
+
toObject(includeInstance?: boolean): GetSmartMachineStatusResponse.AsObject;
|
|
46
|
+
static toObject(includeInstance: boolean, msg: GetSmartMachineStatusResponse): GetSmartMachineStatusResponse.AsObject;
|
|
47
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
48
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
49
|
+
static serializeBinaryToWriter(message: GetSmartMachineStatusResponse, writer: jspb.BinaryWriter): void;
|
|
50
|
+
static deserializeBinary(bytes: Uint8Array): GetSmartMachineStatusResponse;
|
|
51
|
+
static deserializeBinaryFromReader(message: GetSmartMachineStatusResponse, reader: jspb.BinaryReader): GetSmartMachineStatusResponse;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export namespace GetSmartMachineStatusResponse {
|
|
55
|
+
export type AsObject = {
|
|
56
|
+
provisioningInfo?: ProvisioningInfo.AsObject,
|
|
57
|
+
hasSmartMachineCredentials: boolean,
|
|
58
|
+
isOnline: boolean,
|
|
59
|
+
latestConnectionAttempt?: NetworkInfo.AsObject,
|
|
60
|
+
errorsList: Array<string>,
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export class SetNetworkCredentialsRequest extends jspb.Message {
|
|
65
|
+
getType(): string;
|
|
66
|
+
setType(value: string): void;
|
|
67
|
+
|
|
68
|
+
getSsid(): string;
|
|
69
|
+
setSsid(value: string): void;
|
|
70
|
+
|
|
71
|
+
getPsk(): string;
|
|
72
|
+
setPsk(value: string): void;
|
|
73
|
+
|
|
74
|
+
serializeBinary(): Uint8Array;
|
|
75
|
+
toObject(includeInstance?: boolean): SetNetworkCredentialsRequest.AsObject;
|
|
76
|
+
static toObject(includeInstance: boolean, msg: SetNetworkCredentialsRequest): SetNetworkCredentialsRequest.AsObject;
|
|
77
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
78
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
79
|
+
static serializeBinaryToWriter(message: SetNetworkCredentialsRequest, writer: jspb.BinaryWriter): void;
|
|
80
|
+
static deserializeBinary(bytes: Uint8Array): SetNetworkCredentialsRequest;
|
|
81
|
+
static deserializeBinaryFromReader(message: SetNetworkCredentialsRequest, reader: jspb.BinaryReader): SetNetworkCredentialsRequest;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export namespace SetNetworkCredentialsRequest {
|
|
85
|
+
export type AsObject = {
|
|
86
|
+
type: string,
|
|
87
|
+
ssid: string,
|
|
88
|
+
psk: string,
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export class SetNetworkCredentialsResponse extends jspb.Message {
|
|
93
|
+
serializeBinary(): Uint8Array;
|
|
94
|
+
toObject(includeInstance?: boolean): SetNetworkCredentialsResponse.AsObject;
|
|
95
|
+
static toObject(includeInstance: boolean, msg: SetNetworkCredentialsResponse): SetNetworkCredentialsResponse.AsObject;
|
|
96
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
97
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
98
|
+
static serializeBinaryToWriter(message: SetNetworkCredentialsResponse, writer: jspb.BinaryWriter): void;
|
|
99
|
+
static deserializeBinary(bytes: Uint8Array): SetNetworkCredentialsResponse;
|
|
100
|
+
static deserializeBinaryFromReader(message: SetNetworkCredentialsResponse, reader: jspb.BinaryReader): SetNetworkCredentialsResponse;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export namespace SetNetworkCredentialsResponse {
|
|
104
|
+
export type AsObject = {
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export class SetSmartMachineCredentialsRequest extends jspb.Message {
|
|
109
|
+
hasCloud(): boolean;
|
|
110
|
+
clearCloud(): void;
|
|
111
|
+
getCloud(): CloudConfig | undefined;
|
|
112
|
+
setCloud(value?: CloudConfig): void;
|
|
113
|
+
|
|
114
|
+
serializeBinary(): Uint8Array;
|
|
115
|
+
toObject(includeInstance?: boolean): SetSmartMachineCredentialsRequest.AsObject;
|
|
116
|
+
static toObject(includeInstance: boolean, msg: SetSmartMachineCredentialsRequest): SetSmartMachineCredentialsRequest.AsObject;
|
|
117
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
118
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
119
|
+
static serializeBinaryToWriter(message: SetSmartMachineCredentialsRequest, writer: jspb.BinaryWriter): void;
|
|
120
|
+
static deserializeBinary(bytes: Uint8Array): SetSmartMachineCredentialsRequest;
|
|
121
|
+
static deserializeBinaryFromReader(message: SetSmartMachineCredentialsRequest, reader: jspb.BinaryReader): SetSmartMachineCredentialsRequest;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export namespace SetSmartMachineCredentialsRequest {
|
|
125
|
+
export type AsObject = {
|
|
126
|
+
cloud?: CloudConfig.AsObject,
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export class SetSmartMachineCredentialsResponse extends jspb.Message {
|
|
131
|
+
serializeBinary(): Uint8Array;
|
|
132
|
+
toObject(includeInstance?: boolean): SetSmartMachineCredentialsResponse.AsObject;
|
|
133
|
+
static toObject(includeInstance: boolean, msg: SetSmartMachineCredentialsResponse): SetSmartMachineCredentialsResponse.AsObject;
|
|
134
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
135
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
136
|
+
static serializeBinaryToWriter(message: SetSmartMachineCredentialsResponse, writer: jspb.BinaryWriter): void;
|
|
137
|
+
static deserializeBinary(bytes: Uint8Array): SetSmartMachineCredentialsResponse;
|
|
138
|
+
static deserializeBinaryFromReader(message: SetSmartMachineCredentialsResponse, reader: jspb.BinaryReader): SetSmartMachineCredentialsResponse;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export namespace SetSmartMachineCredentialsResponse {
|
|
142
|
+
export type AsObject = {
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export class GetNetworkListRequest extends jspb.Message {
|
|
147
|
+
serializeBinary(): Uint8Array;
|
|
148
|
+
toObject(includeInstance?: boolean): GetNetworkListRequest.AsObject;
|
|
149
|
+
static toObject(includeInstance: boolean, msg: GetNetworkListRequest): GetNetworkListRequest.AsObject;
|
|
150
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
151
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
152
|
+
static serializeBinaryToWriter(message: GetNetworkListRequest, writer: jspb.BinaryWriter): void;
|
|
153
|
+
static deserializeBinary(bytes: Uint8Array): GetNetworkListRequest;
|
|
154
|
+
static deserializeBinaryFromReader(message: GetNetworkListRequest, reader: jspb.BinaryReader): GetNetworkListRequest;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export namespace GetNetworkListRequest {
|
|
158
|
+
export type AsObject = {
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export class GetNetworkListResponse extends jspb.Message {
|
|
163
|
+
clearNetworksList(): void;
|
|
164
|
+
getNetworksList(): Array<NetworkInfo>;
|
|
165
|
+
setNetworksList(value: Array<NetworkInfo>): void;
|
|
166
|
+
addNetworks(value?: NetworkInfo, index?: number): NetworkInfo;
|
|
167
|
+
|
|
168
|
+
serializeBinary(): Uint8Array;
|
|
169
|
+
toObject(includeInstance?: boolean): GetNetworkListResponse.AsObject;
|
|
170
|
+
static toObject(includeInstance: boolean, msg: GetNetworkListResponse): GetNetworkListResponse.AsObject;
|
|
171
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
172
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
173
|
+
static serializeBinaryToWriter(message: GetNetworkListResponse, writer: jspb.BinaryWriter): void;
|
|
174
|
+
static deserializeBinary(bytes: Uint8Array): GetNetworkListResponse;
|
|
175
|
+
static deserializeBinaryFromReader(message: GetNetworkListResponse, reader: jspb.BinaryReader): GetNetworkListResponse;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export namespace GetNetworkListResponse {
|
|
179
|
+
export type AsObject = {
|
|
180
|
+
networksList: Array<NetworkInfo.AsObject>,
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export class ProvisioningInfo extends jspb.Message {
|
|
185
|
+
getFragmentId(): string;
|
|
186
|
+
setFragmentId(value: string): void;
|
|
187
|
+
|
|
188
|
+
getModel(): string;
|
|
189
|
+
setModel(value: string): void;
|
|
190
|
+
|
|
191
|
+
getManufacturer(): string;
|
|
192
|
+
setManufacturer(value: string): void;
|
|
193
|
+
|
|
194
|
+
serializeBinary(): Uint8Array;
|
|
195
|
+
toObject(includeInstance?: boolean): ProvisioningInfo.AsObject;
|
|
196
|
+
static toObject(includeInstance: boolean, msg: ProvisioningInfo): ProvisioningInfo.AsObject;
|
|
197
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
198
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
199
|
+
static serializeBinaryToWriter(message: ProvisioningInfo, writer: jspb.BinaryWriter): void;
|
|
200
|
+
static deserializeBinary(bytes: Uint8Array): ProvisioningInfo;
|
|
201
|
+
static deserializeBinaryFromReader(message: ProvisioningInfo, reader: jspb.BinaryReader): ProvisioningInfo;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export namespace ProvisioningInfo {
|
|
205
|
+
export type AsObject = {
|
|
206
|
+
fragmentId: string,
|
|
207
|
+
model: string,
|
|
208
|
+
manufacturer: string,
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export class NetworkInfo extends jspb.Message {
|
|
213
|
+
getType(): string;
|
|
214
|
+
setType(value: string): void;
|
|
215
|
+
|
|
216
|
+
getSsid(): string;
|
|
217
|
+
setSsid(value: string): void;
|
|
218
|
+
|
|
219
|
+
getSecurity(): string;
|
|
220
|
+
setSecurity(value: string): void;
|
|
221
|
+
|
|
222
|
+
getSignal(): number;
|
|
223
|
+
setSignal(value: number): void;
|
|
224
|
+
|
|
225
|
+
getConnected(): boolean;
|
|
226
|
+
setConnected(value: boolean): void;
|
|
227
|
+
|
|
228
|
+
getLastError(): string;
|
|
229
|
+
setLastError(value: string): void;
|
|
230
|
+
|
|
231
|
+
serializeBinary(): Uint8Array;
|
|
232
|
+
toObject(includeInstance?: boolean): NetworkInfo.AsObject;
|
|
233
|
+
static toObject(includeInstance: boolean, msg: NetworkInfo): NetworkInfo.AsObject;
|
|
234
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
235
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
236
|
+
static serializeBinaryToWriter(message: NetworkInfo, writer: jspb.BinaryWriter): void;
|
|
237
|
+
static deserializeBinary(bytes: Uint8Array): NetworkInfo;
|
|
238
|
+
static deserializeBinaryFromReader(message: NetworkInfo, reader: jspb.BinaryReader): NetworkInfo;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export namespace NetworkInfo {
|
|
242
|
+
export type AsObject = {
|
|
243
|
+
type: string,
|
|
244
|
+
ssid: string,
|
|
245
|
+
security: string,
|
|
246
|
+
signal: number,
|
|
247
|
+
connected: boolean,
|
|
248
|
+
lastError: string,
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export class CloudConfig extends jspb.Message {
|
|
253
|
+
getId(): string;
|
|
254
|
+
setId(value: string): void;
|
|
255
|
+
|
|
256
|
+
getSecret(): string;
|
|
257
|
+
setSecret(value: string): void;
|
|
258
|
+
|
|
259
|
+
getAppAddress(): string;
|
|
260
|
+
setAppAddress(value: string): void;
|
|
261
|
+
|
|
262
|
+
serializeBinary(): Uint8Array;
|
|
263
|
+
toObject(includeInstance?: boolean): CloudConfig.AsObject;
|
|
264
|
+
static toObject(includeInstance: boolean, msg: CloudConfig): CloudConfig.AsObject;
|
|
265
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
266
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
267
|
+
static serializeBinaryToWriter(message: CloudConfig, writer: jspb.BinaryWriter): void;
|
|
268
|
+
static deserializeBinary(bytes: Uint8Array): CloudConfig;
|
|
269
|
+
static deserializeBinaryFromReader(message: CloudConfig, reader: jspb.BinaryReader): CloudConfig;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export namespace CloudConfig {
|
|
273
|
+
export type AsObject = {
|
|
274
|
+
id: string,
|
|
275
|
+
secret: string,
|
|
276
|
+
appAddress: string,
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
// package: viam.provisioning.v1
|
|
2
|
+
// file: provisioning/v1/provisioning.proto
|
|
3
|
+
|
|
4
|
+
import * as provisioning_v1_provisioning_pb from "../../provisioning/v1/provisioning_pb";
|
|
5
|
+
import {grpc} from "@improbable-eng/grpc-web";
|
|
6
|
+
|
|
7
|
+
type ProvisioningServiceGetSmartMachineStatus = {
|
|
8
|
+
readonly methodName: string;
|
|
9
|
+
readonly service: typeof ProvisioningService;
|
|
10
|
+
readonly requestStream: false;
|
|
11
|
+
readonly responseStream: false;
|
|
12
|
+
readonly requestType: typeof provisioning_v1_provisioning_pb.GetSmartMachineStatusRequest;
|
|
13
|
+
readonly responseType: typeof provisioning_v1_provisioning_pb.GetSmartMachineStatusResponse;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type ProvisioningServiceSetNetworkCredentials = {
|
|
17
|
+
readonly methodName: string;
|
|
18
|
+
readonly service: typeof ProvisioningService;
|
|
19
|
+
readonly requestStream: false;
|
|
20
|
+
readonly responseStream: false;
|
|
21
|
+
readonly requestType: typeof provisioning_v1_provisioning_pb.SetNetworkCredentialsRequest;
|
|
22
|
+
readonly responseType: typeof provisioning_v1_provisioning_pb.SetNetworkCredentialsResponse;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
type ProvisioningServiceSetSmartMachineCredentials = {
|
|
26
|
+
readonly methodName: string;
|
|
27
|
+
readonly service: typeof ProvisioningService;
|
|
28
|
+
readonly requestStream: false;
|
|
29
|
+
readonly responseStream: false;
|
|
30
|
+
readonly requestType: typeof provisioning_v1_provisioning_pb.SetSmartMachineCredentialsRequest;
|
|
31
|
+
readonly responseType: typeof provisioning_v1_provisioning_pb.SetSmartMachineCredentialsResponse;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
type ProvisioningServiceGetNetworkList = {
|
|
35
|
+
readonly methodName: string;
|
|
36
|
+
readonly service: typeof ProvisioningService;
|
|
37
|
+
readonly requestStream: false;
|
|
38
|
+
readonly responseStream: false;
|
|
39
|
+
readonly requestType: typeof provisioning_v1_provisioning_pb.GetNetworkListRequest;
|
|
40
|
+
readonly responseType: typeof provisioning_v1_provisioning_pb.GetNetworkListResponse;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export class ProvisioningService {
|
|
44
|
+
static readonly serviceName: string;
|
|
45
|
+
static readonly GetSmartMachineStatus: ProvisioningServiceGetSmartMachineStatus;
|
|
46
|
+
static readonly SetNetworkCredentials: ProvisioningServiceSetNetworkCredentials;
|
|
47
|
+
static readonly SetSmartMachineCredentials: ProvisioningServiceSetSmartMachineCredentials;
|
|
48
|
+
static readonly GetNetworkList: ProvisioningServiceGetNetworkList;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
52
|
+
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
53
|
+
|
|
54
|
+
interface UnaryResponse {
|
|
55
|
+
cancel(): void;
|
|
56
|
+
}
|
|
57
|
+
interface ResponseStream<T> {
|
|
58
|
+
cancel(): void;
|
|
59
|
+
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
60
|
+
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
61
|
+
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
62
|
+
}
|
|
63
|
+
interface RequestStream<T> {
|
|
64
|
+
write(message: T): RequestStream<T>;
|
|
65
|
+
end(): void;
|
|
66
|
+
cancel(): void;
|
|
67
|
+
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
68
|
+
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
69
|
+
}
|
|
70
|
+
interface BidirectionalStream<ReqT, ResT> {
|
|
71
|
+
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
72
|
+
end(): void;
|
|
73
|
+
cancel(): void;
|
|
74
|
+
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
75
|
+
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
76
|
+
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export class ProvisioningServiceClient {
|
|
80
|
+
readonly serviceHost: string;
|
|
81
|
+
|
|
82
|
+
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
83
|
+
getSmartMachineStatus(
|
|
84
|
+
requestMessage: provisioning_v1_provisioning_pb.GetSmartMachineStatusRequest,
|
|
85
|
+
metadata: grpc.Metadata,
|
|
86
|
+
callback: (error: ServiceError|null, responseMessage: provisioning_v1_provisioning_pb.GetSmartMachineStatusResponse|null) => void
|
|
87
|
+
): UnaryResponse;
|
|
88
|
+
getSmartMachineStatus(
|
|
89
|
+
requestMessage: provisioning_v1_provisioning_pb.GetSmartMachineStatusRequest,
|
|
90
|
+
callback: (error: ServiceError|null, responseMessage: provisioning_v1_provisioning_pb.GetSmartMachineStatusResponse|null) => void
|
|
91
|
+
): UnaryResponse;
|
|
92
|
+
setNetworkCredentials(
|
|
93
|
+
requestMessage: provisioning_v1_provisioning_pb.SetNetworkCredentialsRequest,
|
|
94
|
+
metadata: grpc.Metadata,
|
|
95
|
+
callback: (error: ServiceError|null, responseMessage: provisioning_v1_provisioning_pb.SetNetworkCredentialsResponse|null) => void
|
|
96
|
+
): UnaryResponse;
|
|
97
|
+
setNetworkCredentials(
|
|
98
|
+
requestMessage: provisioning_v1_provisioning_pb.SetNetworkCredentialsRequest,
|
|
99
|
+
callback: (error: ServiceError|null, responseMessage: provisioning_v1_provisioning_pb.SetNetworkCredentialsResponse|null) => void
|
|
100
|
+
): UnaryResponse;
|
|
101
|
+
setSmartMachineCredentials(
|
|
102
|
+
requestMessage: provisioning_v1_provisioning_pb.SetSmartMachineCredentialsRequest,
|
|
103
|
+
metadata: grpc.Metadata,
|
|
104
|
+
callback: (error: ServiceError|null, responseMessage: provisioning_v1_provisioning_pb.SetSmartMachineCredentialsResponse|null) => void
|
|
105
|
+
): UnaryResponse;
|
|
106
|
+
setSmartMachineCredentials(
|
|
107
|
+
requestMessage: provisioning_v1_provisioning_pb.SetSmartMachineCredentialsRequest,
|
|
108
|
+
callback: (error: ServiceError|null, responseMessage: provisioning_v1_provisioning_pb.SetSmartMachineCredentialsResponse|null) => void
|
|
109
|
+
): UnaryResponse;
|
|
110
|
+
getNetworkList(
|
|
111
|
+
requestMessage: provisioning_v1_provisioning_pb.GetNetworkListRequest,
|
|
112
|
+
metadata: grpc.Metadata,
|
|
113
|
+
callback: (error: ServiceError|null, responseMessage: provisioning_v1_provisioning_pb.GetNetworkListResponse|null) => void
|
|
114
|
+
): UnaryResponse;
|
|
115
|
+
getNetworkList(
|
|
116
|
+
requestMessage: provisioning_v1_provisioning_pb.GetNetworkListRequest,
|
|
117
|
+
callback: (error: ServiceError|null, responseMessage: provisioning_v1_provisioning_pb.GetNetworkListResponse|null) => void
|
|
118
|
+
): UnaryResponse;
|
|
119
|
+
}
|
|
120
|
+
|