@gitpod/supervisor-api-grpcweb 0.1.5-main.998 → 0.1.5-pd-test.35

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.
@@ -46,6 +46,15 @@ PortService.AutoTunnel = {
46
46
  responseType: port_pb.AutoTunnelResponse
47
47
  };
48
48
 
49
+ PortService.RetryAutoExpose = {
50
+ methodName: "RetryAutoExpose",
51
+ service: PortService,
52
+ requestStream: false,
53
+ responseStream: false,
54
+ requestType: port_pb.RetryAutoExposeRequest,
55
+ responseType: port_pb.RetryAutoExposeResponse
56
+ };
57
+
49
58
  exports.PortService = PortService;
50
59
 
51
60
  function PortServiceClient(serviceHost, options) {
@@ -191,5 +200,36 @@ PortServiceClient.prototype.autoTunnel = function autoTunnel(requestMessage, met
191
200
  };
192
201
  };
193
202
 
203
+ PortServiceClient.prototype.retryAutoExpose = function retryAutoExpose(requestMessage, metadata, callback) {
204
+ if (arguments.length === 2) {
205
+ callback = arguments[1];
206
+ }
207
+ var client = grpc.unary(PortService.RetryAutoExpose, {
208
+ request: requestMessage,
209
+ host: this.serviceHost,
210
+ metadata: metadata,
211
+ transport: this.options.transport,
212
+ debug: this.options.debug,
213
+ onEnd: function (response) {
214
+ if (callback) {
215
+ if (response.status !== grpc.Code.OK) {
216
+ var err = new Error(response.statusMessage);
217
+ err.code = response.status;
218
+ err.metadata = response.trailers;
219
+ callback(err, null);
220
+ } else {
221
+ callback(null, response.message);
222
+ }
223
+ }
224
+ }
225
+ });
226
+ return {
227
+ cancel: function () {
228
+ callback = null;
229
+ client.close();
230
+ }
231
+ };
232
+ };
233
+
194
234
  exports.PortServiceClient = PortServiceClient;
195
235
 
