@hatchet-dev/typescript-sdk 1.33.2 → 1.34.0-alpha.1

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 (53) hide show
  1. package/clients/admin/admin-client.d.ts +6 -1
  2. package/clients/admin/admin-client.js +9 -4
  3. package/clients/admin/rpc.d.ts +13 -0
  4. package/clients/admin/rpc.js +23 -0
  5. package/clients/event/event-client.d.ts +2 -1
  6. package/clients/event/event-client.js +6 -3
  7. package/clients/event/rpc.d.ts +7 -0
  8. package/clients/event/rpc.js +13 -0
  9. package/clients/hatchet-client/hatchet-logger.js +2 -1
  10. package/clients/rest/generated/data-contracts.d.ts +2 -0
  11. package/clients/transport/grpc-target.d.ts +19 -0
  12. package/clients/transport/grpc-target.js +85 -0
  13. package/clients/transport/index.d.ts +4 -0
  14. package/clients/transport/index.js +15 -0
  15. package/clients/transport/message-bridge.d.ts +32 -0
  16. package/clients/transport/message-bridge.js +20 -0
  17. package/clients/transport/node-transport.d.ts +50 -0
  18. package/clients/transport/node-transport.js +123 -0
  19. package/clients/transport/transport.d.ts +14 -0
  20. package/clients/transport/transport.js +24 -0
  21. package/clients/transport/ts-proto-client.d.ts +41 -0
  22. package/clients/transport/ts-proto-client.js +143 -0
  23. package/core/index.d.ts +9 -0
  24. package/core/index.js +12 -0
  25. package/dist/check-exports.mjs +171 -0
  26. package/legacy/legacy-client.d.ts +4 -0
  27. package/legacy/legacy-client.js +5 -3
  28. package/package.json +95 -2
  29. package/protoc-es/dispatcher/dispatcher_pb.d.ts +1357 -0
  30. package/protoc-es/dispatcher/dispatcher_pb.js +371 -0
  31. package/protoc-es/events/events_pb.d.ts +294 -0
  32. package/protoc-es/events/events_pb.js +61 -0
  33. package/protoc-es/google/rpc/status_pb.d.ts +48 -0
  34. package/protoc-es/google/rpc/status_pb.js +27 -0
  35. package/protoc-es/v1/dispatcher_pb.d.ts +676 -0
  36. package/protoc-es/v1/dispatcher_pb.js +155 -0
  37. package/protoc-es/v1/shared/condition_pb.d.ts +166 -0
  38. package/protoc-es/v1/shared/condition_pb.js +68 -0
  39. package/protoc-es/v1/shared/trigger_pb.d.ts +160 -0
  40. package/protoc-es/v1/shared/trigger_pb.js +55 -0
  41. package/protoc-es/v1/workflows_pb.d.ts +995 -0
  42. package/protoc-es/v1/workflows_pb.js +280 -0
  43. package/protoc-es/workflows/workflows_pb.d.ts +715 -0
  44. package/protoc-es/workflows/workflows_pb.js +216 -0
  45. package/scripts/check-exports.mjs +171 -0
  46. package/util/grpc-error.d.ts +3 -1
  47. package/util/grpc-error.js +13 -4
  48. package/v1/client/admin.d.ts +2 -1
  49. package/v1/client/admin.js +34 -114
  50. package/v1/client/client.d.ts +1 -0
  51. package/v1/client/client.js +8 -5
  52. package/version.d.ts +1 -1
  53. package/version.js +1 -1
