@gitpod/supervisor-api-grpc 0.1.5-se-init.1 → 0.1.5-se-better-ts-api.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/control_grpc_pb.d.ts +17 -0
- package/lib/control_grpc_pb.js +34 -0
- package/lib/control_pb.d.ts +37 -0
- package/lib/control_pb.js +276 -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 +84 -0
- package/lib/status_pb.js +631 -8
- package/lib/terminal_pb.js +1 -7
- package/lib/token_pb.js +1 -7
- package/package.json +3 -2
- package/pkg-yarn.lock +1 -1
- package/provenance-bundle.jsonl +4 -0
package/lib/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
|
@@ -95,6 +95,10 @@ export namespace IDEStatusResponse {
|
|
|
95
95
|
setLink(value: string): DesktopStatus;
|
|
96
96
|
getLabel(): string;
|
|
97
97
|
setLabel(value: string): DesktopStatus;
|
|
98
|
+
getClientid(): string;
|
|
99
|
+
setClientid(value: string): DesktopStatus;
|
|
100
|
+
getKind(): string;
|
|
101
|
+
setKind(value: string): DesktopStatus;
|
|
98
102
|
|
|
99
103
|
serializeBinary(): Uint8Array;
|
|
100
104
|
toObject(includeInstance?: boolean): DesktopStatus.AsObject;
|
|
@@ -110,6 +114,8 @@ export namespace IDEStatusResponse {
|
|
|
110
114
|
export type AsObject = {
|
|
111
115
|
link: string,
|
|
112
116
|
label: string,
|
|
117
|
+
clientid: string,
|
|
118
|
+
kind: string,
|
|
113
119
|
}
|
|
114
120
|
}
|
|
115
121
|
|
|
@@ -435,6 +441,78 @@ export namespace TaskPresentation {
|
|
|
435
441
|
}
|
|
436
442
|
}
|
|
437
443
|
|
|
444
|
+
export class ResourcesStatuRequest extends jspb.Message {
|
|
445
|
+
|
|
446
|
+
serializeBinary(): Uint8Array;
|
|
447
|
+
toObject(includeInstance?: boolean): ResourcesStatuRequest.AsObject;
|
|
448
|
+
static toObject(includeInstance: boolean, msg: ResourcesStatuRequest): ResourcesStatuRequest.AsObject;
|
|
449
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
450
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
451
|
+
static serializeBinaryToWriter(message: ResourcesStatuRequest, writer: jspb.BinaryWriter): void;
|
|
452
|
+
static deserializeBinary(bytes: Uint8Array): ResourcesStatuRequest;
|
|
453
|
+
static deserializeBinaryFromReader(message: ResourcesStatuRequest, reader: jspb.BinaryReader): ResourcesStatuRequest;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
export namespace ResourcesStatuRequest {
|
|
457
|
+
export type AsObject = {
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
export class ResourcesStatusResponse extends jspb.Message {
|
|
462
|
+
|
|
463
|
+
hasMemory(): boolean;
|
|
464
|
+
clearMemory(): void;
|
|
465
|
+
getMemory(): ResourceStatus | undefined;
|
|
466
|
+
setMemory(value?: ResourceStatus): ResourcesStatusResponse;
|
|
467
|
+
|
|
468
|
+
hasCpu(): boolean;
|
|
469
|
+
clearCpu(): void;
|
|
470
|
+
getCpu(): ResourceStatus | undefined;
|
|
471
|
+
setCpu(value?: ResourceStatus): ResourcesStatusResponse;
|
|
472
|
+
|
|
473
|
+
serializeBinary(): Uint8Array;
|
|
474
|
+
toObject(includeInstance?: boolean): ResourcesStatusResponse.AsObject;
|
|
475
|
+
static toObject(includeInstance: boolean, msg: ResourcesStatusResponse): ResourcesStatusResponse.AsObject;
|
|
476
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
477
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
478
|
+
static serializeBinaryToWriter(message: ResourcesStatusResponse, writer: jspb.BinaryWriter): void;
|
|
479
|
+
static deserializeBinary(bytes: Uint8Array): ResourcesStatusResponse;
|
|
480
|
+
static deserializeBinaryFromReader(message: ResourcesStatusResponse, reader: jspb.BinaryReader): ResourcesStatusResponse;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
export namespace ResourcesStatusResponse {
|
|
484
|
+
export type AsObject = {
|
|
485
|
+
memory?: ResourceStatus.AsObject,
|
|
486
|
+
cpu?: ResourceStatus.AsObject,
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export class ResourceStatus extends jspb.Message {
|
|
491
|
+
getUsed(): number;
|
|
492
|
+
setUsed(value: number): ResourceStatus;
|
|
493
|
+
getLimit(): number;
|
|
494
|
+
setLimit(value: number): ResourceStatus;
|
|
495
|
+
getSeverity(): ResourceStatusSeverity;
|
|
496
|
+
setSeverity(value: ResourceStatusSeverity): ResourceStatus;
|
|
497
|
+
|
|
498
|
+
serializeBinary(): Uint8Array;
|
|
499
|
+
toObject(includeInstance?: boolean): ResourceStatus.AsObject;
|
|
500
|
+
static toObject(includeInstance: boolean, msg: ResourceStatus): ResourceStatus.AsObject;
|
|
501
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
502
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
503
|
+
static serializeBinaryToWriter(message: ResourceStatus, writer: jspb.BinaryWriter): void;
|
|
504
|
+
static deserializeBinary(bytes: Uint8Array): ResourceStatus;
|
|
505
|
+
static deserializeBinaryFromReader(message: ResourceStatus, reader: jspb.BinaryReader): ResourceStatus;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export namespace ResourceStatus {
|
|
509
|
+
export type AsObject = {
|
|
510
|
+
used: number,
|
|
511
|
+
limit: number,
|
|
512
|
+
severity: ResourceStatusSeverity,
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
438
516
|
export enum ContentSource {
|
|
439
517
|
FROM_OTHER = 0,
|
|
440
518
|
FROM_BACKUP = 1,
|
|
@@ -465,3 +543,9 @@ export enum TaskState {
|
|
|
465
543
|
RUNNING = 1,
|
|
466
544
|
CLOSED = 2,
|
|
467
545
|
}
|
|
546
|
+
|
|
547
|
+
export enum ResourceStatusSeverity {
|
|
548
|
+
NORMAL = 0,
|
|
549
|
+
WARNING = 1,
|
|
550
|
+
DANGER = 2,
|
|
551
|
+
}
|