@gitpod/supervisor-api-grpc 0.1.5-prs-dazzlev2-test.3 → 0.1.5-release-2022.9.2.1
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 +1 -7
- package/lib/info_pb.d.ts +32 -0
- package/lib/info_pb.js +265 -8
- 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 +93 -0
- package/lib/status_pb.js +644 -9
- package/lib/terminal_pb.js +1 -7
- package/lib/token_pb.js +1 -7
- package/package.json +1 -1
- package/pkg-yarn.lock +1 -1
- package/provenance-bundle.jsonl +2 -2
package/lib/port_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.AutoTunnelRequest', null, global);
|
|
25
19
|
goog.exportSymbol('proto.supervisor.AutoTunnelResponse', null, global);
|
package/lib/status_grpc_pb.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ interface IStatusServiceService extends grpc.ServiceDefinition<grpc.UntypedServi
|
|
|
15
15
|
backupStatus: IStatusServiceService_IBackupStatus;
|
|
16
16
|
portsStatus: IStatusServiceService_IPortsStatus;
|
|
17
17
|
tasksStatus: IStatusServiceService_ITasksStatus;
|
|
18
|
+
resourcesStatus: IStatusServiceService_IResourcesStatus;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
interface IStatusServiceService_ISupervisorStatus extends grpc.MethodDefinition<status_pb.SupervisorStatusRequest, status_pb.SupervisorStatusResponse> {
|
|
@@ -71,6 +72,15 @@ interface IStatusServiceService_ITasksStatus extends grpc.MethodDefinition<statu
|
|
|
71
72
|
responseSerialize: grpc.serialize<status_pb.TasksStatusResponse>;
|
|
72
73
|
responseDeserialize: grpc.deserialize<status_pb.TasksStatusResponse>;
|
|
73
74
|
}
|
|
75
|
+
interface IStatusServiceService_IResourcesStatus extends grpc.MethodDefinition<status_pb.ResourcesStatuRequest, status_pb.ResourcesStatusResponse> {
|
|
76
|
+
path: "/supervisor.StatusService/ResourcesStatus";
|
|
77
|
+
requestStream: false;
|
|
78
|
+
responseStream: false;
|
|
79
|
+
requestSerialize: grpc.serialize<status_pb.ResourcesStatuRequest>;
|
|
80
|
+
requestDeserialize: grpc.deserialize<status_pb.ResourcesStatuRequest>;
|
|
81
|
+
responseSerialize: grpc.serialize<status_pb.ResourcesStatusResponse>;
|
|
82
|
+
responseDeserialize: grpc.deserialize<status_pb.ResourcesStatusResponse>;
|
|
83
|
+
}
|
|
74
84
|
|
|
75
85
|
export const StatusServiceService: IStatusServiceService;
|
|
76
86
|
|
|
@@ -81,6 +91,7 @@ export interface IStatusServiceServer extends grpc.UntypedServiceImplementation
|
|
|
81
91
|
backupStatus: grpc.handleUnaryCall<status_pb.BackupStatusRequest, status_pb.BackupStatusResponse>;
|
|
82
92
|
portsStatus: grpc.handleServerStreamingCall<status_pb.PortsStatusRequest, status_pb.PortsStatusResponse>;
|
|
83
93
|
tasksStatus: grpc.handleServerStreamingCall<status_pb.TasksStatusRequest, status_pb.TasksStatusResponse>;
|
|
94
|
+
resourcesStatus: grpc.handleUnaryCall<status_pb.ResourcesStatuRequest, status_pb.ResourcesStatusResponse>;
|
|
84
95
|
}
|
|
85
96
|
|
|
86
97
|
export interface IStatusServiceClient {
|
|
@@ -100,6 +111,9 @@ export interface IStatusServiceClient {
|
|
|
100
111
|
portsStatus(request: status_pb.PortsStatusRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<status_pb.PortsStatusResponse>;
|
|
101
112
|
tasksStatus(request: status_pb.TasksStatusRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<status_pb.TasksStatusResponse>;
|
|
102
113
|
tasksStatus(request: status_pb.TasksStatusRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<status_pb.TasksStatusResponse>;
|
|
114
|
+
resourcesStatus(request: status_pb.ResourcesStatuRequest, callback: (error: grpc.ServiceError | null, response: status_pb.ResourcesStatusResponse) => void): grpc.ClientUnaryCall;
|
|
115
|
+
resourcesStatus(request: status_pb.ResourcesStatuRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: status_pb.ResourcesStatusResponse) => void): grpc.ClientUnaryCall;
|
|
116
|
+
resourcesStatus(request: status_pb.ResourcesStatuRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: status_pb.ResourcesStatusResponse) => void): grpc.ClientUnaryCall;
|
|
103
117
|
}
|
|
104
118
|
|
|
105
119
|
export class StatusServiceClient extends grpc.Client implements IStatusServiceClient {
|
|
@@ -120,4 +134,7 @@ export class StatusServiceClient extends grpc.Client implements IStatusServiceCl
|
|
|
120
134
|
public portsStatus(request: status_pb.PortsStatusRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<status_pb.PortsStatusResponse>;
|
|
121
135
|
public tasksStatus(request: status_pb.TasksStatusRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<status_pb.TasksStatusResponse>;
|
|
122
136
|
public tasksStatus(request: status_pb.TasksStatusRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<status_pb.TasksStatusResponse>;
|
|
137
|
+
public resourcesStatus(request: status_pb.ResourcesStatuRequest, callback: (error: grpc.ServiceError | null, response: status_pb.ResourcesStatusResponse) => void): grpc.ClientUnaryCall;
|
|
138
|
+
public resourcesStatus(request: status_pb.ResourcesStatuRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: status_pb.ResourcesStatusResponse) => void): grpc.ClientUnaryCall;
|
|
139
|
+
public resourcesStatus(request: status_pb.ResourcesStatuRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: status_pb.ResourcesStatusResponse) => void): grpc.ClientUnaryCall;
|
|
123
140
|
}
|
package/lib/status_grpc_pb.js
CHANGED
|
@@ -98,6 +98,28 @@ function deserialize_supervisor_PortsStatusResponse(buffer_arg) {
|
|
|
98
98
|
return status_pb.PortsStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
function serialize_supervisor_ResourcesStatuRequest(arg) {
|
|
102
|
+
if (!(arg instanceof status_pb.ResourcesStatuRequest)) {
|
|
103
|
+
throw new Error('Expected argument of type supervisor.ResourcesStatuRequest');
|
|
104
|
+
}
|
|
105
|
+
return Buffer.from(arg.serializeBinary());
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function deserialize_supervisor_ResourcesStatuRequest(buffer_arg) {
|
|
109
|
+
return status_pb.ResourcesStatuRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function serialize_supervisor_ResourcesStatusResponse(arg) {
|
|
113
|
+
if (!(arg instanceof status_pb.ResourcesStatusResponse)) {
|
|
114
|
+
throw new Error('Expected argument of type supervisor.ResourcesStatusResponse');
|
|
115
|
+
}
|
|
116
|
+
return Buffer.from(arg.serializeBinary());
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function deserialize_supervisor_ResourcesStatusResponse(buffer_arg) {
|
|
120
|
+
return status_pb.ResourcesStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
121
|
+
}
|
|
122
|
+
|
|
101
123
|
function serialize_supervisor_SupervisorStatusRequest(arg) {
|
|
102
124
|
if (!(arg instanceof status_pb.SupervisorStatusRequest)) {
|
|
103
125
|
throw new Error('Expected argument of type supervisor.SupervisorStatusRequest');
|
|
@@ -220,6 +242,18 @@ tasksStatus: {
|
|
|
220
242
|
responseSerialize: serialize_supervisor_TasksStatusResponse,
|
|
221
243
|
responseDeserialize: deserialize_supervisor_TasksStatusResponse,
|
|
222
244
|
},
|
|
245
|
+
// ResourcesStatus provides workspace resources status information.
|
|
246
|
+
resourcesStatus: {
|
|
247
|
+
path: '/supervisor.StatusService/ResourcesStatus',
|
|
248
|
+
requestStream: false,
|
|
249
|
+
responseStream: false,
|
|
250
|
+
requestType: status_pb.ResourcesStatuRequest,
|
|
251
|
+
responseType: status_pb.ResourcesStatusResponse,
|
|
252
|
+
requestSerialize: serialize_supervisor_ResourcesStatuRequest,
|
|
253
|
+
requestDeserialize: deserialize_supervisor_ResourcesStatuRequest,
|
|
254
|
+
responseSerialize: serialize_supervisor_ResourcesStatusResponse,
|
|
255
|
+
responseDeserialize: deserialize_supervisor_ResourcesStatusResponse,
|
|
256
|
+
},
|
|
223
257
|
};
|
|
224
258
|
|
|
225
259
|
exports.StatusServiceClient = grpc.makeGenericClientConstructor(StatusServiceService);
|
package/lib/status_pb.d.ts
CHANGED
|
@@ -97,6 +97,8 @@ export namespace IDEStatusResponse {
|
|
|
97
97
|
setLabel(value: string): DesktopStatus;
|
|
98
98
|
getClientid(): string;
|
|
99
99
|
setClientid(value: string): DesktopStatus;
|
|
100
|
+
getKind(): string;
|
|
101
|
+
setKind(value: string): DesktopStatus;
|
|
100
102
|
|
|
101
103
|
serializeBinary(): Uint8Array;
|
|
102
104
|
toObject(includeInstance?: boolean): DesktopStatus.AsObject;
|
|
@@ -113,6 +115,7 @@ export namespace IDEStatusResponse {
|
|
|
113
115
|
link: string,
|
|
114
116
|
label: string,
|
|
115
117
|
clientid: string,
|
|
118
|
+
kind: string,
|
|
116
119
|
}
|
|
117
120
|
}
|
|
118
121
|
|
|
@@ -315,6 +318,8 @@ export class PortsStatus extends jspb.Message {
|
|
|
315
318
|
setDescription(value: string): PortsStatus;
|
|
316
319
|
getName(): string;
|
|
317
320
|
setName(value: string): PortsStatus;
|
|
321
|
+
getOnOpen(): PortsStatus.OnOpenAction;
|
|
322
|
+
setOnOpen(value: PortsStatus.OnOpenAction): PortsStatus;
|
|
318
323
|
|
|
319
324
|
serializeBinary(): Uint8Array;
|
|
320
325
|
toObject(includeInstance?: boolean): PortsStatus.AsObject;
|
|
@@ -335,7 +340,17 @@ export namespace PortsStatus {
|
|
|
335
340
|
tunneled?: TunneledPortInfo.AsObject,
|
|
336
341
|
description: string,
|
|
337
342
|
name: string,
|
|
343
|
+
onOpen: PortsStatus.OnOpenAction,
|
|
338
344
|
}
|
|
345
|
+
|
|
346
|
+
export enum OnOpenAction {
|
|
347
|
+
IGNORE = 0,
|
|
348
|
+
OPEN_BROWSER = 1,
|
|
349
|
+
OPEN_PREVIEW = 2,
|
|
350
|
+
NOTIFY = 3,
|
|
351
|
+
NOTIFY_PRIVATE = 4,
|
|
352
|
+
}
|
|
353
|
+
|
|
339
354
|
}
|
|
340
355
|
|
|
341
356
|
export class TasksStatusRequest extends jspb.Message {
|
|
@@ -438,6 +453,78 @@ export namespace TaskPresentation {
|
|
|
438
453
|
}
|
|
439
454
|
}
|
|
440
455
|
|
|
456
|
+
export class ResourcesStatuRequest extends jspb.Message {
|
|
457
|
+
|
|
458
|
+
serializeBinary(): Uint8Array;
|
|
459
|
+
toObject(includeInstance?: boolean): ResourcesStatuRequest.AsObject;
|
|
460
|
+
static toObject(includeInstance: boolean, msg: ResourcesStatuRequest): ResourcesStatuRequest.AsObject;
|
|
461
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
462
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
463
|
+
static serializeBinaryToWriter(message: ResourcesStatuRequest, writer: jspb.BinaryWriter): void;
|
|
464
|
+
static deserializeBinary(bytes: Uint8Array): ResourcesStatuRequest;
|
|
465
|
+
static deserializeBinaryFromReader(message: ResourcesStatuRequest, reader: jspb.BinaryReader): ResourcesStatuRequest;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
export namespace ResourcesStatuRequest {
|
|
469
|
+
export type AsObject = {
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export class ResourcesStatusResponse extends jspb.Message {
|
|
474
|
+
|
|
475
|
+
hasMemory(): boolean;
|
|
476
|
+
clearMemory(): void;
|
|
477
|
+
getMemory(): ResourceStatus | undefined;
|
|
478
|
+
setMemory(value?: ResourceStatus): ResourcesStatusResponse;
|
|
479
|
+
|
|
480
|
+
hasCpu(): boolean;
|
|
481
|
+
clearCpu(): void;
|
|
482
|
+
getCpu(): ResourceStatus | undefined;
|
|
483
|
+
setCpu(value?: ResourceStatus): ResourcesStatusResponse;
|
|
484
|
+
|
|
485
|
+
serializeBinary(): Uint8Array;
|
|
486
|
+
toObject(includeInstance?: boolean): ResourcesStatusResponse.AsObject;
|
|
487
|
+
static toObject(includeInstance: boolean, msg: ResourcesStatusResponse): ResourcesStatusResponse.AsObject;
|
|
488
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
489
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
490
|
+
static serializeBinaryToWriter(message: ResourcesStatusResponse, writer: jspb.BinaryWriter): void;
|
|
491
|
+
static deserializeBinary(bytes: Uint8Array): ResourcesStatusResponse;
|
|
492
|
+
static deserializeBinaryFromReader(message: ResourcesStatusResponse, reader: jspb.BinaryReader): ResourcesStatusResponse;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
export namespace ResourcesStatusResponse {
|
|
496
|
+
export type AsObject = {
|
|
497
|
+
memory?: ResourceStatus.AsObject,
|
|
498
|
+
cpu?: ResourceStatus.AsObject,
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
export class ResourceStatus extends jspb.Message {
|
|
503
|
+
getUsed(): number;
|
|
504
|
+
setUsed(value: number): ResourceStatus;
|
|
505
|
+
getLimit(): number;
|
|
506
|
+
setLimit(value: number): ResourceStatus;
|
|
507
|
+
getSeverity(): ResourceStatusSeverity;
|
|
508
|
+
setSeverity(value: ResourceStatusSeverity): ResourceStatus;
|
|
509
|
+
|
|
510
|
+
serializeBinary(): Uint8Array;
|
|
511
|
+
toObject(includeInstance?: boolean): ResourceStatus.AsObject;
|
|
512
|
+
static toObject(includeInstance: boolean, msg: ResourceStatus): ResourceStatus.AsObject;
|
|
513
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
514
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
515
|
+
static serializeBinaryToWriter(message: ResourceStatus, writer: jspb.BinaryWriter): void;
|
|
516
|
+
static deserializeBinary(bytes: Uint8Array): ResourceStatus;
|
|
517
|
+
static deserializeBinaryFromReader(message: ResourceStatus, reader: jspb.BinaryReader): ResourceStatus;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
export namespace ResourceStatus {
|
|
521
|
+
export type AsObject = {
|
|
522
|
+
used: number,
|
|
523
|
+
limit: number,
|
|
524
|
+
severity: ResourceStatusSeverity,
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
441
528
|
export enum ContentSource {
|
|
442
529
|
FROM_OTHER = 0,
|
|
443
530
|
FROM_BACKUP = 1,
|
|
@@ -468,3 +555,9 @@ export enum TaskState {
|
|
|
468
555
|
RUNNING = 1,
|
|
469
556
|
CLOSED = 2,
|
|
470
557
|
}
|
|
558
|
+
|
|
559
|
+
export enum ResourceStatusSeverity {
|
|
560
|
+
NORMAL = 0,
|
|
561
|
+
WARNING = 1,
|
|
562
|
+
DANGER = 2,
|
|
563
|
+
}
|