@openapi-flow/n8n 0.0.0-stage → 0.3.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 +129 -2
- package/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/legacy/workflow/common/plan-validation.d.ts +1 -0
- package/dist/legacy/workflow/common/plan-validation.js +11 -0
- package/dist/legacy/workflow/common/workflow-id.d.ts +1 -0
- package/dist/legacy/workflow/common/workflow-id.js +8 -0
- package/dist/legacy/workflow/inbound/build-inbound-workflow.d.ts +2 -0
- package/dist/legacy/workflow/inbound/build-inbound-workflow.js +60 -0
- package/dist/legacy/workflow/inbound/compile-inbound-workflow.d.ts +2 -0
- package/dist/legacy/workflow/inbound/compile-inbound-workflow.js +25 -0
- package/dist/legacy/workflow/inbound/inbound-response.d.ts +2 -0
- package/dist/legacy/workflow/inbound/inbound-response.js +51 -0
- package/dist/legacy/workflow/request/base-url.d.ts +1 -0
- package/dist/legacy/workflow/request/base-url.js +14 -0
- package/dist/legacy/workflow/request/build-request-workflow.d.ts +3 -0
- package/dist/legacy/workflow/request/build-request-workflow.js +47 -0
- package/dist/legacy/workflow/request/build-sequence-workflow.d.ts +3 -0
- package/dist/legacy/workflow/request/build-sequence-workflow.js +53 -0
- package/dist/legacy/workflow/request/compile-catalog-sequence.d.ts +2 -0
- package/dist/legacy/workflow/request/compile-catalog-sequence.js +122 -0
- package/dist/legacy/workflow/request/compile-sequence.d.ts +2 -0
- package/dist/legacy/workflow/request/compile-sequence.js +41 -0
- package/dist/legacy/workflow/request/compile-workflow.d.ts +4 -0
- package/dist/legacy/workflow/request/compile-workflow.js +93 -0
- package/dist/legacy/workflow/request/credential-binding.d.ts +5 -0
- package/dist/legacy/workflow/request/credential-binding.js +31 -0
- package/dist/legacy/workflow/request/effect-policy.d.ts +4 -0
- package/dist/legacy/workflow/request/effect-policy.js +16 -0
- package/dist/legacy/workflow/request/http-request-node.d.ts +2 -0
- package/dist/legacy/workflow/request/http-request-node.js +69 -0
- package/dist/legacy/workflow/request/prepare-sequence.d.ts +4 -0
- package/dist/legacy/workflow/request/prepare-sequence.js +103 -0
- package/dist/legacy/workflow/request/request-body.d.ts +4 -0
- package/dist/legacy/workflow/request/request-body.js +64 -0
- package/dist/legacy/workflow/request/request-headers.d.ts +4 -0
- package/dist/legacy/workflow/request/request-headers.js +30 -0
- package/dist/legacy/workflow/request/request-url.d.ts +4 -0
- package/dist/legacy/workflow/request/request-url.js +34 -0
- package/dist/legacy/workflow/request/response-assertion-code.d.ts +3 -0
- package/dist/legacy/workflow/request/response-assertion-code.js +28 -0
- package/dist/legacy/workflow/request/sequence-url.d.ts +4 -0
- package/dist/legacy/workflow/request/sequence-url.js +104 -0
- package/dist/legacy-api.d.ts +25 -0
- package/dist/legacy-api.js +20 -0
- package/dist/nodes/common/validation/compile-standalone-validator.d.ts +3 -0
- package/dist/nodes/common/validation/compile-standalone-validator.js +44 -0
- package/dist/nodes/gap/create-gap-node.d.ts +3 -0
- package/dist/nodes/gap/create-gap-node.js +35 -0
- package/dist/nodes/inputs/compile-template-input-validators.d.ts +3 -0
- package/dist/nodes/inputs/compile-template-input-validators.js +26 -0
- package/dist/nodes/inputs/create-template-input-nodes.d.ts +4 -0
- package/dist/nodes/inputs/create-template-input-nodes.js +61 -0
- package/dist/nodes/native/arrays/create-array-node-fragment.d.ts +4 -0
- package/dist/nodes/native/arrays/create-array-node-fragment.js +42 -0
- package/dist/nodes/native/arrays/create-array-reader-code.d.ts +3 -0
- package/dist/nodes/native/arrays/create-array-reader-code.js +12 -0
- package/dist/nodes/native/arrays/create-bound-native-array-capability.d.ts +4 -0
- package/dist/nodes/native/arrays/create-bound-native-array-capability.js +81 -0
- package/dist/nodes/native/arrays/create-native-array-capability.d.ts +4 -0
- package/dist/nodes/native/arrays/create-native-array-capability.js +12 -0
- package/dist/nodes/native/arrays/native-array-definition.d.ts +2 -0
- package/dist/nodes/native/arrays/native-array-definition.js +27 -0
- package/dist/nodes/native/common/create-material-planning-capability.d.ts +4 -0
- package/dist/nodes/native/common/create-material-planning-capability.js +14 -0
- package/dist/nodes/native/common/create-native-fragment.d.ts +2 -0
- package/dist/nodes/native/common/create-native-fragment.js +10 -0
- package/dist/nodes/native/common/define-material-bound-capability.d.ts +4 -0
- package/dist/nodes/native/common/define-material-bound-capability.js +33 -0
- package/dist/nodes/native/common/resolve-native-runtime-source.d.ts +3 -0
- package/dist/nodes/native/common/resolve-native-runtime-source.js +15 -0
- package/dist/nodes/native/common/response-reference-bindings.d.ts +4 -0
- package/dist/nodes/native/common/response-reference-bindings.js +15 -0
- package/dist/nodes/native/common/response-references.d.ts +3 -0
- package/dist/nodes/native/common/response-references.js +5 -0
- package/dist/nodes/native/create-exclusive-branch-merge-capability.d.ts +3 -0
- package/dist/nodes/native/create-exclusive-branch-merge-capability.js +43 -0
- package/dist/nodes/native/create-json-output-capability.d.ts +3 -0
- package/dist/nodes/native/create-json-output-capability.js +48 -0
- package/dist/nodes/native/create-native-capabilities.d.ts +2 -0
- package/dist/nodes/native/create-native-capabilities.js +15 -0
- package/dist/nodes/native/create-pass-through-capability.d.ts +3 -0
- package/dist/nodes/native/create-pass-through-capability.js +32 -0
- package/dist/nodes/native/create-response-array-capability.d.ts +3 -0
- package/dist/nodes/native/create-response-array-capability.js +78 -0
- package/dist/nodes/native/create-response-collection-capability.d.ts +3 -0
- package/dist/nodes/native/create-response-collection-capability.js +134 -0
- package/dist/nodes/native/if-capability.d.ts +2 -0
- package/dist/nodes/native/if-capability.js +80 -0
- package/dist/nodes/native/inputs/native-input-runtime.bundle.js +24 -0
- package/dist/nodes/native/inputs/prepend-native-parameter-guard.d.ts +4 -0
- package/dist/nodes/native/inputs/prepend-native-parameter-guard.js +52 -0
- package/dist/nodes/native/item-join/create-bound-item-join-capability.d.ts +3 -0
- package/dist/nodes/native/item-join/create-bound-item-join-capability.js +169 -0
- package/dist/nodes/native/item-join/create-item-join-capability.d.ts +4 -0
- package/dist/nodes/native/item-join/create-item-join-capability.js +10 -0
- package/dist/nodes/native/item-join/create-item-join-reader-code.d.ts +2 -0
- package/dist/nodes/native/item-join/create-item-join-reader-code.js +18 -0
- package/dist/nodes/native/item-join/item-join-definition.d.ts +2 -0
- package/dist/nodes/native/item-join/item-join-definition.js +33 -0
- package/dist/nodes/native/item-join/runtime/item-join-runtime.bundle.js +24 -0
- package/dist/nodes/native/item-join/runtime/join-api-items.d.ts +3 -0
- package/dist/nodes/native/item-join/runtime/join-api-items.js +37 -0
- package/dist/nodes/native/merge-append-capability.d.ts +2 -0
- package/dist/nodes/native/merge-append-capability.js +33 -0
- package/dist/nodes/native/registry/native-feature-definitions.d.ts +4 -0
- package/dist/nodes/native/registry/native-feature-definitions.js +93 -0
- package/dist/nodes/native/registry/native-feature-material-requirements.d.ts +3 -0
- package/dist/nodes/native/registry/native-feature-material-requirements.js +10 -0
- package/dist/nodes/native/registry/resolve-n8n-native-features.d.ts +3 -0
- package/dist/nodes/native/registry/resolve-n8n-native-features.js +6 -0
- package/dist/nodes/native/registry/resolve-n8n-native-planning-features.d.ts +3 -0
- package/dist/nodes/native/registry/resolve-n8n-native-planning-features.js +5 -0
- package/dist/nodes/native/registry/resolve-native-feature-registry.d.ts +3 -0
- package/dist/nodes/native/registry/resolve-native-feature-registry.js +99 -0
- package/dist/nodes/native/registry/validate-native-feature-context.d.ts +2 -0
- package/dist/nodes/native/registry/validate-native-feature-context.js +46 -0
- package/dist/nodes/native/response-array-definition.d.ts +2 -0
- package/dist/nodes/native/response-array-definition.js +27 -0
- package/dist/nodes/native/response-assertion-capability.d.ts +2 -0
- package/dist/nodes/native/response-assertion-capability.js +57 -0
- package/dist/nodes/native/response-check-code.d.ts +3 -0
- package/dist/nodes/native/response-check-code.js +65 -0
- package/dist/nodes/native/response-checks/create-response-check-guard.d.ts +4 -0
- package/dist/nodes/native/response-checks/create-response-check-guard.js +22 -0
- package/dist/nodes/native/response-checks/create-response-check-reader.d.ts +3 -0
- package/dist/nodes/native/response-checks/create-response-check-reader.js +23 -0
- package/dist/nodes/native/response-collection-definition.d.ts +2 -0
- package/dist/nodes/native/response-collection-definition.js +27 -0
- package/dist/nodes/native/stop-and-error-capability.d.ts +2 -0
- package/dist/nodes/native/stop-and-error-capability.js +43 -0
- package/dist/nodes/request/authentication/credential-field-name.d.ts +1 -0
- package/dist/nodes/request/authentication/credential-field-name.js +3 -0
- package/dist/nodes/request/authentication/resolve-http-request-authentication.d.ts +2 -0
- package/dist/nodes/request/authentication/resolve-http-request-authentication.js +42 -0
- package/dist/nodes/request/bindings/compile-native-output-validators.d.ts +3 -0
- package/dist/nodes/request/bindings/compile-native-output-validators.js +12 -0
- package/dist/nodes/request/bindings/compile-request-validator.d.ts +3 -0
- package/dist/nodes/request/bindings/compile-request-validator.js +13 -0
- package/dist/nodes/request/bindings/compile-source-response-validators.d.ts +2 -0
- package/dist/nodes/request/bindings/compile-source-response-validators.js +12 -0
- package/dist/nodes/request/bindings/create-bound-request-fragment.d.ts +3 -0
- package/dist/nodes/request/bindings/create-bound-request-fragment.js +82 -0
- package/dist/nodes/request/bindings/create-output-item-reader-code.d.ts +2 -0
- package/dist/nodes/request/bindings/create-output-item-reader-code.js +7 -0
- package/dist/nodes/request/bindings/create-output-reader-code.d.ts +3 -0
- package/dist/nodes/request/bindings/create-output-reader-code.js +26 -0
- package/dist/nodes/request/bindings/resolve-output-binding-sources.d.ts +3 -0
- package/dist/nodes/request/bindings/resolve-output-binding-sources.js +36 -0
- package/dist/nodes/request/create-http-request-node.d.ts +2 -0
- package/dist/nodes/request/create-http-request-node.js +73 -0
- package/dist/nodes/request/deployment/create-request-deployment-notes.d.ts +2 -0
- package/dist/nodes/request/deployment/create-request-deployment-notes.js +3 -0
- package/dist/nodes/request/deployment/resolve-http-request-deployment.d.ts +2 -0
- package/dist/nodes/request/deployment/resolve-http-request-deployment.js +33 -0
- package/dist/nodes/request/finalize-http-request-fragment.d.ts +3 -0
- package/dist/nodes/request/finalize-http-request-fragment.js +22 -0
- package/dist/nodes/request/resolve-http-request-node-configuration.d.ts +4 -0
- package/dist/nodes/request/resolve-http-request-node-configuration.js +41 -0
- package/dist/nodes/request/response/create-http-response-decoder.d.ts +4 -0
- package/dist/nodes/request/response/create-http-response-decoder.js +57 -0
- package/dist/nodes/request/response/decode-http-response.d.ts +3 -0
- package/dist/nodes/request/response/decode-http-response.js +42 -0
- package/dist/nodes/request/response/http-response-media.d.ts +2 -0
- package/dist/nodes/request/response/http-response-media.js +32 -0
- package/dist/nodes/request/response/http-response-node-name.d.ts +2 -0
- package/dist/nodes/request/response/http-response-node-name.js +4 -0
- package/dist/nodes/request/response/response-runtime.bundle.js +24 -0
- package/dist/nodes/request/runtime/materialize-http-request.d.ts +4 -0
- package/dist/nodes/request/runtime/materialize-http-request.js +35 -0
- package/dist/nodes/request/runtime/request-runtime.bundle.js +24 -0
- package/dist/nodes/request/serialization/create-serialized-http-request-node.d.ts +3 -0
- package/dist/nodes/request/serialization/create-serialized-http-request-node.js +17 -0
- package/dist/nodes/request/serialization/serialize-http-request.d.ts +5 -0
- package/dist/nodes/request/serialization/serialize-http-request.js +70 -0
- package/dist/public-api.d.ts +43 -0
- package/dist/public-api.js +26 -0
- package/dist/schemas/batch-execution-schema.d.ts +15 -0
- package/dist/schemas/batch-execution-schema.js +14 -0
- package/dist/schemas/create-native-comparison-planning-schema.d.ts +81 -0
- package/dist/schemas/create-native-comparison-planning-schema.js +36 -0
- package/dist/schemas/exclusive-branch-merge-schema.d.ts +4 -0
- package/dist/schemas/exclusive-branch-merge-schema.js +7 -0
- package/dist/schemas/item-join-schema.d.ts +13 -0
- package/dist/schemas/item-join-schema.js +26 -0
- package/dist/schemas/native-array-schema.d.ts +11 -0
- package/dist/schemas/native-array-schema.js +19 -0
- package/dist/schemas/native-capability-schemas.d.ts +100 -0
- package/dist/schemas/native-capability-schemas.js +62 -0
- package/dist/schemas/native-feature-registry-schema.d.ts +17 -0
- package/dist/schemas/native-feature-registry-schema.js +8 -0
- package/dist/schemas/native-runtime-input-schema.d.ts +5 -0
- package/dist/schemas/native-runtime-input-schema.js +5 -0
- package/dist/schemas/request-deployment-schema.d.ts +9 -0
- package/dist/schemas/request-deployment-schema.js +27 -0
- package/dist/schemas/response-array-schema.d.ts +11 -0
- package/dist/schemas/response-array-schema.js +19 -0
- package/dist/schemas/response-collection-schema.d.ts +11 -0
- package/dist/schemas/response-collection-schema.js +19 -0
- package/dist/schemas/template-deployment-selection-schema.d.ts +3 -0
- package/dist/schemas/template-deployment-selection-schema.js +10 -0
- package/dist/schemas/workflow-input-value-map-schema.d.ts +5 -0
- package/dist/schemas/workflow-input-value-map-schema.js +5 -0
- package/dist/schemas/workflow-template-schema.d.ts +11 -0
- package/dist/schemas/workflow-template-schema.js +10 -0
- package/dist/types/array-iteration.d.ts +8 -0
- package/dist/types/array-iteration.js +1 -0
- package/dist/types/array-split.d.ts +13 -0
- package/dist/types/array-split.js +1 -0
- package/dist/types/authentication.d.ts +14 -0
- package/dist/types/authentication.js +1 -0
- package/dist/types/batch-execution.d.ts +23 -0
- package/dist/types/batch-execution.js +1 -0
- package/dist/types/http-response-decoding.d.ts +16 -0
- package/dist/types/http-response-decoding.js +1 -0
- package/dist/types/item-join.d.ts +40 -0
- package/dist/types/item-join.js +1 -0
- package/dist/types/legacy/catalog-workflow.d.ts +37 -0
- package/dist/types/legacy/catalog-workflow.js +1 -0
- package/dist/types/legacy/inbound-workflow.d.ts +27 -0
- package/dist/types/legacy/inbound-workflow.js +1 -0
- package/dist/types/legacy/request-node.d.ts +23 -0
- package/dist/types/legacy/request-node.js +1 -0
- package/dist/types/legacy/request-workflow.d.ts +43 -0
- package/dist/types/legacy/request-workflow.js +1 -0
- package/dist/types/legacy/sequence-workflow.d.ts +57 -0
- package/dist/types/legacy/sequence-workflow.js +1 -0
- package/dist/types/native-array.d.ts +8 -0
- package/dist/types/native-array.js +1 -0
- package/dist/types/native-capability.d.ts +46 -0
- package/dist/types/native-capability.js +1 -0
- package/dist/types/native-feature-registry.d.ts +70 -0
- package/dist/types/native-feature-registry.js +14 -0
- package/dist/types/native-material-binding.d.ts +56 -0
- package/dist/types/native-material-binding.js +1 -0
- package/dist/types/native-runtime-parameters.d.ts +55 -0
- package/dist/types/native-runtime-parameters.js +1 -0
- package/dist/types/node-fragment.d.ts +51 -0
- package/dist/types/node-fragment.js +1 -0
- package/dist/types/output-binding-source.d.ts +27 -0
- package/dist/types/output-binding-source.js +1 -0
- package/dist/types/request-deployment.d.ts +17 -0
- package/dist/types/request-deployment.js +1 -0
- package/dist/types/request-materialization.d.ts +30 -0
- package/dist/types/request-materialization.js +1 -0
- package/dist/types/request-node-configuration.d.ts +13 -0
- package/dist/types/request-node-configuration.js +1 -0
- package/dist/types/response-check-compilation.d.ts +11 -0
- package/dist/types/response-check-compilation.js +1 -0
- package/dist/types/response-check-guard.d.ts +6 -0
- package/dist/types/response-check-guard.js +1 -0
- package/dist/types/response-collection.d.ts +7 -0
- package/dist/types/response-collection.js +1 -0
- package/dist/types/reviewable-workflow.d.ts +29 -0
- package/dist/types/reviewable-workflow.js +1 -0
- package/dist/types/schema-compilation.d.ts +5 -0
- package/dist/types/schema-compilation.js +1 -0
- package/dist/types/serialized-http-request.d.ts +4 -0
- package/dist/types/serialized-http-request.js +1 -0
- package/dist/types/workflow-compilation.d.ts +39 -0
- package/dist/types/workflow-compilation.js +1 -0
- package/dist/types/workflow-template.d.ts +121 -0
- package/dist/types/workflow-template.js +1 -0
- package/dist/utils/bundled-license-banner.d.ts +3 -0
- package/dist/utils/bundled-license-banner.js +32 -0
- package/dist/utils/javascript-json-literal.d.ts +2 -0
- package/dist/utils/javascript-json-literal.js +10 -0
- package/dist/utils/json-values-equal.cjs +24 -0
- package/dist/utils/json-values-equal.d.cts +1 -0
- package/dist/workflow/assemble-n8n-workflow.d.ts +2 -0
- package/dist/workflow/assemble-n8n-workflow.js +11 -0
- package/dist/workflow/batch/compile-batched-n8n-workflow.d.ts +3 -0
- package/dist/workflow/batch/compile-batched-n8n-workflow.js +36 -0
- package/dist/workflow/batch/create-batch-execution-scopes.d.ts +3 -0
- package/dist/workflow/batch/create-batch-execution-scopes.js +59 -0
- package/dist/workflow/batch/validate-batch-exclusive-rejoin.d.ts +3 -0
- package/dist/workflow/batch/validate-batch-exclusive-rejoin.js +49 -0
- package/dist/workflow/batch/validate-batch-item-flow.d.ts +3 -0
- package/dist/workflow/batch/validate-batch-item-flow.js +98 -0
- package/dist/workflow/build-n8n-workflow.d.ts +2 -0
- package/dist/workflow/build-n8n-workflow.js +140 -0
- package/dist/workflow/compile-native-material-fragments.d.ts +3 -0
- package/dist/workflow/compile-native-material-fragments.js +76 -0
- package/dist/workflow/compile-native-workflow-nodes.d.ts +3 -0
- package/dist/workflow/compile-native-workflow-nodes.js +25 -0
- package/dist/workflow/compile-planned-n8n-workflow.d.ts +3 -0
- package/dist/workflow/compile-planned-n8n-workflow.js +42 -0
- package/dist/workflow/compile-reviewable-n8n-workflow.d.ts +3 -0
- package/dist/workflow/compile-reviewable-n8n-workflow.js +92 -0
- package/dist/workflow/compile-validated-workflow-fragments.d.ts +3 -0
- package/dist/workflow/compile-validated-workflow-fragments.js +20 -0
- package/dist/workflow/compile-workflow-material-fragments.d.ts +4 -0
- package/dist/workflow/compile-workflow-material-fragments.js +18 -0
- package/dist/workflow/create-n8n-native-output-sources.d.ts +3 -0
- package/dist/workflow/create-n8n-native-output-sources.js +58 -0
- package/dist/workflow/entrypoint/manual-trigger.d.ts +4 -0
- package/dist/workflow/entrypoint/manual-trigger.js +16 -0
- package/dist/workflow/find-singleton-api-responses.d.ts +3 -0
- package/dist/workflow/find-singleton-api-responses.js +22 -0
- package/dist/workflow/inputs/compile-native-runtime-inputs.d.ts +5 -0
- package/dist/workflow/inputs/compile-native-runtime-inputs.js +129 -0
- package/dist/workflow/inputs/create-runtime-input-native-capabilities.d.ts +4 -0
- package/dist/workflow/inputs/create-runtime-input-native-capabilities.js +36 -0
- package/dist/workflow/resolve-n8n-native-materials.d.ts +2 -0
- package/dist/workflow/resolve-n8n-native-materials.js +16 -0
- package/dist/workflow/review/create-gap-review-content.d.ts +2 -0
- package/dist/workflow/review/create-gap-review-content.js +28 -0
- package/dist/workflow/review/create-gap-review-region.d.ts +2 -0
- package/dist/workflow/review/create-gap-review-region.js +23 -0
- package/dist/workflow/review/escape-review-markdown.d.ts +1 -0
- package/dist/workflow/review/escape-review-markdown.js +7 -0
- package/dist/workflow/review/gap-review-region-layout.d.ts +4 -0
- package/dist/workflow/review/gap-review-region-layout.js +21 -0
- package/dist/workflow/templates/compile-n8n-workflow-template.d.ts +3 -0
- package/dist/workflow/templates/compile-n8n-workflow-template.js +211 -0
- package/dist/workflow/templates/create-template-artifact-mapping.d.ts +2 -0
- package/dist/workflow/templates/create-template-artifact-mapping.js +58 -0
- package/dist/workflow/templates/create-template-gap-regions.d.ts +5 -0
- package/dist/workflow/templates/create-template-gap-regions.js +22 -0
- package/dist/workflow/templates/create-workflow-template-guide.d.ts +3 -0
- package/dist/workflow/templates/create-workflow-template-guide.js +44 -0
- package/dist/workflow/templates/prepare-template-api-fragments.d.ts +3 -0
- package/dist/workflow/templates/prepare-template-api-fragments.js +74 -0
- package/dist/workflow/templates/select-n8n-template-deployments.d.ts +3 -0
- package/dist/workflow/templates/select-n8n-template-deployments.js +12 -0
- package/dist/workflow/templates/workflow-template-identities.d.ts +5 -0
- package/dist/workflow/templates/workflow-template-identities.js +5 -0
- package/dist/workflow/validate-compiled-binding-sources.d.ts +4 -0
- package/dist/workflow/validate-compiled-binding-sources.js +40 -0
- package/dist/workflow/validate-node-fragments.d.ts +3 -0
- package/dist/workflow/validate-node-fragments.js +58 -0
- package/package.json +59 -4
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const n8nNativeFeatureSelectionSchema: z.ZodArray<z.ZodEnum<Readonly<{
|
|
3
|
+
readonly If: "if";
|
|
4
|
+
readonly MergeAppend: "merge-append";
|
|
5
|
+
readonly AssertResponses: "assert-responses";
|
|
6
|
+
readonly StopAndError: "stop-and-error";
|
|
7
|
+
readonly PassThrough: "pass-through";
|
|
8
|
+
readonly RejoinExclusiveBranches: "rejoin-exclusive-branches";
|
|
9
|
+
readonly JsonOutput: "json-output";
|
|
10
|
+
readonly SplitApiResponseArray: "split-api-response-array";
|
|
11
|
+
readonly CollectApiResponses: "collect-api-responses";
|
|
12
|
+
readonly SplitNativeOutputArray: "split-native-output-array";
|
|
13
|
+
readonly JoinApiItems: "join-api-items";
|
|
14
|
+
}>>>;
|
|
15
|
+
export declare const nativeItemExecutionOptionsSchema: z.ZodObject<{
|
|
16
|
+
itemMode: z.ZodOptional<z.ZodLiteral<"linked">>;
|
|
17
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { N8nNativeFeature } from '../types/native-feature-registry.js';
|
|
3
|
+
export const n8nNativeFeatureSelectionSchema = z
|
|
4
|
+
.array(z.enum(N8nNativeFeature))
|
|
5
|
+
.refine((features) => new Set(features).size === features.length, 'features must be unique');
|
|
6
|
+
export const nativeItemExecutionOptionsSchema = z.strictObject({
|
|
7
|
+
itemMode: z.literal('linked').optional(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const httpRequestDeploymentOptionsSchema: z.ZodObject<{
|
|
3
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
4
|
+
credentialBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
}, z.core.$strict>>>;
|
|
8
|
+
securityRequirementIndex: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { originFrom } from '../legacy/workflow/request/base-url.js';
|
|
3
|
+
export const httpRequestDeploymentOptionsSchema = z.strictObject({
|
|
4
|
+
baseUrl: z
|
|
5
|
+
.string()
|
|
6
|
+
.superRefine((value, context) => {
|
|
7
|
+
try {
|
|
8
|
+
originFrom(value);
|
|
9
|
+
}
|
|
10
|
+
catch (error) {
|
|
11
|
+
if (!(error instanceof Error))
|
|
12
|
+
throw error;
|
|
13
|
+
context.addIssue({
|
|
14
|
+
code: 'custom',
|
|
15
|
+
message: error.message,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
})
|
|
19
|
+
.optional(),
|
|
20
|
+
credentialBindings: z
|
|
21
|
+
.record(z.string().min(1), z.strictObject({
|
|
22
|
+
id: z.string().refine((value) => value.trim().length > 0),
|
|
23
|
+
name: z.string().refine((value) => value.trim().length > 0),
|
|
24
|
+
}))
|
|
25
|
+
.optional(),
|
|
26
|
+
securityRequirementIndex: z.number().int().nonnegative().optional(),
|
|
27
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const responseArrayParametersSchema: z.ZodObject<{
|
|
3
|
+
sourceNodeId: z.ZodString;
|
|
4
|
+
pointer: z.ZodString;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
export declare function createResponseArrayParametersSchema(callIds: string[]): z.ZodObject<{
|
|
7
|
+
pointer: z.ZodString;
|
|
8
|
+
sourceNodeId: z.ZodEnum<{
|
|
9
|
+
[x: string]: string;
|
|
10
|
+
}>;
|
|
11
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const responseArrayParametersSchema = z.strictObject({
|
|
3
|
+
sourceNodeId: z
|
|
4
|
+
.string()
|
|
5
|
+
.min(1)
|
|
6
|
+
.describe('Existing API callId whose declared OAS response contains the scenario-required array.'),
|
|
7
|
+
pointer: z
|
|
8
|
+
.string()
|
|
9
|
+
.describe('RFC 6901 pointer into that response body selecting the array. Empty string selects an array body. Never select a first element instead of iterating.'),
|
|
10
|
+
});
|
|
11
|
+
export function createResponseArrayParametersSchema(callIds) {
|
|
12
|
+
if (!callIds.length)
|
|
13
|
+
throw new Error('array parameters require API callIds');
|
|
14
|
+
return responseArrayParametersSchema.extend({
|
|
15
|
+
sourceNodeId: z
|
|
16
|
+
.enum(callIds)
|
|
17
|
+
.describe('Only a supplied API callId; code derives and validates the response array contract.'),
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const responseCollectionParametersSchema: z.ZodObject<{
|
|
3
|
+
sourceNodeId: z.ZodString;
|
|
4
|
+
pointer: z.ZodString;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
export declare function createResponseCollectionParametersSchema(callIds: string[]): z.ZodObject<{
|
|
7
|
+
pointer: z.ZodString;
|
|
8
|
+
sourceNodeId: z.ZodEnum<{
|
|
9
|
+
[x: string]: string;
|
|
10
|
+
}>;
|
|
11
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const responseCollectionParametersSchema = z.strictObject({
|
|
3
|
+
sourceNodeId: z
|
|
4
|
+
.string()
|
|
5
|
+
.min(1)
|
|
6
|
+
.describe('An existing API callId whose item-linked responses must be collected.'),
|
|
7
|
+
pointer: z
|
|
8
|
+
.string()
|
|
9
|
+
.describe('RFC 6901 pointer into each API response body. Empty string collects the entire unchanged body.'),
|
|
10
|
+
});
|
|
11
|
+
export function createResponseCollectionParametersSchema(callIds) {
|
|
12
|
+
if (!callIds.length)
|
|
13
|
+
throw new Error('collection parameters require API callIds');
|
|
14
|
+
return responseCollectionParametersSchema.extend({
|
|
15
|
+
sourceNodeId: z
|
|
16
|
+
.enum(callIds)
|
|
17
|
+
.describe('Only a supplied API callId. Code derives response schemas and validates each source.'),
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { n8nTemplateDeploymentsSchema } from './workflow-template-schema.js';
|
|
3
|
+
const documentIds = z
|
|
4
|
+
.array(z.string().refine((id) => id.trim().length > 0))
|
|
5
|
+
.refine((ids) => new Set(ids).size === ids.length);
|
|
6
|
+
export const templateDeploymentSelectionSchema = z.strictObject({
|
|
7
|
+
deployments: n8nTemplateDeploymentsSchema,
|
|
8
|
+
availableDocumentIds: documentIds,
|
|
9
|
+
selectedDocumentIds: documentIds,
|
|
10
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const n8nTemplateDeploymentsSchema: z.ZodArray<z.ZodObject<{
|
|
3
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
4
|
+
credentialBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
}, z.core.$strict>>>;
|
|
8
|
+
securityRequirementIndex: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
documentId: z.ZodString;
|
|
10
|
+
}, z.core.$strict>>;
|
|
11
|
+
export declare const n8nTemplateInputValuesSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { httpRequestDeploymentOptionsSchema } from './request-deployment-schema.js';
|
|
3
|
+
export const n8nTemplateDeploymentsSchema = z
|
|
4
|
+
.array(httpRequestDeploymentOptionsSchema.extend({
|
|
5
|
+
documentId: z.string().refine((value) => value.trim().length > 0),
|
|
6
|
+
}))
|
|
7
|
+
.refine((items) => new Set(items.map((item) => item.documentId)).size === items.length, {
|
|
8
|
+
message: 'template.deployments must contain distinct documentIds',
|
|
9
|
+
});
|
|
10
|
+
export const n8nTemplateInputValuesSchema = z.record(z.string(), z.json());
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ApiBindingMaterial } from '@openapi-flow/core';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { responseArrayParametersSchema } from '../schemas/response-array-schema.js';
|
|
4
|
+
import type { NativeItemExecutionOptions } from './native-capability.js';
|
|
5
|
+
export type ResponseArrayParameters = z.infer<typeof responseArrayParametersSchema>;
|
|
6
|
+
export interface CreateResponseArrayCapabilityInput extends NativeItemExecutionOptions {
|
|
7
|
+
materials: ApiBindingMaterial[];
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PlannedNativeNode } from '@openapi-flow/core';
|
|
2
|
+
import type { N8nOutputBindingSource } from './output-binding-source.js';
|
|
3
|
+
export interface ArraySplitParameters {
|
|
4
|
+
sourceNodeId: string;
|
|
5
|
+
pointer: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CreateArrayNodeFragmentInput {
|
|
8
|
+
planned: PlannedNativeNode;
|
|
9
|
+
position: [number, number];
|
|
10
|
+
source: N8nOutputBindingSource;
|
|
11
|
+
parameters: ArraySplitParameters;
|
|
12
|
+
linked: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ApiOperationContract } from '@openapi-flow/core';
|
|
2
|
+
export type HttpRequestCredentialType = 'httpBearerAuth' | 'httpBasicAuth' | 'httpDigestAuth' | 'httpHeaderAuth' | 'httpQueryAuth' | 'oAuth2Api';
|
|
3
|
+
export interface HttpRequestAuthenticationMapping {
|
|
4
|
+
schemeName: string;
|
|
5
|
+
credentialType: HttpRequestCredentialType;
|
|
6
|
+
credentialRequirements?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ResolveHttpRequestAuthenticationInput {
|
|
9
|
+
operation: ApiOperationContract;
|
|
10
|
+
securityRequirementIndex?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface CredentialBindingRequest {
|
|
13
|
+
authentication?: HttpRequestAuthenticationMapping;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { batchExecutionScopeSchema } from '../schemas/batch-execution-schema.js';
|
|
3
|
+
import type { CompilePlannedN8nWorkflowInput } from './native-capability.js';
|
|
4
|
+
import type { N8nSdkNode, N8nNodeFragment } from './node-fragment.js';
|
|
5
|
+
import type { AssembleN8nWorkflowInput } from './workflow-compilation.js';
|
|
6
|
+
export type N8nBatchExecutionScope = z.infer<typeof batchExecutionScopeSchema>;
|
|
7
|
+
export interface CompileBatchedN8nWorkflowInput extends CompilePlannedN8nWorkflowInput {
|
|
8
|
+
batchScopes: N8nBatchExecutionScope[];
|
|
9
|
+
}
|
|
10
|
+
export interface CreateBatchExecutionScopesInput extends AssembleN8nWorkflowInput {
|
|
11
|
+
batchScopes: N8nBatchExecutionScope[];
|
|
12
|
+
}
|
|
13
|
+
export interface CompiledN8nBatchExecutionScope {
|
|
14
|
+
scope: N8nBatchExecutionScope;
|
|
15
|
+
controller: N8nSdkNode;
|
|
16
|
+
}
|
|
17
|
+
export interface ValidateBatchItemFlowInput {
|
|
18
|
+
scope: N8nBatchExecutionScope;
|
|
19
|
+
fragments: Map<string, N8nNodeFragment>;
|
|
20
|
+
edges: AssembleN8nWorkflowInput['edges'];
|
|
21
|
+
/** A completed earlier batch is not the original exit node's latest run. */
|
|
22
|
+
otherBatchNodeIds: Set<string>;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ApiResponseEnvelope } from '@openapi-flow/core';
|
|
2
|
+
import type { N8nNodeFragment } from './node-fragment.js';
|
|
3
|
+
export interface HttpResponseDecodeInput {
|
|
4
|
+
response: ApiResponseEnvelope;
|
|
5
|
+
bytes: Uint8Array;
|
|
6
|
+
method: string;
|
|
7
|
+
sourceNodeId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface DecodedHttpResponse {
|
|
10
|
+
response: ApiResponseEnvelope;
|
|
11
|
+
kind: 'json' | 'text' | 'binary' | 'empty';
|
|
12
|
+
}
|
|
13
|
+
export interface CreateHttpResponseDecoderInput {
|
|
14
|
+
fragment: N8nNodeFragment;
|
|
15
|
+
method: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { ApiBindingMaterial, JsonValue } from '@openapi-flow/core';
|
|
3
|
+
import type { N8nNativeOutputSource, N8nOutputBindingSource } from './output-binding-source.js';
|
|
4
|
+
import type { itemJoinParametersSchema } from '../schemas/item-join-schema.js';
|
|
5
|
+
export type ItemJoinParameters = z.infer<typeof itemJoinParametersSchema>;
|
|
6
|
+
export interface CreateItemJoinCapabilityInput {
|
|
7
|
+
materials: ApiBindingMaterial[];
|
|
8
|
+
scopes: N8nNativeOutputSource[];
|
|
9
|
+
}
|
|
10
|
+
export interface CreateItemJoinReaderCodeInput {
|
|
11
|
+
scope: N8nNativeOutputSource;
|
|
12
|
+
sourceCallId: string;
|
|
13
|
+
sources: N8nOutputBindingSource[];
|
|
14
|
+
}
|
|
15
|
+
export interface ItemJoinRow {
|
|
16
|
+
scopeIndex: number;
|
|
17
|
+
sourceCallId: string;
|
|
18
|
+
response: JsonValue;
|
|
19
|
+
}
|
|
20
|
+
export interface ItemJoinInputItem {
|
|
21
|
+
json: ItemJoinRow;
|
|
22
|
+
}
|
|
23
|
+
export interface JoinApiItemsInput {
|
|
24
|
+
items: ItemJoinInputItem[];
|
|
25
|
+
sourceCallIds: string[];
|
|
26
|
+
}
|
|
27
|
+
export interface ItemJoinValues {
|
|
28
|
+
responses: Record<string, JsonValue>;
|
|
29
|
+
}
|
|
30
|
+
export interface ItemJoinOutputItem {
|
|
31
|
+
json: ItemJoinValues;
|
|
32
|
+
pairedItem: ItemJoinPair[];
|
|
33
|
+
}
|
|
34
|
+
export interface ItemJoinPair {
|
|
35
|
+
item: number;
|
|
36
|
+
}
|
|
37
|
+
export interface ItemJoinGroup {
|
|
38
|
+
values: Map<string, JsonValue>;
|
|
39
|
+
inputIndexes: number[];
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { WorkflowJSON } from '@n8n/workflow-sdk';
|
|
2
|
+
import type { CatalogSource, CatalogSequencePlan, CatalogDiagnostic } from '@openapi-flow/core/internal';
|
|
3
|
+
import type { Operation } from '@openapi-flow/core/internal';
|
|
4
|
+
import type { CredentialBindings, EffectPolicy } from '@openapi-flow/n8n/legacy';
|
|
5
|
+
import type { SequenceEvidence, SequencePlan, SequenceStep } from '@openapi-flow/n8n/legacy';
|
|
6
|
+
import type { CompileRequest } from '@openapi-flow/n8n/legacy';
|
|
7
|
+
export interface ResolvedSequenceStep {
|
|
8
|
+
operation: Operation;
|
|
9
|
+
origin: URL;
|
|
10
|
+
effectPolicy: EffectPolicy;
|
|
11
|
+
credentialBindings: CredentialBindings;
|
|
12
|
+
}
|
|
13
|
+
export interface PrepareStepsInput {
|
|
14
|
+
profile: CompileRequest['profile'];
|
|
15
|
+
plan: SequencePlan;
|
|
16
|
+
resolveStep: (step: SequenceStep) => ResolvedSequenceStep;
|
|
17
|
+
}
|
|
18
|
+
export interface N8nCatalogSource extends CatalogSource {
|
|
19
|
+
baseUrl: string;
|
|
20
|
+
effectPolicy: EffectPolicy;
|
|
21
|
+
credentialBindings: CredentialBindings;
|
|
22
|
+
}
|
|
23
|
+
export interface CatalogSequenceRequest {
|
|
24
|
+
sources: N8nCatalogSource[];
|
|
25
|
+
profile: CompileRequest['profile'];
|
|
26
|
+
plan: CatalogSequencePlan;
|
|
27
|
+
}
|
|
28
|
+
export interface CatalogSequenceEvidence extends SequenceEvidence {
|
|
29
|
+
documentId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface CatalogSequenceResult {
|
|
32
|
+
status: 'complete' | 'needs_capability' | 'needs_input' | 'blocked';
|
|
33
|
+
plan: CatalogSequencePlan;
|
|
34
|
+
evidence: CatalogSequenceEvidence[];
|
|
35
|
+
diagnostics: CatalogDiagnostic[];
|
|
36
|
+
workflow?: WorkflowJSON;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { WorkflowJSON } from '@n8n/workflow-sdk';
|
|
2
|
+
import type { OpenApiDocument, ParsedDocument } from '@openapi-flow/core/internal';
|
|
3
|
+
import type { InboundOperationCandidate, InboundOperationSource } from '@openapi-flow/core/internal';
|
|
4
|
+
export interface InboundPlan {
|
|
5
|
+
version: '1';
|
|
6
|
+
goal: string;
|
|
7
|
+
operationRef: string;
|
|
8
|
+
webhookPath: string;
|
|
9
|
+
responseStatus: number;
|
|
10
|
+
responseMediaType?: string;
|
|
11
|
+
responseBody?: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface InboundRequest {
|
|
14
|
+
spec: OpenApiDocument;
|
|
15
|
+
plan: InboundPlan;
|
|
16
|
+
}
|
|
17
|
+
export interface InboundWorkflowContext {
|
|
18
|
+
document: ParsedDocument;
|
|
19
|
+
selected: InboundOperationSource;
|
|
20
|
+
plan: InboundPlan;
|
|
21
|
+
}
|
|
22
|
+
export interface InboundResult {
|
|
23
|
+
status: 'complete';
|
|
24
|
+
plan: InboundPlan;
|
|
25
|
+
evidence: InboundOperationCandidate;
|
|
26
|
+
workflow: WorkflowJSON;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { NodeConfig } from '@n8n/workflow-sdk';
|
|
2
|
+
import type { Operation } from '@openapi-flow/core/internal';
|
|
3
|
+
export type RequiredFields = Record<string, string>;
|
|
4
|
+
export type ResolvedAuthentication = Required<Pick<NodeConfig, 'parameters' | 'credentials'>>;
|
|
5
|
+
export interface RequestHeader {
|
|
6
|
+
name: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
export interface PreparedRequestBody {
|
|
10
|
+
contentType: 'json' | 'form-urlencoded';
|
|
11
|
+
value: string;
|
|
12
|
+
}
|
|
13
|
+
export interface HttpRequestNodeInput {
|
|
14
|
+
operation: Operation;
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
position: [number, number];
|
|
18
|
+
url: string;
|
|
19
|
+
body?: PreparedRequestBody;
|
|
20
|
+
headers: RequestHeader[];
|
|
21
|
+
authentication?: ResolvedAuthentication;
|
|
22
|
+
shouldAssert: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ExpectedBody, WorkflowPlan } from '@openapi-flow/core/internal';
|
|
2
|
+
export type { ExpectedBody, WorkflowInputs, InputValues, WorkflowPlan, } from '@openapi-flow/core/internal';
|
|
3
|
+
import type { WorkflowJSON } from '@n8n/workflow-sdk';
|
|
4
|
+
import type { OpenApiDocument } from '@openapi-flow/core/internal';
|
|
5
|
+
import type { Operation } from '@openapi-flow/core/internal';
|
|
6
|
+
import type { PreparedRequestBody, RequestHeader, ResolvedAuthentication } from './request-node.js';
|
|
7
|
+
export type CompileStatus = 'complete' | 'needs_input' | 'blocked';
|
|
8
|
+
export type OperationEffect = 'read' | 'write' | 'unknown';
|
|
9
|
+
export type EffectPolicy = Record<string, 'read' | 'write'>;
|
|
10
|
+
export interface CredentialBinding {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
export type CredentialBindings = Record<string, CredentialBinding>;
|
|
15
|
+
export interface OperationEvidence extends Pick<Operation, 'operationRef' | 'operationId' | 'method' | 'path'> {
|
|
16
|
+
effect: OperationEffect;
|
|
17
|
+
}
|
|
18
|
+
export interface CompileRequest {
|
|
19
|
+
spec: OpenApiDocument;
|
|
20
|
+
baseUrl: string;
|
|
21
|
+
profile: 'read-only' | 'test';
|
|
22
|
+
effectPolicy: EffectPolicy;
|
|
23
|
+
credentialBindings: CredentialBindings;
|
|
24
|
+
plan: WorkflowPlan;
|
|
25
|
+
}
|
|
26
|
+
export type CompileOperationRequest = Pick<CompileRequest, 'baseUrl' | 'profile' | 'effectPolicy' | 'credentialBindings' | 'plan'>;
|
|
27
|
+
export interface CompileResult {
|
|
28
|
+
status: CompileStatus;
|
|
29
|
+
plan: WorkflowPlan;
|
|
30
|
+
evidence: OperationEvidence;
|
|
31
|
+
missingInputs: string[];
|
|
32
|
+
workflow?: WorkflowJSON;
|
|
33
|
+
}
|
|
34
|
+
export interface BuildRequestWorkflowInput {
|
|
35
|
+
baseUrl: string;
|
|
36
|
+
plan: WorkflowPlan;
|
|
37
|
+
operation: Operation;
|
|
38
|
+
url: string;
|
|
39
|
+
body?: PreparedRequestBody;
|
|
40
|
+
headers: RequestHeader[];
|
|
41
|
+
authentication?: ResolvedAuthentication;
|
|
42
|
+
expectedBody: ExpectedBody;
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { SequencePlan } from '@openapi-flow/core/internal';
|
|
2
|
+
export type { ResponseReference, SequenceStep, SequencePlan, } from '@openapi-flow/core/internal';
|
|
3
|
+
import type { WorkflowJSON } from '@n8n/workflow-sdk';
|
|
4
|
+
import type { OpenApiDocument, ParsedDocument } from '@openapi-flow/core/internal';
|
|
5
|
+
import type { Operation } from '@openapi-flow/core/internal';
|
|
6
|
+
import type { PreparedRequestBody, RequestHeader, ResolvedAuthentication } from './request-node.js';
|
|
7
|
+
import type { CompileRequest, CompileStatus, CredentialBindings, EffectPolicy, ExpectedBody, OperationEvidence } from './request-workflow.js';
|
|
8
|
+
export type PreviousOperations = Map<string, Operation>;
|
|
9
|
+
export type RequiredOutputs = Map<string, Set<string>>;
|
|
10
|
+
export interface SequenceRequest {
|
|
11
|
+
spec: OpenApiDocument;
|
|
12
|
+
baseUrl: string;
|
|
13
|
+
profile: CompileRequest['profile'];
|
|
14
|
+
effectPolicy: EffectPolicy;
|
|
15
|
+
credentialBindings: CredentialBindings;
|
|
16
|
+
plan: SequencePlan;
|
|
17
|
+
}
|
|
18
|
+
export interface SequenceEvidence extends OperationEvidence {
|
|
19
|
+
stepId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface SequenceResult {
|
|
22
|
+
status: CompileStatus;
|
|
23
|
+
plan: SequencePlan;
|
|
24
|
+
evidence: SequenceEvidence[];
|
|
25
|
+
missingInputs: string[];
|
|
26
|
+
workflow?: WorkflowJSON;
|
|
27
|
+
}
|
|
28
|
+
export interface PreparedSequenceNode {
|
|
29
|
+
operation: Operation;
|
|
30
|
+
id: string;
|
|
31
|
+
url: string;
|
|
32
|
+
body?: PreparedRequestBody;
|
|
33
|
+
headers: RequestHeader[];
|
|
34
|
+
expectedBody: ExpectedBody;
|
|
35
|
+
authentication?: ResolvedAuthentication;
|
|
36
|
+
}
|
|
37
|
+
export interface PrepareSequenceInput {
|
|
38
|
+
document: ParsedDocument;
|
|
39
|
+
origin: URL;
|
|
40
|
+
profile: SequenceRequest['profile'];
|
|
41
|
+
effectPolicy: EffectPolicy;
|
|
42
|
+
credentialBindings: CredentialBindings;
|
|
43
|
+
plan: SequencePlan;
|
|
44
|
+
}
|
|
45
|
+
export interface PreparedSequence {
|
|
46
|
+
evidence: SequenceEvidence[];
|
|
47
|
+
missingInputs: string[];
|
|
48
|
+
nodes: PreparedSequenceNode[];
|
|
49
|
+
requiredOutputs: RequiredOutputs;
|
|
50
|
+
blocked: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface BuildSequenceWorkflowInput {
|
|
53
|
+
baseUrl: string;
|
|
54
|
+
plan: SequencePlan;
|
|
55
|
+
nodes: PreparedSequenceNode[];
|
|
56
|
+
requiredOutputs: RequiredOutputs;
|
|
57
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { nativeArrayParametersSchema } from '../schemas/native-array-schema.js';
|
|
3
|
+
import type { N8nNativeOutputSource } from './output-binding-source.js';
|
|
4
|
+
import type { NativeItemExecutionOptions } from './native-capability.js';
|
|
5
|
+
export type NativeArrayParameters = z.infer<typeof nativeArrayParametersSchema>;
|
|
6
|
+
export interface CreateNativeArrayCapabilityInput extends NativeItemExecutionOptions {
|
|
7
|
+
sources: N8nNativeOutputSource[];
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { PlannedNativeNode, WorkflowCapability, WorkflowGraphPlan, WorkflowApiMaterial, ApiOperationContract, WorkflowNativeMaterialSources } from '@openapi-flow/core';
|
|
3
|
+
import type { N8nNodeFragment } from './node-fragment.js';
|
|
4
|
+
import type { N8nNativeRuntimeInput, N8nNativeInputConfiguration } from './native-runtime-parameters.js';
|
|
5
|
+
import type { N8nNativeOutputSource } from './output-binding-source.js';
|
|
6
|
+
import type { nativeOperandSchema, nativeCheckSchema, ifParametersSchema, mergeParametersSchema, assertionParametersSchema, stopParametersSchema } from '../schemas/native-capability-schemas.js';
|
|
7
|
+
export type NativeOperand = z.infer<typeof nativeOperandSchema>;
|
|
8
|
+
export type NativeCheck = z.infer<typeof nativeCheckSchema>;
|
|
9
|
+
export type IfParameters = z.infer<typeof ifParametersSchema>;
|
|
10
|
+
export type MergeParameters = z.infer<typeof mergeParametersSchema>;
|
|
11
|
+
export type AssertionParameters = z.infer<typeof assertionParametersSchema>;
|
|
12
|
+
export type StopParameters = z.infer<typeof stopParametersSchema>;
|
|
13
|
+
export interface NativeItemExecutionOptions {
|
|
14
|
+
itemMode?: 'linked';
|
|
15
|
+
}
|
|
16
|
+
export interface CompileNativeNodeInput {
|
|
17
|
+
planned: PlannedNativeNode;
|
|
18
|
+
apiNodeNames: Record<string, string>;
|
|
19
|
+
position: [number, number];
|
|
20
|
+
/** Original OAS contracts are required by compilers that read API responses. */
|
|
21
|
+
apiResponseContracts?: Record<string, ApiOperationContract>;
|
|
22
|
+
/** Compiler proof from a single Manual Trigger item and item-preserving API paths. Missing/unknown proofs retain ancestry reads. */
|
|
23
|
+
singletonApiResponseIds?: string[];
|
|
24
|
+
runtimeInput?: N8nNativeRuntimeInput;
|
|
25
|
+
/** Names/schemas of actual already-compiled native producers, never guessed from IDs. */
|
|
26
|
+
nativeOutputSources?: N8nNativeOutputSource[];
|
|
27
|
+
}
|
|
28
|
+
export interface N8nNativeCapability extends WorkflowCapability {
|
|
29
|
+
bindMaterialContracts?: (sources: WorkflowNativeMaterialSources) => N8nNativeCapability;
|
|
30
|
+
compile: (input: CompileNativeNodeInput) => N8nNodeFragment;
|
|
31
|
+
}
|
|
32
|
+
export interface CreateJsonOutputCapabilityInput {
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
parametersSchema: WorkflowCapability['parametersSchema'];
|
|
36
|
+
}
|
|
37
|
+
export interface CompilePlannedN8nWorkflowInput {
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
plan: WorkflowGraphPlan;
|
|
41
|
+
materials: WorkflowApiMaterial[];
|
|
42
|
+
apiNodes: N8nNodeFragment[];
|
|
43
|
+
capabilities: N8nNativeCapability[];
|
|
44
|
+
nativeInputs?: N8nNativeInputConfiguration;
|
|
45
|
+
}
|
|
46
|
+
export type CompileNativeWorkflowNodesInput = Pick<CompilePlannedN8nWorkflowInput, 'plan' | 'apiNodes' | 'capabilities' | 'materials'>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|