@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
package/lib/worker_pb.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, Timestamp } from "@bufbuild/protobuf";
|
|
3
|
+
import { ActiveJobKey, JobId, JobInfoMessage, NodeMetadata, OptionalString, ResolvedPortMappings, Service, ServiceParameters } from "./shared/common_pb.js";
|
|
3
4
|
/**
|
|
4
5
|
* TODO - see capacity comment in jobs.proto...
|
|
5
6
|
*
|
|
6
|
-
* @generated from message norsk.api.
|
|
7
|
+
* @generated from message norsk.api.worker.Capacity
|
|
7
8
|
*/
|
|
8
9
|
export declare class Capacity extends Message<Capacity> {
|
|
9
10
|
/**
|
|
@@ -27,8 +28,8 @@ export declare class Capacity extends Message<Capacity> {
|
|
|
27
28
|
*/
|
|
28
29
|
networkIOPS: number;
|
|
29
30
|
constructor(data?: PartialMessage<Capacity>);
|
|
30
|
-
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
|
|
31
|
-
static readonly typeName = "norsk.api.
|
|
31
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
|
|
32
|
+
static readonly typeName = "norsk.api.worker.Capacity";
|
|
32
33
|
static readonly fields: FieldList;
|
|
33
34
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Capacity;
|
|
34
35
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Capacity;
|
|
@@ -36,55 +37,16 @@ export declare class Capacity extends Message<Capacity> {
|
|
|
36
37
|
static equals(a: Capacity | PlainMessage<Capacity> | undefined, b: Capacity | PlainMessage<Capacity> | undefined): boolean;
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
39
|
-
* @generated from message norsk.api.
|
|
40
|
-
*/
|
|
41
|
-
export declare class NodeMetadata extends Message<NodeMetadata> {
|
|
42
|
-
/**
|
|
43
|
-
* @generated from field: string id = 1;
|
|
44
|
-
*/
|
|
45
|
-
id: string;
|
|
46
|
-
/**
|
|
47
|
-
* @generated from field: map<string, string> tags = 2;
|
|
48
|
-
*/
|
|
49
|
-
tags: {
|
|
50
|
-
[key: string]: string;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* @generated from field: norsk.api.manager.worker.Capacity capacity = 3;
|
|
54
|
-
*/
|
|
55
|
-
capacity?: Capacity;
|
|
56
|
-
/**
|
|
57
|
-
* @generated from field: google.protobuf.Timestamp created_at = 4;
|
|
58
|
-
*/
|
|
59
|
-
createdAt?: Timestamp;
|
|
60
|
-
/**
|
|
61
|
-
* @generated from field: bool reuse_on_idle = 5;
|
|
62
|
-
*/
|
|
63
|
-
reuseOnIdle: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* @generated from field: string region = 6;
|
|
66
|
-
*/
|
|
67
|
-
region: string;
|
|
68
|
-
constructor(data?: PartialMessage<NodeMetadata>);
|
|
69
|
-
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
|
|
70
|
-
static readonly typeName = "norsk.api.manager.worker.NodeMetadata";
|
|
71
|
-
static readonly fields: FieldList;
|
|
72
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeMetadata;
|
|
73
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeMetadata;
|
|
74
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NodeMetadata;
|
|
75
|
-
static equals(a: NodeMetadata | PlainMessage<NodeMetadata> | undefined, b: NodeMetadata | PlainMessage<NodeMetadata> | undefined): boolean;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* @generated from message norsk.api.manager.worker.Health
|
|
40
|
+
* @generated from message norsk.api.worker.Health
|
|
79
41
|
*/
|
|
80
42
|
export declare class Health extends Message<Health> {
|
|
81
43
|
/**
|
|
82
|
-
* @generated from field: norsk.api.
|
|
44
|
+
* @generated from field: norsk.api.worker.Capacity measured_load = 1;
|
|
83
45
|
*/
|
|
84
46
|
measuredLoad?: Capacity;
|
|
85
47
|
constructor(data?: PartialMessage<Health>);
|
|
86
|
-
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
|
|
87
|
-
static readonly typeName = "norsk.api.
|
|
48
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
|
|
49
|
+
static readonly typeName = "norsk.api.worker.Health";
|
|
88
50
|
static readonly fields: FieldList;
|
|
89
51
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Health;
|
|
90
52
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Health;
|
|
@@ -92,30 +54,13 @@ export declare class Health extends Message<Health> {
|
|
|
92
54
|
static equals(a: Health | PlainMessage<Health> | undefined, b: Health | PlainMessage<Health> | undefined): boolean;
|
|
93
55
|
}
|
|
94
56
|
/**
|
|
95
|
-
* @generated from message norsk.api.
|
|
96
|
-
*/
|
|
97
|
-
export declare class WorkerJobId extends Message<WorkerJobId> {
|
|
98
|
-
/**
|
|
99
|
-
* @generated from field: string id = 1;
|
|
100
|
-
*/
|
|
101
|
-
id: string;
|
|
102
|
-
constructor(data?: PartialMessage<WorkerJobId>);
|
|
103
|
-
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
|
|
104
|
-
static readonly typeName = "norsk.api.manager.worker.WorkerJobId";
|
|
105
|
-
static readonly fields: FieldList;
|
|
106
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerJobId;
|
|
107
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerJobId;
|
|
108
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerJobId;
|
|
109
|
-
static equals(a: WorkerJobId | PlainMessage<WorkerJobId> | undefined, b: WorkerJobId | PlainMessage<WorkerJobId> | undefined): boolean;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* @generated from message norsk.api.manager.worker.WorkerJob
|
|
57
|
+
* @generated from message norsk.api.worker.WorkerJob
|
|
113
58
|
*/
|
|
114
59
|
export declare class WorkerJob extends Message<WorkerJob> {
|
|
115
60
|
/**
|
|
116
|
-
* @generated from field: norsk.api.
|
|
61
|
+
* @generated from field: norsk.api.common.JobId job_id = 1;
|
|
117
62
|
*/
|
|
118
|
-
|
|
63
|
+
jobId?: JobId;
|
|
119
64
|
/**
|
|
120
65
|
* @generated from field: string description = 2;
|
|
121
66
|
*/
|
|
@@ -131,16 +76,28 @@ export declare class WorkerJob extends Message<WorkerJob> {
|
|
|
131
76
|
*/
|
|
132
77
|
startDateTime?: Timestamp;
|
|
133
78
|
/**
|
|
134
|
-
* @generated from field:
|
|
79
|
+
* @generated from field: repeated norsk.api.common.Service services = 5;
|
|
135
80
|
*/
|
|
136
|
-
|
|
81
|
+
services: Service[];
|
|
137
82
|
/**
|
|
138
|
-
* @generated from field: string
|
|
83
|
+
* @generated from field: string role = 6;
|
|
139
84
|
*/
|
|
140
|
-
|
|
85
|
+
role: string;
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: string norsk_media_version = 8;
|
|
88
|
+
*/
|
|
89
|
+
norskMediaVersion: string;
|
|
90
|
+
/**
|
|
91
|
+
* @generated from field: repeated string volumes = 9;
|
|
92
|
+
*/
|
|
93
|
+
volumes: string[];
|
|
94
|
+
/**
|
|
95
|
+
* @generated from field: norsk.api.common.ServiceParameters norsk_service_parameters = 10;
|
|
96
|
+
*/
|
|
97
|
+
norskServiceParameters?: ServiceParameters;
|
|
141
98
|
constructor(data?: PartialMessage<WorkerJob>);
|
|
142
|
-
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
|
|
143
|
-
static readonly typeName = "norsk.api.
|
|
99
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
|
|
100
|
+
static readonly typeName = "norsk.api.worker.WorkerJob";
|
|
144
101
|
static readonly fields: FieldList;
|
|
145
102
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerJob;
|
|
146
103
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerJob;
|
|
@@ -148,20 +105,20 @@ export declare class WorkerJob extends Message<WorkerJob> {
|
|
|
148
105
|
static equals(a: WorkerJob | PlainMessage<WorkerJob> | undefined, b: WorkerJob | PlainMessage<WorkerJob> | undefined): boolean;
|
|
149
106
|
}
|
|
150
107
|
/**
|
|
151
|
-
* @generated from message norsk.api.
|
|
108
|
+
* @generated from message norsk.api.worker.UpdateJobConfig
|
|
152
109
|
*/
|
|
153
110
|
export declare class UpdateJobConfig extends Message<UpdateJobConfig> {
|
|
154
111
|
/**
|
|
155
|
-
* @generated from field: norsk.api.
|
|
112
|
+
* @generated from field: norsk.api.common.JobId job_id = 1;
|
|
156
113
|
*/
|
|
157
|
-
|
|
114
|
+
jobId?: JobId;
|
|
158
115
|
/**
|
|
159
116
|
* @generated from field: string media_configuration = 2;
|
|
160
117
|
*/
|
|
161
118
|
mediaConfiguration: string;
|
|
162
119
|
constructor(data?: PartialMessage<UpdateJobConfig>);
|
|
163
|
-
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
|
|
164
|
-
static readonly typeName = "norsk.api.
|
|
120
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
|
|
121
|
+
static readonly typeName = "norsk.api.worker.UpdateJobConfig";
|
|
165
122
|
static readonly fields: FieldList;
|
|
166
123
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateJobConfig;
|
|
167
124
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateJobConfig;
|
|
@@ -169,24 +126,80 @@ export declare class UpdateJobConfig extends Message<UpdateJobConfig> {
|
|
|
169
126
|
static equals(a: UpdateJobConfig | PlainMessage<UpdateJobConfig> | undefined, b: UpdateJobConfig | PlainMessage<UpdateJobConfig> | undefined): boolean;
|
|
170
127
|
}
|
|
171
128
|
/**
|
|
172
|
-
* @generated from message norsk.api.
|
|
129
|
+
* @generated from message norsk.api.worker.WorkerRunningJob
|
|
130
|
+
*/
|
|
131
|
+
export declare class WorkerRunningJob extends Message<WorkerRunningJob> {
|
|
132
|
+
/**
|
|
133
|
+
* @generated from field: norsk.api.worker.WorkerJob job = 1;
|
|
134
|
+
*/
|
|
135
|
+
job?: WorkerJob;
|
|
136
|
+
/**
|
|
137
|
+
* @generated from field: map<string, norsk.api.common.ResolvedPortMappings> service_port_mappings = 2;
|
|
138
|
+
*/
|
|
139
|
+
servicePortMappings: {
|
|
140
|
+
[key: string]: ResolvedPortMappings;
|
|
141
|
+
};
|
|
142
|
+
constructor(data?: PartialMessage<WorkerRunningJob>);
|
|
143
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
|
|
144
|
+
static readonly typeName = "norsk.api.worker.WorkerRunningJob";
|
|
145
|
+
static readonly fields: FieldList;
|
|
146
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerRunningJob;
|
|
147
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerRunningJob;
|
|
148
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerRunningJob;
|
|
149
|
+
static equals(a: WorkerRunningJob | PlainMessage<WorkerRunningJob> | undefined, b: WorkerRunningJob | PlainMessage<WorkerRunningJob> | undefined): boolean;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* @generated from message norsk.api.worker.WorkerAuthenticationToken
|
|
153
|
+
*/
|
|
154
|
+
export declare class WorkerAuthenticationToken extends Message<WorkerAuthenticationToken> {
|
|
155
|
+
/**
|
|
156
|
+
* @generated from field: string instance_id = 1;
|
|
157
|
+
*/
|
|
158
|
+
instanceId: string;
|
|
159
|
+
/**
|
|
160
|
+
* @generated from field: string cookie = 2;
|
|
161
|
+
*/
|
|
162
|
+
cookie: string;
|
|
163
|
+
/**
|
|
164
|
+
* @generated from field: norsk.api.common.OptionalString signature = 3;
|
|
165
|
+
*/
|
|
166
|
+
signature?: OptionalString;
|
|
167
|
+
constructor(data?: PartialMessage<WorkerAuthenticationToken>);
|
|
168
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
|
|
169
|
+
static readonly typeName = "norsk.api.worker.WorkerAuthenticationToken";
|
|
170
|
+
static readonly fields: FieldList;
|
|
171
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerAuthenticationToken;
|
|
172
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerAuthenticationToken;
|
|
173
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerAuthenticationToken;
|
|
174
|
+
static equals(a: WorkerAuthenticationToken | PlainMessage<WorkerAuthenticationToken> | undefined, b: WorkerAuthenticationToken | PlainMessage<WorkerAuthenticationToken> | undefined): boolean;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @generated from message norsk.api.worker.WorkerHello
|
|
173
178
|
*/
|
|
174
179
|
export declare class WorkerHello extends Message<WorkerHello> {
|
|
175
180
|
/**
|
|
176
|
-
* @generated from field: norsk.api.
|
|
181
|
+
* @generated from field: norsk.api.common.NodeMetadata node_metadata = 1;
|
|
177
182
|
*/
|
|
178
183
|
nodeMetadata?: NodeMetadata;
|
|
179
184
|
/**
|
|
180
|
-
* @generated from field: norsk.api.
|
|
185
|
+
* @generated from field: norsk.api.worker.Capacity measured_load = 2;
|
|
181
186
|
*/
|
|
182
187
|
measuredLoad?: Capacity;
|
|
183
188
|
/**
|
|
184
|
-
* @generated from field:
|
|
189
|
+
* @generated from field: string shared_secret = 3;
|
|
190
|
+
*/
|
|
191
|
+
sharedSecret: string;
|
|
192
|
+
/**
|
|
193
|
+
* @generated from field: repeated norsk.api.worker.WorkerRunningJob running_jobs = 4;
|
|
194
|
+
*/
|
|
195
|
+
runningJobs: WorkerRunningJob[];
|
|
196
|
+
/**
|
|
197
|
+
* @generated from field: norsk.api.worker.WorkerAuthenticationToken token = 5;
|
|
185
198
|
*/
|
|
186
|
-
|
|
199
|
+
token?: WorkerAuthenticationToken;
|
|
187
200
|
constructor(data?: PartialMessage<WorkerHello>);
|
|
188
|
-
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
|
|
189
|
-
static readonly typeName = "norsk.api.
|
|
201
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
|
|
202
|
+
static readonly typeName = "norsk.api.worker.WorkerHello";
|
|
190
203
|
static readonly fields: FieldList;
|
|
191
204
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerHello;
|
|
192
205
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerHello;
|
|
@@ -194,43 +207,116 @@ export declare class WorkerHello extends Message<WorkerHello> {
|
|
|
194
207
|
static equals(a: WorkerHello | PlainMessage<WorkerHello> | undefined, b: WorkerHello | PlainMessage<WorkerHello> | undefined): boolean;
|
|
195
208
|
}
|
|
196
209
|
/**
|
|
197
|
-
* @generated from message norsk.api.
|
|
210
|
+
* @generated from message norsk.api.worker.WorkerJobStarted
|
|
211
|
+
*/
|
|
212
|
+
export declare class WorkerJobStarted extends Message<WorkerJobStarted> {
|
|
213
|
+
/**
|
|
214
|
+
* @generated from field: norsk.api.common.ActiveJobKey job_key = 1;
|
|
215
|
+
*/
|
|
216
|
+
jobKey?: ActiveJobKey;
|
|
217
|
+
/**
|
|
218
|
+
* @generated from field: map<string, norsk.api.common.ResolvedPortMappings> service_port_mappings = 2;
|
|
219
|
+
*/
|
|
220
|
+
servicePortMappings: {
|
|
221
|
+
[key: string]: ResolvedPortMappings;
|
|
222
|
+
};
|
|
223
|
+
constructor(data?: PartialMessage<WorkerJobStarted>);
|
|
224
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
|
|
225
|
+
static readonly typeName = "norsk.api.worker.WorkerJobStarted";
|
|
226
|
+
static readonly fields: FieldList;
|
|
227
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerJobStarted;
|
|
228
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerJobStarted;
|
|
229
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerJobStarted;
|
|
230
|
+
static equals(a: WorkerJobStarted | PlainMessage<WorkerJobStarted> | undefined, b: WorkerJobStarted | PlainMessage<WorkerJobStarted> | undefined): boolean;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* @generated from message norsk.api.worker.WorkerJobFailed
|
|
234
|
+
*/
|
|
235
|
+
export declare class WorkerJobFailed extends Message<WorkerJobFailed> {
|
|
236
|
+
/**
|
|
237
|
+
* @generated from field: norsk.api.common.ActiveJobKey job_key = 1;
|
|
238
|
+
*/
|
|
239
|
+
jobKey?: ActiveJobKey;
|
|
240
|
+
/**
|
|
241
|
+
* @generated from field: string reason = 2;
|
|
242
|
+
*/
|
|
243
|
+
reason: string;
|
|
244
|
+
constructor(data?: PartialMessage<WorkerJobFailed>);
|
|
245
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
|
|
246
|
+
static readonly typeName = "norsk.api.worker.WorkerJobFailed";
|
|
247
|
+
static readonly fields: FieldList;
|
|
248
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerJobFailed;
|
|
249
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerJobFailed;
|
|
250
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerJobFailed;
|
|
251
|
+
static equals(a: WorkerJobFailed | PlainMessage<WorkerJobFailed> | undefined, b: WorkerJobFailed | PlainMessage<WorkerJobFailed> | undefined): boolean;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* @generated from message norsk.api.worker.WorkerHelloResponse
|
|
255
|
+
*/
|
|
256
|
+
export declare class WorkerHelloResponse extends Message<WorkerHelloResponse> {
|
|
257
|
+
/**
|
|
258
|
+
* @generated from field: string license = 1;
|
|
259
|
+
*/
|
|
260
|
+
license: string;
|
|
261
|
+
constructor(data?: PartialMessage<WorkerHelloResponse>);
|
|
262
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
|
|
263
|
+
static readonly typeName = "norsk.api.worker.WorkerHelloResponse";
|
|
264
|
+
static readonly fields: FieldList;
|
|
265
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerHelloResponse;
|
|
266
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerHelloResponse;
|
|
267
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkerHelloResponse;
|
|
268
|
+
static equals(a: WorkerHelloResponse | PlainMessage<WorkerHelloResponse> | undefined, b: WorkerHelloResponse | PlainMessage<WorkerHelloResponse> | undefined): boolean;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* @generated from message norsk.api.worker.WorkerMessage
|
|
198
272
|
*/
|
|
199
273
|
export declare class WorkerMessage extends Message<WorkerMessage> {
|
|
200
274
|
/**
|
|
201
|
-
* @generated from oneof norsk.api.
|
|
275
|
+
* @generated from oneof norsk.api.worker.WorkerMessage.message
|
|
202
276
|
*/
|
|
203
277
|
message: {
|
|
204
278
|
/**
|
|
205
|
-
* @generated from field: norsk.api.
|
|
279
|
+
* @generated from field: norsk.api.worker.WorkerHello hello = 1;
|
|
206
280
|
*/
|
|
207
281
|
value: WorkerHello;
|
|
208
282
|
case: "hello";
|
|
209
283
|
} | {
|
|
210
284
|
/**
|
|
211
|
-
* @generated from field: norsk.api.
|
|
285
|
+
* @generated from field: norsk.api.worker.Health health = 2;
|
|
212
286
|
*/
|
|
213
287
|
value: Health;
|
|
214
288
|
case: "health";
|
|
215
289
|
} | {
|
|
216
290
|
/**
|
|
217
|
-
* @generated from field: norsk.api.
|
|
291
|
+
* @generated from field: norsk.api.worker.WorkerJobStarted job_started = 3;
|
|
218
292
|
*/
|
|
219
|
-
value:
|
|
293
|
+
value: WorkerJobStarted;
|
|
220
294
|
case: "jobStarted";
|
|
221
295
|
} | {
|
|
222
296
|
/**
|
|
223
|
-
* @generated from field: norsk.api.
|
|
297
|
+
* @generated from field: norsk.api.common.ActiveJobKey job_stopped = 4;
|
|
224
298
|
*/
|
|
225
|
-
value:
|
|
299
|
+
value: ActiveJobKey;
|
|
226
300
|
case: "jobStopped";
|
|
301
|
+
} | {
|
|
302
|
+
/**
|
|
303
|
+
* @generated from field: norsk.api.worker.WorkerJobFailed job_failed = 5;
|
|
304
|
+
*/
|
|
305
|
+
value: WorkerJobFailed;
|
|
306
|
+
case: "jobFailed";
|
|
307
|
+
} | {
|
|
308
|
+
/**
|
|
309
|
+
* @generated from field: norsk.api.common.JobInfoMessage job_info = 6;
|
|
310
|
+
*/
|
|
311
|
+
value: JobInfoMessage;
|
|
312
|
+
case: "jobInfo";
|
|
227
313
|
} | {
|
|
228
314
|
case: undefined;
|
|
229
315
|
value?: undefined;
|
|
230
316
|
};
|
|
231
317
|
constructor(data?: PartialMessage<WorkerMessage>);
|
|
232
|
-
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
|
|
233
|
-
static readonly typeName = "norsk.api.
|
|
318
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
|
|
319
|
+
static readonly typeName = "norsk.api.worker.WorkerMessage";
|
|
234
320
|
static readonly fields: FieldList;
|
|
235
321
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkerMessage;
|
|
236
322
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkerMessage;
|
|
@@ -238,27 +324,33 @@ export declare class WorkerMessage extends Message<WorkerMessage> {
|
|
|
238
324
|
static equals(a: WorkerMessage | PlainMessage<WorkerMessage> | undefined, b: WorkerMessage | PlainMessage<WorkerMessage> | undefined): boolean;
|
|
239
325
|
}
|
|
240
326
|
/**
|
|
241
|
-
* @generated from message norsk.api.
|
|
327
|
+
* @generated from message norsk.api.worker.NodeControllerMessage
|
|
242
328
|
*/
|
|
243
329
|
export declare class NodeControllerMessage extends Message<NodeControllerMessage> {
|
|
244
330
|
/**
|
|
245
|
-
* @generated from oneof norsk.api.
|
|
331
|
+
* @generated from oneof norsk.api.worker.NodeControllerMessage.message
|
|
246
332
|
*/
|
|
247
333
|
message: {
|
|
248
334
|
/**
|
|
249
|
-
* @generated from field: norsk.api.
|
|
335
|
+
* @generated from field: norsk.api.worker.WorkerHelloResponse hello_response = 1;
|
|
336
|
+
*/
|
|
337
|
+
value: WorkerHelloResponse;
|
|
338
|
+
case: "helloResponse";
|
|
339
|
+
} | {
|
|
340
|
+
/**
|
|
341
|
+
* @generated from field: norsk.api.worker.WorkerJob provision_job = 2;
|
|
250
342
|
*/
|
|
251
343
|
value: WorkerJob;
|
|
252
344
|
case: "provisionJob";
|
|
253
345
|
} | {
|
|
254
346
|
/**
|
|
255
|
-
* @generated from field: norsk.api.
|
|
347
|
+
* @generated from field: norsk.api.common.ActiveJobKey stop_job = 3;
|
|
256
348
|
*/
|
|
257
|
-
value:
|
|
349
|
+
value: ActiveJobKey;
|
|
258
350
|
case: "stopJob";
|
|
259
351
|
} | {
|
|
260
352
|
/**
|
|
261
|
-
* @generated from field: norsk.api.
|
|
353
|
+
* @generated from field: norsk.api.worker.WorkerJob update_job = 4;
|
|
262
354
|
*/
|
|
263
355
|
value: WorkerJob;
|
|
264
356
|
case: "updateJob";
|
|
@@ -267,8 +359,8 @@ export declare class NodeControllerMessage extends Message<NodeControllerMessage
|
|
|
267
359
|
value?: undefined;
|
|
268
360
|
};
|
|
269
361
|
constructor(data?: PartialMessage<NodeControllerMessage>);
|
|
270
|
-
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
|
|
271
|
-
static readonly typeName = "norsk.api.
|
|
362
|
+
static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
|
|
363
|
+
static readonly typeName = "norsk.api.worker.NodeControllerMessage";
|
|
272
364
|
static readonly fields: FieldList;
|
|
273
365
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NodeControllerMessage;
|
|
274
366
|
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NodeControllerMessage;
|