@lansweeper/install-api-grpc 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gen-proto/image.json +1 -1
- package/gen-proto/install_pb.d.ts +3 -0
- package/gen-proto/install_pb.js +38 -2
- package/package.json +2 -2
- package/proto/install.proto +1 -0
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":"SetPublicKeyResponse"}],"service":[{"name":"InstallService","method":[{"name":"SetPublicKey","inputType":".lansweeper.install.v1.SetPublicKeyRequest","outputType":".lansweeper.install.v1.SetPublicKeyResponse","options":{}}]}],"sourceCodeInfo":{"location":[{"span":[0,0,
|
|
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_identifier","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"signedIdentifier"}]},{"name":"SetPublicKeyResponse"}],"service":[{"name":"InstallService","method":[{"name":"SetPublicKey","inputType":".lansweeper.install.v1.SetPublicKeyRequest","outputType":".lansweeper.install.v1.SetPublicKeyResponse","options":{}}]}],"sourceCodeInfo":{"location":[{"span":[0,0,16,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,31]},{"path":[4,0,2,3,5],"span":[8,2,8]},{"path":[4,0,2,3,1],"span":[8,9,26]},{"path":[4,0,2,3,3],"span":[8,29,30]},{"path":[4,1],"span":[11,0,12,1]},{"path":[4,1,1],"span":[11,8,28]},{"path":[6,0],"span":[14,0,16,1]},{"path":[6,0,1],"span":[14,8,22]},{"path":[6,0,2,0],"span":[15,2,73]},{"path":[6,0,2,0,1],"span":[15,6,18]},{"path":[6,0,2,0,2],"span":[15,19,38]},{"path":[6,0,2,0,3],"span":[15,49,69]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
|
|
@@ -13,6 +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
|
+
getSignedIdentifier(): string;
|
|
17
|
+
setSignedIdentifier(value: string): SetPublicKeyRequest;
|
|
16
18
|
|
|
17
19
|
serializeBinary(): Uint8Array;
|
|
18
20
|
toObject(includeInstance?: boolean): SetPublicKeyRequest.AsObject;
|
|
@@ -29,6 +31,7 @@ export namespace SetPublicKeyRequest {
|
|
|
29
31
|
siteId: string,
|
|
30
32
|
installKey: string,
|
|
31
33
|
publicKey: string,
|
|
34
|
+
signedIdentifier: string,
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
37
|
|
package/gen-proto/install_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.lansweeper.install.v1.SetPublicKeyRequest', null, global);
|
|
19
25
|
goog.exportSymbol('proto.lansweeper.install.v1.SetPublicKeyResponse', null, global);
|
|
@@ -93,7 +99,8 @@ proto.lansweeper.install.v1.SetPublicKeyRequest.toObject = function(includeInsta
|
|
|
93
99
|
var f, obj = {
|
|
94
100
|
siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
95
101
|
installKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
96
|
-
publicKey: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
102
|
+
publicKey: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
103
|
+
signedIdentifier: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
97
104
|
};
|
|
98
105
|
|
|
99
106
|
if (includeInstance) {
|
|
@@ -142,6 +149,10 @@ proto.lansweeper.install.v1.SetPublicKeyRequest.deserializeBinaryFromReader = fu
|
|
|
142
149
|
var value = /** @type {string} */ (reader.readString());
|
|
143
150
|
msg.setPublicKey(value);
|
|
144
151
|
break;
|
|
152
|
+
case 4:
|
|
153
|
+
var value = /** @type {string} */ (reader.readString());
|
|
154
|
+
msg.setSignedIdentifier(value);
|
|
155
|
+
break;
|
|
145
156
|
default:
|
|
146
157
|
reader.skipField();
|
|
147
158
|
break;
|
|
@@ -192,6 +203,13 @@ proto.lansweeper.install.v1.SetPublicKeyRequest.serializeBinaryToWriter = functi
|
|
|
192
203
|
f
|
|
193
204
|
);
|
|
194
205
|
}
|
|
206
|
+
f = message.getSignedIdentifier();
|
|
207
|
+
if (f.length > 0) {
|
|
208
|
+
writer.writeString(
|
|
209
|
+
4,
|
|
210
|
+
f
|
|
211
|
+
);
|
|
212
|
+
}
|
|
195
213
|
};
|
|
196
214
|
|
|
197
215
|
|
|
@@ -249,6 +267,24 @@ proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.setPublicKey = functio
|
|
|
249
267
|
};
|
|
250
268
|
|
|
251
269
|
|
|
270
|
+
/**
|
|
271
|
+
* optional string signed_identifier = 4;
|
|
272
|
+
* @return {string}
|
|
273
|
+
*/
|
|
274
|
+
proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.getSignedIdentifier = function() {
|
|
275
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* @param {string} value
|
|
281
|
+
* @return {!proto.lansweeper.install.v1.SetPublicKeyRequest} returns this
|
|
282
|
+
*/
|
|
283
|
+
proto.lansweeper.install.v1.SetPublicKeyRequest.prototype.setSignedIdentifier = function(value) {
|
|
284
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
|
|
252
288
|
|
|
253
289
|
|
|
254
290
|
|
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.2",
|
|
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": "fef2fc9c47a16a1d74d6f6759f8927610e8767c4"
|
|
20
20
|
}
|