@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.
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,413 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * The canonical error codes for gRPC APIs.
5
+ *
6
+ *
7
+ * Sometimes multiple error codes may apply. Services should return
8
+ * the most specific error code that applies. For example, prefer
9
+ * `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
10
+ * Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.
11
+ *
12
+ * @generated from enum norsk.api.error.Code
13
+ */
14
+ export declare enum Code {
15
+ /**
16
+ * Not an error; returned on success
17
+ *
18
+ * HTTP Mapping: 200 OK
19
+ *
20
+ * @generated from enum value: OK = 0;
21
+ */
22
+ OK = 0,
23
+ /**
24
+ * The operation was cancelled, typically by the caller.
25
+ *
26
+ * HTTP Mapping: 499 Client Closed Request
27
+ *
28
+ * @generated from enum value: CANCELLED = 1;
29
+ */
30
+ CANCELLED = 1,
31
+ /**
32
+ * Unknown error. For example, this error may be returned when
33
+ * a `Status` value received from another address space belongs to
34
+ * an error space that is not known in this address space. Also
35
+ * errors raised by APIs that do not return enough error information
36
+ * may be converted to this error.
37
+ *
38
+ * HTTP Mapping: 500 Internal Server Error
39
+ *
40
+ * @generated from enum value: UNKNOWN_ERROR = 2;
41
+ */
42
+ UNKNOWN_ERROR = 2,
43
+ /**
44
+ * The client specified an invalid argument. Note that this differs
45
+ * from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
46
+ * that are problematic regardless of the state of the system
47
+ * (e.g., a malformed file name).
48
+ *
49
+ * HTTP Mapping: 400 Bad Request
50
+ *
51
+ * @generated from enum value: INVALID_ARGUMENT = 3;
52
+ */
53
+ INVALID_ARGUMENT = 3,
54
+ /**
55
+ * The deadline expired before the operation could complete. For operations
56
+ * that change the state of the system, this error may be returned
57
+ * even if the operation has completed successfully. For example, a
58
+ * successful response from a server could have been delayed long
59
+ * enough for the deadline to expire.
60
+ *
61
+ * HTTP Mapping: 504 Gateway Timeout
62
+ *
63
+ * @generated from enum value: DEADLINE_EXCEEDED = 4;
64
+ */
65
+ DEADLINE_EXCEEDED = 4,
66
+ /**
67
+ * Some requested entity (e.g., file or directory) was not found.
68
+ *
69
+ * Note to server developers: if a request is denied for an entire class
70
+ * of users, such as gradual feature rollout or undocumented whitelist,
71
+ * `NOT_FOUND` may be used. If a request is denied for some users within
72
+ * a class of users, such as user-based access control, `PERMISSION_DENIED`
73
+ * must be used.
74
+ *
75
+ * HTTP Mapping: 404 Not Found
76
+ *
77
+ * @generated from enum value: NOT_FOUND = 5;
78
+ */
79
+ NOT_FOUND = 5,
80
+ /**
81
+ * The entity that a client attempted to create (e.g., file or directory)
82
+ * already exists.
83
+ *
84
+ * HTTP Mapping: 409 Conflict
85
+ *
86
+ * @generated from enum value: ALREADY_EXISTS = 6;
87
+ */
88
+ ALREADY_EXISTS = 6,
89
+ /**
90
+ * The caller does not have permission to execute the specified
91
+ * operation. `PERMISSION_DENIED` must not be used for rejections
92
+ * caused by exhausting some resource (use `RESOURCE_EXHAUSTED`
93
+ * instead for those errors). `PERMISSION_DENIED` must not be
94
+ * used if the caller can not be identified (use `UNAUTHENTICATED`
95
+ * instead for those errors). This error code does not imply the
96
+ * request is valid or the requested entity exists or satisfies
97
+ * other pre-conditions.
98
+ *
99
+ * HTTP Mapping: 403 Forbidden
100
+ *
101
+ * @generated from enum value: PERMISSION_DENIED = 7;
102
+ */
103
+ PERMISSION_DENIED = 7,
104
+ /**
105
+ * The request does not have valid authentication credentials for the
106
+ * operation.
107
+ *
108
+ * HTTP Mapping: 401 Unauthorized
109
+ *
110
+ * @generated from enum value: UNAUTHENTICATED = 16;
111
+ */
112
+ UNAUTHENTICATED = 16,
113
+ /**
114
+ * Some resource has been exhausted, perhaps a per-user quota, or
115
+ * perhaps the entire file system is out of space.
116
+ *
117
+ * HTTP Mapping: 429 Too Many Requests
118
+ *
119
+ * @generated from enum value: RESOURCE_EXHAUSTED = 8;
120
+ */
121
+ RESOURCE_EXHAUSTED = 8,
122
+ /**
123
+ * The operation was rejected because the system is not in a state
124
+ * required for the operation's execution. For example, the directory
125
+ * to be deleted is non-empty, an rmdir operation is applied to
126
+ * a non-directory, etc.
127
+ *
128
+ * Service implementors can use the following guidelines to decide
129
+ * between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
130
+ * (a) Use `UNAVAILABLE` if the client can retry just the failing call.
131
+ * (b) Use `ABORTED` if the client should retry at a higher level
132
+ * (e.g., when a client-specified test-and-set fails, indicating the
133
+ * client should restart a read-modify-write sequence).
134
+ * (c) Use `FAILED_PRECONDITION` if the client should not retry until
135
+ * the system state has been explicitly fixed. E.g., if an "rmdir"
136
+ * fails because the directory is non-empty, `FAILED_PRECONDITION`
137
+ * should be returned since the client should not retry unless
138
+ * the files are deleted from the directory.
139
+ *
140
+ * HTTP Mapping: 400 Bad Request
141
+ *
142
+ * @generated from enum value: FAILED_PRECONDITION = 9;
143
+ */
144
+ FAILED_PRECONDITION = 9,
145
+ /**
146
+ * The operation was aborted, typically due to a concurrency issue such as
147
+ * a sequencer check failure or transaction abort.
148
+ *
149
+ * See the guidelines above for deciding between `FAILED_PRECONDITION`,
150
+ * `ABORTED`, and `UNAVAILABLE`.
151
+ *
152
+ * HTTP Mapping: 409 Conflict
153
+ *
154
+ * @generated from enum value: ABORTED = 10;
155
+ */
156
+ ABORTED = 10,
157
+ /**
158
+ * The operation was attempted past the valid range. E.g., seeking or
159
+ * reading past end-of-file.
160
+ *
161
+ * Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
162
+ * be fixed if the system state changes. For example, a 32-bit file
163
+ * system will generate `INVALID_ARGUMENT` if asked to read at an
164
+ * offset that is not in the range [0,2^32-1], but it will generate
165
+ * `OUT_OF_RANGE` if asked to read from an offset past the current
166
+ * file size.
167
+ *
168
+ * There is a fair bit of overlap between `FAILED_PRECONDITION` and
169
+ * `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
170
+ * error) when it applies so that callers who are iterating through
171
+ * a space can easily look for an `OUT_OF_RANGE` error to detect when
172
+ * they are done.
173
+ *
174
+ * HTTP Mapping: 400 Bad Request
175
+ *
176
+ * @generated from enum value: OUT_OF_RANGE = 11;
177
+ */
178
+ OUT_OF_RANGE = 11,
179
+ /**
180
+ * The operation is not implemented or is not supported/enabled in this
181
+ * service.
182
+ *
183
+ * HTTP Mapping: 501 Not Implemented
184
+ *
185
+ * @generated from enum value: UNIMPLEMENTED = 12;
186
+ */
187
+ UNIMPLEMENTED = 12,
188
+ /**
189
+ * Internal errors. This means that some invariants expected by the
190
+ * underlying system have been broken. This error code is reserved
191
+ * for serious errors.
192
+ *
193
+ * HTTP Mapping: 500 Internal Server Error
194
+ *
195
+ * @generated from enum value: INTERNAL = 13;
196
+ */
197
+ INTERNAL = 13,
198
+ /**
199
+ * The service is currently unavailable. This is most likely a
200
+ * transient condition, which can be corrected by retrying with
201
+ * a backoff. Note that it is not always safe to retry
202
+ * non-idempotent operations.
203
+ *
204
+ * See the guidelines above for deciding between `FAILED_PRECONDITION`,
205
+ * `ABORTED`, and `UNAVAILABLE`.
206
+ *
207
+ * HTTP Mapping: 503 Service Unavailable
208
+ *
209
+ * @generated from enum value: UNAVAILABLE = 14;
210
+ */
211
+ UNAVAILABLE = 14,
212
+ /**
213
+ * Unrecoverable data loss or corruption.
214
+ *
215
+ * HTTP Mapping: 500 Internal Server Error
216
+ *
217
+ * @generated from enum value: DATA_LOSS = 15;
218
+ */
219
+ DATA_LOSS = 15
220
+ }
221
+ /**
222
+ * `NullValue` is a singleton enumeration to represent the null value for the
223
+ * `Value` type union.
224
+ *
225
+ * The JSON representation for `NullValue` is JSON `null`.
226
+ *
227
+ * @generated from enum norsk.api.error.NullValue
228
+ */
229
+ export declare enum NullValue {
230
+ /**
231
+ * Null value.
232
+ *
233
+ * @generated from enum value: NULL_VALUE = 0;
234
+ */
235
+ NULL_VALUE = 0
236
+ }
237
+ /**
238
+ * `Struct` represents a structured data value, consisting of fields
239
+ * which map to dynamically typed values. In some languages, `Struct`
240
+ * might be supported by a native representation. For example, in
241
+ * scripting languages like JS a struct is represented as an
242
+ * object. The details of that representation are described together
243
+ * with the proto support for the language.
244
+ *
245
+ * The JSON representation for `Struct` is JSON object.
246
+ *
247
+ * @generated from message norsk.api.error.Struct
248
+ */
249
+ export declare class Struct extends Message<Struct> {
250
+ /**
251
+ * Unordered map of dynamically typed values.
252
+ *
253
+ * @generated from field: map<string, norsk.api.error.Value> fields = 1;
254
+ */
255
+ fields: {
256
+ [key: string]: Value;
257
+ };
258
+ constructor(data?: PartialMessage<Struct>);
259
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
260
+ static readonly typeName = "norsk.api.error.Struct";
261
+ static readonly fields: FieldList;
262
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Struct;
263
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Struct;
264
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Struct;
265
+ static equals(a: Struct | PlainMessage<Struct> | undefined, b: Struct | PlainMessage<Struct> | undefined): boolean;
266
+ }
267
+ /**
268
+ * `Value` represents a dynamically typed value which can be either
269
+ * null, a number, a string, a boolean, a recursive struct value, or a
270
+ * list of values. A producer of value is expected to set one of that
271
+ * variants, absence of any variant indicates an error.
272
+ *
273
+ * The JSON representation for `Value` is JSON value.
274
+ *
275
+ * @generated from message norsk.api.error.Value
276
+ */
277
+ export declare class Value extends Message<Value> {
278
+ /**
279
+ * The kind of value.
280
+ *
281
+ * @generated from oneof norsk.api.error.Value.kind
282
+ */
283
+ kind: {
284
+ /**
285
+ * Represents a null value.
286
+ *
287
+ * @generated from field: norsk.api.error.NullValue null_value = 1;
288
+ */
289
+ value: NullValue;
290
+ case: "nullValue";
291
+ } | {
292
+ /**
293
+ * Represents a double value.
294
+ *
295
+ * @generated from field: double number_value = 2;
296
+ */
297
+ value: number;
298
+ case: "numberValue";
299
+ } | {
300
+ /**
301
+ * Represents a string value.
302
+ *
303
+ * @generated from field: string string_value = 3;
304
+ */
305
+ value: string;
306
+ case: "stringValue";
307
+ } | {
308
+ /**
309
+ * Represents a boolean value.
310
+ *
311
+ * @generated from field: bool bool_value = 4;
312
+ */
313
+ value: boolean;
314
+ case: "boolValue";
315
+ } | {
316
+ /**
317
+ * Represents a structured value.
318
+ *
319
+ * @generated from field: norsk.api.error.Struct struct_value = 5;
320
+ */
321
+ value: Struct;
322
+ case: "structValue";
323
+ } | {
324
+ /**
325
+ * Represents a repeated `Value`.
326
+ *
327
+ * @generated from field: norsk.api.error.ListValue list_value = 6;
328
+ */
329
+ value: ListValue;
330
+ case: "listValue";
331
+ } | {
332
+ /**
333
+ * Represents a Code value
334
+ *
335
+ * @generated from field: norsk.api.error.Code code_value = 7;
336
+ */
337
+ value: Code;
338
+ case: "codeValue";
339
+ } | {
340
+ case: undefined;
341
+ value?: undefined;
342
+ };
343
+ constructor(data?: PartialMessage<Value>);
344
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
345
+ static readonly typeName = "norsk.api.error.Value";
346
+ static readonly fields: FieldList;
347
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Value;
348
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Value;
349
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Value;
350
+ static equals(a: Value | PlainMessage<Value> | undefined, b: Value | PlainMessage<Value> | undefined): boolean;
351
+ }
352
+ /**
353
+ * `ListValue` is a wrapper around a repeated field of values.
354
+ *
355
+ * The JSON representation for `ListValue` is JSON array.
356
+ *
357
+ * @generated from message norsk.api.error.ListValue
358
+ */
359
+ export declare class ListValue extends Message<ListValue> {
360
+ /**
361
+ * Repeated field of dynamically typed values.
362
+ *
363
+ * @generated from field: repeated norsk.api.error.Value values = 1;
364
+ */
365
+ values: Value[];
366
+ constructor(data?: PartialMessage<ListValue>);
367
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
368
+ static readonly typeName = "norsk.api.error.ListValue";
369
+ static readonly fields: FieldList;
370
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListValue;
371
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListValue;
372
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListValue;
373
+ static equals(a: ListValue | PlainMessage<ListValue> | undefined, b: ListValue | PlainMessage<ListValue> | undefined): boolean;
374
+ }
375
+ /**
376
+ * ///////////////////////////////////////////////////////////////////////////
377
+ *
378
+ *
379
+ * @generated from message norsk.api.error.Status
380
+ */
381
+ export declare class Status extends Message<Status> {
382
+ /**
383
+ * The status code, which should be an enum value of
384
+ * [google.rpc.Code][google.rpc.Code].
385
+ *
386
+ * @generated from field: norsk.api.error.Code code = 1;
387
+ */
388
+ code: Code;
389
+ /**
390
+ * A developer-facing error message, which should be in English. Any
391
+ * user-facing error message should be localized and sent in the
392
+ * [google.rpc.Status.details][google.rpc.Status.details] field, or localized
393
+ * by the client.
394
+ *
395
+ * @generated from field: string message = 2;
396
+ */
397
+ message: string;
398
+ /**
399
+ * A list of messages that carry the error details. There is a common set of
400
+ * message types for APIs to use.
401
+ *
402
+ * @generated from field: norsk.api.error.Struct details = 3;
403
+ */
404
+ details?: Struct;
405
+ constructor(data?: PartialMessage<Status>);
406
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
407
+ static readonly typeName = "norsk.api.error.Status";
408
+ static readonly fields: FieldList;
409
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Status;
410
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Status;
411
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Status;
412
+ static equals(a: Status | PlainMessage<Status> | undefined, b: Status | PlainMessage<Status> | undefined): boolean;
413
+ }