@outputai/cli 0.1.13-dev.98dfd72.0 → 0.1.13-dev.e3e3291.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/run.js +0 -2
- package/dist/api/generated/api.d.ts +319 -85
- package/dist/api/generated/api.js +66 -8
- package/dist/assets/docker/docker-compose-dev.yml +1 -1
- package/dist/commands/fix.js +1 -1
- package/dist/commands/fix.spec.js +2 -2
- package/dist/commands/update.js +1 -1
- package/dist/commands/update.spec.js +2 -2
- package/dist/commands/workflow/plan.js +1 -5
- package/dist/commands/workflow/plan.spec.js +2 -3
- package/dist/commands/workflow/run.js +1 -2
- package/dist/commands/workflow/run.spec.js +0 -1
- package/dist/commands/workflow/start.js +1 -2
- package/dist/commands/workflow/start.spec.js +0 -1
- package/dist/commands/workflow/test_eval.js +2 -2
- package/dist/generated/framework_version.json +1 -1
- package/dist/hooks/init.js +0 -4
- package/dist/services/coding_agents.js +1 -1
- package/dist/services/coding_agents.spec.js +6 -6
- package/dist/services/credentials_configurator.js +1 -1
- package/dist/services/datasets.d.ts +1 -1
- package/dist/services/datasets.js +41 -37
- package/dist/services/datasets.test.js +202 -0
- package/dist/services/env_configurator.js +1 -1
- package/dist/services/env_configurator.spec.js +12 -12
- package/dist/services/project_scaffold.js +2 -2
- package/dist/services/project_scaffold.spec.js +6 -6
- package/dist/services/workflow_builder.js +1 -5
- package/dist/services/workflow_builder.spec.js +2 -3
- package/dist/utils/format_workflow_result.d.ts +3 -3
- package/package.json +4 -5
- package/dist/commands/credentials/set.d.ts +0 -14
- package/dist/commands/credentials/set.js +0 -57
- package/dist/commands/credentials/set.spec.js +0 -95
- package/dist/utils/interactive.d.ts +0 -2
- package/dist/utils/interactive.js +0 -5
- package/dist/utils/interactive.spec.d.ts +0 -1
- package/dist/utils/interactive.spec.js +0 -40
- package/dist/utils/prompt.d.ts +0 -17
- package/dist/utils/prompt.js +0 -20
- package/dist/utils/prompt.spec.d.ts +0 -1
- package/dist/utils/prompt.spec.js +0 -74
- package/dist/utils/proxy.d.ts +0 -1
- package/dist/utils/proxy.js +0 -9
- package/dist/utils/proxy.spec.d.ts +0 -1
- package/dist/utils/proxy.spec.js +0 -39
- /package/dist/{commands/credentials/set.spec.d.ts → services/datasets.test.d.ts} +0 -0
package/bin/run.js
CHANGED
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { execute } from '@oclif/core';
|
|
4
4
|
import { loadEnvironment } from '../dist/utils/env_loader.js';
|
|
5
|
-
import { bootstrapProxy } from '../dist/utils/proxy.js';
|
|
6
5
|
import { resolveCredentialRefs } from '@outputai/credentials';
|
|
7
6
|
|
|
8
7
|
// Load environment variables from .env files before executing CLI
|
|
9
8
|
loadEnvironment();
|
|
10
|
-
bootstrapProxy();
|
|
11
9
|
resolveCredentialRefs();
|
|
12
10
|
|
|
13
11
|
await execute( { dir: import.meta.url } );
|
|
@@ -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
|
|
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[];
|
|
@@ -458,10 +483,11 @@ export type postWorkflowStartResponse = (postWorkflowStartResponseSuccess | post
|
|
|
458
483
|
export declare const getPostWorkflowStartUrl: () => string;
|
|
459
484
|
export declare const postWorkflowStart: (postWorkflowStartBody: PostWorkflowStartBody, options?: ApiRequestOptions) => Promise<postWorkflowStartResponse>;
|
|
460
485
|
/**
|
|
461
|
-
*
|
|
486
|
+
* Returns the status of the latest run for the given workflow. To pin a specific run, use `/workflow/{id}/runs/{rid}/status`.
|
|
487
|
+
* @summary Get workflow execution status (latest run)
|
|
462
488
|
*/
|
|
463
489
|
export type getWorkflowIdStatusResponse200 = {
|
|
464
|
-
data:
|
|
490
|
+
data: WorkflowStatusResponse;
|
|
465
491
|
status: 200;
|
|
466
492
|
};
|
|
467
493
|
export type getWorkflowIdStatusResponse404 = {
|
|
@@ -482,16 +508,82 @@ export type getWorkflowIdStatusResponse = (getWorkflowIdStatusResponseSuccess |
|
|
|
482
508
|
export declare const getGetWorkflowIdStatusUrl: (id: string) => string;
|
|
483
509
|
export declare const getWorkflowIdStatus: (id: string, options?: ApiRequestOptions) => Promise<getWorkflowIdStatusResponse>;
|
|
484
510
|
/**
|
|
485
|
-
* @summary
|
|
511
|
+
* @summary Get workflow execution status for a specific run
|
|
512
|
+
*/
|
|
513
|
+
export type getWorkflowIdRunsRidStatusResponse200 = {
|
|
514
|
+
data: WorkflowStatusResponse;
|
|
515
|
+
status: 200;
|
|
516
|
+
};
|
|
517
|
+
export type getWorkflowIdRunsRidStatusResponse400 = {
|
|
518
|
+
data: BadRequestResponse;
|
|
519
|
+
status: 400;
|
|
520
|
+
};
|
|
521
|
+
export type getWorkflowIdRunsRidStatusResponse404 = {
|
|
522
|
+
data: NotFoundResponse;
|
|
523
|
+
status: 404;
|
|
524
|
+
};
|
|
525
|
+
export type getWorkflowIdRunsRidStatusResponse500 = {
|
|
526
|
+
data: InternalServerErrorResponse;
|
|
527
|
+
status: 500;
|
|
528
|
+
};
|
|
529
|
+
export type getWorkflowIdRunsRidStatusResponseSuccess = (getWorkflowIdRunsRidStatusResponse200) & {
|
|
530
|
+
headers: Headers;
|
|
531
|
+
};
|
|
532
|
+
export type getWorkflowIdRunsRidStatusResponseError = (getWorkflowIdRunsRidStatusResponse400 | getWorkflowIdRunsRidStatusResponse404 | getWorkflowIdRunsRidStatusResponse500) & {
|
|
533
|
+
headers: Headers;
|
|
534
|
+
};
|
|
535
|
+
export type getWorkflowIdRunsRidStatusResponse = (getWorkflowIdRunsRidStatusResponseSuccess | getWorkflowIdRunsRidStatusResponseError);
|
|
536
|
+
export declare const getGetWorkflowIdRunsRidStatusUrl: (id: string, rid: string) => string;
|
|
537
|
+
export declare const getWorkflowIdRunsRidStatus: (id: string, rid: string, options?: ApiRequestOptions) => Promise<getWorkflowIdRunsRidStatusResponse>;
|
|
538
|
+
/**
|
|
539
|
+
* @summary Stop a specific workflow run
|
|
540
|
+
*/
|
|
541
|
+
export type patchWorkflowIdRunsRidStopResponse200 = {
|
|
542
|
+
data: StopWorkflowResponse;
|
|
543
|
+
status: 200;
|
|
544
|
+
};
|
|
545
|
+
export type patchWorkflowIdRunsRidStopResponse400 = {
|
|
546
|
+
data: BadRequestResponse;
|
|
547
|
+
status: 400;
|
|
548
|
+
};
|
|
549
|
+
export type patchWorkflowIdRunsRidStopResponse404 = {
|
|
550
|
+
data: NotFoundResponse;
|
|
551
|
+
status: 404;
|
|
552
|
+
};
|
|
553
|
+
export type patchWorkflowIdRunsRidStopResponse409 = {
|
|
554
|
+
data: ConflictResponse;
|
|
555
|
+
status: 409;
|
|
556
|
+
};
|
|
557
|
+
export type patchWorkflowIdRunsRidStopResponse500 = {
|
|
558
|
+
data: InternalServerErrorResponse;
|
|
559
|
+
status: 500;
|
|
560
|
+
};
|
|
561
|
+
export type patchWorkflowIdRunsRidStopResponseSuccess = (patchWorkflowIdRunsRidStopResponse200) & {
|
|
562
|
+
headers: Headers;
|
|
563
|
+
};
|
|
564
|
+
export type patchWorkflowIdRunsRidStopResponseError = (patchWorkflowIdRunsRidStopResponse400 | patchWorkflowIdRunsRidStopResponse404 | patchWorkflowIdRunsRidStopResponse409 | patchWorkflowIdRunsRidStopResponse500) & {
|
|
565
|
+
headers: Headers;
|
|
566
|
+
};
|
|
567
|
+
export type patchWorkflowIdRunsRidStopResponse = (patchWorkflowIdRunsRidStopResponseSuccess | patchWorkflowIdRunsRidStopResponseError);
|
|
568
|
+
export declare const getPatchWorkflowIdRunsRidStopUrl: (id: string, rid: string) => string;
|
|
569
|
+
export declare const patchWorkflowIdRunsRidStop: (id: string, rid: string, options?: ApiRequestOptions) => Promise<patchWorkflowIdRunsRidStopResponse>;
|
|
570
|
+
/**
|
|
571
|
+
* 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.
|
|
572
|
+
* @deprecated
|
|
573
|
+
* @summary [Deprecated] Stop the latest workflow run
|
|
486
574
|
*/
|
|
487
575
|
export type patchWorkflowIdStopResponse200 = {
|
|
488
|
-
data:
|
|
576
|
+
data: StopWorkflowResponse;
|
|
489
577
|
status: 200;
|
|
490
578
|
};
|
|
491
579
|
export type patchWorkflowIdStopResponse404 = {
|
|
492
580
|
data: NotFoundResponse;
|
|
493
581
|
status: 404;
|
|
494
582
|
};
|
|
583
|
+
export type patchWorkflowIdStopResponse409 = {
|
|
584
|
+
data: ConflictResponse;
|
|
585
|
+
status: 409;
|
|
586
|
+
};
|
|
495
587
|
export type patchWorkflowIdStopResponse500 = {
|
|
496
588
|
data: InternalServerErrorResponse;
|
|
497
589
|
status: 500;
|
|
@@ -499,18 +591,52 @@ export type patchWorkflowIdStopResponse500 = {
|
|
|
499
591
|
export type patchWorkflowIdStopResponseSuccess = (patchWorkflowIdStopResponse200) & {
|
|
500
592
|
headers: Headers;
|
|
501
593
|
};
|
|
502
|
-
export type patchWorkflowIdStopResponseError = (patchWorkflowIdStopResponse404 | patchWorkflowIdStopResponse500) & {
|
|
594
|
+
export type patchWorkflowIdStopResponseError = (patchWorkflowIdStopResponse404 | patchWorkflowIdStopResponse409 | patchWorkflowIdStopResponse500) & {
|
|
503
595
|
headers: Headers;
|
|
504
596
|
};
|
|
505
597
|
export type patchWorkflowIdStopResponse = (patchWorkflowIdStopResponseSuccess | patchWorkflowIdStopResponseError);
|
|
506
598
|
export declare const getPatchWorkflowIdStopUrl: (id: string) => string;
|
|
507
599
|
export declare const patchWorkflowIdStop: (id: string, options?: ApiRequestOptions) => Promise<patchWorkflowIdStopResponse>;
|
|
508
600
|
/**
|
|
509
|
-
* Force terminates a workflow. Unlike stop/cancel, terminate immediately stops the
|
|
510
|
-
* @summary Terminate a workflow
|
|
601
|
+
* Force terminates a workflow run. Unlike stop/cancel, terminate immediately stops the run without allowing cleanup.
|
|
602
|
+
* @summary Terminate a specific workflow run (force stop)
|
|
603
|
+
*/
|
|
604
|
+
export type postWorkflowIdRunsRidTerminateResponse200 = {
|
|
605
|
+
data: TerminateWorkflowResponse;
|
|
606
|
+
status: 200;
|
|
607
|
+
};
|
|
608
|
+
export type postWorkflowIdRunsRidTerminateResponse400 = {
|
|
609
|
+
data: BadRequestResponse;
|
|
610
|
+
status: 400;
|
|
611
|
+
};
|
|
612
|
+
export type postWorkflowIdRunsRidTerminateResponse404 = {
|
|
613
|
+
data: NotFoundResponse;
|
|
614
|
+
status: 404;
|
|
615
|
+
};
|
|
616
|
+
export type postWorkflowIdRunsRidTerminateResponse409 = {
|
|
617
|
+
data: ConflictResponse;
|
|
618
|
+
status: 409;
|
|
619
|
+
};
|
|
620
|
+
export type postWorkflowIdRunsRidTerminateResponse500 = {
|
|
621
|
+
data: InternalServerErrorResponse;
|
|
622
|
+
status: 500;
|
|
623
|
+
};
|
|
624
|
+
export type postWorkflowIdRunsRidTerminateResponseSuccess = (postWorkflowIdRunsRidTerminateResponse200) & {
|
|
625
|
+
headers: Headers;
|
|
626
|
+
};
|
|
627
|
+
export type postWorkflowIdRunsRidTerminateResponseError = (postWorkflowIdRunsRidTerminateResponse400 | postWorkflowIdRunsRidTerminateResponse404 | postWorkflowIdRunsRidTerminateResponse409 | postWorkflowIdRunsRidTerminateResponse500) & {
|
|
628
|
+
headers: Headers;
|
|
629
|
+
};
|
|
630
|
+
export type postWorkflowIdRunsRidTerminateResponse = (postWorkflowIdRunsRidTerminateResponseSuccess | postWorkflowIdRunsRidTerminateResponseError);
|
|
631
|
+
export declare const getPostWorkflowIdRunsRidTerminateUrl: (id: string, rid: string) => string;
|
|
632
|
+
export declare const postWorkflowIdRunsRidTerminate: (id: string, rid: string, postWorkflowIdRunsRidTerminateBody: PostWorkflowIdRunsRidTerminateBody, options?: ApiRequestOptions) => Promise<postWorkflowIdRunsRidTerminateResponse>;
|
|
633
|
+
/**
|
|
634
|
+
* 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.
|
|
635
|
+
* @deprecated
|
|
636
|
+
* @summary [Deprecated] Terminate the latest workflow run
|
|
511
637
|
*/
|
|
512
638
|
export type postWorkflowIdTerminateResponse200 = {
|
|
513
|
-
data:
|
|
639
|
+
data: TerminateWorkflowResponse;
|
|
514
640
|
status: 200;
|
|
515
641
|
};
|
|
516
642
|
export type postWorkflowIdTerminateResponse400 = {
|
|
@@ -521,6 +647,10 @@ export type postWorkflowIdTerminateResponse404 = {
|
|
|
521
647
|
data: NotFoundResponse;
|
|
522
648
|
status: 404;
|
|
523
649
|
};
|
|
650
|
+
export type postWorkflowIdTerminateResponse409 = {
|
|
651
|
+
data: ConflictResponse;
|
|
652
|
+
status: 409;
|
|
653
|
+
};
|
|
524
654
|
export type postWorkflowIdTerminateResponse500 = {
|
|
525
655
|
data: InternalServerErrorResponse;
|
|
526
656
|
status: 500;
|
|
@@ -528,18 +658,52 @@ export type postWorkflowIdTerminateResponse500 = {
|
|
|
528
658
|
export type postWorkflowIdTerminateResponseSuccess = (postWorkflowIdTerminateResponse200) & {
|
|
529
659
|
headers: Headers;
|
|
530
660
|
};
|
|
531
|
-
export type postWorkflowIdTerminateResponseError = (postWorkflowIdTerminateResponse400 | postWorkflowIdTerminateResponse404 | postWorkflowIdTerminateResponse500) & {
|
|
661
|
+
export type postWorkflowIdTerminateResponseError = (postWorkflowIdTerminateResponse400 | postWorkflowIdTerminateResponse404 | postWorkflowIdTerminateResponse409 | postWorkflowIdTerminateResponse500) & {
|
|
532
662
|
headers: Headers;
|
|
533
663
|
};
|
|
534
664
|
export type postWorkflowIdTerminateResponse = (postWorkflowIdTerminateResponseSuccess | postWorkflowIdTerminateResponseError);
|
|
535
665
|
export declare const getPostWorkflowIdTerminateUrl: (id: string) => string;
|
|
536
666
|
export declare const postWorkflowIdTerminate: (id: string, postWorkflowIdTerminateBody: PostWorkflowIdTerminateBody, options?: ApiRequestOptions) => Promise<postWorkflowIdTerminateResponse>;
|
|
537
667
|
/**
|
|
538
|
-
* Resets a workflow
|
|
539
|
-
* @summary Reset a workflow to re-run from after a
|
|
668
|
+
* 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.
|
|
669
|
+
* @summary Reset a specific workflow run to re-run from after a completed step
|
|
670
|
+
*/
|
|
671
|
+
export type postWorkflowIdRunsRidResetResponse200 = {
|
|
672
|
+
data: ResetWorkflowResponse;
|
|
673
|
+
status: 200;
|
|
674
|
+
};
|
|
675
|
+
export type postWorkflowIdRunsRidResetResponse400 = {
|
|
676
|
+
data: BadRequestResponse;
|
|
677
|
+
status: 400;
|
|
678
|
+
};
|
|
679
|
+
export type postWorkflowIdRunsRidResetResponse404 = {
|
|
680
|
+
data: NotFoundResponse;
|
|
681
|
+
status: 404;
|
|
682
|
+
};
|
|
683
|
+
export type postWorkflowIdRunsRidResetResponse409 = {
|
|
684
|
+
data: ConflictResponse;
|
|
685
|
+
status: 409;
|
|
686
|
+
};
|
|
687
|
+
export type postWorkflowIdRunsRidResetResponse500 = {
|
|
688
|
+
data: InternalServerErrorResponse;
|
|
689
|
+
status: 500;
|
|
690
|
+
};
|
|
691
|
+
export type postWorkflowIdRunsRidResetResponseSuccess = (postWorkflowIdRunsRidResetResponse200) & {
|
|
692
|
+
headers: Headers;
|
|
693
|
+
};
|
|
694
|
+
export type postWorkflowIdRunsRidResetResponseError = (postWorkflowIdRunsRidResetResponse400 | postWorkflowIdRunsRidResetResponse404 | postWorkflowIdRunsRidResetResponse409 | postWorkflowIdRunsRidResetResponse500) & {
|
|
695
|
+
headers: Headers;
|
|
696
|
+
};
|
|
697
|
+
export type postWorkflowIdRunsRidResetResponse = (postWorkflowIdRunsRidResetResponseSuccess | postWorkflowIdRunsRidResetResponseError);
|
|
698
|
+
export declare const getPostWorkflowIdRunsRidResetUrl: (id: string, rid: string) => string;
|
|
699
|
+
export declare const postWorkflowIdRunsRidReset: (id: string, rid: string, resetWorkflowRequest: ResetWorkflowRequest, options?: ApiRequestOptions) => Promise<postWorkflowIdRunsRidResetResponse>;
|
|
700
|
+
/**
|
|
701
|
+
* Resets the latest run. Deprecated; use `POST /workflow/{id}/runs/{rid}/reset` to target a specific run. Scheduled for removal after 2026-07-16.
|
|
702
|
+
* @deprecated
|
|
703
|
+
* @summary [Deprecated] Reset the latest workflow run
|
|
540
704
|
*/
|
|
541
705
|
export type postWorkflowIdResetResponse200 = {
|
|
542
|
-
data:
|
|
706
|
+
data: ResetWorkflowResponse;
|
|
543
707
|
status: 200;
|
|
544
708
|
};
|
|
545
709
|
export type postWorkflowIdResetResponse400 = {
|
|
@@ -551,7 +715,7 @@ export type postWorkflowIdResetResponse404 = {
|
|
|
551
715
|
status: 404;
|
|
552
716
|
};
|
|
553
717
|
export type postWorkflowIdResetResponse409 = {
|
|
554
|
-
data:
|
|
718
|
+
data: ConflictResponse;
|
|
555
719
|
status: 409;
|
|
556
720
|
};
|
|
557
721
|
export type postWorkflowIdResetResponse500 = {
|
|
@@ -566,12 +730,13 @@ export type postWorkflowIdResetResponseError = (postWorkflowIdResetResponse400 |
|
|
|
566
730
|
};
|
|
567
731
|
export type postWorkflowIdResetResponse = (postWorkflowIdResetResponseSuccess | postWorkflowIdResetResponseError);
|
|
568
732
|
export declare const getPostWorkflowIdResetUrl: (id: string) => string;
|
|
569
|
-
export declare const postWorkflowIdReset: (id: string,
|
|
733
|
+
export declare const postWorkflowIdReset: (id: string, resetWorkflowRequest: ResetWorkflowRequest, options?: ApiRequestOptions) => Promise<postWorkflowIdResetResponse>;
|
|
570
734
|
/**
|
|
571
|
-
*
|
|
735
|
+
* Returns the result of the latest run for the given workflow. To pin a specific run, use `/workflow/{id}/runs/{rid}/result`.
|
|
736
|
+
* @summary Return the result of a workflow (latest run)
|
|
572
737
|
*/
|
|
573
738
|
export type getWorkflowIdResultResponse200 = {
|
|
574
|
-
data:
|
|
739
|
+
data: WorkflowResultResponse;
|
|
575
740
|
status: 200;
|
|
576
741
|
};
|
|
577
742
|
export type getWorkflowIdResultResponse404 = {
|
|
@@ -596,8 +761,40 @@ export type getWorkflowIdResultResponse = (getWorkflowIdResultResponseSuccess |
|
|
|
596
761
|
export declare const getGetWorkflowIdResultUrl: (id: string) => string;
|
|
597
762
|
export declare const getWorkflowIdResult: (id: string, options?: ApiRequestOptions) => Promise<getWorkflowIdResultResponse>;
|
|
598
763
|
/**
|
|
599
|
-
*
|
|
600
|
-
|
|
764
|
+
* @summary Return the result of a specific workflow run
|
|
765
|
+
*/
|
|
766
|
+
export type getWorkflowIdRunsRidResultResponse200 = {
|
|
767
|
+
data: WorkflowResultResponse;
|
|
768
|
+
status: 200;
|
|
769
|
+
};
|
|
770
|
+
export type getWorkflowIdRunsRidResultResponse400 = {
|
|
771
|
+
data: BadRequestResponse;
|
|
772
|
+
status: 400;
|
|
773
|
+
};
|
|
774
|
+
export type getWorkflowIdRunsRidResultResponse404 = {
|
|
775
|
+
data: NotFoundResponse;
|
|
776
|
+
status: 404;
|
|
777
|
+
};
|
|
778
|
+
export type getWorkflowIdRunsRidResultResponse424 = {
|
|
779
|
+
data: FailedDependencyResponse;
|
|
780
|
+
status: 424;
|
|
781
|
+
};
|
|
782
|
+
export type getWorkflowIdRunsRidResultResponse500 = {
|
|
783
|
+
data: InternalServerErrorResponse;
|
|
784
|
+
status: 500;
|
|
785
|
+
};
|
|
786
|
+
export type getWorkflowIdRunsRidResultResponseSuccess = (getWorkflowIdRunsRidResultResponse200) & {
|
|
787
|
+
headers: Headers;
|
|
788
|
+
};
|
|
789
|
+
export type getWorkflowIdRunsRidResultResponseError = (getWorkflowIdRunsRidResultResponse400 | getWorkflowIdRunsRidResultResponse404 | getWorkflowIdRunsRidResultResponse424 | getWorkflowIdRunsRidResultResponse500) & {
|
|
790
|
+
headers: Headers;
|
|
791
|
+
};
|
|
792
|
+
export type getWorkflowIdRunsRidResultResponse = (getWorkflowIdRunsRidResultResponseSuccess | getWorkflowIdRunsRidResultResponseError);
|
|
793
|
+
export declare const getGetWorkflowIdRunsRidResultUrl: (id: string, rid: string) => string;
|
|
794
|
+
export declare const getWorkflowIdRunsRidResult: (id: string, rid: string, options?: ApiRequestOptions) => Promise<getWorkflowIdRunsRidResultResponse>;
|
|
795
|
+
/**
|
|
796
|
+
* 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`.
|
|
797
|
+
* @summary Get workflow trace log data (latest run)
|
|
601
798
|
*/
|
|
602
799
|
export type getWorkflowIdTraceLogResponse200 = {
|
|
603
800
|
data: TraceLogRemoteResponse | TraceLogLocalResponse;
|
|
@@ -624,6 +821,39 @@ export type getWorkflowIdTraceLogResponseError = (getWorkflowIdTraceLogResponse4
|
|
|
624
821
|
export type getWorkflowIdTraceLogResponse = (getWorkflowIdTraceLogResponseSuccess | getWorkflowIdTraceLogResponseError);
|
|
625
822
|
export declare const getGetWorkflowIdTraceLogUrl: (id: string) => string;
|
|
626
823
|
export declare const getWorkflowIdTraceLog: (id: string, options?: ApiRequestOptions) => Promise<getWorkflowIdTraceLogResponse>;
|
|
824
|
+
/**
|
|
825
|
+
* 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.
|
|
826
|
+
* @summary Get workflow trace log data for a specific run
|
|
827
|
+
*/
|
|
828
|
+
export type getWorkflowIdRunsRidTraceLogResponse200 = {
|
|
829
|
+
data: TraceLogRemoteResponse | TraceLogLocalResponse;
|
|
830
|
+
status: 200;
|
|
831
|
+
};
|
|
832
|
+
export type getWorkflowIdRunsRidTraceLogResponse400 = {
|
|
833
|
+
data: BadRequestResponse;
|
|
834
|
+
status: 400;
|
|
835
|
+
};
|
|
836
|
+
export type getWorkflowIdRunsRidTraceLogResponse404 = {
|
|
837
|
+
data: NotFoundResponse;
|
|
838
|
+
status: 404;
|
|
839
|
+
};
|
|
840
|
+
export type getWorkflowIdRunsRidTraceLogResponse424 = {
|
|
841
|
+
data: FailedDependencyResponse;
|
|
842
|
+
status: 424;
|
|
843
|
+
};
|
|
844
|
+
export type getWorkflowIdRunsRidTraceLogResponse500 = {
|
|
845
|
+
data: InternalServerErrorResponse;
|
|
846
|
+
status: 500;
|
|
847
|
+
};
|
|
848
|
+
export type getWorkflowIdRunsRidTraceLogResponseSuccess = (getWorkflowIdRunsRidTraceLogResponse200) & {
|
|
849
|
+
headers: Headers;
|
|
850
|
+
};
|
|
851
|
+
export type getWorkflowIdRunsRidTraceLogResponseError = (getWorkflowIdRunsRidTraceLogResponse400 | getWorkflowIdRunsRidTraceLogResponse404 | getWorkflowIdRunsRidTraceLogResponse424 | getWorkflowIdRunsRidTraceLogResponse500) & {
|
|
852
|
+
headers: Headers;
|
|
853
|
+
};
|
|
854
|
+
export type getWorkflowIdRunsRidTraceLogResponse = (getWorkflowIdRunsRidTraceLogResponseSuccess | getWorkflowIdRunsRidTraceLogResponseError);
|
|
855
|
+
export declare const getGetWorkflowIdRunsRidTraceLogUrl: (id: string, rid: string) => string;
|
|
856
|
+
export declare const getWorkflowIdRunsRidTraceLog: (id: string, rid: string, options?: ApiRequestOptions) => Promise<getWorkflowIdRunsRidTraceLogResponse>;
|
|
627
857
|
/**
|
|
628
858
|
* @summary Get a specific workflow catalog by ID
|
|
629
859
|
*/
|
|
@@ -698,6 +928,7 @@ export type getWorkflowRunsResponse = (getWorkflowRunsResponseSuccess | getWorkf
|
|
|
698
928
|
export declare const getGetWorkflowRunsUrl: (params?: GetWorkflowRunsParams) => string;
|
|
699
929
|
export declare const getWorkflowRuns: (params?: GetWorkflowRunsParams, options?: ApiRequestOptions) => Promise<getWorkflowRunsResponse>;
|
|
700
930
|
/**
|
|
931
|
+
* Always targets the latest run; `runId` cannot be pinned for Temporal signal operations.
|
|
701
932
|
* @summary Send feedback to a workflow
|
|
702
933
|
*/
|
|
703
934
|
export type postWorkflowIdFeedbackResponse200 = {
|
|
@@ -726,6 +957,7 @@ export type postWorkflowIdFeedbackResponse = (postWorkflowIdFeedbackResponseSucc
|
|
|
726
957
|
export declare const getPostWorkflowIdFeedbackUrl: (id: string) => string;
|
|
727
958
|
export declare const postWorkflowIdFeedback: (id: string, postWorkflowIdFeedbackBody: PostWorkflowIdFeedbackBody, options?: ApiRequestOptions) => Promise<postWorkflowIdFeedbackResponse>;
|
|
728
959
|
/**
|
|
960
|
+
* Always targets the latest run; `runId` cannot be pinned for Temporal signal operations.
|
|
729
961
|
* @summary Send a signal to an workflow
|
|
730
962
|
*/
|
|
731
963
|
export type postWorkflowIdSignalSignalResponse200 = {
|
|
@@ -754,6 +986,7 @@ export type postWorkflowIdSignalSignalResponse = (postWorkflowIdSignalSignalResp
|
|
|
754
986
|
export declare const getPostWorkflowIdSignalSignalUrl: (id: string, signal: string) => string;
|
|
755
987
|
export declare const postWorkflowIdSignalSignal: (id: string, signal: string, postWorkflowIdSignalSignalBody: PostWorkflowIdSignalSignalBody, options?: ApiRequestOptions) => Promise<postWorkflowIdSignalSignalResponse>;
|
|
756
988
|
/**
|
|
989
|
+
* Always targets the latest run; `runId` cannot be pinned for Temporal query operations.
|
|
757
990
|
* @summary Send a query to an workflow
|
|
758
991
|
*/
|
|
759
992
|
export type postWorkflowIdQueryQueryResponse200 = {
|
|
@@ -782,6 +1015,7 @@ export type postWorkflowIdQueryQueryResponse = (postWorkflowIdQueryQueryResponse
|
|
|
782
1015
|
export declare const getPostWorkflowIdQueryQueryUrl: (id: string, query: string) => string;
|
|
783
1016
|
export declare const postWorkflowIdQueryQuery: (id: string, query: string, postWorkflowIdQueryQueryBody: PostWorkflowIdQueryQueryBody, options?: ApiRequestOptions) => Promise<postWorkflowIdQueryQueryResponse>;
|
|
784
1017
|
/**
|
|
1018
|
+
* Always targets the latest run; `runId` cannot be pinned for Temporal update operations.
|
|
785
1019
|
* @summary Execute an update on an workflow
|
|
786
1020
|
*/
|
|
787
1021
|
export type postWorkflowIdUpdateUpdateResponse200 = {
|