@gitpod/supervisor-api-grpc 0.1.5-pd-ssh-gateway.11 → 0.1.5-pd-use-userpk.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/lib/control_grpc_pb.d.ts +17 -0
- package/lib/control_grpc_pb.js +34 -0
- package/lib/control_pb.d.ts +40 -0
- package/lib/control_pb.js +305 -7
- package/lib/info_pb.js +1 -7
- package/lib/notification_grpc_pb.d.ts +49 -0
- package/lib/notification_grpc_pb.js +115 -4
- package/lib/notification_pb.d.ts +191 -0
- package/lib/notification_pb.js +1418 -8
- package/lib/port_pb.js +1 -7
- package/lib/status_grpc_pb.d.ts +17 -0
- package/lib/status_grpc_pb.js +34 -0
- package/lib/status_pb.d.ts +75 -0
- package/lib/status_pb.js +591 -8
- package/lib/terminal_pb.js +1 -7
- package/lib/token_pb.js +1 -7
- package/package.json +3 -2
- package/pkg-yarn.lock +1 -1
- package/provenance-bundle.jsonl +4 -0
package/lib/control_grpc_pb.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import * as control_pb from "./control_pb";
|
|
|
10
10
|
interface IControlServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
11
11
|
exposePort: IControlServiceService_IExposePort;
|
|
12
12
|
createSSHKeyPair: IControlServiceService_ICreateSSHKeyPair;
|
|
13
|
+
verifyKeyPair: IControlServiceService_IVerifyKeyPair;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
interface IControlServiceService_IExposePort extends grpc.MethodDefinition<control_pb.ExposePortRequest, control_pb.ExposePortResponse> {
|
|
@@ -30,12 +31,22 @@ interface IControlServiceService_ICreateSSHKeyPair extends grpc.MethodDefinition
|
|
|
30
31
|
responseSerialize: grpc.serialize<control_pb.CreateSSHKeyPairResponse>;
|
|
31
32
|
responseDeserialize: grpc.deserialize<control_pb.CreateSSHKeyPairResponse>;
|
|
32
33
|
}
|
|
34
|
+
interface IControlServiceService_IVerifyKeyPair extends grpc.MethodDefinition<control_pb.VerifyPublicKeyRequest, control_pb.VerifyPublicKeyResponse> {
|
|
35
|
+
path: "/supervisor.ControlService/VerifyKeyPair";
|
|
36
|
+
requestStream: false;
|
|
37
|
+
responseStream: false;
|
|
38
|
+
requestSerialize: grpc.serialize<control_pb.VerifyPublicKeyRequest>;
|
|
39
|
+
requestDeserialize: grpc.deserialize<control_pb.VerifyPublicKeyRequest>;
|
|
40
|
+
responseSerialize: grpc.serialize<control_pb.VerifyPublicKeyResponse>;
|
|
41
|
+
responseDeserialize: grpc.deserialize<control_pb.VerifyPublicKeyResponse>;
|
|
42
|
+
}
|
|
33
43
|
|
|
34
44
|
export const ControlServiceService: IControlServiceService;
|
|
35
45
|
|
|
36
46
|
export interface IControlServiceServer extends grpc.UntypedServiceImplementation {
|
|
37
47
|
exposePort: grpc.handleUnaryCall<control_pb.ExposePortRequest, control_pb.ExposePortResponse>;
|
|
38
48
|
createSSHKeyPair: grpc.handleUnaryCall<control_pb.CreateSSHKeyPairRequest, control_pb.CreateSSHKeyPairResponse>;
|
|
49
|
+
verifyKeyPair: grpc.handleUnaryCall<control_pb.VerifyPublicKeyRequest, control_pb.VerifyPublicKeyResponse>;
|
|
39
50
|
}
|
|
40
51
|
|
|
41
52
|
export interface IControlServiceClient {
|
|
@@ -45,6 +56,9 @@ export interface IControlServiceClient {
|
|
|
45
56
|
createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
46
57
|
createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
47
58
|
createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
59
|
+
verifyKeyPair(request: control_pb.VerifyPublicKeyRequest, callback: (error: grpc.ServiceError | null, response: control_pb.VerifyPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
60
|
+
verifyKeyPair(request: control_pb.VerifyPublicKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: control_pb.VerifyPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
61
|
+
verifyKeyPair(request: control_pb.VerifyPublicKeyRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: control_pb.VerifyPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
48
62
|
}
|
|
49
63
|
|
|
50
64
|
export class ControlServiceClient extends grpc.Client implements IControlServiceClient {
|
|
@@ -55,4 +69,7 @@ export class ControlServiceClient extends grpc.Client implements IControlService
|
|
|
55
69
|
public createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
56
70
|
public createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
57
71
|
public createSSHKeyPair(request: control_pb.CreateSSHKeyPairRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: control_pb.CreateSSHKeyPairResponse) => void): grpc.ClientUnaryCall;
|
|
72
|
+
public verifyKeyPair(request: control_pb.VerifyPublicKeyRequest, callback: (error: grpc.ServiceError | null, response: control_pb.VerifyPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
73
|
+
public verifyKeyPair(request: control_pb.VerifyPublicKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: control_pb.VerifyPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
74
|
+
public verifyKeyPair(request: control_pb.VerifyPublicKeyRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: control_pb.VerifyPublicKeyResponse) => void): grpc.ClientUnaryCall;
|
|
58
75
|
}
|
package/lib/control_grpc_pb.js
CHANGED
|
@@ -53,6 +53,28 @@ function deserialize_supervisor_ExposePortResponse(buffer_arg) {
|
|
|
53
53
|
return control_pb.ExposePortResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
function serialize_supervisor_VerifyPublicKeyRequest(arg) {
|
|
57
|
+
if (!(arg instanceof control_pb.VerifyPublicKeyRequest)) {
|
|
58
|
+
throw new Error('Expected argument of type supervisor.VerifyPublicKeyRequest');
|
|
59
|
+
}
|
|
60
|
+
return Buffer.from(arg.serializeBinary());
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function deserialize_supervisor_VerifyPublicKeyRequest(buffer_arg) {
|
|
64
|
+
return control_pb.VerifyPublicKeyRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function serialize_supervisor_VerifyPublicKeyResponse(arg) {
|
|
68
|
+
if (!(arg instanceof control_pb.VerifyPublicKeyResponse)) {
|
|
69
|
+
throw new Error('Expected argument of type supervisor.VerifyPublicKeyResponse');
|
|
70
|
+
}
|
|
71
|
+
return Buffer.from(arg.serializeBinary());
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function deserialize_supervisor_VerifyPublicKeyResponse(buffer_arg) {
|
|
75
|
+
return control_pb.VerifyPublicKeyResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
76
|
+
}
|
|
77
|
+
|
|
56
78
|
|
|
57
79
|
// ControlService provides workspace-facing, misc control related services
|
|
58
80
|
var ControlServiceService = exports.ControlServiceService = {
|
|
@@ -80,6 +102,18 @@ createSSHKeyPair: {
|
|
|
80
102
|
responseSerialize: serialize_supervisor_CreateSSHKeyPairResponse,
|
|
81
103
|
responseDeserialize: deserialize_supervisor_CreateSSHKeyPairResponse,
|
|
82
104
|
},
|
|
105
|
+
// VerifyKeyPair Send the public to supervisor then check with ~/.ssh/authorized_keys
|
|
106
|
+
verifyKeyPair: {
|
|
107
|
+
path: '/supervisor.ControlService/VerifyKeyPair',
|
|
108
|
+
requestStream: false,
|
|
109
|
+
responseStream: false,
|
|
110
|
+
requestType: control_pb.VerifyPublicKeyRequest,
|
|
111
|
+
responseType: control_pb.VerifyPublicKeyResponse,
|
|
112
|
+
requestSerialize: serialize_supervisor_VerifyPublicKeyRequest,
|
|
113
|
+
requestDeserialize: deserialize_supervisor_VerifyPublicKeyRequest,
|
|
114
|
+
responseSerialize: serialize_supervisor_VerifyPublicKeyResponse,
|
|
115
|
+
responseDeserialize: deserialize_supervisor_VerifyPublicKeyResponse,
|
|
116
|
+
},
|
|
83
117
|
};
|
|
84
118
|
|
|
85
119
|
exports.ControlServiceClient = grpc.makeGenericClientConstructor(ControlServiceService);
|
package/lib/control_pb.d.ts
CHANGED
|
@@ -79,3 +79,43 @@ export namespace CreateSSHKeyPairResponse {
|
|
|
79
79
|
privateKey: string,
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
+
|
|
83
|
+
export class VerifyPublicKeyRequest extends jspb.Message {
|
|
84
|
+
getPublicKey(): string;
|
|
85
|
+
setPublicKey(value: string): VerifyPublicKeyRequest;
|
|
86
|
+
|
|
87
|
+
serializeBinary(): Uint8Array;
|
|
88
|
+
toObject(includeInstance?: boolean): VerifyPublicKeyRequest.AsObject;
|
|
89
|
+
static toObject(includeInstance: boolean, msg: VerifyPublicKeyRequest): VerifyPublicKeyRequest.AsObject;
|
|
90
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
91
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
92
|
+
static serializeBinaryToWriter(message: VerifyPublicKeyRequest, writer: jspb.BinaryWriter): void;
|
|
93
|
+
static deserializeBinary(bytes: Uint8Array): VerifyPublicKeyRequest;
|
|
94
|
+
static deserializeBinaryFromReader(message: VerifyPublicKeyRequest, reader: jspb.BinaryReader): VerifyPublicKeyRequest;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export namespace VerifyPublicKeyRequest {
|
|
98
|
+
export type AsObject = {
|
|
99
|
+
publicKey: string,
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export class VerifyPublicKeyResponse extends jspb.Message {
|
|
104
|
+
getOk(): boolean;
|
|
105
|
+
setOk(value: boolean): VerifyPublicKeyResponse;
|
|
106
|
+
|
|
107
|
+
serializeBinary(): Uint8Array;
|
|
108
|
+
toObject(includeInstance?: boolean): VerifyPublicKeyResponse.AsObject;
|
|
109
|
+
static toObject(includeInstance: boolean, msg: VerifyPublicKeyResponse): VerifyPublicKeyResponse.AsObject;
|
|
110
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
111
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
112
|
+
static serializeBinaryToWriter(message: VerifyPublicKeyResponse, writer: jspb.BinaryWriter): void;
|
|
113
|
+
static deserializeBinary(bytes: Uint8Array): VerifyPublicKeyResponse;
|
|
114
|
+
static deserializeBinaryFromReader(message: VerifyPublicKeyResponse, reader: jspb.BinaryReader): VerifyPublicKeyResponse;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export namespace VerifyPublicKeyResponse {
|
|
118
|
+
export type AsObject = {
|
|
119
|
+
ok: boolean,
|
|
120
|
+
}
|
|
121
|
+
}
|
package/lib/control_pb.js
CHANGED
|
@@ -13,18 +13,14 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
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));
|
|
16
|
+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
|
|
23
17
|
|
|
24
18
|
goog.exportSymbol('proto.supervisor.CreateSSHKeyPairRequest', null, global);
|
|
25
19
|
goog.exportSymbol('proto.supervisor.CreateSSHKeyPairResponse', null, global);
|
|
26
20
|
goog.exportSymbol('proto.supervisor.ExposePortRequest', null, global);
|
|
27
21
|
goog.exportSymbol('proto.supervisor.ExposePortResponse', null, global);
|
|
22
|
+
goog.exportSymbol('proto.supervisor.VerifyPublicKeyRequest', null, global);
|
|
23
|
+
goog.exportSymbol('proto.supervisor.VerifyPublicKeyResponse', null, global);
|
|
28
24
|
/**
|
|
29
25
|
* Generated by JsPbCodeGenerator.
|
|
30
26
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -109,6 +105,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
109
105
|
*/
|
|
110
106
|
proto.supervisor.CreateSSHKeyPairResponse.displayName = 'proto.supervisor.CreateSSHKeyPairResponse';
|
|
111
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* Generated by JsPbCodeGenerator.
|
|
110
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
111
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
112
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
113
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
114
|
+
* valid.
|
|
115
|
+
* @extends {jspb.Message}
|
|
116
|
+
* @constructor
|
|
117
|
+
*/
|
|
118
|
+
proto.supervisor.VerifyPublicKeyRequest = function(opt_data) {
|
|
119
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
120
|
+
};
|
|
121
|
+
goog.inherits(proto.supervisor.VerifyPublicKeyRequest, jspb.Message);
|
|
122
|
+
if (goog.DEBUG && !COMPILED) {
|
|
123
|
+
/**
|
|
124
|
+
* @public
|
|
125
|
+
* @override
|
|
126
|
+
*/
|
|
127
|
+
proto.supervisor.VerifyPublicKeyRequest.displayName = 'proto.supervisor.VerifyPublicKeyRequest';
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Generated by JsPbCodeGenerator.
|
|
131
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
132
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
133
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
134
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
135
|
+
* valid.
|
|
136
|
+
* @extends {jspb.Message}
|
|
137
|
+
* @constructor
|
|
138
|
+
*/
|
|
139
|
+
proto.supervisor.VerifyPublicKeyResponse = function(opt_data) {
|
|
140
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
141
|
+
};
|
|
142
|
+
goog.inherits(proto.supervisor.VerifyPublicKeyResponse, jspb.Message);
|
|
143
|
+
if (goog.DEBUG && !COMPILED) {
|
|
144
|
+
/**
|
|
145
|
+
* @public
|
|
146
|
+
* @override
|
|
147
|
+
*/
|
|
148
|
+
proto.supervisor.VerifyPublicKeyResponse.displayName = 'proto.supervisor.VerifyPublicKeyResponse';
|
|
149
|
+
}
|
|
112
150
|
|
|
113
151
|
|
|
114
152
|
|
|
@@ -571,4 +609,264 @@ proto.supervisor.CreateSSHKeyPairResponse.prototype.setPrivateKey = function(val
|
|
|
571
609
|
};
|
|
572
610
|
|
|
573
611
|
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
616
|
+
/**
|
|
617
|
+
* Creates an object representation of this proto.
|
|
618
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
619
|
+
* Optional fields that are not set will be set to undefined.
|
|
620
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
621
|
+
* For the list of reserved names please see:
|
|
622
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
623
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
624
|
+
* JSPB instance for transitional soy proto support:
|
|
625
|
+
* http://goto/soy-param-migration
|
|
626
|
+
* @return {!Object}
|
|
627
|
+
*/
|
|
628
|
+
proto.supervisor.VerifyPublicKeyRequest.prototype.toObject = function(opt_includeInstance) {
|
|
629
|
+
return proto.supervisor.VerifyPublicKeyRequest.toObject(opt_includeInstance, this);
|
|
630
|
+
};
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Static version of the {@see toObject} method.
|
|
635
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
636
|
+
* the JSPB instance for transitional soy proto support:
|
|
637
|
+
* http://goto/soy-param-migration
|
|
638
|
+
* @param {!proto.supervisor.VerifyPublicKeyRequest} msg The msg instance to transform.
|
|
639
|
+
* @return {!Object}
|
|
640
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
641
|
+
*/
|
|
642
|
+
proto.supervisor.VerifyPublicKeyRequest.toObject = function(includeInstance, msg) {
|
|
643
|
+
var f, obj = {
|
|
644
|
+
publicKey: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
if (includeInstance) {
|
|
648
|
+
obj.$jspbMessageInstance = msg;
|
|
649
|
+
}
|
|
650
|
+
return obj;
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* Deserializes binary data (in protobuf wire format).
|
|
657
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
658
|
+
* @return {!proto.supervisor.VerifyPublicKeyRequest}
|
|
659
|
+
*/
|
|
660
|
+
proto.supervisor.VerifyPublicKeyRequest.deserializeBinary = function(bytes) {
|
|
661
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
662
|
+
var msg = new proto.supervisor.VerifyPublicKeyRequest;
|
|
663
|
+
return proto.supervisor.VerifyPublicKeyRequest.deserializeBinaryFromReader(msg, reader);
|
|
664
|
+
};
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
669
|
+
* given reader into the given message object.
|
|
670
|
+
* @param {!proto.supervisor.VerifyPublicKeyRequest} msg The message object to deserialize into.
|
|
671
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
672
|
+
* @return {!proto.supervisor.VerifyPublicKeyRequest}
|
|
673
|
+
*/
|
|
674
|
+
proto.supervisor.VerifyPublicKeyRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
675
|
+
while (reader.nextField()) {
|
|
676
|
+
if (reader.isEndGroup()) {
|
|
677
|
+
break;
|
|
678
|
+
}
|
|
679
|
+
var field = reader.getFieldNumber();
|
|
680
|
+
switch (field) {
|
|
681
|
+
case 1:
|
|
682
|
+
var value = /** @type {string} */ (reader.readString());
|
|
683
|
+
msg.setPublicKey(value);
|
|
684
|
+
break;
|
|
685
|
+
default:
|
|
686
|
+
reader.skipField();
|
|
687
|
+
break;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
return msg;
|
|
691
|
+
};
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
696
|
+
* @return {!Uint8Array}
|
|
697
|
+
*/
|
|
698
|
+
proto.supervisor.VerifyPublicKeyRequest.prototype.serializeBinary = function() {
|
|
699
|
+
var writer = new jspb.BinaryWriter();
|
|
700
|
+
proto.supervisor.VerifyPublicKeyRequest.serializeBinaryToWriter(this, writer);
|
|
701
|
+
return writer.getResultBuffer();
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
707
|
+
* format), writing to the given BinaryWriter.
|
|
708
|
+
* @param {!proto.supervisor.VerifyPublicKeyRequest} message
|
|
709
|
+
* @param {!jspb.BinaryWriter} writer
|
|
710
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
711
|
+
*/
|
|
712
|
+
proto.supervisor.VerifyPublicKeyRequest.serializeBinaryToWriter = function(message, writer) {
|
|
713
|
+
var f = undefined;
|
|
714
|
+
f = message.getPublicKey();
|
|
715
|
+
if (f.length > 0) {
|
|
716
|
+
writer.writeString(
|
|
717
|
+
1,
|
|
718
|
+
f
|
|
719
|
+
);
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* optional string public_key = 1;
|
|
726
|
+
* @return {string}
|
|
727
|
+
*/
|
|
728
|
+
proto.supervisor.VerifyPublicKeyRequest.prototype.getPublicKey = function() {
|
|
729
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* @param {string} value
|
|
735
|
+
* @return {!proto.supervisor.VerifyPublicKeyRequest} returns this
|
|
736
|
+
*/
|
|
737
|
+
proto.supervisor.VerifyPublicKeyRequest.prototype.setPublicKey = function(value) {
|
|
738
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
746
|
+
/**
|
|
747
|
+
* Creates an object representation of this proto.
|
|
748
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
749
|
+
* Optional fields that are not set will be set to undefined.
|
|
750
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
751
|
+
* For the list of reserved names please see:
|
|
752
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
753
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
754
|
+
* JSPB instance for transitional soy proto support:
|
|
755
|
+
* http://goto/soy-param-migration
|
|
756
|
+
* @return {!Object}
|
|
757
|
+
*/
|
|
758
|
+
proto.supervisor.VerifyPublicKeyResponse.prototype.toObject = function(opt_includeInstance) {
|
|
759
|
+
return proto.supervisor.VerifyPublicKeyResponse.toObject(opt_includeInstance, this);
|
|
760
|
+
};
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Static version of the {@see toObject} method.
|
|
765
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
766
|
+
* the JSPB instance for transitional soy proto support:
|
|
767
|
+
* http://goto/soy-param-migration
|
|
768
|
+
* @param {!proto.supervisor.VerifyPublicKeyResponse} msg The msg instance to transform.
|
|
769
|
+
* @return {!Object}
|
|
770
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
771
|
+
*/
|
|
772
|
+
proto.supervisor.VerifyPublicKeyResponse.toObject = function(includeInstance, msg) {
|
|
773
|
+
var f, obj = {
|
|
774
|
+
ok: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
if (includeInstance) {
|
|
778
|
+
obj.$jspbMessageInstance = msg;
|
|
779
|
+
}
|
|
780
|
+
return obj;
|
|
781
|
+
};
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* Deserializes binary data (in protobuf wire format).
|
|
787
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
788
|
+
* @return {!proto.supervisor.VerifyPublicKeyResponse}
|
|
789
|
+
*/
|
|
790
|
+
proto.supervisor.VerifyPublicKeyResponse.deserializeBinary = function(bytes) {
|
|
791
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
792
|
+
var msg = new proto.supervisor.VerifyPublicKeyResponse;
|
|
793
|
+
return proto.supervisor.VerifyPublicKeyResponse.deserializeBinaryFromReader(msg, reader);
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
799
|
+
* given reader into the given message object.
|
|
800
|
+
* @param {!proto.supervisor.VerifyPublicKeyResponse} msg The message object to deserialize into.
|
|
801
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
802
|
+
* @return {!proto.supervisor.VerifyPublicKeyResponse}
|
|
803
|
+
*/
|
|
804
|
+
proto.supervisor.VerifyPublicKeyResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
805
|
+
while (reader.nextField()) {
|
|
806
|
+
if (reader.isEndGroup()) {
|
|
807
|
+
break;
|
|
808
|
+
}
|
|
809
|
+
var field = reader.getFieldNumber();
|
|
810
|
+
switch (field) {
|
|
811
|
+
case 1:
|
|
812
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
813
|
+
msg.setOk(value);
|
|
814
|
+
break;
|
|
815
|
+
default:
|
|
816
|
+
reader.skipField();
|
|
817
|
+
break;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
return msg;
|
|
821
|
+
};
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
826
|
+
* @return {!Uint8Array}
|
|
827
|
+
*/
|
|
828
|
+
proto.supervisor.VerifyPublicKeyResponse.prototype.serializeBinary = function() {
|
|
829
|
+
var writer = new jspb.BinaryWriter();
|
|
830
|
+
proto.supervisor.VerifyPublicKeyResponse.serializeBinaryToWriter(this, writer);
|
|
831
|
+
return writer.getResultBuffer();
|
|
832
|
+
};
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
837
|
+
* format), writing to the given BinaryWriter.
|
|
838
|
+
* @param {!proto.supervisor.VerifyPublicKeyResponse} message
|
|
839
|
+
* @param {!jspb.BinaryWriter} writer
|
|
840
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
841
|
+
*/
|
|
842
|
+
proto.supervisor.VerifyPublicKeyResponse.serializeBinaryToWriter = function(message, writer) {
|
|
843
|
+
var f = undefined;
|
|
844
|
+
f = message.getOk();
|
|
845
|
+
if (f) {
|
|
846
|
+
writer.writeBool(
|
|
847
|
+
1,
|
|
848
|
+
f
|
|
849
|
+
);
|
|
850
|
+
}
|
|
851
|
+
};
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* optional bool ok = 1;
|
|
856
|
+
* @return {boolean}
|
|
857
|
+
*/
|
|
858
|
+
proto.supervisor.VerifyPublicKeyResponse.prototype.getOk = function() {
|
|
859
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
860
|
+
};
|
|
861
|
+
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* @param {boolean} value
|
|
865
|
+
* @return {!proto.supervisor.VerifyPublicKeyResponse} returns this
|
|
866
|
+
*/
|
|
867
|
+
proto.supervisor.VerifyPublicKeyResponse.prototype.setOk = function(value) {
|
|
868
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
|
|
574
872
|
goog.object.extend(exports, proto.supervisor);
|
package/lib/info_pb.js
CHANGED
|
@@ -13,13 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
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));
|
|
16
|
+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
|
|
23
17
|
|
|
24
18
|
goog.exportSymbol('proto.supervisor.WorkspaceInfoRequest', null, global);
|
|
25
19
|
goog.exportSymbol('proto.supervisor.WorkspaceInfoResponse', null, global);
|
|
@@ -11,6 +11,9 @@ interface INotificationServiceService extends grpc.ServiceDefinition<grpc.Untype
|
|
|
11
11
|
notify: INotificationServiceService_INotify;
|
|
12
12
|
subscribe: INotificationServiceService_ISubscribe;
|
|
13
13
|
respond: INotificationServiceService_IRespond;
|
|
14
|
+
subscribeActive: INotificationServiceService_ISubscribeActive;
|
|
15
|
+
notifyActive: INotificationServiceService_INotifyActive;
|
|
16
|
+
notifyActiveRespond: INotificationServiceService_INotifyActiveRespond;
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
interface INotificationServiceService_INotify extends grpc.MethodDefinition<notification_pb.NotifyRequest, notification_pb.NotifyResponse> {
|
|
@@ -40,6 +43,33 @@ interface INotificationServiceService_IRespond extends grpc.MethodDefinition<not
|
|
|
40
43
|
responseSerialize: grpc.serialize<notification_pb.RespondResponse>;
|
|
41
44
|
responseDeserialize: grpc.deserialize<notification_pb.RespondResponse>;
|
|
42
45
|
}
|
|
46
|
+
interface INotificationServiceService_ISubscribeActive extends grpc.MethodDefinition<notification_pb.SubscribeActiveRequest, notification_pb.SubscribeActiveResponse> {
|
|
47
|
+
path: "/supervisor.NotificationService/SubscribeActive";
|
|
48
|
+
requestStream: false;
|
|
49
|
+
responseStream: true;
|
|
50
|
+
requestSerialize: grpc.serialize<notification_pb.SubscribeActiveRequest>;
|
|
51
|
+
requestDeserialize: grpc.deserialize<notification_pb.SubscribeActiveRequest>;
|
|
52
|
+
responseSerialize: grpc.serialize<notification_pb.SubscribeActiveResponse>;
|
|
53
|
+
responseDeserialize: grpc.deserialize<notification_pb.SubscribeActiveResponse>;
|
|
54
|
+
}
|
|
55
|
+
interface INotificationServiceService_INotifyActive extends grpc.MethodDefinition<notification_pb.NotifyActiveRequest, notification_pb.NotifyActiveResponse> {
|
|
56
|
+
path: "/supervisor.NotificationService/NotifyActive";
|
|
57
|
+
requestStream: false;
|
|
58
|
+
responseStream: false;
|
|
59
|
+
requestSerialize: grpc.serialize<notification_pb.NotifyActiveRequest>;
|
|
60
|
+
requestDeserialize: grpc.deserialize<notification_pb.NotifyActiveRequest>;
|
|
61
|
+
responseSerialize: grpc.serialize<notification_pb.NotifyActiveResponse>;
|
|
62
|
+
responseDeserialize: grpc.deserialize<notification_pb.NotifyActiveResponse>;
|
|
63
|
+
}
|
|
64
|
+
interface INotificationServiceService_INotifyActiveRespond extends grpc.MethodDefinition<notification_pb.NotifyActiveRespondRequest, notification_pb.NotifyActiveRespondResponse> {
|
|
65
|
+
path: "/supervisor.NotificationService/NotifyActiveRespond";
|
|
66
|
+
requestStream: false;
|
|
67
|
+
responseStream: false;
|
|
68
|
+
requestSerialize: grpc.serialize<notification_pb.NotifyActiveRespondRequest>;
|
|
69
|
+
requestDeserialize: grpc.deserialize<notification_pb.NotifyActiveRespondRequest>;
|
|
70
|
+
responseSerialize: grpc.serialize<notification_pb.NotifyActiveRespondResponse>;
|
|
71
|
+
responseDeserialize: grpc.deserialize<notification_pb.NotifyActiveRespondResponse>;
|
|
72
|
+
}
|
|
43
73
|
|
|
44
74
|
export const NotificationServiceService: INotificationServiceService;
|
|
45
75
|
|
|
@@ -47,6 +77,9 @@ export interface INotificationServiceServer extends grpc.UntypedServiceImplement
|
|
|
47
77
|
notify: grpc.handleUnaryCall<notification_pb.NotifyRequest, notification_pb.NotifyResponse>;
|
|
48
78
|
subscribe: grpc.handleServerStreamingCall<notification_pb.SubscribeRequest, notification_pb.SubscribeResponse>;
|
|
49
79
|
respond: grpc.handleUnaryCall<notification_pb.RespondRequest, notification_pb.RespondResponse>;
|
|
80
|
+
subscribeActive: grpc.handleServerStreamingCall<notification_pb.SubscribeActiveRequest, notification_pb.SubscribeActiveResponse>;
|
|
81
|
+
notifyActive: grpc.handleUnaryCall<notification_pb.NotifyActiveRequest, notification_pb.NotifyActiveResponse>;
|
|
82
|
+
notifyActiveRespond: grpc.handleUnaryCall<notification_pb.NotifyActiveRespondRequest, notification_pb.NotifyActiveRespondResponse>;
|
|
50
83
|
}
|
|
51
84
|
|
|
52
85
|
export interface INotificationServiceClient {
|
|
@@ -58,6 +91,14 @@ export interface INotificationServiceClient {
|
|
|
58
91
|
respond(request: notification_pb.RespondRequest, callback: (error: grpc.ServiceError | null, response: notification_pb.RespondResponse) => void): grpc.ClientUnaryCall;
|
|
59
92
|
respond(request: notification_pb.RespondRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notification_pb.RespondResponse) => void): grpc.ClientUnaryCall;
|
|
60
93
|
respond(request: notification_pb.RespondRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: notification_pb.RespondResponse) => void): grpc.ClientUnaryCall;
|
|
94
|
+
subscribeActive(request: notification_pb.SubscribeActiveRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<notification_pb.SubscribeActiveResponse>;
|
|
95
|
+
subscribeActive(request: notification_pb.SubscribeActiveRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<notification_pb.SubscribeActiveResponse>;
|
|
96
|
+
notifyActive(request: notification_pb.NotifyActiveRequest, callback: (error: grpc.ServiceError | null, response: notification_pb.NotifyActiveResponse) => void): grpc.ClientUnaryCall;
|
|
97
|
+
notifyActive(request: notification_pb.NotifyActiveRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notification_pb.NotifyActiveResponse) => void): grpc.ClientUnaryCall;
|
|
98
|
+
notifyActive(request: notification_pb.NotifyActiveRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: notification_pb.NotifyActiveResponse) => void): grpc.ClientUnaryCall;
|
|
99
|
+
notifyActiveRespond(request: notification_pb.NotifyActiveRespondRequest, callback: (error: grpc.ServiceError | null, response: notification_pb.NotifyActiveRespondResponse) => void): grpc.ClientUnaryCall;
|
|
100
|
+
notifyActiveRespond(request: notification_pb.NotifyActiveRespondRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notification_pb.NotifyActiveRespondResponse) => void): grpc.ClientUnaryCall;
|
|
101
|
+
notifyActiveRespond(request: notification_pb.NotifyActiveRespondRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: notification_pb.NotifyActiveRespondResponse) => void): grpc.ClientUnaryCall;
|
|
61
102
|
}
|
|
62
103
|
|
|
63
104
|
export class NotificationServiceClient extends grpc.Client implements INotificationServiceClient {
|
|
@@ -70,4 +111,12 @@ export class NotificationServiceClient extends grpc.Client implements INotificat
|
|
|
70
111
|
public respond(request: notification_pb.RespondRequest, callback: (error: grpc.ServiceError | null, response: notification_pb.RespondResponse) => void): grpc.ClientUnaryCall;
|
|
71
112
|
public respond(request: notification_pb.RespondRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notification_pb.RespondResponse) => void): grpc.ClientUnaryCall;
|
|
72
113
|
public respond(request: notification_pb.RespondRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: notification_pb.RespondResponse) => void): grpc.ClientUnaryCall;
|
|
114
|
+
public subscribeActive(request: notification_pb.SubscribeActiveRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<notification_pb.SubscribeActiveResponse>;
|
|
115
|
+
public subscribeActive(request: notification_pb.SubscribeActiveRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<notification_pb.SubscribeActiveResponse>;
|
|
116
|
+
public notifyActive(request: notification_pb.NotifyActiveRequest, callback: (error: grpc.ServiceError | null, response: notification_pb.NotifyActiveResponse) => void): grpc.ClientUnaryCall;
|
|
117
|
+
public notifyActive(request: notification_pb.NotifyActiveRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notification_pb.NotifyActiveResponse) => void): grpc.ClientUnaryCall;
|
|
118
|
+
public notifyActive(request: notification_pb.NotifyActiveRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: notification_pb.NotifyActiveResponse) => void): grpc.ClientUnaryCall;
|
|
119
|
+
public notifyActiveRespond(request: notification_pb.NotifyActiveRespondRequest, callback: (error: grpc.ServiceError | null, response: notification_pb.NotifyActiveRespondResponse) => void): grpc.ClientUnaryCall;
|
|
120
|
+
public notifyActiveRespond(request: notification_pb.NotifyActiveRespondRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notification_pb.NotifyActiveRespondResponse) => void): grpc.ClientUnaryCall;
|
|
121
|
+
public notifyActiveRespond(request: notification_pb.NotifyActiveRespondRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: notification_pb.NotifyActiveRespondResponse) => void): grpc.ClientUnaryCall;
|
|
73
122
|
}
|