@ironflow/core 0.1.0-test.2

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.
Files changed (70) hide show
  1. package/README.md +60 -0
  2. package/dist/constants.d.ts +219 -0
  3. package/dist/constants.d.ts.map +1 -0
  4. package/dist/constants.js +233 -0
  5. package/dist/constants.js.map +1 -0
  6. package/dist/errors.d.ts +140 -0
  7. package/dist/errors.d.ts.map +1 -0
  8. package/dist/errors.js +205 -0
  9. package/dist/errors.js.map +1 -0
  10. package/dist/gen/index.d.ts +7 -0
  11. package/dist/gen/index.d.ts.map +1 -0
  12. package/dist/gen/index.js +7 -0
  13. package/dist/gen/index.js.map +1 -0
  14. package/dist/gen/ironflow/v1/index.d.ts +13 -0
  15. package/dist/gen/ironflow/v1/index.d.ts.map +1 -0
  16. package/dist/gen/ironflow/v1/index.js +15 -0
  17. package/dist/gen/ironflow/v1/index.js.map +1 -0
  18. package/dist/gen/ironflow/v1/ironflow_connect.d.ts +209 -0
  19. package/dist/gen/ironflow/v1/ironflow_connect.d.ts.map +1 -0
  20. package/dist/gen/ironflow/v1/ironflow_connect.js +216 -0
  21. package/dist/gen/ironflow/v1/ironflow_connect.js.map +1 -0
  22. package/dist/gen/ironflow/v1/ironflow_pb.d.ts +814 -0
  23. package/dist/gen/ironflow/v1/ironflow_pb.d.ts.map +1 -0
  24. package/dist/gen/ironflow/v1/ironflow_pb.js +157 -0
  25. package/dist/gen/ironflow/v1/ironflow_pb.js.map +1 -0
  26. package/dist/gen/ironflow/v1/pubsub_connect.d.ts +104 -0
  27. package/dist/gen/ironflow/v1/pubsub_connect.d.ts.map +1 -0
  28. package/dist/gen/ironflow/v1/pubsub_connect.js +110 -0
  29. package/dist/gen/ironflow/v1/pubsub_connect.js.map +1 -0
  30. package/dist/gen/ironflow/v1/pubsub_pb.d.ts +814 -0
  31. package/dist/gen/ironflow/v1/pubsub_pb.d.ts.map +1 -0
  32. package/dist/gen/ironflow/v1/pubsub_pb.js +202 -0
  33. package/dist/gen/ironflow/v1/pubsub_pb.js.map +1 -0
  34. package/dist/gen/ironflow/v1/types_pb.d.ts +698 -0
  35. package/dist/gen/ironflow/v1/types_pb.d.ts.map +1 -0
  36. package/dist/gen/ironflow/v1/types_pb.js +217 -0
  37. package/dist/gen/ironflow/v1/types_pb.js.map +1 -0
  38. package/dist/gen/ironflow/v1/worker_connect.d.ts +20 -0
  39. package/dist/gen/ironflow/v1/worker_connect.d.ts.map +1 -0
  40. package/dist/gen/ironflow/v1/worker_connect.js +26 -0
  41. package/dist/gen/ironflow/v1/worker_connect.js.map +1 -0
  42. package/dist/gen/ironflow/v1/worker_pb.d.ts +685 -0
  43. package/dist/gen/ironflow/v1/worker_pb.d.ts.map +1 -0
  44. package/dist/gen/ironflow/v1/worker_pb.js +135 -0
  45. package/dist/gen/ironflow/v1/worker_pb.js.map +1 -0
  46. package/dist/index.d.ts +19 -0
  47. package/dist/index.d.ts.map +1 -0
  48. package/dist/index.js +51 -0
  49. package/dist/index.js.map +1 -0
  50. package/dist/logger.d.ts +26 -0
  51. package/dist/logger.d.ts.map +1 -0
  52. package/dist/logger.js +78 -0
  53. package/dist/logger.js.map +1 -0
  54. package/dist/protocol.d.ts +250 -0
  55. package/dist/protocol.d.ts.map +1 -0
  56. package/dist/protocol.js +34 -0
  57. package/dist/protocol.js.map +1 -0
  58. package/dist/schemas.d.ts +394 -0
  59. package/dist/schemas.d.ts.map +1 -0
  60. package/dist/schemas.js +268 -0
  61. package/dist/schemas.js.map +1 -0
  62. package/dist/types.d.ts +577 -0
  63. package/dist/types.d.ts.map +1 -0
  64. package/dist/types.js +49 -0
  65. package/dist/types.js.map +1 -0
  66. package/dist/utils.d.ts +60 -0
  67. package/dist/utils.d.ts.map +1 -0
  68. package/dist/utils.js +109 -0
  69. package/dist/utils.js.map +1 -0
  70. package/package.json +78 -0
