@oxygen-agent/cli 1.1014.1997 → 1.1014.2040
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/README.md +1 -1
- package/dist/command-families/tables/options.d.ts +1 -0
- package/dist/command-families/tables/register-automation.js +3 -1
- package/dist/commands/observability.js +4 -4
- package/dist/commands/table-runs.js +10 -0
- package/dist/commands/tags.js +2 -2
- package/dist/commands/workflows.js +31 -10
- package/dist/http-client.d.ts +1 -1
- package/dist/http-client.js +1 -1
- package/node_modules/@oxygen/formula/dist/cross-row-function.d.ts +13 -0
- package/node_modules/@oxygen/formula/dist/cross-row-function.js +1 -0
- package/node_modules/@oxygen/formula/dist/{refactor-internals → cross-row-functions}/novelty-score.d.ts +2 -0
- package/node_modules/@oxygen/formula/dist/{refactor-internals → cross-row-functions}/novelty-score.js +1 -0
- package/node_modules/@oxygen/formula/dist/cross-row-functions.generated.d.ts +3 -0
- package/node_modules/@oxygen/formula/dist/cross-row-functions.generated.js +3 -0
- package/node_modules/@oxygen/formula/dist/evaluate.d.ts +12 -1
- package/node_modules/@oxygen/formula/dist/evaluate.js +28 -3
- package/node_modules/@oxygen/recipe-sdk/dist/index.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-discovery.js +1 -1
- package/node_modules/@oxygen/shared/dist/cell-format.js +2 -2
- package/node_modules/@oxygen/shared/dist/collab.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/contracts/geo.js +1 -1
- package/node_modules/@oxygen/shared/dist/dnc-identities.js +1 -1
- package/node_modules/@oxygen/shared/dist/error-redaction.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/error-redaction.js +2 -2
- package/node_modules/@oxygen/shared/dist/esp-contract.d.ts +133 -0
- package/node_modules/@oxygen/shared/dist/esp-contract.js +121 -0
- package/node_modules/@oxygen/shared/dist/{geo.js → geo/geo.js} +2 -2
- package/node_modules/@oxygen/shared/dist/index.d.ts +6 -5
- package/node_modules/@oxygen/shared/dist/index.js +7 -5
- package/node_modules/@oxygen/shared/dist/knowledge-bootstrap.js +1 -1
- package/node_modules/@oxygen/shared/dist/linkedin-connection-identity.js +1 -1
- package/node_modules/@oxygen/shared/dist/{sending-domain-rollout.js → mailboxes/sending-domain-rollout.js} +1 -1
- package/node_modules/@oxygen/shared/dist/mcp-event-contract.js +1 -1
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-core.d.ts → posts/metrics-core.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-linkedin.d.ts → posts/metrics-linkedin.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-linkedin.js → posts/metrics-linkedin.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-series.d.ts → posts/metrics-series.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-series.js → posts/metrics-series.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-x.d.ts → posts/metrics-x.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-x.js → posts/metrics-x.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{social-post-metrics.d.ts → posts/metrics.d.ts} +3 -3
- package/node_modules/@oxygen/shared/dist/{social-post-metrics.js → posts/metrics.js} +3 -3
- package/node_modules/@oxygen/shared/dist/recipient-provider.d.ts +2 -10
- package/node_modules/@oxygen/shared/dist/recipient-provider.js +1 -9
- package/node_modules/@oxygen/shared/dist/sequence-internals/esp-policy.d.ts +2 -118
- package/node_modules/@oxygen/shared/dist/sequence-internals/esp-policy.js +2 -107
- package/node_modules/@oxygen/shared/dist/sequences.d.ts +0 -1
- package/node_modules/@oxygen/shared/dist/sequences.js +0 -2
- package/node_modules/@oxygen/shared/dist/{native-chat-discovery.d.ts → support/native-chat-discovery.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{native-chat-discovery.js → support/native-chat-discovery.js} +1 -1
- package/node_modules/@oxygen/shared/dist/suppression-entries.js +1 -1
- package/node_modules/@oxygen/shared/dist/table-field-types.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/table-field-types.js +2 -2
- package/node_modules/@oxygen/shared/dist/{column-output-fields.js → tables/column-output-fields.js} +4 -4
- package/node_modules/@oxygen/shared/dist/{tags.d.ts → tags/tags.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{tags.js → tags/tags.js} +1 -1
- package/node_modules/@oxygen/shared/dist/ugc-amplification-identity.js +1 -1
- package/node_modules/@oxygen/shared/dist/version.generated.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/version.generated.js +1 -1
- package/node_modules/@oxygen/shared/dist/workspace-placement-bulk.d.ts +6 -0
- package/node_modules/@oxygen/shared/dist/workspace-placement-bulk.js +9 -2
- package/node_modules/@oxygen/shared/dist/workspace-placement-schedule.d.ts +44 -0
- package/node_modules/@oxygen/shared/dist/workspace-placement-schedule.js +90 -0
- package/node_modules/@oxygen/shared/dist/workspace-placement-view.d.ts +24 -0
- package/node_modules/@oxygen/shared/dist/workspace-placement-view.js +5 -4
- package/node_modules/@oxygen/shared/dist/workspace-placement.d.ts +4 -0
- package/node_modules/@oxygen/shared/dist/workspace-placement.js +7 -1
- package/node_modules/@oxygen/shared/package.json +0 -25
- package/node_modules/@oxygen/workflows/dist/cron.d.ts +42 -0
- package/node_modules/@oxygen/workflows/dist/cron.js +271 -0
- package/node_modules/@oxygen/workflows/dist/event-dispatch.d.ts +2 -1
- package/node_modules/@oxygen/workflows/dist/graph/condition.d.ts +3 -0
- package/node_modules/@oxygen/workflows/dist/graph/condition.js +19 -0
- package/node_modules/@oxygen/workflows/dist/graph/expression.d.ts +1 -2
- package/node_modules/@oxygen/workflows/dist/graph/expression.js +2 -19
- package/node_modules/@oxygen/workflows/dist/graph/types.d.ts +4 -3
- package/node_modules/@oxygen/workflows/dist/index.d.ts +8 -985
- package/node_modules/@oxygen/workflows/dist/index.js +8 -1221
- package/node_modules/@oxygen/workflows/dist/manifest-builders.d.ts +73 -0
- package/node_modules/@oxygen/workflows/dist/manifest-builders.js +102 -0
- package/node_modules/@oxygen/workflows/dist/manifest-guards.d.ts +16 -0
- package/node_modules/@oxygen/workflows/dist/manifest-guards.js +34 -0
- package/node_modules/@oxygen/workflows/dist/manifest-hash.d.ts +47 -0
- package/node_modules/@oxygen/workflows/dist/manifest-hash.js +102 -0
- package/node_modules/@oxygen/workflows/dist/manifest-lint.d.ts +17 -0
- package/node_modules/@oxygen/workflows/dist/manifest-lint.js +474 -0
- package/node_modules/@oxygen/workflows/dist/manifest-types.d.ts +256 -0
- package/node_modules/@oxygen/workflows/dist/manifest-types.js +9 -0
- package/node_modules/@oxygen/workflows/dist/pure-function.d.ts +17 -0
- package/node_modules/@oxygen/workflows/dist/pure-function.js +130 -0
- package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-comparison.d.ts +1 -17
- package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-comparison.js +1 -93
- package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-pattern.d.ts +16 -0
- package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-pattern.js +92 -0
- package/node_modules/@oxygen/workflows/dist/workflow-schemas.d.ts +545 -0
- package/node_modules/@oxygen/workflows/dist/workflow-schemas.js +135 -0
- package/node_modules/@oxygen/workflows/package.json +4 -0
- package/package.json +1 -1
- /package/node_modules/@oxygen/shared/dist/{geo.d.ts → geo/geo.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{sending-domain-rollout.d.ts → mailboxes/sending-domain-rollout.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{attempt-provenance.d.ts → observability/attempt-provenance.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{attempt-provenance.js → observability/attempt-provenance.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-mentions.d.ts → posts/linkedin-mentions.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-mentions.js → posts/linkedin-mentions.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-post-keywords.d.ts → posts/linkedin-post-keywords.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-post-keywords.js → posts/linkedin-post-keywords.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-post-url.d.ts → posts/linkedin-post-url.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-post-url.js → posts/linkedin-post-url.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{social-post-metrics-core.js → posts/metrics-core.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{native-chat.d.ts → support/native-chat.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{native-chat.js → support/native-chat.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{plain-support-events.d.ts → support/plain-support-events.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{plain-support-events.js → support/plain-support-events.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{column-output-fields.d.ts → tables/column-output-fields.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-url.d.ts → tables/linkedin-url.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-url.js → tables/linkedin-url.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{select-options.d.ts → tables/select-options.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{select-options.js → tables/select-options.js} +0 -0
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { type WorkflowGraphManifest } from "./graph/types.js";
|
|
2
|
-
import { DURABLE_RECIPE_COMPILER_VERSION, type JsonSchema, type WorkflowLintIssue, type WorkflowLintResult, type WorkflowManifestValidationOptions, type WorkflowStatus, type WorkflowStepEffect } from "./manifest-validation.js";
|
|
3
1
|
export * from "./usage-estimate.js";
|
|
4
2
|
export * from "./event-dispatch.js";
|
|
5
3
|
export type { CanonicalWorkflowToolEffect } from "./tool-effects.js";
|
|
@@ -9,986 +7,11 @@ export * from "./portable.js";
|
|
|
9
7
|
export { RECIPE_TIMESTAMP_MILLIS_SOURCE } from "./recipe-timestamp.js";
|
|
10
8
|
export * from "./refactor-internals/execution-policy.js";
|
|
11
9
|
export { DURABLE_RECIPE_COMPILER_VERSION, isWorkflowToolRejected, lintRecipeManifest, lintWorkflowCodeSourceSafety, MAX_RECIPE_BUNDLE_BYTES, validateJsonSchemaValue, validateOptionalMaxCredits, validatePureFunctionSource, validateTrigger, WORKFLOW_MANIFEST_VERSION, type JsonSchema, type JsonSchemaValidationIssue, type WorkflowLintIssue, type WorkflowLintResult, type WorkflowManifestValidationOptions, type WorkflowStatus, type WorkflowStepEffect, } from "./manifest-validation.js";
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export type WorkflowEventFilterOp = "eq" | "neq" | "exists" | "not_exists";
|
|
21
|
-
export type WorkflowEventFilter = {
|
|
22
|
-
path: string;
|
|
23
|
-
op: WorkflowEventFilterOp;
|
|
24
|
-
value?: unknown;
|
|
25
|
-
};
|
|
26
|
-
export type WorkflowTriggerManifest = {
|
|
27
|
-
type: "api";
|
|
28
|
-
status?: WorkflowStatus;
|
|
29
|
-
} | {
|
|
30
|
-
type: "webhook";
|
|
31
|
-
trigger_id: string;
|
|
32
|
-
trigger_name?: string | null;
|
|
33
|
-
secret_required?: boolean;
|
|
34
|
-
idempotency_key_path?: string | null;
|
|
35
|
-
status?: WorkflowStatus;
|
|
36
|
-
} | {
|
|
37
|
-
type: "cron";
|
|
38
|
-
cron: string;
|
|
39
|
-
timezone?: string | null;
|
|
40
|
-
metadata?: Record<string, unknown>;
|
|
41
|
-
status?: WorkflowStatus;
|
|
42
|
-
} | {
|
|
43
|
-
type: "event";
|
|
44
|
-
source: string;
|
|
45
|
-
event: string;
|
|
46
|
-
filters?: WorkflowEventFilter[];
|
|
47
|
-
idempotency_key_path?: string | null;
|
|
48
|
-
status?: WorkflowStatus;
|
|
49
|
-
};
|
|
50
|
-
export type WorkflowTransformStepManifest = {
|
|
51
|
-
kind: "transform";
|
|
52
|
-
id: string;
|
|
53
|
-
description?: string;
|
|
54
|
-
run_source: string;
|
|
55
|
-
};
|
|
56
|
-
export type WorkflowToolStepManifest = {
|
|
57
|
-
kind: "tool";
|
|
58
|
-
id: string;
|
|
59
|
-
description?: string;
|
|
60
|
-
tool: string;
|
|
61
|
-
effect: WorkflowStepEffect;
|
|
62
|
-
mode?: WorkflowMode;
|
|
63
|
-
/** Pin this invocation to one active organization integration connection. */
|
|
64
|
-
connection_id?: string;
|
|
65
|
-
payload_source: string;
|
|
66
|
-
max_credits?: number;
|
|
67
|
-
};
|
|
68
|
-
export type WorkflowBranchStepManifest = {
|
|
69
|
-
kind: "branch";
|
|
70
|
-
id: string;
|
|
71
|
-
description?: string;
|
|
72
|
-
condition_source: string;
|
|
73
|
-
then_id: string;
|
|
74
|
-
else_id?: string;
|
|
75
|
-
join_id?: string;
|
|
76
|
-
};
|
|
77
|
-
export type WorkflowStepManifest = WorkflowTransformStepManifest | WorkflowToolStepManifest | WorkflowBranchStepManifest;
|
|
78
|
-
export type RecipeVisualToolStepManifest = {
|
|
79
|
-
kind: "tool";
|
|
80
|
-
id: string;
|
|
81
|
-
label: string;
|
|
82
|
-
description?: string;
|
|
83
|
-
tool: string;
|
|
84
|
-
effect?: WorkflowStepEffect;
|
|
85
|
-
checkpoint_id?: string;
|
|
86
|
-
};
|
|
87
|
-
export type RecipeVisualCodeStepManifest = {
|
|
88
|
-
kind: "step";
|
|
89
|
-
id: string;
|
|
90
|
-
label: string;
|
|
91
|
-
description?: string;
|
|
92
|
-
checkpoint_id?: string;
|
|
93
|
-
};
|
|
94
|
-
export type RecipeVisualBranchStepManifest = {
|
|
95
|
-
kind: "branch";
|
|
96
|
-
id: string;
|
|
97
|
-
label: string;
|
|
98
|
-
description?: string;
|
|
99
|
-
condition_label?: string;
|
|
100
|
-
then_id: string;
|
|
101
|
-
else_id?: string;
|
|
102
|
-
join_id?: string;
|
|
103
|
-
checkpoint_id?: string;
|
|
104
|
-
};
|
|
105
|
-
export type RecipeVisualStepManifest = RecipeVisualToolStepManifest | RecipeVisualCodeStepManifest | RecipeVisualBranchStepManifest;
|
|
106
|
-
export type RecipeVisualPlanManifest = {
|
|
107
|
-
version: 1;
|
|
108
|
-
steps: RecipeVisualStepManifest[];
|
|
109
|
-
};
|
|
110
|
-
export type WorkflowManifest = {
|
|
111
|
-
manifest_version: 1;
|
|
112
|
-
workflow: {
|
|
113
|
-
id: string;
|
|
114
|
-
name: string;
|
|
115
|
-
status?: WorkflowStatus;
|
|
116
|
-
};
|
|
117
|
-
specification?: string;
|
|
118
|
-
trigger?: WorkflowTriggerManifest;
|
|
119
|
-
input_schema?: JsonSchema;
|
|
120
|
-
steps: WorkflowStepManifest[];
|
|
121
|
-
max_credits?: number;
|
|
122
|
-
source_hash: string;
|
|
123
|
-
compiler_version: string;
|
|
124
|
-
created_at: string;
|
|
125
|
-
};
|
|
126
|
-
export type RecipeManifest = {
|
|
127
|
-
manifest_version: 1;
|
|
128
|
-
workflow: {
|
|
129
|
-
id: string;
|
|
130
|
-
name: string;
|
|
131
|
-
status?: WorkflowStatus;
|
|
132
|
-
};
|
|
133
|
-
trigger?: WorkflowTriggerManifest;
|
|
134
|
-
input_schema?: JsonSchema;
|
|
135
|
-
/**
|
|
136
|
-
* Operator-editable recipe settings, distinct from the per-delivery trigger
|
|
137
|
-
* payload. When present, the canvas renders this schema with the same mapped
|
|
138
|
-
* field controls used by tool/action configuration.
|
|
139
|
-
*/
|
|
140
|
-
configuration_schema?: JsonSchema;
|
|
141
|
-
configuration?: Record<string, unknown>;
|
|
142
|
-
runtime: RecipeRuntime;
|
|
143
|
-
bundle: string;
|
|
144
|
-
bundle_format: "esm";
|
|
145
|
-
tools_used: string[];
|
|
146
|
-
visual_plan?: RecipeVisualPlanManifest;
|
|
147
|
-
max_credits?: number;
|
|
148
|
-
source_hash: string;
|
|
149
|
-
compiler_version: typeof DURABLE_RECIPE_COMPILER_VERSION;
|
|
150
|
-
created_at: string;
|
|
151
|
-
};
|
|
152
|
-
export type AnyWorkflowManifest = WorkflowManifest | RecipeManifest | WorkflowGraphManifest;
|
|
153
|
-
export type BlueprintColumnInput = {
|
|
154
|
-
key?: string;
|
|
155
|
-
label: string;
|
|
156
|
-
dataType?: string;
|
|
157
|
-
kind?: string;
|
|
158
|
-
semanticType?: string | null;
|
|
159
|
-
definition?: Record<string, unknown>;
|
|
160
|
-
};
|
|
161
|
-
export type BlueprintTable = {
|
|
162
|
-
ref: string;
|
|
163
|
-
name: string;
|
|
164
|
-
description?: string;
|
|
165
|
-
columns: BlueprintColumnInput[];
|
|
166
|
-
metadata?: Record<string, unknown>;
|
|
167
|
-
};
|
|
168
|
-
export type BlueprintColumnGraft = {
|
|
169
|
-
table_ref: string;
|
|
170
|
-
column: BlueprintColumnInput;
|
|
171
|
-
};
|
|
172
|
-
export type BlueprintPromptKind = "ai_column_system" | "scoring_rubric" | "other";
|
|
173
|
-
export type BlueprintPromptTemplate = {
|
|
174
|
-
slug: string;
|
|
175
|
-
name: string;
|
|
176
|
-
description?: string | null;
|
|
177
|
-
kind: BlueprintPromptKind;
|
|
178
|
-
body: string;
|
|
179
|
-
};
|
|
180
|
-
export type BlueprintIntegrationRequirement = {
|
|
181
|
-
kind: string;
|
|
182
|
-
purpose?: string;
|
|
183
|
-
required?: boolean;
|
|
184
|
-
};
|
|
185
|
-
export type BlueprintByokRequirement = {
|
|
186
|
-
kind: "openai" | "anthropic" | "google" | "openrouter" | string;
|
|
187
|
-
required?: boolean;
|
|
188
|
-
};
|
|
189
|
-
export type BlueprintRequires = {
|
|
190
|
-
integrations?: BlueprintIntegrationRequirement[];
|
|
191
|
-
context_keys?: string[];
|
|
192
|
-
byok?: BlueprintByokRequirement[];
|
|
193
|
-
};
|
|
194
|
-
export type BlueprintWorkflow = {
|
|
195
|
-
manifest: AnyWorkflowManifest;
|
|
196
|
-
table_refs?: Record<string, string>;
|
|
197
|
-
prompt_template_slugs?: string[];
|
|
198
|
-
};
|
|
199
|
-
export type Blueprint = {
|
|
200
|
-
blueprint_version: typeof BLUEPRINT_VERSION;
|
|
201
|
-
id: string;
|
|
202
|
-
name: string;
|
|
203
|
-
summary: string;
|
|
204
|
-
tags: string[];
|
|
205
|
-
audience?: string[];
|
|
206
|
-
requires: BlueprintRequires;
|
|
207
|
-
input_schema?: JsonSchema;
|
|
208
|
-
tables: BlueprintTable[];
|
|
209
|
-
column_grafts?: BlueprintColumnGraft[];
|
|
210
|
-
prompt_templates: BlueprintPromptTemplate[];
|
|
211
|
-
workflows: BlueprintWorkflow[];
|
|
212
|
-
exported_at: string;
|
|
213
|
-
exported_from?: {
|
|
214
|
-
oxygen_version?: string;
|
|
215
|
-
};
|
|
216
|
-
source_hash: string;
|
|
217
|
-
compiler_version: typeof BLUEPRINT_COMPILER_VERSION;
|
|
218
|
-
};
|
|
219
|
-
type WorkflowFunction = (context: Record<string, unknown>) => unknown | Promise<unknown>;
|
|
220
|
-
export type WorkflowDefinition = {
|
|
221
|
-
readonly __oxygen_workflow_definition: true;
|
|
222
|
-
id: string;
|
|
223
|
-
name: string;
|
|
224
|
-
status?: WorkflowStatus;
|
|
225
|
-
specification?: string;
|
|
226
|
-
trigger?: WorkflowTriggerDefinition;
|
|
227
|
-
inputSchema?: JsonSchema;
|
|
228
|
-
maxCredits?: number;
|
|
229
|
-
steps: WorkflowStepDefinition[];
|
|
230
|
-
};
|
|
231
|
-
export type WorkflowTriggerDefinition = WorkflowTriggerManifest;
|
|
232
|
-
export type WorkflowTransformStepDefinition = {
|
|
233
|
-
readonly __oxygen_workflow_step: true;
|
|
234
|
-
kind: "transform";
|
|
235
|
-
id: string;
|
|
236
|
-
description?: string;
|
|
237
|
-
run: WorkflowFunction;
|
|
238
|
-
};
|
|
239
|
-
export type WorkflowToolStepDefinition = {
|
|
240
|
-
readonly __oxygen_workflow_step: true;
|
|
241
|
-
kind: "tool";
|
|
242
|
-
id: string;
|
|
243
|
-
description?: string;
|
|
244
|
-
tool: string;
|
|
245
|
-
effect?: WorkflowStepEffect;
|
|
246
|
-
mode?: WorkflowMode;
|
|
247
|
-
connectionId?: string;
|
|
248
|
-
maxCredits?: number;
|
|
249
|
-
payload: WorkflowFunction;
|
|
250
|
-
};
|
|
251
|
-
export type WorkflowBranchStepDefinition = {
|
|
252
|
-
readonly __oxygen_workflow_step: true;
|
|
253
|
-
kind: "branch";
|
|
254
|
-
id: string;
|
|
255
|
-
description?: string;
|
|
256
|
-
condition: WorkflowFunction;
|
|
257
|
-
then: string;
|
|
258
|
-
else?: string;
|
|
259
|
-
join?: string;
|
|
260
|
-
};
|
|
261
|
-
export type WorkflowStepDefinition = WorkflowTransformStepDefinition | WorkflowToolStepDefinition | WorkflowBranchStepDefinition;
|
|
262
|
-
export declare function defineWorkflow(input: {
|
|
263
|
-
id: string;
|
|
264
|
-
name: string;
|
|
265
|
-
status?: WorkflowStatus;
|
|
266
|
-
specification?: string;
|
|
267
|
-
trigger?: WorkflowTriggerDefinition;
|
|
268
|
-
inputSchema?: JsonSchema;
|
|
269
|
-
maxCredits?: number;
|
|
270
|
-
steps: WorkflowStepDefinition[];
|
|
271
|
-
}): WorkflowDefinition;
|
|
272
|
-
export declare function apiTrigger(input?: {
|
|
273
|
-
status?: WorkflowStatus;
|
|
274
|
-
}): WorkflowTriggerDefinition;
|
|
275
|
-
export declare function webhookTrigger(input: {
|
|
276
|
-
id: string;
|
|
277
|
-
name?: string | null;
|
|
278
|
-
secret?: boolean;
|
|
279
|
-
idempotencyKeyPath?: string | null;
|
|
280
|
-
status?: WorkflowStatus;
|
|
281
|
-
}): WorkflowTriggerDefinition;
|
|
282
|
-
export declare function cronTrigger(input: {
|
|
283
|
-
cron: string;
|
|
284
|
-
timezone?: string | null;
|
|
285
|
-
status?: WorkflowStatus;
|
|
286
|
-
}): WorkflowTriggerDefinition;
|
|
287
|
-
export declare function eventTrigger(input: {
|
|
288
|
-
source: string;
|
|
289
|
-
event: string;
|
|
290
|
-
filters?: WorkflowEventFilter[];
|
|
291
|
-
idempotencyKeyPath?: string | null;
|
|
292
|
-
status?: WorkflowStatus;
|
|
293
|
-
}): WorkflowTriggerDefinition;
|
|
294
|
-
export declare function nextCronRunAfter(input: {
|
|
295
|
-
cron: string;
|
|
296
|
-
timezone?: string | null;
|
|
297
|
-
after?: Date;
|
|
298
|
-
}): Date;
|
|
299
|
-
/**
|
|
300
|
-
* The first slot of `cron` strictly after `after` that is also at least
|
|
301
|
-
* `minIntervalMinutes` after `lastFireAt`. This is how a plan's minimum cron
|
|
302
|
-
* interval (repricing 2026-09, decision L4.2) is enforced at fire time: a
|
|
303
|
-
* schedule that fires closer together than the plan allows keeps running, only
|
|
304
|
-
* slower, and is never deleted (proposal P-47). With no last fire or a minimum
|
|
305
|
-
* of one minute or less it is exactly `nextCronRunAfter`.
|
|
306
|
-
*/
|
|
307
|
-
export declare function nextCronRunAfterMinInterval(input: {
|
|
308
|
-
cron: string;
|
|
309
|
-
timezone?: string | null;
|
|
310
|
-
after: Date;
|
|
311
|
-
lastFireAt?: Date | null;
|
|
312
|
-
minIntervalMinutes?: number | null;
|
|
313
|
-
}): Date;
|
|
314
|
-
/**
|
|
315
|
-
* The smallest gap in minutes between two consecutive fires of `cron`, which is
|
|
316
|
-
* what a plan's minimum cron interval is checked against (repricing 2026-09,
|
|
317
|
-
* decision L4.2). It is the smallest gap, never the average: `0,5 9 * * *`
|
|
318
|
-
* fires once a day on average but twice five minutes apart, so its gap is 5.
|
|
319
|
-
*
|
|
320
|
-
* Gaps are measured in real time in `timezone`. A daylight-saving change can
|
|
321
|
-
* bring two fires closer than their wall-clock times suggest (01:55 and 03:05
|
|
322
|
-
* are ten minutes apart on the night the clock skips from 02:00 to 03:00, and
|
|
323
|
-
* a repeated hour can fire 01:45 and then 01:00 again), so the fires around
|
|
324
|
-
* each change in the coming year are simulated as well.
|
|
325
|
-
*
|
|
326
|
-
* Returns null when the schedule never fires twice within the scan (for
|
|
327
|
-
* example `0 9 29 2 *` fires once every few years and has no meaningful gap
|
|
328
|
-
* for a minimum to bind). Throws on an unparseable expression, like
|
|
329
|
-
* `nextCronRunAfter`.
|
|
330
|
-
*/
|
|
331
|
-
export declare function minCronGapMinutes(input: {
|
|
332
|
-
cron: string;
|
|
333
|
-
timezone?: string | null;
|
|
334
|
-
now?: Date;
|
|
335
|
-
}): number | null;
|
|
336
|
-
export declare function transformStep(input: {
|
|
337
|
-
id: string;
|
|
338
|
-
description?: string;
|
|
339
|
-
run: WorkflowFunction;
|
|
340
|
-
}): WorkflowTransformStepDefinition;
|
|
341
|
-
export declare function toolStep(input: {
|
|
342
|
-
id: string;
|
|
343
|
-
description?: string;
|
|
344
|
-
tool: string;
|
|
345
|
-
effect?: WorkflowStepEffect;
|
|
346
|
-
mode?: WorkflowMode;
|
|
347
|
-
connectionId?: string;
|
|
348
|
-
maxCredits?: number;
|
|
349
|
-
payload: WorkflowFunction;
|
|
350
|
-
}): WorkflowToolStepDefinition;
|
|
351
|
-
/**
|
|
352
|
-
* Conditional step. `condition` is evaluated; control then flows by mode:
|
|
353
|
-
*
|
|
354
|
-
* - then only (no `else`, no `join`) — GUARD: truthy continues to `then` (steps
|
|
355
|
-
* between the branch and `then` are skipped); falsy skips straight to the end
|
|
356
|
-
* of the workflow (no step after the branch runs) and the run completes.
|
|
357
|
-
* - then + else (no `join`) — skip-until-target jump to `then`/`else`; from the
|
|
358
|
-
* chosen target, the remaining steps run sequentially through the end.
|
|
359
|
-
* - then + else + join — real if/else: the non-chosen arm is skipped and `join`
|
|
360
|
-
* is the convergence point where shared downstream work resumes.
|
|
361
|
-
*
|
|
362
|
-
* All targets must be ids of later steps (branches are forward-only).
|
|
363
|
-
*/
|
|
364
|
-
export declare function branchStep(input: {
|
|
365
|
-
id: string;
|
|
366
|
-
description?: string;
|
|
367
|
-
condition: WorkflowFunction;
|
|
368
|
-
then: string;
|
|
369
|
-
else?: string;
|
|
370
|
-
join?: string;
|
|
371
|
-
}): WorkflowBranchStepDefinition;
|
|
372
|
-
export declare function isWorkflowDefinition(value: unknown): value is WorkflowDefinition;
|
|
373
|
-
export declare function isWorkflowManifest(value: unknown): value is WorkflowManifest;
|
|
374
|
-
export declare function isRecipeManifest(value: unknown): value is RecipeManifest;
|
|
375
|
-
/**
|
|
376
|
-
* Every manifest shape the platform can store and run: v1 hosted steps, durable
|
|
377
|
-
* recipes, and oxygen-workflows-v2 graphs. This is the gate `workflows apply`
|
|
378
|
-
* and the CLI loader route through, so a shape listed here must already have a
|
|
379
|
-
* linter and a worker execution path — accepting a manifest we cannot run would
|
|
380
|
-
* cut a revision that fails at run time instead of at authoring time.
|
|
381
|
-
*/
|
|
382
|
-
export declare function isAnyWorkflowManifest(value: unknown): value is AnyWorkflowManifest;
|
|
383
|
-
export declare function compileWorkflowDefinition(// skipcq: JS-R1005 -- compiler validates workflow metadata, trigger, steps, branch targets, and defaults together.
|
|
384
|
-
definition: WorkflowDefinition, options?: {
|
|
385
|
-
source?: string;
|
|
386
|
-
sourceHash?: string;
|
|
387
|
-
createdAt?: Date;
|
|
388
|
-
}): WorkflowManifest;
|
|
389
|
-
export declare function buildRecipeManifest(input: {
|
|
390
|
-
workflowId: string;
|
|
391
|
-
workflowName: string;
|
|
392
|
-
status?: WorkflowStatus;
|
|
393
|
-
trigger?: WorkflowTriggerManifest;
|
|
394
|
-
inputSchema?: JsonSchema;
|
|
395
|
-
configurationSchema?: JsonSchema;
|
|
396
|
-
configuration?: Record<string, unknown>;
|
|
397
|
-
bundle: string;
|
|
398
|
-
toolsUsed: string[];
|
|
399
|
-
visualPlan?: RecipeVisualPlanManifest;
|
|
400
|
-
maxCredits?: number;
|
|
401
|
-
sourceHash?: string;
|
|
402
|
-
createdAt?: Date;
|
|
403
|
-
}): RecipeManifest;
|
|
404
|
-
/** Canonical executable identity shared by recipe compilers and repair paths. */
|
|
405
|
-
export declare function hashRecipeSource(input: {
|
|
406
|
-
bundle: string;
|
|
407
|
-
configurationSchema?: JsonSchema;
|
|
408
|
-
configuration?: Record<string, unknown>;
|
|
409
|
-
}): string;
|
|
410
|
-
export declare function lintWorkflowManifest(// skipcq: JS-R1005
|
|
411
|
-
value: unknown, options?: WorkflowManifestValidationOptions): WorkflowLintResult;
|
|
412
|
-
export declare function assertRecipeManifest(value: unknown, options?: WorkflowManifestValidationOptions): asserts value is RecipeManifest;
|
|
413
|
-
export declare function assertWorkflowManifest(value: unknown, options?: WorkflowManifestValidationOptions): asserts value is WorkflowManifest;
|
|
414
|
-
export declare function isBlueprint(value: unknown): value is Blueprint;
|
|
415
|
-
export declare function lintBlueprint(// skipcq: JS-R1005
|
|
416
|
-
value: unknown, options?: WorkflowManifestValidationOptions): WorkflowLintResult;
|
|
417
|
-
export declare function assertBlueprint(value: unknown, options?: WorkflowManifestValidationOptions): asserts value is Blueprint;
|
|
418
|
-
export declare function buildBlueprint(input: {
|
|
419
|
-
id: string;
|
|
420
|
-
name: string;
|
|
421
|
-
summary?: string;
|
|
422
|
-
tags?: string[];
|
|
423
|
-
audience?: string[];
|
|
424
|
-
requires?: BlueprintRequires;
|
|
425
|
-
inputSchema?: JsonSchema;
|
|
426
|
-
tables: BlueprintTable[];
|
|
427
|
-
columnGrafts?: BlueprintColumnGraft[];
|
|
428
|
-
promptTemplates?: BlueprintPromptTemplate[];
|
|
429
|
-
workflows: BlueprintWorkflow[];
|
|
430
|
-
exportedFrom?: {
|
|
431
|
-
oxygen_version?: string;
|
|
432
|
-
};
|
|
433
|
-
exportedAt?: Date;
|
|
434
|
-
sourceHash?: string;
|
|
435
|
-
}): Blueprint;
|
|
436
|
-
export declare function assertRecipeBundleSafe(bundle: string): void;
|
|
437
|
-
export declare function lintRecipeBundleSafety(bundle: string, path?: string): WorkflowLintIssue[];
|
|
438
|
-
/**
|
|
439
|
-
* The ceiling of the legacy synchronous `node:vm` path below. It stays at 10 s
|
|
440
|
-
* (and its callers pass 1 s) when the typed Code node rose to 30 s (repricing
|
|
441
|
-
* 2026-09, decision L4.3; proposal P-49): this path runs on the worker's own
|
|
442
|
-
* event loop, so a long synchronous script would stall every other job and its
|
|
443
|
-
* queue lock renewal. The typed Code node runs in a separate microVM instead.
|
|
444
|
-
*/
|
|
445
|
-
export declare const PURE_WORKFLOW_FUNCTION_MAX_TIMEOUT_MS = 10000;
|
|
446
|
-
export declare function runPureWorkflowFunction(input: {
|
|
447
|
-
source: string;
|
|
448
|
-
context: Record<string, unknown>;
|
|
449
|
-
timeoutMs?: number;
|
|
450
|
-
maxOutputBytes?: number;
|
|
451
|
-
}): Promise<unknown>;
|
|
452
|
-
export declare const workflowApplySchema: {
|
|
453
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
454
|
-
readonly title: "OXYGEN Workflow Apply Input";
|
|
455
|
-
readonly type: "object";
|
|
456
|
-
readonly additionalProperties: false;
|
|
457
|
-
readonly properties: {
|
|
458
|
-
readonly manifest: {
|
|
459
|
-
readonly $ref: "#/$defs/manifest";
|
|
460
|
-
};
|
|
461
|
-
readonly approved: {
|
|
462
|
-
readonly type: "boolean";
|
|
463
|
-
readonly description: "Standing tool authorization for this exact autonomous revision.";
|
|
464
|
-
};
|
|
465
|
-
readonly max_credits: {
|
|
466
|
-
readonly type: "number";
|
|
467
|
-
readonly exclusiveMinimum: 0;
|
|
468
|
-
readonly description: "Hard credit ceiling for each autonomous delivery.";
|
|
469
|
-
};
|
|
470
|
-
readonly publish: {
|
|
471
|
-
readonly type: "boolean";
|
|
472
|
-
readonly description: "False saves an editable draft revision without publishing it. Defaults to true.";
|
|
473
|
-
};
|
|
474
|
-
};
|
|
475
|
-
readonly required: readonly ["manifest"];
|
|
476
|
-
readonly $defs: {
|
|
477
|
-
readonly manifest: {
|
|
478
|
-
readonly type: "object";
|
|
479
|
-
readonly additionalProperties: true;
|
|
480
|
-
};
|
|
481
|
-
};
|
|
482
|
-
};
|
|
483
|
-
export declare const workflowCallSchema: {
|
|
484
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
485
|
-
readonly title: "OXYGEN Workflow Call Input";
|
|
486
|
-
readonly type: "object";
|
|
487
|
-
readonly additionalProperties: false;
|
|
488
|
-
readonly properties: {
|
|
489
|
-
readonly workflow: {
|
|
490
|
-
readonly type: "string";
|
|
491
|
-
};
|
|
492
|
-
readonly workflow_id: {
|
|
493
|
-
readonly type: "string";
|
|
494
|
-
};
|
|
495
|
-
readonly workflow_name: {
|
|
496
|
-
readonly type: "string";
|
|
497
|
-
};
|
|
498
|
-
readonly input: {
|
|
499
|
-
readonly type: "object";
|
|
500
|
-
readonly additionalProperties: true;
|
|
501
|
-
};
|
|
502
|
-
readonly mode: {
|
|
503
|
-
readonly enum: readonly ["dry_run", "live", "smoke_test"];
|
|
504
|
-
};
|
|
505
|
-
readonly idempotency_key: {
|
|
506
|
-
readonly type: "string";
|
|
507
|
-
};
|
|
508
|
-
readonly revision_version: {
|
|
509
|
-
readonly type: "integer";
|
|
510
|
-
readonly minimum: 1;
|
|
511
|
-
readonly description: "Exact saved revision to run. Historical revisions are non-live only.";
|
|
512
|
-
};
|
|
513
|
-
readonly approved: {
|
|
514
|
-
readonly type: "boolean";
|
|
515
|
-
readonly description: "Explicit approval required for live calls.";
|
|
516
|
-
};
|
|
517
|
-
readonly max_credits: {
|
|
518
|
-
readonly type: "number";
|
|
519
|
-
readonly exclusiveMinimum: 0;
|
|
520
|
-
readonly description: "Positive credit ceiling required for live calls.";
|
|
521
|
-
};
|
|
522
|
-
};
|
|
523
|
-
readonly required: readonly ["mode"];
|
|
524
|
-
};
|
|
525
|
-
export declare const workflowEventEmitSchema: {
|
|
526
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
527
|
-
readonly title: "OXYGEN Workflow Event Emit Input";
|
|
528
|
-
readonly type: "object";
|
|
529
|
-
readonly additionalProperties: false;
|
|
530
|
-
readonly properties: {
|
|
531
|
-
readonly source: {
|
|
532
|
-
readonly type: "string";
|
|
533
|
-
};
|
|
534
|
-
readonly event: {
|
|
535
|
-
readonly type: "string";
|
|
536
|
-
};
|
|
537
|
-
readonly payload: {
|
|
538
|
-
readonly type: "object";
|
|
539
|
-
readonly additionalProperties: true;
|
|
540
|
-
};
|
|
541
|
-
readonly raw_payload: {
|
|
542
|
-
readonly type: "object";
|
|
543
|
-
readonly additionalProperties: true;
|
|
544
|
-
};
|
|
545
|
-
readonly headers: {
|
|
546
|
-
readonly type: "object";
|
|
547
|
-
readonly additionalProperties: true;
|
|
548
|
-
};
|
|
549
|
-
readonly external_event_id: {
|
|
550
|
-
readonly type: "string";
|
|
551
|
-
};
|
|
552
|
-
readonly idempotency_key: {
|
|
553
|
-
readonly type: "string";
|
|
554
|
-
};
|
|
555
|
-
readonly mode: {
|
|
556
|
-
readonly enum: readonly ["dry_run", "live", "smoke_test"];
|
|
557
|
-
};
|
|
558
|
-
readonly approved: {
|
|
559
|
-
readonly type: "boolean";
|
|
560
|
-
readonly description: "Explicit approval required when event deliveries run live.";
|
|
561
|
-
};
|
|
562
|
-
readonly max_credits: {
|
|
563
|
-
readonly type: "number";
|
|
564
|
-
readonly exclusiveMinimum: 0;
|
|
565
|
-
readonly description: "Positive per-delivery credit ceiling required for live event emission.";
|
|
566
|
-
};
|
|
567
|
-
};
|
|
568
|
-
readonly required: readonly ["source", "event", "payload", "mode"];
|
|
569
|
-
};
|
|
570
|
-
export declare const workflowTriggerSchema: {
|
|
571
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
572
|
-
readonly title: "OXYGEN Workflow Trigger";
|
|
573
|
-
readonly type: "object";
|
|
574
|
-
readonly additionalProperties: false;
|
|
575
|
-
readonly properties: {
|
|
576
|
-
readonly type: {
|
|
577
|
-
readonly enum: readonly ["api", "webhook", "cron", "event"];
|
|
578
|
-
};
|
|
579
|
-
readonly trigger_id: {
|
|
580
|
-
readonly type: "string";
|
|
581
|
-
};
|
|
582
|
-
readonly trigger_name: {
|
|
583
|
-
readonly type: readonly ["string", "null"];
|
|
584
|
-
};
|
|
585
|
-
readonly secret_required: {
|
|
586
|
-
readonly type: "boolean";
|
|
587
|
-
};
|
|
588
|
-
readonly idempotency_key_path: {
|
|
589
|
-
readonly type: readonly ["string", "null"];
|
|
590
|
-
};
|
|
591
|
-
readonly cron: {
|
|
592
|
-
readonly type: "string";
|
|
593
|
-
};
|
|
594
|
-
readonly timezone: {
|
|
595
|
-
readonly type: readonly ["string", "null"];
|
|
596
|
-
};
|
|
597
|
-
readonly source: {
|
|
598
|
-
readonly type: "string";
|
|
599
|
-
};
|
|
600
|
-
readonly event: {
|
|
601
|
-
readonly type: "string";
|
|
602
|
-
};
|
|
603
|
-
readonly filters: {
|
|
604
|
-
readonly type: "array";
|
|
605
|
-
readonly items: {
|
|
606
|
-
readonly type: "object";
|
|
607
|
-
readonly additionalProperties: false;
|
|
608
|
-
readonly properties: {
|
|
609
|
-
readonly path: {
|
|
610
|
-
readonly type: "string";
|
|
611
|
-
};
|
|
612
|
-
readonly op: {
|
|
613
|
-
readonly enum: readonly ["eq", "neq", "exists", "not_exists"];
|
|
614
|
-
};
|
|
615
|
-
readonly value: {};
|
|
616
|
-
};
|
|
617
|
-
readonly required: readonly ["path", "op"];
|
|
618
|
-
};
|
|
619
|
-
};
|
|
620
|
-
readonly status: {
|
|
621
|
-
readonly enum: readonly ["active", "disabled"];
|
|
622
|
-
};
|
|
623
|
-
};
|
|
624
|
-
readonly required: readonly ["type"];
|
|
625
|
-
};
|
|
626
|
-
export declare const workflowManifestSchema: {
|
|
627
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
628
|
-
readonly title: "OXYGEN Workflow Manifest";
|
|
629
|
-
readonly type: "object";
|
|
630
|
-
readonly additionalProperties: true;
|
|
631
|
-
readonly required: readonly ["manifest_version", "workflow", "steps", "source_hash", "compiler_version"];
|
|
632
|
-
};
|
|
633
|
-
export declare function getWorkflowSchema(subject?: "apply" | "call" | "event" | "trigger" | "manifest" | "all"): {
|
|
634
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
635
|
-
readonly title: "OXYGEN Workflow Apply Input";
|
|
636
|
-
readonly type: "object";
|
|
637
|
-
readonly additionalProperties: false;
|
|
638
|
-
readonly properties: {
|
|
639
|
-
readonly manifest: {
|
|
640
|
-
readonly $ref: "#/$defs/manifest";
|
|
641
|
-
};
|
|
642
|
-
readonly approved: {
|
|
643
|
-
readonly type: "boolean";
|
|
644
|
-
readonly description: "Standing tool authorization for this exact autonomous revision.";
|
|
645
|
-
};
|
|
646
|
-
readonly max_credits: {
|
|
647
|
-
readonly type: "number";
|
|
648
|
-
readonly exclusiveMinimum: 0;
|
|
649
|
-
readonly description: "Hard credit ceiling for each autonomous delivery.";
|
|
650
|
-
};
|
|
651
|
-
readonly publish: {
|
|
652
|
-
readonly type: "boolean";
|
|
653
|
-
readonly description: "False saves an editable draft revision without publishing it. Defaults to true.";
|
|
654
|
-
};
|
|
655
|
-
};
|
|
656
|
-
readonly required: readonly ["manifest"];
|
|
657
|
-
readonly $defs: {
|
|
658
|
-
readonly manifest: {
|
|
659
|
-
readonly type: "object";
|
|
660
|
-
readonly additionalProperties: true;
|
|
661
|
-
};
|
|
662
|
-
};
|
|
663
|
-
} | {
|
|
664
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
665
|
-
readonly title: "OXYGEN Workflow Call Input";
|
|
666
|
-
readonly type: "object";
|
|
667
|
-
readonly additionalProperties: false;
|
|
668
|
-
readonly properties: {
|
|
669
|
-
readonly workflow: {
|
|
670
|
-
readonly type: "string";
|
|
671
|
-
};
|
|
672
|
-
readonly workflow_id: {
|
|
673
|
-
readonly type: "string";
|
|
674
|
-
};
|
|
675
|
-
readonly workflow_name: {
|
|
676
|
-
readonly type: "string";
|
|
677
|
-
};
|
|
678
|
-
readonly input: {
|
|
679
|
-
readonly type: "object";
|
|
680
|
-
readonly additionalProperties: true;
|
|
681
|
-
};
|
|
682
|
-
readonly mode: {
|
|
683
|
-
readonly enum: readonly ["dry_run", "live", "smoke_test"];
|
|
684
|
-
};
|
|
685
|
-
readonly idempotency_key: {
|
|
686
|
-
readonly type: "string";
|
|
687
|
-
};
|
|
688
|
-
readonly revision_version: {
|
|
689
|
-
readonly type: "integer";
|
|
690
|
-
readonly minimum: 1;
|
|
691
|
-
readonly description: "Exact saved revision to run. Historical revisions are non-live only.";
|
|
692
|
-
};
|
|
693
|
-
readonly approved: {
|
|
694
|
-
readonly type: "boolean";
|
|
695
|
-
readonly description: "Explicit approval required for live calls.";
|
|
696
|
-
};
|
|
697
|
-
readonly max_credits: {
|
|
698
|
-
readonly type: "number";
|
|
699
|
-
readonly exclusiveMinimum: 0;
|
|
700
|
-
readonly description: "Positive credit ceiling required for live calls.";
|
|
701
|
-
};
|
|
702
|
-
};
|
|
703
|
-
readonly required: readonly ["mode"];
|
|
704
|
-
} | {
|
|
705
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
706
|
-
readonly title: "OXYGEN Workflow Event Emit Input";
|
|
707
|
-
readonly type: "object";
|
|
708
|
-
readonly additionalProperties: false;
|
|
709
|
-
readonly properties: {
|
|
710
|
-
readonly source: {
|
|
711
|
-
readonly type: "string";
|
|
712
|
-
};
|
|
713
|
-
readonly event: {
|
|
714
|
-
readonly type: "string";
|
|
715
|
-
};
|
|
716
|
-
readonly payload: {
|
|
717
|
-
readonly type: "object";
|
|
718
|
-
readonly additionalProperties: true;
|
|
719
|
-
};
|
|
720
|
-
readonly raw_payload: {
|
|
721
|
-
readonly type: "object";
|
|
722
|
-
readonly additionalProperties: true;
|
|
723
|
-
};
|
|
724
|
-
readonly headers: {
|
|
725
|
-
readonly type: "object";
|
|
726
|
-
readonly additionalProperties: true;
|
|
727
|
-
};
|
|
728
|
-
readonly external_event_id: {
|
|
729
|
-
readonly type: "string";
|
|
730
|
-
};
|
|
731
|
-
readonly idempotency_key: {
|
|
732
|
-
readonly type: "string";
|
|
733
|
-
};
|
|
734
|
-
readonly mode: {
|
|
735
|
-
readonly enum: readonly ["dry_run", "live", "smoke_test"];
|
|
736
|
-
};
|
|
737
|
-
readonly approved: {
|
|
738
|
-
readonly type: "boolean";
|
|
739
|
-
readonly description: "Explicit approval required when event deliveries run live.";
|
|
740
|
-
};
|
|
741
|
-
readonly max_credits: {
|
|
742
|
-
readonly type: "number";
|
|
743
|
-
readonly exclusiveMinimum: 0;
|
|
744
|
-
readonly description: "Positive per-delivery credit ceiling required for live event emission.";
|
|
745
|
-
};
|
|
746
|
-
};
|
|
747
|
-
readonly required: readonly ["source", "event", "payload", "mode"];
|
|
748
|
-
} | {
|
|
749
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
750
|
-
readonly title: "OXYGEN Workflow Trigger";
|
|
751
|
-
readonly type: "object";
|
|
752
|
-
readonly additionalProperties: false;
|
|
753
|
-
readonly properties: {
|
|
754
|
-
readonly type: {
|
|
755
|
-
readonly enum: readonly ["api", "webhook", "cron", "event"];
|
|
756
|
-
};
|
|
757
|
-
readonly trigger_id: {
|
|
758
|
-
readonly type: "string";
|
|
759
|
-
};
|
|
760
|
-
readonly trigger_name: {
|
|
761
|
-
readonly type: readonly ["string", "null"];
|
|
762
|
-
};
|
|
763
|
-
readonly secret_required: {
|
|
764
|
-
readonly type: "boolean";
|
|
765
|
-
};
|
|
766
|
-
readonly idempotency_key_path: {
|
|
767
|
-
readonly type: readonly ["string", "null"];
|
|
768
|
-
};
|
|
769
|
-
readonly cron: {
|
|
770
|
-
readonly type: "string";
|
|
771
|
-
};
|
|
772
|
-
readonly timezone: {
|
|
773
|
-
readonly type: readonly ["string", "null"];
|
|
774
|
-
};
|
|
775
|
-
readonly source: {
|
|
776
|
-
readonly type: "string";
|
|
777
|
-
};
|
|
778
|
-
readonly event: {
|
|
779
|
-
readonly type: "string";
|
|
780
|
-
};
|
|
781
|
-
readonly filters: {
|
|
782
|
-
readonly type: "array";
|
|
783
|
-
readonly items: {
|
|
784
|
-
readonly type: "object";
|
|
785
|
-
readonly additionalProperties: false;
|
|
786
|
-
readonly properties: {
|
|
787
|
-
readonly path: {
|
|
788
|
-
readonly type: "string";
|
|
789
|
-
};
|
|
790
|
-
readonly op: {
|
|
791
|
-
readonly enum: readonly ["eq", "neq", "exists", "not_exists"];
|
|
792
|
-
};
|
|
793
|
-
readonly value: {};
|
|
794
|
-
};
|
|
795
|
-
readonly required: readonly ["path", "op"];
|
|
796
|
-
};
|
|
797
|
-
};
|
|
798
|
-
readonly status: {
|
|
799
|
-
readonly enum: readonly ["active", "disabled"];
|
|
800
|
-
};
|
|
801
|
-
};
|
|
802
|
-
readonly required: readonly ["type"];
|
|
803
|
-
} | {
|
|
804
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
805
|
-
readonly title: "OXYGEN Workflow Manifest";
|
|
806
|
-
readonly type: "object";
|
|
807
|
-
readonly additionalProperties: true;
|
|
808
|
-
readonly required: readonly ["manifest_version", "workflow", "steps", "source_hash", "compiler_version"];
|
|
809
|
-
} | {
|
|
810
|
-
schemas: {
|
|
811
|
-
apply: {
|
|
812
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
813
|
-
readonly title: "OXYGEN Workflow Apply Input";
|
|
814
|
-
readonly type: "object";
|
|
815
|
-
readonly additionalProperties: false;
|
|
816
|
-
readonly properties: {
|
|
817
|
-
readonly manifest: {
|
|
818
|
-
readonly $ref: "#/$defs/manifest";
|
|
819
|
-
};
|
|
820
|
-
readonly approved: {
|
|
821
|
-
readonly type: "boolean";
|
|
822
|
-
readonly description: "Standing tool authorization for this exact autonomous revision.";
|
|
823
|
-
};
|
|
824
|
-
readonly max_credits: {
|
|
825
|
-
readonly type: "number";
|
|
826
|
-
readonly exclusiveMinimum: 0;
|
|
827
|
-
readonly description: "Hard credit ceiling for each autonomous delivery.";
|
|
828
|
-
};
|
|
829
|
-
readonly publish: {
|
|
830
|
-
readonly type: "boolean";
|
|
831
|
-
readonly description: "False saves an editable draft revision without publishing it. Defaults to true.";
|
|
832
|
-
};
|
|
833
|
-
};
|
|
834
|
-
readonly required: readonly ["manifest"];
|
|
835
|
-
readonly $defs: {
|
|
836
|
-
readonly manifest: {
|
|
837
|
-
readonly type: "object";
|
|
838
|
-
readonly additionalProperties: true;
|
|
839
|
-
};
|
|
840
|
-
};
|
|
841
|
-
};
|
|
842
|
-
call: {
|
|
843
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
844
|
-
readonly title: "OXYGEN Workflow Call Input";
|
|
845
|
-
readonly type: "object";
|
|
846
|
-
readonly additionalProperties: false;
|
|
847
|
-
readonly properties: {
|
|
848
|
-
readonly workflow: {
|
|
849
|
-
readonly type: "string";
|
|
850
|
-
};
|
|
851
|
-
readonly workflow_id: {
|
|
852
|
-
readonly type: "string";
|
|
853
|
-
};
|
|
854
|
-
readonly workflow_name: {
|
|
855
|
-
readonly type: "string";
|
|
856
|
-
};
|
|
857
|
-
readonly input: {
|
|
858
|
-
readonly type: "object";
|
|
859
|
-
readonly additionalProperties: true;
|
|
860
|
-
};
|
|
861
|
-
readonly mode: {
|
|
862
|
-
readonly enum: readonly ["dry_run", "live", "smoke_test"];
|
|
863
|
-
};
|
|
864
|
-
readonly idempotency_key: {
|
|
865
|
-
readonly type: "string";
|
|
866
|
-
};
|
|
867
|
-
readonly revision_version: {
|
|
868
|
-
readonly type: "integer";
|
|
869
|
-
readonly minimum: 1;
|
|
870
|
-
readonly description: "Exact saved revision to run. Historical revisions are non-live only.";
|
|
871
|
-
};
|
|
872
|
-
readonly approved: {
|
|
873
|
-
readonly type: "boolean";
|
|
874
|
-
readonly description: "Explicit approval required for live calls.";
|
|
875
|
-
};
|
|
876
|
-
readonly max_credits: {
|
|
877
|
-
readonly type: "number";
|
|
878
|
-
readonly exclusiveMinimum: 0;
|
|
879
|
-
readonly description: "Positive credit ceiling required for live calls.";
|
|
880
|
-
};
|
|
881
|
-
};
|
|
882
|
-
readonly required: readonly ["mode"];
|
|
883
|
-
};
|
|
884
|
-
event: {
|
|
885
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
886
|
-
readonly title: "OXYGEN Workflow Event Emit Input";
|
|
887
|
-
readonly type: "object";
|
|
888
|
-
readonly additionalProperties: false;
|
|
889
|
-
readonly properties: {
|
|
890
|
-
readonly source: {
|
|
891
|
-
readonly type: "string";
|
|
892
|
-
};
|
|
893
|
-
readonly event: {
|
|
894
|
-
readonly type: "string";
|
|
895
|
-
};
|
|
896
|
-
readonly payload: {
|
|
897
|
-
readonly type: "object";
|
|
898
|
-
readonly additionalProperties: true;
|
|
899
|
-
};
|
|
900
|
-
readonly raw_payload: {
|
|
901
|
-
readonly type: "object";
|
|
902
|
-
readonly additionalProperties: true;
|
|
903
|
-
};
|
|
904
|
-
readonly headers: {
|
|
905
|
-
readonly type: "object";
|
|
906
|
-
readonly additionalProperties: true;
|
|
907
|
-
};
|
|
908
|
-
readonly external_event_id: {
|
|
909
|
-
readonly type: "string";
|
|
910
|
-
};
|
|
911
|
-
readonly idempotency_key: {
|
|
912
|
-
readonly type: "string";
|
|
913
|
-
};
|
|
914
|
-
readonly mode: {
|
|
915
|
-
readonly enum: readonly ["dry_run", "live", "smoke_test"];
|
|
916
|
-
};
|
|
917
|
-
readonly approved: {
|
|
918
|
-
readonly type: "boolean";
|
|
919
|
-
readonly description: "Explicit approval required when event deliveries run live.";
|
|
920
|
-
};
|
|
921
|
-
readonly max_credits: {
|
|
922
|
-
readonly type: "number";
|
|
923
|
-
readonly exclusiveMinimum: 0;
|
|
924
|
-
readonly description: "Positive per-delivery credit ceiling required for live event emission.";
|
|
925
|
-
};
|
|
926
|
-
};
|
|
927
|
-
readonly required: readonly ["source", "event", "payload", "mode"];
|
|
928
|
-
};
|
|
929
|
-
trigger: {
|
|
930
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
931
|
-
readonly title: "OXYGEN Workflow Trigger";
|
|
932
|
-
readonly type: "object";
|
|
933
|
-
readonly additionalProperties: false;
|
|
934
|
-
readonly properties: {
|
|
935
|
-
readonly type: {
|
|
936
|
-
readonly enum: readonly ["api", "webhook", "cron", "event"];
|
|
937
|
-
};
|
|
938
|
-
readonly trigger_id: {
|
|
939
|
-
readonly type: "string";
|
|
940
|
-
};
|
|
941
|
-
readonly trigger_name: {
|
|
942
|
-
readonly type: readonly ["string", "null"];
|
|
943
|
-
};
|
|
944
|
-
readonly secret_required: {
|
|
945
|
-
readonly type: "boolean";
|
|
946
|
-
};
|
|
947
|
-
readonly idempotency_key_path: {
|
|
948
|
-
readonly type: readonly ["string", "null"];
|
|
949
|
-
};
|
|
950
|
-
readonly cron: {
|
|
951
|
-
readonly type: "string";
|
|
952
|
-
};
|
|
953
|
-
readonly timezone: {
|
|
954
|
-
readonly type: readonly ["string", "null"];
|
|
955
|
-
};
|
|
956
|
-
readonly source: {
|
|
957
|
-
readonly type: "string";
|
|
958
|
-
};
|
|
959
|
-
readonly event: {
|
|
960
|
-
readonly type: "string";
|
|
961
|
-
};
|
|
962
|
-
readonly filters: {
|
|
963
|
-
readonly type: "array";
|
|
964
|
-
readonly items: {
|
|
965
|
-
readonly type: "object";
|
|
966
|
-
readonly additionalProperties: false;
|
|
967
|
-
readonly properties: {
|
|
968
|
-
readonly path: {
|
|
969
|
-
readonly type: "string";
|
|
970
|
-
};
|
|
971
|
-
readonly op: {
|
|
972
|
-
readonly enum: readonly ["eq", "neq", "exists", "not_exists"];
|
|
973
|
-
};
|
|
974
|
-
readonly value: {};
|
|
975
|
-
};
|
|
976
|
-
readonly required: readonly ["path", "op"];
|
|
977
|
-
};
|
|
978
|
-
};
|
|
979
|
-
readonly status: {
|
|
980
|
-
readonly enum: readonly ["active", "disabled"];
|
|
981
|
-
};
|
|
982
|
-
};
|
|
983
|
-
readonly required: readonly ["type"];
|
|
984
|
-
};
|
|
985
|
-
manifest: {
|
|
986
|
-
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
987
|
-
readonly title: "OXYGEN Workflow Manifest";
|
|
988
|
-
readonly type: "object";
|
|
989
|
-
readonly additionalProperties: true;
|
|
990
|
-
readonly required: readonly ["manifest_version", "workflow", "steps", "source_hash", "compiler_version"];
|
|
991
|
-
};
|
|
992
|
-
};
|
|
993
|
-
};
|
|
994
|
-
export declare function computeWorkflowPlanHash(input: Record<string, unknown>): string;
|
|
10
|
+
export { WORKFLOW_COMPILER_VERSION, BLUEPRINT_VERSION, BLUEPRINT_COMPILER_VERSION, MAX_BLUEPRINT_BYTES, DEFAULT_WORKFLOW_CRON_TIMEZONE, type WorkflowMode, type WorkflowTriggerType, type RecipeRuntime, type WorkflowEventFilterOp, type WorkflowEventFilter, type WorkflowTriggerManifest, type WorkflowTransformStepManifest, type WorkflowToolStepManifest, type WorkflowBranchStepManifest, type WorkflowStepManifest, type RecipeVisualToolStepManifest, type RecipeVisualCodeStepManifest, type RecipeVisualBranchStepManifest, type RecipeVisualStepManifest, type RecipeVisualPlanManifest, type WorkflowManifest, type RecipeManifest, type AnyWorkflowManifest, type BlueprintColumnInput, type BlueprintTable, type BlueprintColumnGraft, type BlueprintPromptKind, type BlueprintPromptTemplate, type BlueprintIntegrationRequirement, type BlueprintByokRequirement, type BlueprintRequires, type BlueprintWorkflow, type Blueprint, type WorkflowDefinition, type WorkflowTriggerDefinition, type WorkflowTransformStepDefinition, type WorkflowToolStepDefinition, type WorkflowBranchStepDefinition, type WorkflowStepDefinition, } from "./manifest-types.js";
|
|
11
|
+
export { defineWorkflow, apiTrigger, webhookTrigger, cronTrigger, eventTrigger, transformStep, toolStep, branchStep, } from "./manifest-builders.js";
|
|
12
|
+
export { nextCronRunAfter, nextCronRunAfterMinInterval, minCronGapMinutes, } from "./cron.js";
|
|
13
|
+
export { isWorkflowDefinition, isWorkflowManifest, isRecipeManifest, isAnyWorkflowManifest, isBlueprint, } from "./manifest-guards.js";
|
|
14
|
+
export { buildRecipeManifest, hashRecipeSource, buildBlueprint, computeWorkflowPlanHash, } from "./manifest-hash.js";
|
|
15
|
+
export { compileWorkflowDefinition, lintWorkflowManifest, assertRecipeManifest, assertWorkflowManifest, lintBlueprint, assertBlueprint, assertRecipeBundleSafe, lintRecipeBundleSafety, } from "./manifest-lint.js";
|
|
16
|
+
export { PURE_WORKFLOW_FUNCTION_MAX_TIMEOUT_MS, runPureWorkflowFunction, } from "./pure-function.js";
|
|
17
|
+
export { workflowApplySchema, workflowCallSchema, workflowEventEmitSchema, workflowTriggerSchema, workflowManifestSchema, getWorkflowSchema, } from "./workflow-schemas.js";
|