@geenius/ai-workflow 0.1.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +69 -1
- package/package.json +60 -27
- package/packages/convex/dist/index.d.ts +363 -0
- package/packages/convex/dist/index.js +200 -0
- package/packages/convex/dist/index.js.map +1 -0
- package/packages/react/dist/index.d.ts +466 -0
- package/packages/react/dist/index.js +13914 -0
- package/packages/react/dist/index.js.map +1 -0
- package/packages/react-css/{src/styles.css → dist/index.css} +107 -253
- package/packages/react-css/dist/index.css.map +1 -0
- package/packages/react-css/dist/index.d.ts +495 -0
- package/packages/react-css/dist/index.js +13901 -0
- package/packages/react-css/dist/index.js.map +1 -0
- package/packages/shared/dist/index.d.ts +1368 -0
- package/packages/shared/dist/index.js +1681 -0
- package/packages/shared/dist/index.js.map +1 -0
- package/packages/solidjs/dist/index.d.ts +452 -0
- package/packages/solidjs/dist/index.js +13830 -0
- package/packages/solidjs/dist/index.js.map +1 -0
- package/packages/solidjs-css/{src/styles.css → dist/index.css} +107 -253
- package/packages/solidjs-css/dist/index.css.map +1 -0
- package/packages/solidjs-css/dist/index.d.ts +471 -0
- package/packages/solidjs-css/dist/index.js +13774 -0
- package/packages/solidjs-css/dist/index.js.map +1 -0
- package/.changeset/config.json +0 -11
- package/.github/CODEOWNERS +0 -1
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -16
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -11
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -10
- package/.github/dependabot.yml +0 -11
- package/.github/workflows/ci.yml +0 -23
- package/.github/workflows/release.yml +0 -29
- package/.nvmrc +0 -1
- package/.project/ACCOUNT.yaml +0 -4
- package/.project/IDEAS.yaml +0 -7
- package/.project/PROJECT.yaml +0 -11
- package/.project/ROADMAP.yaml +0 -15
- package/CODE_OF_CONDUCT.md +0 -16
- package/CONTRIBUTING.md +0 -26
- package/SECURITY.md +0 -15
- package/SUPPORT.md +0 -8
- package/packages/convex/README.md +0 -1
- package/packages/convex/package.json +0 -12
- package/packages/convex/src/convex.config.ts +0 -3
- package/packages/convex/src/index.ts +0 -3
- package/packages/convex/src/mutations.ts +0 -36
- package/packages/convex/src/queries.ts +0 -19
- package/packages/convex/src/schema.ts +0 -24
- package/packages/convex/tsconfig.json +0 -25
- package/packages/react/README.md +0 -1
- package/packages/react/package.json +0 -46
- package/packages/react/src/components/ApprovalModal.tsx +0 -47
- package/packages/react/src/components/StepConfigPanel.tsx +0 -67
- package/packages/react/src/components/StepConnector.tsx +0 -47
- package/packages/react/src/components/StepNode.tsx +0 -38
- package/packages/react/src/components/StepPalette.tsx +0 -48
- package/packages/react/src/components/WorkflowCanvas.tsx +0 -42
- package/packages/react/src/components/WorkflowRunPanel.tsx +0 -64
- package/packages/react/src/components/WorkflowToolbar.tsx +0 -43
- package/packages/react/src/components/index.ts +0 -9
- package/packages/react/src/hooks/index.ts +0 -10
- package/packages/react/src/hooks/useApprovalGate.ts +0 -59
- package/packages/react/src/hooks/useWorkflow.ts +0 -39
- package/packages/react/src/hooks/useWorkflowBuilder.ts +0 -121
- package/packages/react/src/hooks/useWorkflowRun.ts +0 -75
- package/packages/react/src/hooks/useWorkflowStep.ts +0 -52
- package/packages/react/src/hooks/useWorkflowTemplates.ts +0 -54
- package/packages/react/src/index.ts +0 -16
- package/packages/react/src/pages/WorkflowBuilderPage.tsx +0 -81
- package/packages/react/src/pages/WorkflowRunsPage.tsx +0 -59
- package/packages/react/src/pages/index.ts +0 -3
- package/packages/react/tsconfig.json +0 -1
- package/packages/react/tsup.config.ts +0 -7
- package/packages/react-css/README.md +0 -1
- package/packages/react-css/package.json +0 -44
- package/packages/react-css/src/components/ApprovalModal.tsx +0 -6
- package/packages/react-css/src/components/StepConfigPanel.tsx +0 -7
- package/packages/react-css/src/components/StepConnector.tsx +0 -6
- package/packages/react-css/src/components/StepNode.tsx +0 -7
- package/packages/react-css/src/components/StepPalette.tsx +0 -6
- package/packages/react-css/src/components/WorkflowCanvas.tsx +0 -6
- package/packages/react-css/src/components/WorkflowRunPanel.tsx +0 -9
- package/packages/react-css/src/components/WorkflowToolbar.tsx +0 -4
- package/packages/react-css/src/components/index.ts +0 -9
- package/packages/react-css/src/hooks/index.ts +0 -3
- package/packages/react-css/src/hooks/useWorkflow.ts +0 -39
- package/packages/react-css/src/hooks/useWorkflowBuilder.ts +0 -121
- package/packages/react-css/src/index.ts +0 -7
- package/packages/react-css/src/pages/WorkflowBuilderPage.tsx +0 -16
- package/packages/react-css/src/pages/WorkflowRunsPage.tsx +0 -6
- package/packages/react-css/src/pages/index.ts +0 -3
- package/packages/react-css/tsconfig.json +0 -26
- package/packages/react-css/tsup.config.ts +0 -2
- package/packages/shared/README.md +0 -1
- package/packages/shared/package.json +0 -56
- package/packages/shared/src/__tests__/ai-workflow.test.ts +0 -217
- package/packages/shared/src/config.ts +0 -49
- package/packages/shared/src/convex/index.ts +0 -2
- package/packages/shared/src/convex/schemas.ts +0 -42
- package/packages/shared/src/engine.test.ts +0 -1
- package/packages/shared/src/engine.ts +0 -295
- package/packages/shared/src/index.ts +0 -43
- package/packages/shared/src/steps.ts +0 -68
- package/packages/shared/src/templates.ts +0 -172
- package/packages/shared/src/types.ts +0 -237
- package/packages/shared/src/utils/cost.ts +0 -79
- package/packages/shared/src/utils/dag.ts +0 -133
- package/packages/shared/src/utils/index.ts +0 -5
- package/packages/shared/src/utils/interpolation.ts +0 -53
- package/packages/shared/src/validators.ts +0 -215
- package/packages/shared/tsconfig.json +0 -1
- package/packages/shared/tsup.config.ts +0 -5
- package/packages/shared/vitest.config.ts +0 -4
- package/packages/solidjs/README.md +0 -1
- package/packages/solidjs/package.json +0 -45
- package/packages/solidjs/src/components/ApprovalModal.tsx +0 -18
- package/packages/solidjs/src/components/StepConfigPanel.tsx +0 -14
- package/packages/solidjs/src/components/StepConnector.tsx +0 -11
- package/packages/solidjs/src/components/StepNode.tsx +0 -12
- package/packages/solidjs/src/components/StepPalette.tsx +0 -22
- package/packages/solidjs/src/components/WorkflowCanvas.tsx +0 -23
- package/packages/solidjs/src/components/WorkflowRunPanel.tsx +0 -18
- package/packages/solidjs/src/components/WorkflowToolbar.tsx +0 -13
- package/packages/solidjs/src/components/index.ts +0 -9
- package/packages/solidjs/src/index.ts +0 -7
- package/packages/solidjs/src/pages/WorkflowBuilderPage.tsx +0 -37
- package/packages/solidjs/src/pages/WorkflowRunsPage.tsx +0 -20
- package/packages/solidjs/src/pages/index.ts +0 -3
- package/packages/solidjs/src/primitives/createApprovalGate.ts +0 -29
- package/packages/solidjs/src/primitives/createWorkflow.ts +0 -28
- package/packages/solidjs/src/primitives/createWorkflowBuilder.ts +0 -56
- package/packages/solidjs/src/primitives/createWorkflowRun.ts +0 -32
- package/packages/solidjs/src/primitives/createWorkflowStep.ts +0 -23
- package/packages/solidjs/src/primitives/createWorkflowTemplates.ts +0 -28
- package/packages/solidjs/src/primitives/index.ts +0 -8
- package/packages/solidjs/tsconfig.json +0 -1
- package/packages/solidjs/tsup.config.ts +0 -7
- package/packages/solidjs-css/README.md +0 -1
- package/packages/solidjs-css/package.json +0 -43
- package/packages/solidjs-css/src/components/ApprovalModal.tsx +0 -6
- package/packages/solidjs-css/src/components/StepConfigPanel.tsx +0 -7
- package/packages/solidjs-css/src/components/StepConnector.tsx +0 -6
- package/packages/solidjs-css/src/components/StepNode.tsx +0 -7
- package/packages/solidjs-css/src/components/StepPalette.tsx +0 -7
- package/packages/solidjs-css/src/components/WorkflowCanvas.tsx +0 -7
- package/packages/solidjs-css/src/components/WorkflowRunPanel.tsx +0 -8
- package/packages/solidjs-css/src/components/WorkflowToolbar.tsx +0 -5
- package/packages/solidjs-css/src/components/index.ts +0 -9
- package/packages/solidjs-css/src/index.ts +0 -7
- package/packages/solidjs-css/src/pages/WorkflowBuilderPage.tsx +0 -2
- package/packages/solidjs-css/src/pages/WorkflowRunsPage.tsx +0 -7
- package/packages/solidjs-css/src/pages/index.ts +0 -3
- package/packages/solidjs-css/src/primitives/createWorkflow.ts +0 -28
- package/packages/solidjs-css/src/primitives/createWorkflowBuilder.ts +0 -56
- package/packages/solidjs-css/src/primitives/index.ts +0 -1
- package/packages/solidjs-css/tsconfig.json +0 -27
- package/packages/solidjs-css/tsup.config.ts +0 -2
- package/pnpm-workspace.yaml +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4110eac: Bring package to A+++ golden-standard compliance with full documentation, cleanup, structural alignment, Convex codegen integration, and verified multi-variant Storybook parity.
|
|
8
|
+
|
|
3
9
|
All notable changes to this project will be documented in this file.
|
|
4
10
|
|
|
5
11
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
@@ -8,4 +14,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
8
14
|
## [0.1.0] - 2026-03-20
|
|
9
15
|
|
|
10
16
|
### Added
|
|
17
|
+
|
|
11
18
|
- Initial release
|
package/README.md
CHANGED
|
@@ -1 +1,69 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @geenius/ai-workflow
|
|
2
|
+
|
|
3
|
+
DAG-based AI workflow orchestration with shared engine utilities, UI builders, and Convex helpers.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @geenius/ai-workflow
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Import Surface
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import {
|
|
15
|
+
WORKFLOW_TEMPLATES,
|
|
16
|
+
WorkflowEngine,
|
|
17
|
+
connect,
|
|
18
|
+
llmStep,
|
|
19
|
+
validateWorkflow,
|
|
20
|
+
} from "@geenius/ai-workflow";
|
|
21
|
+
import { WorkflowCanvas, WorkflowRunPanel } from "@geenius/ai-workflow/react";
|
|
22
|
+
import { WorkflowCanvas as CssWorkflowCanvas } from "@geenius/ai-workflow/react-css";
|
|
23
|
+
import { WorkflowCanvas as SolidWorkflowCanvas } from "@geenius/ai-workflow/solidjs";
|
|
24
|
+
import { WorkflowCanvas as SolidCssWorkflowCanvas } from "@geenius/ai-workflow/solidjs-css";
|
|
25
|
+
import { aiWorkflowTables } from "@geenius/ai-workflow/convex";
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
`@geenius/ai-workflow` and `@geenius/ai-workflow/shared` both resolve to the shared framework-agnostic contract.
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
import { WORKFLOW_TEMPLATES } from "@geenius/ai-workflow";
|
|
34
|
+
import { WorkflowBuilderPage } from "@geenius/ai-workflow/react";
|
|
35
|
+
|
|
36
|
+
const launchTemplate = WORKFLOW_TEMPLATES[0];
|
|
37
|
+
|
|
38
|
+
export function WorkflowBuilderScreen() {
|
|
39
|
+
return (
|
|
40
|
+
<WorkflowBuilderPage
|
|
41
|
+
initialDefinition={launchTemplate.create("demo-user")}
|
|
42
|
+
/>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Package Layout
|
|
48
|
+
|
|
49
|
+
- `@geenius/ai-workflow` / `@geenius/ai-workflow/shared`: engine, step builders, templates, validators, interpolation helpers, DAG utilities, error types, and shared types.
|
|
50
|
+
- `@geenius/ai-workflow/react`: React hooks, components, and workflow pages.
|
|
51
|
+
- `@geenius/ai-workflow/react-css`: plain-CSS React components and page variants.
|
|
52
|
+
- `@geenius/ai-workflow/solidjs`: SolidJS primitives, components, and workflow pages.
|
|
53
|
+
- `@geenius/ai-workflow/solidjs-css`: plain-CSS SolidJS components and page variants.
|
|
54
|
+
- `@geenius/ai-workflow/convex`: workflow table exports and Convex integration helpers.
|
|
55
|
+
|
|
56
|
+
## Storybook
|
|
57
|
+
|
|
58
|
+
- React Storybook app: [`apps/storybook-react`](./apps/storybook-react)
|
|
59
|
+
- SolidJS Storybook app: [`apps/storybook-solidjs`](./apps/storybook-solidjs)
|
|
60
|
+
- Both apps use the shared `@geenius/storybook` shell bridge and Vite preset, and include Tailwind/CSS variant comparison stories.
|
|
61
|
+
|
|
62
|
+
## Notes
|
|
63
|
+
|
|
64
|
+
- Storybook apps under `apps/` are development-only and are not part of the published contract.
|
|
65
|
+
- Versioning and release are handled through Changesets.
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geenius/ai-workflow",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
|
+
"sideEffects": false,
|
|
5
6
|
"description": "Geenius AI Workflow — Chained AI pipelines for Convex apps (React + SolidJS)",
|
|
6
|
-
"author": "
|
|
7
|
+
"author": "Mehdi Nabhani",
|
|
7
8
|
"license": "MIT",
|
|
8
9
|
"repository": {
|
|
9
10
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/
|
|
11
|
+
"url": "git+https://github.com/geenius-dev/geenius-ai-workflow.git"
|
|
11
12
|
},
|
|
12
13
|
"keywords": [
|
|
13
14
|
"ai",
|
|
@@ -18,23 +19,31 @@
|
|
|
18
19
|
"solidjs",
|
|
19
20
|
"geenius"
|
|
20
21
|
],
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
"release": "git push && git push --tags",
|
|
33
|
-
"publish:all": "pnpm -r publish --access public"
|
|
34
|
-
},
|
|
22
|
+
"files": [
|
|
23
|
+
"packages/shared/dist",
|
|
24
|
+
"packages/react/dist",
|
|
25
|
+
"packages/solidjs/dist",
|
|
26
|
+
"packages/convex/dist",
|
|
27
|
+
"packages/react-css/dist",
|
|
28
|
+
"packages/solidjs-css/dist",
|
|
29
|
+
"README.md",
|
|
30
|
+
"LICENSE",
|
|
31
|
+
"CHANGELOG.md"
|
|
32
|
+
],
|
|
35
33
|
"devDependencies": {
|
|
34
|
+
"@arethetypeswrong/cli": "^0.18.2",
|
|
35
|
+
"@changesets/cli": "^2.30.0",
|
|
36
|
+
"@geenius/storybook": "^0.1.1",
|
|
36
37
|
"prettier": "^3.8.1",
|
|
37
|
-
"
|
|
38
|
+
"publint": "^0.3.18",
|
|
39
|
+
"typescript": "~6.0.2",
|
|
40
|
+
"vite": "^8.0.8",
|
|
41
|
+
"vitest": "^4.1.4"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@geenius/motion": "^0.1.3",
|
|
45
|
+
"@geenius/tools": "^0.3.0",
|
|
46
|
+
"zod": "^3.23.0"
|
|
38
47
|
},
|
|
39
48
|
"engines": {
|
|
40
49
|
"node": ">=20.0.0"
|
|
@@ -42,33 +51,57 @@
|
|
|
42
51
|
"exports": {
|
|
43
52
|
".": {
|
|
44
53
|
"types": "./packages/shared/dist/index.d.ts",
|
|
45
|
-
"import": "./packages/shared/dist/index.js"
|
|
54
|
+
"import": "./packages/shared/dist/index.js",
|
|
55
|
+
"default": "./packages/shared/dist/index.js"
|
|
46
56
|
},
|
|
47
57
|
"./shared": {
|
|
48
58
|
"types": "./packages/shared/dist/index.d.ts",
|
|
49
|
-
"import": "./packages/shared/dist/index.js"
|
|
59
|
+
"import": "./packages/shared/dist/index.js",
|
|
60
|
+
"default": "./packages/shared/dist/index.js"
|
|
50
61
|
},
|
|
51
62
|
"./convex": {
|
|
52
63
|
"types": "./packages/convex/dist/index.d.ts",
|
|
53
|
-
"import": "./packages/convex/dist/index.js"
|
|
64
|
+
"import": "./packages/convex/dist/index.js",
|
|
65
|
+
"default": "./packages/convex/dist/index.js"
|
|
54
66
|
},
|
|
55
67
|
"./react": {
|
|
56
68
|
"types": "./packages/react/dist/index.d.ts",
|
|
57
|
-
"import": "./packages/react/dist/index.js"
|
|
69
|
+
"import": "./packages/react/dist/index.js",
|
|
70
|
+
"default": "./packages/react/dist/index.js"
|
|
58
71
|
},
|
|
59
72
|
"./react-css": {
|
|
60
73
|
"types": "./packages/react-css/dist/index.d.ts",
|
|
61
|
-
"import": "./packages/react-css/dist/index.js"
|
|
74
|
+
"import": "./packages/react-css/dist/index.js",
|
|
75
|
+
"default": "./packages/react-css/dist/index.js"
|
|
62
76
|
},
|
|
63
77
|
"./solidjs": {
|
|
64
78
|
"types": "./packages/solidjs/dist/index.d.ts",
|
|
65
|
-
"import": "./packages/solidjs/dist/index.js"
|
|
79
|
+
"import": "./packages/solidjs/dist/index.js",
|
|
80
|
+
"default": "./packages/solidjs/dist/index.js"
|
|
66
81
|
},
|
|
67
82
|
"./solidjs-css": {
|
|
68
83
|
"types": "./packages/solidjs-css/dist/index.d.ts",
|
|
69
|
-
"import": "./packages/solidjs-css/dist/index.js"
|
|
84
|
+
"import": "./packages/solidjs-css/dist/index.js",
|
|
85
|
+
"default": "./packages/solidjs-css/dist/index.js"
|
|
70
86
|
}
|
|
71
87
|
},
|
|
72
88
|
"main": "./packages/shared/dist/index.js",
|
|
73
|
-
"types": "./packages/shared/dist/index.d.ts"
|
|
74
|
-
|
|
89
|
+
"types": "./packages/shared/dist/index.d.ts",
|
|
90
|
+
"publishConfig": {
|
|
91
|
+
"access": "public"
|
|
92
|
+
},
|
|
93
|
+
"scripts": {
|
|
94
|
+
"changeset": "changeset",
|
|
95
|
+
"dev": "pnpm -r --parallel --filter './packages/*' type-check",
|
|
96
|
+
"build": "pnpm --filter ./packages/shared build && pnpm -r --filter './packages/*' --filter '!./packages/shared' build",
|
|
97
|
+
"clean": "pnpm -r --filter './packages/*' clean",
|
|
98
|
+
"test": "pnpm build && pnpm run test:unit && pnpm run test:exports && pnpm run test:types",
|
|
99
|
+
"test:exports": "vitest run __tests__/exports.test.ts --passWithNoTests",
|
|
100
|
+
"test:types": "npm_config_cache=/tmp/.npm-cache attw --pack --ignore-rules cjs-resolves-to-esm --ignore-rules no-resolution",
|
|
101
|
+
"lint": "pnpm -r --filter './packages/*' type-check",
|
|
102
|
+
"lint:pub": "publint",
|
|
103
|
+
"type-check": "pnpm -r --filter './packages/*' type-check",
|
|
104
|
+
"format": "prettier --write \"packages/*/src/**/*.{ts,tsx}\"",
|
|
105
|
+
"test:unit": "pnpm -r --filter './packages/*' test && vitest run __tests__/parity.test.ts --passWithNoTests"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import * as convex_server from 'convex/server';
|
|
2
|
+
import { FilterApi, ApiFromModules, FunctionReference } from 'convex/server';
|
|
3
|
+
import * as convex_values from 'convex/values';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @module WorkflowConvexComponent
|
|
7
|
+
* @package @geenius/ai-workflow-convex
|
|
8
|
+
* @description Convex component definition for the AI workflow package. This
|
|
9
|
+
* entry anchors the package in Convex projects without relying on generated
|
|
10
|
+
* project-local modules.
|
|
11
|
+
*/
|
|
12
|
+
declare const component: convex_server.ComponentDefinition<any>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @module WorkflowConvexMutations
|
|
16
|
+
* @package @geenius/ai-workflow-convex
|
|
17
|
+
* @description Public Convex mutation definitions for creating workflow
|
|
18
|
+
* entities in package consumers. These mutations depend only on the package-local
|
|
19
|
+
* Convex shim and avoid generated project-specific modules.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Creates a workflow definition record in the packaged Convex schema.
|
|
23
|
+
*
|
|
24
|
+
* @returns The inserted workflow document id.
|
|
25
|
+
*/
|
|
26
|
+
declare const createWorkflow: convex_server.RegisteredMutation<"public", {
|
|
27
|
+
description?: string | undefined;
|
|
28
|
+
tags?: string[] | undefined;
|
|
29
|
+
status: "draft" | "active" | "paused" | "archived";
|
|
30
|
+
name: string;
|
|
31
|
+
version: number;
|
|
32
|
+
definitionJson: string;
|
|
33
|
+
createdBy: string;
|
|
34
|
+
createdAt: number;
|
|
35
|
+
updatedAt: number;
|
|
36
|
+
}, Promise<convex_values.GenericId<"workflows">>>;
|
|
37
|
+
/**
|
|
38
|
+
* Creates a workflow run record in the packaged Convex schema.
|
|
39
|
+
*
|
|
40
|
+
* @returns The inserted workflow-run document id.
|
|
41
|
+
*/
|
|
42
|
+
declare const createWorkflowRun: convex_server.RegisteredMutation<"public", {
|
|
43
|
+
inputJson?: string | undefined;
|
|
44
|
+
variablesJson?: string | undefined;
|
|
45
|
+
error?: string | undefined;
|
|
46
|
+
completedAt?: number | undefined;
|
|
47
|
+
status: "paused" | "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
48
|
+
workflowId: string;
|
|
49
|
+
workflowVersion: number;
|
|
50
|
+
currentStepIndex: number;
|
|
51
|
+
triggeredBy: string;
|
|
52
|
+
startedAt: number;
|
|
53
|
+
}, Promise<convex_values.GenericId<"workflowRuns">>>;
|
|
54
|
+
/**
|
|
55
|
+
* Creates a workflow step-result record in the packaged Convex schema.
|
|
56
|
+
*
|
|
57
|
+
* @returns The inserted workflow-step-result document id.
|
|
58
|
+
*/
|
|
59
|
+
declare const createWorkflowStepResult: convex_server.RegisteredMutation<"public", {
|
|
60
|
+
inputJson?: string | undefined;
|
|
61
|
+
error?: string | undefined;
|
|
62
|
+
completedAt?: number | undefined;
|
|
63
|
+
outputJson?: string | undefined;
|
|
64
|
+
tokens?: number | undefined;
|
|
65
|
+
costUsd?: number | undefined;
|
|
66
|
+
type: "llm-call" | "transform" | "condition" | "human-approval" | "webhook" | "delay" | "parallel" | "loop" | "sub-workflow" | "custom";
|
|
67
|
+
status: "pending" | "running" | "completed" | "failed" | "skipped" | "waiting-approval";
|
|
68
|
+
startedAt: number;
|
|
69
|
+
runId: convex_values.GenericId<"workflowRuns">;
|
|
70
|
+
stepId: string;
|
|
71
|
+
stepName: string;
|
|
72
|
+
durationMs: number;
|
|
73
|
+
}, Promise<convex_values.GenericId<"workflowStepResults">>>;
|
|
74
|
+
|
|
75
|
+
declare const mutations_createWorkflow: typeof createWorkflow;
|
|
76
|
+
declare const mutations_createWorkflowRun: typeof createWorkflowRun;
|
|
77
|
+
declare const mutations_createWorkflowStepResult: typeof createWorkflowStepResult;
|
|
78
|
+
declare namespace mutations {
|
|
79
|
+
export { mutations_createWorkflow as createWorkflow, mutations_createWorkflowRun as createWorkflowRun, mutations_createWorkflowStepResult as createWorkflowStepResult };
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @module WorkflowConvexQueries
|
|
84
|
+
* @package @geenius/ai-workflow-convex
|
|
85
|
+
* @description Public Convex query definitions for listing workflow entities in
|
|
86
|
+
* package consumers. These queries depend only on the package-local Convex shim.
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
* Lists stored workflow definitions from the packaged Convex schema.
|
|
90
|
+
*
|
|
91
|
+
* @returns All persisted workflow definitions.
|
|
92
|
+
*/
|
|
93
|
+
declare const listWorkflows: convex_server.RegisteredQuery<"public", {}, Promise<{
|
|
94
|
+
_id: convex_values.GenericId<"workflows">;
|
|
95
|
+
_creationTime: number;
|
|
96
|
+
description?: string | undefined;
|
|
97
|
+
tags?: string[] | undefined;
|
|
98
|
+
status: "draft" | "active" | "paused" | "archived";
|
|
99
|
+
name: string;
|
|
100
|
+
version: number;
|
|
101
|
+
definitionJson: string;
|
|
102
|
+
createdBy: string;
|
|
103
|
+
createdAt: number;
|
|
104
|
+
updatedAt: number;
|
|
105
|
+
}[]>>;
|
|
106
|
+
/**
|
|
107
|
+
* Lists stored workflow run records from the packaged Convex schema.
|
|
108
|
+
*
|
|
109
|
+
* @returns All persisted workflow runs.
|
|
110
|
+
*/
|
|
111
|
+
declare const listWorkflowRuns: convex_server.RegisteredQuery<"public", {}, Promise<{
|
|
112
|
+
_id: convex_values.GenericId<"workflowRuns">;
|
|
113
|
+
_creationTime: number;
|
|
114
|
+
inputJson?: string | undefined;
|
|
115
|
+
variablesJson?: string | undefined;
|
|
116
|
+
error?: string | undefined;
|
|
117
|
+
completedAt?: number | undefined;
|
|
118
|
+
status: "paused" | "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
119
|
+
workflowId: string;
|
|
120
|
+
workflowVersion: number;
|
|
121
|
+
currentStepIndex: number;
|
|
122
|
+
triggeredBy: string;
|
|
123
|
+
startedAt: number;
|
|
124
|
+
}[]>>;
|
|
125
|
+
/**
|
|
126
|
+
* Lists stored per-step execution results from the packaged Convex schema.
|
|
127
|
+
*
|
|
128
|
+
* @returns All persisted workflow step-result records.
|
|
129
|
+
*/
|
|
130
|
+
declare const listWorkflowStepResults: convex_server.RegisteredQuery<"public", {}, Promise<{
|
|
131
|
+
_id: convex_values.GenericId<"workflowStepResults">;
|
|
132
|
+
_creationTime: number;
|
|
133
|
+
inputJson?: string | undefined;
|
|
134
|
+
error?: string | undefined;
|
|
135
|
+
completedAt?: number | undefined;
|
|
136
|
+
outputJson?: string | undefined;
|
|
137
|
+
tokens?: number | undefined;
|
|
138
|
+
costUsd?: number | undefined;
|
|
139
|
+
type: "llm-call" | "transform" | "condition" | "human-approval" | "webhook" | "delay" | "parallel" | "loop" | "sub-workflow" | "custom";
|
|
140
|
+
status: "pending" | "running" | "completed" | "failed" | "skipped" | "waiting-approval";
|
|
141
|
+
startedAt: number;
|
|
142
|
+
runId: convex_values.GenericId<"workflowRuns">;
|
|
143
|
+
stepId: string;
|
|
144
|
+
stepName: string;
|
|
145
|
+
durationMs: number;
|
|
146
|
+
}[]>>;
|
|
147
|
+
|
|
148
|
+
declare const queries_listWorkflowRuns: typeof listWorkflowRuns;
|
|
149
|
+
declare const queries_listWorkflowStepResults: typeof listWorkflowStepResults;
|
|
150
|
+
declare const queries_listWorkflows: typeof listWorkflows;
|
|
151
|
+
declare namespace queries {
|
|
152
|
+
export { queries_listWorkflowRuns as listWorkflowRuns, queries_listWorkflowStepResults as listWorkflowStepResults, queries_listWorkflows as listWorkflows };
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* eslint-disable */
|
|
156
|
+
/**
|
|
157
|
+
* THIS CODE IS AUTOMATICALLY GENERATED by @geenius/db codegen.
|
|
158
|
+
*
|
|
159
|
+
* Template version: 1.34-r2
|
|
160
|
+
* Generated at: 2026-04-13
|
|
161
|
+
* Convex SDK: ^1.34.0
|
|
162
|
+
*
|
|
163
|
+
* DO NOT EDIT THIS FILE MANUALLY.
|
|
164
|
+
* To regenerate, run: geenius-convex-codegen
|
|
165
|
+
* @module
|
|
166
|
+
*/
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
declare const fullApi: ApiFromModules<{
|
|
171
|
+
"mutations": typeof mutations;
|
|
172
|
+
"queries": typeof queries;
|
|
173
|
+
}>;
|
|
174
|
+
|
|
175
|
+
declare const api: FilterApi<
|
|
176
|
+
typeof fullApi,
|
|
177
|
+
FunctionReference<any, "public">
|
|
178
|
+
>;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @module WorkflowConvexSchema
|
|
182
|
+
* @package @geenius/ai-workflow-convex
|
|
183
|
+
* @description Convex schema definitions for persisted workflows, workflow
|
|
184
|
+
* runs, and per-step results. The schema mirrors the shared workflow contract
|
|
185
|
+
* closely enough for typed storage without using `v.any()`.
|
|
186
|
+
*/
|
|
187
|
+
/**
|
|
188
|
+
* Mergeable Convex table definitions for workflow persistence.
|
|
189
|
+
*/
|
|
190
|
+
declare const aiWorkflowTables: {
|
|
191
|
+
workflows: convex_server.TableDefinition<convex_values.VObject<{
|
|
192
|
+
description?: string | undefined;
|
|
193
|
+
tags?: string[] | undefined;
|
|
194
|
+
status: "draft" | "active" | "paused" | "archived";
|
|
195
|
+
name: string;
|
|
196
|
+
version: number;
|
|
197
|
+
definitionJson: string;
|
|
198
|
+
createdBy: string;
|
|
199
|
+
createdAt: number;
|
|
200
|
+
updatedAt: number;
|
|
201
|
+
}, {
|
|
202
|
+
name: convex_values.VString<string, "required">;
|
|
203
|
+
description: convex_values.VString<string | undefined, "optional">;
|
|
204
|
+
version: convex_values.VFloat64<number, "required">;
|
|
205
|
+
status: convex_values.VUnion<"draft" | "active" | "paused" | "archived", [convex_values.VLiteral<"draft", "required">, convex_values.VLiteral<"active", "required">, convex_values.VLiteral<"paused", "required">, convex_values.VLiteral<"archived", "required">], "required", never>;
|
|
206
|
+
definitionJson: convex_values.VString<string, "required">;
|
|
207
|
+
createdBy: convex_values.VString<string, "required">;
|
|
208
|
+
tags: convex_values.VArray<string[] | undefined, convex_values.VString<string, "required">, "optional">;
|
|
209
|
+
createdAt: convex_values.VFloat64<number, "required">;
|
|
210
|
+
updatedAt: convex_values.VFloat64<number, "required">;
|
|
211
|
+
}, "required", "status" | "name" | "description" | "version" | "definitionJson" | "createdBy" | "tags" | "createdAt" | "updatedAt">, {
|
|
212
|
+
by_status: ["status", "_creationTime"];
|
|
213
|
+
by_createdBy: ["createdBy", "_creationTime"];
|
|
214
|
+
by_updatedAt: ["updatedAt", "_creationTime"];
|
|
215
|
+
}, {}, {}>;
|
|
216
|
+
workflowRuns: convex_server.TableDefinition<convex_values.VObject<{
|
|
217
|
+
inputJson?: string | undefined;
|
|
218
|
+
variablesJson?: string | undefined;
|
|
219
|
+
error?: string | undefined;
|
|
220
|
+
completedAt?: number | undefined;
|
|
221
|
+
status: "paused" | "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
222
|
+
workflowId: string;
|
|
223
|
+
workflowVersion: number;
|
|
224
|
+
currentStepIndex: number;
|
|
225
|
+
triggeredBy: string;
|
|
226
|
+
startedAt: number;
|
|
227
|
+
}, {
|
|
228
|
+
workflowId: convex_values.VString<string, "required">;
|
|
229
|
+
workflowVersion: convex_values.VFloat64<number, "required">;
|
|
230
|
+
status: convex_values.VUnion<"paused" | "pending" | "running" | "completed" | "failed" | "cancelled", [convex_values.VLiteral<"pending", "required">, convex_values.VLiteral<"running", "required">, convex_values.VLiteral<"paused", "required">, convex_values.VLiteral<"completed", "required">, convex_values.VLiteral<"failed", "required">, convex_values.VLiteral<"cancelled", "required">], "required", never>;
|
|
231
|
+
currentStepIndex: convex_values.VFloat64<number, "required">;
|
|
232
|
+
inputJson: convex_values.VString<string | undefined, "optional">;
|
|
233
|
+
variablesJson: convex_values.VString<string | undefined, "optional">;
|
|
234
|
+
error: convex_values.VString<string | undefined, "optional">;
|
|
235
|
+
triggeredBy: convex_values.VString<string, "required">;
|
|
236
|
+
startedAt: convex_values.VFloat64<number, "required">;
|
|
237
|
+
completedAt: convex_values.VFloat64<number | undefined, "optional">;
|
|
238
|
+
}, "required", "status" | "workflowId" | "workflowVersion" | "currentStepIndex" | "inputJson" | "variablesJson" | "error" | "triggeredBy" | "startedAt" | "completedAt">, {
|
|
239
|
+
by_workflowId: ["workflowId", "_creationTime"];
|
|
240
|
+
by_status: ["status", "_creationTime"];
|
|
241
|
+
by_startedAt: ["startedAt", "_creationTime"];
|
|
242
|
+
}, {}, {}>;
|
|
243
|
+
workflowStepResults: convex_server.TableDefinition<convex_values.VObject<{
|
|
244
|
+
inputJson?: string | undefined;
|
|
245
|
+
error?: string | undefined;
|
|
246
|
+
completedAt?: number | undefined;
|
|
247
|
+
outputJson?: string | undefined;
|
|
248
|
+
tokens?: number | undefined;
|
|
249
|
+
costUsd?: number | undefined;
|
|
250
|
+
type: "llm-call" | "transform" | "condition" | "human-approval" | "webhook" | "delay" | "parallel" | "loop" | "sub-workflow" | "custom";
|
|
251
|
+
status: "pending" | "running" | "completed" | "failed" | "skipped" | "waiting-approval";
|
|
252
|
+
startedAt: number;
|
|
253
|
+
runId: convex_values.GenericId<"workflowRuns">;
|
|
254
|
+
stepId: string;
|
|
255
|
+
stepName: string;
|
|
256
|
+
durationMs: number;
|
|
257
|
+
}, {
|
|
258
|
+
runId: convex_values.VId<convex_values.GenericId<"workflowRuns">, "required">;
|
|
259
|
+
stepId: convex_values.VString<string, "required">;
|
|
260
|
+
stepName: convex_values.VString<string, "required">;
|
|
261
|
+
type: convex_values.VUnion<"llm-call" | "transform" | "condition" | "human-approval" | "webhook" | "delay" | "parallel" | "loop" | "sub-workflow" | "custom", [convex_values.VLiteral<"llm-call", "required">, convex_values.VLiteral<"transform", "required">, convex_values.VLiteral<"condition", "required">, convex_values.VLiteral<"human-approval", "required">, convex_values.VLiteral<"webhook", "required">, convex_values.VLiteral<"delay", "required">, convex_values.VLiteral<"parallel", "required">, convex_values.VLiteral<"loop", "required">, convex_values.VLiteral<"sub-workflow", "required">, convex_values.VLiteral<"custom", "required">], "required", never>;
|
|
262
|
+
status: convex_values.VUnion<"pending" | "running" | "completed" | "failed" | "skipped" | "waiting-approval", [convex_values.VLiteral<"pending", "required">, convex_values.VLiteral<"running", "required">, convex_values.VLiteral<"completed", "required">, convex_values.VLiteral<"failed", "required">, convex_values.VLiteral<"skipped", "required">, convex_values.VLiteral<"waiting-approval", "required">], "required", never>;
|
|
263
|
+
inputJson: convex_values.VString<string | undefined, "optional">;
|
|
264
|
+
outputJson: convex_values.VString<string | undefined, "optional">;
|
|
265
|
+
error: convex_values.VString<string | undefined, "optional">;
|
|
266
|
+
durationMs: convex_values.VFloat64<number, "required">;
|
|
267
|
+
tokens: convex_values.VFloat64<number | undefined, "optional">;
|
|
268
|
+
costUsd: convex_values.VFloat64<number | undefined, "optional">;
|
|
269
|
+
startedAt: convex_values.VFloat64<number, "required">;
|
|
270
|
+
completedAt: convex_values.VFloat64<number | undefined, "optional">;
|
|
271
|
+
}, "required", "type" | "status" | "inputJson" | "error" | "startedAt" | "completedAt" | "runId" | "stepId" | "stepName" | "outputJson" | "durationMs" | "tokens" | "costUsd">, {
|
|
272
|
+
by_runId: ["runId", "_creationTime"];
|
|
273
|
+
by_status: ["status", "_creationTime"];
|
|
274
|
+
}, {}, {}>;
|
|
275
|
+
};
|
|
276
|
+
declare const workflowSchema: convex_server.SchemaDefinition<{
|
|
277
|
+
workflows: convex_server.TableDefinition<convex_values.VObject<{
|
|
278
|
+
description?: string | undefined;
|
|
279
|
+
tags?: string[] | undefined;
|
|
280
|
+
status: "draft" | "active" | "paused" | "archived";
|
|
281
|
+
name: string;
|
|
282
|
+
version: number;
|
|
283
|
+
definitionJson: string;
|
|
284
|
+
createdBy: string;
|
|
285
|
+
createdAt: number;
|
|
286
|
+
updatedAt: number;
|
|
287
|
+
}, {
|
|
288
|
+
name: convex_values.VString<string, "required">;
|
|
289
|
+
description: convex_values.VString<string | undefined, "optional">;
|
|
290
|
+
version: convex_values.VFloat64<number, "required">;
|
|
291
|
+
status: convex_values.VUnion<"draft" | "active" | "paused" | "archived", [convex_values.VLiteral<"draft", "required">, convex_values.VLiteral<"active", "required">, convex_values.VLiteral<"paused", "required">, convex_values.VLiteral<"archived", "required">], "required", never>;
|
|
292
|
+
definitionJson: convex_values.VString<string, "required">;
|
|
293
|
+
createdBy: convex_values.VString<string, "required">;
|
|
294
|
+
tags: convex_values.VArray<string[] | undefined, convex_values.VString<string, "required">, "optional">;
|
|
295
|
+
createdAt: convex_values.VFloat64<number, "required">;
|
|
296
|
+
updatedAt: convex_values.VFloat64<number, "required">;
|
|
297
|
+
}, "required", "status" | "name" | "description" | "version" | "definitionJson" | "createdBy" | "tags" | "createdAt" | "updatedAt">, {
|
|
298
|
+
by_status: ["status", "_creationTime"];
|
|
299
|
+
by_createdBy: ["createdBy", "_creationTime"];
|
|
300
|
+
by_updatedAt: ["updatedAt", "_creationTime"];
|
|
301
|
+
}, {}, {}>;
|
|
302
|
+
workflowRuns: convex_server.TableDefinition<convex_values.VObject<{
|
|
303
|
+
inputJson?: string | undefined;
|
|
304
|
+
variablesJson?: string | undefined;
|
|
305
|
+
error?: string | undefined;
|
|
306
|
+
completedAt?: number | undefined;
|
|
307
|
+
status: "paused" | "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
308
|
+
workflowId: string;
|
|
309
|
+
workflowVersion: number;
|
|
310
|
+
currentStepIndex: number;
|
|
311
|
+
triggeredBy: string;
|
|
312
|
+
startedAt: number;
|
|
313
|
+
}, {
|
|
314
|
+
workflowId: convex_values.VString<string, "required">;
|
|
315
|
+
workflowVersion: convex_values.VFloat64<number, "required">;
|
|
316
|
+
status: convex_values.VUnion<"paused" | "pending" | "running" | "completed" | "failed" | "cancelled", [convex_values.VLiteral<"pending", "required">, convex_values.VLiteral<"running", "required">, convex_values.VLiteral<"paused", "required">, convex_values.VLiteral<"completed", "required">, convex_values.VLiteral<"failed", "required">, convex_values.VLiteral<"cancelled", "required">], "required", never>;
|
|
317
|
+
currentStepIndex: convex_values.VFloat64<number, "required">;
|
|
318
|
+
inputJson: convex_values.VString<string | undefined, "optional">;
|
|
319
|
+
variablesJson: convex_values.VString<string | undefined, "optional">;
|
|
320
|
+
error: convex_values.VString<string | undefined, "optional">;
|
|
321
|
+
triggeredBy: convex_values.VString<string, "required">;
|
|
322
|
+
startedAt: convex_values.VFloat64<number, "required">;
|
|
323
|
+
completedAt: convex_values.VFloat64<number | undefined, "optional">;
|
|
324
|
+
}, "required", "status" | "workflowId" | "workflowVersion" | "currentStepIndex" | "inputJson" | "variablesJson" | "error" | "triggeredBy" | "startedAt" | "completedAt">, {
|
|
325
|
+
by_workflowId: ["workflowId", "_creationTime"];
|
|
326
|
+
by_status: ["status", "_creationTime"];
|
|
327
|
+
by_startedAt: ["startedAt", "_creationTime"];
|
|
328
|
+
}, {}, {}>;
|
|
329
|
+
workflowStepResults: convex_server.TableDefinition<convex_values.VObject<{
|
|
330
|
+
inputJson?: string | undefined;
|
|
331
|
+
error?: string | undefined;
|
|
332
|
+
completedAt?: number | undefined;
|
|
333
|
+
outputJson?: string | undefined;
|
|
334
|
+
tokens?: number | undefined;
|
|
335
|
+
costUsd?: number | undefined;
|
|
336
|
+
type: "llm-call" | "transform" | "condition" | "human-approval" | "webhook" | "delay" | "parallel" | "loop" | "sub-workflow" | "custom";
|
|
337
|
+
status: "pending" | "running" | "completed" | "failed" | "skipped" | "waiting-approval";
|
|
338
|
+
startedAt: number;
|
|
339
|
+
runId: convex_values.GenericId<"workflowRuns">;
|
|
340
|
+
stepId: string;
|
|
341
|
+
stepName: string;
|
|
342
|
+
durationMs: number;
|
|
343
|
+
}, {
|
|
344
|
+
runId: convex_values.VId<convex_values.GenericId<"workflowRuns">, "required">;
|
|
345
|
+
stepId: convex_values.VString<string, "required">;
|
|
346
|
+
stepName: convex_values.VString<string, "required">;
|
|
347
|
+
type: convex_values.VUnion<"llm-call" | "transform" | "condition" | "human-approval" | "webhook" | "delay" | "parallel" | "loop" | "sub-workflow" | "custom", [convex_values.VLiteral<"llm-call", "required">, convex_values.VLiteral<"transform", "required">, convex_values.VLiteral<"condition", "required">, convex_values.VLiteral<"human-approval", "required">, convex_values.VLiteral<"webhook", "required">, convex_values.VLiteral<"delay", "required">, convex_values.VLiteral<"parallel", "required">, convex_values.VLiteral<"loop", "required">, convex_values.VLiteral<"sub-workflow", "required">, convex_values.VLiteral<"custom", "required">], "required", never>;
|
|
348
|
+
status: convex_values.VUnion<"pending" | "running" | "completed" | "failed" | "skipped" | "waiting-approval", [convex_values.VLiteral<"pending", "required">, convex_values.VLiteral<"running", "required">, convex_values.VLiteral<"completed", "required">, convex_values.VLiteral<"failed", "required">, convex_values.VLiteral<"skipped", "required">, convex_values.VLiteral<"waiting-approval", "required">], "required", never>;
|
|
349
|
+
inputJson: convex_values.VString<string | undefined, "optional">;
|
|
350
|
+
outputJson: convex_values.VString<string | undefined, "optional">;
|
|
351
|
+
error: convex_values.VString<string | undefined, "optional">;
|
|
352
|
+
durationMs: convex_values.VFloat64<number, "required">;
|
|
353
|
+
tokens: convex_values.VFloat64<number | undefined, "optional">;
|
|
354
|
+
costUsd: convex_values.VFloat64<number | undefined, "optional">;
|
|
355
|
+
startedAt: convex_values.VFloat64<number, "required">;
|
|
356
|
+
completedAt: convex_values.VFloat64<number | undefined, "optional">;
|
|
357
|
+
}, "required", "type" | "status" | "inputJson" | "error" | "startedAt" | "completedAt" | "runId" | "stepId" | "stepName" | "outputJson" | "durationMs" | "tokens" | "costUsd">, {
|
|
358
|
+
by_runId: ["runId", "_creationTime"];
|
|
359
|
+
by_status: ["status", "_creationTime"];
|
|
360
|
+
}, {}, {}>;
|
|
361
|
+
}, true>;
|
|
362
|
+
|
|
363
|
+
export { aiWorkflowTables, api, component as componentDefinition, createWorkflow, createWorkflowRun, createWorkflowStepResult, listWorkflowRuns, listWorkflowStepResults, listWorkflows, workflowSchema };
|