@@ -0,0 +1,685 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Error, Event, StepType } from "./types_pb.js";
3
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
4
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file ironflow/v1/worker.proto.
7
+ */
8
+ export declare const file_ironflow_v1_worker: GenFile;
9
+ /**
10
+ * @generated from message ironflow.v1.WorkerMessage
11
+ */
12
+ export type WorkerMessage = Message<"ironflow.v1.WorkerMessage"> & {
13
+ /**
14
+ * @generated from oneof ironflow.v1.WorkerMessage.payload
15
+ */
16
+ payload: {
17
+ /**
18
+ * @generated from field: ironflow.v1.WorkerRegister register = 1;
19
+ */
20
+ value: WorkerRegister;
21
+ case: "register";
22
+ } | {
23
+ /**
24
+ * @generated from field: ironflow.v1.WorkerHeartbeat heartbeat = 2;
25
+ */
26
+ value: WorkerHeartbeat;
27
+ case: "heartbeat";
28
+ } | {
29
+ /**
30
+ * @generated from field: ironflow.v1.StepStarted step_started = 3;
31
+ */
32
+ value: StepStarted;
33
+ case: "stepStarted";
34
+ } | {
35
+ /**
36
+ * @generated from field: ironflow.v1.StepCompleted step_completed = 4;
37
+ */
38
+ value: StepCompleted;
39
+ case: "stepCompleted";
40
+ } | {
41
+ /**
42
+ * @generated from field: ironflow.v1.StepFailed step_failed = 5;
43
+ */
44
+ value: StepFailed;
45
+ case: "stepFailed";
46
+ } | {
47
+ /**
48
+ * @generated from field: ironflow.v1.StepYielded step_yielded = 6;
49
+ */
50
+ value: StepYielded;
51
+ case: "stepYielded";
52
+ } | {
53
+ /**
54
+ * @generated from field: ironflow.v1.JobCompleted job_completed = 7;
55
+ */
56
+ value: JobCompleted;
57
+ case: "jobCompleted";
58
+ } | {
59
+ /**
60
+ * @generated from field: ironflow.v1.JobFailed job_failed = 8;
61
+ */
62
+ value: JobFailed;
63
+ case: "jobFailed";
64
+ } | {
65
+ /**
66
+ * @generated from field: ironflow.v1.JobAck job_ack = 9;
67
+ */
68
+ value: JobAck;
69
+ case: "jobAck";
70
+ } | {
71
+ case: undefined;
72
+ value?: undefined;
73
+ };
74
+ };
75
+ /**
76
+ * Describes the message ironflow.v1.WorkerMessage.
77
+ * Use `create(WorkerMessageSchema)` to create a new message.
78
+ */
79
+ export declare const WorkerMessageSchema: GenMessage<WorkerMessage>;
80
+ /**
81
+ * @generated from message ironflow.v1.WorkerRegister
82
+ */
83
+ export type WorkerRegister = Message<"ironflow.v1.WorkerRegister"> & {
84
+ /**
85
+ * @generated from field: string worker_id = 1;
86
+ */
87
+ workerId: string;
88
+ /**
89
+ * @generated from field: string hostname = 2;
90
+ */
91
+ hostname: string;
92
+ /**
93
+ * Functions this worker handles
94
+ *
95
+ * @generated from field: repeated string function_ids = 3;
96
+ */
97
+ functionIds: string[];
98
+ /**
99
+ * @generated from field: int32 max_concurrent_jobs = 4;
100
+ */
101
+ maxConcurrentJobs: number;
102
+ /**
103
+ * e.g., {"gpu": "nvidia-a100"}
104
+ *
105
+ * @generated from field: map<string, string> labels = 5;
106
+ */
107
+ labels: {
108
+ [key: string]: string;
109
+ };
110
+ /**
111
+ * @generated from field: ironflow.v1.WorkerVersion version = 6;
112
+ */
113
+ version?: WorkerVersion;
114
+ };
115
+ /**
116
+ * Describes the message ironflow.v1.WorkerRegister.
117
+ * Use `create(WorkerRegisterSchema)` to create a new message.
118
+ */
119
+ export declare const WorkerRegisterSchema: GenMessage<WorkerRegister>;
120
+ /**
121
+ * @generated from message ironflow.v1.WorkerVersion
122
+ */
123
+ export type WorkerVersion = Message<"ironflow.v1.WorkerVersion"> & {
124
+ /**
125
+ * @generated from field: string sdk = 1;
126
+ */
127
+ sdk: string;
128
+ /**
129
+ * @generated from field: string runtime = 2;
130
+ */
131
+ runtime: string;
132
+ };
133
+ /**
134
+ * Describes the message ironflow.v1.WorkerVersion.
135
+ * Use `create(WorkerVersionSchema)` to create a new message.
136
+ */
137
+ export declare const WorkerVersionSchema: GenMessage<WorkerVersion>;
138
+ /**
139
+ * @generated from message ironflow.v1.WorkerHeartbeat
140
+ */
141
+ export type WorkerHeartbeat = Message<"ironflow.v1.WorkerHeartbeat"> & {
142
+ /**
143
+ * @generated from field: string worker_id = 1;
144
+ */
145
+ workerId: string;
146
+ /**
147
+ * @generated from field: int32 active_jobs = 2;
148
+ */
149
+ activeJobs: number;
150
+ /**
151
+ * @generated from field: repeated ironflow.v1.ActiveJob jobs = 3;
152
+ */
153
+ jobs: ActiveJob[];
154
+ /**
155
+ * @generated from field: ironflow.v1.WorkerMetrics metrics = 4;
156
+ */
157
+ metrics?: WorkerMetrics;
158
+ };
159
+ /**
160
+ * Describes the message ironflow.v1.WorkerHeartbeat.
161
+ * Use `create(WorkerHeartbeatSchema)` to create a new message.
162
+ */
163
+ export declare const WorkerHeartbeatSchema: GenMessage<WorkerHeartbeat>;
164
+ /**
165
+ * @generated from message ironflow.v1.ActiveJob
166
+ */
167
+ export type ActiveJob = Message<"ironflow.v1.ActiveJob"> & {
168
+ /**
169
+ * @generated from field: string job_id = 1;
170
+ */
171
+ jobId: string;
172
+ /**
173
+ * @generated from field: google.protobuf.Timestamp started_at = 2;
174
+ */
175
+ startedAt?: Timestamp;
176
+ };
177
+ /**
178
+ * Describes the message ironflow.v1.ActiveJob.
179
+ * Use `create(ActiveJobSchema)` to create a new message.
180
+ */
181
+ export declare const ActiveJobSchema: GenMessage<ActiveJob>;
182
+ /**
183
+ * @generated from message ironflow.v1.WorkerMetrics
184
+ */
185
+ export type WorkerMetrics = Message<"ironflow.v1.WorkerMetrics"> & {
186
+ /**
187
+ * @generated from field: double cpu_percent = 1;
188
+ */
189
+ cpuPercent: number;
190
+ /**
191
+ * @generated from field: double memory_percent = 2;
192
+ */
193
+ memoryPercent: number;
194
+ /**
195
+ * @generated from field: int64 jobs_completed = 3;
196
+ */
197
+ jobsCompleted: bigint;
198
+ /**
199
+ * @generated from field: int64 jobs_failed = 4;
200
+ */
201
+ jobsFailed: bigint;
202
+ };
203
+ /**
204
+ * Describes the message ironflow.v1.WorkerMetrics.
205
+ * Use `create(WorkerMetricsSchema)` to create a new message.
206
+ */
207
+ export declare const WorkerMetricsSchema: GenMessage<WorkerMetrics>;
208
+ /**
209
+ * @generated from message ironflow.v1.StepStarted
210
+ */
211
+ export type StepStarted = Message<"ironflow.v1.StepStarted"> & {
212
+ /**
213
+ * @generated from field: string job_id = 1;
214
+ */
215
+ jobId: string;
216
+ /**
217
+ * @generated from field: string step_id = 2;
218
+ */
219
+ stepId: string;
220
+ /**
221
+ * @generated from field: string name = 3;
222
+ */
223
+ name: string;
224
+ /**
225
+ * @generated from field: ironflow.v1.StepType step_type = 4;
226
+ */
227
+ stepType: StepType;
228
+ };
229
+ /**
230
+ * Describes the message ironflow.v1.StepStarted.
231
+ * Use `create(StepStartedSchema)` to create a new message.
232
+ */
233
+ export declare const StepStartedSchema: GenMessage<StepStarted>;
234
+ /**
235
+ * @generated from message ironflow.v1.StepCompleted
236
+ */
237
+ export type StepCompleted = Message<"ironflow.v1.StepCompleted"> & {
238
+ /**
239
+ * @generated from field: string job_id = 1;
240
+ */
241
+ jobId: string;
242
+ /**
243
+ * @generated from field: string step_id = 2;
244
+ */
245
+ stepId: string;
246
+ /**
247
+ * @generated from field: google.protobuf.Struct output = 3;
248
+ */
249
+ output?: JsonObject;
250
+ /**
251
+ * @generated from field: int32 duration_ms = 4;
252
+ */
253
+ durationMs: number;
254
+ };
255
+ /**
256
+ * Describes the message ironflow.v1.StepCompleted.
257
+ * Use `create(StepCompletedSchema)` to create a new message.
258
+ */
259
+ export declare const StepCompletedSchema: GenMessage<StepCompleted>;
260
+ /**
261
+ * @generated from message ironflow.v1.StepFailed
262
+ */
263
+ export type StepFailed = Message<"ironflow.v1.StepFailed"> & {
264
+ /**
265
+ * @generated from field: string job_id = 1;
266
+ */
267
+ jobId: string;
268
+ /**
269
+ * @generated from field: string step_id = 2;
270
+ */
271
+ stepId: string;
272
+ /**
273
+ * @generated from field: ironflow.v1.Error error = 3;
274
+ */
275
+ error?: Error;
276
+ /**
277
+ * @generated from field: int32 duration_ms = 4;
278
+ */
279
+ durationMs: number;
280
+ };
281
+ /**
282
+ * Describes the message ironflow.v1.StepFailed.
283
+ * Use `create(StepFailedSchema)` to create a new message.
284
+ */
285
+ export declare const StepFailedSchema: GenMessage<StepFailed>;
286
+ /**
287
+ * @generated from message ironflow.v1.StepYielded
288
+ */
289
+ export type StepYielded = Message<"ironflow.v1.StepYielded"> & {
290
+ /**
291
+ * @generated from field: string job_id = 1;
292
+ */
293
+ jobId: string;
294
+ /**
295
+ * @generated from field: string step_id = 2;
296
+ */
297
+ stepId: string;
298
+ /**
299
+ * @generated from oneof ironflow.v1.StepYielded.yield_info
300
+ */
301
+ yieldInfo: {
302
+ /**
303
+ * @generated from field: ironflow.v1.SleepYield sleep = 3;
304
+ */
305
+ value: SleepYield;
306
+ case: "sleep";
307
+ } | {
308
+ /**
309
+ * @generated from field: ironflow.v1.WaitEventYield wait_event = 4;
310
+ */
311
+ value: WaitEventYield;
312
+ case: "waitEvent";
313
+ } | {
314
+ case: undefined;
315
+ value?: undefined;
316
+ };
317
+ };
318
+ /**
319
+ * Describes the message ironflow.v1.StepYielded.
320
+ * Use `create(StepYieldedSchema)` to create a new message.
321
+ */
322
+ export declare const StepYieldedSchema: GenMessage<StepYielded>;
323
+ /**
324
+ * @generated from message ironflow.v1.SleepYield
325
+ */
326
+ export type SleepYield = Message<"ironflow.v1.SleepYield"> & {
327
+ /**
328
+ * @generated from field: google.protobuf.Timestamp until = 1;
329
+ */
330
+ until?: Timestamp;
331
+ };
332
+ /**
333
+ * Describes the message ironflow.v1.SleepYield.
334
+ * Use `create(SleepYieldSchema)` to create a new message.
335
+ */
336
+ export declare const SleepYieldSchema: GenMessage<SleepYield>;
337
+ /**
338
+ * @generated from message ironflow.v1.WaitEventYield
339
+ */
340
+ export type WaitEventYield = Message<"ironflow.v1.WaitEventYield"> & {
341
+ /**
342
+ * @generated from field: string event_name = 1;
343
+ */
344
+ eventName: string;
345
+ /**
346
+ * @generated from field: string match_expression = 2;
347
+ */
348
+ matchExpression: string;
349
+ /**
350
+ * @generated from field: string match_value = 3;
351
+ */
352
+ matchValue: string;
353
+ /**
354
+ * @generated from field: google.protobuf.Timestamp timeout = 4;
355
+ */
356
+ timeout?: Timestamp;
357
+ };
358
+ /**
359
+ * Describes the message ironflow.v1.WaitEventYield.
360
+ * Use `create(WaitEventYieldSchema)` to create a new message.
361
+ */
362
+ export declare const WaitEventYieldSchema: GenMessage<WaitEventYield>;
363
+ /**
364
+ * @generated from message ironflow.v1.JobCompleted
365
+ */
366
+ export type JobCompleted = Message<"ironflow.v1.JobCompleted"> & {
367
+ /**
368
+ * @generated from field: string job_id = 1;
369
+ */
370
+ jobId: string;
371
+ /**
372
+ * @generated from field: google.protobuf.Struct output = 2;
373
+ */
374
+ output?: JsonObject;
375
+ /**
376
+ * @generated from field: int32 duration_ms = 3;
377
+ */
378
+ durationMs: number;
379
+ };
380
+ /**
381
+ * Describes the message ironflow.v1.JobCompleted.
382
+ * Use `create(JobCompletedSchema)` to create a new message.
383
+ */
384
+ export declare const JobCompletedSchema: GenMessage<JobCompleted>;
385
+ /**
386
+ * @generated from message ironflow.v1.JobFailed
387
+ */
388
+ export type JobFailed = Message<"ironflow.v1.JobFailed"> & {
389
+ /**
390
+ * @generated from field: string job_id = 1;
391
+ */
392
+ jobId: string;
393
+ /**
394
+ * @generated from field: ironflow.v1.Error error = 2;
395
+ */
396
+ error?: Error;
397
+ /**
398
+ * @generated from field: int32 duration_ms = 3;
399
+ */
400
+ durationMs: number;
401
+ };
402
+ /**
403
+ * Describes the message ironflow.v1.JobFailed.
404
+ * Use `create(JobFailedSchema)` to create a new message.
405
+ */
406
+ export declare const JobFailedSchema: GenMessage<JobFailed>;
407
+ /**
408
+ * @generated from message ironflow.v1.JobAck
409
+ */
410
+ export type JobAck = Message<"ironflow.v1.JobAck"> & {
411
+ /**
412
+ * @generated from field: string job_id = 1;
413
+ */
414
+ jobId: string;
415
+ };
416
+ /**
417
+ * Describes the message ironflow.v1.JobAck.
418
+ * Use `create(JobAckSchema)` to create a new message.
419
+ */
420
+ export declare const JobAckSchema: GenMessage<JobAck>;
421
+ /**
422
+ * @generated from message ironflow.v1.EngineMessage
423
+ */
424
+ export type EngineMessage = Message<"ironflow.v1.EngineMessage"> & {
425
+ /**
426
+ * @generated from oneof ironflow.v1.EngineMessage.payload
427
+ */
428
+ payload: {
429
+ /**
430
+ * @generated from field: ironflow.v1.WorkerRegistered registered = 1;
431
+ */
432
+ value: WorkerRegistered;
433
+ case: "registered";
434
+ } | {
435
+ /**
436
+ * @generated from field: ironflow.v1.JobAssignment job = 2;
437
+ */
438
+ value: JobAssignment;
439
+ case: "job";
440
+ } | {
441
+ /**
442
+ * @generated from field: ironflow.v1.StepAck step_ack = 3;
443
+ */
444
+ value: StepAck;
445
+ case: "stepAck";
446
+ } | {
447
+ /**
448
+ * @generated from field: ironflow.v1.ResumeJob resume = 4;
449
+ */
450
+ value: ResumeJob;
451
+ case: "resume";
452
+ } | {
453
+ /**
454
+ * @generated from field: ironflow.v1.CancelJob cancel = 5;
455
+ */
456
+ value: CancelJob;
457
+ case: "cancel";
458
+ } | {
459
+ /**
460
+ * @generated from field: ironflow.v1.Shutdown shutdown = 6;
461
+ */
462
+ value: Shutdown;
463
+ case: "shutdown";
464
+ } | {
465
+ case: undefined;
466
+ value?: undefined;
467
+ };
468
+ };
469
+ /**
470
+ * Describes the message ironflow.v1.EngineMessage.
471
+ * Use `create(EngineMessageSchema)` to create a new message.
472
+ */
473
+ export declare const EngineMessageSchema: GenMessage<EngineMessage>;
474
+ /**
475
+ * @generated from message ironflow.v1.WorkerRegistered
476
+ */
477
+ export type WorkerRegistered = Message<"ironflow.v1.WorkerRegistered"> & {
478
+ /**
479
+ * @generated from field: string worker_id = 1;
480
+ */
481
+ workerId: string;
482
+ /**
483
+ * Required heartbeat frequency in ms
484
+ *
485
+ * @generated from field: int32 heartbeat_interval_ms = 2;
486
+ */
487
+ heartbeatIntervalMs: number;
488
+ };
489
+ /**
490
+ * Describes the message ironflow.v1.WorkerRegistered.
491
+ * Use `create(WorkerRegisteredSchema)` to create a new message.
492
+ */
493
+ export declare const WorkerRegisteredSchema: GenMessage<WorkerRegistered>;
494
+ /**
495
+ * @generated from message ironflow.v1.JobAssignment
496
+ */
497
+ export type JobAssignment = Message<"ironflow.v1.JobAssignment"> & {
498
+ /**
499
+ * @generated from field: string job_id = 1;
500
+ */
501
+ jobId: string;
502
+ /**
503
+ * @generated from field: string run_id = 2;
504
+ */
505
+ runId: string;
506
+ /**
507
+ * @generated from field: string function_id = 3;
508
+ */
509
+ functionId: string;
510
+ /**
511
+ * @generated from field: ironflow.v1.Event event = 4;
512
+ */
513
+ event?: Event;
514
+ /**
515
+ * Memoized steps
516
+ *
517
+ * @generated from field: repeated ironflow.v1.CompletedStep completed_steps = 5;
518
+ */
519
+ completedSteps: CompletedStep[];
520
+ /**
521
+ * @generated from field: string actor_id = 6;
522
+ */
523
+ actorId: string;
524
+ /**
525
+ * @generated from field: int32 attempt = 7;
526
+ */
527
+ attempt: number;
528
+ /**
529
+ * @generated from field: ironflow.v1.JobContext context = 8;
530
+ */
531
+ context?: JobContext;
532
+ };
533
+ /**
534
+ * Describes the message ironflow.v1.JobAssignment.
535
+ * Use `create(JobAssignmentSchema)` to create a new message.
536
+ */
537
+ export declare const JobAssignmentSchema: GenMessage<JobAssignment>;
538
+ /**
539
+ * @generated from message ironflow.v1.CompletedStep
540
+ */
541
+ export type CompletedStep = Message<"ironflow.v1.CompletedStep"> & {
542
+ /**
543
+ * @generated from field: string step_id = 1;
544
+ */
545
+ stepId: string;
546
+ /**
547
+ * @generated from field: string name = 2;
548
+ */
549
+ name: string;
550
+ /**
551
+ * @generated from field: google.protobuf.Struct output = 3;
552
+ */
553
+ output?: JsonObject;
554
+ };
555
+ /**
556
+ * Describes the message ironflow.v1.CompletedStep.
557
+ * Use `create(CompletedStepSchema)` to create a new message.
558
+ */
559
+ export declare const CompletedStepSchema: GenMessage<CompletedStep>;
560
+ /**
561
+ * @generated from message ironflow.v1.JobContext
562
+ */
563
+ export type JobContext = Message<"ironflow.v1.JobContext"> & {
564
+ /**
565
+ * @generated from field: string trace_id = 1;
566
+ */
567
+ traceId: string;
568
+ /**
569
+ * @generated from field: map<string, string> metadata = 2;
570
+ */
571
+ metadata: {
572
+ [key: string]: string;
573
+ };
574
+ };
575
+ /**
576
+ * Describes the message ironflow.v1.JobContext.
577
+ * Use `create(JobContextSchema)` to create a new message.
578
+ */
579
+ export declare const JobContextSchema: GenMessage<JobContext>;
580
+ /**
581
+ * @generated from message ironflow.v1.StepAck
582
+ */
583
+ export type StepAck = Message<"ironflow.v1.StepAck"> & {
584
+ /**
585
+ * @generated from field: string step_id = 1;
586
+ */
587
+ stepId: string;
588
+ /**
589
+ * @generated from field: bool accepted = 2;
590
+ */
591
+ accepted: boolean;
592
+ /**
593
+ * @generated from field: string error = 3;
594
+ */
595
+ error: string;
596
+ };
597
+ /**
598
+ * Describes the message ironflow.v1.StepAck.
599
+ * Use `create(StepAckSchema)` to create a new message.
600
+ */
601
+ export declare const StepAckSchema: GenMessage<StepAck>;
602
+ /**
603
+ * @generated from message ironflow.v1.ResumeJob
604
+ */
605
+ export type ResumeJob = Message<"ironflow.v1.ResumeJob"> & {
606
+ /**
607
+ * @generated from field: string job_id = 1;
608
+ */
609
+ jobId: string;
610
+ /**
611
+ * @generated from field: string step_id = 2;
612
+ */
613
+ stepId: string;
614
+ /**
615
+ * "sleep" or "wait_event"
616
+ *
617
+ * @generated from field: string resume_type = 3;
618
+ */
619
+ resumeType: string;
620
+ /**
621
+ * For wait_event: the received event
622
+ *
623
+ * @generated from field: google.protobuf.Struct resume_data = 4;
624
+ */
625
+ resumeData?: JsonObject;
626
+ };
627
+ /**
628
+ * Describes the message ironflow.v1.ResumeJob.
629
+ * Use `create(ResumeJobSchema)` to create a new message.
630
+ */
631
+ export declare const ResumeJobSchema: GenMessage<ResumeJob>;
632
+ /**
633
+ * @generated from message ironflow.v1.CancelJob
634
+ */
635
+ export type CancelJob = Message<"ironflow.v1.CancelJob"> & {
636
+ /**
637
+ * @generated from field: string job_id = 1;
638
+ */
639
+ jobId: string;
640
+ /**
641
+ * @generated from field: string reason = 2;
642
+ */
643
+ reason: string;
644
+ };
645
+ /**
646
+ * Describes the message ironflow.v1.CancelJob.
647
+ * Use `create(CancelJobSchema)` to create a new message.
648
+ */
649
+ export declare const CancelJobSchema: GenMessage<CancelJob>;
650
+ /**
651
+ * @generated from message ironflow.v1.Shutdown
652
+ */
653
+ export type Shutdown = Message<"ironflow.v1.Shutdown"> & {
654
+ /**
655
+ * @generated from field: string reason = 1;
656
+ */
657
+ reason: string;
658
+ /**
659
+ * Time to complete active jobs
660
+ *
661
+ * @generated from field: int32 drain_timeout_ms = 2;
662
+ */
663
+ drainTimeoutMs: number;
664
+ };
665
+ /**
666
+ * Describes the message ironflow.v1.Shutdown.
667
+ * Use `create(ShutdownSchema)` to create a new message.
668
+ */
669
+ export declare const ShutdownSchema: GenMessage<Shutdown>;
670
+ /**
671
+ * @generated from service ironflow.v1.WorkerService
672
+ */
673
+ export declare const WorkerService: GenService<{
674
+ /**
675
+ * Bidirectional stream for worker communication
676
+ *
677
+ * @generated from rpc ironflow.v1.WorkerService.Connect
678
+ */
679
+ connect: {
680
+ methodKind: "bidi_streaming";
681
+ input: typeof WorkerMessageSchema;
682
+ output: typeof EngineMessageSchema;
683
+ };
684
+ }>;
685
+ //# sourceMappingURL=worker_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker_pb.d.ts","sourceRoot":"","sources":["../../../../src/gen/ironflow/v1/worker_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEpF,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO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