@gitpod/supervisor-api-grpc 0.1.5-patch-2-fork.0 → 0.1.5-pavel-git-status-fix.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/lib/control_grpc_pb.d.ts +17 -1
- package/lib/control_grpc_pb.js +34 -0
- package/lib/control_pb.d.ts +37 -5
- package/lib/control_pb.js +301 -42
- package/lib/info_grpc_pb.d.ts +0 -1
- package/lib/info_pb.d.ts +42 -15
- package/lib/info_pb.js +445 -45
- package/lib/notification_grpc_pb.d.ts +49 -1
- package/lib/notification_grpc_pb.js +115 -4
- package/lib/notification_pb.d.ts +191 -8
- package/lib/notification_pb.js +1519 -59
- package/lib/port_grpc_pb.d.ts +108 -0
- package/lib/port_grpc_pb.js +187 -0
- package/lib/port_pb.d.ts +232 -0
- package/lib/port_pb.js +1666 -0
- package/lib/status_grpc_pb.d.ts +18 -1
- package/lib/status_grpc_pb.js +35 -0
- package/lib/status_pb.d.ts +155 -27
- package/lib/status_pb.js +1803 -546
- package/lib/terminal_grpc_pb.d.ts +34 -1
- package/lib/terminal_grpc_pb.js +68 -0
- package/lib/terminal_pb.d.ts +103 -45
- package/lib/terminal_pb.js +1055 -177
- package/lib/token_grpc_pb.d.ts +0 -1
- package/lib/token_pb.d.ts +4 -30
- package/lib/token_pb.js +208 -114
- package/package.json +10 -8
- package/pkg-yarn.lock +3 -3
- package/provenance-bundle.jsonl +4 -0
|
@@ -5,13 +5,15 @@
|
|
|
5
5
|
/* eslint-disable */
|
|
6
6
|
|
|
7
7
|
import * as grpc from "@grpc/grpc-js";
|
|
8
|
-
import {handleClientStreamingCall} from "@grpc/grpc-js/build/src/server-call";
|
|
9
8
|
import * as notification_pb from "./notification_pb";
|
|
10
9
|
|
|
11
10
|
interface INotificationServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
12
11
|
notify: INotificationServiceService_INotify;
|
|
13
12
|
subscribe: INotificationServiceService_ISubscribe;
|
|
14
13
|
respond: INotificationServiceService_IRespond;
|
|
14
|
+
subscribeActive: INotificationServiceService_ISubscribeActive;
|
|
15
|
+
notifyActive: INotificationServiceService_INotifyActive;
|
|
16
|
+
notifyActiveRespond: INotificationServiceService_INotifyActiveRespond;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
interface INotificationServiceService_INotify extends grpc.MethodDefinition<notification_pb.NotifyRequest, notification_pb.NotifyResponse> {
|
|
@@ -41,6 +43,33 @@ interface INotificationServiceService_IRespond extends grpc.MethodDefinition<not
|
|
|
41
43
|
responseSerialize: grpc.serialize<notification_pb.RespondResponse>;
|
|
42
44
|
responseDeserialize: grpc.deserialize<notification_pb.RespondResponse>;
|
|
43
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
|
+
}
|
|
44
73
|
|
|
45
74
|
export const NotificationServiceService: INotificationServiceService;
|
|
46
75
|
|
|
@@ -48,6 +77,9 @@ export interface INotificationServiceServer extends grpc.UntypedServiceImplement
|
|
|
48
77
|
notify: grpc.handleUnaryCall<notification_pb.NotifyRequest, notification_pb.NotifyResponse>;
|
|
49
78
|
subscribe: grpc.handleServerStreamingCall<notification_pb.SubscribeRequest, notification_pb.SubscribeResponse>;
|
|
50
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>;
|
|
51
83
|
}
|
|
52
84
|
|
|
53
85
|
export interface INotificationServiceClient {
|
|
@@ -59,6 +91,14 @@ export interface INotificationServiceClient {
|
|
|
59
91
|
respond(request: notification_pb.RespondRequest, callback: (error: grpc.ServiceError | null, response: notification_pb.RespondResponse) => void): grpc.ClientUnaryCall;
|
|
60
92
|
respond(request: notification_pb.RespondRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notification_pb.RespondResponse) => void): grpc.ClientUnaryCall;
|
|
61
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;
|
|
62
102
|
}
|
|
63
103
|
|
|
64
104
|
export class NotificationServiceClient extends grpc.Client implements INotificationServiceClient {
|
|
@@ -71,4 +111,12 @@ export class NotificationServiceClient extends grpc.Client implements INotificat
|
|
|
71
111
|
public respond(request: notification_pb.RespondRequest, callback: (error: grpc.ServiceError | null, response: notification_pb.RespondResponse) => void): grpc.ClientUnaryCall;
|
|
72
112
|
public respond(request: notification_pb.RespondRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notification_pb.RespondResponse) => void): grpc.ClientUnaryCall;
|
|
73
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;
|
|
74
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
|
|
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
|
|
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
|
|
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);
|
package/lib/notification_pb.d.ts
CHANGED
|
@@ -9,16 +9,13 @@ import * as jspb from "google-protobuf";
|
|
|
9
9
|
export class NotifyRequest extends jspb.Message {
|
|
10
10
|
getLevel(): NotifyRequest.Level;
|
|
11
11
|
setLevel(value: NotifyRequest.Level): NotifyRequest;
|
|
12
|
-
|
|
13
12
|
getMessage(): string;
|
|
14
13
|
setMessage(value: string): NotifyRequest;
|
|
15
|
-
|
|
16
14
|
clearActionsList(): void;
|
|
17
15
|
getActionsList(): Array<string>;
|
|
18
16
|
setActionsList(value: Array<string>): NotifyRequest;
|
|
19
17
|
addActions(value: string, index?: number): string;
|
|
20
18
|
|
|
21
|
-
|
|
22
19
|
serializeBinary(): Uint8Array;
|
|
23
20
|
toObject(includeInstance?: boolean): NotifyRequest.AsObject;
|
|
24
21
|
static toObject(includeInstance: boolean, msg: NotifyRequest): NotifyRequest.AsObject;
|
|
@@ -48,7 +45,6 @@ export class NotifyResponse extends jspb.Message {
|
|
|
48
45
|
getAction(): string;
|
|
49
46
|
setAction(value: string): NotifyResponse;
|
|
50
47
|
|
|
51
|
-
|
|
52
48
|
serializeBinary(): Uint8Array;
|
|
53
49
|
toObject(includeInstance?: boolean): NotifyResponse.AsObject;
|
|
54
50
|
static toObject(includeInstance: boolean, msg: NotifyResponse): NotifyResponse.AsObject;
|
|
@@ -86,13 +82,11 @@ export class SubscribeResponse extends jspb.Message {
|
|
|
86
82
|
getRequestid(): number;
|
|
87
83
|
setRequestid(value: number): SubscribeResponse;
|
|
88
84
|
|
|
89
|
-
|
|
90
85
|
hasRequest(): boolean;
|
|
91
86
|
clearRequest(): void;
|
|
92
87
|
getRequest(): NotifyRequest | undefined;
|
|
93
88
|
setRequest(value?: NotifyRequest): SubscribeResponse;
|
|
94
89
|
|
|
95
|
-
|
|
96
90
|
serializeBinary(): Uint8Array;
|
|
97
91
|
toObject(includeInstance?: boolean): SubscribeResponse.AsObject;
|
|
98
92
|
static toObject(includeInstance: boolean, msg: SubscribeResponse): SubscribeResponse.AsObject;
|
|
@@ -114,13 +108,11 @@ export class RespondRequest extends jspb.Message {
|
|
|
114
108
|
getRequestid(): number;
|
|
115
109
|
setRequestid(value: number): RespondRequest;
|
|
116
110
|
|
|
117
|
-
|
|
118
111
|
hasResponse(): boolean;
|
|
119
112
|
clearResponse(): void;
|
|
120
113
|
getResponse(): NotifyResponse | undefined;
|
|
121
114
|
setResponse(value?: NotifyResponse): RespondRequest;
|
|
122
115
|
|
|
123
|
-
|
|
124
116
|
serializeBinary(): Uint8Array;
|
|
125
117
|
toObject(includeInstance?: boolean): RespondRequest.AsObject;
|
|
126
118
|
static toObject(includeInstance: boolean, msg: RespondRequest): RespondRequest.AsObject;
|
|
@@ -154,3 +146,194 @@ export namespace RespondResponse {
|
|
|
154
146
|
export type AsObject = {
|
|
155
147
|
}
|
|
156
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
|
+
}
|