@viamrobotics/sdk 0.12.1 → 0.13.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/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/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/main.es.js +1 -1
- package/dist/main.umd.js +1 -1
- 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/package.json +1 -1
|
@@ -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
|
|
|
@@ -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
|
+
|
package/dist/main.es.js
CHANGED
|
@@ -56414,7 +56414,7 @@ class GenericClient {
|
|
|
56414
56414
|
return doCommandFromClient(n, this.name, e, this.options);
|
|
56415
56415
|
}
|
|
56416
56416
|
}
|
|
56417
|
-
const version = "0.
|
|
56417
|
+
const version = "0.13.0";
|
|
56418
56418
|
export {
|
|
56419
56419
|
ArmClient,
|
|
56420
56420
|
BaseClient,
|