@@ -0,0 +1,41 @@
1
+ // package: supervisor
2
+ // file: sshkey.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+
6
+ export class CreateSSHKeyPairRequest extends jspb.Message {
7
+ serializeBinary(): Uint8Array;
8
+ toObject(includeInstance?: boolean): CreateSSHKeyPairRequest.AsObject;
9
+ static toObject(includeInstance: boolean, msg: CreateSSHKeyPairRequest): CreateSSHKeyPairRequest.AsObject;
10
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
11
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
12
+ static serializeBinaryToWriter(message: CreateSSHKeyPairRequest, writer: jspb.BinaryWriter): void;
13
+ static deserializeBinary(bytes: Uint8Array): CreateSSHKeyPairRequest;
14
+ static deserializeBinaryFromReader(message: CreateSSHKeyPairRequest, reader: jspb.BinaryReader): CreateSSHKeyPairRequest;
15
+ }
16
+
17
+ export namespace CreateSSHKeyPairRequest {
18
+ export type AsObject = {
19
+ }
20
+ }
21
+
22
+ export class CreateSSHKeyPairResponse extends jspb.Message {
23
+ getPrivateKey(): string;
24
+ setPrivateKey(value: string): void;
25
+
26
+ serializeBinary(): Uint8Array;
27
+ toObject(includeInstance?: boolean): CreateSSHKeyPairResponse.AsObject;
28
+ static toObject(includeInstance: boolean, msg: CreateSSHKeyPairResponse): CreateSSHKeyPairResponse.AsObject;
29
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
30
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
31
+ static serializeBinaryToWriter(message: CreateSSHKeyPairResponse, writer: jspb.BinaryWriter): void;
32
+ static deserializeBinary(bytes: Uint8Array): CreateSSHKeyPairResponse;
33
+ static deserializeBinaryFromReader(message: CreateSSHKeyPairResponse, reader: jspb.BinaryReader): CreateSSHKeyPairResponse;
34
+ }
35
+
36
+ export namespace CreateSSHKeyPairResponse {
37
+ export type AsObject = {
38
+ privateKey: string,
39
+ }
40
+ }
41
+
@@ -0,0 +1,299 @@
1
+ // source: sshkey.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
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));
23
+
24
+ goog.exportSymbol('proto.supervisor.CreateSSHKeyPairRequest', null, global);
25
+ goog.exportSymbol('proto.supervisor.CreateSSHKeyPairResponse', null, global);
26
+ /**
27
+ * Generated by JsPbCodeGenerator.
28
+ * @param {Array=} opt_data Optional initial data array, typically from a
29
+ * server response, or constructed directly in Javascript. The array is used
30
+ * in place and becomes part of the constructed object. It is not cloned.
31
+ * If no data is provided, the constructed object will be empty, but still
32
+ * valid.
33
+ * @extends {jspb.Message}
34
+ * @constructor
35
+ */
36
+ proto.supervisor.CreateSSHKeyPairRequest = function(opt_data) {
37
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
38
+ };
39
+ goog.inherits(proto.supervisor.CreateSSHKeyPairRequest, jspb.Message);
40
+ if (goog.DEBUG && !COMPILED) {
41
+ /**
42
+ * @public
43
+ * @override
44
+ */
45
+ proto.supervisor.CreateSSHKeyPairRequest.displayName = 'proto.supervisor.CreateSSHKeyPairRequest';
46
+ }
47
+ /**
48
+ * Generated by JsPbCodeGenerator.
49
+ * @param {Array=} opt_data Optional initial data array, typically from a
50
+ * server response, or constructed directly in Javascript. The array is used
51
+ * in place and becomes part of the constructed object. It is not cloned.
52
+ * If no data is provided, the constructed object will be empty, but still
53
+ * valid.
54
+ * @extends {jspb.Message}
55
+ * @constructor
56
+ */
57
+ proto.supervisor.CreateSSHKeyPairResponse = function(opt_data) {
58
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
59
+ };
60
+ goog.inherits(proto.supervisor.CreateSSHKeyPairResponse, jspb.Message);
61
+ if (goog.DEBUG && !COMPILED) {
62
+ /**
63
+ * @public
64
+ * @override
65
+ */
66
+ proto.supervisor.CreateSSHKeyPairResponse.displayName = 'proto.supervisor.CreateSSHKeyPairResponse';
67
+ }
68
+
69
+
70
+
71
+ if (jspb.Message.GENERATE_TO_OBJECT) {
72
+ /**
73
+ * Creates an object representation of this proto.
74
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
75
+ * Optional fields that are not set will be set to undefined.
76
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
77
+ * For the list of reserved names please see:
78
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
79
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
80
+ * JSPB instance for transitional soy proto support:
81
+ * http://goto/soy-param-migration
82
+ * @return {!Object}
83
+ */
84
+ proto.supervisor.CreateSSHKeyPairRequest.prototype.toObject = function(opt_includeInstance) {
85
+ return proto.supervisor.CreateSSHKeyPairRequest.toObject(opt_includeInstance, this);
86
+ };
87
+
88
+
89
+ /**
90
+ * Static version of the {@see toObject} method.
91
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
92
+ * the JSPB instance for transitional soy proto support:
93
+ * http://goto/soy-param-migration
94
+ * @param {!proto.supervisor.CreateSSHKeyPairRequest} msg The msg instance to transform.
95
+ * @return {!Object}
96
+ * @suppress {unusedLocalVariables} f is only used for nested messages
97
+ */
98
+ proto.supervisor.CreateSSHKeyPairRequest.toObject = function(includeInstance, msg) {
99
+ var f, obj = {
100
+
101
+ };
102
+
103
+ if (includeInstance) {
104
+ obj.$jspbMessageInstance = msg;
105
+ }
106
+ return obj;
107
+ };
108
+ }
109
+
110
+
111
+ /**
112
+ * Deserializes binary data (in protobuf wire format).
113
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
114
+ * @return {!proto.supervisor.CreateSSHKeyPairRequest}
115
+ */
116
+ proto.supervisor.CreateSSHKeyPairRequest.deserializeBinary = function(bytes) {
117
+ var reader = new jspb.BinaryReader(bytes);
118
+ var msg = new proto.supervisor.CreateSSHKeyPairRequest;
119
+ return proto.supervisor.CreateSSHKeyPairRequest.deserializeBinaryFromReader(msg, reader);
120
+ };
121
+
122
+
123
+ /**
124
+ * Deserializes binary data (in protobuf wire format) from the
125
+ * given reader into the given message object.
126
+ * @param {!proto.supervisor.CreateSSHKeyPairRequest} msg The message object to deserialize into.
127
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
128
+ * @return {!proto.supervisor.CreateSSHKeyPairRequest}
129
+ */
130
+ proto.supervisor.CreateSSHKeyPairRequest.deserializeBinaryFromReader = function(msg, reader) {
131
+ while (reader.nextField()) {
132
+ if (reader.isEndGroup()) {
133
+ break;
134
+ }
135
+ var field = reader.getFieldNumber();
136
+ switch (field) {
137
+ default:
138
+ reader.skipField();
139
+ break;
140
+ }
141
+ }
142
+ return msg;
143
+ };
144
+
145
+
146
+ /**
147
+ * Serializes the message to binary data (in protobuf wire format).
148
+ * @return {!Uint8Array}
149
+ */
150
+ proto.supervisor.CreateSSHKeyPairRequest.prototype.serializeBinary = function() {
151
+ var writer = new jspb.BinaryWriter();
152
+ proto.supervisor.CreateSSHKeyPairRequest.serializeBinaryToWriter(this, writer);
153
+ return writer.getResultBuffer();
154
+ };
155
+
156
+
157
+ /**
158
+ * Serializes the given message to binary data (in protobuf wire
159
+ * format), writing to the given BinaryWriter.
160
+ * @param {!proto.supervisor.CreateSSHKeyPairRequest} message
161
+ * @param {!jspb.BinaryWriter} writer
162
+ * @suppress {unusedLocalVariables} f is only used for nested messages
163
+ */
164
+ proto.supervisor.CreateSSHKeyPairRequest.serializeBinaryToWriter = function(message, writer) {
165
+ var f = undefined;
166
+ };
167
+
168
+
169
+
170
+
171
+
172
+ if (jspb.Message.GENERATE_TO_OBJECT) {
173
+ /**
174
+ * Creates an object representation of this proto.
175
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
176
+ * Optional fields that are not set will be set to undefined.
177
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
178
+ * For the list of reserved names please see:
179
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
180
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
181
+ * JSPB instance for transitional soy proto support:
182
+ * http://goto/soy-param-migration
183
+ * @return {!Object}
184
+ */
185
+ proto.supervisor.CreateSSHKeyPairResponse.prototype.toObject = function(opt_includeInstance) {
186
+ return proto.supervisor.CreateSSHKeyPairResponse.toObject(opt_includeInstance, this);
187
+ };
188
+
189
+
190
+ /**
191
+ * Static version of the {@see toObject} method.
192
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
193
+ * the JSPB instance for transitional soy proto support:
194
+ * http://goto/soy-param-migration
195
+ * @param {!proto.supervisor.CreateSSHKeyPairResponse} msg The msg instance to transform.
196
+ * @return {!Object}
197
+ * @suppress {unusedLocalVariables} f is only used for nested messages
198
+ */
199
+ proto.supervisor.CreateSSHKeyPairResponse.toObject = function(includeInstance, msg) {
200
+ var f, obj = {
201
+ privateKey: jspb.Message.getFieldWithDefault(msg, 1, "")
202
+ };
203
+
204
+ if (includeInstance) {
205
+ obj.$jspbMessageInstance = msg;
206
+ }
207
+ return obj;
208
+ };
209
+ }
210
+
211
+
212
+ /**
213
+ * Deserializes binary data (in protobuf wire format).
214
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
215
+ * @return {!proto.supervisor.CreateSSHKeyPairResponse}
216
+ */
217
+ proto.supervisor.CreateSSHKeyPairResponse.deserializeBinary = function(bytes) {
218
+ var reader = new jspb.BinaryReader(bytes);
219
+ var msg = new proto.supervisor.CreateSSHKeyPairResponse;
220
+ return proto.supervisor.CreateSSHKeyPairResponse.deserializeBinaryFromReader(msg, reader);
221
+ };
222
+
223
+
224
+ /**
225
+ * Deserializes binary data (in protobuf wire format) from the
226
+ * given reader into the given message object.
227
+ * @param {!proto.supervisor.CreateSSHKeyPairResponse} msg The message object to deserialize into.
228
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
229
+ * @return {!proto.supervisor.CreateSSHKeyPairResponse}
230
+ */
231
+ proto.supervisor.CreateSSHKeyPairResponse.deserializeBinaryFromReader = function(msg, reader) {
232
+ while (reader.nextField()) {
233
+ if (reader.isEndGroup()) {
234
+ break;
235
+ }
236
+ var field = reader.getFieldNumber();
237
+ switch (field) {
238
+ case 1:
239
+ var value = /** @type {string} */ (reader.readString());
240
+ msg.setPrivateKey(value);
241
+ break;
242
+ default:
243
+ reader.skipField();
244
+ break;
245
+ }
246
+ }
247
+ return msg;
248
+ };
249
+
250
+
251
+ /**
252
+ * Serializes the message to binary data (in protobuf wire format).
253
+ * @return {!Uint8Array}
254
+ */
255
+ proto.supervisor.CreateSSHKeyPairResponse.prototype.serializeBinary = function() {
256
+ var writer = new jspb.BinaryWriter();
257
+ proto.supervisor.CreateSSHKeyPairResponse.serializeBinaryToWriter(this, writer);
258
+ return writer.getResultBuffer();
259
+ };
260
+
261
+
262
+ /**
263
+ * Serializes the given message to binary data (in protobuf wire
264
+ * format), writing to the given BinaryWriter.
265
+ * @param {!proto.supervisor.CreateSSHKeyPairResponse} message
266
+ * @param {!jspb.BinaryWriter} writer
267
+ * @suppress {unusedLocalVariables} f is only used for nested messages
268
+ */
269
+ proto.supervisor.CreateSSHKeyPairResponse.serializeBinaryToWriter = function(message, writer) {
270
+ var f = undefined;
271
+ f = message.getPrivateKey();
272
+ if (f.length > 0) {
273
+ writer.writeString(
274
+ 1,
275
+ f
276
+ );
277
+ }
278
+ };
279
+
280
+
281
+ /**
282
+ * optional string private_key = 1;
283
+ * @return {string}
284
+ */
285
+ proto.supervisor.CreateSSHKeyPairResponse.prototype.getPrivateKey = function() {
286
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
287
+ };
288
+
289
+
290
+ /**
291
+ * @param {string} value
292
+ * @return {!proto.supervisor.CreateSSHKeyPairResponse} returns this
293
+ */
294
+ proto.supervisor.CreateSSHKeyPairResponse.prototype.setPrivateKey = function(value) {
295
+ return jspb.Message.setProto3StringField(this, 1, value);
296
+ };
297
+
298
+
299
+ goog.object.extend(exports, proto.supervisor);
@@ -0,0 +1,63 @@
1
+ // package: supervisor
2
+ // file: sshkey.proto
3
+
4
+ import * as sshkey_pb from "./sshkey_pb";
5
+ import {grpc} from "@improbable-eng/grpc-web";
6
+
7
+ type SSHKeyServiceCreateSSHKeyPair = {
8
+ readonly methodName: string;
9
+ readonly service: typeof SSHKeyService;
10
+ readonly requestStream: false;
11
+ readonly responseStream: false;
12
+ readonly requestType: typeof sshkey_pb.CreateSSHKeyPairRequest;
13
+ readonly responseType: typeof sshkey_pb.CreateSSHKeyPairResponse;
14
+ };
15
+
16
+ export class SSHKeyService {
17
+ static readonly serviceName: string;
18
+ static readonly CreateSSHKeyPair: SSHKeyServiceCreateSSHKeyPair;
19
+ }
20
+
21
+ export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
22
+ export type Status = { details: string, code: number; metadata: grpc.Metadata }
23
+
24
+ interface UnaryResponse {
25
+ cancel(): void;
26
+ }
27
+ interface ResponseStream<T> {
28
+ cancel(): void;
29
+ on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
30
+ on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
31
+ on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
32
+ }
33
+ interface RequestStream<T> {
34
+ write(message: T): RequestStream<T>;
35
+ end(): void;
36
+ cancel(): void;
37
+ on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
38
+ on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
39
+ }
40
+ interface BidirectionalStream<ReqT, ResT> {
41
+ write(message: ReqT): BidirectionalStream<ReqT, ResT>;
42
+ end(): void;
43
+ cancel(): void;
44
+ on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
45
+ on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
46
+ on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
47
+ }
48
+
49
+ export class SSHKeyServiceClient {
50
+ readonly serviceHost: string;
51
+
52
+ constructor(serviceHost: string, options?: grpc.RpcOptions);
53
+ createSSHKeyPair(
54
+ requestMessage: sshkey_pb.CreateSSHKeyPairRequest,
55
+ metadata: grpc.Metadata,
56
+ callback: (error: ServiceError|null, responseMessage: sshkey_pb.CreateSSHKeyPairResponse|null) => void
57
+ ): UnaryResponse;
58
+ createSSHKeyPair(
59
+ requestMessage: sshkey_pb.CreateSSHKeyPairRequest,
60
+ callback: (error: ServiceError|null, responseMessage: sshkey_pb.CreateSSHKeyPairResponse|null) => void
61
+ ): UnaryResponse;
62
+ }
63
+
@@ -0,0 +1,61 @@
1
+ // package: supervisor
2
+ // file: sshkey.proto
3
+
4
+ var sshkey_pb = require("./sshkey_pb");
5
+ var grpc = require("@improbable-eng/grpc-web").grpc;
6
+
7
+ var SSHKeyService = (function () {
8
+ function SSHKeyService() {}
9
+ SSHKeyService.serviceName = "supervisor.SSHKeyService";
10
+ return SSHKeyService;
11
+ }());
12
+
13
+ SSHKeyService.CreateSSHKeyPair = {
14
+ methodName: "CreateSSHKeyPair",
15
+ service: SSHKeyService,
16
+ requestStream: false,
17
+ responseStream: false,
18
+ requestType: sshkey_pb.CreateSSHKeyPairRequest,
19
+ responseType: sshkey_pb.CreateSSHKeyPairResponse
20
+ };
21
+
22
+ exports.SSHKeyService = SSHKeyService;
23
+
24
+ function SSHKeyServiceClient(serviceHost, options) {
25
+ this.serviceHost = serviceHost;
26
+ this.options = options || {};
27
+ }
28
+
29
+ SSHKeyServiceClient.prototype.createSSHKeyPair = function createSSHKeyPair(requestMessage, metadata, callback) {
30
+ if (arguments.length === 2) {
31
+ callback = arguments[1];
32
+ }
33
+ var client = grpc.unary(SSHKeyService.CreateSSHKeyPair, {
34
+ request: requestMessage,
35
+ host: this.serviceHost,
36
+ metadata: metadata,
37
+ transport: this.options.transport,
38
+ debug: this.options.debug,
39
+ onEnd: function (response) {
40
+ if (callback) {
41
+ if (response.status !== grpc.Code.OK) {
42
+ var err = new Error(response.statusMessage);
43
+ err.code = response.status;
44
+ err.metadata = response.trailers;
45
+ callback(err, null);
46
+ } else {
47
+ callback(null, response.message);
48
+ }
49
+ }
50
+ }
51
+ });
52
+ return {
53
+ cancel: function () {
54
+ callback = null;
55
+ client.close();
56
+ }
57
+ };
58
+ };
59
+
60
+ exports.SSHKeyServiceClient = SSHKeyServiceClient;
61
+
@@ -64,6 +64,11 @@ export class IDEStatusResponse extends jspb.Message {
64
64
  getOk(): boolean;
65
65
  setOk(value: boolean): void;
66
66
 
67
+ hasDesktop(): boolean;
68
+ clearDesktop(): void;
69
+ getDesktop(): IDEStatusResponse.DesktopStatus | undefined;
70
+ setDesktop(value?: IDEStatusResponse.DesktopStatus): void;
71
+
67
72
  serializeBinary(): Uint8Array;
68
73
  toObject(includeInstance?: boolean): IDEStatusResponse.AsObject;
69
74
  static toObject(includeInstance: boolean, msg: IDEStatusResponse): IDEStatusResponse.AsObject;
@@ -77,6 +82,31 @@ export class IDEStatusResponse extends jspb.Message {
77
82
  export namespace IDEStatusResponse {
78
83
  export type AsObject = {
79
84
  ok: boolean,
85
+ desktop?: IDEStatusResponse.DesktopStatus.AsObject,
86
+ }
87
+
88
+ export class DesktopStatus extends jspb.Message {
89
+ getLink(): string;
90
+ setLink(value: string): void;
91
+
92
+ getLabel(): string;
93
+ setLabel(value: string): void;
94
+
95
+ serializeBinary(): Uint8Array;
96
+ toObject(includeInstance?: boolean): DesktopStatus.AsObject;
97
+ static toObject(includeInstance: boolean, msg: DesktopStatus): DesktopStatus.AsObject;
98
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
99
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
100
+ static serializeBinaryToWriter(message: DesktopStatus, writer: jspb.BinaryWriter): void;
101
+ static deserializeBinary(bytes: Uint8Array): DesktopStatus;
102
+ static deserializeBinaryFromReader(message: DesktopStatus, reader: jspb.BinaryReader): DesktopStatus;
103
+ }
104
+
105
+ export namespace DesktopStatus {
106
+ export type AsObject = {
107
+ link: string,
108
+ label: string,
109
+ }
80
110
  }
81
111
  }
82
112
 
@@ -261,9 +291,6 @@ export class PortsStatus extends jspb.Message {
261
291
  getLocalPort(): number;
262
292
  setLocalPort(value: number): void;
263
293
 
264
- getGlobalPort(): number;
265
- setGlobalPort(value: number): void;
266
-
267
294
  getServed(): boolean;
268
295
  setServed(value: boolean): void;
269
296
 
@@ -272,11 +299,20 @@ export class PortsStatus extends jspb.Message {
272
299
  getExposed(): ExposedPortInfo | undefined;
273
300
  setExposed(value?: ExposedPortInfo): void;
274
301
 
302
+ getAutoExposure(): PortAutoExposureMap[keyof PortAutoExposureMap];
303
+ setAutoExposure(value: PortAutoExposureMap[keyof PortAutoExposureMap]): void;
304
+
275
305
  hasTunneled(): boolean;
276
306
  clearTunneled(): void;
277
307
  getTunneled(): TunneledPortInfo | undefined;
278
308
  setTunneled(value?: TunneledPortInfo): void;
279
309
 
310
+ getDescription(): string;
311
+ setDescription(value: string): void;
312
+
313
+ getName(): string;
314
+ setName(value: string): void;
315
+
280
316
  serializeBinary(): Uint8Array;
281
317
  toObject(includeInstance?: boolean): PortsStatus.AsObject;
282
318
  static toObject(includeInstance: boolean, msg: PortsStatus): PortsStatus.AsObject;
@@ -290,10 +326,12 @@ export class PortsStatus extends jspb.Message {
290
326
  export namespace PortsStatus {
291
327
  export type AsObject = {
292
328
  localPort: number,
293
- globalPort: number,
294
329
  served: boolean,
295
330
  exposed?: ExposedPortInfo.AsObject,
331
+ autoExposure: PortAutoExposureMap[keyof PortAutoExposureMap],
296
332
  tunneled?: TunneledPortInfo.AsObject,
333
+ description: string,
334
+ name: string,
297
335
  }
298
336
  }
299
337
 
@@ -426,6 +464,14 @@ export interface OnPortExposedActionMap {
426
464
 
427
465
  export const OnPortExposedAction: OnPortExposedActionMap;
428
466
 
467
+ export interface PortAutoExposureMap {
468
+ TRYING: 0;
469
+ SUCCEEDED: 1;
470
+ FAILED: 2;
471
+ }
472
+
473
+ export const PortAutoExposure: PortAutoExposureMap;
474
+
429
475
  export interface TaskStateMap {
430
476
  OPENING: 0;
431
477
  RUNNING: 1;