@outputai/cli 0.1.2-dev.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -7
- package/dist/api/generated/api.d.ts +0 -820
- package/dist/api/generated/api.js +0 -226
- package/dist/api/http_client.d.ts +0 -27
- package/dist/api/http_client.js +0 -71
- package/dist/api/orval_post_process.d.ts +0 -11
- package/dist/api/orval_post_process.js +0 -46
- package/dist/api/parser.d.ts +0 -17
- package/dist/api/parser.js +0 -68
- package/dist/assets/config/costs.yml +0 -309
- package/dist/assets/docker/docker-compose-dev.yml +0 -146
- package/dist/commands/credentials/edit.d.ts +0 -10
- package/dist/commands/credentials/edit.js +0 -67
- package/dist/commands/credentials/edit.spec.d.ts +0 -1
- package/dist/commands/credentials/edit.spec.js +0 -73
- package/dist/commands/credentials/get.d.ts +0 -13
- package/dist/commands/credentials/get.js +0 -46
- package/dist/commands/credentials/get.spec.d.ts +0 -1
- package/dist/commands/credentials/get.spec.js +0 -74
- package/dist/commands/credentials/init.d.ts +0 -11
- package/dist/commands/credentials/init.js +0 -45
- package/dist/commands/credentials/init.spec.d.ts +0 -1
- package/dist/commands/credentials/init.spec.js +0 -68
- package/dist/commands/credentials/show.d.ts +0 -10
- package/dist/commands/credentials/show.js +0 -33
- package/dist/commands/credentials/show.spec.d.ts +0 -1
- package/dist/commands/credentials/show.spec.js +0 -57
- package/dist/commands/dev/eject.d.ts +0 -11
- package/dist/commands/dev/eject.js +0 -58
- package/dist/commands/dev/eject.spec.d.ts +0 -1
- package/dist/commands/dev/eject.spec.js +0 -109
- package/dist/commands/dev/index.d.ts +0 -13
- package/dist/commands/dev/index.js +0 -162
- package/dist/commands/dev/index.spec.d.ts +0 -1
- package/dist/commands/dev/index.spec.js +0 -239
- package/dist/commands/init.d.ts +0 -12
- package/dist/commands/init.js +0 -37
- package/dist/commands/init.spec.d.ts +0 -1
- package/dist/commands/init.spec.js +0 -100
- package/dist/commands/update.d.ts +0 -14
- package/dist/commands/update.js +0 -120
- package/dist/commands/update.spec.d.ts +0 -1
- package/dist/commands/update.spec.js +0 -178
- package/dist/commands/workflow/cost.d.ts +0 -16
- package/dist/commands/workflow/cost.js +0 -71
- package/dist/commands/workflow/cost.spec.d.ts +0 -1
- package/dist/commands/workflow/cost.spec.js +0 -47
- package/dist/commands/workflow/dataset/generate.d.ts +0 -22
- package/dist/commands/workflow/dataset/generate.js +0 -143
- package/dist/commands/workflow/dataset/list.d.ts +0 -12
- package/dist/commands/workflow/dataset/list.js +0 -87
- package/dist/commands/workflow/debug.d.ts +0 -16
- package/dist/commands/workflow/debug.js +0 -60
- package/dist/commands/workflow/debug.spec.d.ts +0 -1
- package/dist/commands/workflow/debug.spec.js +0 -34
- package/dist/commands/workflow/generate.d.ts +0 -17
- package/dist/commands/workflow/generate.js +0 -85
- package/dist/commands/workflow/generate.spec.d.ts +0 -1
- package/dist/commands/workflow/generate.spec.js +0 -115
- package/dist/commands/workflow/list.d.ts +0 -22
- package/dist/commands/workflow/list.js +0 -152
- package/dist/commands/workflow/list.spec.d.ts +0 -1
- package/dist/commands/workflow/list.spec.js +0 -99
- package/dist/commands/workflow/plan.d.ts +0 -12
- package/dist/commands/workflow/plan.js +0 -66
- package/dist/commands/workflow/plan.spec.d.ts +0 -1
- package/dist/commands/workflow/plan.spec.js +0 -341
- package/dist/commands/workflow/reset.d.ts +0 -14
- package/dist/commands/workflow/reset.js +0 -51
- package/dist/commands/workflow/result.d.ts +0 -13
- package/dist/commands/workflow/result.js +0 -46
- package/dist/commands/workflow/result.spec.d.ts +0 -1
- package/dist/commands/workflow/result.spec.js +0 -23
- package/dist/commands/workflow/run.d.ts +0 -16
- package/dist/commands/workflow/run.js +0 -97
- package/dist/commands/workflow/run.spec.d.ts +0 -1
- package/dist/commands/workflow/run.spec.js +0 -110
- package/dist/commands/workflow/runs/list.d.ts +0 -14
- package/dist/commands/workflow/runs/list.js +0 -104
- package/dist/commands/workflow/start.d.ts +0 -15
- package/dist/commands/workflow/start.js +0 -62
- package/dist/commands/workflow/start.spec.d.ts +0 -1
- package/dist/commands/workflow/start.spec.js +0 -28
- package/dist/commands/workflow/status.d.ts +0 -13
- package/dist/commands/workflow/status.js +0 -57
- package/dist/commands/workflow/status.spec.d.ts +0 -1
- package/dist/commands/workflow/status.spec.js +0 -33
- package/dist/commands/workflow/stop.d.ts +0 -10
- package/dist/commands/workflow/stop.js +0 -31
- package/dist/commands/workflow/stop.spec.d.ts +0 -1
- package/dist/commands/workflow/stop.spec.js +0 -17
- package/dist/commands/workflow/terminate.d.ts +0 -13
- package/dist/commands/workflow/terminate.js +0 -39
- package/dist/commands/workflow/test_eval.d.ts +0 -20
- package/dist/commands/workflow/test_eval.js +0 -151
- package/dist/config.d.ts +0 -47
- package/dist/config.js +0 -47
- package/dist/generated/framework_version.json +0 -3
- package/dist/hooks/init.d.ts +0 -3
- package/dist/hooks/init.js +0 -30
- package/dist/hooks/init.spec.d.ts +0 -1
- package/dist/hooks/init.spec.js +0 -54
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.spec.d.ts +0 -1
- package/dist/index.spec.js +0 -6
- package/dist/services/claude_client.d.ts +0 -30
- package/dist/services/claude_client.integration.test.d.ts +0 -1
- package/dist/services/claude_client.integration.test.js +0 -43
- package/dist/services/claude_client.js +0 -215
- package/dist/services/claude_client.spec.d.ts +0 -1
- package/dist/services/claude_client.spec.js +0 -145
- package/dist/services/coding_agents.d.ts +0 -36
- package/dist/services/coding_agents.js +0 -236
- package/dist/services/coding_agents.spec.d.ts +0 -1
- package/dist/services/coding_agents.spec.js +0 -256
- package/dist/services/copy_assets.spec.d.ts +0 -1
- package/dist/services/copy_assets.spec.js +0 -22
- package/dist/services/cost_calculator.d.ts +0 -18
- package/dist/services/cost_calculator.js +0 -359
- package/dist/services/cost_calculator.spec.d.ts +0 -1
- package/dist/services/cost_calculator.spec.js +0 -540
- package/dist/services/credentials_service.d.ts +0 -12
- package/dist/services/credentials_service.integration.test.d.ts +0 -1
- package/dist/services/credentials_service.integration.test.js +0 -66
- package/dist/services/credentials_service.js +0 -64
- package/dist/services/credentials_service.spec.d.ts +0 -1
- package/dist/services/credentials_service.spec.js +0 -106
- package/dist/services/datasets.d.ts +0 -20
- package/dist/services/datasets.js +0 -132
- package/dist/services/docker.d.ts +0 -38
- package/dist/services/docker.js +0 -148
- package/dist/services/docker.spec.d.ts +0 -1
- package/dist/services/docker.spec.js +0 -124
- package/dist/services/env_configurator.d.ts +0 -15
- package/dist/services/env_configurator.js +0 -163
- package/dist/services/env_configurator.spec.d.ts +0 -1
- package/dist/services/env_configurator.spec.js +0 -192
- package/dist/services/generate_plan_name@v1.prompt +0 -24
- package/dist/services/messages.d.ts +0 -9
- package/dist/services/messages.js +0 -338
- package/dist/services/messages.spec.d.ts +0 -1
- package/dist/services/messages.spec.js +0 -55
- package/dist/services/npm_update_service.d.ts +0 -6
- package/dist/services/npm_update_service.js +0 -87
- package/dist/services/npm_update_service.spec.d.ts +0 -1
- package/dist/services/npm_update_service.spec.js +0 -104
- package/dist/services/project_scaffold.d.ts +0 -31
- package/dist/services/project_scaffold.js +0 -212
- package/dist/services/project_scaffold.spec.d.ts +0 -1
- package/dist/services/project_scaffold.spec.js +0 -122
- package/dist/services/s3_trace_downloader.d.ts +0 -12
- package/dist/services/s3_trace_downloader.js +0 -57
- package/dist/services/template_processor.d.ts +0 -14
- package/dist/services/template_processor.js +0 -57
- package/dist/services/trace_reader.d.ts +0 -16
- package/dist/services/trace_reader.js +0 -57
- package/dist/services/trace_reader.spec.d.ts +0 -1
- package/dist/services/trace_reader.spec.js +0 -78
- package/dist/services/version_check.d.ts +0 -6
- package/dist/services/version_check.js +0 -52
- package/dist/services/version_check.spec.d.ts +0 -1
- package/dist/services/version_check.spec.js +0 -106
- package/dist/services/workflow_builder.d.ts +0 -16
- package/dist/services/workflow_builder.js +0 -86
- package/dist/services/workflow_builder.spec.d.ts +0 -1
- package/dist/services/workflow_builder.spec.js +0 -165
- package/dist/services/workflow_generator.d.ts +0 -5
- package/dist/services/workflow_generator.js +0 -40
- package/dist/services/workflow_generator.spec.d.ts +0 -1
- package/dist/services/workflow_generator.spec.js +0 -77
- package/dist/services/workflow_planner.d.ts +0 -15
- package/dist/services/workflow_planner.js +0 -48
- package/dist/services/workflow_planner.spec.d.ts +0 -1
- package/dist/services/workflow_planner.spec.js +0 -122
- package/dist/services/workflow_runs.d.ts +0 -14
- package/dist/services/workflow_runs.js +0 -25
- package/dist/templates/agent_instructions/CLAUDE.md.template +0 -19
- package/dist/templates/agent_instructions/dotclaude/settings.json.template +0 -29
- package/dist/templates/project/.env.example.template +0 -9
- package/dist/templates/project/.gitignore.template +0 -35
- package/dist/templates/project/README.md.template +0 -100
- package/dist/templates/project/config/costs.yml.template +0 -29
- package/dist/templates/project/package.json.template +0 -25
- package/dist/templates/project/src/clients/jina.ts.template +0 -30
- package/dist/templates/project/src/shared/utils/string.ts.template +0 -3
- package/dist/templates/project/src/shared/utils/url.ts.template +0 -15
- package/dist/templates/project/src/workflows/blog_evaluator/evaluators.ts.template +0 -23
- package/dist/templates/project/src/workflows/blog_evaluator/prompts/signal_noise@v1.prompt.template +0 -26
- package/dist/templates/project/src/workflows/blog_evaluator/scenarios/paulgraham_hwh.json.template +0 -3
- package/dist/templates/project/src/workflows/blog_evaluator/steps.ts.template +0 -27
- package/dist/templates/project/src/workflows/blog_evaluator/types.ts.template +0 -30
- package/dist/templates/project/src/workflows/blog_evaluator/utils.ts.template +0 -15
- package/dist/templates/project/src/workflows/blog_evaluator/workflow.ts.template +0 -27
- package/dist/templates/project/tsconfig.json.template +0 -20
- package/dist/templates/workflow/README.md.template +0 -216
- package/dist/templates/workflow/evaluators.ts.template +0 -21
- package/dist/templates/workflow/prompts/example@v1.prompt.template +0 -15
- package/dist/templates/workflow/scenarios/test_input.json.template +0 -3
- package/dist/templates/workflow/steps.ts.template +0 -20
- package/dist/templates/workflow/types.ts.template +0 -13
- package/dist/templates/workflow/workflow.ts.template +0 -23
- package/dist/test_helpers/mocks.d.ts +0 -38
- package/dist/test_helpers/mocks.js +0 -77
- package/dist/types/cost.d.ts +0 -149
- package/dist/types/cost.js +0 -6
- package/dist/types/domain.d.ts +0 -20
- package/dist/types/domain.js +0 -4
- package/dist/types/errors.d.ts +0 -68
- package/dist/types/errors.js +0 -100
- package/dist/types/errors.spec.d.ts +0 -1
- package/dist/types/errors.spec.js +0 -18
- package/dist/types/generator.d.ts +0 -26
- package/dist/types/generator.js +0 -1
- package/dist/types/trace.d.ts +0 -161
- package/dist/types/trace.js +0 -18
- package/dist/utils/claude.d.ts +0 -5
- package/dist/utils/claude.js +0 -19
- package/dist/utils/claude.spec.d.ts +0 -1
- package/dist/utils/claude.spec.js +0 -119
- package/dist/utils/constants.d.ts +0 -5
- package/dist/utils/constants.js +0 -4
- package/dist/utils/cost_formatter.d.ts +0 -5
- package/dist/utils/cost_formatter.js +0 -218
- package/dist/utils/date_formatter.d.ts +0 -23
- package/dist/utils/date_formatter.js +0 -49
- package/dist/utils/env_loader.d.ts +0 -1
- package/dist/utils/env_loader.js +0 -22
- package/dist/utils/env_loader.spec.d.ts +0 -1
- package/dist/utils/env_loader.spec.js +0 -43
- package/dist/utils/error_handler.d.ts +0 -8
- package/dist/utils/error_handler.js +0 -71
- package/dist/utils/error_utils.d.ts +0 -24
- package/dist/utils/error_utils.js +0 -87
- package/dist/utils/file_system.d.ts +0 -3
- package/dist/utils/file_system.js +0 -33
- package/dist/utils/format_workflow_result.d.ts +0 -5
- package/dist/utils/format_workflow_result.js +0 -18
- package/dist/utils/format_workflow_result.spec.d.ts +0 -1
- package/dist/utils/format_workflow_result.spec.js +0 -81
- package/dist/utils/framework_version.d.ts +0 -4
- package/dist/utils/framework_version.js +0 -4
- package/dist/utils/framework_version.spec.d.ts +0 -1
- package/dist/utils/framework_version.spec.js +0 -13
- package/dist/utils/header_utils.d.ts +0 -12
- package/dist/utils/header_utils.js +0 -29
- package/dist/utils/header_utils.spec.d.ts +0 -1
- package/dist/utils/header_utils.spec.js +0 -52
- package/dist/utils/input_parser.d.ts +0 -1
- package/dist/utils/input_parser.js +0 -19
- package/dist/utils/output_formatter.d.ts +0 -2
- package/dist/utils/output_formatter.js +0 -11
- package/dist/utils/paths.d.ts +0 -25
- package/dist/utils/paths.js +0 -36
- package/dist/utils/process.d.ts +0 -4
- package/dist/utils/process.js +0 -50
- package/dist/utils/resolve_input.d.ts +0 -1
- package/dist/utils/resolve_input.js +0 -22
- package/dist/utils/scenario_resolver.d.ts +0 -9
- package/dist/utils/scenario_resolver.js +0 -93
- package/dist/utils/scenario_resolver.spec.d.ts +0 -1
- package/dist/utils/scenario_resolver.spec.js +0 -214
- package/dist/utils/secret_sanitizer.d.ts +0 -1
- package/dist/utils/secret_sanitizer.js +0 -29
- package/dist/utils/sleep.d.ts +0 -5
- package/dist/utils/sleep.js +0 -5
- package/dist/utils/template.d.ts +0 -9
- package/dist/utils/template.js +0 -30
- package/dist/utils/template.spec.d.ts +0 -1
- package/dist/utils/template.spec.js +0 -77
- package/dist/utils/trace_extractor.d.ts +0 -27
- package/dist/utils/trace_extractor.js +0 -53
- package/dist/utils/trace_formatter.d.ts +0 -11
- package/dist/utils/trace_formatter.js +0 -402
- package/dist/utils/validation.d.ts +0 -13
- package/dist/utils/validation.js +0 -25
- package/dist/utils/validation.spec.d.ts +0 -1
- package/dist/utils/validation.spec.js +0 -140
|
@@ -1,820 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.5.3 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Output.ai API
|
|
5
|
-
* API for managing and executing Output.ai workflows
|
|
6
|
-
* OpenAPI spec version: 1.0.0
|
|
7
|
-
*/
|
|
8
|
-
import { type ApiRequestOptions } from '../http_client.js';
|
|
9
|
-
/**
|
|
10
|
-
* API error body (WorkflowNotFoundError, WorkflowExecutionTimedOutError, WorkflowNotCompletedError, CatalogNotAvailableError, or server error)
|
|
11
|
-
*/
|
|
12
|
-
export interface ErrorResponse {
|
|
13
|
-
/** Error type name (e.g. WorkflowNotFoundError, CatalogNotAvailableError) */
|
|
14
|
-
error?: string;
|
|
15
|
-
/** Human-readable error message */
|
|
16
|
-
message?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Workflow ID when the error is tied to a specific execution (e.g. timeout)
|
|
19
|
-
* @nullable
|
|
20
|
-
*/
|
|
21
|
-
workflowId?: string | null;
|
|
22
|
-
}
|
|
23
|
-
export type ValidationErrorResponseError = typeof ValidationErrorResponseError[keyof typeof ValidationErrorResponseError];
|
|
24
|
-
export declare const ValidationErrorResponseError: {
|
|
25
|
-
readonly ValidationError: "ValidationError";
|
|
26
|
-
};
|
|
27
|
-
export type ValidationErrorResponseIssuesItem = {
|
|
28
|
-
[key: string]: unknown;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Request body validation failure (Zod)
|
|
32
|
-
*/
|
|
33
|
-
export interface ValidationErrorResponse {
|
|
34
|
-
error?: ValidationErrorResponseError;
|
|
35
|
-
message?: string;
|
|
36
|
-
/** Zod validation issues */
|
|
37
|
-
issues?: ValidationErrorResponseIssuesItem[];
|
|
38
|
-
}
|
|
39
|
-
export type JSONSchemaPropertyNames = {
|
|
40
|
-
type?: string;
|
|
41
|
-
};
|
|
42
|
-
export interface JSONSchema {
|
|
43
|
-
$schema?: string;
|
|
44
|
-
type?: string;
|
|
45
|
-
properties?: JSONSchemaProperties;
|
|
46
|
-
items?: JSONSchema;
|
|
47
|
-
required?: string[];
|
|
48
|
-
description?: string;
|
|
49
|
-
additionalProperties?: boolean;
|
|
50
|
-
propertyNames?: JSONSchemaPropertyNames;
|
|
51
|
-
anyOf?: JSONSchema[];
|
|
52
|
-
[key: string]: unknown;
|
|
53
|
-
}
|
|
54
|
-
export type JSONSchemaProperties = {
|
|
55
|
-
[key: string]: JSONSchema;
|
|
56
|
-
};
|
|
57
|
-
export interface Workflow {
|
|
58
|
-
/** The name of the workflow */
|
|
59
|
-
name: string;
|
|
60
|
-
/** The description of the workflow */
|
|
61
|
-
description?: string;
|
|
62
|
-
/** Absolute path to the workflow file */
|
|
63
|
-
path?: string;
|
|
64
|
-
inputSchema?: JSONSchema;
|
|
65
|
-
outputSchema?: JSONSchema;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* File destinations for trace data
|
|
69
|
-
*/
|
|
70
|
-
export type TraceInfoDestinations = {
|
|
71
|
-
/**
|
|
72
|
-
* Absolute path to local trace file, or null if not saved locally
|
|
73
|
-
* @nullable
|
|
74
|
-
*/
|
|
75
|
-
local: string | null;
|
|
76
|
-
/**
|
|
77
|
-
* Remote trace location (e.g., S3 URI), or null if not saved remotely
|
|
78
|
-
* @nullable
|
|
79
|
-
*/
|
|
80
|
-
remote: string | null;
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* An object with information about the trace generated by the execution
|
|
84
|
-
*/
|
|
85
|
-
export interface TraceInfo {
|
|
86
|
-
/** File destinations for trace data */
|
|
87
|
-
destinations?: TraceInfoDestinations;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* The workflow input
|
|
91
|
-
*/
|
|
92
|
-
export type TraceDataInput = {
|
|
93
|
-
[key: string]: unknown;
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* The workflow output
|
|
97
|
-
*/
|
|
98
|
-
export type TraceDataOutput = {
|
|
99
|
-
[key: string]: unknown;
|
|
100
|
-
};
|
|
101
|
-
export type TraceDataStepsItem = {
|
|
102
|
-
[key: string]: unknown;
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* Trace data containing workflow execution details
|
|
106
|
-
*/
|
|
107
|
-
export interface TraceData {
|
|
108
|
-
/** The workflow execution ID */
|
|
109
|
-
workflowId?: string;
|
|
110
|
-
/** The workflow input */
|
|
111
|
-
input?: TraceDataInput;
|
|
112
|
-
/** The workflow output */
|
|
113
|
-
output?: TraceDataOutput;
|
|
114
|
-
/** The workflow execution steps */
|
|
115
|
-
steps?: TraceDataStepsItem[];
|
|
116
|
-
[key: string]: unknown;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Indicates trace was fetched from remote storage
|
|
120
|
-
*/
|
|
121
|
-
export type TraceLogRemoteResponseSource = typeof TraceLogRemoteResponseSource[keyof typeof TraceLogRemoteResponseSource];
|
|
122
|
-
export declare const TraceLogRemoteResponseSource: {
|
|
123
|
-
readonly remote: "remote";
|
|
124
|
-
};
|
|
125
|
-
export interface TraceLogRemoteResponse {
|
|
126
|
-
/** Indicates trace was fetched from remote storage */
|
|
127
|
-
source: TraceLogRemoteResponseSource;
|
|
128
|
-
data: TraceData;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Indicates trace is available locally
|
|
132
|
-
*/
|
|
133
|
-
export type TraceLogLocalResponseSource = typeof TraceLogLocalResponseSource[keyof typeof TraceLogLocalResponseSource];
|
|
134
|
-
export declare const TraceLogLocalResponseSource: {
|
|
135
|
-
readonly local: "local";
|
|
136
|
-
};
|
|
137
|
-
export interface TraceLogLocalResponse {
|
|
138
|
-
/** Indicates trace is available locally */
|
|
139
|
-
source: TraceLogLocalResponseSource;
|
|
140
|
-
/** Absolute path to local trace file */
|
|
141
|
-
localPath: string;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Current run status
|
|
145
|
-
*/
|
|
146
|
-
export type WorkflowRunInfoStatus = typeof WorkflowRunInfoStatus[keyof typeof WorkflowRunInfoStatus];
|
|
147
|
-
export declare const WorkflowRunInfoStatus: {
|
|
148
|
-
readonly running: "running";
|
|
149
|
-
readonly completed: "completed";
|
|
150
|
-
readonly failed: "failed";
|
|
151
|
-
readonly canceled: "canceled";
|
|
152
|
-
readonly terminated: "terminated";
|
|
153
|
-
readonly timed_out: "timed_out";
|
|
154
|
-
readonly continued: "continued";
|
|
155
|
-
};
|
|
156
|
-
export interface WorkflowRunInfo {
|
|
157
|
-
/** Unique identifier for this run */
|
|
158
|
-
workflowId?: string;
|
|
159
|
-
/** Name of the workflow definition */
|
|
160
|
-
workflowType?: string;
|
|
161
|
-
/** Current run status */
|
|
162
|
-
status?: WorkflowRunInfoStatus;
|
|
163
|
-
/** ISO 8601 timestamp of run start */
|
|
164
|
-
startedAt?: string;
|
|
165
|
-
/**
|
|
166
|
-
* ISO 8601 timestamp of completion, or null if still running
|
|
167
|
-
* @nullable
|
|
168
|
-
*/
|
|
169
|
-
completedAt?: string | null;
|
|
170
|
-
}
|
|
171
|
-
export interface WorkflowRunsResponse {
|
|
172
|
-
runs?: WorkflowRunInfo[];
|
|
173
|
-
/** Total number of runs returned */
|
|
174
|
-
count?: number;
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Invalid request body or query (validation failed)
|
|
178
|
-
*/
|
|
179
|
-
export type BadRequestResponse = ValidationErrorResponse;
|
|
180
|
-
/**
|
|
181
|
-
* Workflow execution, workflow type, or catalog not found
|
|
182
|
-
*/
|
|
183
|
-
export type NotFoundResponse = ErrorResponse;
|
|
184
|
-
/**
|
|
185
|
-
* Synchronous execution timed out before workflow completed
|
|
186
|
-
*/
|
|
187
|
-
export type RequestTimeoutResponse = ErrorResponse;
|
|
188
|
-
/**
|
|
189
|
-
* Workflow not in a terminal state (still running)
|
|
190
|
-
*/
|
|
191
|
-
export type FailedDependencyResponse = ErrorResponse;
|
|
192
|
-
/**
|
|
193
|
-
* Catalog workflow unavailable (worker not running or still starting). Retry-After header may be set.
|
|
194
|
-
*/
|
|
195
|
-
export type ServiceUnavailableResponse = ErrorResponse;
|
|
196
|
-
/**
|
|
197
|
-
* Internal server error (e.g. Temporal connection failure)
|
|
198
|
-
*/
|
|
199
|
-
export type InternalServerErrorResponse = ErrorResponse;
|
|
200
|
-
export type PostWorkflowRunBody = {
|
|
201
|
-
/** The name of the workflow to execute */
|
|
202
|
-
workflowName: string;
|
|
203
|
-
/** The payload to send to the workflow */
|
|
204
|
-
input: unknown;
|
|
205
|
-
/** (Optional) The workflowId to use. Must be unique */
|
|
206
|
-
workflowId?: string;
|
|
207
|
-
/** The name of the task queue to send the workflow to */
|
|
208
|
-
taskQueue?: string;
|
|
209
|
-
/** (Optional) The max time to wait for the execution, defaults to 30s */
|
|
210
|
-
timeout?: number;
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
* The workflow execution status
|
|
214
|
-
*/
|
|
215
|
-
export type PostWorkflowRun200Status = typeof PostWorkflowRun200Status[keyof typeof PostWorkflowRun200Status];
|
|
216
|
-
export declare const PostWorkflowRun200Status: {
|
|
217
|
-
readonly completed: "completed";
|
|
218
|
-
readonly failed: "failed";
|
|
219
|
-
};
|
|
220
|
-
export type PostWorkflowRun200 = {
|
|
221
|
-
/** The workflow execution id */
|
|
222
|
-
workflowId?: string;
|
|
223
|
-
/** The output of the workflow, null if workflow failed */
|
|
224
|
-
output?: unknown;
|
|
225
|
-
trace?: TraceInfo;
|
|
226
|
-
/** The workflow execution status */
|
|
227
|
-
status?: PostWorkflowRun200Status;
|
|
228
|
-
/**
|
|
229
|
-
* Error message if workflow failed, null otherwise
|
|
230
|
-
* @nullable
|
|
231
|
-
*/
|
|
232
|
-
error?: string | null;
|
|
233
|
-
};
|
|
234
|
-
export type PostWorkflowStartBody = {
|
|
235
|
-
/** The name of the workflow to execute */
|
|
236
|
-
workflowName: string;
|
|
237
|
-
/** The payload to send to the workflow */
|
|
238
|
-
input: unknown;
|
|
239
|
-
/** (Optional) The workflowId to use. Must be unique */
|
|
240
|
-
workflowId?: string;
|
|
241
|
-
/** The name of the task queue to send the workflow to */
|
|
242
|
-
taskQueue?: string;
|
|
243
|
-
};
|
|
244
|
-
export type PostWorkflowStart200 = {
|
|
245
|
-
/** The id of the started workflow */
|
|
246
|
-
workflowId?: string;
|
|
247
|
-
};
|
|
248
|
-
/**
|
|
249
|
-
* The workflow execution status
|
|
250
|
-
*/
|
|
251
|
-
export type GetWorkflowIdStatus200Status = typeof GetWorkflowIdStatus200Status[keyof typeof GetWorkflowIdStatus200Status];
|
|
252
|
-
export declare const GetWorkflowIdStatus200Status: {
|
|
253
|
-
readonly canceled: "canceled";
|
|
254
|
-
readonly completed: "completed";
|
|
255
|
-
readonly continued_as_new: "continued_as_new";
|
|
256
|
-
readonly failed: "failed";
|
|
257
|
-
readonly running: "running";
|
|
258
|
-
readonly terminated: "terminated";
|
|
259
|
-
readonly timed_out: "timed_out";
|
|
260
|
-
readonly unspecified: "unspecified";
|
|
261
|
-
};
|
|
262
|
-
export type GetWorkflowIdStatus200 = {
|
|
263
|
-
/** The id of workflow */
|
|
264
|
-
workflowId?: string;
|
|
265
|
-
/** The workflow execution status */
|
|
266
|
-
status?: GetWorkflowIdStatus200Status;
|
|
267
|
-
/** An epoch timestamp representing when the workflow started */
|
|
268
|
-
startedAt?: number;
|
|
269
|
-
/** An epoch timestamp representing when the workflow ended */
|
|
270
|
-
completedAt?: number;
|
|
271
|
-
};
|
|
272
|
-
export type PostWorkflowIdTerminateBody = {
|
|
273
|
-
/** Optional reason for termination */
|
|
274
|
-
reason?: string;
|
|
275
|
-
};
|
|
276
|
-
export type PostWorkflowIdTerminate200 = {
|
|
277
|
-
terminated?: boolean;
|
|
278
|
-
workflowId?: string;
|
|
279
|
-
};
|
|
280
|
-
export type PostWorkflowIdResetBody = {
|
|
281
|
-
/** The name of the step to reset after */
|
|
282
|
-
stepName: string;
|
|
283
|
-
/** Optional reason for the reset */
|
|
284
|
-
reason?: string;
|
|
285
|
-
};
|
|
286
|
-
export type PostWorkflowIdReset200 = {
|
|
287
|
-
/** The original workflow ID */
|
|
288
|
-
workflowId?: string;
|
|
289
|
-
/** The run ID of the new execution created by the reset */
|
|
290
|
-
runId?: string;
|
|
291
|
-
};
|
|
292
|
-
/**
|
|
293
|
-
* The workflow execution status
|
|
294
|
-
*/
|
|
295
|
-
export type GetWorkflowIdResult200Status = typeof GetWorkflowIdResult200Status[keyof typeof GetWorkflowIdResult200Status];
|
|
296
|
-
export declare const GetWorkflowIdResult200Status: {
|
|
297
|
-
readonly completed: "completed";
|
|
298
|
-
readonly failed: "failed";
|
|
299
|
-
readonly canceled: "canceled";
|
|
300
|
-
readonly terminated: "terminated";
|
|
301
|
-
readonly timed_out: "timed_out";
|
|
302
|
-
readonly continued: "continued";
|
|
303
|
-
};
|
|
304
|
-
export type GetWorkflowIdResult200 = {
|
|
305
|
-
/** The workflow execution id */
|
|
306
|
-
workflowId?: string;
|
|
307
|
-
/** The result of workflow, null if workflow failed */
|
|
308
|
-
output?: unknown;
|
|
309
|
-
trace?: TraceInfo;
|
|
310
|
-
/** The workflow execution status */
|
|
311
|
-
status?: GetWorkflowIdResult200Status;
|
|
312
|
-
/**
|
|
313
|
-
* Error message if workflow failed, null otherwise
|
|
314
|
-
* @nullable
|
|
315
|
-
*/
|
|
316
|
-
error?: string | null;
|
|
317
|
-
};
|
|
318
|
-
export type GetWorkflowCatalogId200 = {
|
|
319
|
-
/** Each workflow available in this catalog */
|
|
320
|
-
workflows?: Workflow[];
|
|
321
|
-
};
|
|
322
|
-
export type GetWorkflowCatalog200 = {
|
|
323
|
-
/** Each workflow available in this catalog */
|
|
324
|
-
workflows?: Workflow[];
|
|
325
|
-
};
|
|
326
|
-
export type GetWorkflowRunsParams = {
|
|
327
|
-
/**
|
|
328
|
-
* Filter by workflow type/name
|
|
329
|
-
*/
|
|
330
|
-
workflowType?: string;
|
|
331
|
-
/**
|
|
332
|
-
* Maximum number of runs to return
|
|
333
|
-
* @minimum 1
|
|
334
|
-
* @maximum 1000
|
|
335
|
-
*/
|
|
336
|
-
limit?: number;
|
|
337
|
-
};
|
|
338
|
-
/**
|
|
339
|
-
* The payload sent to the workflow
|
|
340
|
-
*/
|
|
341
|
-
export type PostWorkflowIdFeedbackBodyPayload = {
|
|
342
|
-
[key: string]: unknown;
|
|
343
|
-
};
|
|
344
|
-
export type PostWorkflowIdFeedbackBody = {
|
|
345
|
-
/** The payload sent to the workflow */
|
|
346
|
-
payload?: PostWorkflowIdFeedbackBodyPayload;
|
|
347
|
-
};
|
|
348
|
-
/**
|
|
349
|
-
* The payload sent to the signal operation
|
|
350
|
-
*/
|
|
351
|
-
export type PostWorkflowIdSignalSignalBodyPayload = {
|
|
352
|
-
[key: string]: unknown;
|
|
353
|
-
};
|
|
354
|
-
export type PostWorkflowIdSignalSignalBody = {
|
|
355
|
-
/** The payload sent to the signal operation */
|
|
356
|
-
payload?: PostWorkflowIdSignalSignalBodyPayload;
|
|
357
|
-
};
|
|
358
|
-
/**
|
|
359
|
-
* The payload sent to the query operation
|
|
360
|
-
*/
|
|
361
|
-
export type PostWorkflowIdQueryQueryBodyPayload = {
|
|
362
|
-
[key: string]: unknown;
|
|
363
|
-
};
|
|
364
|
-
export type PostWorkflowIdQueryQueryBody = {
|
|
365
|
-
/** The payload sent to the query operation */
|
|
366
|
-
payload?: PostWorkflowIdQueryQueryBodyPayload;
|
|
367
|
-
};
|
|
368
|
-
/**
|
|
369
|
-
* The payload sent to the update operation
|
|
370
|
-
*/
|
|
371
|
-
export type PostWorkflowIdUpdateUpdateBodyPayload = {
|
|
372
|
-
[key: string]: unknown;
|
|
373
|
-
};
|
|
374
|
-
export type PostWorkflowIdUpdateUpdateBody = {
|
|
375
|
-
/** The payload sent to the update operation */
|
|
376
|
-
payload?: PostWorkflowIdUpdateUpdateBodyPayload;
|
|
377
|
-
};
|
|
378
|
-
/**
|
|
379
|
-
* @summary Health check the API
|
|
380
|
-
*/
|
|
381
|
-
export type getHealthResponse200 = {
|
|
382
|
-
data: void;
|
|
383
|
-
status: 200;
|
|
384
|
-
};
|
|
385
|
-
export type getHealthResponseSuccess = (getHealthResponse200) & {
|
|
386
|
-
headers: Headers;
|
|
387
|
-
};
|
|
388
|
-
export type getHealthResponse = (getHealthResponseSuccess);
|
|
389
|
-
export declare const getGetHealthUrl: () => string;
|
|
390
|
-
export declare const getHealth: (options?: ApiRequestOptions) => Promise<getHealthResponse>;
|
|
391
|
-
/**
|
|
392
|
-
* Executes a workflow and waits for it to complete before returning the result
|
|
393
|
-
* @summary Execute a workflow synchronously
|
|
394
|
-
*/
|
|
395
|
-
export type postWorkflowRunResponse200 = {
|
|
396
|
-
data: PostWorkflowRun200;
|
|
397
|
-
status: 200;
|
|
398
|
-
};
|
|
399
|
-
export type postWorkflowRunResponse400 = {
|
|
400
|
-
data: BadRequestResponse;
|
|
401
|
-
status: 400;
|
|
402
|
-
};
|
|
403
|
-
export type postWorkflowRunResponse404 = {
|
|
404
|
-
data: NotFoundResponse;
|
|
405
|
-
status: 404;
|
|
406
|
-
};
|
|
407
|
-
export type postWorkflowRunResponse408 = {
|
|
408
|
-
data: RequestTimeoutResponse;
|
|
409
|
-
status: 408;
|
|
410
|
-
};
|
|
411
|
-
export type postWorkflowRunResponse500 = {
|
|
412
|
-
data: InternalServerErrorResponse;
|
|
413
|
-
status: 500;
|
|
414
|
-
};
|
|
415
|
-
export type postWorkflowRunResponse503 = {
|
|
416
|
-
data: ServiceUnavailableResponse;
|
|
417
|
-
status: 503;
|
|
418
|
-
};
|
|
419
|
-
export type postWorkflowRunResponseSuccess = (postWorkflowRunResponse200) & {
|
|
420
|
-
headers: Headers;
|
|
421
|
-
};
|
|
422
|
-
export type postWorkflowRunResponseError = (postWorkflowRunResponse400 | postWorkflowRunResponse404 | postWorkflowRunResponse408 | postWorkflowRunResponse500 | postWorkflowRunResponse503) & {
|
|
423
|
-
headers: Headers;
|
|
424
|
-
};
|
|
425
|
-
export type postWorkflowRunResponse = (postWorkflowRunResponseSuccess | postWorkflowRunResponseError);
|
|
426
|
-
export declare const getPostWorkflowRunUrl: () => string;
|
|
427
|
-
export declare const postWorkflowRun: (postWorkflowRunBody: PostWorkflowRunBody, options?: ApiRequestOptions) => Promise<postWorkflowRunResponse>;
|
|
428
|
-
/**
|
|
429
|
-
* @summary Start a workflow asynchronously
|
|
430
|
-
*/
|
|
431
|
-
export type postWorkflowStartResponse200 = {
|
|
432
|
-
data: PostWorkflowStart200;
|
|
433
|
-
status: 200;
|
|
434
|
-
};
|
|
435
|
-
export type postWorkflowStartResponse400 = {
|
|
436
|
-
data: BadRequestResponse;
|
|
437
|
-
status: 400;
|
|
438
|
-
};
|
|
439
|
-
export type postWorkflowStartResponse404 = {
|
|
440
|
-
data: NotFoundResponse;
|
|
441
|
-
status: 404;
|
|
442
|
-
};
|
|
443
|
-
export type postWorkflowStartResponse500 = {
|
|
444
|
-
data: InternalServerErrorResponse;
|
|
445
|
-
status: 500;
|
|
446
|
-
};
|
|
447
|
-
export type postWorkflowStartResponseSuccess = (postWorkflowStartResponse200) & {
|
|
448
|
-
headers: Headers;
|
|
449
|
-
};
|
|
450
|
-
export type postWorkflowStartResponseError = (postWorkflowStartResponse400 | postWorkflowStartResponse404 | postWorkflowStartResponse500) & {
|
|
451
|
-
headers: Headers;
|
|
452
|
-
};
|
|
453
|
-
export type postWorkflowStartResponse = (postWorkflowStartResponseSuccess | postWorkflowStartResponseError);
|
|
454
|
-
export declare const getPostWorkflowStartUrl: () => string;
|
|
455
|
-
export declare const postWorkflowStart: (postWorkflowStartBody: PostWorkflowStartBody, options?: ApiRequestOptions) => Promise<postWorkflowStartResponse>;
|
|
456
|
-
/**
|
|
457
|
-
* @summary Get workflow execution status
|
|
458
|
-
*/
|
|
459
|
-
export type getWorkflowIdStatusResponse200 = {
|
|
460
|
-
data: GetWorkflowIdStatus200;
|
|
461
|
-
status: 200;
|
|
462
|
-
};
|
|
463
|
-
export type getWorkflowIdStatusResponse404 = {
|
|
464
|
-
data: NotFoundResponse;
|
|
465
|
-
status: 404;
|
|
466
|
-
};
|
|
467
|
-
export type getWorkflowIdStatusResponse500 = {
|
|
468
|
-
data: InternalServerErrorResponse;
|
|
469
|
-
status: 500;
|
|
470
|
-
};
|
|
471
|
-
export type getWorkflowIdStatusResponseSuccess = (getWorkflowIdStatusResponse200) & {
|
|
472
|
-
headers: Headers;
|
|
473
|
-
};
|
|
474
|
-
export type getWorkflowIdStatusResponseError = (getWorkflowIdStatusResponse404 | getWorkflowIdStatusResponse500) & {
|
|
475
|
-
headers: Headers;
|
|
476
|
-
};
|
|
477
|
-
export type getWorkflowIdStatusResponse = (getWorkflowIdStatusResponseSuccess | getWorkflowIdStatusResponseError);
|
|
478
|
-
export declare const getGetWorkflowIdStatusUrl: (id: string) => string;
|
|
479
|
-
export declare const getWorkflowIdStatus: (id: string, options?: ApiRequestOptions) => Promise<getWorkflowIdStatusResponse>;
|
|
480
|
-
/**
|
|
481
|
-
* @summary Stop a workflow execution
|
|
482
|
-
*/
|
|
483
|
-
export type patchWorkflowIdStopResponse200 = {
|
|
484
|
-
data: void;
|
|
485
|
-
status: 200;
|
|
486
|
-
};
|
|
487
|
-
export type patchWorkflowIdStopResponse404 = {
|
|
488
|
-
data: NotFoundResponse;
|
|
489
|
-
status: 404;
|
|
490
|
-
};
|
|
491
|
-
export type patchWorkflowIdStopResponse500 = {
|
|
492
|
-
data: InternalServerErrorResponse;
|
|
493
|
-
status: 500;
|
|
494
|
-
};
|
|
495
|
-
export type patchWorkflowIdStopResponseSuccess = (patchWorkflowIdStopResponse200) & {
|
|
496
|
-
headers: Headers;
|
|
497
|
-
};
|
|
498
|
-
export type patchWorkflowIdStopResponseError = (patchWorkflowIdStopResponse404 | patchWorkflowIdStopResponse500) & {
|
|
499
|
-
headers: Headers;
|
|
500
|
-
};
|
|
501
|
-
export type patchWorkflowIdStopResponse = (patchWorkflowIdStopResponseSuccess | patchWorkflowIdStopResponseError);
|
|
502
|
-
export declare const getPatchWorkflowIdStopUrl: (id: string) => string;
|
|
503
|
-
export declare const patchWorkflowIdStop: (id: string, options?: ApiRequestOptions) => Promise<patchWorkflowIdStopResponse>;
|
|
504
|
-
/**
|
|
505
|
-
* Force terminates a workflow. Unlike stop/cancel, terminate immediately stops the workflow without allowing cleanup.
|
|
506
|
-
* @summary Terminate a workflow execution (force stop)
|
|
507
|
-
*/
|
|
508
|
-
export type postWorkflowIdTerminateResponse200 = {
|
|
509
|
-
data: PostWorkflowIdTerminate200;
|
|
510
|
-
status: 200;
|
|
511
|
-
};
|
|
512
|
-
export type postWorkflowIdTerminateResponse400 = {
|
|
513
|
-
data: BadRequestResponse;
|
|
514
|
-
status: 400;
|
|
515
|
-
};
|
|
516
|
-
export type postWorkflowIdTerminateResponse404 = {
|
|
517
|
-
data: NotFoundResponse;
|
|
518
|
-
status: 404;
|
|
519
|
-
};
|
|
520
|
-
export type postWorkflowIdTerminateResponse500 = {
|
|
521
|
-
data: InternalServerErrorResponse;
|
|
522
|
-
status: 500;
|
|
523
|
-
};
|
|
524
|
-
export type postWorkflowIdTerminateResponseSuccess = (postWorkflowIdTerminateResponse200) & {
|
|
525
|
-
headers: Headers;
|
|
526
|
-
};
|
|
527
|
-
export type postWorkflowIdTerminateResponseError = (postWorkflowIdTerminateResponse400 | postWorkflowIdTerminateResponse404 | postWorkflowIdTerminateResponse500) & {
|
|
528
|
-
headers: Headers;
|
|
529
|
-
};
|
|
530
|
-
export type postWorkflowIdTerminateResponse = (postWorkflowIdTerminateResponseSuccess | postWorkflowIdTerminateResponseError);
|
|
531
|
-
export declare const getPostWorkflowIdTerminateUrl: (id: string) => string;
|
|
532
|
-
export declare const postWorkflowIdTerminate: (id: string, postWorkflowIdTerminateBody: PostWorkflowIdTerminateBody, options?: ApiRequestOptions) => Promise<postWorkflowIdTerminateResponse>;
|
|
533
|
-
/**
|
|
534
|
-
* 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.
|
|
535
|
-
* @summary Reset a workflow to re-run from after a specific step
|
|
536
|
-
*/
|
|
537
|
-
export type postWorkflowIdResetResponse200 = {
|
|
538
|
-
data: PostWorkflowIdReset200;
|
|
539
|
-
status: 200;
|
|
540
|
-
};
|
|
541
|
-
export type postWorkflowIdResetResponse400 = {
|
|
542
|
-
data: BadRequestResponse;
|
|
543
|
-
status: 400;
|
|
544
|
-
};
|
|
545
|
-
export type postWorkflowIdResetResponse404 = {
|
|
546
|
-
data: NotFoundResponse;
|
|
547
|
-
status: 404;
|
|
548
|
-
};
|
|
549
|
-
export type postWorkflowIdResetResponse409 = {
|
|
550
|
-
data: ErrorResponse;
|
|
551
|
-
status: 409;
|
|
552
|
-
};
|
|
553
|
-
export type postWorkflowIdResetResponse500 = {
|
|
554
|
-
data: InternalServerErrorResponse;
|
|
555
|
-
status: 500;
|
|
556
|
-
};
|
|
557
|
-
export type postWorkflowIdResetResponseSuccess = (postWorkflowIdResetResponse200) & {
|
|
558
|
-
headers: Headers;
|
|
559
|
-
};
|
|
560
|
-
export type postWorkflowIdResetResponseError = (postWorkflowIdResetResponse400 | postWorkflowIdResetResponse404 | postWorkflowIdResetResponse409 | postWorkflowIdResetResponse500) & {
|
|
561
|
-
headers: Headers;
|
|
562
|
-
};
|
|
563
|
-
export type postWorkflowIdResetResponse = (postWorkflowIdResetResponseSuccess | postWorkflowIdResetResponseError);
|
|
564
|
-
export declare const getPostWorkflowIdResetUrl: (id: string) => string;
|
|
565
|
-
export declare const postWorkflowIdReset: (id: string, postWorkflowIdResetBody: PostWorkflowIdResetBody, options?: ApiRequestOptions) => Promise<postWorkflowIdResetResponse>;
|
|
566
|
-
/**
|
|
567
|
-
* @summary Return the result of a workflow
|
|
568
|
-
*/
|
|
569
|
-
export type getWorkflowIdResultResponse200 = {
|
|
570
|
-
data: GetWorkflowIdResult200;
|
|
571
|
-
status: 200;
|
|
572
|
-
};
|
|
573
|
-
export type getWorkflowIdResultResponse404 = {
|
|
574
|
-
data: NotFoundResponse;
|
|
575
|
-
status: 404;
|
|
576
|
-
};
|
|
577
|
-
export type getWorkflowIdResultResponse424 = {
|
|
578
|
-
data: FailedDependencyResponse;
|
|
579
|
-
status: 424;
|
|
580
|
-
};
|
|
581
|
-
export type getWorkflowIdResultResponse500 = {
|
|
582
|
-
data: InternalServerErrorResponse;
|
|
583
|
-
status: 500;
|
|
584
|
-
};
|
|
585
|
-
export type getWorkflowIdResultResponseSuccess = (getWorkflowIdResultResponse200) & {
|
|
586
|
-
headers: Headers;
|
|
587
|
-
};
|
|
588
|
-
export type getWorkflowIdResultResponseError = (getWorkflowIdResultResponse404 | getWorkflowIdResultResponse424 | getWorkflowIdResultResponse500) & {
|
|
589
|
-
headers: Headers;
|
|
590
|
-
};
|
|
591
|
-
export type getWorkflowIdResultResponse = (getWorkflowIdResultResponseSuccess | getWorkflowIdResultResponseError);
|
|
592
|
-
export declare const getGetWorkflowIdResultUrl: (id: string) => string;
|
|
593
|
-
export declare const getWorkflowIdResult: (id: string, options?: ApiRequestOptions) => Promise<getWorkflowIdResultResponse>;
|
|
594
|
-
/**
|
|
595
|
-
* 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.
|
|
596
|
-
* @summary Get workflow trace log data
|
|
597
|
-
*/
|
|
598
|
-
export type getWorkflowIdTraceLogResponse200 = {
|
|
599
|
-
data: TraceLogRemoteResponse | TraceLogLocalResponse;
|
|
600
|
-
status: 200;
|
|
601
|
-
};
|
|
602
|
-
export type getWorkflowIdTraceLogResponse404 = {
|
|
603
|
-
data: NotFoundResponse;
|
|
604
|
-
status: 404;
|
|
605
|
-
};
|
|
606
|
-
export type getWorkflowIdTraceLogResponse424 = {
|
|
607
|
-
data: FailedDependencyResponse;
|
|
608
|
-
status: 424;
|
|
609
|
-
};
|
|
610
|
-
export type getWorkflowIdTraceLogResponse500 = {
|
|
611
|
-
data: InternalServerErrorResponse;
|
|
612
|
-
status: 500;
|
|
613
|
-
};
|
|
614
|
-
export type getWorkflowIdTraceLogResponseSuccess = (getWorkflowIdTraceLogResponse200) & {
|
|
615
|
-
headers: Headers;
|
|
616
|
-
};
|
|
617
|
-
export type getWorkflowIdTraceLogResponseError = (getWorkflowIdTraceLogResponse404 | getWorkflowIdTraceLogResponse424 | getWorkflowIdTraceLogResponse500) & {
|
|
618
|
-
headers: Headers;
|
|
619
|
-
};
|
|
620
|
-
export type getWorkflowIdTraceLogResponse = (getWorkflowIdTraceLogResponseSuccess | getWorkflowIdTraceLogResponseError);
|
|
621
|
-
export declare const getGetWorkflowIdTraceLogUrl: (id: string) => string;
|
|
622
|
-
export declare const getWorkflowIdTraceLog: (id: string, options?: ApiRequestOptions) => Promise<getWorkflowIdTraceLogResponse>;
|
|
623
|
-
/**
|
|
624
|
-
* @summary Get a specific workflow catalog by ID
|
|
625
|
-
*/
|
|
626
|
-
export type getWorkflowCatalogIdResponse200 = {
|
|
627
|
-
data: GetWorkflowCatalogId200;
|
|
628
|
-
status: 200;
|
|
629
|
-
};
|
|
630
|
-
export type getWorkflowCatalogIdResponse404 = {
|
|
631
|
-
data: NotFoundResponse;
|
|
632
|
-
status: 404;
|
|
633
|
-
};
|
|
634
|
-
export type getWorkflowCatalogIdResponse500 = {
|
|
635
|
-
data: InternalServerErrorResponse;
|
|
636
|
-
status: 500;
|
|
637
|
-
};
|
|
638
|
-
export type getWorkflowCatalogIdResponseSuccess = (getWorkflowCatalogIdResponse200) & {
|
|
639
|
-
headers: Headers;
|
|
640
|
-
};
|
|
641
|
-
export type getWorkflowCatalogIdResponseError = (getWorkflowCatalogIdResponse404 | getWorkflowCatalogIdResponse500) & {
|
|
642
|
-
headers: Headers;
|
|
643
|
-
};
|
|
644
|
-
export type getWorkflowCatalogIdResponse = (getWorkflowCatalogIdResponseSuccess | getWorkflowCatalogIdResponseError);
|
|
645
|
-
export declare const getGetWorkflowCatalogIdUrl: (id: string) => string;
|
|
646
|
-
export declare const getWorkflowCatalogId: (id: string, options?: ApiRequestOptions) => Promise<getWorkflowCatalogIdResponse>;
|
|
647
|
-
/**
|
|
648
|
-
* @summary Get the default workflow catalog
|
|
649
|
-
*/
|
|
650
|
-
export type getWorkflowCatalogResponse200 = {
|
|
651
|
-
data: GetWorkflowCatalog200;
|
|
652
|
-
status: 200;
|
|
653
|
-
};
|
|
654
|
-
export type getWorkflowCatalogResponse404 = {
|
|
655
|
-
data: NotFoundResponse;
|
|
656
|
-
status: 404;
|
|
657
|
-
};
|
|
658
|
-
export type getWorkflowCatalogResponse500 = {
|
|
659
|
-
data: InternalServerErrorResponse;
|
|
660
|
-
status: 500;
|
|
661
|
-
};
|
|
662
|
-
export type getWorkflowCatalogResponseSuccess = (getWorkflowCatalogResponse200) & {
|
|
663
|
-
headers: Headers;
|
|
664
|
-
};
|
|
665
|
-
export type getWorkflowCatalogResponseError = (getWorkflowCatalogResponse404 | getWorkflowCatalogResponse500) & {
|
|
666
|
-
headers: Headers;
|
|
667
|
-
};
|
|
668
|
-
export type getWorkflowCatalogResponse = (getWorkflowCatalogResponseSuccess | getWorkflowCatalogResponseError);
|
|
669
|
-
export declare const getGetWorkflowCatalogUrl: () => string;
|
|
670
|
-
export declare const getWorkflowCatalog: (options?: ApiRequestOptions) => Promise<getWorkflowCatalogResponse>;
|
|
671
|
-
/**
|
|
672
|
-
* Returns a list of workflow runs with optional filtering by workflow type
|
|
673
|
-
* @summary List workflow runs
|
|
674
|
-
*/
|
|
675
|
-
export type getWorkflowRunsResponse200 = {
|
|
676
|
-
data: WorkflowRunsResponse;
|
|
677
|
-
status: 200;
|
|
678
|
-
};
|
|
679
|
-
export type getWorkflowRunsResponse400 = {
|
|
680
|
-
data: BadRequestResponse;
|
|
681
|
-
status: 400;
|
|
682
|
-
};
|
|
683
|
-
export type getWorkflowRunsResponse500 = {
|
|
684
|
-
data: InternalServerErrorResponse;
|
|
685
|
-
status: 500;
|
|
686
|
-
};
|
|
687
|
-
export type getWorkflowRunsResponseSuccess = (getWorkflowRunsResponse200) & {
|
|
688
|
-
headers: Headers;
|
|
689
|
-
};
|
|
690
|
-
export type getWorkflowRunsResponseError = (getWorkflowRunsResponse400 | getWorkflowRunsResponse500) & {
|
|
691
|
-
headers: Headers;
|
|
692
|
-
};
|
|
693
|
-
export type getWorkflowRunsResponse = (getWorkflowRunsResponseSuccess | getWorkflowRunsResponseError);
|
|
694
|
-
export declare const getGetWorkflowRunsUrl: (params?: GetWorkflowRunsParams) => string;
|
|
695
|
-
export declare const getWorkflowRuns: (params?: GetWorkflowRunsParams, options?: ApiRequestOptions) => Promise<getWorkflowRunsResponse>;
|
|
696
|
-
/**
|
|
697
|
-
* @summary Send feedback to a workflow
|
|
698
|
-
*/
|
|
699
|
-
export type postWorkflowIdFeedbackResponse200 = {
|
|
700
|
-
data: void;
|
|
701
|
-
status: 200;
|
|
702
|
-
};
|
|
703
|
-
export type postWorkflowIdFeedbackResponse400 = {
|
|
704
|
-
data: BadRequestResponse;
|
|
705
|
-
status: 400;
|
|
706
|
-
};
|
|
707
|
-
export type postWorkflowIdFeedbackResponse404 = {
|
|
708
|
-
data: NotFoundResponse;
|
|
709
|
-
status: 404;
|
|
710
|
-
};
|
|
711
|
-
export type postWorkflowIdFeedbackResponse500 = {
|
|
712
|
-
data: InternalServerErrorResponse;
|
|
713
|
-
status: 500;
|
|
714
|
-
};
|
|
715
|
-
export type postWorkflowIdFeedbackResponseSuccess = (postWorkflowIdFeedbackResponse200) & {
|
|
716
|
-
headers: Headers;
|
|
717
|
-
};
|
|
718
|
-
export type postWorkflowIdFeedbackResponseError = (postWorkflowIdFeedbackResponse400 | postWorkflowIdFeedbackResponse404 | postWorkflowIdFeedbackResponse500) & {
|
|
719
|
-
headers: Headers;
|
|
720
|
-
};
|
|
721
|
-
export type postWorkflowIdFeedbackResponse = (postWorkflowIdFeedbackResponseSuccess | postWorkflowIdFeedbackResponseError);
|
|
722
|
-
export declare const getPostWorkflowIdFeedbackUrl: (id: string) => string;
|
|
723
|
-
export declare const postWorkflowIdFeedback: (id: string, postWorkflowIdFeedbackBody: PostWorkflowIdFeedbackBody, options?: ApiRequestOptions) => Promise<postWorkflowIdFeedbackResponse>;
|
|
724
|
-
/**
|
|
725
|
-
* @summary Send a signal to an workflow
|
|
726
|
-
*/
|
|
727
|
-
export type postWorkflowIdSignalSignalResponse200 = {
|
|
728
|
-
data: void;
|
|
729
|
-
status: 200;
|
|
730
|
-
};
|
|
731
|
-
export type postWorkflowIdSignalSignalResponse400 = {
|
|
732
|
-
data: BadRequestResponse;
|
|
733
|
-
status: 400;
|
|
734
|
-
};
|
|
735
|
-
export type postWorkflowIdSignalSignalResponse404 = {
|
|
736
|
-
data: NotFoundResponse;
|
|
737
|
-
status: 404;
|
|
738
|
-
};
|
|
739
|
-
export type postWorkflowIdSignalSignalResponse500 = {
|
|
740
|
-
data: InternalServerErrorResponse;
|
|
741
|
-
status: 500;
|
|
742
|
-
};
|
|
743
|
-
export type postWorkflowIdSignalSignalResponseSuccess = (postWorkflowIdSignalSignalResponse200) & {
|
|
744
|
-
headers: Headers;
|
|
745
|
-
};
|
|
746
|
-
export type postWorkflowIdSignalSignalResponseError = (postWorkflowIdSignalSignalResponse400 | postWorkflowIdSignalSignalResponse404 | postWorkflowIdSignalSignalResponse500) & {
|
|
747
|
-
headers: Headers;
|
|
748
|
-
};
|
|
749
|
-
export type postWorkflowIdSignalSignalResponse = (postWorkflowIdSignalSignalResponseSuccess | postWorkflowIdSignalSignalResponseError);
|
|
750
|
-
export declare const getPostWorkflowIdSignalSignalUrl: (id: string, signal: string) => string;
|
|
751
|
-
export declare const postWorkflowIdSignalSignal: (id: string, signal: string, postWorkflowIdSignalSignalBody: PostWorkflowIdSignalSignalBody, options?: ApiRequestOptions) => Promise<postWorkflowIdSignalSignalResponse>;
|
|
752
|
-
/**
|
|
753
|
-
* @summary Send a query to an workflow
|
|
754
|
-
*/
|
|
755
|
-
export type postWorkflowIdQueryQueryResponse200 = {
|
|
756
|
-
data: void;
|
|
757
|
-
status: 200;
|
|
758
|
-
};
|
|
759
|
-
export type postWorkflowIdQueryQueryResponse400 = {
|
|
760
|
-
data: BadRequestResponse;
|
|
761
|
-
status: 400;
|
|
762
|
-
};
|
|
763
|
-
export type postWorkflowIdQueryQueryResponse404 = {
|
|
764
|
-
data: NotFoundResponse;
|
|
765
|
-
status: 404;
|
|
766
|
-
};
|
|
767
|
-
export type postWorkflowIdQueryQueryResponse500 = {
|
|
768
|
-
data: InternalServerErrorResponse;
|
|
769
|
-
status: 500;
|
|
770
|
-
};
|
|
771
|
-
export type postWorkflowIdQueryQueryResponseSuccess = (postWorkflowIdQueryQueryResponse200) & {
|
|
772
|
-
headers: Headers;
|
|
773
|
-
};
|
|
774
|
-
export type postWorkflowIdQueryQueryResponseError = (postWorkflowIdQueryQueryResponse400 | postWorkflowIdQueryQueryResponse404 | postWorkflowIdQueryQueryResponse500) & {
|
|
775
|
-
headers: Headers;
|
|
776
|
-
};
|
|
777
|
-
export type postWorkflowIdQueryQueryResponse = (postWorkflowIdQueryQueryResponseSuccess | postWorkflowIdQueryQueryResponseError);
|
|
778
|
-
export declare const getPostWorkflowIdQueryQueryUrl: (id: string, query: string) => string;
|
|
779
|
-
export declare const postWorkflowIdQueryQuery: (id: string, query: string, postWorkflowIdQueryQueryBody: PostWorkflowIdQueryQueryBody, options?: ApiRequestOptions) => Promise<postWorkflowIdQueryQueryResponse>;
|
|
780
|
-
/**
|
|
781
|
-
* @summary Execute an update on an workflow
|
|
782
|
-
*/
|
|
783
|
-
export type postWorkflowIdUpdateUpdateResponse200 = {
|
|
784
|
-
data: void;
|
|
785
|
-
status: 200;
|
|
786
|
-
};
|
|
787
|
-
export type postWorkflowIdUpdateUpdateResponse400 = {
|
|
788
|
-
data: BadRequestResponse;
|
|
789
|
-
status: 400;
|
|
790
|
-
};
|
|
791
|
-
export type postWorkflowIdUpdateUpdateResponse404 = {
|
|
792
|
-
data: NotFoundResponse;
|
|
793
|
-
status: 404;
|
|
794
|
-
};
|
|
795
|
-
export type postWorkflowIdUpdateUpdateResponse500 = {
|
|
796
|
-
data: InternalServerErrorResponse;
|
|
797
|
-
status: 500;
|
|
798
|
-
};
|
|
799
|
-
export type postWorkflowIdUpdateUpdateResponseSuccess = (postWorkflowIdUpdateUpdateResponse200) & {
|
|
800
|
-
headers: Headers;
|
|
801
|
-
};
|
|
802
|
-
export type postWorkflowIdUpdateUpdateResponseError = (postWorkflowIdUpdateUpdateResponse400 | postWorkflowIdUpdateUpdateResponse404 | postWorkflowIdUpdateUpdateResponse500) & {
|
|
803
|
-
headers: Headers;
|
|
804
|
-
};
|
|
805
|
-
export type postWorkflowIdUpdateUpdateResponse = (postWorkflowIdUpdateUpdateResponseSuccess | postWorkflowIdUpdateUpdateResponseError);
|
|
806
|
-
export declare const getPostWorkflowIdUpdateUpdateUrl: (id: string, update: string) => string;
|
|
807
|
-
export declare const postWorkflowIdUpdateUpdate: (id: string, update: string, postWorkflowIdUpdateUpdateBody: PostWorkflowIdUpdateUpdateBody, options?: ApiRequestOptions) => Promise<postWorkflowIdUpdateUpdateResponse>;
|
|
808
|
-
/**
|
|
809
|
-
* @summary A dummy post endpoint for test only
|
|
810
|
-
*/
|
|
811
|
-
export type postHeartbeatResponse204 = {
|
|
812
|
-
data: void;
|
|
813
|
-
status: 204;
|
|
814
|
-
};
|
|
815
|
-
export type postHeartbeatResponseSuccess = (postHeartbeatResponse204) & {
|
|
816
|
-
headers: Headers;
|
|
817
|
-
};
|
|
818
|
-
export type postHeartbeatResponse = (postHeartbeatResponseSuccess);
|
|
819
|
-
export declare const getPostHeartbeatUrl: () => string;
|
|
820
|
-
export declare const postHeartbeat: (options?: ApiRequestOptions) => Promise<postHeartbeatResponse>;
|