@outputai/cli 0.1.13-dev.01b8dea.0 → 0.1.13-dev.59a1b6d.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.
@@ -127,6 +127,8 @@ export declare const TraceLogRemoteResponseSource: {
127
127
  export interface TraceLogRemoteResponse {
128
128
  /** Indicates trace was fetched from remote storage */
129
129
  source: TraceLogRemoteResponseSource;
130
+ /** The specific run id this trace belongs to */
131
+ runId: string;
130
132
  data: TraceData;
131
133
  }
132
134
  /**
@@ -139,6 +141,8 @@ export declare const TraceLogLocalResponseSource: {
139
141
  export interface TraceLogLocalResponse {
140
142
  /** Indicates trace is available locally */
141
143
  source: TraceLogLocalResponseSource;
144
+ /** The specific run id this trace belongs to */
145
+ runId: string;
142
146
  /** Absolute path to local trace file */
143
147
  localPath: string;
144
148
  }
@@ -175,6 +179,83 @@ export interface WorkflowRunsResponse {
175
179
  /** Total number of runs returned */
176
180
  count?: number;
177
181
  }
182
+ /**
183
+ * The workflow execution status
184
+ */
185
+ export type WorkflowStatusResponseStatus = typeof WorkflowStatusResponseStatus[keyof typeof WorkflowStatusResponseStatus];
186
+ export declare const WorkflowStatusResponseStatus: {
187
+ readonly canceled: "canceled";
188
+ readonly completed: "completed";
189
+ readonly continued_as_new: "continued_as_new";
190
+ readonly failed: "failed";
191
+ readonly running: "running";
192
+ readonly terminated: "terminated";
193
+ readonly timed_out: "timed_out";
194
+ readonly unspecified: "unspecified";
195
+ };
196
+ export interface WorkflowStatusResponse {
197
+ /** The id of workflow */
198
+ workflowId?: string;
199
+ /** The specific run id for this execution */
200
+ runId?: string;
201
+ /** The workflow execution status */
202
+ status?: WorkflowStatusResponseStatus;
203
+ /** An epoch timestamp representing when the workflow started */
204
+ startedAt?: number;
205
+ /** An epoch timestamp representing when the workflow ended */
206
+ completedAt?: number;
207
+ }
208
+ /**
209
+ * The workflow execution status
210
+ */
211
+ export type WorkflowResultResponseStatus = typeof WorkflowResultResponseStatus[keyof typeof WorkflowResultResponseStatus];
212
+ export declare const WorkflowResultResponseStatus: {
213
+ readonly completed: "completed";
214
+ readonly failed: "failed";
215
+ readonly canceled: "canceled";
216
+ readonly terminated: "terminated";
217
+ readonly timed_out: "timed_out";
218
+ readonly continued: "continued";
219
+ };
220
+ export interface WorkflowResultResponse {
221
+ /** The workflow execution id */
222
+ workflowId?: string;
223
+ /** The specific run id for this execution */
224
+ runId?: string;
225
+ /** The original input passed to the workflow, null if unavailable */
226
+ input?: unknown;
227
+ /** The result of workflow, null if workflow failed */
228
+ output?: unknown;
229
+ trace?: TraceInfo;
230
+ /** The workflow execution status */
231
+ status?: WorkflowResultResponseStatus;
232
+ /**
233
+ * Error message if workflow failed, null otherwise
234
+ * @nullable
235
+ */
236
+ error?: string | null;
237
+ }
238
+ export interface StopWorkflowResponse {
239
+ workflowId?: string;
240
+ runId?: string;
241
+ }
242
+ export interface TerminateWorkflowResponse {
243
+ terminated?: boolean;
244
+ workflowId?: string;
245
+ runId?: string;
246
+ }
247
+ export interface ResetWorkflowRequest {
248
+ /** The name of the step to reset after */
249
+ stepName: string;
250
+ /** Optional reason for the reset */
251
+ reason?: string;
252
+ }
253
+ export interface ResetWorkflowResponse {
254
+ /** The original workflow ID */
255
+ workflowId?: string;
256
+ /** The run ID of the new execution created by the reset */
257
+ runId?: string;
258
+ }
178
259
  /**
179
260
  * Invalid request body or query (validation failed)
180
261
  */
