@norskvideo/norsk-api 0.0.322
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/manager_grpc_pb.d.ts +208 -0
- package/lib/manager_grpc_pb.js +278 -0
- package/lib/manager_pb.d.ts +1259 -0
- package/lib/manager_pb.js +1543 -0
- package/lib/manager_pb.js.map +1 -0
- package/lib/manager_pb.ts +2256 -0
- package/lib/media_grpc_pb.d.ts +923 -0
- package/lib/media_grpc_pb.js +1731 -0
- package/lib/media_pb.d.ts +10786 -0
- package/lib/media_pb.js +12181 -0
- package/lib/media_pb.js.map +1 -0
- package/lib/media_pb.ts +17647 -0
- package/lib/nodes_grpc_pb.js +1 -0
- package/lib/nodes_pb.d.ts +9 -0
- package/lib/shared/common_grpc_pb.js +1 -0
- package/lib/shared/common_pb.d.ts +187 -0
- package/lib/shared/common_pb.js +283 -0
- package/lib/shared/common_pb.js.map +1 -0
- package/lib/shared/common_pb.ts +334 -0
- package/lib/shared/health_grpc_pb.d.ts +56 -0
- package/lib/shared/health_grpc_pb.js +90 -0
- package/lib/shared/health_pb.d.ts +59 -0
- package/lib/shared/health_pb.js +111 -0
- package/lib/shared/health_pb.js.map +1 -0
- package/lib/shared/health_pb.ts +133 -0
- package/lib/worker_grpc_pb.d.ts +42 -0
- package/lib/worker_grpc_pb.js +46 -0
- package/lib/worker_pb.d.ts +277 -0
- package/lib/worker_pb.js +344 -0
- package/lib/worker_pb.js.map +1 -0
- package/lib/worker_pb.ts +492 -0
- package/package.json +25 -0
- package/tsconfig.json +20 -0
package/lib/worker_pb.ts
ADDED
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v0.3.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file worker.proto (package norsk.api.manager.worker, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* TODO - see capacity comment in jobs.proto...
|
|
11
|
+
*
|
|
12
|
+
* @generated from message norsk.api.manager.worker.Capacity
|
|
13
|
+
*/
|
|
14
|
+
export class Capacity extends Message<Capacity> {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: float vCpus = 1;
|
|
17
|
+
*/
|
|
18
|
+
vCpus = 0;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @generated from field: float memory = 2;
|
|
22
|
+
*/
|
|
23
|
+
memory = 0;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @generated from field: float diskSpace = 3;
|
|
27
|
+
*/
|
|
28
|
+
diskSpace = 0;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @generated from field: float diskIOPS = 4;
|
|
32
|
+
*/
|
|
33
|
+
diskIOPS = 0;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @generated from field: float networkIOPS = 5;
|
|
37
|
+
*/
|
|
38
|
+
networkIOPS = 0;
|
|
39
|
+
|
|
40
|
+
constructor(data?: PartialMessage<Capacity>) {
|
|
41
|
+
super();
|
|
42
|
+
proto3.util.initPartial(data, this);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
static readonly runtime = proto3;
|
|
46
|
+
static readonly typeName = "norsk.api.manager.worker.Capacity";
|
|
47
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
48
|
+
{ no: 1, name: "vCpus", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
49
|
+
{ no: 2, name: "memory", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
50
|
+
{ no: 3, name: "diskSpace", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
51
|
+
{ no: 4, name: "diskIOPS", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
52
|
+
{ no: 5, name: "networkIOPS", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
53
|
+
]);
|
|
54
|
+
|
|
55
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Capacity {
|
|
56
|
+
return new Capacity().fromBinary(bytes, options);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Capacity {
|
|
60
|
+
return new Capacity().fromJson(jsonValue, options);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Capacity {
|
|
64
|
+
return new Capacity().fromJsonString(jsonString, options);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static equals(a: Capacity | PlainMessage<Capacity> | undefined, b: Capacity | PlainMessage<Capacity> | undefined): boolean {
|
|
68
|
+
return proto3.util.equals(Capacity, a, b);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @generated from message norsk.api.manager.worker.NodeMetadata
|
|
74
|
+
*/
|
|
75
|
+
export class NodeMetadata extends Message<NodeMetadata> {
|
|
76
|
+
/**
|
|
77
|
+
* @generated from field: string id = 1;
|
|
78
|
+
*/
|
|
79
|
+
id = "";
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @generated from field: map<string, string> tags = 2;
|
|
83
|
+
*/
|
|
84
|
+
tags: { [key: string]: string } = {};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: norsk.api.manager.worker.Capacity capacity = 3;
|
|
88
|
+
*/
|
|
89
|
+
capacity?: Capacity;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @generated from field: google.protobuf.Timestamp created_at = 4;
|
|
93
|
+
*/
|
|
94
|
+
createdAt?: Timestamp;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @generated from field: bool reuse_on_idle = 5;
|
|
98
|
+
*/
|
|
99
|
+
reuseOnIdle = false;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @generated from field: string region = 6;
|
|
103
|
+
*/
|
|
104
|
+
region = "";
|
|
105
|
+
|
|
106
|
+
constructor(data?: PartialMessage<NodeMetadata>) {
|
|
107
|
+
super();
|
|
108
|
+
proto3.util.initPartial(data, this);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
static readonly runtime = proto3;
|
|
112
|
+
static readonly typeName = "norsk.api.manager.worker.NodeMetadata";
|
|
113
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
114
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
115
|
+
{ no: 2, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
116
|
+
{ no: 3, name: "capacity", kind: "message", T: Capacity },
|
|
117
|
+
{ no: 4, name: "created_at", kind: "message", T: Timestamp },
|
|
118
|
+
{ no: 5, name: "reuse_on_idle", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
119
|
+
{ no: 6, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
120
|
+
]);
|
|
121
|
+
|
|
122
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeMetadata {
|
|
123
|
+
return new NodeMetadata().fromBinary(bytes, options);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeMetadata {
|
|
127
|
+
return new NodeMetadata().fromJson(jsonValue, options);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NodeMetadata {
|
|
131
|
+
return new NodeMetadata().fromJsonString(jsonString, options);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
static equals(a: NodeMetadata | PlainMessage<NodeMetadata> | undefined, b: NodeMetadata | PlainMessage<NodeMetadata> | undefined): boolean {
|
|
135
|
+
return proto3.util.equals(NodeMetadata, a, b);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @generated from message norsk.api.manager.worker.Health
|
|
141
|
+
*/
|
|
142
|
+
export class Health extends Message<Health> {
|
|
143
|
+
/**
|
|
144
|
+
* @generated from field: norsk.api.manager.worker.Capacity measured_load = 1;
|
|
145
|
+
*/
|
|
146
|
+
measuredLoad?: Capacity;
|
|
147
|
+
|
|
148
|
+
constructor(data?: PartialMessage<Health>) {
|
|
149
|
+
super();
|
|
150
|
+
proto3.util.initPartial(data, this);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
static readonly runtime = proto3;
|
|
154
|
+
static readonly typeName = "norsk.api.manager.worker.Health";
|
|
155
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
156
|
+
{ no: 1, name: "measured_load", kind: "message", T: Capacity },
|
|
157
|
+
]);
|
|
158
|
+
|
|
159
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Health {
|
|
160
|
+
return new Health().fromBinary(bytes, options);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Health {
|
|
164
|
+
return new Health().fromJson(jsonValue, options);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Health {
|
|
168
|
+
return new Health().fromJsonString(jsonString, options);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
static equals(a: Health | PlainMessage<Health> | undefined, b: Health | PlainMessage<Health> | undefined): boolean {
|
|
172
|
+
return proto3.util.equals(Health, a, b);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @generated from message norsk.api.manager.worker.WorkerJobId
|
|
178
|
+
*/
|
|
179
|
+
export class WorkerJobId extends Message<WorkerJobId> {
|
|
180
|
+
/**
|
|
181
|
+
* @generated from field: string id = 1;
|
|
182
|
+
*/
|
|
183
|
+
id = "";
|
|
184
|
+
|
|
185
|
+
constructor(data?: PartialMessage<WorkerJobId>) {
|
|
186
|
+
super();
|
|
187
|
+
proto3.util.initPartial(data, this);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
static readonly runtime = proto3;
|
|
191
|
+
static readonly typeName = "norsk.api.manager.worker.WorkerJobId";
|
|
192
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
193
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
194
|
+
]);
|
|
195
|
+
|
|
196
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerJobId {
|
|
197
|
+
return new WorkerJobId().fromBinary(bytes, options);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerJobId {
|
|
201
|
+
return new WorkerJobId().fromJson(jsonValue, options);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerJobId {
|
|
205
|
+
return new WorkerJobId().fromJsonString(jsonString, options);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
static equals(a: WorkerJobId | PlainMessage<WorkerJobId> | undefined, b: WorkerJobId | PlainMessage<WorkerJobId> | undefined): boolean {
|
|
209
|
+
return proto3.util.equals(WorkerJobId, a, b);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @generated from message norsk.api.manager.worker.WorkerJob
|
|
215
|
+
*/
|
|
216
|
+
export class WorkerJob extends Message<WorkerJob> {
|
|
217
|
+
/**
|
|
218
|
+
* @generated from field: norsk.api.manager.worker.WorkerJobId id = 1;
|
|
219
|
+
*/
|
|
220
|
+
id?: WorkerJobId;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @generated from field: string description = 2;
|
|
224
|
+
*/
|
|
225
|
+
description = "";
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @generated from field: map<string, string> tags = 3;
|
|
229
|
+
*/
|
|
230
|
+
tags: { [key: string]: string } = {};
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @generated from field: google.protobuf.Timestamp start_date_time = 4;
|
|
234
|
+
*/
|
|
235
|
+
startDateTime?: Timestamp;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @generated from field: google.protobuf.Timestamp end_date_time = 5;
|
|
239
|
+
*/
|
|
240
|
+
endDateTime?: Timestamp;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @generated from field: string media_configuration = 6;
|
|
244
|
+
*/
|
|
245
|
+
mediaConfiguration = "";
|
|
246
|
+
|
|
247
|
+
constructor(data?: PartialMessage<WorkerJob>) {
|
|
248
|
+
super();
|
|
249
|
+
proto3.util.initPartial(data, this);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
static readonly runtime = proto3;
|
|
253
|
+
static readonly typeName = "norsk.api.manager.worker.WorkerJob";
|
|
254
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
255
|
+
{ no: 1, name: "id", kind: "message", T: WorkerJobId },
|
|
256
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
257
|
+
{ no: 3, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
258
|
+
{ no: 4, name: "start_date_time", kind: "message", T: Timestamp },
|
|
259
|
+
{ no: 5, name: "end_date_time", kind: "message", T: Timestamp },
|
|
260
|
+
{ no: 6, name: "media_configuration", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
261
|
+
]);
|
|
262
|
+
|
|
263
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerJob {
|
|
264
|
+
return new WorkerJob().fromBinary(bytes, options);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerJob {
|
|
268
|
+
return new WorkerJob().fromJson(jsonValue, options);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerJob {
|
|
272
|
+
return new WorkerJob().fromJsonString(jsonString, options);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
static equals(a: WorkerJob | PlainMessage<WorkerJob> | undefined, b: WorkerJob | PlainMessage<WorkerJob> | undefined): boolean {
|
|
276
|
+
return proto3.util.equals(WorkerJob, a, b);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* @generated from message norsk.api.manager.worker.UpdateJobConfig
|
|
282
|
+
*/
|
|
283
|
+
export class UpdateJobConfig extends Message<UpdateJobConfig> {
|
|
284
|
+
/**
|
|
285
|
+
* @generated from field: norsk.api.manager.worker.WorkerJobId id = 1;
|
|
286
|
+
*/
|
|
287
|
+
id?: WorkerJobId;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* @generated from field: string media_configuration = 2;
|
|
291
|
+
*/
|
|
292
|
+
mediaConfiguration = "";
|
|
293
|
+
|
|
294
|
+
constructor(data?: PartialMessage<UpdateJobConfig>) {
|
|
295
|
+
super();
|
|
296
|
+
proto3.util.initPartial(data, this);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
static readonly runtime = proto3;
|
|
300
|
+
static readonly typeName = "norsk.api.manager.worker.UpdateJobConfig";
|
|
301
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
302
|
+
{ no: 1, name: "id", kind: "message", T: WorkerJobId },
|
|
303
|
+
{ no: 2, name: "media_configuration", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
304
|
+
]);
|
|
305
|
+
|
|
306
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateJobConfig {
|
|
307
|
+
return new UpdateJobConfig().fromBinary(bytes, options);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateJobConfig {
|
|
311
|
+
return new UpdateJobConfig().fromJson(jsonValue, options);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateJobConfig {
|
|
315
|
+
return new UpdateJobConfig().fromJsonString(jsonString, options);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
static equals(a: UpdateJobConfig | PlainMessage<UpdateJobConfig> | undefined, b: UpdateJobConfig | PlainMessage<UpdateJobConfig> | undefined): boolean {
|
|
319
|
+
return proto3.util.equals(UpdateJobConfig, a, b);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* @generated from message norsk.api.manager.worker.WorkerHello
|
|
325
|
+
*/
|
|
326
|
+
export class WorkerHello extends Message<WorkerHello> {
|
|
327
|
+
/**
|
|
328
|
+
* @generated from field: norsk.api.manager.worker.NodeMetadata nodeMetadata = 1;
|
|
329
|
+
*/
|
|
330
|
+
nodeMetadata?: NodeMetadata;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* @generated from field: norsk.api.manager.worker.Capacity measured_load = 2;
|
|
334
|
+
*/
|
|
335
|
+
measuredLoad?: Capacity;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* @generated from field: repeated norsk.api.manager.worker.WorkerJob running_jobs = 3;
|
|
339
|
+
*/
|
|
340
|
+
runningJobs: WorkerJob[] = [];
|
|
341
|
+
|
|
342
|
+
constructor(data?: PartialMessage<WorkerHello>) {
|
|
343
|
+
super();
|
|
344
|
+
proto3.util.initPartial(data, this);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
static readonly runtime = proto3;
|
|
348
|
+
static readonly typeName = "norsk.api.manager.worker.WorkerHello";
|
|
349
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
350
|
+
{ no: 1, name: "nodeMetadata", kind: "message", T: NodeMetadata },
|
|
351
|
+
{ no: 2, name: "measured_load", kind: "message", T: Capacity },
|
|
352
|
+
{ no: 3, name: "running_jobs", kind: "message", T: WorkerJob, repeated: true },
|
|
353
|
+
]);
|
|
354
|
+
|
|
355
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerHello {
|
|
356
|
+
return new WorkerHello().fromBinary(bytes, options);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerHello {
|
|
360
|
+
return new WorkerHello().fromJson(jsonValue, options);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerHello {
|
|
364
|
+
return new WorkerHello().fromJsonString(jsonString, options);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
static equals(a: WorkerHello | PlainMessage<WorkerHello> | undefined, b: WorkerHello | PlainMessage<WorkerHello> | undefined): boolean {
|
|
368
|
+
return proto3.util.equals(WorkerHello, a, b);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* @generated from message norsk.api.manager.worker.WorkerMessage
|
|
374
|
+
*/
|
|
375
|
+
export class WorkerMessage extends Message<WorkerMessage> {
|
|
376
|
+
/**
|
|
377
|
+
* @generated from oneof norsk.api.manager.worker.WorkerMessage.message
|
|
378
|
+
*/
|
|
379
|
+
message: {
|
|
380
|
+
/**
|
|
381
|
+
* @generated from field: norsk.api.manager.worker.WorkerHello hello = 1;
|
|
382
|
+
*/
|
|
383
|
+
value: WorkerHello;
|
|
384
|
+
case: "hello";
|
|
385
|
+
} | {
|
|
386
|
+
/**
|
|
387
|
+
* @generated from field: norsk.api.manager.worker.Health health = 2;
|
|
388
|
+
*/
|
|
389
|
+
value: Health;
|
|
390
|
+
case: "health";
|
|
391
|
+
} | {
|
|
392
|
+
/**
|
|
393
|
+
* @generated from field: norsk.api.manager.worker.WorkerJobId jobStarted = 3;
|
|
394
|
+
*/
|
|
395
|
+
value: WorkerJobId;
|
|
396
|
+
case: "jobStarted";
|
|
397
|
+
} | {
|
|
398
|
+
/**
|
|
399
|
+
* @generated from field: norsk.api.manager.worker.WorkerJobId jobStopped = 4;
|
|
400
|
+
*/
|
|
401
|
+
value: WorkerJobId;
|
|
402
|
+
case: "jobStopped";
|
|
403
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
404
|
+
|
|
405
|
+
constructor(data?: PartialMessage<WorkerMessage>) {
|
|
406
|
+
super();
|
|
407
|
+
proto3.util.initPartial(data, this);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
static readonly runtime = proto3;
|
|
411
|
+
static readonly typeName = "norsk.api.manager.worker.WorkerMessage";
|
|
412
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
413
|
+
{ no: 1, name: "hello", kind: "message", T: WorkerHello, oneof: "message" },
|
|
414
|
+
{ no: 2, name: "health", kind: "message", T: Health, oneof: "message" },
|
|
415
|
+
{ no: 3, name: "jobStarted", kind: "message", T: WorkerJobId, oneof: "message" },
|
|
416
|
+
{ no: 4, name: "jobStopped", kind: "message", T: WorkerJobId, oneof: "message" },
|
|
417
|
+
]);
|
|
418
|
+
|
|
419
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerMessage {
|
|
420
|
+
return new WorkerMessage().fromBinary(bytes, options);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerMessage {
|
|
424
|
+
return new WorkerMessage().fromJson(jsonValue, options);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerMessage {
|
|
428
|
+
return new WorkerMessage().fromJsonString(jsonString, options);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
static equals(a: WorkerMessage | PlainMessage<WorkerMessage> | undefined, b: WorkerMessage | PlainMessage<WorkerMessage> | undefined): boolean {
|
|
432
|
+
return proto3.util.equals(WorkerMessage, a, b);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* @generated from message norsk.api.manager.worker.NodeControllerMessage
|
|
438
|
+
*/
|
|
439
|
+
export class NodeControllerMessage extends Message<NodeControllerMessage> {
|
|
440
|
+
/**
|
|
441
|
+
* @generated from oneof norsk.api.manager.worker.NodeControllerMessage.message
|
|
442
|
+
*/
|
|
443
|
+
message: {
|
|
444
|
+
/**
|
|
445
|
+
* @generated from field: norsk.api.manager.worker.WorkerJob provisionJob = 1;
|
|
446
|
+
*/
|
|
447
|
+
value: WorkerJob;
|
|
448
|
+
case: "provisionJob";
|
|
449
|
+
} | {
|
|
450
|
+
/**
|
|
451
|
+
* @generated from field: norsk.api.manager.worker.WorkerJobId stopJob = 2;
|
|
452
|
+
*/
|
|
453
|
+
value: WorkerJobId;
|
|
454
|
+
case: "stopJob";
|
|
455
|
+
} | {
|
|
456
|
+
/**
|
|
457
|
+
* @generated from field: norsk.api.manager.worker.WorkerJob updateJob = 3;
|
|
458
|
+
*/
|
|
459
|
+
value: WorkerJob;
|
|
460
|
+
case: "updateJob";
|
|
461
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
462
|
+
|
|
463
|
+
constructor(data?: PartialMessage<NodeControllerMessage>) {
|
|
464
|
+
super();
|
|
465
|
+
proto3.util.initPartial(data, this);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
static readonly runtime = proto3;
|
|
469
|
+
static readonly typeName = "norsk.api.manager.worker.NodeControllerMessage";
|
|
470
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
471
|
+
{ no: 1, name: "provisionJob", kind: "message", T: WorkerJob, oneof: "message" },
|
|
472
|
+
{ no: 2, name: "stopJob", kind: "message", T: WorkerJobId, oneof: "message" },
|
|
473
|
+
{ no: 3, name: "updateJob", kind: "message", T: WorkerJob, oneof: "message" },
|
|
474
|
+
]);
|
|
475
|
+
|
|
476
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeControllerMessage {
|
|
477
|
+
return new NodeControllerMessage().fromBinary(bytes, options);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeControllerMessage {
|
|
481
|
+
return new NodeControllerMessage().fromJson(jsonValue, options);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NodeControllerMessage {
|
|
485
|
+
return new NodeControllerMessage().fromJsonString(jsonString, options);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
static equals(a: NodeControllerMessage | PlainMessage<NodeControllerMessage> | undefined, b: NodeControllerMessage | PlainMessage<NodeControllerMessage> | undefined): boolean {
|
|
489
|
+
return proto3.util.equals(NodeControllerMessage, a, b);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@norskvideo/norsk-api",
|
|
3
|
+
"version": "0.0.322",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@bufbuild/protobuf": "^0.3.0",
|
|
7
|
+
"@grpc/grpc-js": "^1.2.2"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"package.json",
|
|
11
|
+
"tsconfig.json",
|
|
12
|
+
"proto/*.proto",
|
|
13
|
+
"lib/*"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "./build.sh",
|
|
17
|
+
"clean": "rm -rf lib"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"typescript": "^4.1.2",
|
|
21
|
+
"@bufbuild/protoc-gen-es": "^0.3.0",
|
|
22
|
+
"grpc_tools_node_protoc_ts": "^5.0.1",
|
|
23
|
+
"grpc-tools": "^1.11.2"
|
|
24
|
+
}
|
|
25
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"exclude": ["./lib/*_grpc_pb.*", "./lib/shared/*_grpc_pb.*"],
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "es6",
|
|
5
|
+
"module": "commonjs",
|
|
6
|
+
"allowJs": true,
|
|
7
|
+
"experimentalDecorators": true,
|
|
8
|
+
"sourceMap": true,
|
|
9
|
+
"composite": false,
|
|
10
|
+
"strict": true,
|
|
11
|
+
"strictFunctionTypes": true,
|
|
12
|
+
"noImplicitAny": true,
|
|
13
|
+
"strictNullChecks": true,
|
|
14
|
+
"typeRoots": ["node_modules/@types"],
|
|
15
|
+
"esModuleInterop": true,
|
|
16
|
+
"declaration": true,
|
|
17
|
+
"emitDeclarationOnly": false,
|
|
18
|
+
"baseUrl": "./"
|
|
19
|
+
}
|
|
20
|
+
}
|