@@ -0,0 +1,1357 @@
1
+ import type { GenEnum, 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 dispatcher/dispatcher.proto.
6
+ */
7
+ export declare const file_dispatcher_dispatcher: GenFile;
8
+ /**
9
+ * @generated from message WorkerLabels
10
+ */
11
+ export type WorkerLabels = Message<"WorkerLabels"> & {
12
+ /**
13
+ * value of the label
14
+ *
15
+ * @generated from field: optional string str_value = 1;
16
+ */
17
+ strValue?: string | undefined;
18
+ /**
19
+ * @generated from field: optional int32 int_value = 2;
20
+ */
21
+ intValue?: number | undefined;
22
+ };
23
+ /**
24
+ * Describes the message WorkerLabels.
25
+ * Use `create(WorkerLabelsSchema)` to create a new message.
26
+ */
27
+ export declare const WorkerLabelsSchema: GenMessage<WorkerLabels>;
28
+ /**
29
+ * @generated from message RuntimeInfo
30
+ */
31
+ export type RuntimeInfo = Message<"RuntimeInfo"> & {
32
+ /**
33
+ * @generated from field: optional string sdk_version = 1;
34
+ */
35
+ sdkVersion?: string | undefined;
36
+ /**
37
+ * @generated from field: optional SDKS language = 2;
38
+ */
39
+ language?: SDKS | undefined;
40
+ /**
41
+ * @generated from field: optional string language_version = 3;
42
+ */
43
+ languageVersion?: string | undefined;
44
+ /**
45
+ * @generated from field: optional string os = 4;
46
+ */
47
+ os?: string | undefined;
48
+ /**
49
+ * @generated from field: optional string extra = 5;
50
+ */
51
+ extra?: string | undefined;
52
+ };
53
+ /**
54
+ * Describes the message RuntimeInfo.
55
+ * Use `create(RuntimeInfoSchema)` to create a new message.
56
+ */
57
+ export declare const RuntimeInfoSchema: GenMessage<RuntimeInfo>;
58
+ /**
59
+ * @generated from message WorkerRegisterRequest
60
+ */
61
+ export type WorkerRegisterRequest = Message<"WorkerRegisterRequest"> & {
62
+ /**
63
+ * the name of the worker
64
+ *
65
+ * @generated from field: string worker_name = 1;
66
+ */
67
+ workerName: string;
68
+ /**
69
+ * a list of actions that this worker can run
70
+ *
71
+ * @generated from field: repeated string actions = 2;
72
+ */
73
+ actions: string[];
74
+ /**
75
+ * (optional) the services for this worker
76
+ *
77
+ * @generated from field: repeated string services = 3;
78
+ */
79
+ services: string[];
80
+ /**
81
+ * (optional) the number of default slots this worker can handle
82
+ * deprecated: use slot_config instead
83
+ *
84
+ * @generated from field: optional int32 slots = 4;
85
+ */
86
+ slots?: number | undefined;
87
+ /**
88
+ * (optional) worker labels (i.e. state or other metadata)
89
+ *
90
+ * @generated from field: map<string, WorkerLabels> labels = 5;
91
+ */
92
+ labels: {
93
+ [key: string]: WorkerLabels;
94
+ };
95
+ /**
96
+ * (optional) webhookId is the id of the webhook that the worker is associated with (if any)
97
+ *
98
+ * @generated from field: optional string webhook_id = 6;
99
+ */
100
+ webhookId?: string | undefined;
101
+ /**
102
+ * (optional) information regarding the runtime environment of the worker
103
+ *
104
+ * @generated from field: optional RuntimeInfo runtime_info = 7;
105
+ */
106
+ runtimeInfo?: RuntimeInfo | undefined;
107
+ /**
108
+ * (optional) slot config for this worker (slot_type -> units)
109
+ *
110
+ * @generated from field: map<string, int32> slot_config = 9;
111
+ */
112
+ slotConfig: {
113
+ [key: string]: number;
114
+ };
115
+ };
116
+ /**
117
+ * Describes the message WorkerRegisterRequest.
118
+ * Use `create(WorkerRegisterRequestSchema)` to create a new message.
119
+ */
120
+ export declare const WorkerRegisterRequestSchema: GenMessage<WorkerRegisterRequest>;
121
+ /**
122
+ * @generated from message WorkerRegisterResponse
123
+ */
124
+ export type WorkerRegisterResponse = Message<"WorkerRegisterResponse"> & {
125
+ /**
126
+ * the tenant id
127
+ *
128
+ * @generated from field: string tenant_id = 1;
129
+ */
130
+ tenantId: string;
131
+ /**
132
+ * the id of the worker
133
+ *
134
+ * @generated from field: string worker_id = 2;
135
+ */
136
+ workerId: string;
137
+ /**
138
+ * the name of the worker
139
+ *
140
+ * @generated from field: string worker_name = 3;
141
+ */
142
+ workerName: string;
143
+ };
144
+ /**
145
+ * Describes the message WorkerRegisterResponse.
146
+ * Use `create(WorkerRegisterResponseSchema)` to create a new message.
147
+ */
148
+ export declare const WorkerRegisterResponseSchema: GenMessage<WorkerRegisterResponse>;
149
+ /**
150
+ * @generated from message UpsertWorkerLabelsRequest
151
+ */
152
+ export type UpsertWorkerLabelsRequest = Message<"UpsertWorkerLabelsRequest"> & {
153
+ /**
154
+ * the name of the worker
155
+ *
156
+ * @generated from field: string worker_id = 1;
157
+ */
158
+ workerId: string;
159
+ /**
160
+ * (optional) the worker labels
161
+ *
162
+ * @generated from field: map<string, WorkerLabels> labels = 2;
163
+ */
164
+ labels: {
165
+ [key: string]: WorkerLabels;
166
+ };
167
+ };
168
+ /**
169
+ * Describes the message UpsertWorkerLabelsRequest.
170
+ * Use `create(UpsertWorkerLabelsRequestSchema)` to create a new message.
171
+ */
172
+ export declare const UpsertWorkerLabelsRequestSchema: GenMessage<UpsertWorkerLabelsRequest>;
173
+ /**
174
+ * @generated from message UpsertWorkerLabelsResponse
175
+ */
176
+ export type UpsertWorkerLabelsResponse = Message<"UpsertWorkerLabelsResponse"> & {
177
+ /**
178
+ * the tenant id
179
+ *
180
+ * @generated from field: string tenant_id = 1;
181
+ */
182
+ tenantId: string;
183
+ /**
184
+ * the id of the worker
185
+ *
186
+ * @generated from field: string worker_id = 2;
187
+ */
188
+ workerId: string;
189
+ };
190
+ /**
191
+ * Describes the message UpsertWorkerLabelsResponse.
192
+ * Use `create(UpsertWorkerLabelsResponseSchema)` to create a new message.
193
+ */
194
+ export declare const UpsertWorkerLabelsResponseSchema: GenMessage<UpsertWorkerLabelsResponse>;
195
+ /**
196
+ * @generated from message AssignedAction
197
+ */
198
+ export type AssignedAction = Message<"AssignedAction"> & {
199
+ /**
200
+ * the tenant id
201
+ *
202
+ * @generated from field: string tenant_id = 1;
203
+ */
204
+ tenantId: string;
205
+ /**
206
+ * the workflow run id (optional)
207
+ *
208
+ * @generated from field: string workflow_run_id = 2;
209
+ */
210
+ workflowRunId: string;
211
+ /**
212
+ * the get group key run id (optional)
213
+ *
214
+ * @generated from field: string get_group_key_run_id = 3;
215
+ */
216
+ getGroupKeyRunId: string;
217
+ /**
218
+ * the job id
219
+ *
220
+ * @generated from field: string job_id = 4;
221
+ */
222
+ jobId: string;
223
+ /**
224
+ * the job name
225
+ *
226
+ * @generated from field: string job_name = 5;
227
+ */
228
+ jobName: string;
229
+ /**
230
+ * the job run id
231
+ *
232
+ * @generated from field: string job_run_id = 6;
233
+ */
234
+ jobRunId: string;
235
+ /**
236
+ * the task id
237
+ *
238
+ * @generated from field: string task_id = 7;
239
+ */
240
+ taskId: string;
241
+ /**
242
+ * the task external run id
243
+ *
244
+ * @generated from field: string task_run_external_id = 8;
245
+ */
246
+ taskRunExternalId: string;
247
+ /**
248
+ * the action id
249
+ *
250
+ * @generated from field: string action_id = 9;
251
+ */
252
+ actionId: string;
253
+ /**
254
+ * the action type
255
+ *
256
+ * @generated from field: ActionType action_type = 10;
257
+ */
258
+ actionType: ActionType;
259
+ /**
260
+ * the action payload
261
+ *
262
+ * @generated from field: string action_payload = 11;
263
+ */
264
+ actionPayload: string;
265
+ /**
266
+ * the task name
267
+ *
268
+ * @generated from field: string task_name = 12;
269
+ */
270
+ taskName: string;
271
+ /**
272
+ * the count number of the retry attempt
273
+ *
274
+ * @generated from field: int32 retry_count = 13;
275
+ */
276
+ retryCount: number;
277
+ /**
278
+ * (optional) additional metadata set on the workflow
279
+ *
280
+ * @generated from field: optional string additional_metadata = 14;
281
+ */
282
+ additionalMetadata?: string | undefined;
283
+ /**
284
+ * (optional) the child workflow index (if this is a child workflow)
285
+ *
286
+ * @generated from field: optional int32 child_workflow_index = 15;
287
+ */
288
+ childWorkflowIndex?: number | undefined;
289
+ /**
290
+ * (optional) the child workflow key (if this is a child workflow)
291
+ *
292
+ * @generated from field: optional string child_workflow_key = 16;
293
+ */
294
+ childWorkflowKey?: string | undefined;
295
+ /**
296
+ * (optional) the parent workflow run id (if this is a child workflow)
297
+ *
298
+ * @generated from field: optional string parent_workflow_run_id = 17;
299
+ */
300
+ parentWorkflowRunId?: string | undefined;
301
+ /**
302
+ * (optional) the priority of the run
303
+ *
304
+ * @generated from field: int32 priority = 18;
305
+ */
306
+ priority: number;
307
+ /**
308
+ * (optional) the workflow id
309
+ *
310
+ * @generated from field: optional string workflow_id = 19;
311
+ */
312
+ workflowId?: string | undefined;
313
+ /**
314
+ * (optional) the workflow version id
315
+ *
316
+ * @generated from field: optional string workflow_version_id = 20;
317
+ */
318
+ workflowVersionId?: string | undefined;
319
+ /**
320
+ * (optional) the invocation count for durable task events (required for durable events, otherwise null)
321
+ *
322
+ * @generated from field: optional int32 durable_task_invocation_count = 21;
323
+ */
324
+ durableTaskInvocationCount?: number | undefined;
325
+ /**
326
+ * (optional) the external id of the event that triggered this workflow run (if any)
327
+ *
328
+ * @generated from field: optional string triggering_event_external_id = 22;
329
+ */
330
+ triggeringEventExternalId?: string | undefined;
331
+ /**
332
+ * (optional) the key of the event that triggered this workflow run (if any)
333
+ *
334
+ * @generated from field: optional string triggering_event_key = 23;
335
+ */
336
+ triggeringEventKey?: string | undefined;
337
+ /**
338
+ * (optional) the batch identifier if this task is part of a batch
339
+ *
340
+ * @generated from field: optional string batchId = 24;
341
+ */
342
+ batchId?: string | undefined;
343
+ /**
344
+ * (optional) the total number of tasks in the batch
345
+ *
346
+ * @generated from field: optional int32 batchSize = 25;
347
+ */
348
+ batchSize?: number | undefined;
349
+ /**
350
+ * (optional) the index of the task within the batch
351
+ *
352
+ * @generated from field: optional int32 batchIndex = 26;
353
+ */
354
+ batchIndex?: number | undefined;
355
+ /**
356
+ * (optional) payload for starting a batch execution
357
+ *
358
+ * @generated from field: optional BatchStartPayload batchStartPayload = 27;
359
+ */
360
+ batchStartPayload?: BatchStartPayload | undefined;
361
+ /**
362
+ * (optional) the partition key used for batching
363
+ *
364
+ * @generated from field: optional string batchKey = 28;
365
+ */
366
+ batchKey?: string | undefined;
367
+ /**
368
+ * (optional) inserted_at of the assigned task. The DAG operator uses this to prune durable log partitions.
369
+ *
370
+ * @generated from field: optional google.protobuf.Timestamp task_inserted_at = 29;
371
+ */
372
+ taskInsertedAt?: Timestamp | undefined;
373
+ };
374
+ /**
375
+ * Describes the message AssignedAction.
376
+ * Use `create(AssignedActionSchema)` to create a new message.
377
+ */
378
+ export declare const AssignedActionSchema: GenMessage<AssignedAction>;
379
+ /**
380
+ * @generated from message BatchStartPayload
381
+ */
382
+ export type BatchStartPayload = Message<"BatchStartPayload"> & {
383
+ /**
384
+ * @generated from field: string triggerReason = 1;
385
+ */
386
+ triggerReason: string;
387
+ /**
388
+ * @generated from field: google.protobuf.Timestamp triggerTime = 2;
389
+ */
390
+ triggerTime?: Timestamp | undefined;
391
+ /**
392
+ * @generated from field: int32 expectedSize = 3;
393
+ */
394
+ expectedSize: number;
395
+ };
396
+ /**
397
+ * Describes the message BatchStartPayload.
398
+ * Use `create(BatchStartPayloadSchema)` to create a new message.
399
+ */
400
+ export declare const BatchStartPayloadSchema: GenMessage<BatchStartPayload>;
401
+ /**
402
+ * @generated from message WorkerListenRequest
403
+ */
404
+ export type WorkerListenRequest = Message<"WorkerListenRequest"> & {
405
+ /**
406
+ * the id of the worker
407
+ *
408
+ * @generated from field: string worker_id = 1;
409
+ */
410
+ workerId: string;
411
+ };
412
+ /**
413
+ * Describes the message WorkerListenRequest.
414
+ * Use `create(WorkerListenRequestSchema)` to create a new message.
415
+ */
416
+ export declare const WorkerListenRequestSchema: GenMessage<WorkerListenRequest>;
417
+ /**
418
+ * @generated from message WorkerUnsubscribeRequest
419
+ */
420
+ export type WorkerUnsubscribeRequest = Message<"WorkerUnsubscribeRequest"> & {
421
+ /**
422
+ * the id of the worker
423
+ *
424
+ * @generated from field: string worker_id = 1;
425
+ */
426
+ workerId: string;
427
+ };
428
+ /**
429
+ * Describes the message WorkerUnsubscribeRequest.
430
+ * Use `create(WorkerUnsubscribeRequestSchema)` to create a new message.
431
+ */
432
+ export declare const WorkerUnsubscribeRequestSchema: GenMessage<WorkerUnsubscribeRequest>;
433
+ /**
434
+ * @generated from message WorkerUnsubscribeResponse
435
+ */
436
+ export type WorkerUnsubscribeResponse = Message<"WorkerUnsubscribeResponse"> & {
437
+ /**
438
+ * the tenant id to unsubscribe from
439
+ *
440
+ * @generated from field: string tenant_id = 1;
441
+ */
442
+ tenantId: string;
443
+ /**
444
+ * the id of the worker
445
+ *
446
+ * @generated from field: string worker_id = 2;
447
+ */
448
+ workerId: string;
449
+ };
450
+ /**
451
+ * Describes the message WorkerUnsubscribeResponse.
452
+ * Use `create(WorkerUnsubscribeResponseSchema)` to create a new message.
453
+ */
454
+ export declare const WorkerUnsubscribeResponseSchema: GenMessage<WorkerUnsubscribeResponse>;
455
+ /**
456
+ * @generated from message GroupKeyActionEvent
457
+ */
458
+ export type GroupKeyActionEvent = Message<"GroupKeyActionEvent"> & {
459
+ /**
460
+ * the id of the worker
461
+ *
462
+ * @generated from field: string worker_id = 1;
463
+ */
464
+ workerId: string;
465
+ /**
466
+ * the id of the job
467
+ *
468
+ * @generated from field: string workflow_run_id = 2;
469
+ */
470
+ workflowRunId: string;
471
+ /**
472
+ * @generated from field: string get_group_key_run_id = 3;
473
+ */
474
+ getGroupKeyRunId: string;
475
+ /**
476
+ * the action id
477
+ *
478
+ * @generated from field: string action_id = 4;
479
+ */
480
+ actionId: string;
481
+ /**
482
+ * @generated from field: google.protobuf.Timestamp event_timestamp = 5;
483
+ */
484
+ eventTimestamp?: Timestamp | undefined;
485
+ /**
486
+ * the task event type
487
+ *
488
+ * @generated from field: GroupKeyActionEventType event_type = 6;
489
+ */
490
+ eventType: GroupKeyActionEventType;
491
+ /**
492
+ * the event payload
493
+ *
494
+ * @generated from field: string event_payload = 7;
495
+ */
496
+ eventPayload: string;
497
+ };
498
+ /**
499
+ * Describes the message GroupKeyActionEvent.
500
+ * Use `create(GroupKeyActionEventSchema)` to create a new message.
501
+ */
502
+ export declare const GroupKeyActionEventSchema: GenMessage<GroupKeyActionEvent>;
503
+ /**
504
+ * @generated from message StepActionEvent
505
+ */
506
+ export type StepActionEvent = Message<"StepActionEvent"> & {
507
+ /**
508
+ * the id of the worker
509
+ *
510
+ * @generated from field: string worker_id = 1;
511
+ */
512
+ workerId: string;
513
+ /**
514
+ * the id of the job
515
+ *
516
+ * @generated from field: string job_id = 2;
517
+ */
518
+ jobId: string;
519
+ /**
520
+ * the job run id
521
+ *
522
+ * @generated from field: string job_run_id = 3;
523
+ */
524
+ jobRunId: string;
525
+ /**
526
+ * the id of the task
527
+ *
528
+ * @generated from field: string task_id = 4;
529
+ */
530
+ taskId: string;
531
+ /**
532
+ * the task external run id
533
+ *
534
+ * @generated from field: string task_run_external_id = 5;
535
+ */
536
+ taskRunExternalId: string;
537
+ /**
538
+ * the action id
539
+ *
540
+ * @generated from field: string action_id = 6;
541
+ */
542
+ actionId: string;
543
+ /**
544
+ * @generated from field: google.protobuf.Timestamp event_timestamp = 7;
545
+ */
546
+ eventTimestamp?: Timestamp | undefined;
547
+ /**
548
+ * the task event type
549
+ *
550
+ * @generated from field: StepActionEventType event_type = 8;
551
+ */
552
+ eventType: StepActionEventType;
553
+ /**
554
+ * the event payload
555
+ *
556
+ * @generated from field: string event_payload = 9;
557
+ */
558
+ eventPayload: string;
559
+ /**
560
+ * the retry count
561
+ *
562
+ * @generated from field: optional int32 retry_count = 10;
563
+ */
564
+ retryCount?: number | undefined;
565
+ /**
566
+ * a flag indicating if the task should _not_ be retried
567
+ *
568
+ * @generated from field: optional bool should_not_retry = 11;
569
+ */
570
+ shouldNotRetry?: boolean | undefined;
571
+ };
572
+ /**
573
+ * Describes the message StepActionEvent.
574
+ * Use `create(StepActionEventSchema)` to create a new message.
575
+ */
576
+ export declare const StepActionEventSchema: GenMessage<StepActionEvent>;
577
+ /**
578
+ * @generated from message BatchActionEventItem
579
+ */
580
+ export type BatchActionEventItem = Message<"BatchActionEventItem"> & {
581
+ /**
582
+ * the task external run id
583
+ *
584
+ * @generated from field: string task_run_external_id = 1;
585
+ */
586
+ taskRunExternalId: string;
587
+ /**
588
+ * the event payload (e.g. serialized error for FAILED; unused for STARTED/CANCELLED)
589
+ *
590
+ * @generated from field: string event_payload = 2;
591
+ */
592
+ eventPayload: string;
593
+ /**
594
+ * the retry count (falls back to the task's current retry count if unset)
595
+ *
596
+ * @generated from field: optional int32 retry_count = 3;
597
+ */
598
+ retryCount?: number | undefined;
599
+ /**
600
+ * a flag indicating if the task should _not_ be retried (FAILED only)
601
+ *
602
+ * @generated from field: optional bool should_not_retry = 4;
603
+ */
604
+ shouldNotRetry?: boolean | undefined;
605
+ };
606
+ /**
607
+ * Describes the message BatchActionEventItem.
608
+ * Use `create(BatchActionEventItemSchema)` to create a new message.
609
+ */
610
+ export declare const BatchActionEventItemSchema: GenMessage<BatchActionEventItem>;
611
+ /**
612
+ * @generated from message BatchActionEvent
613
+ */
614
+ export type BatchActionEvent = Message<"BatchActionEvent"> & {
615
+ /**
616
+ * the id of the worker
617
+ *
618
+ * @generated from field: string worker_id = 1;
619
+ */
620
+ workerId: string;
621
+ /**
622
+ * the id of the job (shared across all items in the batch)
623
+ *
624
+ * @generated from field: string job_id = 2;
625
+ */
626
+ jobId: string;
627
+ /**
628
+ * the action id (shared across all items in the batch)
629
+ *
630
+ * @generated from field: string action_id = 3;
631
+ */
632
+ actionId: string;
633
+ /**
634
+ * (optional) the batch identifier, for observability
635
+ *
636
+ * @generated from field: optional string batch_id = 4;
637
+ */
638
+ batchId?: string | undefined;
639
+ /**
640
+ * @generated from field: google.protobuf.Timestamp event_timestamp = 5;
641
+ */
642
+ eventTimestamp?: Timestamp | undefined;
643
+ /**
644
+ * the task event type -- applies uniformly to every item in this batch
645
+ *
646
+ * @generated from field: StepActionEventType event_type = 6;
647
+ */
648
+ eventType: StepActionEventType;
649
+ /**
650
+ * the items in this batch
651
+ *
652
+ * @generated from field: repeated BatchActionEventItem items = 7;
653
+ */
654
+ items: BatchActionEventItem[];
655
+ };
656
+ /**
657
+ * Describes the message BatchActionEvent.
658
+ * Use `create(BatchActionEventSchema)` to create a new message.
659
+ */
660
+ export declare const BatchActionEventSchema: GenMessage<BatchActionEvent>;
661
+ /**
662
+ * @generated from message ActionEventResponse
663
+ */
664
+ export type ActionEventResponse = Message<"ActionEventResponse"> & {
665
+ /**
666
+ * the tenant id
667
+ *
668
+ * @generated from field: string tenant_id = 1;
669
+ */
670
+ tenantId: string;
671
+ /**
672
+ * the id of the worker
673
+ *
674
+ * @generated from field: string worker_id = 2;
675
+ */
676
+ workerId: string;
677
+ };
678
+ /**
679
+ * Describes the message ActionEventResponse.
680
+ * Use `create(ActionEventResponseSchema)` to create a new message.
681
+ */
682
+ export declare const ActionEventResponseSchema: GenMessage<ActionEventResponse>;
683
+ /**
684
+ * @generated from message SubscribeToWorkflowEventsRequest
685
+ */
686
+ export type SubscribeToWorkflowEventsRequest = Message<"SubscribeToWorkflowEventsRequest"> & {
687
+ /**
688
+ * the id of the workflow run
689
+ *
690
+ * @generated from field: optional string workflow_run_id = 1;
691
+ */
692
+ workflowRunId?: string | undefined;
693
+ /**
694
+ * the key of the additional meta field to subscribe to
695
+ *
696
+ * @generated from field: optional string additional_meta_key = 2;
697
+ */
698
+ additionalMetaKey?: string | undefined;
699
+ /**
700
+ * the value of the additional meta field to subscribe to
701
+ *
702
+ * @generated from field: optional string additional_meta_value = 3;
703
+ */
704
+ additionalMetaValue?: string | undefined;
705
+ };
706
+ /**
707
+ * Describes the message SubscribeToWorkflowEventsRequest.
708
+ * Use `create(SubscribeToWorkflowEventsRequestSchema)` to create a new message.
709
+ */
710
+ export declare const SubscribeToWorkflowEventsRequestSchema: GenMessage<SubscribeToWorkflowEventsRequest>;
711
+ /**
712
+ * @generated from message SubscribeToWorkflowRunsRequest
713
+ */
714
+ export type SubscribeToWorkflowRunsRequest = Message<"SubscribeToWorkflowRunsRequest"> & {
715
+ /**
716
+ * the id of the workflow run
717
+ *
718
+ * @generated from field: string workflow_run_id = 1;
719
+ */
720
+ workflowRunId: string;
721
+ };
722
+ /**
723
+ * Describes the message SubscribeToWorkflowRunsRequest.
724
+ * Use `create(SubscribeToWorkflowRunsRequestSchema)` to create a new message.
725
+ */
726
+ export declare const SubscribeToWorkflowRunsRequestSchema: GenMessage<SubscribeToWorkflowRunsRequest>;
727
+ /**
728
+ * @generated from message WorkflowEvent
729
+ */
730
+ export type WorkflowEvent = Message<"WorkflowEvent"> & {
731
+ /**
732
+ * the id of the workflow run
733
+ *
734
+ * @generated from field: string workflow_run_id = 1;
735
+ */
736
+ workflowRunId: string;
737
+ /**
738
+ * @generated from field: ResourceType resource_type = 2;
739
+ */
740
+ resourceType: ResourceType;
741
+ /**
742
+ * @generated from field: ResourceEventType event_type = 3;
743
+ */
744
+ eventType: ResourceEventType;
745
+ /**
746
+ * @generated from field: string resource_id = 4;
747
+ */
748
+ resourceId: string;
749
+ /**
750
+ * @generated from field: google.protobuf.Timestamp event_timestamp = 5;
751
+ */
752
+ eventTimestamp?: Timestamp | undefined;
753
+ /**
754
+ * the event payload
755
+ *
756
+ * @generated from field: string event_payload = 6;
757
+ */
758
+ eventPayload: string;
759
+ /**
760
+ * whether this is the last event for the workflow run - server
761
+ * will hang up the connection but clients might want to case
762
+ *
763
+ * @generated from field: bool hangup = 7;
764
+ */
765
+ hangup: boolean;
766
+ /**
767
+ * (optional) the max number of retries this task can handle
768
+ *
769
+ * @generated from field: optional int32 task_retries = 8;
770
+ */
771
+ taskRetries?: number | undefined;
772
+ /**
773
+ * (optional) the retry count of this task
774
+ *
775
+ * @generated from field: optional int32 retry_count = 9;
776
+ */
777
+ retryCount?: number | undefined;
778
+ /**
779
+ * @generated from field: optional int64 event_index = 10;
780
+ */
781
+ eventIndex?: bigint | undefined;
782
+ };
783
+ /**
784
+ * Describes the message WorkflowEvent.
785
+ * Use `create(WorkflowEventSchema)` to create a new message.
786
+ */
787
+ export declare const WorkflowEventSchema: GenMessage<WorkflowEvent>;
788
+ /**
789
+ * @generated from message WorkflowRunEvent
790
+ */
791
+ export type WorkflowRunEvent = Message<"WorkflowRunEvent"> & {
792
+ /**
793
+ * the id of the workflow run
794
+ *
795
+ * @generated from field: string workflow_run_id = 1;
796
+ */
797
+ workflowRunId: string;
798
+ /**
799
+ * @generated from field: WorkflowRunEventType event_type = 2;
800
+ */
801
+ eventType: WorkflowRunEventType;
802
+ /**
803
+ * @generated from field: google.protobuf.Timestamp event_timestamp = 3;
804
+ */
805
+ eventTimestamp?: Timestamp | undefined;
806
+ /**
807
+ * @generated from field: repeated StepRunResult results = 4;
808
+ */
809
+ results: StepRunResult[];
810
+ };
811
+ /**
812
+ * Describes the message WorkflowRunEvent.
813
+ * Use `create(WorkflowRunEventSchema)` to create a new message.
814
+ */
815
+ export declare const WorkflowRunEventSchema: GenMessage<WorkflowRunEvent>;
816
+ /**
817
+ * @generated from message StepRunResult
818
+ */
819
+ export type StepRunResult = Message<"StepRunResult"> & {
820
+ /**
821
+ * @generated from field: string task_run_external_id = 1;
822
+ */
823
+ taskRunExternalId: string;
824
+ /**
825
+ * @generated from field: string task_name = 2;
826
+ */
827
+ taskName: string;
828
+ /**
829
+ * @generated from field: string job_run_id = 3;
830
+ */
831
+ jobRunId: string;
832
+ /**
833
+ * @generated from field: optional string error = 4;
834
+ */
835
+ error?: string | undefined;
836
+ /**
837
+ * @generated from field: optional string output = 5;
838
+ */
839
+ output?: string | undefined;
840
+ };
841
+ /**
842
+ * Describes the message StepRunResult.
843
+ * Use `create(StepRunResultSchema)` to create a new message.
844
+ */
845
+ export declare const StepRunResultSchema: GenMessage<StepRunResult>;
846
+ /**
847
+ * @generated from message OverridesData
848
+ */
849
+ export type OverridesData = Message<"OverridesData"> & {
850
+ /**
851
+ * the task run id
852
+ *
853
+ * @generated from field: string task_run_external_id = 1;
854
+ */
855
+ taskRunExternalId: string;
856
+ /**
857
+ * the path of the data to set
858
+ *
859
+ * @generated from field: string path = 2;
860
+ */
861
+ path: string;
862
+ /**
863
+ * the value to set
864
+ *
865
+ * @generated from field: string value = 3;
866
+ */
867
+ value: string;
868
+ /**
869
+ * the filename of the caller
870
+ *
871
+ * @generated from field: string caller_filename = 4;
872
+ */
873
+ callerFilename: string;
874
+ };
875
+ /**
876
+ * Describes the message OverridesData.
877
+ * Use `create(OverridesDataSchema)` to create a new message.
878
+ */
879
+ export declare const OverridesDataSchema: GenMessage<OverridesData>;
880
+ /**
881
+ * @generated from message OverridesDataResponse
882
+ */
883
+ export type OverridesDataResponse = Message<"OverridesDataResponse"> & {};
884
+ /**
885
+ * Describes the message OverridesDataResponse.
886
+ * Use `create(OverridesDataResponseSchema)` to create a new message.
887
+ */
888
+ export declare const OverridesDataResponseSchema: GenMessage<OverridesDataResponse>;
889
+ /**
890
+ * @generated from message HeartbeatRequest
891
+ */
892
+ export type HeartbeatRequest = Message<"HeartbeatRequest"> & {
893
+ /**
894
+ * the id of the worker
895
+ *
896
+ * @generated from field: string worker_id = 1;
897
+ */
898
+ workerId: string;
899
+ /**
900
+ * heartbeatAt is the time the worker sent the heartbeat
901
+ *
902
+ * @generated from field: google.protobuf.Timestamp heartbeat_at = 2;
903
+ */
904
+ heartbeatAt?: Timestamp | undefined;
905
+ };
906
+ /**
907
+ * Describes the message HeartbeatRequest.
908
+ * Use `create(HeartbeatRequestSchema)` to create a new message.
909
+ */
910
+ export declare const HeartbeatRequestSchema: GenMessage<HeartbeatRequest>;
911
+ /**
912
+ * @generated from message HeartbeatResponse
913
+ */
914
+ export type HeartbeatResponse = Message<"HeartbeatResponse"> & {};
915
+ /**
916
+ * Describes the message HeartbeatResponse.
917
+ * Use `create(HeartbeatResponseSchema)` to create a new message.
918
+ */
919
+ export declare const HeartbeatResponseSchema: GenMessage<HeartbeatResponse>;
920
+ /**
921
+ * @generated from message RefreshTimeoutRequest
922
+ */
923
+ export type RefreshTimeoutRequest = Message<"RefreshTimeoutRequest"> & {
924
+ /**
925
+ * the id of the task run to release
926
+ *
927
+ * @generated from field: string task_run_external_id = 1;
928
+ */
929
+ taskRunExternalId: string;
930
+ /**
931
+ * @generated from field: string increment_timeout_by = 2;
932
+ */
933
+ incrementTimeoutBy: string;
934
+ };
935
+ /**
936
+ * Describes the message RefreshTimeoutRequest.
937
+ * Use `create(RefreshTimeoutRequestSchema)` to create a new message.
938
+ */
939
+ export declare const RefreshTimeoutRequestSchema: GenMessage<RefreshTimeoutRequest>;
940
+ /**
941
+ * @generated from message RefreshTimeoutResponse
942
+ */
943
+ export type RefreshTimeoutResponse = Message<"RefreshTimeoutResponse"> & {
944
+ /**
945
+ * @generated from field: google.protobuf.Timestamp timeout_at = 1;
946
+ */
947
+ timeoutAt?: Timestamp | undefined;
948
+ };
949
+ /**
950
+ * Describes the message RefreshTimeoutResponse.
951
+ * Use `create(RefreshTimeoutResponseSchema)` to create a new message.
952
+ */
953
+ export declare const RefreshTimeoutResponseSchema: GenMessage<RefreshTimeoutResponse>;
954
+ /**
955
+ * @generated from message ReleaseSlotRequest
956
+ */
957
+ export type ReleaseSlotRequest = Message<"ReleaseSlotRequest"> & {
958
+ /**
959
+ * the id of the task run to release
960
+ *
961
+ * @generated from field: string task_run_external_id = 1;
962
+ */
963
+ taskRunExternalId: string;
964
+ };
965
+ /**
966
+ * Describes the message ReleaseSlotRequest.
967
+ * Use `create(ReleaseSlotRequestSchema)` to create a new message.
968
+ */
969
+ export declare const ReleaseSlotRequestSchema: GenMessage<ReleaseSlotRequest>;
970
+ /**
971
+ * @generated from message ReleaseSlotResponse
972
+ */
973
+ export type ReleaseSlotResponse = Message<"ReleaseSlotResponse"> & {};
974
+ /**
975
+ * Describes the message ReleaseSlotResponse.
976
+ * Use `create(ReleaseSlotResponseSchema)` to create a new message.
977
+ */
978
+ export declare const ReleaseSlotResponseSchema: GenMessage<ReleaseSlotResponse>;
979
+ /**
980
+ * @generated from message RestoreEvictedTaskRequest
981
+ */
982
+ export type RestoreEvictedTaskRequest = Message<"RestoreEvictedTaskRequest"> & {
983
+ /**
984
+ * @generated from field: string task_run_external_id = 1;
985
+ */
986
+ taskRunExternalId: string;
987
+ };
988
+ /**
989
+ * Describes the message RestoreEvictedTaskRequest.
990
+ * Use `create(RestoreEvictedTaskRequestSchema)` to create a new message.
991
+ */
992
+ export declare const RestoreEvictedTaskRequestSchema: GenMessage<RestoreEvictedTaskRequest>;
993
+ /**
994
+ * @generated from message RestoreEvictedTaskResponse
995
+ */
996
+ export type RestoreEvictedTaskResponse = Message<"RestoreEvictedTaskResponse"> & {
997
+ /**
998
+ * @generated from field: bool requeued = 1;
999
+ */
1000
+ requeued: boolean;
1001
+ };
1002
+ /**
1003
+ * Describes the message RestoreEvictedTaskResponse.
1004
+ * Use `create(RestoreEvictedTaskResponseSchema)` to create a new message.
1005
+ */
1006
+ export declare const RestoreEvictedTaskResponseSchema: GenMessage<RestoreEvictedTaskResponse>;
1007
+ /**
1008
+ * @generated from message GetVersionRequest
1009
+ */
1010
+ export type GetVersionRequest = Message<"GetVersionRequest"> & {};
1011
+ /**
1012
+ * Describes the message GetVersionRequest.
1013
+ * Use `create(GetVersionRequestSchema)` to create a new message.
1014
+ */
1015
+ export declare const GetVersionRequestSchema: GenMessage<GetVersionRequest>;
1016
+ /**
1017
+ * @generated from message GetVersionResponse
1018
+ */
1019
+ export type GetVersionResponse = Message<"GetVersionResponse"> & {
1020
+ /**
1021
+ * @generated from field: string version = 1;
1022
+ */
1023
+ version: string;
1024
+ };
1025
+ /**
1026
+ * Describes the message GetVersionResponse.
1027
+ * Use `create(GetVersionResponseSchema)` to create a new message.
1028
+ */
1029
+ export declare const GetVersionResponseSchema: GenMessage<GetVersionResponse>;
1030
+ /**
1031
+ * @generated from enum SDKS
1032
+ */
1033
+ export declare enum SDKS {
1034
+ /**
1035
+ * @generated from enum value: UNKNOWN = 0;
1036
+ */
1037
+ UNKNOWN = 0,
1038
+ /**
1039
+ * @generated from enum value: GO = 1;
1040
+ */
1041
+ GO = 1,
1042
+ /**
1043
+ * @generated from enum value: PYTHON = 2;
1044
+ */
1045
+ PYTHON = 2,
1046
+ /**
1047
+ * @generated from enum value: TYPESCRIPT = 3;
1048
+ */
1049
+ TYPESCRIPT = 3,
1050
+ /**
1051
+ * @generated from enum value: RUBY = 4;
1052
+ */
1053
+ RUBY = 4
1054
+ }
1055
+ /**
1056
+ * Describes the enum SDKS.
1057
+ */
1058
+ export declare const SDKSSchema: GenEnum<SDKS>;
1059
+ /**
1060
+ * @generated from enum ActionType
1061
+ */
1062
+ export declare enum ActionType {
1063
+ /**
1064
+ * @generated from enum value: START_STEP_RUN = 0;
1065
+ */
1066
+ START_STEP_RUN = 0,
1067
+ /**
1068
+ * @generated from enum value: CANCEL_STEP_RUN = 1;
1069
+ */
1070
+ CANCEL_STEP_RUN = 1,
1071
+ /**
1072
+ * @generated from enum value: START_GET_GROUP_KEY = 2;
1073
+ */
1074
+ START_GET_GROUP_KEY = 2,
1075
+ /**
1076
+ * @generated from enum value: START_BATCH = 3;
1077
+ */
1078
+ START_BATCH = 3
1079
+ }
1080
+ /**
1081
+ * Describes the enum ActionType.
1082
+ */
1083
+ export declare const ActionTypeSchema: GenEnum<ActionType>;
1084
+ /**
1085
+ * @generated from enum GroupKeyActionEventType
1086
+ */
1087
+ export declare enum GroupKeyActionEventType {
1088
+ /**
1089
+ * @generated from enum value: GROUP_KEY_EVENT_TYPE_UNKNOWN = 0;
1090
+ */
1091
+ GROUP_KEY_EVENT_TYPE_UNKNOWN = 0,
1092
+ /**
1093
+ * @generated from enum value: GROUP_KEY_EVENT_TYPE_STARTED = 1;
1094
+ */
1095
+ GROUP_KEY_EVENT_TYPE_STARTED = 1,
1096
+ /**
1097
+ * @generated from enum value: GROUP_KEY_EVENT_TYPE_COMPLETED = 2;
1098
+ */
1099
+ GROUP_KEY_EVENT_TYPE_COMPLETED = 2,
1100
+ /**
1101
+ * @generated from enum value: GROUP_KEY_EVENT_TYPE_FAILED = 3;
1102
+ */
1103
+ GROUP_KEY_EVENT_TYPE_FAILED = 3
1104
+ }
1105
+ /**
1106
+ * Describes the enum GroupKeyActionEventType.
1107
+ */
1108
+ export declare const GroupKeyActionEventTypeSchema: GenEnum<GroupKeyActionEventType>;
1109
+ /**
1110
+ * @generated from enum StepActionEventType
1111
+ */
1112
+ export declare enum StepActionEventType {
1113
+ /**
1114
+ * @generated from enum value: STEP_EVENT_TYPE_UNKNOWN = 0;
1115
+ */
1116
+ STEP_EVENT_TYPE_UNKNOWN = 0,
1117
+ /**
1118
+ * @generated from enum value: STEP_EVENT_TYPE_STARTED = 1;
1119
+ */
1120
+ STEP_EVENT_TYPE_STARTED = 1,
1121
+ /**
1122
+ * @generated from enum value: STEP_EVENT_TYPE_COMPLETED = 2;
1123
+ */
1124
+ STEP_EVENT_TYPE_COMPLETED = 2,
1125
+ /**
1126
+ * @generated from enum value: STEP_EVENT_TYPE_FAILED = 3;
1127
+ */
1128
+ STEP_EVENT_TYPE_FAILED = 3,
1129
+ /**
1130
+ * @generated from enum value: STEP_EVENT_TYPE_ACKNOWLEDGED = 4;
1131
+ */
1132
+ STEP_EVENT_TYPE_ACKNOWLEDGED = 4,
1133
+ /**
1134
+ * @generated from enum value: STEP_EVENT_TYPE_CANCELLED = 5;
1135
+ */
1136
+ STEP_EVENT_TYPE_CANCELLED = 5
1137
+ }
1138
+ /**
1139
+ * Describes the enum StepActionEventType.
1140
+ */
1141
+ export declare const StepActionEventTypeSchema: GenEnum<StepActionEventType>;
1142
+ /**
1143
+ * @generated from enum ResourceType
1144
+ */
1145
+ export declare enum ResourceType {
1146
+ /**
1147
+ * @generated from enum value: RESOURCE_TYPE_UNKNOWN = 0;
1148
+ */
1149
+ UNKNOWN = 0,
1150
+ /**
1151
+ * @generated from enum value: RESOURCE_TYPE_STEP_RUN = 1;
1152
+ */
1153
+ STEP_RUN = 1,
1154
+ /**
1155
+ * @generated from enum value: RESOURCE_TYPE_WORKFLOW_RUN = 2;
1156
+ */
1157
+ WORKFLOW_RUN = 2
1158
+ }
1159
+ /**
1160
+ * Describes the enum ResourceType.
1161
+ */
1162
+ export declare const ResourceTypeSchema: GenEnum<ResourceType>;
1163
+ /**
1164
+ * @generated from enum ResourceEventType
1165
+ */
1166
+ export declare enum ResourceEventType {
1167
+ /**
1168
+ * @generated from enum value: RESOURCE_EVENT_TYPE_UNKNOWN = 0;
1169
+ */
1170
+ UNKNOWN = 0,
1171
+ /**
1172
+ * @generated from enum value: RESOURCE_EVENT_TYPE_STARTED = 1;
1173
+ */
1174
+ STARTED = 1,
1175
+ /**
1176
+ * @generated from enum value: RESOURCE_EVENT_TYPE_COMPLETED = 2;
1177
+ */
1178
+ COMPLETED = 2,
1179
+ /**
1180
+ * @generated from enum value: RESOURCE_EVENT_TYPE_FAILED = 3;
1181
+ */
1182
+ FAILED = 3,
1183
+ /**
1184
+ * @generated from enum value: RESOURCE_EVENT_TYPE_CANCELLED = 4;
1185
+ */
1186
+ CANCELLED = 4,
1187
+ /**
1188
+ * @generated from enum value: RESOURCE_EVENT_TYPE_TIMED_OUT = 5;
1189
+ */
1190
+ TIMED_OUT = 5,
1191
+ /**
1192
+ * @generated from enum value: RESOURCE_EVENT_TYPE_STREAM = 6;
1193
+ */
1194
+ STREAM = 6
1195
+ }
1196
+ /**
1197
+ * Describes the enum ResourceEventType.
1198
+ */
1199
+ export declare const ResourceEventTypeSchema: GenEnum<ResourceEventType>;
1200
+ /**
1201
+ * @generated from enum WorkflowRunEventType
1202
+ */
1203
+ export declare enum WorkflowRunEventType {
1204
+ /**
1205
+ * @generated from enum value: WORKFLOW_RUN_EVENT_TYPE_FINISHED = 0;
1206
+ */
1207
+ FINISHED = 0
1208
+ }
1209
+ /**
1210
+ * Describes the enum WorkflowRunEventType.
1211
+ */
1212
+ export declare const WorkflowRunEventTypeSchema: GenEnum<WorkflowRunEventType>;
1213
+ /**
1214
+ * @generated from service Dispatcher
1215
+ */
1216
+ export declare const Dispatcher: GenService<{
1217
+ /**
1218
+ * @generated from rpc Dispatcher.Register
1219
+ */
1220
+ register: {
1221
+ methodKind: "unary";
1222
+ input: typeof WorkerRegisterRequestSchema;
1223
+ output: typeof WorkerRegisterResponseSchema;
1224
+ };
1225
+ /**
1226
+ * @generated from rpc Dispatcher.Listen
1227
+ */
1228
+ listen: {
1229
+ methodKind: "server_streaming";
1230
+ input: typeof WorkerListenRequestSchema;
1231
+ output: typeof AssignedActionSchema;
1232
+ };
1233
+ /**
1234
+ * ListenV2 is like listen, but implementation does not include heartbeats. This should only used by SDKs
1235
+ * against engine version v0.18.1+
1236
+ *
1237
+ * @generated from rpc Dispatcher.ListenV2
1238
+ */
1239
+ listenV2: {
1240
+ methodKind: "server_streaming";
1241
+ input: typeof WorkerListenRequestSchema;
1242
+ output: typeof AssignedActionSchema;
1243
+ };
1244
+ /**
1245
+ * Heartbeat is a method for workers to send heartbeats to the dispatcher
1246
+ *
1247
+ * @generated from rpc Dispatcher.Heartbeat
1248
+ */
1249
+ heartbeat: {
1250
+ methodKind: "unary";
1251
+ input: typeof HeartbeatRequestSchema;
1252
+ output: typeof HeartbeatResponseSchema;
1253
+ };
1254
+ /**
1255
+ * @generated from rpc Dispatcher.SubscribeToWorkflowEvents
1256
+ */
1257
+ subscribeToWorkflowEvents: {
1258
+ methodKind: "server_streaming";
1259
+ input: typeof SubscribeToWorkflowEventsRequestSchema;
1260
+ output: typeof WorkflowEventSchema;
1261
+ };
1262
+ /**
1263
+ * @generated from rpc Dispatcher.SubscribeToWorkflowRuns
1264
+ */
1265
+ subscribeToWorkflowRuns: {
1266
+ methodKind: "bidi_streaming";
1267
+ input: typeof SubscribeToWorkflowRunsRequestSchema;
1268
+ output: typeof WorkflowRunEventSchema;
1269
+ };
1270
+ /**
1271
+ * @generated from rpc Dispatcher.SendStepActionEvent
1272
+ */
1273
+ sendStepActionEvent: {
1274
+ methodKind: "unary";
1275
+ input: typeof StepActionEventSchema;
1276
+ output: typeof ActionEventResponseSchema;
1277
+ };
1278
+ /**
1279
+ * SendBatchActionEvent reports a single lifecycle event (STARTED, FAILED, or CANCELLED)
1280
+ * for every task in a batch in one call, instead of one SendStepActionEvent call per task.
1281
+ *
1282
+ * @generated from rpc Dispatcher.SendBatchActionEvent
1283
+ */
1284
+ sendBatchActionEvent: {
1285
+ methodKind: "unary";
1286
+ input: typeof BatchActionEventSchema;
1287
+ output: typeof ActionEventResponseSchema;
1288
+ };
1289
+ /**
1290
+ * @generated from rpc Dispatcher.SendGroupKeyActionEvent
1291
+ */
1292
+ sendGroupKeyActionEvent: {
1293
+ methodKind: "unary";
1294
+ input: typeof GroupKeyActionEventSchema;
1295
+ output: typeof ActionEventResponseSchema;
1296
+ };
1297
+ /**
1298
+ * @generated from rpc Dispatcher.PutOverridesData
1299
+ */
1300
+ putOverridesData: {
1301
+ methodKind: "unary";
1302
+ input: typeof OverridesDataSchema;
1303
+ output: typeof OverridesDataResponseSchema;
1304
+ };
1305
+ /**
1306
+ * @generated from rpc Dispatcher.Unsubscribe
1307
+ */
1308
+ unsubscribe: {
1309
+ methodKind: "unary";
1310
+ input: typeof WorkerUnsubscribeRequestSchema;
1311
+ output: typeof WorkerUnsubscribeResponseSchema;
1312
+ };
1313
+ /**
1314
+ * @generated from rpc Dispatcher.RefreshTimeout
1315
+ */
1316
+ refreshTimeout: {
1317
+ methodKind: "unary";
1318
+ input: typeof RefreshTimeoutRequestSchema;
1319
+ output: typeof RefreshTimeoutResponseSchema;
1320
+ };
1321
+ /**
1322
+ * @generated from rpc Dispatcher.ReleaseSlot
1323
+ */
1324
+ releaseSlot: {
1325
+ methodKind: "unary";
1326
+ input: typeof ReleaseSlotRequestSchema;
1327
+ output: typeof ReleaseSlotResponseSchema;
1328
+ };
1329
+ /**
1330
+ * @generated from rpc Dispatcher.RestoreEvictedTask
1331
+ */
1332
+ restoreEvictedTask: {
1333
+ methodKind: "unary";
1334
+ input: typeof RestoreEvictedTaskRequestSchema;
1335
+ output: typeof RestoreEvictedTaskResponseSchema;
1336
+ };
1337
+ /**
1338
+ * @generated from rpc Dispatcher.UpsertWorkerLabels
1339
+ */
1340
+ upsertWorkerLabels: {
1341
+ methodKind: "unary";
1342
+ input: typeof UpsertWorkerLabelsRequestSchema;
1343
+ output: typeof UpsertWorkerLabelsResponseSchema;
1344
+ };
1345
+ /**
1346
+ * GetVersion returns the dispatcher protocol version as a simple integer.
1347
+ * SDKs use this to determine feature support (e.g. slot_config registration).
1348
+ * Old engines that do not implement this RPC will return UNIMPLEMENTED.
1349
+ *
1350
+ * @generated from rpc Dispatcher.GetVersion
1351
+ */
1352
+ getVersion: {
1353
+ methodKind: "unary";
1354
+ input: typeof GetVersionRequestSchema;
1355
+ output: typeof GetVersionResponseSchema;
1356
+ };
1357
+ }>;