@norskvideo/norsk-api 1.0.345 → 1.0.347
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 +97 -62
- package/lib/manager_grpc_pb.js +103 -58
- package/lib/manager_pb.d.ts +749 -482
- package/lib/manager_pb.js +829 -514
- package/lib/manager_pb.js.map +1 -1
- package/lib/manager_pb.ts +1170 -733
- package/lib/media_grpc_pb.d.ts +66 -0
- package/lib/media_grpc_pb.js +124 -3
- package/lib/media_pb.d.ts +491 -632
- package/lib/media_pb.js +478 -709
- package/lib/media_pb.js.map +1 -1
- package/lib/media_pb.ts +696 -851
- package/lib/shared/common_pb.d.ts +872 -1
- package/lib/shared/common_pb.js +1338 -69
- package/lib/shared/common_pb.js.map +1 -1
- package/lib/shared/common_pb.ts +1698 -57
- package/lib/shared/error_grpc_pb.js +1 -0
- package/lib/shared/error_pb.d.ts +413 -0
- package/lib/shared/error_pb.js +442 -0
- package/lib/shared/error_pb.js.map +1 -0
- package/lib/shared/error_pb.ts +546 -0
- package/lib/worker_grpc_pb.d.ts +3 -2
- package/lib/worker_grpc_pb.js +12 -11
- package/lib/worker_pb.d.ts +194 -102
- package/lib/worker_pb.js +221 -111
- package/lib/worker_pb.js.map +1 -1
- package/lib/worker_pb.ts +315 -152
- package/package.json +1 -1
|
@@ -0,0 +1,546 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v0.3.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file shared/error.proto (package norsk.api.error, 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 } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The canonical error codes for gRPC APIs.
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* Sometimes multiple error codes may apply. Services should return
|
|
14
|
+
* the most specific error code that applies. For example, prefer
|
|
15
|
+
* `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
|
|
16
|
+
* Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.
|
|
17
|
+
*
|
|
18
|
+
* @generated from enum norsk.api.error.Code
|
|
19
|
+
*/
|
|
20
|
+
export enum Code {
|
|
21
|
+
/**
|
|
22
|
+
* Not an error; returned on success
|
|
23
|
+
*
|
|
24
|
+
* HTTP Mapping: 200 OK
|
|
25
|
+
*
|
|
26
|
+
* @generated from enum value: OK = 0;
|
|
27
|
+
*/
|
|
28
|
+
OK = 0,
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The operation was cancelled, typically by the caller.
|
|
32
|
+
*
|
|
33
|
+
* HTTP Mapping: 499 Client Closed Request
|
|
34
|
+
*
|
|
35
|
+
* @generated from enum value: CANCELLED = 1;
|
|
36
|
+
*/
|
|
37
|
+
CANCELLED = 1,
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Unknown error. For example, this error may be returned when
|
|
41
|
+
* a `Status` value received from another address space belongs to
|
|
42
|
+
* an error space that is not known in this address space. Also
|
|
43
|
+
* errors raised by APIs that do not return enough error information
|
|
44
|
+
* may be converted to this error.
|
|
45
|
+
*
|
|
46
|
+
* HTTP Mapping: 500 Internal Server Error
|
|
47
|
+
*
|
|
48
|
+
* @generated from enum value: UNKNOWN_ERROR = 2;
|
|
49
|
+
*/
|
|
50
|
+
UNKNOWN_ERROR = 2,
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The client specified an invalid argument. Note that this differs
|
|
54
|
+
* from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
|
|
55
|
+
* that are problematic regardless of the state of the system
|
|
56
|
+
* (e.g., a malformed file name).
|
|
57
|
+
*
|
|
58
|
+
* HTTP Mapping: 400 Bad Request
|
|
59
|
+
*
|
|
60
|
+
* @generated from enum value: INVALID_ARGUMENT = 3;
|
|
61
|
+
*/
|
|
62
|
+
INVALID_ARGUMENT = 3,
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* The deadline expired before the operation could complete. For operations
|
|
66
|
+
* that change the state of the system, this error may be returned
|
|
67
|
+
* even if the operation has completed successfully. For example, a
|
|
68
|
+
* successful response from a server could have been delayed long
|
|
69
|
+
* enough for the deadline to expire.
|
|
70
|
+
*
|
|
71
|
+
* HTTP Mapping: 504 Gateway Timeout
|
|
72
|
+
*
|
|
73
|
+
* @generated from enum value: DEADLINE_EXCEEDED = 4;
|
|
74
|
+
*/
|
|
75
|
+
DEADLINE_EXCEEDED = 4,
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Some requested entity (e.g., file or directory) was not found.
|
|
79
|
+
*
|
|
80
|
+
* Note to server developers: if a request is denied for an entire class
|
|
81
|
+
* of users, such as gradual feature rollout or undocumented whitelist,
|
|
82
|
+
* `NOT_FOUND` may be used. If a request is denied for some users within
|
|
83
|
+
* a class of users, such as user-based access control, `PERMISSION_DENIED`
|
|
84
|
+
* must be used.
|
|
85
|
+
*
|
|
86
|
+
* HTTP Mapping: 404 Not Found
|
|
87
|
+
*
|
|
88
|
+
* @generated from enum value: NOT_FOUND = 5;
|
|
89
|
+
*/
|
|
90
|
+
NOT_FOUND = 5,
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The entity that a client attempted to create (e.g., file or directory)
|
|
94
|
+
* already exists.
|
|
95
|
+
*
|
|
96
|
+
* HTTP Mapping: 409 Conflict
|
|
97
|
+
*
|
|
98
|
+
* @generated from enum value: ALREADY_EXISTS = 6;
|
|
99
|
+
*/
|
|
100
|
+
ALREADY_EXISTS = 6,
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* The caller does not have permission to execute the specified
|
|
104
|
+
* operation. `PERMISSION_DENIED` must not be used for rejections
|
|
105
|
+
* caused by exhausting some resource (use `RESOURCE_EXHAUSTED`
|
|
106
|
+
* instead for those errors). `PERMISSION_DENIED` must not be
|
|
107
|
+
* used if the caller can not be identified (use `UNAUTHENTICATED`
|
|
108
|
+
* instead for those errors). This error code does not imply the
|
|
109
|
+
* request is valid or the requested entity exists or satisfies
|
|
110
|
+
* other pre-conditions.
|
|
111
|
+
*
|
|
112
|
+
* HTTP Mapping: 403 Forbidden
|
|
113
|
+
*
|
|
114
|
+
* @generated from enum value: PERMISSION_DENIED = 7;
|
|
115
|
+
*/
|
|
116
|
+
PERMISSION_DENIED = 7,
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* The request does not have valid authentication credentials for the
|
|
120
|
+
* operation.
|
|
121
|
+
*
|
|
122
|
+
* HTTP Mapping: 401 Unauthorized
|
|
123
|
+
*
|
|
124
|
+
* @generated from enum value: UNAUTHENTICATED = 16;
|
|
125
|
+
*/
|
|
126
|
+
UNAUTHENTICATED = 16,
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Some resource has been exhausted, perhaps a per-user quota, or
|
|
130
|
+
* perhaps the entire file system is out of space.
|
|
131
|
+
*
|
|
132
|
+
* HTTP Mapping: 429 Too Many Requests
|
|
133
|
+
*
|
|
134
|
+
* @generated from enum value: RESOURCE_EXHAUSTED = 8;
|
|
135
|
+
*/
|
|
136
|
+
RESOURCE_EXHAUSTED = 8,
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The operation was rejected because the system is not in a state
|
|
140
|
+
* required for the operation's execution. For example, the directory
|
|
141
|
+
* to be deleted is non-empty, an rmdir operation is applied to
|
|
142
|
+
* a non-directory, etc.
|
|
143
|
+
*
|
|
144
|
+
* Service implementors can use the following guidelines to decide
|
|
145
|
+
* between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
|
|
146
|
+
* (a) Use `UNAVAILABLE` if the client can retry just the failing call.
|
|
147
|
+
* (b) Use `ABORTED` if the client should retry at a higher level
|
|
148
|
+
* (e.g., when a client-specified test-and-set fails, indicating the
|
|
149
|
+
* client should restart a read-modify-write sequence).
|
|
150
|
+
* (c) Use `FAILED_PRECONDITION` if the client should not retry until
|
|
151
|
+
* the system state has been explicitly fixed. E.g., if an "rmdir"
|
|
152
|
+
* fails because the directory is non-empty, `FAILED_PRECONDITION`
|
|
153
|
+
* should be returned since the client should not retry unless
|
|
154
|
+
* the files are deleted from the directory.
|
|
155
|
+
*
|
|
156
|
+
* HTTP Mapping: 400 Bad Request
|
|
157
|
+
*
|
|
158
|
+
* @generated from enum value: FAILED_PRECONDITION = 9;
|
|
159
|
+
*/
|
|
160
|
+
FAILED_PRECONDITION = 9,
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The operation was aborted, typically due to a concurrency issue such as
|
|
164
|
+
* a sequencer check failure or transaction abort.
|
|
165
|
+
*
|
|
166
|
+
* See the guidelines above for deciding between `FAILED_PRECONDITION`,
|
|
167
|
+
* `ABORTED`, and `UNAVAILABLE`.
|
|
168
|
+
*
|
|
169
|
+
* HTTP Mapping: 409 Conflict
|
|
170
|
+
*
|
|
171
|
+
* @generated from enum value: ABORTED = 10;
|
|
172
|
+
*/
|
|
173
|
+
ABORTED = 10,
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The operation was attempted past the valid range. E.g., seeking or
|
|
177
|
+
* reading past end-of-file.
|
|
178
|
+
*
|
|
179
|
+
* Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
|
|
180
|
+
* be fixed if the system state changes. For example, a 32-bit file
|
|
181
|
+
* system will generate `INVALID_ARGUMENT` if asked to read at an
|
|
182
|
+
* offset that is not in the range [0,2^32-1], but it will generate
|
|
183
|
+
* `OUT_OF_RANGE` if asked to read from an offset past the current
|
|
184
|
+
* file size.
|
|
185
|
+
*
|
|
186
|
+
* There is a fair bit of overlap between `FAILED_PRECONDITION` and
|
|
187
|
+
* `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
|
|
188
|
+
* error) when it applies so that callers who are iterating through
|
|
189
|
+
* a space can easily look for an `OUT_OF_RANGE` error to detect when
|
|
190
|
+
* they are done.
|
|
191
|
+
*
|
|
192
|
+
* HTTP Mapping: 400 Bad Request
|
|
193
|
+
*
|
|
194
|
+
* @generated from enum value: OUT_OF_RANGE = 11;
|
|
195
|
+
*/
|
|
196
|
+
OUT_OF_RANGE = 11,
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* The operation is not implemented or is not supported/enabled in this
|
|
200
|
+
* service.
|
|
201
|
+
*
|
|
202
|
+
* HTTP Mapping: 501 Not Implemented
|
|
203
|
+
*
|
|
204
|
+
* @generated from enum value: UNIMPLEMENTED = 12;
|
|
205
|
+
*/
|
|
206
|
+
UNIMPLEMENTED = 12,
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Internal errors. This means that some invariants expected by the
|
|
210
|
+
* underlying system have been broken. This error code is reserved
|
|
211
|
+
* for serious errors.
|
|
212
|
+
*
|
|
213
|
+
* HTTP Mapping: 500 Internal Server Error
|
|
214
|
+
*
|
|
215
|
+
* @generated from enum value: INTERNAL = 13;
|
|
216
|
+
*/
|
|
217
|
+
INTERNAL = 13,
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* The service is currently unavailable. This is most likely a
|
|
221
|
+
* transient condition, which can be corrected by retrying with
|
|
222
|
+
* a backoff. Note that it is not always safe to retry
|
|
223
|
+
* non-idempotent operations.
|
|
224
|
+
*
|
|
225
|
+
* See the guidelines above for deciding between `FAILED_PRECONDITION`,
|
|
226
|
+
* `ABORTED`, and `UNAVAILABLE`.
|
|
227
|
+
*
|
|
228
|
+
* HTTP Mapping: 503 Service Unavailable
|
|
229
|
+
*
|
|
230
|
+
* @generated from enum value: UNAVAILABLE = 14;
|
|
231
|
+
*/
|
|
232
|
+
UNAVAILABLE = 14,
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Unrecoverable data loss or corruption.
|
|
236
|
+
*
|
|
237
|
+
* HTTP Mapping: 500 Internal Server Error
|
|
238
|
+
*
|
|
239
|
+
* @generated from enum value: DATA_LOSS = 15;
|
|
240
|
+
*/
|
|
241
|
+
DATA_LOSS = 15,
|
|
242
|
+
}
|
|
243
|
+
// Retrieve enum metadata with: proto3.getEnumType(Code)
|
|
244
|
+
proto3.util.setEnumType(Code, "norsk.api.error.Code", [
|
|
245
|
+
{ no: 0, name: "OK" },
|
|
246
|
+
{ no: 1, name: "CANCELLED" },
|
|
247
|
+
{ no: 2, name: "UNKNOWN_ERROR" },
|
|
248
|
+
{ no: 3, name: "INVALID_ARGUMENT" },
|
|
249
|
+
{ no: 4, name: "DEADLINE_EXCEEDED" },
|
|
250
|
+
{ no: 5, name: "NOT_FOUND" },
|
|
251
|
+
{ no: 6, name: "ALREADY_EXISTS" },
|
|
252
|
+
{ no: 7, name: "PERMISSION_DENIED" },
|
|
253
|
+
{ no: 16, name: "UNAUTHENTICATED" },
|
|
254
|
+
{ no: 8, name: "RESOURCE_EXHAUSTED" },
|
|
255
|
+
{ no: 9, name: "FAILED_PRECONDITION" },
|
|
256
|
+
{ no: 10, name: "ABORTED" },
|
|
257
|
+
{ no: 11, name: "OUT_OF_RANGE" },
|
|
258
|
+
{ no: 12, name: "UNIMPLEMENTED" },
|
|
259
|
+
{ no: 13, name: "INTERNAL" },
|
|
260
|
+
{ no: 14, name: "UNAVAILABLE" },
|
|
261
|
+
{ no: 15, name: "DATA_LOSS" },
|
|
262
|
+
]);
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
266
|
+
* `Value` type union.
|
|
267
|
+
*
|
|
268
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
269
|
+
*
|
|
270
|
+
* @generated from enum norsk.api.error.NullValue
|
|
271
|
+
*/
|
|
272
|
+
export enum NullValue {
|
|
273
|
+
/**
|
|
274
|
+
* Null value.
|
|
275
|
+
*
|
|
276
|
+
* @generated from enum value: NULL_VALUE = 0;
|
|
277
|
+
*/
|
|
278
|
+
NULL_VALUE = 0,
|
|
279
|
+
}
|
|
280
|
+
// Retrieve enum metadata with: proto3.getEnumType(NullValue)
|
|
281
|
+
proto3.util.setEnumType(NullValue, "norsk.api.error.NullValue", [
|
|
282
|
+
{ no: 0, name: "NULL_VALUE" },
|
|
283
|
+
]);
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* `Struct` represents a structured data value, consisting of fields
|
|
287
|
+
* which map to dynamically typed values. In some languages, `Struct`
|
|
288
|
+
* might be supported by a native representation. For example, in
|
|
289
|
+
* scripting languages like JS a struct is represented as an
|
|
290
|
+
* object. The details of that representation are described together
|
|
291
|
+
* with the proto support for the language.
|
|
292
|
+
*
|
|
293
|
+
* The JSON representation for `Struct` is JSON object.
|
|
294
|
+
*
|
|
295
|
+
* @generated from message norsk.api.error.Struct
|
|
296
|
+
*/
|
|
297
|
+
export class Struct extends Message<Struct> {
|
|
298
|
+
/**
|
|
299
|
+
* Unordered map of dynamically typed values.
|
|
300
|
+
*
|
|
301
|
+
* @generated from field: map<string, norsk.api.error.Value> fields = 1;
|
|
302
|
+
*/
|
|
303
|
+
fields: { [key: string]: Value } = {};
|
|
304
|
+
|
|
305
|
+
constructor(data?: PartialMessage<Struct>) {
|
|
306
|
+
super();
|
|
307
|
+
proto3.util.initPartial(data, this);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
static readonly runtime = proto3;
|
|
311
|
+
static readonly typeName = "norsk.api.error.Struct";
|
|
312
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
313
|
+
{ no: 1, name: "fields", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Value} },
|
|
314
|
+
]);
|
|
315
|
+
|
|
316
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Struct {
|
|
317
|
+
return new Struct().fromBinary(bytes, options);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Struct {
|
|
321
|
+
return new Struct().fromJson(jsonValue, options);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Struct {
|
|
325
|
+
return new Struct().fromJsonString(jsonString, options);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
static equals(a: Struct | PlainMessage<Struct> | undefined, b: Struct | PlainMessage<Struct> | undefined): boolean {
|
|
329
|
+
return proto3.util.equals(Struct, a, b);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* `Value` represents a dynamically typed value which can be either
|
|
335
|
+
* null, a number, a string, a boolean, a recursive struct value, or a
|
|
336
|
+
* list of values. A producer of value is expected to set one of that
|
|
337
|
+
* variants, absence of any variant indicates an error.
|
|
338
|
+
*
|
|
339
|
+
* The JSON representation for `Value` is JSON value.
|
|
340
|
+
*
|
|
341
|
+
* @generated from message norsk.api.error.Value
|
|
342
|
+
*/
|
|
343
|
+
export class Value extends Message<Value> {
|
|
344
|
+
/**
|
|
345
|
+
* The kind of value.
|
|
346
|
+
*
|
|
347
|
+
* @generated from oneof norsk.api.error.Value.kind
|
|
348
|
+
*/
|
|
349
|
+
kind: {
|
|
350
|
+
/**
|
|
351
|
+
* Represents a null value.
|
|
352
|
+
*
|
|
353
|
+
* @generated from field: norsk.api.error.NullValue null_value = 1;
|
|
354
|
+
*/
|
|
355
|
+
value: NullValue;
|
|
356
|
+
case: "nullValue";
|
|
357
|
+
} | {
|
|
358
|
+
/**
|
|
359
|
+
* Represents a double value.
|
|
360
|
+
*
|
|
361
|
+
* @generated from field: double number_value = 2;
|
|
362
|
+
*/
|
|
363
|
+
value: number;
|
|
364
|
+
case: "numberValue";
|
|
365
|
+
} | {
|
|
366
|
+
/**
|
|
367
|
+
* Represents a string value.
|
|
368
|
+
*
|
|
369
|
+
* @generated from field: string string_value = 3;
|
|
370
|
+
*/
|
|
371
|
+
value: string;
|
|
372
|
+
case: "stringValue";
|
|
373
|
+
} | {
|
|
374
|
+
/**
|
|
375
|
+
* Represents a boolean value.
|
|
376
|
+
*
|
|
377
|
+
* @generated from field: bool bool_value = 4;
|
|
378
|
+
*/
|
|
379
|
+
value: boolean;
|
|
380
|
+
case: "boolValue";
|
|
381
|
+
} | {
|
|
382
|
+
/**
|
|
383
|
+
* Represents a structured value.
|
|
384
|
+
*
|
|
385
|
+
* @generated from field: norsk.api.error.Struct struct_value = 5;
|
|
386
|
+
*/
|
|
387
|
+
value: Struct;
|
|
388
|
+
case: "structValue";
|
|
389
|
+
} | {
|
|
390
|
+
/**
|
|
391
|
+
* Represents a repeated `Value`.
|
|
392
|
+
*
|
|
393
|
+
* @generated from field: norsk.api.error.ListValue list_value = 6;
|
|
394
|
+
*/
|
|
395
|
+
value: ListValue;
|
|
396
|
+
case: "listValue";
|
|
397
|
+
} | {
|
|
398
|
+
/**
|
|
399
|
+
* Represents a Code value
|
|
400
|
+
*
|
|
401
|
+
* @generated from field: norsk.api.error.Code code_value = 7;
|
|
402
|
+
*/
|
|
403
|
+
value: Code;
|
|
404
|
+
case: "codeValue";
|
|
405
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
406
|
+
|
|
407
|
+
constructor(data?: PartialMessage<Value>) {
|
|
408
|
+
super();
|
|
409
|
+
proto3.util.initPartial(data, this);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
static readonly runtime = proto3;
|
|
413
|
+
static readonly typeName = "norsk.api.error.Value";
|
|
414
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
415
|
+
{ no: 1, name: "null_value", kind: "enum", T: proto3.getEnumType(NullValue), oneof: "kind" },
|
|
416
|
+
{ no: 2, name: "number_value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "kind" },
|
|
417
|
+
{ no: 3, name: "string_value", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "kind" },
|
|
418
|
+
{ no: 4, name: "bool_value", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "kind" },
|
|
419
|
+
{ no: 5, name: "struct_value", kind: "message", T: Struct, oneof: "kind" },
|
|
420
|
+
{ no: 6, name: "list_value", kind: "message", T: ListValue, oneof: "kind" },
|
|
421
|
+
{ no: 7, name: "code_value", kind: "enum", T: proto3.getEnumType(Code), oneof: "kind" },
|
|
422
|
+
]);
|
|
423
|
+
|
|
424
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Value {
|
|
425
|
+
return new Value().fromBinary(bytes, options);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Value {
|
|
429
|
+
return new Value().fromJson(jsonValue, options);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Value {
|
|
433
|
+
return new Value().fromJsonString(jsonString, options);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
static equals(a: Value | PlainMessage<Value> | undefined, b: Value | PlainMessage<Value> | undefined): boolean {
|
|
437
|
+
return proto3.util.equals(Value, a, b);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* `ListValue` is a wrapper around a repeated field of values.
|
|
443
|
+
*
|
|
444
|
+
* The JSON representation for `ListValue` is JSON array.
|
|
445
|
+
*
|
|
446
|
+
* @generated from message norsk.api.error.ListValue
|
|
447
|
+
*/
|
|
448
|
+
export class ListValue extends Message<ListValue> {
|
|
449
|
+
/**
|
|
450
|
+
* Repeated field of dynamically typed values.
|
|
451
|
+
*
|
|
452
|
+
* @generated from field: repeated norsk.api.error.Value values = 1;
|
|
453
|
+
*/
|
|
454
|
+
values: Value[] = [];
|
|
455
|
+
|
|
456
|
+
constructor(data?: PartialMessage<ListValue>) {
|
|
457
|
+
super();
|
|
458
|
+
proto3.util.initPartial(data, this);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
static readonly runtime = proto3;
|
|
462
|
+
static readonly typeName = "norsk.api.error.ListValue";
|
|
463
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
464
|
+
{ no: 1, name: "values", kind: "message", T: Value, repeated: true },
|
|
465
|
+
]);
|
|
466
|
+
|
|
467
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListValue {
|
|
468
|
+
return new ListValue().fromBinary(bytes, options);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListValue {
|
|
472
|
+
return new ListValue().fromJson(jsonValue, options);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListValue {
|
|
476
|
+
return new ListValue().fromJsonString(jsonString, options);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
static equals(a: ListValue | PlainMessage<ListValue> | undefined, b: ListValue | PlainMessage<ListValue> | undefined): boolean {
|
|
480
|
+
return proto3.util.equals(ListValue, a, b);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* ///////////////////////////////////////////////////////////////////////////
|
|
486
|
+
*
|
|
487
|
+
*
|
|
488
|
+
* @generated from message norsk.api.error.Status
|
|
489
|
+
*/
|
|
490
|
+
export class Status extends Message<Status> {
|
|
491
|
+
/**
|
|
492
|
+
* The status code, which should be an enum value of
|
|
493
|
+
* [google.rpc.Code][google.rpc.Code].
|
|
494
|
+
*
|
|
495
|
+
* @generated from field: norsk.api.error.Code code = 1;
|
|
496
|
+
*/
|
|
497
|
+
code = Code.OK;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* A developer-facing error message, which should be in English. Any
|
|
501
|
+
* user-facing error message should be localized and sent in the
|
|
502
|
+
* [google.rpc.Status.details][google.rpc.Status.details] field, or localized
|
|
503
|
+
* by the client.
|
|
504
|
+
*
|
|
505
|
+
* @generated from field: string message = 2;
|
|
506
|
+
*/
|
|
507
|
+
message = "";
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* A list of messages that carry the error details. There is a common set of
|
|
511
|
+
* message types for APIs to use.
|
|
512
|
+
*
|
|
513
|
+
* @generated from field: norsk.api.error.Struct details = 3;
|
|
514
|
+
*/
|
|
515
|
+
details?: Struct;
|
|
516
|
+
|
|
517
|
+
constructor(data?: PartialMessage<Status>) {
|
|
518
|
+
super();
|
|
519
|
+
proto3.util.initPartial(data, this);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
static readonly runtime = proto3;
|
|
523
|
+
static readonly typeName = "norsk.api.error.Status";
|
|
524
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
525
|
+
{ no: 1, name: "code", kind: "enum", T: proto3.getEnumType(Code) },
|
|
526
|
+
{ no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
527
|
+
{ no: 3, name: "details", kind: "message", T: Struct },
|
|
528
|
+
]);
|
|
529
|
+
|
|
530
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Status {
|
|
531
|
+
return new Status().fromBinary(bytes, options);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Status {
|
|
535
|
+
return new Status().fromJson(jsonValue, options);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Status {
|
|
539
|
+
return new Status().fromJsonString(jsonString, options);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
static equals(a: Status | PlainMessage<Status> | undefined, b: Status | PlainMessage<Status> | undefined): boolean {
|
|
543
|
+
return proto3.util.equals(Status, a, b);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
|
package/lib/worker_grpc_pb.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// package: norsk.api.
|
|
1
|
+
// package: norsk.api.worker
|
|
2
2
|
// file: worker.proto
|
|
3
3
|
|
|
4
4
|
/* tslint:disable */
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as grpc from "@grpc/grpc-js";
|
|
8
8
|
import * as worker_pb from "./worker_pb";
|
|
9
|
+
import * as shared_common_pb from "./shared/common_pb";
|
|
9
10
|
import * as google_protobuf_timestamp_pb from "@bufbuild/protobuf";
|
|
10
11
|
import * as google_protobuf_empty_pb from "@bufbuild/protobuf";
|
|
11
12
|
|
|
@@ -14,7 +15,7 @@ interface IWorkerService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
interface IWorkerService_INodeControllerStream extends grpc.MethodDefinition<worker_pb.NodeControllerMessage, worker_pb.WorkerMessage> {
|
|
17
|
-
path: "/norsk.api.
|
|
18
|
+
path: "/norsk.api.worker.Worker/NodeControllerStream";
|
|
18
19
|
requestStream: true;
|
|
19
20
|
responseStream: true;
|
|
20
21
|
requestSerialize: grpc.serialize<worker_pb.NodeControllerMessage>;
|
package/lib/worker_grpc_pb.js
CHANGED
|
@@ -3,43 +3,44 @@
|
|
|
3
3
|
'use strict';
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var worker_pb = require('./worker_pb.js');
|
|
6
|
+
var shared_common_pb = require('./shared/common_pb.js');
|
|
6
7
|
var google_protobuf_timestamp_pb = require('@bufbuild/protobuf');
|
|
7
8
|
var google_protobuf_empty_pb = require('@bufbuild/protobuf');
|
|
8
9
|
|
|
9
|
-
function
|
|
10
|
+
function serialize_norsk_api_worker_NodeControllerMessage(arg) {
|
|
10
11
|
if (!(arg instanceof worker_pb.NodeControllerMessage)) {
|
|
11
|
-
throw new Error('Expected argument of type norsk.api.
|
|
12
|
+
throw new Error('Expected argument of type norsk.api.worker.NodeControllerMessage');
|
|
12
13
|
}
|
|
13
14
|
return Buffer.from(arg.toBinary());
|
|
14
15
|
}
|
|
15
16
|
|
|
16
|
-
function
|
|
17
|
+
function deserialize_norsk_api_worker_NodeControllerMessage(buffer_arg) {
|
|
17
18
|
return worker_pb.NodeControllerMessage.fromBinary(new Uint8Array(buffer_arg));
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
function
|
|
21
|
+
function serialize_norsk_api_worker_WorkerMessage(arg) {
|
|
21
22
|
if (!(arg instanceof worker_pb.WorkerMessage)) {
|
|
22
|
-
throw new Error('Expected argument of type norsk.api.
|
|
23
|
+
throw new Error('Expected argument of type norsk.api.worker.WorkerMessage');
|
|
23
24
|
}
|
|
24
25
|
return Buffer.from(arg.toBinary());
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
function
|
|
28
|
+
function deserialize_norsk_api_worker_WorkerMessage(buffer_arg) {
|
|
28
29
|
return worker_pb.WorkerMessage.fromBinary(new Uint8Array(buffer_arg));
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
|
|
32
33
|
var WorkerService = exports.WorkerService = {
|
|
33
34
|
nodeControllerStream: {
|
|
34
|
-
path: '/norsk.api.
|
|
35
|
+
path: '/norsk.api.worker.Worker/NodeControllerStream',
|
|
35
36
|
requestStream: true,
|
|
36
37
|
responseStream: true,
|
|
37
38
|
requestType: worker_pb.NodeControllerMessage,
|
|
38
39
|
responseType: worker_pb.WorkerMessage,
|
|
39
|
-
requestSerialize:
|
|
40
|
-
requestDeserialize:
|
|
41
|
-
responseSerialize:
|
|
42
|
-
responseDeserialize:
|
|
40
|
+
requestSerialize: serialize_norsk_api_worker_NodeControllerMessage,
|
|
41
|
+
requestDeserialize: deserialize_norsk_api_worker_NodeControllerMessage,
|
|
42
|
+
responseSerialize: serialize_norsk_api_worker_WorkerMessage,
|
|
43
|
+
responseDeserialize: deserialize_norsk_api_worker_WorkerMessage,
|
|
43
44
|
},
|
|
44
45
|
};
|
|
45
46
|
|