@corvohq/worker 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gen/corvo/v1/worker_pb.d.ts +689 -0
- package/dist/gen/corvo/v1/worker_pb.js +133 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.js +405 -0
- package/dist/rpc.d.ts +78 -0
- package/dist/rpc.js +193 -0
- package/package.json +24 -0
|
@@ -0,0 +1,689 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file corvo/v1/worker.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_corvo_v1_worker: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* @generated from message corvo.v1.EnqueueRequest
|
|
10
|
+
*/
|
|
11
|
+
export type EnqueueRequest = Message<"corvo.v1.EnqueueRequest"> & {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from field: string queue = 1;
|
|
14
|
+
*/
|
|
15
|
+
queue: string;
|
|
16
|
+
/**
|
|
17
|
+
* @generated from field: string payload_json = 2;
|
|
18
|
+
*/
|
|
19
|
+
payloadJson: string;
|
|
20
|
+
/**
|
|
21
|
+
* @generated from field: corvo.v1.AgentConfig agent = 3;
|
|
22
|
+
*/
|
|
23
|
+
agent?: AgentConfig;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message corvo.v1.EnqueueRequest.
|
|
27
|
+
* Use `create(EnqueueRequestSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export declare const EnqueueRequestSchema: GenMessage<EnqueueRequest>;
|
|
30
|
+
/**
|
|
31
|
+
* @generated from message corvo.v1.EnqueueResponse
|
|
32
|
+
*/
|
|
33
|
+
export type EnqueueResponse = Message<"corvo.v1.EnqueueResponse"> & {
|
|
34
|
+
/**
|
|
35
|
+
* @generated from field: string job_id = 1;
|
|
36
|
+
*/
|
|
37
|
+
jobId: string;
|
|
38
|
+
/**
|
|
39
|
+
* @generated from field: string status = 2;
|
|
40
|
+
*/
|
|
41
|
+
status: string;
|
|
42
|
+
/**
|
|
43
|
+
* @generated from field: bool unique_existing = 3;
|
|
44
|
+
*/
|
|
45
|
+
uniqueExisting: boolean;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Describes the message corvo.v1.EnqueueResponse.
|
|
49
|
+
* Use `create(EnqueueResponseSchema)` to create a new message.
|
|
50
|
+
*/
|
|
51
|
+
export declare const EnqueueResponseSchema: GenMessage<EnqueueResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* @generated from message corvo.v1.FetchRequest
|
|
54
|
+
*/
|
|
55
|
+
export type FetchRequest = Message<"corvo.v1.FetchRequest"> & {
|
|
56
|
+
/**
|
|
57
|
+
* @generated from field: repeated string queues = 1;
|
|
58
|
+
*/
|
|
59
|
+
queues: string[];
|
|
60
|
+
/**
|
|
61
|
+
* @generated from field: string worker_id = 2;
|
|
62
|
+
*/
|
|
63
|
+
workerId: string;
|
|
64
|
+
/**
|
|
65
|
+
* @generated from field: string hostname = 3;
|
|
66
|
+
*/
|
|
67
|
+
hostname: string;
|
|
68
|
+
/**
|
|
69
|
+
* @generated from field: int32 lease_duration = 4;
|
|
70
|
+
*/
|
|
71
|
+
leaseDuration: number;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Describes the message corvo.v1.FetchRequest.
|
|
75
|
+
* Use `create(FetchRequestSchema)` to create a new message.
|
|
76
|
+
*/
|
|
77
|
+
export declare const FetchRequestSchema: GenMessage<FetchRequest>;
|
|
78
|
+
/**
|
|
79
|
+
* @generated from message corvo.v1.FetchResponse
|
|
80
|
+
*/
|
|
81
|
+
export type FetchResponse = Message<"corvo.v1.FetchResponse"> & {
|
|
82
|
+
/**
|
|
83
|
+
* @generated from field: bool found = 1;
|
|
84
|
+
*/
|
|
85
|
+
found: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: string job_id = 2;
|
|
88
|
+
*/
|
|
89
|
+
jobId: string;
|
|
90
|
+
/**
|
|
91
|
+
* @generated from field: string queue = 3;
|
|
92
|
+
*/
|
|
93
|
+
queue: string;
|
|
94
|
+
/**
|
|
95
|
+
* @generated from field: string payload_json = 4;
|
|
96
|
+
*/
|
|
97
|
+
payloadJson: string;
|
|
98
|
+
/**
|
|
99
|
+
* @generated from field: int32 attempt = 5;
|
|
100
|
+
*/
|
|
101
|
+
attempt: number;
|
|
102
|
+
/**
|
|
103
|
+
* @generated from field: int32 max_retries = 6;
|
|
104
|
+
*/
|
|
105
|
+
maxRetries: number;
|
|
106
|
+
/**
|
|
107
|
+
* @generated from field: int32 lease_duration = 7;
|
|
108
|
+
*/
|
|
109
|
+
leaseDuration: number;
|
|
110
|
+
/**
|
|
111
|
+
* @generated from field: string checkpoint_json = 8;
|
|
112
|
+
*/
|
|
113
|
+
checkpointJson: string;
|
|
114
|
+
/**
|
|
115
|
+
* @generated from field: string tags_json = 9;
|
|
116
|
+
*/
|
|
117
|
+
tagsJson: string;
|
|
118
|
+
/**
|
|
119
|
+
* @generated from field: corvo.v1.AgentState agent = 10;
|
|
120
|
+
*/
|
|
121
|
+
agent?: AgentState;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Describes the message corvo.v1.FetchResponse.
|
|
125
|
+
* Use `create(FetchResponseSchema)` to create a new message.
|
|
126
|
+
*/
|
|
127
|
+
export declare const FetchResponseSchema: GenMessage<FetchResponse>;
|
|
128
|
+
/**
|
|
129
|
+
* @generated from message corvo.v1.FetchBatchRequest
|
|
130
|
+
*/
|
|
131
|
+
export type FetchBatchRequest = Message<"corvo.v1.FetchBatchRequest"> & {
|
|
132
|
+
/**
|
|
133
|
+
* @generated from field: repeated string queues = 1;
|
|
134
|
+
*/
|
|
135
|
+
queues: string[];
|
|
136
|
+
/**
|
|
137
|
+
* @generated from field: string worker_id = 2;
|
|
138
|
+
*/
|
|
139
|
+
workerId: string;
|
|
140
|
+
/**
|
|
141
|
+
* @generated from field: string hostname = 3;
|
|
142
|
+
*/
|
|
143
|
+
hostname: string;
|
|
144
|
+
/**
|
|
145
|
+
* @generated from field: int32 lease_duration = 4;
|
|
146
|
+
*/
|
|
147
|
+
leaseDuration: number;
|
|
148
|
+
/**
|
|
149
|
+
* @generated from field: int32 count = 5;
|
|
150
|
+
*/
|
|
151
|
+
count: number;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Describes the message corvo.v1.FetchBatchRequest.
|
|
155
|
+
* Use `create(FetchBatchRequestSchema)` to create a new message.
|
|
156
|
+
*/
|
|
157
|
+
export declare const FetchBatchRequestSchema: GenMessage<FetchBatchRequest>;
|
|
158
|
+
/**
|
|
159
|
+
* @generated from message corvo.v1.FetchBatchJob
|
|
160
|
+
*/
|
|
161
|
+
export type FetchBatchJob = Message<"corvo.v1.FetchBatchJob"> & {
|
|
162
|
+
/**
|
|
163
|
+
* @generated from field: string job_id = 1;
|
|
164
|
+
*/
|
|
165
|
+
jobId: string;
|
|
166
|
+
/**
|
|
167
|
+
* @generated from field: string queue = 2;
|
|
168
|
+
*/
|
|
169
|
+
queue: string;
|
|
170
|
+
/**
|
|
171
|
+
* @generated from field: string payload_json = 3;
|
|
172
|
+
*/
|
|
173
|
+
payloadJson: string;
|
|
174
|
+
/**
|
|
175
|
+
* @generated from field: int32 attempt = 4;
|
|
176
|
+
*/
|
|
177
|
+
attempt: number;
|
|
178
|
+
/**
|
|
179
|
+
* @generated from field: int32 max_retries = 5;
|
|
180
|
+
*/
|
|
181
|
+
maxRetries: number;
|
|
182
|
+
/**
|
|
183
|
+
* @generated from field: int32 lease_duration = 6;
|
|
184
|
+
*/
|
|
185
|
+
leaseDuration: number;
|
|
186
|
+
/**
|
|
187
|
+
* @generated from field: string checkpoint_json = 7;
|
|
188
|
+
*/
|
|
189
|
+
checkpointJson: string;
|
|
190
|
+
/**
|
|
191
|
+
* @generated from field: string tags_json = 8;
|
|
192
|
+
*/
|
|
193
|
+
tagsJson: string;
|
|
194
|
+
/**
|
|
195
|
+
* @generated from field: corvo.v1.AgentState agent = 9;
|
|
196
|
+
*/
|
|
197
|
+
agent?: AgentState;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Describes the message corvo.v1.FetchBatchJob.
|
|
201
|
+
* Use `create(FetchBatchJobSchema)` to create a new message.
|
|
202
|
+
*/
|
|
203
|
+
export declare const FetchBatchJobSchema: GenMessage<FetchBatchJob>;
|
|
204
|
+
/**
|
|
205
|
+
* @generated from message corvo.v1.FetchBatchResponse
|
|
206
|
+
*/
|
|
207
|
+
export type FetchBatchResponse = Message<"corvo.v1.FetchBatchResponse"> & {
|
|
208
|
+
/**
|
|
209
|
+
* @generated from field: repeated corvo.v1.FetchBatchJob jobs = 1;
|
|
210
|
+
*/
|
|
211
|
+
jobs: FetchBatchJob[];
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Describes the message corvo.v1.FetchBatchResponse.
|
|
215
|
+
* Use `create(FetchBatchResponseSchema)` to create a new message.
|
|
216
|
+
*/
|
|
217
|
+
export declare const FetchBatchResponseSchema: GenMessage<FetchBatchResponse>;
|
|
218
|
+
/**
|
|
219
|
+
* @generated from message corvo.v1.UsageReport
|
|
220
|
+
*/
|
|
221
|
+
export type UsageReport = Message<"corvo.v1.UsageReport"> & {
|
|
222
|
+
/**
|
|
223
|
+
* @generated from field: int64 input_tokens = 1;
|
|
224
|
+
*/
|
|
225
|
+
inputTokens: bigint;
|
|
226
|
+
/**
|
|
227
|
+
* @generated from field: int64 output_tokens = 2;
|
|
228
|
+
*/
|
|
229
|
+
outputTokens: bigint;
|
|
230
|
+
/**
|
|
231
|
+
* @generated from field: int64 cache_creation_tokens = 3;
|
|
232
|
+
*/
|
|
233
|
+
cacheCreationTokens: bigint;
|
|
234
|
+
/**
|
|
235
|
+
* @generated from field: int64 cache_read_tokens = 4;
|
|
236
|
+
*/
|
|
237
|
+
cacheReadTokens: bigint;
|
|
238
|
+
/**
|
|
239
|
+
* @generated from field: string model = 5;
|
|
240
|
+
*/
|
|
241
|
+
model: string;
|
|
242
|
+
/**
|
|
243
|
+
* @generated from field: string provider = 6;
|
|
244
|
+
*/
|
|
245
|
+
provider: string;
|
|
246
|
+
/**
|
|
247
|
+
* @generated from field: double cost_usd = 7;
|
|
248
|
+
*/
|
|
249
|
+
costUsd: number;
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* Describes the message corvo.v1.UsageReport.
|
|
253
|
+
* Use `create(UsageReportSchema)` to create a new message.
|
|
254
|
+
*/
|
|
255
|
+
export declare const UsageReportSchema: GenMessage<UsageReport>;
|
|
256
|
+
/**
|
|
257
|
+
* @generated from message corvo.v1.AckRequest
|
|
258
|
+
*/
|
|
259
|
+
export type AckRequest = Message<"corvo.v1.AckRequest"> & {
|
|
260
|
+
/**
|
|
261
|
+
* @generated from field: string job_id = 1;
|
|
262
|
+
*/
|
|
263
|
+
jobId: string;
|
|
264
|
+
/**
|
|
265
|
+
* @generated from field: string result_json = 2;
|
|
266
|
+
*/
|
|
267
|
+
resultJson: string;
|
|
268
|
+
/**
|
|
269
|
+
* @generated from field: corvo.v1.UsageReport usage = 3;
|
|
270
|
+
*/
|
|
271
|
+
usage?: UsageReport;
|
|
272
|
+
/**
|
|
273
|
+
* @generated from field: string checkpoint_json = 4;
|
|
274
|
+
*/
|
|
275
|
+
checkpointJson: string;
|
|
276
|
+
/**
|
|
277
|
+
* @generated from field: string agent_status = 5;
|
|
278
|
+
*/
|
|
279
|
+
agentStatus: string;
|
|
280
|
+
/**
|
|
281
|
+
* @generated from field: string hold_reason = 6;
|
|
282
|
+
*/
|
|
283
|
+
holdReason: string;
|
|
284
|
+
/**
|
|
285
|
+
* @generated from field: string trace_json = 7;
|
|
286
|
+
*/
|
|
287
|
+
traceJson: string;
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* Describes the message corvo.v1.AckRequest.
|
|
291
|
+
* Use `create(AckRequestSchema)` to create a new message.
|
|
292
|
+
*/
|
|
293
|
+
export declare const AckRequestSchema: GenMessage<AckRequest>;
|
|
294
|
+
/**
|
|
295
|
+
* @generated from message corvo.v1.AckResponse
|
|
296
|
+
*/
|
|
297
|
+
export type AckResponse = Message<"corvo.v1.AckResponse"> & {};
|
|
298
|
+
/**
|
|
299
|
+
* Describes the message corvo.v1.AckResponse.
|
|
300
|
+
* Use `create(AckResponseSchema)` to create a new message.
|
|
301
|
+
*/
|
|
302
|
+
export declare const AckResponseSchema: GenMessage<AckResponse>;
|
|
303
|
+
/**
|
|
304
|
+
* @generated from message corvo.v1.AckBatchItem
|
|
305
|
+
*/
|
|
306
|
+
export type AckBatchItem = Message<"corvo.v1.AckBatchItem"> & {
|
|
307
|
+
/**
|
|
308
|
+
* @generated from field: string job_id = 1;
|
|
309
|
+
*/
|
|
310
|
+
jobId: string;
|
|
311
|
+
/**
|
|
312
|
+
* @generated from field: string result_json = 2;
|
|
313
|
+
*/
|
|
314
|
+
resultJson: string;
|
|
315
|
+
/**
|
|
316
|
+
* @generated from field: corvo.v1.UsageReport usage = 3;
|
|
317
|
+
*/
|
|
318
|
+
usage?: UsageReport;
|
|
319
|
+
};
|
|
320
|
+
/**
|
|
321
|
+
* Describes the message corvo.v1.AckBatchItem.
|
|
322
|
+
* Use `create(AckBatchItemSchema)` to create a new message.
|
|
323
|
+
*/
|
|
324
|
+
export declare const AckBatchItemSchema: GenMessage<AckBatchItem>;
|
|
325
|
+
/**
|
|
326
|
+
* @generated from message corvo.v1.AckBatchRequest
|
|
327
|
+
*/
|
|
328
|
+
export type AckBatchRequest = Message<"corvo.v1.AckBatchRequest"> & {
|
|
329
|
+
/**
|
|
330
|
+
* @generated from field: repeated corvo.v1.AckBatchItem items = 1;
|
|
331
|
+
*/
|
|
332
|
+
items: AckBatchItem[];
|
|
333
|
+
};
|
|
334
|
+
/**
|
|
335
|
+
* Describes the message corvo.v1.AckBatchRequest.
|
|
336
|
+
* Use `create(AckBatchRequestSchema)` to create a new message.
|
|
337
|
+
*/
|
|
338
|
+
export declare const AckBatchRequestSchema: GenMessage<AckBatchRequest>;
|
|
339
|
+
/**
|
|
340
|
+
* @generated from message corvo.v1.AckBatchResponse
|
|
341
|
+
*/
|
|
342
|
+
export type AckBatchResponse = Message<"corvo.v1.AckBatchResponse"> & {
|
|
343
|
+
/**
|
|
344
|
+
* @generated from field: int32 acked = 1;
|
|
345
|
+
*/
|
|
346
|
+
acked: number;
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* Describes the message corvo.v1.AckBatchResponse.
|
|
350
|
+
* Use `create(AckBatchResponseSchema)` to create a new message.
|
|
351
|
+
*/
|
|
352
|
+
export declare const AckBatchResponseSchema: GenMessage<AckBatchResponse>;
|
|
353
|
+
/**
|
|
354
|
+
* @generated from message corvo.v1.LifecycleStreamRequest
|
|
355
|
+
*/
|
|
356
|
+
export type LifecycleStreamRequest = Message<"corvo.v1.LifecycleStreamRequest"> & {
|
|
357
|
+
/**
|
|
358
|
+
* @generated from field: uint64 request_id = 1;
|
|
359
|
+
*/
|
|
360
|
+
requestId: bigint;
|
|
361
|
+
/**
|
|
362
|
+
* @generated from field: repeated string queues = 2;
|
|
363
|
+
*/
|
|
364
|
+
queues: string[];
|
|
365
|
+
/**
|
|
366
|
+
* @generated from field: string worker_id = 3;
|
|
367
|
+
*/
|
|
368
|
+
workerId: string;
|
|
369
|
+
/**
|
|
370
|
+
* @generated from field: string hostname = 4;
|
|
371
|
+
*/
|
|
372
|
+
hostname: string;
|
|
373
|
+
/**
|
|
374
|
+
* @generated from field: int32 lease_duration = 5;
|
|
375
|
+
*/
|
|
376
|
+
leaseDuration: number;
|
|
377
|
+
/**
|
|
378
|
+
* @generated from field: int32 fetch_count = 6;
|
|
379
|
+
*/
|
|
380
|
+
fetchCount: number;
|
|
381
|
+
/**
|
|
382
|
+
* @generated from field: repeated corvo.v1.AckBatchItem acks = 7;
|
|
383
|
+
*/
|
|
384
|
+
acks: AckBatchItem[];
|
|
385
|
+
/**
|
|
386
|
+
* @generated from field: repeated corvo.v1.LifecycleEnqueueItem enqueues = 8;
|
|
387
|
+
*/
|
|
388
|
+
enqueues: LifecycleEnqueueItem[];
|
|
389
|
+
};
|
|
390
|
+
/**
|
|
391
|
+
* Describes the message corvo.v1.LifecycleStreamRequest.
|
|
392
|
+
* Use `create(LifecycleStreamRequestSchema)` to create a new message.
|
|
393
|
+
*/
|
|
394
|
+
export declare const LifecycleStreamRequestSchema: GenMessage<LifecycleStreamRequest>;
|
|
395
|
+
/**
|
|
396
|
+
* @generated from message corvo.v1.LifecycleEnqueueItem
|
|
397
|
+
*/
|
|
398
|
+
export type LifecycleEnqueueItem = Message<"corvo.v1.LifecycleEnqueueItem"> & {
|
|
399
|
+
/**
|
|
400
|
+
* @generated from field: string queue = 1;
|
|
401
|
+
*/
|
|
402
|
+
queue: string;
|
|
403
|
+
/**
|
|
404
|
+
* @generated from field: string payload_json = 2;
|
|
405
|
+
*/
|
|
406
|
+
payloadJson: string;
|
|
407
|
+
/**
|
|
408
|
+
* @generated from field: corvo.v1.AgentConfig agent = 3;
|
|
409
|
+
*/
|
|
410
|
+
agent?: AgentConfig;
|
|
411
|
+
};
|
|
412
|
+
/**
|
|
413
|
+
* Describes the message corvo.v1.LifecycleEnqueueItem.
|
|
414
|
+
* Use `create(LifecycleEnqueueItemSchema)` to create a new message.
|
|
415
|
+
*/
|
|
416
|
+
export declare const LifecycleEnqueueItemSchema: GenMessage<LifecycleEnqueueItem>;
|
|
417
|
+
/**
|
|
418
|
+
* @generated from message corvo.v1.AgentConfig
|
|
419
|
+
*/
|
|
420
|
+
export type AgentConfig = Message<"corvo.v1.AgentConfig"> & {
|
|
421
|
+
/**
|
|
422
|
+
* @generated from field: int32 max_iterations = 1;
|
|
423
|
+
*/
|
|
424
|
+
maxIterations: number;
|
|
425
|
+
/**
|
|
426
|
+
* @generated from field: double max_cost_usd = 2;
|
|
427
|
+
*/
|
|
428
|
+
maxCostUsd: number;
|
|
429
|
+
/**
|
|
430
|
+
* @generated from field: string iteration_timeout = 3;
|
|
431
|
+
*/
|
|
432
|
+
iterationTimeout: string;
|
|
433
|
+
};
|
|
434
|
+
/**
|
|
435
|
+
* Describes the message corvo.v1.AgentConfig.
|
|
436
|
+
* Use `create(AgentConfigSchema)` to create a new message.
|
|
437
|
+
*/
|
|
438
|
+
export declare const AgentConfigSchema: GenMessage<AgentConfig>;
|
|
439
|
+
/**
|
|
440
|
+
* @generated from message corvo.v1.AgentState
|
|
441
|
+
*/
|
|
442
|
+
export type AgentState = Message<"corvo.v1.AgentState"> & {
|
|
443
|
+
/**
|
|
444
|
+
* @generated from field: int32 max_iterations = 1;
|
|
445
|
+
*/
|
|
446
|
+
maxIterations: number;
|
|
447
|
+
/**
|
|
448
|
+
* @generated from field: double max_cost_usd = 2;
|
|
449
|
+
*/
|
|
450
|
+
maxCostUsd: number;
|
|
451
|
+
/**
|
|
452
|
+
* @generated from field: string iteration_timeout = 3;
|
|
453
|
+
*/
|
|
454
|
+
iterationTimeout: string;
|
|
455
|
+
/**
|
|
456
|
+
* @generated from field: int32 iteration = 4;
|
|
457
|
+
*/
|
|
458
|
+
iteration: number;
|
|
459
|
+
/**
|
|
460
|
+
* @generated from field: double total_cost_usd = 5;
|
|
461
|
+
*/
|
|
462
|
+
totalCostUsd: number;
|
|
463
|
+
};
|
|
464
|
+
/**
|
|
465
|
+
* Describes the message corvo.v1.AgentState.
|
|
466
|
+
* Use `create(AgentStateSchema)` to create a new message.
|
|
467
|
+
*/
|
|
468
|
+
export declare const AgentStateSchema: GenMessage<AgentState>;
|
|
469
|
+
/**
|
|
470
|
+
* @generated from message corvo.v1.LifecycleStreamResponse
|
|
471
|
+
*/
|
|
472
|
+
export type LifecycleStreamResponse = Message<"corvo.v1.LifecycleStreamResponse"> & {
|
|
473
|
+
/**
|
|
474
|
+
* @generated from field: uint64 request_id = 1;
|
|
475
|
+
*/
|
|
476
|
+
requestId: bigint;
|
|
477
|
+
/**
|
|
478
|
+
* @generated from field: repeated corvo.v1.FetchBatchJob jobs = 2;
|
|
479
|
+
*/
|
|
480
|
+
jobs: FetchBatchJob[];
|
|
481
|
+
/**
|
|
482
|
+
* @generated from field: int32 acked = 3;
|
|
483
|
+
*/
|
|
484
|
+
acked: number;
|
|
485
|
+
/**
|
|
486
|
+
* @generated from field: string error = 4;
|
|
487
|
+
*/
|
|
488
|
+
error: string;
|
|
489
|
+
/**
|
|
490
|
+
* @generated from field: repeated string enqueued_job_ids = 5;
|
|
491
|
+
*/
|
|
492
|
+
enqueuedJobIds: string[];
|
|
493
|
+
/**
|
|
494
|
+
* HTTP URL of leader, set when error="NOT_LEADER"
|
|
495
|
+
*
|
|
496
|
+
* @generated from field: string leader_addr = 6;
|
|
497
|
+
*/
|
|
498
|
+
leaderAddr: string;
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* Describes the message corvo.v1.LifecycleStreamResponse.
|
|
502
|
+
* Use `create(LifecycleStreamResponseSchema)` to create a new message.
|
|
503
|
+
*/
|
|
504
|
+
export declare const LifecycleStreamResponseSchema: GenMessage<LifecycleStreamResponse>;
|
|
505
|
+
/**
|
|
506
|
+
* @generated from message corvo.v1.FailRequest
|
|
507
|
+
*/
|
|
508
|
+
export type FailRequest = Message<"corvo.v1.FailRequest"> & {
|
|
509
|
+
/**
|
|
510
|
+
* @generated from field: string job_id = 1;
|
|
511
|
+
*/
|
|
512
|
+
jobId: string;
|
|
513
|
+
/**
|
|
514
|
+
* @generated from field: string error = 2;
|
|
515
|
+
*/
|
|
516
|
+
error: string;
|
|
517
|
+
/**
|
|
518
|
+
* @generated from field: string backtrace = 3;
|
|
519
|
+
*/
|
|
520
|
+
backtrace: string;
|
|
521
|
+
};
|
|
522
|
+
/**
|
|
523
|
+
* Describes the message corvo.v1.FailRequest.
|
|
524
|
+
* Use `create(FailRequestSchema)` to create a new message.
|
|
525
|
+
*/
|
|
526
|
+
export declare const FailRequestSchema: GenMessage<FailRequest>;
|
|
527
|
+
/**
|
|
528
|
+
* @generated from message corvo.v1.FailResponse
|
|
529
|
+
*/
|
|
530
|
+
export type FailResponse = Message<"corvo.v1.FailResponse"> & {
|
|
531
|
+
/**
|
|
532
|
+
* @generated from field: string status = 1;
|
|
533
|
+
*/
|
|
534
|
+
status: string;
|
|
535
|
+
/**
|
|
536
|
+
* @generated from field: google.protobuf.Timestamp next_attempt_at = 2;
|
|
537
|
+
*/
|
|
538
|
+
nextAttemptAt?: Timestamp;
|
|
539
|
+
/**
|
|
540
|
+
* @generated from field: int32 attempts_remaining = 3;
|
|
541
|
+
*/
|
|
542
|
+
attemptsRemaining: number;
|
|
543
|
+
};
|
|
544
|
+
/**
|
|
545
|
+
* Describes the message corvo.v1.FailResponse.
|
|
546
|
+
* Use `create(FailResponseSchema)` to create a new message.
|
|
547
|
+
*/
|
|
548
|
+
export declare const FailResponseSchema: GenMessage<FailResponse>;
|
|
549
|
+
/**
|
|
550
|
+
* @generated from message corvo.v1.HeartbeatJobUpdate
|
|
551
|
+
*/
|
|
552
|
+
export type HeartbeatJobUpdate = Message<"corvo.v1.HeartbeatJobUpdate"> & {
|
|
553
|
+
/**
|
|
554
|
+
* @generated from field: string progress_json = 1;
|
|
555
|
+
*/
|
|
556
|
+
progressJson: string;
|
|
557
|
+
/**
|
|
558
|
+
* @generated from field: string checkpoint_json = 2;
|
|
559
|
+
*/
|
|
560
|
+
checkpointJson: string;
|
|
561
|
+
/**
|
|
562
|
+
* @generated from field: corvo.v1.UsageReport usage = 3;
|
|
563
|
+
*/
|
|
564
|
+
usage?: UsageReport;
|
|
565
|
+
/**
|
|
566
|
+
* @generated from field: string stream_delta = 4;
|
|
567
|
+
*/
|
|
568
|
+
streamDelta: string;
|
|
569
|
+
};
|
|
570
|
+
/**
|
|
571
|
+
* Describes the message corvo.v1.HeartbeatJobUpdate.
|
|
572
|
+
* Use `create(HeartbeatJobUpdateSchema)` to create a new message.
|
|
573
|
+
*/
|
|
574
|
+
export declare const HeartbeatJobUpdateSchema: GenMessage<HeartbeatJobUpdate>;
|
|
575
|
+
/**
|
|
576
|
+
* @generated from message corvo.v1.HeartbeatRequest
|
|
577
|
+
*/
|
|
578
|
+
export type HeartbeatRequest = Message<"corvo.v1.HeartbeatRequest"> & {
|
|
579
|
+
/**
|
|
580
|
+
* @generated from field: map<string, corvo.v1.HeartbeatJobUpdate> jobs = 1;
|
|
581
|
+
*/
|
|
582
|
+
jobs: {
|
|
583
|
+
[key: string]: HeartbeatJobUpdate;
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
/**
|
|
587
|
+
* Describes the message corvo.v1.HeartbeatRequest.
|
|
588
|
+
* Use `create(HeartbeatRequestSchema)` to create a new message.
|
|
589
|
+
*/
|
|
590
|
+
export declare const HeartbeatRequestSchema: GenMessage<HeartbeatRequest>;
|
|
591
|
+
/**
|
|
592
|
+
* @generated from message corvo.v1.HeartbeatJobResponse
|
|
593
|
+
*/
|
|
594
|
+
export type HeartbeatJobResponse = Message<"corvo.v1.HeartbeatJobResponse"> & {
|
|
595
|
+
/**
|
|
596
|
+
* @generated from field: string status = 1;
|
|
597
|
+
*/
|
|
598
|
+
status: string;
|
|
599
|
+
};
|
|
600
|
+
/**
|
|
601
|
+
* Describes the message corvo.v1.HeartbeatJobResponse.
|
|
602
|
+
* Use `create(HeartbeatJobResponseSchema)` to create a new message.
|
|
603
|
+
*/
|
|
604
|
+
export declare const HeartbeatJobResponseSchema: GenMessage<HeartbeatJobResponse>;
|
|
605
|
+
/**
|
|
606
|
+
* @generated from message corvo.v1.HeartbeatResponse
|
|
607
|
+
*/
|
|
608
|
+
export type HeartbeatResponse = Message<"corvo.v1.HeartbeatResponse"> & {
|
|
609
|
+
/**
|
|
610
|
+
* @generated from field: map<string, corvo.v1.HeartbeatJobResponse> jobs = 1;
|
|
611
|
+
*/
|
|
612
|
+
jobs: {
|
|
613
|
+
[key: string]: HeartbeatJobResponse;
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
/**
|
|
617
|
+
* Describes the message corvo.v1.HeartbeatResponse.
|
|
618
|
+
* Use `create(HeartbeatResponseSchema)` to create a new message.
|
|
619
|
+
*/
|
|
620
|
+
export declare const HeartbeatResponseSchema: GenMessage<HeartbeatResponse>;
|
|
621
|
+
/**
|
|
622
|
+
* @generated from service corvo.v1.WorkerService
|
|
623
|
+
*/
|
|
624
|
+
export declare const WorkerService: GenService<{
|
|
625
|
+
/**
|
|
626
|
+
* @generated from rpc corvo.v1.WorkerService.Enqueue
|
|
627
|
+
*/
|
|
628
|
+
enqueue: {
|
|
629
|
+
methodKind: "unary";
|
|
630
|
+
input: typeof EnqueueRequestSchema;
|
|
631
|
+
output: typeof EnqueueResponseSchema;
|
|
632
|
+
};
|
|
633
|
+
/**
|
|
634
|
+
* @generated from rpc corvo.v1.WorkerService.Fetch
|
|
635
|
+
*/
|
|
636
|
+
fetch: {
|
|
637
|
+
methodKind: "unary";
|
|
638
|
+
input: typeof FetchRequestSchema;
|
|
639
|
+
output: typeof FetchResponseSchema;
|
|
640
|
+
};
|
|
641
|
+
/**
|
|
642
|
+
* @generated from rpc corvo.v1.WorkerService.FetchBatch
|
|
643
|
+
*/
|
|
644
|
+
fetchBatch: {
|
|
645
|
+
methodKind: "unary";
|
|
646
|
+
input: typeof FetchBatchRequestSchema;
|
|
647
|
+
output: typeof FetchBatchResponseSchema;
|
|
648
|
+
};
|
|
649
|
+
/**
|
|
650
|
+
* @generated from rpc corvo.v1.WorkerService.Ack
|
|
651
|
+
*/
|
|
652
|
+
ack: {
|
|
653
|
+
methodKind: "unary";
|
|
654
|
+
input: typeof AckRequestSchema;
|
|
655
|
+
output: typeof AckResponseSchema;
|
|
656
|
+
};
|
|
657
|
+
/**
|
|
658
|
+
* @generated from rpc corvo.v1.WorkerService.AckBatch
|
|
659
|
+
*/
|
|
660
|
+
ackBatch: {
|
|
661
|
+
methodKind: "unary";
|
|
662
|
+
input: typeof AckBatchRequestSchema;
|
|
663
|
+
output: typeof AckBatchResponseSchema;
|
|
664
|
+
};
|
|
665
|
+
/**
|
|
666
|
+
* @generated from rpc corvo.v1.WorkerService.StreamLifecycle
|
|
667
|
+
*/
|
|
668
|
+
streamLifecycle: {
|
|
669
|
+
methodKind: "bidi_streaming";
|
|
670
|
+
input: typeof LifecycleStreamRequestSchema;
|
|
671
|
+
output: typeof LifecycleStreamResponseSchema;
|
|
672
|
+
};
|
|
673
|
+
/**
|
|
674
|
+
* @generated from rpc corvo.v1.WorkerService.Fail
|
|
675
|
+
*/
|
|
676
|
+
fail: {
|
|
677
|
+
methodKind: "unary";
|
|
678
|
+
input: typeof FailRequestSchema;
|
|
679
|
+
output: typeof FailResponseSchema;
|
|
680
|
+
};
|
|
681
|
+
/**
|
|
682
|
+
* @generated from rpc corvo.v1.WorkerService.Heartbeat
|
|
683
|
+
*/
|
|
684
|
+
heartbeat: {
|
|
685
|
+
methodKind: "unary";
|
|
686
|
+
input: typeof HeartbeatRequestSchema;
|
|
687
|
+
output: typeof HeartbeatResponseSchema;
|
|
688
|
+
};
|
|
689
|
+
}>;
|