@lansweeper/install-api-grpc 0.0.2 → 0.0.4
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/gen-proto/image.json +1 -1
- package/gen-proto/install_grpc_pb.d.ts +17 -0
- package/gen-proto/install_grpc_pb.js +33 -0
- package/gen-proto/install_pb.d.ts +46 -3
- package/gen-proto/install_pb.js +341 -6
- package/package.json +2 -2
- package/proto/install.proto +11 -1
package/gen-proto/image.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":[{"name":"proto/install.proto","package":"lansweeper.install.v1","messageType":[{"name":"SetPublicKeyRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"public_key","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"publicKey"},{"name":"
|
|
1
|
+
{"file":[{"name":"proto/install.proto","package":"lansweeper.install.v1","messageType":[{"name":"SetPublicKeyRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"public_key","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"publicKey"},{"name":"signed_identity","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"signedIdentity"}]},{"name":"SetPublicKeyResponse"},{"name":"SetHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]},{"name":"SetHubCertificateResponse"}],"service":[{"name":"InstallService","method":[{"name":"SetPublicKey","inputType":".lansweeper.install.v1.SetPublicKeyRequest","outputType":".lansweeper.install.v1.SetPublicKeyResponse","options":{}},{"name":"SetHubCertificate","inputType":".lansweeper.install.v1.SetHubCertificateRequest","outputType":".lansweeper.install.v1.SetHubCertificateResponse","options":{}}]}],"sourceCodeInfo":{"location":[{"span":[0,0,26,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,30]},{"path":[4,0],"span":[4,0,9,1]},{"path":[4,0,1],"span":[4,8,27]},{"path":[4,0,2,0],"span":[5,2,21]},{"path":[4,0,2,0,5],"span":[5,2,8]},{"path":[4,0,2,0,1],"span":[5,9,16]},{"path":[4,0,2,0,3],"span":[5,19,20]},{"path":[4,0,2,1],"span":[6,2,25]},{"path":[4,0,2,1,5],"span":[6,2,8]},{"path":[4,0,2,1,1],"span":[6,9,20]},{"path":[4,0,2,1,3],"span":[6,23,24]},{"path":[4,0,2,2],"span":[7,2,24]},{"path":[4,0,2,2,5],"span":[7,2,8]},{"path":[4,0,2,2,1],"span":[7,9,19]},{"path":[4,0,2,2,3],"span":[7,22,23]},{"path":[4,0,2,3],"span":[8,2,29]},{"path":[4,0,2,3,5],"span":[8,2,8]},{"path":[4,0,2,3,1],"span":[8,9,24]},{"path":[4,0,2,3,3],"span":[8,27,28]},{"path":[4,1],"span":[11,0,12,1]},{"path":[4,1,1],"span":[11,8,28]},{"path":[4,2],"span":[14,0,18,1]},{"path":[4,2,1],"span":[14,8,32]},{"path":[4,2,2,0],"span":[15,2,21]},{"path":[4,2,2,0,5],"span":[15,2,8]},{"path":[4,2,2,0,1],"span":[15,9,16]},{"path":[4,2,2,0,3],"span":[15,19,20]},{"path":[4,2,2,1],"span":[16,2,25]},{"path":[4,2,2,1,5],"span":[16,2,8]},{"path":[4,2,2,1,1],"span":[16,9,20]},{"path":[4,2,2,1,3],"span":[16,23,24]},{"path":[4,2,2,2],"span":[17,2,29]},{"path":[4,2,2,2,5],"span":[17,2,8]},{"path":[4,2,2,2,1],"span":[17,9,24]},{"path":[4,2,2,2,3],"span":[17,27,28]},{"path":[4,3],"span":[20,0,21,1]},{"path":[4,3,1],"span":[20,8,33]},{"path":[6,0],"span":[23,0,26,1]},{"path":[6,0,1],"span":[23,8,22]},{"path":[6,0,2,0],"span":[24,2,73]},{"path":[6,0,2,0,1],"span":[24,6,18]},{"path":[6,0,2,0,2],"span":[24,19,38]},{"path":[6,0,2,0,3],"span":[24,49,69]},{"path":[6,0,2,1],"span":[25,2,88]},{"path":[6,0,2,1,1],"span":[25,6,23]},{"path":[6,0,2,1,2],"span":[25,24,48]},{"path":[6,0,2,1,3],"span":[25,59,84]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
|
|
@@ -9,6 +9,7 @@ import * as install_pb from "./install_pb";
|
|
|
9
9
|
|
|
10
10
|
interface IInstallServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
11
11
|
setPublicKey: IInstallServiceService_ISetPublicKey;
|
|
12
|
+
setHubCertificate: IInstallServiceService_ISetHubCertificate;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
interface IInstallServiceService_ISetPublicKey extends grpc.MethodDefinition<install_pb.SetPublicKeyRequest, install_pb.SetPublicKeyResponse> {
|
|
@@ -20,17 +21,30 @@ interface IInstallServiceService_ISetPublicKey extends grpc.MethodDefinition<ins
|
|
|
20
21
|
responseSerialize: grpc.serialize<install_pb.SetPublicKeyResponse>;
|
|
21
22
|
responseDeserialize: grpc.deserialize<install_pb.SetPublicKeyResponse>;
|
|
22
23
|
}
|
|
24
|
+
interface IInstallServiceService_ISetHubCertificate extends grpc.MethodDefinition<install_pb.SetHubCertificateRequest, install_pb.SetHubCertificateResponse> {
|
|
25
|
+
path: "/lansweeper.install.v1.InstallService/SetHubCertificate";
|
|
26
|
+
requestStream: false;
|
|
27
|
+
responseStream: false;
|
|
28
|
+
requestSerialize: grpc.serialize<install_pb.SetHubCertificateRequest>;
|
|
29
|
+
requestDeserialize: grpc.deserialize<install_pb.SetHubCertificateRequest>;
|
|
30
|
+
responseSerialize: grpc.serialize<install_pb.SetHubCertificateResponse>;
|
|
31
|
+
responseDeserialize: grpc.deserialize<install_pb.SetHubCertificateResponse>;
|
|
32
|
+
}
|
|
23
33
|
|
|
24
34
|
export const InstallServiceService: IInstallServiceService;
|
|
25
35
|
|
|
26
36
|
export interface IInstallServiceServer extends grpc.UntypedServiceImplementation {
|
|
27
37
|
setPublicKey: grpc.handleUnaryCall<install_pb.SetPublicKeyRequest, install_pb.SetPublicKeyResponse>;
|
|
38
|
+
setHubCertificate: grpc.handleUnaryCall<install_pb.SetHubCertificateRequest, install_pb.SetHubCertificateResponse>;
|
|
28
39
|
}
|
|
29
40
|
|
|
30
41
|
export interface IInstallServiceClient {
|
|
31
42
|
setPublicKey(request: install_pb.SetPublicKeyRequest, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
32
43
|
setPublicKey(request: install_pb.SetPublicKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
33
44
|
setPublicKey(request: install_pb.SetPublicKeyRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
45
|
+
setHubCertificate(request: install_pb.SetHubCertificateRequest, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
46
|
+
setHubCertificate(request: install_pb.SetHubCertificateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
47
|
+
setHubCertificate(request: install_pb.SetHubCertificateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
34
48
|
}
|
|
35
49
|
|
|
36
50
|
export class InstallServiceClient extends grpc.Client implements IInstallServiceClient {
|
|
@@ -38,4 +52,7 @@ export class InstallServiceClient extends grpc.Client implements IInstallService
|
|
|
38
52
|
public setPublicKey(request: install_pb.SetPublicKeyRequest, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
39
53
|
public setPublicKey(request: install_pb.SetPublicKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
40
54
|
public setPublicKey(request: install_pb.SetPublicKeyRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.SetPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
55
|
+
public setHubCertificate(request: install_pb.SetHubCertificateRequest, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
56
|
+
public setHubCertificate(request: install_pb.SetHubCertificateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
57
|
+
public setHubCertificate(request: install_pb.SetHubCertificateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.SetHubCertificateResponse) => void): grpc.ClientUnaryCall;
|
|
41
58
|
}
|
|
@@ -4,6 +4,28 @@
|
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var install_pb = require('./install_pb.js');
|
|
6
6
|
|
|
7
|
+
function serialize_lansweeper_install_v1_SetHubCertificateRequest(arg) {
|
|
8
|
+
if (!(arg instanceof install_pb.SetHubCertificateRequest)) {
|
|
9
|
+
throw new Error('Expected argument of type lansweeper.install.v1.SetHubCertificateRequest');
|
|
10
|
+
}
|
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function deserialize_lansweeper_install_v1_SetHubCertificateRequest(buffer_arg) {
|
|
15
|
+
return install_pb.SetHubCertificateRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function serialize_lansweeper_install_v1_SetHubCertificateResponse(arg) {
|
|
19
|
+
if (!(arg instanceof install_pb.SetHubCertificateResponse)) {
|
|
20
|
+
throw new Error('Expected argument of type lansweeper.install.v1.SetHubCertificateResponse');
|
|
21
|
+
}
|
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function deserialize_lansweeper_install_v1_SetHubCertificateResponse(buffer_arg) {
|
|
26
|
+
return install_pb.SetHubCertificateResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
|
+
}
|
|
28
|
+
|
|
7
29
|
function serialize_lansweeper_install_v1_SetPublicKeyRequest(arg) {
|
|
8
30
|
if (!(arg instanceof install_pb.SetPublicKeyRequest)) {
|
|
9
31
|
throw new Error('Expected argument of type lansweeper.install.v1.SetPublicKeyRequest');
|
|
@@ -39,6 +61,17 @@ var InstallServiceService = exports.InstallServiceService = {
|
|
|
39
61
|
responseSerialize: serialize_lansweeper_install_v1_SetPublicKeyResponse,
|
|
40
62
|
responseDeserialize: deserialize_lansweeper_install_v1_SetPublicKeyResponse,
|
|
41
63
|
},
|
|
64
|
+
setHubCertificate: {
|
|
65
|
+
path: '/lansweeper.install.v1.InstallService/SetHubCertificate',
|
|
66
|
+
requestStream: false,
|
|
67
|
+
responseStream: false,
|
|
68
|
+
requestType: install_pb.SetHubCertificateRequest,
|
|
69
|
+
responseType: install_pb.SetHubCertificateResponse,
|
|
70
|
+
requestSerialize: serialize_lansweeper_install_v1_SetHubCertificateRequest,
|
|
71
|
+
requestDeserialize: deserialize_lansweeper_install_v1_SetHubCertificateRequest,
|
|
72
|
+
responseSerialize: serialize_lansweeper_install_v1_SetHubCertificateResponse,
|
|
73
|
+
responseDeserialize: deserialize_lansweeper_install_v1_SetHubCertificateResponse,
|
|
74
|
+
},
|
|
42
75
|
};
|
|
43
76
|
|
|
44
77
|
exports.InstallServiceClient = grpc.makeGenericClientConstructor(InstallServiceService);
|
|
@@ -13,8 +13,8 @@ export class SetPublicKeyRequest extends jspb.Message {
|
|
|
13
13
|
setInstallKey(value: string): SetPublicKeyRequest;
|
|
14
14
|
getPublicKey(): string;
|
|
15
15
|
setPublicKey(value: string): SetPublicKeyRequest;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
getSignedIdentity(): string;
|
|
17
|
+
setSignedIdentity(value: string): SetPublicKeyRequest;
|
|
18
18
|
|
|
19
19
|
serializeBinary(): Uint8Array;
|
|
20
20
|
toObject(includeInstance?: boolean): SetPublicKeyRequest.AsObject;
|
|
@@ -31,7 +31,7 @@ export namespace SetPublicKeyRequest {
|
|
|
31
31
|
siteId: string,
|
|
32
32
|
installKey: string,
|
|
33
33
|
publicKey: string,
|
|
34
|
-
|
|
34
|
+
signedIdentity: string,
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -51,3 +51,46 @@ export namespace SetPublicKeyResponse {
|
|
|
51
51
|
export type AsObject = {
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
+
|
|
55
|
+
export class SetHubCertificateRequest extends jspb.Message {
|
|
56
|
+
getSiteId(): string;
|
|
57
|
+
setSiteId(value: string): SetHubCertificateRequest;
|
|
58
|
+
getInstallKey(): string;
|
|
59
|
+
setInstallKey(value: string): SetHubCertificateRequest;
|
|
60
|
+
getHubCertificate(): string;
|
|
61
|
+
setHubCertificate(value: string): SetHubCertificateRequest;
|
|
62
|
+
|
|
63
|
+
serializeBinary(): Uint8Array;
|
|
64
|
+
toObject(includeInstance?: boolean): SetHubCertificateRequest.AsObject;
|
|
65
|
+
static toObject(includeInstance: boolean, msg: SetHubCertificateRequest): SetHubCertificateRequest.AsObject;
|
|
66
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
67
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
68
|
+
static serializeBinaryToWriter(message: SetHubCertificateRequest, writer: jspb.BinaryWriter): void;
|
|
69
|
+
static deserializeBinary(bytes: Uint8Array): SetHubCertificateRequest;
|
|
70
|
+
static deserializeBinaryFromReader(message: SetHubCertificateRequest, reader: jspb.BinaryReader): SetHubCertificateRequest;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export namespace SetHubCertificateRequest {
|
|
74
|
+
export type AsObject = {
|
|
75
|
+
siteId: string,
|
|
76
|
+
installKey: string,
|
|
77
|
+
hubCertificate: string,
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export class SetHubCertificateResponse extends jspb.Message {
|
|
82
|
+
|
|
83
|
+
serializeBinary(): Uint8Array;
|
|
84
|
+
toObject(includeInstance?: boolean): SetHubCertificateResponse.AsObject;
|
|
85
|
+
static toObject(includeInstance: boolean, msg: SetHubCertificateResponse): SetHubCertificateResponse.AsObject;
|
|
86
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
87
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
88
|
+
static serializeBinaryToWriter(message: SetHubCertificateResponse, writer: jspb.BinaryWriter): void;
|
|
89
|
+
static deserializeBinary(bytes: Uint8Array): SetHubCertificateResponse;
|
|
90
|
+
static deserializeBinaryFromReader(message: SetHubCertificateResponse, reader: jspb.BinaryReader): SetHubCertificateResponse;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export namespace SetHubCertificateResponse {
|
|
94
|
+
export type AsObject = {
|
|
95
|
+
}
|
|
96
|
+
}
|
package/gen-proto/install_pb.js
CHANGED
|
@@ -21,6 +21,8 @@ var global = (function() {
|
|
|
21
21
|
return Function('return this')();
|
|
22
22
|
}.call(null));
|
|
23
23
|
|
|
24
|
+
goog.exportSymbol('proto.lansweeper.install.v1.SetHubCertificateRequest', null, global);
|
|
25
|
+
goog.exportSymbol('proto.lansweeper.install.v1.SetHubCertificateResponse', null, global);
|
|
24
26
|
goog.exportSymbol('proto.lansweeper.install.v1.SetPublicKeyRequest', null, global);
|
|
25
27
|
goog.exportSymbol('proto.lansweeper.install.v1.SetPublicKeyResponse', null, global);
|
|
26
28
|
/**
|
|
@@ -65,6 +67,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
65
67
|
*/
|
|
66
68
|
proto.lansweeper.install.v1.SetPublicKeyResponse.displayName = 'proto.lansweeper.install.v1.SetPublicKeyResponse';
|
|
67
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Generated by JsPbCodeGenerator.
|
|
72
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
73
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
74
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
75
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
76
|
+
* valid.
|
|
77
|
+
* @extends {jspb.Message}
|
|
78
|
+
* @constructor
|
|
79
|
+
*/
|
|
80
|
+
proto.lansweeper.install.v1.SetHubCertificateRequest = function(opt_data) {
|
|
81
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
82
|
+
};
|
|
83
|
+
goog.inherits(proto.lansweeper.install.v1.SetHubCertificateRequest, jspb.Message);
|
|
84
|
+
if (goog.DEBUG && !COMPILED) {
|
|
85
|
+
/**
|
|
86
|
+
* @public
|
|
87
|
+
* @override
|
|
88
|
+
*/
|
|
89
|
+
proto.lansweeper.install.v1.SetHubCertificateRequest.displayName = 'proto.lansweeper.install.v1.SetHubCertificateRequest';
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Generated by JsPbCodeGenerator.
|
|
93
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
94
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
95
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
96
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
97
|
+
* valid.
|
|
98
|
+
* @extends {jspb.Message}
|
|
99
|
+
* @constructor
|
|
100
|
+
*/
|
|
101
|
+
proto.lansweeper.install.v1.SetHubCertificateResponse = function(opt_data) {
|
|
102
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
103
|
+
};
|
|
104
|
+
goog.inherits(proto.lansweeper.install.v1.SetHubCertificateResponse, jspb.Message);
|
|
105
|
+
if (goog.DEBUG && !COMPILED) {
|
|
106
|
+
/**
|
|
107
|
+
* @public
|
|
108
|
+
* @override
|
|
109
|
+
*/
|
|
110
|
+
proto.lansweeper.install.v1.SetHubCertificateResponse.displayName = 'proto.lansweeper.install.v1.SetHubCertificateResponse';
|
|
111
|
+
}
|
|
68
112
|
|
|
69
113
|
|
|
70
114
|
|
|
@@ -100,7 +144,7 @@ proto.lansweeper.install.v1.SetPublicKeyRequest.toObject = function(includeInsta
|
|
|
100
144
|
siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
101
145
|
installKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
102
146
|
publicKey: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
103
|
-
|
|
147
|
+
signedIdentity: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
104
148
|
};
|
|
105
149
|
|
|
106
150
|
if (includeInstance) {
|
|
@@ -151,7 +195,7 @@ proto.lansweeper.install.v1.SetPublicKeyRequest.deserializeBinaryFromReader = fu
|
|
|
151
195
|
break;
|
|
152
196
|
case 4:
|
|
153
197
|
var value = /** @type {string} */ (reader.readString());
|
|
154
|
-
msg.
|
|
198
|
+
msg.setSignedIdentity(value);
|
|
155
199
|
break;
|
|
156
200
|
default:
|
|
157
201
|
reader.skipField();
|
|
@@ -203,7 +247,7 @@ proto.lansweeper.install.v1.SetPublicKeyRequest.serializeBinaryToWriter = functi
|
|
|
203
247
|
f
|
|
204
248
|
);
|
|
205
249
|
}
|
|
206
|
-
f = message.
|
|
250
|
+
f = message.getSignedIdentity();
|
|
207
251
|
if (f.length > 0) {
|
|
208
252
|
writer.writeString(
|
|
209
253
|
4,
|
|
@@ -268,10 +312,10 @@ proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.setPublicKey = functio
|
|
|
268
312
|
|
|
269
313
|
|
|
270
314
|
/**
|
|
271
|
-
* optional string
|
|
315
|
+
* optional string signed_identity = 4;
|
|
272
316
|
* @return {string}
|
|
273
317
|
*/
|
|
274
|
-
proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.
|
|
318
|
+
proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.getSignedIdentity = function() {
|
|
275
319
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
276
320
|
};
|
|
277
321
|
|
|
@@ -280,7 +324,7 @@ proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.getSignedIdentifier =
|
|
|
280
324
|
* @param {string} value
|
|
281
325
|
* @return {!proto.lansweeper.install.v1.SetPublicKeyRequest} returns this
|
|
282
326
|
*/
|
|
283
|
-
proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.
|
|
327
|
+
proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.setSignedIdentity = function(value) {
|
|
284
328
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
285
329
|
};
|
|
286
330
|
|
|
@@ -386,4 +430,295 @@ proto.lansweeper.install.v1.SetPublicKeyResponse.serializeBinaryToWriter = funct
|
|
|
386
430
|
};
|
|
387
431
|
|
|
388
432
|
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
437
|
+
/**
|
|
438
|
+
* Creates an object representation of this proto.
|
|
439
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
440
|
+
* Optional fields that are not set will be set to undefined.
|
|
441
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
442
|
+
* For the list of reserved names please see:
|
|
443
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
444
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
445
|
+
* JSPB instance for transitional soy proto support:
|
|
446
|
+
* http://goto/soy-param-migration
|
|
447
|
+
* @return {!Object}
|
|
448
|
+
*/
|
|
449
|
+
proto.lansweeper.install.v1.SetHubCertificateRequest.prototype.toObject = function(opt_includeInstance) {
|
|
450
|
+
return proto.lansweeper.install.v1.SetHubCertificateRequest.toObject(opt_includeInstance, this);
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Static version of the {@see toObject} method.
|
|
456
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
457
|
+
* the JSPB instance for transitional soy proto support:
|
|
458
|
+
* http://goto/soy-param-migration
|
|
459
|
+
* @param {!proto.lansweeper.install.v1.SetHubCertificateRequest} msg The msg instance to transform.
|
|
460
|
+
* @return {!Object}
|
|
461
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
462
|
+
*/
|
|
463
|
+
proto.lansweeper.install.v1.SetHubCertificateRequest.toObject = function(includeInstance, msg) {
|
|
464
|
+
var f, obj = {
|
|
465
|
+
siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
466
|
+
installKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
467
|
+
hubCertificate: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
if (includeInstance) {
|
|
471
|
+
obj.$jspbMessageInstance = msg;
|
|
472
|
+
}
|
|
473
|
+
return obj;
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Deserializes binary data (in protobuf wire format).
|
|
480
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
481
|
+
* @return {!proto.lansweeper.install.v1.SetHubCertificateRequest}
|
|
482
|
+
*/
|
|
483
|
+
proto.lansweeper.install.v1.SetHubCertificateRequest.deserializeBinary = function(bytes) {
|
|
484
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
485
|
+
var msg = new proto.lansweeper.install.v1.SetHubCertificateRequest;
|
|
486
|
+
return proto.lansweeper.install.v1.SetHubCertificateRequest.deserializeBinaryFromReader(msg, reader);
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
492
|
+
* given reader into the given message object.
|
|
493
|
+
* @param {!proto.lansweeper.install.v1.SetHubCertificateRequest} msg The message object to deserialize into.
|
|
494
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
495
|
+
* @return {!proto.lansweeper.install.v1.SetHubCertificateRequest}
|
|
496
|
+
*/
|
|
497
|
+
proto.lansweeper.install.v1.SetHubCertificateRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
498
|
+
while (reader.nextField()) {
|
|
499
|
+
if (reader.isEndGroup()) {
|
|
500
|
+
break;
|
|
501
|
+
}
|
|
502
|
+
var field = reader.getFieldNumber();
|
|
503
|
+
switch (field) {
|
|
504
|
+
case 1:
|
|
505
|
+
var value = /** @type {string} */ (reader.readString());
|
|
506
|
+
msg.setSiteId(value);
|
|
507
|
+
break;
|
|
508
|
+
case 2:
|
|
509
|
+
var value = /** @type {string} */ (reader.readString());
|
|
510
|
+
msg.setInstallKey(value);
|
|
511
|
+
break;
|
|
512
|
+
case 3:
|
|
513
|
+
var value = /** @type {string} */ (reader.readString());
|
|
514
|
+
msg.setHubCertificate(value);
|
|
515
|
+
break;
|
|
516
|
+
default:
|
|
517
|
+
reader.skipField();
|
|
518
|
+
break;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
return msg;
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
527
|
+
* @return {!Uint8Array}
|
|
528
|
+
*/
|
|
529
|
+
proto.lansweeper.install.v1.SetHubCertificateRequest.prototype.serializeBinary = function() {
|
|
530
|
+
var writer = new jspb.BinaryWriter();
|
|
531
|
+
proto.lansweeper.install.v1.SetHubCertificateRequest.serializeBinaryToWriter(this, writer);
|
|
532
|
+
return writer.getResultBuffer();
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
538
|
+
* format), writing to the given BinaryWriter.
|
|
539
|
+
* @param {!proto.lansweeper.install.v1.SetHubCertificateRequest} message
|
|
540
|
+
* @param {!jspb.BinaryWriter} writer
|
|
541
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
542
|
+
*/
|
|
543
|
+
proto.lansweeper.install.v1.SetHubCertificateRequest.serializeBinaryToWriter = function(message, writer) {
|
|
544
|
+
var f = undefined;
|
|
545
|
+
f = message.getSiteId();
|
|
546
|
+
if (f.length > 0) {
|
|
547
|
+
writer.writeString(
|
|
548
|
+
1,
|
|
549
|
+
f
|
|
550
|
+
);
|
|
551
|
+
}
|
|
552
|
+
f = message.getInstallKey();
|
|
553
|
+
if (f.length > 0) {
|
|
554
|
+
writer.writeString(
|
|
555
|
+
2,
|
|
556
|
+
f
|
|
557
|
+
);
|
|
558
|
+
}
|
|
559
|
+
f = message.getHubCertificate();
|
|
560
|
+
if (f.length > 0) {
|
|
561
|
+
writer.writeString(
|
|
562
|
+
3,
|
|
563
|
+
f
|
|
564
|
+
);
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* optional string site_id = 1;
|
|
571
|
+
* @return {string}
|
|
572
|
+
*/
|
|
573
|
+
proto.lansweeper.install.v1.SetHubCertificateRequest.prototype.getSiteId = function() {
|
|
574
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* @param {string} value
|
|
580
|
+
* @return {!proto.lansweeper.install.v1.SetHubCertificateRequest} returns this
|
|
581
|
+
*/
|
|
582
|
+
proto.lansweeper.install.v1.SetHubCertificateRequest.prototype.setSiteId = function(value) {
|
|
583
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* optional string install_key = 2;
|
|
589
|
+
* @return {string}
|
|
590
|
+
*/
|
|
591
|
+
proto.lansweeper.install.v1.SetHubCertificateRequest.prototype.getInstallKey = function() {
|
|
592
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* @param {string} value
|
|
598
|
+
* @return {!proto.lansweeper.install.v1.SetHubCertificateRequest} returns this
|
|
599
|
+
*/
|
|
600
|
+
proto.lansweeper.install.v1.SetHubCertificateRequest.prototype.setInstallKey = function(value) {
|
|
601
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* optional string hub_certificate = 3;
|
|
607
|
+
* @return {string}
|
|
608
|
+
*/
|
|
609
|
+
proto.lansweeper.install.v1.SetHubCertificateRequest.prototype.getHubCertificate = function() {
|
|
610
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* @param {string} value
|
|
616
|
+
* @return {!proto.lansweeper.install.v1.SetHubCertificateRequest} returns this
|
|
617
|
+
*/
|
|
618
|
+
proto.lansweeper.install.v1.SetHubCertificateRequest.prototype.setHubCertificate = function(value) {
|
|
619
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
627
|
+
/**
|
|
628
|
+
* Creates an object representation of this proto.
|
|
629
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
630
|
+
* Optional fields that are not set will be set to undefined.
|
|
631
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
632
|
+
* For the list of reserved names please see:
|
|
633
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
634
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
635
|
+
* JSPB instance for transitional soy proto support:
|
|
636
|
+
* http://goto/soy-param-migration
|
|
637
|
+
* @return {!Object}
|
|
638
|
+
*/
|
|
639
|
+
proto.lansweeper.install.v1.SetHubCertificateResponse.prototype.toObject = function(opt_includeInstance) {
|
|
640
|
+
return proto.lansweeper.install.v1.SetHubCertificateResponse.toObject(opt_includeInstance, this);
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Static version of the {@see toObject} method.
|
|
646
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
647
|
+
* the JSPB instance for transitional soy proto support:
|
|
648
|
+
* http://goto/soy-param-migration
|
|
649
|
+
* @param {!proto.lansweeper.install.v1.SetHubCertificateResponse} msg The msg instance to transform.
|
|
650
|
+
* @return {!Object}
|
|
651
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
652
|
+
*/
|
|
653
|
+
proto.lansweeper.install.v1.SetHubCertificateResponse.toObject = function(includeInstance, msg) {
|
|
654
|
+
var f, obj = {
|
|
655
|
+
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
if (includeInstance) {
|
|
659
|
+
obj.$jspbMessageInstance = msg;
|
|
660
|
+
}
|
|
661
|
+
return obj;
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Deserializes binary data (in protobuf wire format).
|
|
668
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
669
|
+
* @return {!proto.lansweeper.install.v1.SetHubCertificateResponse}
|
|
670
|
+
*/
|
|
671
|
+
proto.lansweeper.install.v1.SetHubCertificateResponse.deserializeBinary = function(bytes) {
|
|
672
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
673
|
+
var msg = new proto.lansweeper.install.v1.SetHubCertificateResponse;
|
|
674
|
+
return proto.lansweeper.install.v1.SetHubCertificateResponse.deserializeBinaryFromReader(msg, reader);
|
|
675
|
+
};
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
680
|
+
* given reader into the given message object.
|
|
681
|
+
* @param {!proto.lansweeper.install.v1.SetHubCertificateResponse} msg The message object to deserialize into.
|
|
682
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
683
|
+
* @return {!proto.lansweeper.install.v1.SetHubCertificateResponse}
|
|
684
|
+
*/
|
|
685
|
+
proto.lansweeper.install.v1.SetHubCertificateResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
686
|
+
while (reader.nextField()) {
|
|
687
|
+
if (reader.isEndGroup()) {
|
|
688
|
+
break;
|
|
689
|
+
}
|
|
690
|
+
var field = reader.getFieldNumber();
|
|
691
|
+
switch (field) {
|
|
692
|
+
default:
|
|
693
|
+
reader.skipField();
|
|
694
|
+
break;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
return msg;
|
|
698
|
+
};
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
703
|
+
* @return {!Uint8Array}
|
|
704
|
+
*/
|
|
705
|
+
proto.lansweeper.install.v1.SetHubCertificateResponse.prototype.serializeBinary = function() {
|
|
706
|
+
var writer = new jspb.BinaryWriter();
|
|
707
|
+
proto.lansweeper.install.v1.SetHubCertificateResponse.serializeBinaryToWriter(this, writer);
|
|
708
|
+
return writer.getResultBuffer();
|
|
709
|
+
};
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
714
|
+
* format), writing to the given BinaryWriter.
|
|
715
|
+
* @param {!proto.lansweeper.install.v1.SetHubCertificateResponse} message
|
|
716
|
+
* @param {!jspb.BinaryWriter} writer
|
|
717
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
718
|
+
*/
|
|
719
|
+
proto.lansweeper.install.v1.SetHubCertificateResponse.serializeBinaryToWriter = function(message, writer) {
|
|
720
|
+
var f = undefined;
|
|
721
|
+
};
|
|
722
|
+
|
|
723
|
+
|
|
389
724
|
goog.object.extend(exports, proto.lansweeper.install.v1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansweeper/install-api-grpc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "install api grpc",
|
|
5
5
|
"main": "gen-proto/index.js",
|
|
6
6
|
"types": "gen-proto/index.d.ts",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/google-protobuf": "^3.15.5"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "6323314d8a40ad78b42cd0430023408a7cbd26c6"
|
|
20
20
|
}
|
package/proto/install.proto
CHANGED
|
@@ -6,12 +6,22 @@ message SetPublicKeyRequest {
|
|
|
6
6
|
string site_id = 1;
|
|
7
7
|
string install_key = 2;
|
|
8
8
|
string public_key = 3;
|
|
9
|
-
string
|
|
9
|
+
string signed_identity = 4;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
message SetPublicKeyResponse {
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
message SetHubCertificateRequest {
|
|
16
|
+
string site_id = 1;
|
|
17
|
+
string install_key = 2;
|
|
18
|
+
string hub_certificate = 3;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message SetHubCertificateResponse {
|
|
22
|
+
}
|
|
23
|
+
|
|
15
24
|
service InstallService {
|
|
16
25
|
rpc SetPublicKey(SetPublicKeyRequest) returns (SetPublicKeyResponse) {}
|
|
26
|
+
rpc SetHubCertificate(SetHubCertificateRequest) returns (SetHubCertificateResponse) {}
|
|
17
27
|
}
|