@@ -191,6 +272,10 @@ export type RequestTimeoutResponse = ErrorResponse;
191
272
  * Workflow not in a terminal state (still running)
192
273
  */
193
274
  export type FailedDependencyResponse = ErrorResponse;
275
+ /**
276
+ * Workflow run is in a state that conflicts with the requested operation (e.g. operating on an already-terminal run, or resetting to an incomplete step).
277
+ */
278
+ export type ConflictResponse = ErrorResponse;
194
279
  /**
195
280
  * Catalog workflow unavailable (worker not running or still starting). Retry-After header may be set.
196
281
  */
@@ -246,79 +331,19 @@ export type PostWorkflowStartBody = {
246
331
  export type PostWorkflowStart200 = {
247
332
  /** The id of the started workflow */
248
333
  workflowId?: string;
334
+ /**
335
+ * The first execution's run id for this workflow
336
+ * @nullable
337
+ */
338
+ runId?: string | null;
249
339
  };
250
- /**
251
- * The workflow execution status
252
- */
253
- export type GetWorkflowIdStatus200Status = typeof GetWorkflowIdStatus200Status[keyof typeof GetWorkflowIdStatus200Status];
254
- export declare const GetWorkflowIdStatus200Status: {
255
- readonly canceled: "canceled";
256
- readonly completed: "completed";
257
- readonly continued_as_new: "continued_as_new";
258
- readonly failed: "failed";
259
- readonly running: "running";
260
- readonly terminated: "terminated";
261
- readonly timed_out: "timed_out";
262
- readonly unspecified: "unspecified";
263
- };
264
- export type GetWorkflowIdStatus200 = {
265
- /** The id of workflow */
266
- workflowId?: string;
267
- /** The workflow execution status */
268
- status?: GetWorkflowIdStatus200Status;
269
- /** An epoch timestamp representing when the workflow started */
270
- startedAt?: number;
271
- /** An epoch timestamp representing when the workflow ended */
272
- completedAt?: number;
273
- };
274
- export type PostWorkflowIdTerminateBody = {
340
+ export type PostWorkflowIdRunsRidTerminateBody = {
275
341
  /** Optional reason for termination */
276
342
  reason?: string;
277
343
  };
278
- export type PostWorkflowIdTerminate200 = {
279
- terminated?: boolean;
280
- workflowId?: string;
281
- };
282
- export type PostWorkflowIdResetBody = {
283
- /** The name of the step to reset after */
284
- stepName: string;
285
- /** Optional reason for the reset */
344
+ export type PostWorkflowIdTerminateBody = {
286
345
  reason?: string;
287
346
  };
288
- export type PostWorkflowIdReset200 = {
289
- /** The original workflow ID */
290
- workflowId?: string;
291
- /** The run ID of the new execution created by the reset */
292
- runId?: string;
293
- };
294
- /**
295
- * The workflow execution status
296
- */
297
- export type GetWorkflowIdResult200Status = typeof GetWorkflowIdResult200Status[keyof typeof GetWorkflowIdResult200Status];
298
- export declare const GetWorkflowIdResult200Status: {
299
- readonly completed: "completed";
300
- readonly failed: "failed";
301
- readonly canceled: "canceled";
302
- readonly terminated: "terminated";
303
- readonly timed_out: "timed_out";
304
- readonly continued: "continued";
305
- };
306
- export type GetWorkflowIdResult200 = {
307
- /** The workflow execution id */
308
- workflowId?: string;
309
- /** The original input passed to the workflow, null if unavailable */
310
- input?: unknown;
311
- /** The result of workflow, null if workflow failed */
312
- output?: unknown;
313
- trace?: TraceInfo;
314
- /** The workflow execution status */
315
- status?: GetWorkflowIdResult200Status;
316
- /**
317
- * Error message if workflow failed, null otherwise
318
- * @nullable
319
- */
320
- error?: string | null;
321
- };
322
347
  export type GetWorkflowCatalogId200 = {
323
348
  /** Each workflow available in this catalog */
324
349
  workflows?: Workflow[];
@@ -332,6 +357,10 @@ export type GetWorkflowRunsParams = {
332
357
  * Filter by workflow type/name
333
358
  */
334
359
  workflowType?: string;
360
+ /**
361
+ * Filter by task queue name (e.g. catalog/session ID)
362
+ */
363
+ taskQueue?: string;
335
364
  /**
336
365
  * Maximum number of runs to return
337
366
  * @minimum 1
@@ -458,10 +487,11 @@ export type postWorkflowStartResponse = (postWorkflowStartResponseSuccess | post
458
487
  export declare const getPostWorkflowStartUrl: () => string;
459
488
  export declare const postWorkflowStart: (postWorkflowStartBody: PostWorkflowStartBody, options?: ApiRequestOptions) => Promise<postWorkflowStartResponse>;
460
489
  /**
461
- * @summary Get workflow execution status
490
+ * Returns the status of the latest run for the given workflow. To pin a specific run, use `/workflow/{id}/runs/{rid}/status`.
491
+ * @summary Get workflow execution status (latest run)
462
492
  */
463
493
  export type getWorkflowIdStatusResponse200 = {
464
- data: GetWorkflowIdStatus200;
494
+ data: WorkflowStatusResponse;
465
495
  status: 200;
466
496
  };
467
497
  export type getWorkflowIdStatusResponse404 = {
@@ -482,16 +512,82 @@ export type getWorkflowIdStatusResponse = (getWorkflowIdStatusResponseSuccess |
482
512
  export declare const getGetWorkflowIdStatusUrl: (id: string) => string;
483
513
  export declare const getWorkflowIdStatus: (id: string, options?: ApiRequestOptions) => Promise<getWorkflowIdStatusResponse>;
484
514
  /**
485
- * @summary Stop a workflow execution
515
+ * @summary Get workflow execution status for a specific run
516
+ */
517
+ export type getWorkflowIdRunsRidStatusResponse200 = {
518
+ data: WorkflowStatusResponse;
519
+ status: 200;
520
+ };
521
+ export type getWorkflowIdRunsRidStatusResponse400 = {
522
+ data: BadRequestResponse;
523
+ status: 400;
524
+ };
525
+ export type getWorkflowIdRunsRidStatusResponse404 = {
526
+ data: NotFoundResponse;
527
+ status: 404;
528
+ };
529
+ export type getWorkflowIdRunsRidStatusResponse500 = {
530
+ data: InternalServerErrorResponse;
531
+ status: 500;
532
+ };
533
+ export type getWorkflowIdRunsRidStatusResponseSuccess = (getWorkflowIdRunsRidStatusResponse200) & {
534
+ headers: Headers;
535
+ };
536
+ export type getWorkflowIdRunsRidStatusResponseError = (getWorkflowIdRunsRidStatusResponse400 | getWorkflowIdRunsRidStatusResponse404 | getWorkflowIdRunsRidStatusResponse500) & {
537
+ headers: Headers;
538
+ };
539
+ export type getWorkflowIdRunsRidStatusResponse = (getWorkflowIdRunsRidStatusResponseSuccess | getWorkflowIdRunsRidStatusResponseError);
540
+ export declare const getGetWorkflowIdRunsRidStatusUrl: (id: string, rid: string) => string;
541
+ export declare const getWorkflowIdRunsRidStatus: (id: string, rid: string, options?: ApiRequestOptions) => Promise<getWorkflowIdRunsRidStatusResponse>;
542
+ /**
543
+ * @summary Stop a specific workflow run
544
+ */
545
+ export type patchWorkflowIdRunsRidStopResponse200 = {
546
+ data: StopWorkflowResponse;
547
+ status: 200;
548
+ };
549
+ export type patchWorkflowIdRunsRidStopResponse400 = {
550
+ data: BadRequestResponse;
551
+ status: 400;
552
+ };
553
+ export type patchWorkflowIdRunsRidStopResponse404 = {
554
+ data: NotFoundResponse;
555
+ status: 404;
556
+ };
557
+ export type patchWorkflowIdRunsRidStopResponse409 = {
558
+ data: ConflictResponse;
559
+ status: 409;
560
+ };
561
+ export type patchWorkflowIdRunsRidStopResponse500 = {
562
+ data: InternalServerErrorResponse;
563
+ status: 500;
564
+ };
565
+ export type patchWorkflowIdRunsRidStopResponseSuccess = (patchWorkflowIdRunsRidStopResponse200) & {
566
+ headers: Headers;
567
+ };
568
+ export type patchWorkflowIdRunsRidStopResponseError = (patchWorkflowIdRunsRidStopResponse400 | patchWorkflowIdRunsRidStopResponse404 | patchWorkflowIdRunsRidStopResponse409 | patchWorkflowIdRunsRidStopResponse500) & {
569
+ headers: Headers;
570
+ };
571
+ export type patchWorkflowIdRunsRidStopResponse = (patchWorkflowIdRunsRidStopResponseSuccess | patchWorkflowIdRunsRidStopResponseError);
572
+ export declare const getPatchWorkflowIdRunsRidStopUrl: (id: string, rid: string) => string;
573
+ export declare const patchWorkflowIdRunsRidStop: (id: string, rid: string, options?: ApiRequestOptions) => Promise<patchWorkflowIdRunsRidStopResponse>;
574
+ /**
575
+ * Stops the latest run of the given workflow. The returned `runId` reflects the run at describe-time and may differ from the cancelled run if a new execution started concurrently. Deprecated; use `PATCH /workflow/{id}/runs/{rid}/stop` to pin a specific run. Scheduled for removal after 2026-07-16.
576
+ * @deprecated
577
+ * @summary [Deprecated] Stop the latest workflow run
486
578
  */
487
579
  export type patchWorkflowIdStopResponse200 = {
488
- data: void;
580
+ data: StopWorkflowResponse;
489
581
  status: 200;
490
582
  };
491
583
  export type patchWorkflowIdStopResponse404 = {
492
584
  data: NotFoundResponse;
493
585
  status: 404;
494
586
  };
587
+ export type patchWorkflowIdStopResponse409 = {
588
+ data: ConflictResponse;
589
+ status: 409;
590
+ };
495
591
  export type patchWorkflowIdStopResponse500 = {
496
592
  data: InternalServerErrorResponse;
497
593
  status: 500;
@@ -499,18 +595,52 @@ export type patchWorkflowIdStopResponse500 = {
499
595
  export type patchWorkflowIdStopResponseSuccess = (patchWorkflowIdStopResponse200) & {
500
596
  headers: Headers;
501
597
  };
502
- export type patchWorkflowIdStopResponseError = (patchWorkflowIdStopResponse404 | patchWorkflowIdStopResponse500) & {
598
+ export type patchWorkflowIdStopResponseError = (patchWorkflowIdStopResponse404 | patchWorkflowIdStopResponse409 | patchWorkflowIdStopResponse500) & {
503
599
  headers: Headers;
504
600
  };
505
601
  export type patchWorkflowIdStopResponse = (patchWorkflowIdStopResponseSuccess | patchWorkflowIdStopResponseError);
506
602
  export declare const getPatchWorkflowIdStopUrl: (id: string) => string;
507
603
  export declare const patchWorkflowIdStop: (id: string, options?: ApiRequestOptions) => Promise<patchWorkflowIdStopResponse>;
508
604
  /**
509
- * Force terminates a workflow. Unlike stop/cancel, terminate immediately stops the workflow without allowing cleanup.
510
- * @summary Terminate a workflow execution (force stop)
605
+ * Force terminates a workflow run. Unlike stop/cancel, terminate immediately stops the run without allowing cleanup.
606
+ * @summary Terminate a specific workflow run (force stop)
607
+ */
608
+ export type postWorkflowIdRunsRidTerminateResponse200 = {
609
+ data: TerminateWorkflowResponse;
610
+ status: 200;
611
+ };
612
+ export type postWorkflowIdRunsRidTerminateResponse400 = {
613
+ data: BadRequestResponse;
614
+ status: 400;
615
+ };
616
+ export type postWorkflowIdRunsRidTerminateResponse404 = {
617
+ data: NotFoundResponse;
618
+ status: 404;
619
+ };
620
+ export type postWorkflowIdRunsRidTerminateResponse409 = {
621
+ data: ConflictResponse;
622
+ status: 409;
623
+ };
624
+ export type postWorkflowIdRunsRidTerminateResponse500 = {
625
+ data: InternalServerErrorResponse;
626
+ status: 500;
627
+ };
628
+ export type postWorkflowIdRunsRidTerminateResponseSuccess = (postWorkflowIdRunsRidTerminateResponse200) & {
629
+ headers: Headers;
630
+ };
631
+ export type postWorkflowIdRunsRidTerminateResponseError = (postWorkflowIdRunsRidTerminateResponse400 | postWorkflowIdRunsRidTerminateResponse404 | postWorkflowIdRunsRidTerminateResponse409 | postWorkflowIdRunsRidTerminateResponse500) & {
632
+ headers: Headers;
633
+ };
634
+ export type postWorkflowIdRunsRidTerminateResponse = (postWorkflowIdRunsRidTerminateResponseSuccess | postWorkflowIdRunsRidTerminateResponseError);
635
+ export declare const getPostWorkflowIdRunsRidTerminateUrl: (id: string, rid: string) => string;
636
+ export declare const postWorkflowIdRunsRidTerminate: (id: string, rid: string, postWorkflowIdRunsRidTerminateBody: PostWorkflowIdRunsRidTerminateBody, options?: ApiRequestOptions) => Promise<postWorkflowIdRunsRidTerminateResponse>;
637
+ /**
638
+ * Force terminates the latest run. Deprecated; use `POST /workflow/{id}/runs/{rid}/terminate` to target a specific run. Scheduled for removal after 2026-07-16.
639
+ * @deprecated
640
+ * @summary [Deprecated] Terminate the latest workflow run
511
641
  */
512
642
  export type postWorkflowIdTerminateResponse200 = {
513
- data: PostWorkflowIdTerminate200;
643
+ data: TerminateWorkflowResponse;
514
644
  status: 200;
515
645
  };
516
646
  export type postWorkflowIdTerminateResponse400 = {
@@ -521,6 +651,10 @@ export type postWorkflowIdTerminateResponse404 = {
521
651
  data: NotFoundResponse;
522
652
  status: 404;
523
653
  };
654
+ export type postWorkflowIdTerminateResponse409 = {
655
+ data: ConflictResponse;
656
+ status: 409;
657
+ };
524
658
  export type postWorkflowIdTerminateResponse500 = {
525
659
  data: InternalServerErrorResponse;
526
660
  status: 500;
@@ -528,18 +662,52 @@ export type postWorkflowIdTerminateResponse500 = {
528
662
  export type postWorkflowIdTerminateResponseSuccess = (postWorkflowIdTerminateResponse200) & {
529
663
  headers: Headers;
530
664
  };
531
- export type postWorkflowIdTerminateResponseError = (postWorkflowIdTerminateResponse400 | postWorkflowIdTerminateResponse404 | postWorkflowIdTerminateResponse500) & {
665
+ export type postWorkflowIdTerminateResponseError = (postWorkflowIdTerminateResponse400 | postWorkflowIdTerminateResponse404 | postWorkflowIdTerminateResponse409 | postWorkflowIdTerminateResponse500) & {
532
666
  headers: Headers;
533
667
  };
534
668
  export type postWorkflowIdTerminateResponse = (postWorkflowIdTerminateResponseSuccess | postWorkflowIdTerminateResponseError);
535
669
  export declare const getPostWorkflowIdTerminateUrl: (id: string) => string;
536
670
  export declare const postWorkflowIdTerminate: (id: string, postWorkflowIdTerminateBody: PostWorkflowIdTerminateBody, options?: ApiRequestOptions) => Promise<postWorkflowIdTerminateResponse>;
537
671
  /**
538
- * Resets a workflow execution to the point after a completed step, creating a new run that replays from that point. The current execution is terminated.
539
- * @summary Reset a workflow to re-run from after a specific step
672
+ * Resets a pinned workflow run to the point after a completed step, creating a new run that replays from that point. The current execution is terminated.
673
+ * @summary Reset a specific workflow run to re-run from after a completed step
674
+ */
675
+ export type postWorkflowIdRunsRidResetResponse200 = {
676
+ data: ResetWorkflowResponse;
677
+ status: 200;
678
+ };
679
+ export type postWorkflowIdRunsRidResetResponse400 = {
680
+ data: BadRequestResponse;
681
+ status: 400;
682
+ };
683
+ export type postWorkflowIdRunsRidResetResponse404 = {
684
+ data: NotFoundResponse;
685
+ status: 404;
686
+ };
687
+ export type postWorkflowIdRunsRidResetResponse409 = {
688
+ data: ConflictResponse;
689
+ status: 409;
690
+ };
691
+ export type postWorkflowIdRunsRidResetResponse500 = {
692
+ data: InternalServerErrorResponse;
693
+ status: 500;
694
+ };
695
+ export type postWorkflowIdRunsRidResetResponseSuccess = (postWorkflowIdRunsRidResetResponse200) & {
696
+ headers: Headers;
697
+ };
698
+ export type postWorkflowIdRunsRidResetResponseError = (postWorkflowIdRunsRidResetResponse400 | postWorkflowIdRunsRidResetResponse404 | postWorkflowIdRunsRidResetResponse409 | postWorkflowIdRunsRidResetResponse500) & {
699
+ headers: Headers;
700
+ };
701
+ export type postWorkflowIdRunsRidResetResponse = (postWorkflowIdRunsRidResetResponseSuccess | postWorkflowIdRunsRidResetResponseError);
702
+ export declare const getPostWorkflowIdRunsRidResetUrl: (id: string, rid: string) => string;
703
+ export declare const postWorkflowIdRunsRidReset: (id: string, rid: string, resetWorkflowRequest: ResetWorkflowRequest, options?: ApiRequestOptions) => Promise<postWorkflowIdRunsRidResetResponse>;
704
+ /**
705
+ * Resets the latest run. Deprecated; use `POST /workflow/{id}/runs/{rid}/reset` to target a specific run. Scheduled for removal after 2026-07-16.
706
+ * @deprecated
707
+ * @summary [Deprecated] Reset the latest workflow run
540
708
  */
541
709
  export type postWorkflowIdResetResponse200 = {
542
- data: PostWorkflowIdReset200;
710
+ data: ResetWorkflowResponse;
543
711
  status: 200;
544
712
  };
545
713
  export type postWorkflowIdResetResponse400 = {
@@ -551,7 +719,7 @@ export type postWorkflowIdResetResponse404 = {
551
719
  status: 404;
552
720
  };
553
721
  export type postWorkflowIdResetResponse409 = {
554
- data: ErrorResponse;
722
+ data: ConflictResponse;
555
723
  status: 409;
556
724
  };
557
725
  export type postWorkflowIdResetResponse500 = {
@@ -566,12 +734,13 @@ export type postWorkflowIdResetResponseError = (postWorkflowIdResetResponse400 |
566
734
  };
567
735
  export type postWorkflowIdResetResponse = (postWorkflowIdResetResponseSuccess | postWorkflowIdResetResponseError);
568
736
  export declare const getPostWorkflowIdResetUrl: (id: string) => string;
569
- export declare const postWorkflowIdReset: (id: string, postWorkflowIdResetBody: PostWorkflowIdResetBody, options?: ApiRequestOptions) => Promise<postWorkflowIdResetResponse>;
737
+ export declare const postWorkflowIdReset: (id: string, resetWorkflowRequest: ResetWorkflowRequest, options?: ApiRequestOptions) => Promise<postWorkflowIdResetResponse>;
570
738
  /**
571
- * @summary Return the result of a workflow
739
+ * Returns the result of the latest run for the given workflow. To pin a specific run, use `/workflow/{id}/runs/{rid}/result`.
740
+ * @summary Return the result of a workflow (latest run)
572
741
  */
573
742
  export type getWorkflowIdResultResponse200 = {
574
- data: GetWorkflowIdResult200;
743
+ data: WorkflowResultResponse;
575
744
  status: 200;
576
745
  };
577
746
  export type getWorkflowIdResultResponse404 = {
@@ -596,8 +765,40 @@ export type getWorkflowIdResultResponse = (getWorkflowIdResultResponseSuccess |
596
765
  export declare const getGetWorkflowIdResultUrl: (id: string) => string;
597
766
  export declare const getWorkflowIdResult: (id: string, options?: ApiRequestOptions) => Promise<getWorkflowIdResultResponse>;
598
767
  /**
599
- * Returns trace data for a completed workflow. If trace is stored remotely (S3), fetches and returns the data inline. If trace is local only, returns the local path.
600
- * @summary Get workflow trace log data
768
+ * @summary Return the result of a specific workflow run
769
+ */
770
+ export type getWorkflowIdRunsRidResultResponse200 = {
771
+ data: WorkflowResultResponse;
772
+ status: 200;
773
+ };
774
+ export type getWorkflowIdRunsRidResultResponse400 = {
775
+ data: BadRequestResponse;
776
+ status: 400;
777
+ };
778
+ export type getWorkflowIdRunsRidResultResponse404 = {
779
+ data: NotFoundResponse;
780
+ status: 404;
781
+ };
782
+ export type getWorkflowIdRunsRidResultResponse424 = {
783
+ data: FailedDependencyResponse;
784
+ status: 424;
785
+ };
786
+ export type getWorkflowIdRunsRidResultResponse500 = {
787
+ data: InternalServerErrorResponse;
788
+ status: 500;
789
+ };
790
+ export type getWorkflowIdRunsRidResultResponseSuccess = (getWorkflowIdRunsRidResultResponse200) & {
791
+ headers: Headers;
792
+ };
793
+ export type getWorkflowIdRunsRidResultResponseError = (getWorkflowIdRunsRidResultResponse400 | getWorkflowIdRunsRidResultResponse404 | getWorkflowIdRunsRidResultResponse424 | getWorkflowIdRunsRidResultResponse500) & {
794
+ headers: Headers;
795
+ };
796
+ export type getWorkflowIdRunsRidResultResponse = (getWorkflowIdRunsRidResultResponseSuccess | getWorkflowIdRunsRidResultResponseError);
797
+ export declare const getGetWorkflowIdRunsRidResultUrl: (id: string, rid: string) => string;
798
+ export declare const getWorkflowIdRunsRidResult: (id: string, rid: string, options?: ApiRequestOptions) => Promise<getWorkflowIdRunsRidResultResponse>;
799
+ /**
800
+ * Returns trace data for the latest run of the given workflow. If trace is stored remotely (S3), fetches and returns the data inline. If trace is local only, returns the local path. To pin a specific run, use `/workflow/{id}/runs/{rid}/trace-log`.
801
+ * @summary Get workflow trace log data (latest run)
601
802
  */
602
803
  export type getWorkflowIdTraceLogResponse200 = {
603
804
  data: TraceLogRemoteResponse | TraceLogLocalResponse;
@@ -624,6 +825,39 @@ export type getWorkflowIdTraceLogResponseError = (getWorkflowIdTraceLogResponse4
624
825
  export type getWorkflowIdTraceLogResponse = (getWorkflowIdTraceLogResponseSuccess | getWorkflowIdTraceLogResponseError);
625
826
  export declare const getGetWorkflowIdTraceLogUrl: (id: string) => string;
626
827
  export declare const getWorkflowIdTraceLog: (id: string, options?: ApiRequestOptions) => Promise<getWorkflowIdTraceLogResponse>;
828
+ /**
829
+ * Returns trace data for a pinned workflow run. If trace is stored remotely (S3), fetches and returns the data inline. If trace is local only, returns the local path.
830
+ * @summary Get workflow trace log data for a specific run
831
+ */
832
+ export type getWorkflowIdRunsRidTraceLogResponse200 = {
833
+ data: TraceLogRemoteResponse | TraceLogLocalResponse;
834
+ status: 200;
835
+ };
836
+ export type getWorkflowIdRunsRidTraceLogResponse400 = {
837
+ data: BadRequestResponse;
838
+ status: 400;
839
+ };
840
+ export type getWorkflowIdRunsRidTraceLogResponse404 = {
841
+ data: NotFoundResponse;
842
+ status: 404;
843
+ };
844
+ export type getWorkflowIdRunsRidTraceLogResponse424 = {
845
+ data: FailedDependencyResponse;
846
+ status: 424;
847
+ };
848
+ export type getWorkflowIdRunsRidTraceLogResponse500 = {
849
+ data: InternalServerErrorResponse;
850
+ status: 500;
851
+ };
852
+ export type getWorkflowIdRunsRidTraceLogResponseSuccess = (getWorkflowIdRunsRidTraceLogResponse200) & {
853
+ headers: Headers;
854
+ };
855
+ export type getWorkflowIdRunsRidTraceLogResponseError = (getWorkflowIdRunsRidTraceLogResponse400 | getWorkflowIdRunsRidTraceLogResponse404 | getWorkflowIdRunsRidTraceLogResponse424 | getWorkflowIdRunsRidTraceLogResponse500) & {
856
+ headers: Headers;
857
+ };
858
+ export type getWorkflowIdRunsRidTraceLogResponse = (getWorkflowIdRunsRidTraceLogResponseSuccess | getWorkflowIdRunsRidTraceLogResponseError);
859
+ export declare const getGetWorkflowIdRunsRidTraceLogUrl: (id: string, rid: string) => string;
860
+ export declare const getWorkflowIdRunsRidTraceLog: (id: string, rid: string, options?: ApiRequestOptions) => Promise<getWorkflowIdRunsRidTraceLogResponse>;
627
861
  /**
628
862
  * @summary Get a specific workflow catalog by ID
629
863
  */
@@ -698,6 +932,7 @@ export type getWorkflowRunsResponse = (getWorkflowRunsResponseSuccess | getWorkf
698
932
  export declare const getGetWorkflowRunsUrl: (params?: GetWorkflowRunsParams) => string;
699
933
  export declare const getWorkflowRuns: (params?: GetWorkflowRunsParams, options?: ApiRequestOptions) => Promise<getWorkflowRunsResponse>;
700
934
  /**
935
+ * Always targets the latest run; `runId` cannot be pinned for Temporal signal operations.
701
936
  * @summary Send feedback to a workflow
702
937
  */
703
938
  export type postWorkflowIdFeedbackResponse200 = {
@@ -726,6 +961,7 @@ export type postWorkflowIdFeedbackResponse = (postWorkflowIdFeedbackResponseSucc
726
961
  export declare const getPostWorkflowIdFeedbackUrl: (id: string) => string;
727
962
  export declare const postWorkflowIdFeedback: (id: string, postWorkflowIdFeedbackBody: PostWorkflowIdFeedbackBody, options?: ApiRequestOptions) => Promise<postWorkflowIdFeedbackResponse>;
728
963
  /**
964
+ * Always targets the latest run; `runId` cannot be pinned for Temporal signal operations.
729
965
  * @summary Send a signal to an workflow
730
966
  */
731
967
  export type postWorkflowIdSignalSignalResponse200 = {
@@ -754,6 +990,7 @@ export type postWorkflowIdSignalSignalResponse = (postWorkflowIdSignalSignalResp
754
990
  export declare const getPostWorkflowIdSignalSignalUrl: (id: string, signal: string) => string;
755
991
  export declare const postWorkflowIdSignalSignal: (id: string, signal: string, postWorkflowIdSignalSignalBody: PostWorkflowIdSignalSignalBody, options?: ApiRequestOptions) => Promise<postWorkflowIdSignalSignalResponse>;
756
992
  /**
993
+ * Always targets the latest run; `runId` cannot be pinned for Temporal query operations.
757
994
  * @summary Send a query to an workflow
758
995
  */
759
996
  export type postWorkflowIdQueryQueryResponse200 = {
@@ -782,6 +1019,7 @@ export type postWorkflowIdQueryQueryResponse = (postWorkflowIdQueryQueryResponse
782
1019
  export declare const getPostWorkflowIdQueryQueryUrl: (id: string, query: string) => string;
783
1020
  export declare const postWorkflowIdQueryQuery: (id: string, query: string, postWorkflowIdQueryQueryBody: PostWorkflowIdQueryQueryBody, options?: ApiRequestOptions) => Promise<postWorkflowIdQueryQueryResponse>;
784
1021
  /**
1022
+ * Always targets the latest run; `runId` cannot be pinned for Temporal update operations.
785
1023
  * @summary Execute an update on an workflow
786
1024
  */
787
1025
  export type postWorkflowIdUpdateUpdateResponse200 = {