codika 3.0.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/LICENSE +21 -0
- package/README.md +68 -0
- package/dist/cli/commands/completion.d.ts +15 -0
- package/dist/cli/commands/completion.d.ts.map +1 -0
- package/dist/cli/commands/completion.js +810 -0
- package/dist/cli/commands/completion.js.map +1 -0
- package/dist/cli/commands/config/clear.d.ts +12 -0
- package/dist/cli/commands/config/clear.d.ts.map +1 -0
- package/dist/cli/commands/config/clear.js +35 -0
- package/dist/cli/commands/config/clear.js.map +1 -0
- package/dist/cli/commands/config/index.d.ts +15 -0
- package/dist/cli/commands/config/index.d.ts.map +1 -0
- package/dist/cli/commands/config/index.js +21 -0
- package/dist/cli/commands/config/index.js.map +1 -0
- package/dist/cli/commands/config/set.d.ts +41 -0
- package/dist/cli/commands/config/set.d.ts.map +1 -0
- package/dist/cli/commands/config/set.js +185 -0
- package/dist/cli/commands/config/set.js.map +1 -0
- package/dist/cli/commands/config/show.d.ts +12 -0
- package/dist/cli/commands/config/show.d.ts.map +1 -0
- package/dist/cli/commands/config/show.js +45 -0
- package/dist/cli/commands/config/show.js.map +1 -0
- package/dist/cli/commands/deploy/documents.d.ts +12 -0
- package/dist/cli/commands/deploy/documents.d.ts.map +1 -0
- package/dist/cli/commands/deploy/documents.js +217 -0
- package/dist/cli/commands/deploy/documents.js.map +1 -0
- package/dist/cli/commands/deploy/index.d.ts +14 -0
- package/dist/cli/commands/deploy/index.d.ts.map +1 -0
- package/dist/cli/commands/deploy/index.js +21 -0
- package/dist/cli/commands/deploy/index.js.map +1 -0
- package/dist/cli/commands/deploy/process-data-ingestion.d.ts +13 -0
- package/dist/cli/commands/deploy/process-data-ingestion.d.ts.map +1 -0
- package/dist/cli/commands/deploy/process-data-ingestion.js +226 -0
- package/dist/cli/commands/deploy/process-data-ingestion.js.map +1 -0
- package/dist/cli/commands/deploy/use-case.d.ts +9 -0
- package/dist/cli/commands/deploy/use-case.d.ts.map +1 -0
- package/dist/cli/commands/deploy/use-case.js +212 -0
- package/dist/cli/commands/deploy/use-case.js.map +1 -0
- package/dist/cli/commands/get/execution.d.ts +9 -0
- package/dist/cli/commands/get/execution.d.ts.map +1 -0
- package/dist/cli/commands/get/execution.js +159 -0
- package/dist/cli/commands/get/execution.js.map +1 -0
- package/dist/cli/commands/get/index.d.ts +13 -0
- package/dist/cli/commands/get/index.d.ts.map +1 -0
- package/dist/cli/commands/get/index.js +20 -0
- package/dist/cli/commands/get/index.js.map +1 -0
- package/dist/cli/commands/get/skills.d.ts +15 -0
- package/dist/cli/commands/get/skills.d.ts.map +1 -0
- package/dist/cli/commands/get/skills.js +135 -0
- package/dist/cli/commands/get/skills.js.map +1 -0
- package/dist/cli/commands/get/use-case.d.ts +9 -0
- package/dist/cli/commands/get/use-case.d.ts.map +1 -0
- package/dist/cli/commands/get/use-case.js +186 -0
- package/dist/cli/commands/get/use-case.js.map +1 -0
- package/dist/cli/commands/init.d.ts +14 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +347 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/integration/delete.d.ts +13 -0
- package/dist/cli/commands/integration/delete.d.ts.map +1 -0
- package/dist/cli/commands/integration/delete.js +140 -0
- package/dist/cli/commands/integration/delete.js.map +1 -0
- package/dist/cli/commands/integration/index.d.ts +13 -0
- package/dist/cli/commands/integration/index.d.ts.map +1 -0
- package/dist/cli/commands/integration/index.js +20 -0
- package/dist/cli/commands/integration/index.js.map +1 -0
- package/dist/cli/commands/integration/list.d.ts +13 -0
- package/dist/cli/commands/integration/list.d.ts.map +1 -0
- package/dist/cli/commands/integration/list.js +129 -0
- package/dist/cli/commands/integration/list.js.map +1 -0
- package/dist/cli/commands/integration/set.d.ts +13 -0
- package/dist/cli/commands/integration/set.d.ts.map +1 -0
- package/dist/cli/commands/integration/set.js +253 -0
- package/dist/cli/commands/integration/set.js.map +1 -0
- package/dist/cli/commands/list/executions.d.ts +12 -0
- package/dist/cli/commands/list/executions.d.ts.map +1 -0
- package/dist/cli/commands/list/executions.js +168 -0
- package/dist/cli/commands/list/executions.js.map +1 -0
- package/dist/cli/commands/list/index.d.ts +11 -0
- package/dist/cli/commands/list/index.d.ts.map +1 -0
- package/dist/cli/commands/list/index.js +14 -0
- package/dist/cli/commands/list/index.js.map +1 -0
- package/dist/cli/commands/logout.d.ts +12 -0
- package/dist/cli/commands/logout.d.ts.map +1 -0
- package/dist/cli/commands/logout.js +58 -0
- package/dist/cli/commands/logout.js.map +1 -0
- package/dist/cli/commands/project/create.d.ts +8 -0
- package/dist/cli/commands/project/create.d.ts.map +1 -0
- package/dist/cli/commands/project/create.js +109 -0
- package/dist/cli/commands/project/create.js.map +1 -0
- package/dist/cli/commands/project/index.d.ts +12 -0
- package/dist/cli/commands/project/index.d.ts.map +1 -0
- package/dist/cli/commands/project/index.js +15 -0
- package/dist/cli/commands/project/index.js.map +1 -0
- package/dist/cli/commands/publish.d.ts +12 -0
- package/dist/cli/commands/publish.d.ts.map +1 -0
- package/dist/cli/commands/publish.js +152 -0
- package/dist/cli/commands/publish.js.map +1 -0
- package/dist/cli/commands/redeploy.d.ts +11 -0
- package/dist/cli/commands/redeploy.d.ts.map +1 -0
- package/dist/cli/commands/redeploy.js +166 -0
- package/dist/cli/commands/redeploy.js.map +1 -0
- package/dist/cli/commands/status.d.ts +63 -0
- package/dist/cli/commands/status.d.ts.map +1 -0
- package/dist/cli/commands/status.js +290 -0
- package/dist/cli/commands/status.js.map +1 -0
- package/dist/cli/commands/trigger.d.ts +8 -0
- package/dist/cli/commands/trigger.d.ts.map +1 -0
- package/dist/cli/commands/trigger.js +247 -0
- package/dist/cli/commands/trigger.js.map +1 -0
- package/dist/cli/commands/use.d.ts +13 -0
- package/dist/cli/commands/use.d.ts.map +1 -0
- package/dist/cli/commands/use.js +92 -0
- package/dist/cli/commands/use.js.map +1 -0
- package/dist/cli/commands/verify/index.d.ts +13 -0
- package/dist/cli/commands/verify/index.d.ts.map +1 -0
- package/dist/cli/commands/verify/index.js +18 -0
- package/dist/cli/commands/verify/index.js.map +1 -0
- package/dist/cli/commands/verify/use-case.d.ts +23 -0
- package/dist/cli/commands/verify/use-case.d.ts.map +1 -0
- package/dist/cli/commands/verify/use-case.js +94 -0
- package/dist/cli/commands/verify/use-case.js.map +1 -0
- package/dist/cli/commands/verify/workflow.d.ts +22 -0
- package/dist/cli/commands/verify/workflow.d.ts.map +1 -0
- package/dist/cli/commands/verify/workflow.js +82 -0
- package/dist/cli/commands/verify/workflow.js.map +1 -0
- package/dist/cli/commands/whoami.d.ts +13 -0
- package/dist/cli/commands/whoami.d.ts.map +1 -0
- package/dist/cli/commands/whoami.js +126 -0
- package/dist/cli/commands/whoami.js.map +1 -0
- package/dist/cli/index.d.ts +24 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +90 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/templates/claude-md-template.d.ts +12 -0
- package/dist/cli/templates/claude-md-template.d.ts.map +1 -0
- package/dist/cli/templates/claude-md-template.js +162 -0
- package/dist/cli/templates/claude-md-template.js.map +1 -0
- package/dist/cli/templates/config-template.d.ts +18 -0
- package/dist/cli/templates/config-template.d.ts.map +1 -0
- package/dist/cli/templates/config-template.js +350 -0
- package/dist/cli/templates/config-template.js.map +1 -0
- package/dist/cli/templates/skill-templates.d.ts +24 -0
- package/dist/cli/templates/skill-templates.d.ts.map +1 -0
- package/dist/cli/templates/skill-templates.js +117 -0
- package/dist/cli/templates/skill-templates.js.map +1 -0
- package/dist/cli/templates/slug.d.ts +9 -0
- package/dist/cli/templates/slug.d.ts.map +1 -0
- package/dist/cli/templates/slug.js +17 -0
- package/dist/cli/templates/slug.js.map +1 -0
- package/dist/cli/templates/workflow-templates.d.ts +693 -0
- package/dist/cli/templates/workflow-templates.d.ts.map +1 -0
- package/dist/cli/templates/workflow-templates.js +516 -0
- package/dist/cli/templates/workflow-templates.js.map +1 -0
- package/dist/cli/utils/output.d.ts +65 -0
- package/dist/cli/utils/output.d.ts.map +1 -0
- package/dist/cli/utils/output.js +188 -0
- package/dist/cli/utils/output.js.map +1 -0
- package/dist/cli/utils/validation-output.d.ts +21 -0
- package/dist/cli/utils/validation-output.d.ts.map +1 -0
- package/dist/cli/utils/validation-output.js +204 -0
- package/dist/cli/utils/validation-output.js.map +1 -0
- package/dist/data/integration-fields.d.ts +27 -0
- package/dist/data/integration-fields.d.ts.map +1 -0
- package/dist/data/integration-fields.js +361 -0
- package/dist/data/integration-fields.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/dist/types/process-types.d.ts +740 -0
- package/dist/types/process-types.d.ts.map +1 -0
- package/dist/types/process-types.js +22 -0
- package/dist/types/process-types.js.map +1 -0
- package/dist/utils/config.d.ts +127 -0
- package/dist/utils/config.d.ts.map +1 -0
- package/dist/utils/config.js +315 -0
- package/dist/utils/config.js.map +1 -0
- package/dist/utils/data-ingestion-deploy-client.d.ts +53 -0
- package/dist/utils/data-ingestion-deploy-client.d.ts.map +1 -0
- package/dist/utils/data-ingestion-deploy-client.js +63 -0
- package/dist/utils/data-ingestion-deploy-client.js.map +1 -0
- package/dist/utils/data-ingestion-deployer.d.ts +78 -0
- package/dist/utils/data-ingestion-deployer.d.ts.map +1 -0
- package/dist/utils/data-ingestion-deployer.js +119 -0
- package/dist/utils/data-ingestion-deployer.js.map +1 -0
- package/dist/utils/deploy-client.d.ts +55 -0
- package/dist/utils/deploy-client.d.ts.map +1 -0
- package/dist/utils/deploy-client.js +73 -0
- package/dist/utils/deploy-client.js.map +1 -0
- package/dist/utils/deployment-archiver.d.ts +110 -0
- package/dist/utils/deployment-archiver.d.ts.map +1 -0
- package/dist/utils/deployment-archiver.js +158 -0
- package/dist/utils/deployment-archiver.js.map +1 -0
- package/dist/utils/document-deploy-client.d.ts +41 -0
- package/dist/utils/document-deploy-client.d.ts.map +1 -0
- package/dist/utils/document-deploy-client.js +46 -0
- package/dist/utils/document-deploy-client.js.map +1 -0
- package/dist/utils/encryption.d.ts +85 -0
- package/dist/utils/encryption.d.ts.map +1 -0
- package/dist/utils/encryption.js +162 -0
- package/dist/utils/encryption.js.map +1 -0
- package/dist/utils/execution-client.d.ts +71 -0
- package/dist/utils/execution-client.d.ts.map +1 -0
- package/dist/utils/execution-client.js +56 -0
- package/dist/utils/execution-client.js.map +1 -0
- package/dist/utils/integration-client.d.ts +134 -0
- package/dist/utils/integration-client.d.ts.map +1 -0
- package/dist/utils/integration-client.js +109 -0
- package/dist/utils/integration-client.js.map +1 -0
- package/dist/utils/list-executions-client.d.ts +47 -0
- package/dist/utils/list-executions-client.d.ts.map +1 -0
- package/dist/utils/list-executions-client.js +50 -0
- package/dist/utils/list-executions-client.js.map +1 -0
- package/dist/utils/metadata-client.d.ts +90 -0
- package/dist/utils/metadata-client.d.ts.map +1 -0
- package/dist/utils/metadata-client.js +66 -0
- package/dist/utils/metadata-client.js.map +1 -0
- package/dist/utils/project-client.d.ts +70 -0
- package/dist/utils/project-client.d.ts.map +1 -0
- package/dist/utils/project-client.js +63 -0
- package/dist/utils/project-client.js.map +1 -0
- package/dist/utils/project-json.d.ts +71 -0
- package/dist/utils/project-json.d.ts.map +1 -0
- package/dist/utils/project-json.js +129 -0
- package/dist/utils/project-json.js.map +1 -0
- package/dist/utils/publish-client.d.ts +53 -0
- package/dist/utils/publish-client.d.ts.map +1 -0
- package/dist/utils/publish-client.js +64 -0
- package/dist/utils/publish-client.js.map +1 -0
- package/dist/utils/redeploy-client.d.ts +39 -0
- package/dist/utils/redeploy-client.d.ts.map +1 -0
- package/dist/utils/redeploy-client.js +51 -0
- package/dist/utils/redeploy-client.js.map +1 -0
- package/dist/utils/skill-parser.d.ts +52 -0
- package/dist/utils/skill-parser.d.ts.map +1 -0
- package/dist/utils/skill-parser.js +127 -0
- package/dist/utils/skill-parser.js.map +1 -0
- package/dist/utils/skills-client.d.ts +39 -0
- package/dist/utils/skills-client.d.ts.map +1 -0
- package/dist/utils/skills-client.js +32 -0
- package/dist/utils/skills-client.js.map +1 -0
- package/dist/utils/trigger-client.d.ts +78 -0
- package/dist/utils/trigger-client.d.ts.map +1 -0
- package/dist/utils/trigger-client.js +81 -0
- package/dist/utils/trigger-client.js.map +1 -0
- package/dist/utils/use-case-deployer.d.ts +93 -0
- package/dist/utils/use-case-deployer.d.ts.map +1 -0
- package/dist/utils/use-case-deployer.js +270 -0
- package/dist/utils/use-case-deployer.js.map +1 -0
- package/dist/utils/version-manager.d.ts +63 -0
- package/dist/utils/version-manager.d.ts.map +1 -0
- package/dist/utils/version-manager.js +91 -0
- package/dist/utils/version-manager.js.map +1 -0
- package/dist/utils/workflow-encoding.d.ts +26 -0
- package/dist/utils/workflow-encoding.d.ts.map +1 -0
- package/dist/utils/workflow-encoding.js +41 -0
- package/dist/utils/workflow-encoding.js.map +1 -0
- package/dist/validation/fixer.d.ts +56 -0
- package/dist/validation/fixer.d.ts.map +1 -0
- package/dist/validation/fixer.js +168 -0
- package/dist/validation/fixer.js.map +1 -0
- package/dist/validation/rules/codika-init-required.d.ts +18 -0
- package/dist/validation/rules/codika-init-required.d.ts.map +1 -0
- package/dist/validation/rules/codika-init-required.js +70 -0
- package/dist/validation/rules/codika-init-required.js.map +1 -0
- package/dist/validation/rules/codika-submit-result.d.ts +22 -0
- package/dist/validation/rules/codika-submit-result.d.ts.map +1 -0
- package/dist/validation/rules/codika-submit-result.js +144 -0
- package/dist/validation/rules/codika-submit-result.js.map +1 -0
- package/dist/validation/rules/error-branch-required.d.ts +24 -0
- package/dist/validation/rules/error-branch-required.d.ts.map +1 -0
- package/dist/validation/rules/error-branch-required.js +103 -0
- package/dist/validation/rules/error-branch-required.js.map +1 -0
- package/dist/validation/rules/index.d.ts +18 -0
- package/dist/validation/rules/index.d.ts.map +1 -0
- package/dist/validation/rules/index.js +28 -0
- package/dist/validation/rules/index.js.map +1 -0
- package/dist/validation/rules/schedule-webhook-convergence.d.ts +24 -0
- package/dist/validation/rules/schedule-webhook-convergence.d.ts.map +1 -0
- package/dist/validation/rules/schedule-webhook-convergence.js +129 -0
- package/dist/validation/rules/schedule-webhook-convergence.js.map +1 -0
- package/dist/validation/rules/subworkflow-min-params.d.ts +21 -0
- package/dist/validation/rules/subworkflow-min-params.d.ts.map +1 -0
- package/dist/validation/rules/subworkflow-min-params.js +84 -0
- package/dist/validation/rules/subworkflow-min-params.js.map +1 -0
- package/dist/validation/runner.d.ts +43 -0
- package/dist/validation/runner.d.ts.map +1 -0
- package/dist/validation/runner.js +335 -0
- package/dist/validation/runner.js.map +1 -0
- package/dist/validation/types.d.ts +155 -0
- package/dist/validation/types.d.ts.map +1 -0
- package/dist/validation/types.js +8 -0
- package/dist/validation/types.js.map +1 -0
- package/dist/validation/use-case-scripts/calledby-consistency.d.ts +23 -0
- package/dist/validation/use-case-scripts/calledby-consistency.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/calledby-consistency.js +236 -0
- package/dist/validation/use-case-scripts/calledby-consistency.js.map +1 -0
- package/dist/validation/use-case-scripts/config-exports.d.ts +17 -0
- package/dist/validation/use-case-scripts/config-exports.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/config-exports.js +93 -0
- package/dist/validation/use-case-scripts/config-exports.js.map +1 -0
- package/dist/validation/use-case-scripts/custom-integration-schema.d.ts +21 -0
- package/dist/validation/use-case-scripts/custom-integration-schema.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/custom-integration-schema.js +378 -0
- package/dist/validation/use-case-scripts/custom-integration-schema.js.map +1 -0
- package/dist/validation/use-case-scripts/index.d.ts +27 -0
- package/dist/validation/use-case-scripts/index.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/index.js +52 -0
- package/dist/validation/use-case-scripts/index.js.map +1 -0
- package/dist/validation/use-case-scripts/integration-inheritance.d.ts +35 -0
- package/dist/validation/use-case-scripts/integration-inheritance.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/integration-inheritance.js +348 -0
- package/dist/validation/use-case-scripts/integration-inheritance.js.map +1 -0
- package/dist/validation/use-case-scripts/schema-types.d.ts +21 -0
- package/dist/validation/use-case-scripts/schema-types.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/schema-types.js +134 -0
- package/dist/validation/use-case-scripts/schema-types.js.map +1 -0
- package/dist/validation/use-case-scripts/skill-consistency.d.ts +21 -0
- package/dist/validation/use-case-scripts/skill-consistency.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/skill-consistency.js +180 -0
- package/dist/validation/use-case-scripts/skill-consistency.js.map +1 -0
- package/dist/validation/use-case-scripts/subworkflow-references.d.ts +22 -0
- package/dist/validation/use-case-scripts/subworkflow-references.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/subworkflow-references.js +139 -0
- package/dist/validation/use-case-scripts/subworkflow-references.js.map +1 -0
- package/dist/validation/use-case-scripts/trigger-type-consistency.d.ts +25 -0
- package/dist/validation/use-case-scripts/trigger-type-consistency.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/trigger-type-consistency.js +265 -0
- package/dist/validation/use-case-scripts/trigger-type-consistency.js.map +1 -0
- package/dist/validation/use-case-scripts/trigger-types.d.ts +20 -0
- package/dist/validation/use-case-scripts/trigger-types.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/trigger-types.js +177 -0
- package/dist/validation/use-case-scripts/trigger-types.js.map +1 -0
- package/dist/validation/use-case-scripts/triggers-required.d.ts +23 -0
- package/dist/validation/use-case-scripts/triggers-required.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/triggers-required.js +111 -0
- package/dist/validation/use-case-scripts/triggers-required.js.map +1 -0
- package/dist/validation/use-case-scripts/webhook-path-consistency.d.ts +28 -0
- package/dist/validation/use-case-scripts/webhook-path-consistency.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/webhook-path-consistency.js +288 -0
- package/dist/validation/use-case-scripts/webhook-path-consistency.js.map +1 -0
- package/dist/validation/use-case-scripts/workflow-imports.d.ts +16 -0
- package/dist/validation/use-case-scripts/workflow-imports.d.ts.map +1 -0
- package/dist/validation/use-case-scripts/workflow-imports.js +206 -0
- package/dist/validation/use-case-scripts/workflow-imports.js.map +1 -0
- package/dist/validation/workflow-scripts/credential-placeholders.d.ts +21 -0
- package/dist/validation/workflow-scripts/credential-placeholders.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/credential-placeholders.js +278 -0
- package/dist/validation/workflow-scripts/credential-placeholders.js.map +1 -0
- package/dist/validation/workflow-scripts/db-always-output.d.ts +16 -0
- package/dist/validation/workflow-scripts/db-always-output.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/db-always-output.js +95 -0
- package/dist/validation/workflow-scripts/db-always-output.js.map +1 -0
- package/dist/validation/workflow-scripts/exec-workflow-wait.d.ts +15 -0
- package/dist/validation/workflow-scripts/exec-workflow-wait.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/exec-workflow-wait.js +85 -0
- package/dist/validation/workflow-scripts/exec-workflow-wait.js.map +1 -0
- package/dist/validation/workflow-scripts/index.d.ts +31 -0
- package/dist/validation/workflow-scripts/index.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/index.js +58 -0
- package/dist/validation/workflow-scripts/index.js.map +1 -0
- package/dist/validation/workflow-scripts/instparm-quoting.d.ts +21 -0
- package/dist/validation/workflow-scripts/instparm-quoting.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/instparm-quoting.js +59 -0
- package/dist/validation/workflow-scripts/instparm-quoting.js.map +1 -0
- package/dist/validation/workflow-scripts/llm-model-id.d.ts +17 -0
- package/dist/validation/workflow-scripts/llm-model-id.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/llm-model-id.js +171 -0
- package/dist/validation/workflow-scripts/llm-model-id.js.map +1 -0
- package/dist/validation/workflow-scripts/llm-output-access.d.ts +23 -0
- package/dist/validation/workflow-scripts/llm-output-access.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/llm-output-access.js +274 -0
- package/dist/validation/workflow-scripts/llm-output-access.js.map +1 -0
- package/dist/validation/workflow-scripts/merge-before-terminal.d.ts +20 -0
- package/dist/validation/workflow-scripts/merge-before-terminal.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/merge-before-terminal.js +87 -0
- package/dist/validation/workflow-scripts/merge-before-terminal.js.map +1 -0
- package/dist/validation/workflow-scripts/placeholder-syntax.d.ts +29 -0
- package/dist/validation/workflow-scripts/placeholder-syntax.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/placeholder-syntax.js +154 -0
- package/dist/validation/workflow-scripts/placeholder-syntax.js.map +1 -0
- package/dist/validation/workflow-scripts/retry-backoff.d.ts +16 -0
- package/dist/validation/workflow-scripts/retry-backoff.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/retry-backoff.js +197 -0
- package/dist/validation/workflow-scripts/retry-backoff.js.map +1 -0
- package/dist/validation/workflow-scripts/webhook-id.d.ts +17 -0
- package/dist/validation/workflow-scripts/webhook-id.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/webhook-id.js +79 -0
- package/dist/validation/workflow-scripts/webhook-id.js.map +1 -0
- package/dist/validation/workflow-scripts/workflow-format.d.ts +16 -0
- package/dist/validation/workflow-scripts/workflow-format.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/workflow-format.js +51 -0
- package/dist/validation/workflow-scripts/workflow-format.js.map +1 -0
- package/dist/validation/workflow-scripts/workflow-sanitization.d.ts +21 -0
- package/dist/validation/workflow-scripts/workflow-sanitization.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/workflow-sanitization.js +78 -0
- package/dist/validation/workflow-scripts/workflow-sanitization.js.map +1 -0
- package/dist/validation/workflow-scripts/workflow-settings.d.ts +19 -0
- package/dist/validation/workflow-scripts/workflow-settings.d.ts.map +1 -0
- package/dist/validation/workflow-scripts/workflow-settings.js +131 -0
- package/dist/validation/workflow-scripts/workflow-settings.js.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,693 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workflow Template Generators
|
|
3
|
+
*
|
|
4
|
+
* Generate n8n workflow JSON objects for the init command.
|
|
5
|
+
* Each generator returns a JSON-serializable object following Codika mandatory patterns.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Generate an HTTP-triggered main workflow that calls a sub-workflow.
|
|
9
|
+
*
|
|
10
|
+
* Flow: Webhook → Codika Init → Parse Input → IF Valid → Call Sub-Workflow → Format Result → Submit Result
|
|
11
|
+
* → Report Error
|
|
12
|
+
* Call Sub-Workflow (error) → Report Error
|
|
13
|
+
*/
|
|
14
|
+
export declare function generateMainWorkflow(slug: string): {
|
|
15
|
+
name: string;
|
|
16
|
+
nodes: ({
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
type: string;
|
|
20
|
+
position: number[];
|
|
21
|
+
parameters: {
|
|
22
|
+
httpMethod: string;
|
|
23
|
+
path: string;
|
|
24
|
+
responseMode: string;
|
|
25
|
+
options: {
|
|
26
|
+
waitForSubWorkflow?: undefined;
|
|
27
|
+
};
|
|
28
|
+
resource?: undefined;
|
|
29
|
+
operation?: undefined;
|
|
30
|
+
memberSecret?: undefined;
|
|
31
|
+
organizationId?: undefined;
|
|
32
|
+
userId?: undefined;
|
|
33
|
+
processInstanceId?: undefined;
|
|
34
|
+
workflowId?: undefined;
|
|
35
|
+
triggerType?: undefined;
|
|
36
|
+
jsCode?: undefined;
|
|
37
|
+
conditions?: undefined;
|
|
38
|
+
workflowInputs?: undefined;
|
|
39
|
+
resultData?: undefined;
|
|
40
|
+
errorMessage?: undefined;
|
|
41
|
+
errorType?: undefined;
|
|
42
|
+
};
|
|
43
|
+
typeVersion: number;
|
|
44
|
+
webhookId: string;
|
|
45
|
+
onError?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
type: string;
|
|
50
|
+
position: number[];
|
|
51
|
+
parameters: {
|
|
52
|
+
resource: string;
|
|
53
|
+
operation: string;
|
|
54
|
+
memberSecret: string;
|
|
55
|
+
organizationId: string;
|
|
56
|
+
userId: string;
|
|
57
|
+
processInstanceId: string;
|
|
58
|
+
workflowId: string;
|
|
59
|
+
triggerType: string;
|
|
60
|
+
httpMethod?: undefined;
|
|
61
|
+
path?: undefined;
|
|
62
|
+
responseMode?: undefined;
|
|
63
|
+
options?: undefined;
|
|
64
|
+
jsCode?: undefined;
|
|
65
|
+
conditions?: undefined;
|
|
66
|
+
workflowInputs?: undefined;
|
|
67
|
+
resultData?: undefined;
|
|
68
|
+
errorMessage?: undefined;
|
|
69
|
+
errorType?: undefined;
|
|
70
|
+
};
|
|
71
|
+
typeVersion: number;
|
|
72
|
+
webhookId?: undefined;
|
|
73
|
+
onError?: undefined;
|
|
74
|
+
} | {
|
|
75
|
+
id: string;
|
|
76
|
+
name: string;
|
|
77
|
+
type: string;
|
|
78
|
+
position: number[];
|
|
79
|
+
parameters: {
|
|
80
|
+
jsCode: string;
|
|
81
|
+
httpMethod?: undefined;
|
|
82
|
+
path?: undefined;
|
|
83
|
+
responseMode?: undefined;
|
|
84
|
+
options?: undefined;
|
|
85
|
+
resource?: undefined;
|
|
86
|
+
operation?: undefined;
|
|
87
|
+
memberSecret?: undefined;
|
|
88
|
+
organizationId?: undefined;
|
|
89
|
+
userId?: undefined;
|
|
90
|
+
processInstanceId?: undefined;
|
|
91
|
+
workflowId?: undefined;
|
|
92
|
+
triggerType?: undefined;
|
|
93
|
+
conditions?: undefined;
|
|
94
|
+
workflowInputs?: undefined;
|
|
95
|
+
resultData?: undefined;
|
|
96
|
+
errorMessage?: undefined;
|
|
97
|
+
errorType?: undefined;
|
|
98
|
+
};
|
|
99
|
+
typeVersion: number;
|
|
100
|
+
webhookId?: undefined;
|
|
101
|
+
onError?: undefined;
|
|
102
|
+
} | {
|
|
103
|
+
id: string;
|
|
104
|
+
name: string;
|
|
105
|
+
type: string;
|
|
106
|
+
position: number[];
|
|
107
|
+
parameters: {
|
|
108
|
+
conditions: {
|
|
109
|
+
options: {
|
|
110
|
+
caseSensitive: boolean;
|
|
111
|
+
leftValue: string;
|
|
112
|
+
typeValidation: string;
|
|
113
|
+
};
|
|
114
|
+
conditions: {
|
|
115
|
+
id: string;
|
|
116
|
+
leftValue: string;
|
|
117
|
+
rightValue: boolean;
|
|
118
|
+
operator: {
|
|
119
|
+
type: string;
|
|
120
|
+
operation: string;
|
|
121
|
+
};
|
|
122
|
+
}[];
|
|
123
|
+
combinator: string;
|
|
124
|
+
};
|
|
125
|
+
options: {
|
|
126
|
+
waitForSubWorkflow?: undefined;
|
|
127
|
+
};
|
|
128
|
+
httpMethod?: undefined;
|
|
129
|
+
path?: undefined;
|
|
130
|
+
responseMode?: undefined;
|
|
131
|
+
resource?: undefined;
|
|
132
|
+
operation?: undefined;
|
|
133
|
+
memberSecret?: undefined;
|
|
134
|
+
organizationId?: undefined;
|
|
135
|
+
userId?: undefined;
|
|
136
|
+
processInstanceId?: undefined;
|
|
137
|
+
workflowId?: undefined;
|
|
138
|
+
triggerType?: undefined;
|
|
139
|
+
jsCode?: undefined;
|
|
140
|
+
workflowInputs?: undefined;
|
|
141
|
+
resultData?: undefined;
|
|
142
|
+
errorMessage?: undefined;
|
|
143
|
+
errorType?: undefined;
|
|
144
|
+
};
|
|
145
|
+
typeVersion: number;
|
|
146
|
+
webhookId?: undefined;
|
|
147
|
+
onError?: undefined;
|
|
148
|
+
} | {
|
|
149
|
+
id: string;
|
|
150
|
+
name: string;
|
|
151
|
+
type: string;
|
|
152
|
+
position: number[];
|
|
153
|
+
onError: string;
|
|
154
|
+
parameters: {
|
|
155
|
+
workflowId: {
|
|
156
|
+
__rl: boolean;
|
|
157
|
+
mode: string;
|
|
158
|
+
value: string;
|
|
159
|
+
};
|
|
160
|
+
workflowInputs: {
|
|
161
|
+
mappingMode: string;
|
|
162
|
+
value: {
|
|
163
|
+
text: string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
options: {
|
|
167
|
+
waitForSubWorkflow: boolean;
|
|
168
|
+
};
|
|
169
|
+
httpMethod?: undefined;
|
|
170
|
+
path?: undefined;
|
|
171
|
+
responseMode?: undefined;
|
|
172
|
+
resource?: undefined;
|
|
173
|
+
operation?: undefined;
|
|
174
|
+
memberSecret?: undefined;
|
|
175
|
+
organizationId?: undefined;
|
|
176
|
+
userId?: undefined;
|
|
177
|
+
processInstanceId?: undefined;
|
|
178
|
+
triggerType?: undefined;
|
|
179
|
+
jsCode?: undefined;
|
|
180
|
+
conditions?: undefined;
|
|
181
|
+
resultData?: undefined;
|
|
182
|
+
errorMessage?: undefined;
|
|
183
|
+
errorType?: undefined;
|
|
184
|
+
};
|
|
185
|
+
typeVersion: number;
|
|
186
|
+
webhookId?: undefined;
|
|
187
|
+
} | {
|
|
188
|
+
id: string;
|
|
189
|
+
name: string;
|
|
190
|
+
type: string;
|
|
191
|
+
position: number[];
|
|
192
|
+
parameters: {
|
|
193
|
+
resource: string;
|
|
194
|
+
operation: string;
|
|
195
|
+
resultData: string;
|
|
196
|
+
httpMethod?: undefined;
|
|
197
|
+
path?: undefined;
|
|
198
|
+
responseMode?: undefined;
|
|
199
|
+
options?: undefined;
|
|
200
|
+
memberSecret?: undefined;
|
|
201
|
+
organizationId?: undefined;
|
|
202
|
+
userId?: undefined;
|
|
203
|
+
processInstanceId?: undefined;
|
|
204
|
+
workflowId?: undefined;
|
|
205
|
+
triggerType?: undefined;
|
|
206
|
+
jsCode?: undefined;
|
|
207
|
+
conditions?: undefined;
|
|
208
|
+
workflowInputs?: undefined;
|
|
209
|
+
errorMessage?: undefined;
|
|
210
|
+
errorType?: undefined;
|
|
211
|
+
};
|
|
212
|
+
typeVersion: number;
|
|
213
|
+
webhookId?: undefined;
|
|
214
|
+
onError?: undefined;
|
|
215
|
+
} | {
|
|
216
|
+
id: string;
|
|
217
|
+
name: string;
|
|
218
|
+
type: string;
|
|
219
|
+
position: number[];
|
|
220
|
+
parameters: {
|
|
221
|
+
resource: string;
|
|
222
|
+
operation: string;
|
|
223
|
+
errorMessage: string;
|
|
224
|
+
errorType: string;
|
|
225
|
+
httpMethod?: undefined;
|
|
226
|
+
path?: undefined;
|
|
227
|
+
responseMode?: undefined;
|
|
228
|
+
options?: undefined;
|
|
229
|
+
memberSecret?: undefined;
|
|
230
|
+
organizationId?: undefined;
|
|
231
|
+
userId?: undefined;
|
|
232
|
+
processInstanceId?: undefined;
|
|
233
|
+
workflowId?: undefined;
|
|
234
|
+
triggerType?: undefined;
|
|
235
|
+
jsCode?: undefined;
|
|
236
|
+
conditions?: undefined;
|
|
237
|
+
workflowInputs?: undefined;
|
|
238
|
+
resultData?: undefined;
|
|
239
|
+
};
|
|
240
|
+
typeVersion: number;
|
|
241
|
+
webhookId?: undefined;
|
|
242
|
+
onError?: undefined;
|
|
243
|
+
})[];
|
|
244
|
+
connections: {
|
|
245
|
+
'Webhook Trigger': {
|
|
246
|
+
main: {
|
|
247
|
+
node: string;
|
|
248
|
+
type: string;
|
|
249
|
+
index: number;
|
|
250
|
+
}[][];
|
|
251
|
+
};
|
|
252
|
+
'Codika Init': {
|
|
253
|
+
main: {
|
|
254
|
+
node: string;
|
|
255
|
+
type: string;
|
|
256
|
+
index: number;
|
|
257
|
+
}[][];
|
|
258
|
+
};
|
|
259
|
+
'Parse Input': {
|
|
260
|
+
main: {
|
|
261
|
+
node: string;
|
|
262
|
+
type: string;
|
|
263
|
+
index: number;
|
|
264
|
+
}[][];
|
|
265
|
+
};
|
|
266
|
+
'Valid Input?': {
|
|
267
|
+
main: {
|
|
268
|
+
node: string;
|
|
269
|
+
type: string;
|
|
270
|
+
index: number;
|
|
271
|
+
}[][];
|
|
272
|
+
};
|
|
273
|
+
'Call Text Processor': {
|
|
274
|
+
main: {
|
|
275
|
+
node: string;
|
|
276
|
+
type: string;
|
|
277
|
+
index: number;
|
|
278
|
+
}[][];
|
|
279
|
+
};
|
|
280
|
+
'Format Result': {
|
|
281
|
+
main: {
|
|
282
|
+
node: string;
|
|
283
|
+
type: string;
|
|
284
|
+
index: number;
|
|
285
|
+
}[][];
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
settings: {
|
|
289
|
+
executionOrder: string;
|
|
290
|
+
errorWorkflow: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Generate a schedule-triggered workflow with manual webhook convergence.
|
|
295
|
+
*
|
|
296
|
+
* Flow: Schedule Trigger ──→ Codika Init → Generate Report → IF Success → Submit Result
|
|
297
|
+
* Manual Webhook ──↗ → Report Error
|
|
298
|
+
*/
|
|
299
|
+
export declare function generateScheduledWorkflow(slug: string): {
|
|
300
|
+
name: string;
|
|
301
|
+
nodes: ({
|
|
302
|
+
id: string;
|
|
303
|
+
name: string;
|
|
304
|
+
type: string;
|
|
305
|
+
position: number[];
|
|
306
|
+
parameters: {
|
|
307
|
+
rule: {
|
|
308
|
+
interval: {
|
|
309
|
+
field: string;
|
|
310
|
+
expression: string;
|
|
311
|
+
}[];
|
|
312
|
+
};
|
|
313
|
+
httpMethod?: undefined;
|
|
314
|
+
path?: undefined;
|
|
315
|
+
responseMode?: undefined;
|
|
316
|
+
options?: undefined;
|
|
317
|
+
resource?: undefined;
|
|
318
|
+
operation?: undefined;
|
|
319
|
+
memberSecret?: undefined;
|
|
320
|
+
organizationId?: undefined;
|
|
321
|
+
userId?: undefined;
|
|
322
|
+
processInstanceId?: undefined;
|
|
323
|
+
workflowId?: undefined;
|
|
324
|
+
triggerType?: undefined;
|
|
325
|
+
jsCode?: undefined;
|
|
326
|
+
conditions?: undefined;
|
|
327
|
+
resultData?: undefined;
|
|
328
|
+
errorMessage?: undefined;
|
|
329
|
+
errorType?: undefined;
|
|
330
|
+
};
|
|
331
|
+
typeVersion: number;
|
|
332
|
+
webhookId?: undefined;
|
|
333
|
+
} | {
|
|
334
|
+
id: string;
|
|
335
|
+
name: string;
|
|
336
|
+
type: string;
|
|
337
|
+
position: number[];
|
|
338
|
+
parameters: {
|
|
339
|
+
httpMethod: string;
|
|
340
|
+
path: string;
|
|
341
|
+
responseMode: string;
|
|
342
|
+
options: {};
|
|
343
|
+
rule?: undefined;
|
|
344
|
+
resource?: undefined;
|
|
345
|
+
operation?: undefined;
|
|
346
|
+
memberSecret?: undefined;
|
|
347
|
+
organizationId?: undefined;
|
|
348
|
+
userId?: undefined;
|
|
349
|
+
processInstanceId?: undefined;
|
|
350
|
+
workflowId?: undefined;
|
|
351
|
+
triggerType?: undefined;
|
|
352
|
+
jsCode?: undefined;
|
|
353
|
+
conditions?: undefined;
|
|
354
|
+
resultData?: undefined;
|
|
355
|
+
errorMessage?: undefined;
|
|
356
|
+
errorType?: undefined;
|
|
357
|
+
};
|
|
358
|
+
typeVersion: number;
|
|
359
|
+
webhookId: string;
|
|
360
|
+
} | {
|
|
361
|
+
id: string;
|
|
362
|
+
name: string;
|
|
363
|
+
type: string;
|
|
364
|
+
position: number[];
|
|
365
|
+
parameters: {
|
|
366
|
+
resource: string;
|
|
367
|
+
operation: string;
|
|
368
|
+
memberSecret: string;
|
|
369
|
+
organizationId: string;
|
|
370
|
+
userId: string;
|
|
371
|
+
processInstanceId: string;
|
|
372
|
+
workflowId: string;
|
|
373
|
+
triggerType: string;
|
|
374
|
+
rule?: undefined;
|
|
375
|
+
httpMethod?: undefined;
|
|
376
|
+
path?: undefined;
|
|
377
|
+
responseMode?: undefined;
|
|
378
|
+
options?: undefined;
|
|
379
|
+
jsCode?: undefined;
|
|
380
|
+
conditions?: undefined;
|
|
381
|
+
resultData?: undefined;
|
|
382
|
+
errorMessage?: undefined;
|
|
383
|
+
errorType?: undefined;
|
|
384
|
+
};
|
|
385
|
+
typeVersion: number;
|
|
386
|
+
webhookId?: undefined;
|
|
387
|
+
} | {
|
|
388
|
+
id: string;
|
|
389
|
+
name: string;
|
|
390
|
+
type: string;
|
|
391
|
+
position: number[];
|
|
392
|
+
parameters: {
|
|
393
|
+
jsCode: string;
|
|
394
|
+
rule?: undefined;
|
|
395
|
+
httpMethod?: undefined;
|
|
396
|
+
path?: undefined;
|
|
397
|
+
responseMode?: undefined;
|
|
398
|
+
options?: undefined;
|
|
399
|
+
resource?: undefined;
|
|
400
|
+
operation?: undefined;
|
|
401
|
+
memberSecret?: undefined;
|
|
402
|
+
organizationId?: undefined;
|
|
403
|
+
userId?: undefined;
|
|
404
|
+
processInstanceId?: undefined;
|
|
405
|
+
workflowId?: undefined;
|
|
406
|
+
triggerType?: undefined;
|
|
407
|
+
conditions?: undefined;
|
|
408
|
+
resultData?: undefined;
|
|
409
|
+
errorMessage?: undefined;
|
|
410
|
+
errorType?: undefined;
|
|
411
|
+
};
|
|
412
|
+
typeVersion: number;
|
|
413
|
+
webhookId?: undefined;
|
|
414
|
+
} | {
|
|
415
|
+
id: string;
|
|
416
|
+
name: string;
|
|
417
|
+
type: string;
|
|
418
|
+
position: number[];
|
|
419
|
+
parameters: {
|
|
420
|
+
conditions: {
|
|
421
|
+
options: {
|
|
422
|
+
caseSensitive: boolean;
|
|
423
|
+
leftValue: string;
|
|
424
|
+
typeValidation: string;
|
|
425
|
+
};
|
|
426
|
+
conditions: {
|
|
427
|
+
id: string;
|
|
428
|
+
leftValue: string;
|
|
429
|
+
rightValue: boolean;
|
|
430
|
+
operator: {
|
|
431
|
+
type: string;
|
|
432
|
+
operation: string;
|
|
433
|
+
};
|
|
434
|
+
}[];
|
|
435
|
+
combinator: string;
|
|
436
|
+
};
|
|
437
|
+
options: {};
|
|
438
|
+
rule?: undefined;
|
|
439
|
+
httpMethod?: undefined;
|
|
440
|
+
path?: undefined;
|
|
441
|
+
responseMode?: undefined;
|
|
442
|
+
resource?: undefined;
|
|
443
|
+
operation?: undefined;
|
|
444
|
+
memberSecret?: undefined;
|
|
445
|
+
organizationId?: undefined;
|
|
446
|
+
userId?: undefined;
|
|
447
|
+
processInstanceId?: undefined;
|
|
448
|
+
workflowId?: undefined;
|
|
449
|
+
triggerType?: undefined;
|
|
450
|
+
jsCode?: undefined;
|
|
451
|
+
resultData?: undefined;
|
|
452
|
+
errorMessage?: undefined;
|
|
453
|
+
errorType?: undefined;
|
|
454
|
+
};
|
|
455
|
+
typeVersion: number;
|
|
456
|
+
webhookId?: undefined;
|
|
457
|
+
} | {
|
|
458
|
+
id: string;
|
|
459
|
+
name: string;
|
|
460
|
+
type: string;
|
|
461
|
+
position: number[];
|
|
462
|
+
parameters: {
|
|
463
|
+
resource: string;
|
|
464
|
+
operation: string;
|
|
465
|
+
resultData: string;
|
|
466
|
+
rule?: undefined;
|
|
467
|
+
httpMethod?: undefined;
|
|
468
|
+
path?: undefined;
|
|
469
|
+
responseMode?: undefined;
|
|
470
|
+
options?: undefined;
|
|
471
|
+
memberSecret?: undefined;
|
|
472
|
+
organizationId?: undefined;
|
|
473
|
+
userId?: undefined;
|
|
474
|
+
processInstanceId?: undefined;
|
|
475
|
+
workflowId?: undefined;
|
|
476
|
+
triggerType?: undefined;
|
|
477
|
+
jsCode?: undefined;
|
|
478
|
+
conditions?: undefined;
|
|
479
|
+
errorMessage?: undefined;
|
|
480
|
+
errorType?: undefined;
|
|
481
|
+
};
|
|
482
|
+
typeVersion: number;
|
|
483
|
+
webhookId?: undefined;
|
|
484
|
+
} | {
|
|
485
|
+
id: string;
|
|
486
|
+
name: string;
|
|
487
|
+
type: string;
|
|
488
|
+
position: number[];
|
|
489
|
+
parameters: {
|
|
490
|
+
resource: string;
|
|
491
|
+
operation: string;
|
|
492
|
+
errorMessage: string;
|
|
493
|
+
errorType: string;
|
|
494
|
+
rule?: undefined;
|
|
495
|
+
httpMethod?: undefined;
|
|
496
|
+
path?: undefined;
|
|
497
|
+
responseMode?: undefined;
|
|
498
|
+
options?: undefined;
|
|
499
|
+
memberSecret?: undefined;
|
|
500
|
+
organizationId?: undefined;
|
|
501
|
+
userId?: undefined;
|
|
502
|
+
processInstanceId?: undefined;
|
|
503
|
+
workflowId?: undefined;
|
|
504
|
+
triggerType?: undefined;
|
|
505
|
+
jsCode?: undefined;
|
|
506
|
+
conditions?: undefined;
|
|
507
|
+
resultData?: undefined;
|
|
508
|
+
};
|
|
509
|
+
typeVersion: number;
|
|
510
|
+
webhookId?: undefined;
|
|
511
|
+
})[];
|
|
512
|
+
connections: {
|
|
513
|
+
'Schedule Trigger': {
|
|
514
|
+
main: {
|
|
515
|
+
node: string;
|
|
516
|
+
type: string;
|
|
517
|
+
index: number;
|
|
518
|
+
}[][];
|
|
519
|
+
};
|
|
520
|
+
'Manual Trigger Webhook': {
|
|
521
|
+
main: {
|
|
522
|
+
node: string;
|
|
523
|
+
type: string;
|
|
524
|
+
index: number;
|
|
525
|
+
}[][];
|
|
526
|
+
};
|
|
527
|
+
'Codika Init': {
|
|
528
|
+
main: {
|
|
529
|
+
node: string;
|
|
530
|
+
type: string;
|
|
531
|
+
index: number;
|
|
532
|
+
}[][];
|
|
533
|
+
};
|
|
534
|
+
'Generate Report': {
|
|
535
|
+
main: {
|
|
536
|
+
node: string;
|
|
537
|
+
type: string;
|
|
538
|
+
index: number;
|
|
539
|
+
}[][];
|
|
540
|
+
};
|
|
541
|
+
'IF Success': {
|
|
542
|
+
main: {
|
|
543
|
+
node: string;
|
|
544
|
+
type: string;
|
|
545
|
+
index: number;
|
|
546
|
+
}[][];
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
settings: {
|
|
550
|
+
executionOrder: string;
|
|
551
|
+
errorWorkflow: string;
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
/**
|
|
555
|
+
* Generate a sub-workflow (called by the main workflow).
|
|
556
|
+
*
|
|
557
|
+
* Flow: Execute Workflow Trigger → Process Text → return
|
|
558
|
+
* No Codika Init/Submit/Report nodes (handled by parent).
|
|
559
|
+
*/
|
|
560
|
+
export declare function generateSubWorkflow(): {
|
|
561
|
+
name: string;
|
|
562
|
+
nodes: ({
|
|
563
|
+
id: string;
|
|
564
|
+
name: string;
|
|
565
|
+
type: string;
|
|
566
|
+
position: number[];
|
|
567
|
+
onError: string;
|
|
568
|
+
parameters: {
|
|
569
|
+
workflowInputs: {
|
|
570
|
+
values: {
|
|
571
|
+
name: string;
|
|
572
|
+
type: string;
|
|
573
|
+
}[];
|
|
574
|
+
};
|
|
575
|
+
jsCode?: undefined;
|
|
576
|
+
errorMessage?: undefined;
|
|
577
|
+
};
|
|
578
|
+
typeVersion: number;
|
|
579
|
+
} | {
|
|
580
|
+
id: string;
|
|
581
|
+
name: string;
|
|
582
|
+
type: string;
|
|
583
|
+
position: number[];
|
|
584
|
+
parameters: {
|
|
585
|
+
jsCode: string;
|
|
586
|
+
workflowInputs?: undefined;
|
|
587
|
+
errorMessage?: undefined;
|
|
588
|
+
};
|
|
589
|
+
typeVersion: number;
|
|
590
|
+
onError?: undefined;
|
|
591
|
+
} | {
|
|
592
|
+
id: string;
|
|
593
|
+
name: string;
|
|
594
|
+
type: string;
|
|
595
|
+
position: number[];
|
|
596
|
+
parameters: {
|
|
597
|
+
errorMessage: string;
|
|
598
|
+
workflowInputs?: undefined;
|
|
599
|
+
jsCode?: undefined;
|
|
600
|
+
};
|
|
601
|
+
typeVersion: number;
|
|
602
|
+
onError?: undefined;
|
|
603
|
+
})[];
|
|
604
|
+
connections: {
|
|
605
|
+
'When Executed by Another Workflow': {
|
|
606
|
+
main: {
|
|
607
|
+
node: string;
|
|
608
|
+
type: string;
|
|
609
|
+
index: number;
|
|
610
|
+
}[][];
|
|
611
|
+
};
|
|
612
|
+
};
|
|
613
|
+
settings: {
|
|
614
|
+
executionOrder: string;
|
|
615
|
+
errorWorkflow: string;
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
/**
|
|
619
|
+
* Generate a minimal data ingestion workflow template.
|
|
620
|
+
*
|
|
621
|
+
* Flow: Webhook Trigger (/embed) → Codika Init Data Ingestion → TODO: Add embedding logic → Codika Ingestion Callback
|
|
622
|
+
*/
|
|
623
|
+
export declare function generateDataIngestionWorkflow(slug: string): {
|
|
624
|
+
name: string;
|
|
625
|
+
nodes: ({
|
|
626
|
+
id: string;
|
|
627
|
+
name: string;
|
|
628
|
+
type: string;
|
|
629
|
+
position: number[];
|
|
630
|
+
parameters: {
|
|
631
|
+
httpMethod: string;
|
|
632
|
+
path: string;
|
|
633
|
+
responseMode: string;
|
|
634
|
+
status?: undefined;
|
|
635
|
+
};
|
|
636
|
+
typeVersion: number;
|
|
637
|
+
webhookId: `${string}-${string}-${string}-${string}-${string}`;
|
|
638
|
+
} | {
|
|
639
|
+
id: string;
|
|
640
|
+
name: string;
|
|
641
|
+
type: string;
|
|
642
|
+
position: number[];
|
|
643
|
+
parameters: {
|
|
644
|
+
httpMethod?: undefined;
|
|
645
|
+
path?: undefined;
|
|
646
|
+
responseMode?: undefined;
|
|
647
|
+
status?: undefined;
|
|
648
|
+
};
|
|
649
|
+
typeVersion: number;
|
|
650
|
+
webhookId?: undefined;
|
|
651
|
+
} | {
|
|
652
|
+
id: string;
|
|
653
|
+
name: string;
|
|
654
|
+
type: string;
|
|
655
|
+
position: number[];
|
|
656
|
+
parameters: {
|
|
657
|
+
status: string;
|
|
658
|
+
httpMethod?: undefined;
|
|
659
|
+
path?: undefined;
|
|
660
|
+
responseMode?: undefined;
|
|
661
|
+
};
|
|
662
|
+
typeVersion: number;
|
|
663
|
+
webhookId?: undefined;
|
|
664
|
+
})[];
|
|
665
|
+
connections: {
|
|
666
|
+
'Webhook Trigger': {
|
|
667
|
+
main: {
|
|
668
|
+
node: string;
|
|
669
|
+
type: string;
|
|
670
|
+
index: number;
|
|
671
|
+
}[][];
|
|
672
|
+
};
|
|
673
|
+
'Codika Init Data Ingestion': {
|
|
674
|
+
main: {
|
|
675
|
+
node: string;
|
|
676
|
+
type: string;
|
|
677
|
+
index: number;
|
|
678
|
+
}[][];
|
|
679
|
+
};
|
|
680
|
+
'TODO: Add Embedding Logic': {
|
|
681
|
+
main: {
|
|
682
|
+
node: string;
|
|
683
|
+
type: string;
|
|
684
|
+
index: number;
|
|
685
|
+
}[][];
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
settings: {
|
|
689
|
+
executionOrder: string;
|
|
690
|
+
errorWorkflow: string;
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
//# sourceMappingURL=workflow-templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-templates.d.ts","sourceRoot":"","sources":["../../../src/cli/templates/workflow-templates.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkMhD;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0JrD;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkElC;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+DzD"}
|