@gitpod/supervisor-api-grpc 0.1.5-mp-configcat-demo.2 → 0.1.5-mp-server-experiments.5

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_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.CreateSSHKeyPairRequest', null, global);
25
19
  goog.exportSymbol('proto.supervisor.CreateSSHKeyPairResponse', null, global);
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
  }
@@ -9,6 +9,50 @@
9
9
  var grpc = require('@grpc/grpc-js');
10
10
  var notification_pb = require('./notification_pb.js');
11
11
 
12
+ function serialize_supervisor_NotifyActiveRequest(arg) {
13
+ if (!(arg instanceof notification_pb.NotifyActiveRequest)) {
14
+ throw new Error('Expected argument of type supervisor.NotifyActiveRequest');
15
+ }
16
+ return Buffer.from(arg.serializeBinary());
17
+ }
18
+
19
+ function deserialize_supervisor_NotifyActiveRequest(buffer_arg) {
20
+ return notification_pb.NotifyActiveRequest.deserializeBinary(new Uint8Array(buffer_arg));
21
+ }
22
+
23
+ function serialize_supervisor_NotifyActiveRespondRequest(arg) {
24
+ if (!(arg instanceof notification_pb.NotifyActiveRespondRequest)) {
25
+ throw new Error('Expected argument of type supervisor.NotifyActiveRespondRequest');
26
+ }
27
+ return Buffer.from(arg.serializeBinary());
28
+ }
29
+
30
+ function deserialize_supervisor_NotifyActiveRespondRequest(buffer_arg) {
31
+ return notification_pb.NotifyActiveRespondRequest.deserializeBinary(new Uint8Array(buffer_arg));
32
+ }
33
+
34
+ function serialize_supervisor_NotifyActiveRespondResponse(arg) {
35
+ if (!(arg instanceof notification_pb.NotifyActiveRespondResponse)) {
36
+ throw new Error('Expected argument of type supervisor.NotifyActiveRespondResponse');
37
+ }
38
+ return Buffer.from(arg.serializeBinary());
39
+ }
40
+
41
+ function deserialize_supervisor_NotifyActiveRespondResponse(buffer_arg) {
42
+ return notification_pb.NotifyActiveRespondResponse.deserializeBinary(new Uint8Array(buffer_arg));
43
+ }
44
+
45
+ function serialize_supervisor_NotifyActiveResponse(arg) {
46
+ if (!(arg instanceof notification_pb.NotifyActiveResponse)) {
47
+ throw new Error('Expected argument of type supervisor.NotifyActiveResponse');
48
+ }
49
+ return Buffer.from(arg.serializeBinary());
50
+ }
51
+
52
+ function deserialize_supervisor_NotifyActiveResponse(buffer_arg) {
53
+ return notification_pb.NotifyActiveResponse.deserializeBinary(new Uint8Array(buffer_arg));
54
+ }
55
+
12
56
  function serialize_supervisor_NotifyRequest(arg) {
13
57
  if (!(arg instanceof notification_pb.NotifyRequest)) {
14
58
  throw new Error('Expected argument of type supervisor.NotifyRequest');
@@ -53,6 +97,28 @@ function deserialize_supervisor_RespondResponse(buffer_arg) {
53
97
  return notification_pb.RespondResponse.deserializeBinary(new Uint8Array(buffer_arg));
54
98
  }
55
99
 
100
+ function serialize_supervisor_SubscribeActiveRequest(arg) {
101
+ if (!(arg instanceof notification_pb.SubscribeActiveRequest)) {
102
+ throw new Error('Expected argument of type supervisor.SubscribeActiveRequest');
103
+ }
104
+ return Buffer.from(arg.serializeBinary());
105
+ }
106
+
107
+ function deserialize_supervisor_SubscribeActiveRequest(buffer_arg) {
108
+ return notification_pb.SubscribeActiveRequest.deserializeBinary(new Uint8Array(buffer_arg));
109
+ }
110
+
111
+ function serialize_supervisor_SubscribeActiveResponse(arg) {
112
+ if (!(arg instanceof notification_pb.SubscribeActiveResponse)) {
113
+ throw new Error('Expected argument of type supervisor.SubscribeActiveResponse');
114
+ }
115
+ return Buffer.from(arg.serializeBinary());
116
+ }
117
+
118
+ function deserialize_supervisor_SubscribeActiveResponse(buffer_arg) {
119
+ return notification_pb.SubscribeActiveResponse.deserializeBinary(new Uint8Array(buffer_arg));
120
+ }
121
+
56
122
  function serialize_supervisor_SubscribeRequest(arg) {
57
123
  if (!(arg instanceof notification_pb.SubscribeRequest)) {
58
124
  throw new Error('Expected argument of type supervisor.SubscribeRequest');
@@ -76,10 +142,11 @@ function deserialize_supervisor_SubscribeResponse(buffer_arg) {
76
142
  }
77
143
 
78
144
 
79
- // Notification serivce allows external processes to notify the user and ask for decisions.
145
+ // Notification serivce allows external processes to notify the user and ask for
146
+ // decisions.
80
147
  var NotificationServiceService = exports.NotificationServiceService = {
81
- // Prompts the user and asks for a decision. Typically called by some external process.
82
- // If the list of actions is empty this service returns immediately,
148
+ // Prompts the user and asks for a decision. Typically called by some external
149
+ // process. If the list of actions is empty this service returns immediately,
83
150
  // otherwise it blocks until the user has made their choice.
84
151
  notify: {
85
152
  path: '/supervisor.NotificationService/Notify',
@@ -104,7 +171,8 @@ subscribe: {
104
171
  responseSerialize: serialize_supervisor_SubscribeResponse,
105
172
  responseDeserialize: deserialize_supervisor_SubscribeResponse,
106
173
  },
107
- // Report a user's choice as a response to a notification. Typically called by the IDE.
174
+ // Report a user's choice as a response to a notification. Typically called by
175
+ // the IDE.
108
176
  respond: {
109
177
  path: '/supervisor.NotificationService/Respond',
110
178
  requestStream: false,
@@ -116,6 +184,49 @@ respond: {
116
184
  responseSerialize: serialize_supervisor_RespondResponse,
117
185
  responseDeserialize: deserialize_supervisor_RespondResponse,
118
186
  },
187
+ // Called by the IDE to inform supervisor about which is the latest client
188
+ // actively used by the user. We consider active the last IDE with focus.
189
+ // Only 1 stream is kept open at any given time. A new subscription
190
+ // overrides the previous one, causing the stream to close.
191
+ // Supervisor will respond with a stream to which the IDE will listen
192
+ // waiting to receive actions to run, for example: `open` or `preview`
193
+ subscribeActive: {
194
+ path: '/supervisor.NotificationService/SubscribeActive',
195
+ requestStream: false,
196
+ responseStream: true,
197
+ requestType: notification_pb.SubscribeActiveRequest,
198
+ responseType: notification_pb.SubscribeActiveResponse,
199
+ requestSerialize: serialize_supervisor_SubscribeActiveRequest,
200
+ requestDeserialize: deserialize_supervisor_SubscribeActiveRequest,
201
+ responseSerialize: serialize_supervisor_SubscribeActiveResponse,
202
+ responseDeserialize: deserialize_supervisor_SubscribeActiveResponse,
203
+ },
204
+ // Used by gp-cli to ask supervisor to request the active client
205
+ // to run a given command (eg. open or preview)
206
+ notifyActive: {
207
+ path: '/supervisor.NotificationService/NotifyActive',
208
+ requestStream: false,
209
+ responseStream: false,
210
+ requestType: notification_pb.NotifyActiveRequest,
211
+ responseType: notification_pb.NotifyActiveResponse,
212
+ requestSerialize: serialize_supervisor_NotifyActiveRequest,
213
+ requestDeserialize: deserialize_supervisor_NotifyActiveRequest,
214
+ responseSerialize: serialize_supervisor_NotifyActiveResponse,
215
+ responseDeserialize: deserialize_supervisor_NotifyActiveResponse,
216
+ },
217
+ // Used by the IDE to inform supervisor about the result (eg. success or
218
+ // failure) of the action (eg. open or preview) requested via NotifyActive
219
+ notifyActiveRespond: {
220
+ path: '/supervisor.NotificationService/NotifyActiveRespond',
221
+ requestStream: false,
222
+ responseStream: false,
223
+ requestType: notification_pb.NotifyActiveRespondRequest,
224
+ responseType: notification_pb.NotifyActiveRespondResponse,
225
+ requestSerialize: serialize_supervisor_NotifyActiveRespondRequest,
226
+ requestDeserialize: deserialize_supervisor_NotifyActiveRespondRequest,
227
+ responseSerialize: serialize_supervisor_NotifyActiveRespondResponse,
228
+ responseDeserialize: deserialize_supervisor_NotifyActiveRespondResponse,
229
+ },
119
230
  };
120
231
 
121
232
  exports.NotificationServiceClient = grpc.makeGenericClientConstructor(NotificationServiceService);
@@ -146,3 +146,194 @@ export namespace RespondResponse {
146
146
  export type AsObject = {
147
147
  }
148
148
  }
149
+
150
+ export class NotifyActiveRequest extends jspb.Message {
151
+
152
+ hasOpen(): boolean;
153
+ clearOpen(): void;
154
+ getOpen(): NotifyActiveRequest.OpenData | undefined;
155
+ setOpen(value?: NotifyActiveRequest.OpenData): NotifyActiveRequest;
156
+
157
+ hasPreview(): boolean;
158
+ clearPreview(): void;
159
+ getPreview(): NotifyActiveRequest.PreviewData | undefined;
160
+ setPreview(value?: NotifyActiveRequest.PreviewData): NotifyActiveRequest;
161
+
162
+ getActionDataCase(): NotifyActiveRequest.ActionDataCase;
163
+
164
+ serializeBinary(): Uint8Array;
165
+ toObject(includeInstance?: boolean): NotifyActiveRequest.AsObject;
166
+ static toObject(includeInstance: boolean, msg: NotifyActiveRequest): NotifyActiveRequest.AsObject;
167
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
168
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
169
+ static serializeBinaryToWriter(message: NotifyActiveRequest, writer: jspb.BinaryWriter): void;
170
+ static deserializeBinary(bytes: Uint8Array): NotifyActiveRequest;
171
+ static deserializeBinaryFromReader(message: NotifyActiveRequest, reader: jspb.BinaryReader): NotifyActiveRequest;
172
+ }
173
+
174
+ export namespace NotifyActiveRequest {
175
+ export type AsObject = {
176
+ open?: NotifyActiveRequest.OpenData.AsObject,
177
+ preview?: NotifyActiveRequest.PreviewData.AsObject,
178
+ }
179
+
180
+
181
+ export class OpenData extends jspb.Message {
182
+ clearUrlsList(): void;
183
+ getUrlsList(): Array<string>;
184
+ setUrlsList(value: Array<string>): OpenData;
185
+ addUrls(value: string, index?: number): string;
186
+ getAwait(): boolean;
187
+ setAwait(value: boolean): OpenData;
188
+
189
+ serializeBinary(): Uint8Array;
190
+ toObject(includeInstance?: boolean): OpenData.AsObject;
191
+ static toObject(includeInstance: boolean, msg: OpenData): OpenData.AsObject;
192
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
193
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
194
+ static serializeBinaryToWriter(message: OpenData, writer: jspb.BinaryWriter): void;
195
+ static deserializeBinary(bytes: Uint8Array): OpenData;
196
+ static deserializeBinaryFromReader(message: OpenData, reader: jspb.BinaryReader): OpenData;
197
+ }
198
+
199
+ export namespace OpenData {
200
+ export type AsObject = {
201
+ urlsList: Array<string>,
202
+ await: boolean,
203
+ }
204
+ }
205
+
206
+ export class PreviewData extends jspb.Message {
207
+ getUrl(): string;
208
+ setUrl(value: string): PreviewData;
209
+ getExternal(): boolean;
210
+ setExternal(value: boolean): PreviewData;
211
+
212
+ serializeBinary(): Uint8Array;
213
+ toObject(includeInstance?: boolean): PreviewData.AsObject;
214
+ static toObject(includeInstance: boolean, msg: PreviewData): PreviewData.AsObject;
215
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
216
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
217
+ static serializeBinaryToWriter(message: PreviewData, writer: jspb.BinaryWriter): void;
218
+ static deserializeBinary(bytes: Uint8Array): PreviewData;
219
+ static deserializeBinaryFromReader(message: PreviewData, reader: jspb.BinaryReader): PreviewData;
220
+ }
221
+
222
+ export namespace PreviewData {
223
+ export type AsObject = {
224
+ url: string,
225
+ external: boolean,
226
+ }
227
+ }
228
+
229
+
230
+ export enum ActionDataCase {
231
+ ACTION_DATA_NOT_SET = 0,
232
+ OPEN = 1,
233
+ PREVIEW = 2,
234
+ }
235
+
236
+ }
237
+
238
+ export class NotifyActiveResponse extends jspb.Message {
239
+
240
+ serializeBinary(): Uint8Array;
241
+ toObject(includeInstance?: boolean): NotifyActiveResponse.AsObject;
242
+ static toObject(includeInstance: boolean, msg: NotifyActiveResponse): NotifyActiveResponse.AsObject;
243
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
244
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
245
+ static serializeBinaryToWriter(message: NotifyActiveResponse, writer: jspb.BinaryWriter): void;
246
+ static deserializeBinary(bytes: Uint8Array): NotifyActiveResponse;
247
+ static deserializeBinaryFromReader(message: NotifyActiveResponse, reader: jspb.BinaryReader): NotifyActiveResponse;
248
+ }
249
+
250
+ export namespace NotifyActiveResponse {
251
+ export type AsObject = {
252
+ }
253
+ }
254
+
255
+ export class SubscribeActiveRequest extends jspb.Message {
256
+
257
+ serializeBinary(): Uint8Array;
258
+ toObject(includeInstance?: boolean): SubscribeActiveRequest.AsObject;
259
+ static toObject(includeInstance: boolean, msg: SubscribeActiveRequest): SubscribeActiveRequest.AsObject;
260
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
261
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
262
+ static serializeBinaryToWriter(message: SubscribeActiveRequest, writer: jspb.BinaryWriter): void;
263
+ static deserializeBinary(bytes: Uint8Array): SubscribeActiveRequest;
264
+ static deserializeBinaryFromReader(message: SubscribeActiveRequest, reader: jspb.BinaryReader): SubscribeActiveRequest;
265
+ }
266
+
267
+ export namespace SubscribeActiveRequest {
268
+ export type AsObject = {
269
+ }
270
+ }
271
+
272
+ export class SubscribeActiveResponse extends jspb.Message {
273
+ getRequestid(): number;
274
+ setRequestid(value: number): SubscribeActiveResponse;
275
+
276
+ hasRequest(): boolean;
277
+ clearRequest(): void;
278
+ getRequest(): NotifyActiveRequest | undefined;
279
+ setRequest(value?: NotifyActiveRequest): SubscribeActiveResponse;
280
+
281
+ serializeBinary(): Uint8Array;
282
+ toObject(includeInstance?: boolean): SubscribeActiveResponse.AsObject;
283
+ static toObject(includeInstance: boolean, msg: SubscribeActiveResponse): SubscribeActiveResponse.AsObject;
284
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
285
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
286
+ static serializeBinaryToWriter(message: SubscribeActiveResponse, writer: jspb.BinaryWriter): void;
287
+ static deserializeBinary(bytes: Uint8Array): SubscribeActiveResponse;
288
+ static deserializeBinaryFromReader(message: SubscribeActiveResponse, reader: jspb.BinaryReader): SubscribeActiveResponse;
289
+ }
290
+
291
+ export namespace SubscribeActiveResponse {
292
+ export type AsObject = {
293
+ requestid: number,
294
+ request?: NotifyActiveRequest.AsObject,
295
+ }
296
+ }
297
+
298
+ export class NotifyActiveRespondRequest extends jspb.Message {
299
+ getRequestid(): number;
300
+ setRequestid(value: number): NotifyActiveRespondRequest;
301
+
302
+ hasResponse(): boolean;
303
+ clearResponse(): void;
304
+ getResponse(): NotifyActiveResponse | undefined;
305
+ setResponse(value?: NotifyActiveResponse): NotifyActiveRespondRequest;
306
+
307
+ serializeBinary(): Uint8Array;
308
+ toObject(includeInstance?: boolean): NotifyActiveRespondRequest.AsObject;
309
+ static toObject(includeInstance: boolean, msg: NotifyActiveRespondRequest): NotifyActiveRespondRequest.AsObject;
310
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
311
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
312
+ static serializeBinaryToWriter(message: NotifyActiveRespondRequest, writer: jspb.BinaryWriter): void;
313
+ static deserializeBinary(bytes: Uint8Array): NotifyActiveRespondRequest;
314
+ static deserializeBinaryFromReader(message: NotifyActiveRespondRequest, reader: jspb.BinaryReader): NotifyActiveRespondRequest;
315
+ }
316
+
317
+ export namespace NotifyActiveRespondRequest {
318
+ export type AsObject = {
319
+ requestid: number,
320
+ response?: NotifyActiveResponse.AsObject,
321
+ }
322
+ }
323
+
324
+ export class NotifyActiveRespondResponse extends jspb.Message {
325
+
326
+ serializeBinary(): Uint8Array;
327
+ toObject(includeInstance?: boolean): NotifyActiveRespondResponse.AsObject;
328
+ static toObject(includeInstance: boolean, msg: NotifyActiveRespondResponse): NotifyActiveRespondResponse.AsObject;
329
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
330
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
331
+ static serializeBinaryToWriter(message: NotifyActiveRespondResponse, writer: jspb.BinaryWriter): void;
332
+ static deserializeBinary(bytes: Uint8Array): NotifyActiveRespondResponse;
333
+ static deserializeBinaryFromReader(message: NotifyActiveRespondResponse, reader: jspb.BinaryReader): NotifyActiveRespondResponse;
334
+ }
335
+
336
+ export namespace NotifyActiveRespondResponse {
337
+ export type AsObject = {
338
+ }
339
+ }