@noodleseed/one 0.92.0 → 0.94.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/dist/deploy.js +1 -1
- package/dist/deploy.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/platform-support.js +2 -2
- package/dist/platform-support.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.js +8 -0
- package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js +3 -3
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.js +9 -0
- package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-bundle.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-bundle.js +8 -0
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-bundle.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-launcher.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-launcher.js +24 -1
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-launcher.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-manifests.js +30 -22
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-manifests.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-marketplace-docs.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-marketplace-docs.js +15 -0
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-marketplace-docs.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-platform-support.d.ts +13 -0
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-platform-support.d.ts.map +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-platform-support.js +13 -0
- package/node_modules/@noodle-borg/agent-kit/dist/plugin-platform-support.js.map +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-auth-ref.d.ts +2 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-auth-ref.d.ts.map +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-auth-ref.js +171 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-auth-ref.js.map +1 -0
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.js +3 -97
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/package.json +1 -1
- package/node_modules/@noodle-borg/auth/dist/claims.d.ts +2 -0
- package/node_modules/@noodle-borg/auth/dist/claims.d.ts.map +1 -1
- package/node_modules/@noodle-borg/auth/dist/claims.js +15 -0
- package/node_modules/@noodle-borg/auth/dist/claims.js.map +1 -1
- package/node_modules/@noodle-borg/auth/dist/index.d.ts +2 -2
- package/node_modules/@noodle-borg/auth/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/auth/dist/index.js +1 -1
- package/node_modules/@noodle-borg/auth/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/auth/dist/verify.d.ts +10 -1
- package/node_modules/@noodle-borg/auth/dist/verify.d.ts.map +1 -1
- package/node_modules/@noodle-borg/auth/dist/verify.js +9 -2
- package/node_modules/@noodle-borg/auth/dist/verify.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/connectors.d.ts +2 -2
- package/node_modules/@noodle-borg/authoring/dist/connectors.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/connectors.js +4 -1
- package/node_modules/@noodle-borg/authoring/dist/connectors.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/customer-auth.d.ts +13 -0
- package/node_modules/@noodle-borg/authoring/dist/customer-auth.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/customer-auth.js +31 -2
- package/node_modules/@noodle-borg/authoring/dist/customer-auth.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/customer-endpoint.d.ts +10 -0
- package/node_modules/@noodle-borg/authoring/dist/customer-endpoint.d.ts.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/customer-endpoint.js +18 -0
- package/node_modules/@noodle-borg/authoring/dist/customer-endpoint.js.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/index.d.ts +2 -1
- package/node_modules/@noodle-borg/authoring/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/index.js +1 -0
- package/node_modules/@noodle-borg/authoring/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/server.d.ts +1 -1
- package/node_modules/@noodle-borg/authoring/dist/server.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/server.js +1 -13
- package/node_modules/@noodle-borg/authoring/dist/server.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/artifact/assemble.d.ts +27 -0
- package/node_modules/@noodle-borg/compiler/dist/artifact/assemble.d.ts.map +1 -0
- package/node_modules/@noodle-borg/compiler/dist/artifact/assemble.js +73 -0
- package/node_modules/@noodle-borg/compiler/dist/artifact/assemble.js.map +1 -0
- package/node_modules/@noodle-borg/compiler/dist/artifact/catalog-emission.d.ts +50 -0
- package/node_modules/@noodle-borg/compiler/dist/artifact/catalog-emission.d.ts.map +1 -0
- package/node_modules/@noodle-borg/compiler/dist/artifact/catalog-emission.js +119 -0
- package/node_modules/@noodle-borg/compiler/dist/artifact/catalog-emission.js.map +1 -0
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.d.ts +22 -1
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.js +5 -1
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/catalog/in-memory.js +1 -1
- package/node_modules/@noodle-borg/compiler/dist/catalog/in-memory.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/catalog/types.d.ts +8 -0
- package/node_modules/@noodle-borg/compiler/dist/catalog/types.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/catalog/types.js +0 -9
- package/node_modules/@noodle-borg/compiler/dist/catalog/types.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/compile.d.ts +1 -11
- package/node_modules/@noodle-borg/compiler/dist/compile.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/compile.js +29 -163
- package/node_modules/@noodle-borg/compiler/dist/compile.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/context-compile.d.ts +2 -1
- package/node_modules/@noodle-borg/compiler/dist/context-compile.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/context-compile.js +3 -1
- package/node_modules/@noodle-borg/compiler/dist/context-compile.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/customer-endpoint.d.ts +34 -0
- package/node_modules/@noodle-borg/compiler/dist/customer-endpoint.d.ts.map +1 -0
- package/node_modules/@noodle-borg/compiler/dist/customer-endpoint.js +240 -0
- package/node_modules/@noodle-borg/compiler/dist/customer-endpoint.js.map +1 -0
- package/node_modules/@noodle-borg/compiler/dist/customer-routing.d.ts +24 -0
- package/node_modules/@noodle-borg/compiler/dist/customer-routing.d.ts.map +1 -0
- package/node_modules/@noodle-borg/compiler/dist/customer-routing.js +136 -0
- package/node_modules/@noodle-borg/compiler/dist/customer-routing.js.map +1 -0
- package/node_modules/@noodle-borg/compiler/dist/errors.d.ts +1 -1
- package/node_modules/@noodle-borg/compiler/dist/errors.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.d.ts +7 -3
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.js +7 -1
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/index.d.ts +3 -2
- package/node_modules/@noodle-borg/compiler/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/index.js +1 -0
- package/node_modules/@noodle-borg/compiler/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/manifest/auth-schema.d.ts +110 -0
- package/node_modules/@noodle-borg/compiler/dist/manifest/auth-schema.d.ts.map +1 -0
- package/node_modules/@noodle-borg/compiler/dist/manifest/auth-schema.js +191 -0
- package/node_modules/@noodle-borg/compiler/dist/manifest/auth-schema.js.map +1 -0
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.d.ts +12 -0
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.js +1 -73
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/package.json +1 -0
- package/node_modules/@noodle-borg/compute/dist/code-connector.d.ts +1 -0
- package/node_modules/@noodle-borg/compute/dist/code-connector.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compute/dist/code-connector.js.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/call-graph.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/call-graph.js +6 -6
- package/node_modules/@noodle-borg/connector-defs/dist/call-graph.js.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/compile-auth.d.ts +2 -0
- package/node_modules/@noodle-borg/connector-defs/dist/compile-auth.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/compile-auth.js +12 -9
- package/node_modules/@noodle-borg/connector-defs/dist/compile-auth.js.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/compile-http.d.ts +14 -0
- package/node_modules/@noodle-borg/connector-defs/dist/compile-http.d.ts.map +1 -0
- package/node_modules/@noodle-borg/connector-defs/dist/compile-http.js +347 -0
- package/node_modules/@noodle-borg/connector-defs/dist/compile-http.js.map +1 -0
- package/node_modules/@noodle-borg/connector-defs/dist/compile.d.ts +4 -2
- package/node_modules/@noodle-borg/connector-defs/dist/compile.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/compile.js +17 -333
- package/node_modules/@noodle-borg/connector-defs/dist/compile.js.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/customer-routing.d.ts +11 -0
- package/node_modules/@noodle-borg/connector-defs/dist/customer-routing.d.ts.map +1 -0
- package/node_modules/@noodle-borg/connector-defs/dist/customer-routing.js +124 -0
- package/node_modules/@noodle-borg/connector-defs/dist/customer-routing.js.map +1 -0
- package/node_modules/@noodle-borg/connector-defs/dist/http-headers.d.ts +4 -0
- package/node_modules/@noodle-borg/connector-defs/dist/http-headers.d.ts.map +1 -0
- package/node_modules/@noodle-borg/connector-defs/dist/http-headers.js +52 -0
- package/node_modules/@noodle-borg/connector-defs/dist/http-headers.js.map +1 -0
- package/node_modules/@noodle-borg/connector-defs/dist/identity-key.d.ts +5 -0
- package/node_modules/@noodle-borg/connector-defs/dist/identity-key.d.ts.map +1 -0
- package/node_modules/@noodle-borg/connector-defs/dist/identity-key.js +9 -0
- package/node_modules/@noodle-borg/connector-defs/dist/identity-key.js.map +1 -0
- package/node_modules/@noodle-borg/connector-defs/dist/schema.d.ts +33 -3
- package/node_modules/@noodle-borg/connector-defs/dist/schema.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/schema.js +22 -3
- package/node_modules/@noodle-borg/connector-defs/dist/schema.js.map +1 -1
- package/node_modules/@noodle-borg/connector-http/dist/customer-route.d.ts +17 -0
- package/node_modules/@noodle-borg/connector-http/dist/customer-route.d.ts.map +1 -0
- package/node_modules/@noodle-borg/connector-http/dist/customer-route.js +77 -0
- package/node_modules/@noodle-borg/connector-http/dist/customer-route.js.map +1 -0
- package/node_modules/@noodle-borg/connector-http/dist/http-connector.d.ts +2 -2
- package/node_modules/@noodle-borg/connector-http/dist/http-connector.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-http/dist/http-connector.js +64 -67
- package/node_modules/@noodle-borg/connector-http/dist/http-connector.js.map +1 -1
- package/node_modules/@noodle-borg/connector-http/dist/http-response.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-http/dist/http-response.js +23 -21
- package/node_modules/@noodle-borg/connector-http/dist/http-response.js.map +1 -1
- package/node_modules/@noodle-borg/connector-http/dist/ssrf.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-http/dist/ssrf.js +17 -2
- package/node_modules/@noodle-borg/connector-http/dist/ssrf.js.map +1 -1
- package/node_modules/@noodle-borg/connector-http/dist/url-resolution.d.ts +4 -0
- package/node_modules/@noodle-borg/connector-http/dist/url-resolution.d.ts.map +1 -0
- package/node_modules/@noodle-borg/connector-http/dist/url-resolution.js +31 -0
- package/node_modules/@noodle-borg/connector-http/dist/url-resolution.js.map +1 -0
- package/node_modules/@noodle-borg/module/dist/contract.d.ts +14 -2
- package/node_modules/@noodle-borg/module/dist/contract.d.ts.map +1 -1
- package/node_modules/@noodle-borg/module/dist/contract.js.map +1 -1
- package/node_modules/@noodle-borg/protocol/dist/mapping.d.ts.map +1 -1
- package/node_modules/@noodle-borg/protocol/dist/mapping.js +17 -0
- package/node_modules/@noodle-borg/protocol/dist/mapping.js.map +1 -1
- package/node_modules/@noodle-borg/protocol/dist/sdk-server.d.ts +4 -0
- package/node_modules/@noodle-borg/protocol/dist/sdk-server.d.ts.map +1 -1
- package/node_modules/@noodle-borg/protocol/dist/sdk-server.js +7 -1
- package/node_modules/@noodle-borg/protocol/dist/sdk-server.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/broker/types.d.ts +24 -3
- package/node_modules/@noodle-borg/runtime/dist/broker/types.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/broker/types.js +21 -0
- package/node_modules/@noodle-borg/runtime/dist/broker/types.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/confirmation.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/confirmation.js +10 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/connector/failure-details.d.ts +8 -0
- package/node_modules/@noodle-borg/runtime/dist/connector/failure-details.d.ts.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/connector/failure-details.js +53 -0
- package/node_modules/@noodle-borg/runtime/dist/connector/failure-details.js.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/connector/types.d.ts +7 -0
- package/node_modules/@noodle-borg/runtime/dist/connector/types.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/connector/types.js +15 -0
- package/node_modules/@noodle-borg/runtime/dist/connector/types.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/customer-routing.d.ts +45 -0
- package/node_modules/@noodle-borg/runtime/dist/customer-routing.d.ts.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/customer-routing.js +135 -0
- package/node_modules/@noodle-borg/runtime/dist/customer-routing.js.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/execute.d.ts +10 -49
- package/node_modules/@noodle-borg/runtime/dist/execute.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/execute.js +14 -363
- package/node_modules/@noodle-borg/runtime/dist/execute.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/index.d.ts +4 -2
- package/node_modules/@noodle-borg/runtime/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/index.js +4 -2
- package/node_modules/@noodle-borg/runtime/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/interactive.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/interactive.js +7 -0
- package/node_modules/@noodle-borg/runtime/dist/interactive.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/operation-credential.d.ts +16 -0
- package/node_modules/@noodle-borg/runtime/dist/operation-credential.d.ts.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/operation-credential.js +58 -0
- package/node_modules/@noodle-borg/runtime/dist/operation-credential.js.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/operation-execution.d.ts +48 -0
- package/node_modules/@noodle-borg/runtime/dist/operation-execution.d.ts.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/operation-execution.js +328 -0
- package/node_modules/@noodle-borg/runtime/dist/operation-execution.js.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/prepared-action-match.d.ts +3 -0
- package/node_modules/@noodle-borg/runtime/dist/prepared-action-match.d.ts.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/prepared-action-match.js +48 -0
- package/node_modules/@noodle-borg/runtime/dist/prepared-action-match.js.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/result.d.ts +1 -1
- package/node_modules/@noodle-borg/runtime/dist/result.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/result.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/routed-output-guard.d.ts +15 -0
- package/node_modules/@noodle-borg/runtime/dist/routed-output-guard.d.ts.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/routed-output-guard.js +163 -0
- package/node_modules/@noodle-borg/runtime/dist/routed-output-guard.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/assistant-customer-issuer.d.ts +8 -0
- package/node_modules/@noodle-borg/service/dist/assistant-customer-issuer.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/assistant-customer-issuer.js +13 -0
- package/node_modules/@noodle-borg/service/dist/assistant-customer-issuer.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/assistant-interactive.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/assistant-interactive.js +2 -1
- package/node_modules/@noodle-borg/service/dist/assistant-interactive.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/control-plane-auth-bootstrap.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/control-plane-auth-bootstrap.js +1 -1
- package/node_modules/@noodle-borg/service/dist/control-plane-auth-bootstrap.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/credential-binding-index.d.ts +2 -0
- package/node_modules/@noodle-borg/service/dist/credential-binding-index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/credential-binding-index.js +5 -1
- package/node_modules/@noodle-borg/service/dist/credential-binding-index.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/credential-broker-delegated-refresh.d.ts +47 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker-delegated-refresh.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker-delegated-refresh.js +165 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker-delegated-refresh.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker-delegated-token-exchange.d.ts +18 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker-delegated-token-exchange.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker-delegated-token-exchange.js +112 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker-delegated-token-exchange.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker.d.ts +6 -24
- package/node_modules/@noodle-borg/service/dist/credential-broker.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/credential-broker.js +23 -271
- package/node_modules/@noodle-borg/service/dist/credential-broker.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/credential-probe-route.d.ts +20 -0
- package/node_modules/@noodle-borg/service/dist/credential-probe-route.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-probe-route.js +28 -0
- package/node_modules/@noodle-borg/service/dist/credential-probe-route.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-probes.d.ts +3 -1
- package/node_modules/@noodle-borg/service/dist/credential-probes.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/credential-probes.js +54 -13
- package/node_modules/@noodle-borg/service/dist/credential-probes.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/credential-route-guard.d.ts +9 -0
- package/node_modules/@noodle-borg/service/dist/credential-route-guard.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-route-guard.js +34 -0
- package/node_modules/@noodle-borg/service/dist/credential-route-guard.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-route-key.d.ts +12 -0
- package/node_modules/@noodle-borg/service/dist/credential-route-key.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-route-key.js +17 -0
- package/node_modules/@noodle-borg/service/dist/credential-route-key.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/customer-verifier.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/customer-verifier.js +72 -21
- package/node_modules/@noodle-borg/service/dist/customer-verifier.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/delegated-token-exchange.d.ts +3 -1
- package/node_modules/@noodle-borg/service/dist/delegated-token-exchange.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/delegated-token-exchange.js +24 -2
- package/node_modules/@noodle-borg/service/dist/delegated-token-exchange.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/developer-mcp/mount.js +6 -5
- package/node_modules/@noodle-borg/service/dist/developer-mcp/mount.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/external-credential-binding-broker.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/external-credential-binding-broker.js +4 -3
- package/node_modules/@noodle-borg/service/dist/external-credential-binding-broker.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/google-workload-identity-probe.d.ts +2 -1
- package/node_modules/@noodle-borg/service/dist/google-workload-identity-probe.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/google-workload-identity-probe.js +23 -7
- package/node_modules/@noodle-borg/service/dist/google-workload-identity-probe.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/google-workload-identity.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/google-workload-identity.js +6 -5
- package/node_modules/@noodle-borg/service/dist/google-workload-identity.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/managed-config-broker-options.d.ts +18 -0
- package/node_modules/@noodle-borg/service/dist/managed-config-broker-options.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/managed-config-broker-options.js +2 -0
- package/node_modules/@noodle-borg/service/dist/managed-config-broker-options.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/oauth/platform-principal-guard.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/oauth/platform-principal-guard.js +6 -5
- package/node_modules/@noodle-borg/service/dist/oauth/platform-principal-guard.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/oauth/provider.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/oauth/provider.js +10 -8
- package/node_modules/@noodle-borg/service/dist/oauth/provider.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/oauth/service-bootstrap.js +5 -5
- package/node_modules/@noodle-borg/service/dist/oauth/service-bootstrap.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-agent.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-agent.js +3 -2
- package/node_modules/@noodle-borg/service/dist/routes/assistant-agent.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-interaction-resolution.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-interaction-resolution.js +2 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-interaction-resolution.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-interactions.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant-interactions.js +3 -2
- package/node_modules/@noodle-borg/service/dist/routes/assistant-interactions.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/assistant.js +8 -7
- package/node_modules/@noodle-borg/service/dist/routes/assistant.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/auth-doctor-live.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/auth-doctor-live.js +6 -3
- package/node_modules/@noodle-borg/service/dist/routes/auth-doctor-live.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store.d.ts +3 -1
- package/node_modules/@noodle-borg/service/dist/store.d.ts.map +1 -1
- package/node_modules/@noodle-borg/transport-http/dist/handler.js +18 -2
- package/node_modules/@noodle-borg/transport-http/dist/handler.js.map +1 -1
- package/node_modules/@noodle-borg/transport-http/dist/identity-authorization.d.ts +2 -0
- package/node_modules/@noodle-borg/transport-http/dist/identity-authorization.d.ts.map +1 -1
- package/node_modules/@noodle-borg/transport-http/dist/identity-authorization.js +27 -9
- package/node_modules/@noodle-borg/transport-http/dist/identity-authorization.js.map +1 -1
- package/node_modules/tldts/LICENSE +13 -0
- package/node_modules/tldts/README.md +368 -0
- package/node_modules/tldts/bin/cli.js +21 -0
- package/node_modules/tldts/dist/cjs/index.js +1170 -0
- package/node_modules/tldts/dist/cjs/index.js.map +1 -0
- package/node_modules/tldts/dist/cjs/src/data/trie.js +12 -0
- package/node_modules/tldts/dist/cjs/src/data/trie.js.map +1 -0
- package/node_modules/tldts/dist/cjs/src/suffix-trie.js +170 -0
- package/node_modules/tldts/dist/cjs/src/suffix-trie.js.map +1 -0
- package/node_modules/tldts/dist/cjs/tsconfig.tsbuildinfo +1 -0
- package/node_modules/tldts/dist/es6/index.js +41 -0
- package/node_modules/tldts/dist/es6/index.js.map +1 -0
- package/node_modules/tldts/dist/es6/src/data/trie.js +9 -0
- package/node_modules/tldts/dist/es6/src/data/trie.js.map +1 -0
- package/node_modules/tldts/dist/es6/src/suffix-trie.js +167 -0
- package/node_modules/tldts/dist/es6/src/suffix-trie.js.map +1 -0
- package/node_modules/tldts/dist/es6/tsconfig.bundle.tsbuildinfo +1 -0
- package/node_modules/tldts/dist/index.cjs.min.js +2 -0
- package/node_modules/tldts/dist/index.cjs.min.js.map +1 -0
- package/node_modules/tldts/dist/index.esm.min.js +2 -0
- package/node_modules/tldts/dist/index.esm.min.js.map +1 -0
- package/node_modules/tldts/dist/index.umd.min.js +2 -0
- package/node_modules/tldts/dist/index.umd.min.js.map +1 -0
- package/node_modules/tldts/dist/types/index.d.ts +8 -0
- package/node_modules/tldts/dist/types/src/data/trie.d.ts +7 -0
- package/node_modules/tldts/dist/types/src/suffix-trie.d.ts +5 -0
- package/node_modules/tldts/index.ts +74 -0
- package/node_modules/tldts/package.json +89 -0
- package/node_modules/tldts/src/data/trie.ts +8 -0
- package/node_modules/tldts/src/suffix-trie.ts +207 -0
- package/node_modules/tldts-core/LICENSE +13 -0
- package/node_modules/tldts-core/README.md +3 -0
- package/node_modules/tldts-core/dist/cjs/index.js +955 -0
- package/node_modules/tldts-core/dist/cjs/index.js.map +1 -0
- package/node_modules/tldts-core/dist/cjs/src/domain-without-suffix.js +15 -0
- package/node_modules/tldts-core/dist/cjs/src/domain-without-suffix.js.map +1 -0
- package/node_modules/tldts-core/dist/cjs/src/domain.js +83 -0
- package/node_modules/tldts-core/dist/cjs/src/domain.js.map +1 -0
- package/node_modules/tldts-core/dist/cjs/src/extract-hostname.js +439 -0
- package/node_modules/tldts-core/dist/cjs/src/extract-hostname.js.map +1 -0
- package/node_modules/tldts-core/dist/cjs/src/factory.js +128 -0
- package/node_modules/tldts-core/dist/cjs/src/factory.js.map +1 -0
- package/node_modules/tldts-core/dist/cjs/src/is-ip.js +72 -0
- package/node_modules/tldts-core/dist/cjs/src/is-ip.js.map +1 -0
- package/node_modules/tldts-core/dist/cjs/src/is-special-use.js +65 -0
- package/node_modules/tldts-core/dist/cjs/src/is-special-use.js.map +1 -0
- package/node_modules/tldts-core/dist/cjs/src/is-valid.js +80 -0
- package/node_modules/tldts-core/dist/cjs/src/is-valid.js.map +1 -0
- package/node_modules/tldts-core/dist/cjs/src/lookup/fast-path.js +69 -0
- package/node_modules/tldts-core/dist/cjs/src/lookup/fast-path.js.map +1 -0
- package/node_modules/tldts-core/dist/cjs/src/lookup/interface.js +3 -0
- package/node_modules/tldts-core/dist/cjs/src/lookup/interface.js.map +1 -0
- package/node_modules/tldts-core/dist/cjs/src/options.js +23 -0
- package/node_modules/tldts-core/dist/cjs/src/options.js.map +1 -0
- package/node_modules/tldts-core/dist/cjs/src/subdomain.js +14 -0
- package/node_modules/tldts-core/dist/cjs/src/subdomain.js.map +1 -0
- package/node_modules/tldts-core/dist/cjs/tsconfig.tsbuildinfo +1 -0
- package/node_modules/tldts-core/dist/es6/index.js +4 -0
- package/node_modules/tldts-core/dist/es6/index.js.map +1 -0
- package/node_modules/tldts-core/dist/es6/src/domain-without-suffix.js +12 -0
- package/node_modules/tldts-core/dist/es6/src/domain-without-suffix.js.map +1 -0
- package/node_modules/tldts-core/dist/es6/src/domain.js +80 -0
- package/node_modules/tldts-core/dist/es6/src/domain.js.map +1 -0
- package/node_modules/tldts-core/dist/es6/src/extract-hostname.js +435 -0
- package/node_modules/tldts-core/dist/es6/src/extract-hostname.js.map +1 -0
- package/node_modules/tldts-core/dist/es6/src/factory.js +123 -0
- package/node_modules/tldts-core/dist/es6/src/factory.js.map +1 -0
- package/node_modules/tldts-core/dist/es6/src/is-ip.js +69 -0
- package/node_modules/tldts-core/dist/es6/src/is-ip.js.map +1 -0
- package/node_modules/tldts-core/dist/es6/src/is-special-use.js +62 -0
- package/node_modules/tldts-core/dist/es6/src/is-special-use.js.map +1 -0
- package/node_modules/tldts-core/dist/es6/src/is-valid.js +77 -0
- package/node_modules/tldts-core/dist/es6/src/is-valid.js.map +1 -0
- package/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js +66 -0
- package/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js.map +1 -0
- package/node_modules/tldts-core/dist/es6/src/lookup/interface.js +2 -0
- package/node_modules/tldts-core/dist/es6/src/lookup/interface.js.map +1 -0
- package/node_modules/tldts-core/dist/es6/src/options.js +20 -0
- package/node_modules/tldts-core/dist/es6/src/options.js.map +1 -0
- package/node_modules/tldts-core/dist/es6/src/subdomain.js +11 -0
- package/node_modules/tldts-core/dist/es6/src/subdomain.js.map +1 -0
- package/node_modules/tldts-core/dist/es6/tsconfig.bundle.tsbuildinfo +1 -0
- package/node_modules/tldts-core/dist/types/index.d.ts +4 -0
- package/node_modules/tldts-core/dist/types/src/domain-without-suffix.d.ts +6 -0
- package/node_modules/tldts-core/dist/types/src/domain.d.ts +5 -0
- package/node_modules/tldts-core/dist/types/src/extract-hostname.d.ts +17 -0
- package/node_modules/tldts-core/dist/types/src/factory.d.ts +29 -0
- package/node_modules/tldts-core/dist/types/src/is-ip.d.ts +6 -0
- package/node_modules/tldts-core/dist/types/src/is-special-use.d.ts +5 -0
- package/node_modules/tldts-core/dist/types/src/is-valid.d.ts +15 -0
- package/node_modules/tldts-core/dist/types/src/lookup/fast-path.d.ts +2 -0
- package/node_modules/tldts-core/dist/types/src/lookup/interface.d.ts +9 -0
- package/node_modules/tldts-core/dist/types/src/options.d.ts +11 -0
- package/node_modules/tldts-core/dist/types/src/subdomain.d.ts +4 -0
- package/node_modules/tldts-core/index.ts +10 -0
- package/node_modules/tldts-core/package.json +68 -0
- package/node_modules/tldts-core/src/domain-without-suffix.ts +14 -0
- package/node_modules/tldts-core/src/domain.ts +100 -0
- package/node_modules/tldts-core/src/extract-hostname.ts +480 -0
- package/node_modules/tldts-core/src/factory.ts +199 -0
- package/node_modules/tldts-core/src/is-ip.ts +87 -0
- package/node_modules/tldts-core/src/is-special-use.ts +65 -0
- package/node_modules/tldts-core/src/is-valid.ts +89 -0
- package/node_modules/tldts-core/src/lookup/fast-path.ts +80 -0
- package/node_modules/tldts-core/src/lookup/interface.ts +10 -0
- package/node_modules/tldts-core/src/options.ts +45 -0
- package/node_modules/tldts-core/src/subdomain.ts +11 -0
- package/package.json +3 -1
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
import { computeSignatureHash,
|
|
1
|
+
import { computeSignatureHash, } from '@noodle-borg/compiler';
|
|
2
2
|
import { CodeConnector, DEFAULT_LIMITS, QuickJsComputeEngine, } from '@noodle-borg/compute';
|
|
3
|
-
import { HttpConnector, } from '@noodle-borg/connector-http';
|
|
4
|
-
import { evaluateValue } from '@noodle-borg/runtime';
|
|
5
3
|
import { parse as parseYaml } from 'yaml';
|
|
6
|
-
import { collectVariablesFromHttpAuth } from './auth-variables.js';
|
|
7
4
|
import { validateComputeCallGraph } from './call-graph.js';
|
|
8
|
-
import {
|
|
9
|
-
import { compileExpr, compileExprMap, evalMap, } from './compile-expr.js';
|
|
5
|
+
import { compileHttpConnector, toSignature } from './compile-http.js';
|
|
10
6
|
import { catalogCredentialMetadata } from './credential-profiles.js';
|
|
7
|
+
import { collectCatalogCustomerRouting } from './customer-routing.js';
|
|
8
|
+
import { connectorIdentityKey } from './identity-key.js';
|
|
11
9
|
import { connectorFileSchema } from './schema.js';
|
|
12
|
-
import { collectVariableExpression, collectVariablesFromExpr, collectVariablesFromExprMap, isVariableExpression, } from './variables.js';
|
|
13
|
-
const REQUEST_ROOTS = new Set(['args', 'env']);
|
|
14
|
-
const RESPONSE_ROOTS = new Set(['args', 'response']);
|
|
15
|
-
const PROJECTION_ROOTS = new Set(['args', 'response', 'output']);
|
|
16
|
-
const PAGINATION_ROOTS = RESPONSE_ROOTS;
|
|
17
10
|
/**
|
|
18
11
|
* Compile a declarative connector-catalog document (YAML or JSON) into:
|
|
19
12
|
* - `catalog`: `CatalogConnector[]` — operation signatures fed to the manifest compiler's catalog so
|
|
@@ -61,6 +54,7 @@ export function compileConnectors(source, options = {}) {
|
|
|
61
54
|
return { ok: false, errors };
|
|
62
55
|
const targets = buildTargetIndex(parsed.data.connectors, errors);
|
|
63
56
|
validateComputeCallGraph(parsed.data.connectors, targets, errors);
|
|
57
|
+
const customerRouting = collectCatalogCustomerRouting(parsed.data.connectors, errors);
|
|
64
58
|
// One shared sandbox engine per compile: every compute operation registers its source here, keyed by
|
|
65
59
|
// content digest, so the CodeConnectors built below can resolve their modules at invoke time.
|
|
66
60
|
const computeEngine = new QuickJsComputeEngine();
|
|
@@ -76,7 +70,10 @@ export function compileConnectors(source, options = {}) {
|
|
|
76
70
|
return { ok: false, errors };
|
|
77
71
|
return {
|
|
78
72
|
ok: true,
|
|
79
|
-
catalog
|
|
73
|
+
catalog: catalog.map((entry) => {
|
|
74
|
+
const routing = customerRouting.get(connectorIdentityKey(entry.id, entry.version));
|
|
75
|
+
return routing === undefined ? entry : { ...entry, customerRouting: routing };
|
|
76
|
+
}),
|
|
80
77
|
connectors,
|
|
81
78
|
secretBindings,
|
|
82
79
|
variableBindings: [...variableBindings].sort(),
|
|
@@ -93,120 +90,6 @@ function rejectReservedKinds(defs, errors) {
|
|
|
93
90
|
}
|
|
94
91
|
}
|
|
95
92
|
}
|
|
96
|
-
/** Compile one HTTP connector: signatures into the catalog, a runnable `HttpConnector` with `${...}` mapping. */
|
|
97
|
-
function compileHttpConnector(def, mode, errors, catalog, connectors, secretBindings, variableBindings) {
|
|
98
|
-
const operations = {};
|
|
99
|
-
const signatures = {};
|
|
100
|
-
const allowedOrigins = def.http.allowedOrigins ?? (isVariableExpression(def.http.baseUrl) ? [] : [def.http.baseUrl]);
|
|
101
|
-
collectVariableExpression(def.http.baseUrl, variableBindings);
|
|
102
|
-
if (def.http.auth !== undefined)
|
|
103
|
-
collectVariablesFromHttpAuth(def.http.auth, variableBindings);
|
|
104
|
-
if (isVariableExpression(def.http.baseUrl) && def.http.allowedOrigins === undefined) {
|
|
105
|
-
errors.push({
|
|
106
|
-
code: 'variable_base_url_requires_allowed_origins',
|
|
107
|
-
path: `connectors.${def.id}.http.allowedOrigins`,
|
|
108
|
-
message: 'http.allowedOrigins is required when http.baseUrl is a managed variable',
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
for (const [opName, op] of Object.entries(def.operations)) {
|
|
112
|
-
const base = `connectors.${def.id}.operations.${opName}`;
|
|
113
|
-
if (op.type === 'action' && op.resilience?.retry !== undefined) {
|
|
114
|
-
errors.push({
|
|
115
|
-
code: 'unsafe_retry_action',
|
|
116
|
-
path: `${base}.resilience.retry`,
|
|
117
|
-
message: 'retry resilience is only supported for read operations until idempotency keys land',
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
if (op.type === 'action' && op.pagination !== undefined) {
|
|
121
|
-
errors.push({
|
|
122
|
-
code: 'unsafe_pagination_action',
|
|
123
|
-
path: `${base}.pagination`,
|
|
124
|
-
message: 'pagination is only supported for read operations',
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
if (op.responseType !== undefined &&
|
|
128
|
-
op.responseType !== 'json' &&
|
|
129
|
-
op.pagination !== undefined) {
|
|
130
|
-
errors.push({
|
|
131
|
-
code: 'non_json_response_pagination',
|
|
132
|
-
path: `${base}.pagination`,
|
|
133
|
-
message: 'non-JSON response modes are incompatible with pagination, which needs JSON item arrays',
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
if (op.path.includes('${')) {
|
|
137
|
-
// The runtime only substitutes `{name}` placeholders; a `${...}` expression would be sent as
|
|
138
|
-
// URL-encoded literal text. The authoring SDK compiles `${args.name}` to `{name}` before this.
|
|
139
|
-
errors.push({
|
|
140
|
-
code: 'unsupported_path_expression',
|
|
141
|
-
path: `${base}.path`,
|
|
142
|
-
message: 'HTTP paths take {name} placeholders (authored as ${args.name}); other ${...} expressions are not supported in a path',
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
validateFakeShape(op, `${base}.fake`, errors);
|
|
146
|
-
const signature = toSignature(op.type, op.input, op.output);
|
|
147
|
-
signatures[opName] = signature;
|
|
148
|
-
const requestAst = compileRequest(op.request, `${base}.request`, errors);
|
|
149
|
-
if (requestAst?.kind === 'value')
|
|
150
|
-
collectVariablesFromExpr(requestAst.node, variableBindings);
|
|
151
|
-
if (requestAst?.kind === 'map')
|
|
152
|
-
collectVariablesFromExprMap(requestAst.map, variableBindings);
|
|
153
|
-
if (op.auth !== undefined)
|
|
154
|
-
collectVariablesFromHttpAuth(op.auth, variableBindings);
|
|
155
|
-
const responseAst = op.response
|
|
156
|
-
? compileExprMap(op.response, RESPONSE_ROOTS, `${base}.response`, errors)
|
|
157
|
-
: undefined;
|
|
158
|
-
// Headers use the same roots as the request body (args + env), so a runtime value threaded through
|
|
159
|
-
// args can be attached as dynamic, non-credential request metadata.
|
|
160
|
-
validateHeaderNames(op.headers, `${base}.headers`, errors);
|
|
161
|
-
const headersAst = op.headers
|
|
162
|
-
? compileExprMap(op.headers, REQUEST_ROOTS, `${base}.headers`, errors)
|
|
163
|
-
: undefined;
|
|
164
|
-
if (headersAst !== undefined)
|
|
165
|
-
collectVariablesFromExprMap(headersAst, variableBindings);
|
|
166
|
-
const pagination = compilePagination(op, `${base}.pagination`, errors);
|
|
167
|
-
const projection = compileProjection(op, `${base}.projection`, errors);
|
|
168
|
-
const fake = httpFake(op.fake);
|
|
169
|
-
operations[opName] = buildOperation(op, signature, requestAst, responseAst, headersAst, pagination, fake, projection);
|
|
170
|
-
// Per-operation auth declares its own secret reference (overrides any connector-level default).
|
|
171
|
-
addAuthBinding({
|
|
172
|
-
auth: op.auth,
|
|
173
|
-
connectorId: def.id,
|
|
174
|
-
connectorVersion: def.version,
|
|
175
|
-
operation: opName,
|
|
176
|
-
path: `${base}.auth`,
|
|
177
|
-
allowedOrigins,
|
|
178
|
-
secretBindings,
|
|
179
|
-
errors,
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
catalog.push({
|
|
183
|
-
id: def.id,
|
|
184
|
-
version: def.version,
|
|
185
|
-
kind: def.kind ?? 'custom',
|
|
186
|
-
...catalogCredentialMetadata(def),
|
|
187
|
-
operations: signatures,
|
|
188
|
-
});
|
|
189
|
-
// Connector-level default auth binds every operation that doesn't carry its own scheme.
|
|
190
|
-
addAuthBinding({
|
|
191
|
-
auth: def.http.auth,
|
|
192
|
-
connectorId: def.id,
|
|
193
|
-
connectorVersion: def.version,
|
|
194
|
-
path: `connectors.${def.id}.http.auth`,
|
|
195
|
-
allowedOrigins,
|
|
196
|
-
secretBindings,
|
|
197
|
-
errors,
|
|
198
|
-
});
|
|
199
|
-
const config = {
|
|
200
|
-
id: def.id,
|
|
201
|
-
version: def.version,
|
|
202
|
-
baseUrl: def.http.baseUrl,
|
|
203
|
-
...(def.http.allowedOrigins ? { allowedOrigins: def.http.allowedOrigins } : {}),
|
|
204
|
-
...(def.http.auth ? { auth: toAuthScheme(def.http.auth) } : {}),
|
|
205
|
-
...(mode === 'fake' ? { fakeMode: true } : {}),
|
|
206
|
-
operations,
|
|
207
|
-
};
|
|
208
|
-
connectors.push(new HttpConnector(config));
|
|
209
|
-
}
|
|
210
93
|
/**
|
|
211
94
|
* Compile one compute connector: register each operation's code with the shared sandbox engine (producing
|
|
212
95
|
* a content-addressed module) and emit a `CodeConnector`. The catalog signatures are identical to what
|
|
@@ -259,7 +142,13 @@ function buildTargetIndex(defs, errors) {
|
|
|
259
142
|
});
|
|
260
143
|
}
|
|
261
144
|
else {
|
|
262
|
-
|
|
145
|
+
const directEndpoint = 'http' in def && typeof def.http.baseUrl !== 'string' ? def.http.baseUrl.name : undefined;
|
|
146
|
+
byId.set(def.id, {
|
|
147
|
+
id: def.id,
|
|
148
|
+
version: def.version,
|
|
149
|
+
operations: signatures,
|
|
150
|
+
...(directEndpoint === undefined ? {} : { directEndpoint }),
|
|
151
|
+
});
|
|
263
152
|
}
|
|
264
153
|
}
|
|
265
154
|
return { byId };
|
|
@@ -319,6 +208,7 @@ function compileCalls(op, targets, prefix, errors) {
|
|
|
319
208
|
connectorVersion: entry.version,
|
|
320
209
|
operation: parsed.operation,
|
|
321
210
|
signatureHash: computeSignatureHash(parsed.operation, signature),
|
|
211
|
+
...(entry.directEndpoint === undefined ? {} : { customerEndpoint: entry.directEndpoint }),
|
|
322
212
|
};
|
|
323
213
|
}
|
|
324
214
|
return Object.keys(calls).length > 0 ? calls : undefined;
|
|
@@ -329,210 +219,4 @@ function parseCallTarget(target) {
|
|
|
329
219
|
return null;
|
|
330
220
|
return { connectorId: parts[0], operation: parts[1] };
|
|
331
221
|
}
|
|
332
|
-
function validateFakeShape(op, path, errors) {
|
|
333
|
-
if (op.fake === undefined)
|
|
334
|
-
return;
|
|
335
|
-
if ('pages' in op.fake && op.pagination === undefined) {
|
|
336
|
-
errors.push({
|
|
337
|
-
code: 'fake_pages_without_pagination',
|
|
338
|
-
path: `${path}.pages`,
|
|
339
|
-
message: 'fake.pages is only supported on paginated operations',
|
|
340
|
-
});
|
|
341
|
-
}
|
|
342
|
-
if ('response' in op.fake && op.pagination !== undefined) {
|
|
343
|
-
errors.push({
|
|
344
|
-
code: 'fake_response_for_paginated_operation',
|
|
345
|
-
path: `${path}.response`,
|
|
346
|
-
message: 'paginated operations must use fake.pages so continuation behavior is explicit',
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* Build an `OperationSignature` from the declared type and input/output schemas. The parse boundary
|
|
352
|
-
* (`ioSchema`) already normalized declared values; omitted ones normalize to the closed-empty
|
|
353
|
-
* object here (ADR 0139).
|
|
354
|
-
*/
|
|
355
|
-
function toSignature(type, input, output) {
|
|
356
|
-
return {
|
|
357
|
-
type,
|
|
358
|
-
input: normalizeOperationIoSchema(input),
|
|
359
|
-
output: normalizeOperationIoSchema(output),
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
function compileRequest(request, path, errors) {
|
|
363
|
-
if (request === undefined)
|
|
364
|
-
return undefined;
|
|
365
|
-
return isRecord(request) && !Array.isArray(request)
|
|
366
|
-
? { kind: 'map', map: compileExprMap(request, REQUEST_ROOTS, path, errors) }
|
|
367
|
-
: { kind: 'value', node: compileExpr(request, REQUEST_ROOTS, path, errors) };
|
|
368
|
-
}
|
|
369
|
-
function isRecord(value) {
|
|
370
|
-
return value !== null && typeof value === 'object';
|
|
371
|
-
}
|
|
372
|
-
function buildOperation(op, signature, requestAst, responseAst, headersAst, pagination, fake, projection) {
|
|
373
|
-
const resilience = httpResilience(op.resilience);
|
|
374
|
-
return {
|
|
375
|
-
method: op.method ?? 'GET',
|
|
376
|
-
path: op.path,
|
|
377
|
-
...(op.query ? { query: op.query } : {}),
|
|
378
|
-
signature,
|
|
379
|
-
...(op.auth ? { auth: toAuthScheme(op.auth) } : {}),
|
|
380
|
-
...(resilience !== undefined ? { resilience } : {}),
|
|
381
|
-
...(pagination !== undefined ? { pagination } : {}),
|
|
382
|
-
...(fake !== undefined ? { fake } : {}),
|
|
383
|
-
...(projection !== undefined ? { projection } : {}),
|
|
384
|
-
...(op.responseType !== undefined ? { responseType: op.responseType } : {}),
|
|
385
|
-
...(op.requestEncoding !== undefined ? { requestEncoding: op.requestEncoding } : {}),
|
|
386
|
-
...(requestAst
|
|
387
|
-
? {
|
|
388
|
-
body: (args, env) => requestAst.kind === 'map'
|
|
389
|
-
? evalMap(requestAst.map, { args, env })
|
|
390
|
-
: evaluateValue(requestAst.node, { args, env }, 'request'),
|
|
391
|
-
}
|
|
392
|
-
: {}),
|
|
393
|
-
...(responseAst
|
|
394
|
-
? { mapResponse: (json, args) => evalMap(responseAst, { args, response: json }) }
|
|
395
|
-
: {}),
|
|
396
|
-
...(headersAst
|
|
397
|
-
? { headers: (args, env) => toHeaderRecord(evalMap(headersAst, { args, env })) }
|
|
398
|
-
: {}),
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
/**
|
|
402
|
-
* Coerce an evaluated header map into `Record<string, string>`. `evalMap` already omits keys whose
|
|
403
|
-
* expression resolved to `undefined` (so optional headers self-omit); here we stringify the rest and
|
|
404
|
-
* drop `null`. Header *names* that would collide with transport-critical fields are dropped so a
|
|
405
|
-
* mapping can never break the SSRF/transport invariants.
|
|
406
|
-
*/
|
|
407
|
-
const PROTECTED_HEADER_NAMES = new Set([
|
|
408
|
-
'host',
|
|
409
|
-
'content-length',
|
|
410
|
-
'content-type',
|
|
411
|
-
'transfer-encoding',
|
|
412
|
-
'connection',
|
|
413
|
-
]);
|
|
414
|
-
const CREDENTIAL_HEADER_NAMES = new Set([
|
|
415
|
-
'authorization',
|
|
416
|
-
'proxy-authorization',
|
|
417
|
-
'cookie',
|
|
418
|
-
'set-cookie',
|
|
419
|
-
'x-api-key',
|
|
420
|
-
]);
|
|
421
|
-
function validateHeaderNames(headers, path, errors) {
|
|
422
|
-
if (headers === undefined)
|
|
423
|
-
return;
|
|
424
|
-
for (const name of Object.keys(headers)) {
|
|
425
|
-
const lower = name.toLowerCase();
|
|
426
|
-
if (!CREDENTIAL_HEADER_NAMES.has(lower))
|
|
427
|
-
continue;
|
|
428
|
-
errors.push({
|
|
429
|
-
code: 'credential_header_not_allowed',
|
|
430
|
-
path: `${path}.${name}`,
|
|
431
|
-
message: `Per-operation header "${name}" is credential-bearing; use connector auth instead`,
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
function toHeaderRecord(map) {
|
|
436
|
-
const out = {};
|
|
437
|
-
for (const [name, value] of Object.entries(map)) {
|
|
438
|
-
if (value === null || value === undefined)
|
|
439
|
-
continue;
|
|
440
|
-
const lower = name.toLowerCase();
|
|
441
|
-
if (PROTECTED_HEADER_NAMES.has(lower))
|
|
442
|
-
continue;
|
|
443
|
-
// Emit lowercase names so the merge in connector-http (`{ ...opHeaders, ...authHeaders }`)
|
|
444
|
-
// is an exact-key override: the auth scheme and static defaults are already lowercase, so a
|
|
445
|
-
// per-op `Authorization` must normalize to `authorization` for `auth` to win. Otherwise the
|
|
446
|
-
// two casings survive as separate object keys and `new Headers()` combines them into one
|
|
447
|
-
// comma-joined value (WHATWG Fetch), silently defeating the ADR 0134 precedence guarantee.
|
|
448
|
-
out[lower] = typeof value === 'string' ? value : String(value);
|
|
449
|
-
}
|
|
450
|
-
return out;
|
|
451
|
-
}
|
|
452
|
-
function compileProjection(op, path, errors) {
|
|
453
|
-
const projection = op.projection;
|
|
454
|
-
if (projection === undefined)
|
|
455
|
-
return undefined;
|
|
456
|
-
const widgetMetaAst = projection.widgetMeta
|
|
457
|
-
? compileExprMap(projection.widgetMeta, PROJECTION_ROOTS, `${path}.widgetMeta`, errors)
|
|
458
|
-
: undefined;
|
|
459
|
-
const timestampAst = projection.freshness?.timestamp !== undefined
|
|
460
|
-
? compileExpr(projection.freshness.timestamp, PROJECTION_ROOTS, `${path}.freshness.timestamp`, errors)
|
|
461
|
-
: undefined;
|
|
462
|
-
return {
|
|
463
|
-
...(projection.hiddenFields !== undefined ? { hiddenFields: projection.hiddenFields } : {}),
|
|
464
|
-
...(projection.sourceLabel !== undefined ? { sourceLabel: projection.sourceLabel } : {}),
|
|
465
|
-
...(widgetMetaAst
|
|
466
|
-
? {
|
|
467
|
-
widgetMeta: (json, args, output) => evalMap(widgetMetaAst, { args, response: json, output }),
|
|
468
|
-
}
|
|
469
|
-
: {}),
|
|
470
|
-
...(projection.freshness !== undefined
|
|
471
|
-
? {
|
|
472
|
-
freshness: {
|
|
473
|
-
ttlMs: projection.freshness.ttlMs,
|
|
474
|
-
...(timestampAst !== undefined
|
|
475
|
-
? {
|
|
476
|
-
timestamp: (json, args, output) => evaluateValue(timestampAst, { args, response: json, output }, `${path}.freshness.timestamp`),
|
|
477
|
-
}
|
|
478
|
-
: {}),
|
|
479
|
-
},
|
|
480
|
-
}
|
|
481
|
-
: {}),
|
|
482
|
-
};
|
|
483
|
-
}
|
|
484
|
-
function httpFake(fake) {
|
|
485
|
-
if (fake === undefined)
|
|
486
|
-
return undefined;
|
|
487
|
-
if ('pages' in fake)
|
|
488
|
-
return { pages: fake.pages };
|
|
489
|
-
return { response: fake.response };
|
|
490
|
-
}
|
|
491
|
-
function compilePagination(op, path, errors) {
|
|
492
|
-
const pagination = op.pagination;
|
|
493
|
-
if (pagination === undefined)
|
|
494
|
-
return undefined;
|
|
495
|
-
const items = compileExpr(pagination.items, PAGINATION_ROOTS, `${path}.items`, errors);
|
|
496
|
-
if (pagination.kind === 'cursor') {
|
|
497
|
-
const nextCursor = compileExpr(pagination.nextCursor, PAGINATION_ROOTS, `${path}.nextCursor`, errors);
|
|
498
|
-
return {
|
|
499
|
-
kind: 'cursor',
|
|
500
|
-
cursorParam: pagination.cursorParam,
|
|
501
|
-
items: (json, args) => evaluateValue(items, { args, response: json }, `${path}.items`),
|
|
502
|
-
nextCursor: (json, args) => evaluateValue(nextCursor, { args, response: json }, `${path}.nextCursor`),
|
|
503
|
-
...(pagination.maxPages !== undefined ? { maxPages: pagination.maxPages } : {}),
|
|
504
|
-
...(pagination.maxItems !== undefined ? { maxItems: pagination.maxItems } : {}),
|
|
505
|
-
};
|
|
506
|
-
}
|
|
507
|
-
const hasMore = compileExpr(pagination.hasMore, PAGINATION_ROOTS, `${path}.hasMore`, errors);
|
|
508
|
-
return {
|
|
509
|
-
kind: 'pageNumber',
|
|
510
|
-
pageParam: pagination.pageParam,
|
|
511
|
-
...(pagination.startPage !== undefined ? { startPage: pagination.startPage } : {}),
|
|
512
|
-
items: (json, args) => evaluateValue(items, { args, response: json }, `${path}.items`),
|
|
513
|
-
hasMore: (json, args) => evaluateValue(hasMore, { args, response: json }, `${path}.hasMore`),
|
|
514
|
-
...(pagination.maxPages !== undefined ? { maxPages: pagination.maxPages } : {}),
|
|
515
|
-
...(pagination.maxItems !== undefined ? { maxItems: pagination.maxItems } : {}),
|
|
516
|
-
};
|
|
517
|
-
}
|
|
518
|
-
function httpResilience(op) {
|
|
519
|
-
if (op === undefined)
|
|
520
|
-
return undefined;
|
|
521
|
-
return {
|
|
522
|
-
...(op.timeoutMs !== undefined ? { timeoutMs: op.timeoutMs } : {}),
|
|
523
|
-
...(op.retry !== undefined
|
|
524
|
-
? {
|
|
525
|
-
retry: {
|
|
526
|
-
...(op.retry.maxAttempts !== undefined ? { maxAttempts: op.retry.maxAttempts } : {}),
|
|
527
|
-
...(op.retry.baseDelayMs !== undefined ? { baseDelayMs: op.retry.baseDelayMs } : {}),
|
|
528
|
-
...(op.retry.maxDelayMs !== undefined ? { maxDelayMs: op.retry.maxDelayMs } : {}),
|
|
529
|
-
...(op.retry.backoffMultiplier !== undefined
|
|
530
|
-
? { backoffMultiplier: op.retry.backoffMultiplier }
|
|
531
|
-
: {}),
|
|
532
|
-
...(op.retry.retryOn !== undefined ? { retryOn: op.retry.retryOn } : {}),
|
|
533
|
-
},
|
|
534
|
-
}
|
|
535
|
-
: {}),
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
222
|
//# sourceMappingURL=compile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.js","sourceRoot":"","sources":["../src/compile.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,oBAAoB,EAGpB,0BAA0B,GAG3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,aAAa,EAGb,cAAc,EACd,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,aAAa,GAMd,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAkB,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAGL,WAAW,EACX,cAAc,EACd,OAAO,GAER,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAOrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,2BAA2B,EAC3B,oBAAoB,GACrB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C,CAAC,KAAK,EAAE,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE;QAAE,OAAO,IAAI,CAAC;IAC1E,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC,CAAW,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAW,EAAE,CAAC;AAC5E,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CatalogCustomerRouting } from '@noodle-borg/compiler';
|
|
2
|
+
import type { ConnectorCompileError } from './compile-expr.js';
|
|
3
|
+
import type { ComputeConnectorDef, HttpConnectorDef } from './schema.js';
|
|
4
|
+
type ConnectorDef = HttpConnectorDef | ComputeConnectorDef;
|
|
5
|
+
/**
|
|
6
|
+
* Precompute direct and transitive customer-endpoint dependencies after call-graph validation.
|
|
7
|
+
* Runtime consumers receive this data from the catalog/artifact and never rediscover connector edges.
|
|
8
|
+
*/
|
|
9
|
+
export declare function collectCatalogCustomerRouting(definitions: readonly ConnectorDef[], errors: ConnectorCompileError[]): ReadonlyMap<string, CatalogCustomerRouting>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=customer-routing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer-routing.d.ts","sourceRoot":"","sources":["../src/customer-routing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAA0B,MAAM,uBAAuB,CAAC;AAC5F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEzE,KAAK,YAAY,GAAG,gBAAgB,GAAG,mBAAmB,CAAC;AAyB3D;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,SAAS,YAAY,EAAE,EACpC,MAAM,EAAE,qBAAqB,EAAE,GAC9B,WAAW,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAiG7C"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { connectorIdentityKey, operationIdentityKey } from './identity-key.js';
|
|
2
|
+
function operationKey(def, operation) {
|
|
3
|
+
return operationIdentityKey(def.id, def.version, operation);
|
|
4
|
+
}
|
|
5
|
+
function parseCallTarget(target) {
|
|
6
|
+
const [connectorId, operation, extra] = target.split('.');
|
|
7
|
+
if (connectorId === undefined || operation === undefined || extra !== undefined)
|
|
8
|
+
return undefined;
|
|
9
|
+
return { connectorId, operation };
|
|
10
|
+
}
|
|
11
|
+
function sorted(values) {
|
|
12
|
+
return [...values].sort();
|
|
13
|
+
}
|
|
14
|
+
function samePolicy(left, right) {
|
|
15
|
+
return JSON.stringify(left) === JSON.stringify(right);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Precompute direct and transitive customer-endpoint dependencies after call-graph validation.
|
|
19
|
+
* Runtime consumers receive this data from the catalog/artifact and never rediscover connector edges.
|
|
20
|
+
*/
|
|
21
|
+
export function collectCatalogCustomerRouting(definitions, errors) {
|
|
22
|
+
const byId = new Map();
|
|
23
|
+
const policies = new Map();
|
|
24
|
+
for (const def of definitions) {
|
|
25
|
+
byId.set(def.id, byId.has(def.id) ? 'ambiguous' : def);
|
|
26
|
+
if (!('http' in def) || typeof def.http.baseUrl === 'string')
|
|
27
|
+
continue;
|
|
28
|
+
const { name, policy } = def.http.baseUrl;
|
|
29
|
+
const existing = policies.get(name);
|
|
30
|
+
if (existing !== undefined && !samePolicy(existing, policy)) {
|
|
31
|
+
errors.push({
|
|
32
|
+
code: 'customer_endpoint_policy_conflict',
|
|
33
|
+
path: `connectors.${def.id}.http.baseUrl.policy`,
|
|
34
|
+
message: `customer endpoint "${name}" has conflicting policies`,
|
|
35
|
+
});
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
policies.set(name, policy);
|
|
39
|
+
}
|
|
40
|
+
const memo = new Map();
|
|
41
|
+
const visiting = new Set();
|
|
42
|
+
const dependenciesFor = (def, operationName) => {
|
|
43
|
+
const key = operationKey(def, operationName);
|
|
44
|
+
const cached = memo.get(key);
|
|
45
|
+
if (cached !== undefined)
|
|
46
|
+
return cached;
|
|
47
|
+
if (visiting.has(key))
|
|
48
|
+
return { endpoints: new Set(), actionEndpoints: new Set() };
|
|
49
|
+
visiting.add(key);
|
|
50
|
+
const operation = def.operations[operationName];
|
|
51
|
+
const endpoints = new Set();
|
|
52
|
+
const actionEndpoints = new Set();
|
|
53
|
+
if ('http' in def) {
|
|
54
|
+
if (typeof def.http.baseUrl !== 'string') {
|
|
55
|
+
endpoints.add(def.http.baseUrl.name);
|
|
56
|
+
if (operation?.type === 'action')
|
|
57
|
+
actionEndpoints.add(def.http.baseUrl.name);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
const computeOperation = def.operations[operationName];
|
|
62
|
+
if (computeOperation?.calls === undefined) {
|
|
63
|
+
visiting.delete(key);
|
|
64
|
+
const result = { endpoints, actionEndpoints };
|
|
65
|
+
memo.set(key, result);
|
|
66
|
+
return result;
|
|
67
|
+
}
|
|
68
|
+
for (const target of Object.values(computeOperation.calls)) {
|
|
69
|
+
const parsed = parseCallTarget(target);
|
|
70
|
+
if (parsed === undefined)
|
|
71
|
+
continue;
|
|
72
|
+
const targetDef = byId.get(parsed.connectorId);
|
|
73
|
+
if (targetDef === undefined || targetDef === 'ambiguous')
|
|
74
|
+
continue;
|
|
75
|
+
if (targetDef.operations[parsed.operation] === undefined)
|
|
76
|
+
continue;
|
|
77
|
+
const dependency = dependenciesFor(targetDef, parsed.operation);
|
|
78
|
+
for (const endpoint of dependency.endpoints)
|
|
79
|
+
endpoints.add(endpoint);
|
|
80
|
+
for (const endpoint of dependency.actionEndpoints)
|
|
81
|
+
actionEndpoints.add(endpoint);
|
|
82
|
+
}
|
|
83
|
+
if (computeOperation.type === 'action') {
|
|
84
|
+
actionEndpoints.clear();
|
|
85
|
+
for (const endpoint of endpoints)
|
|
86
|
+
actionEndpoints.add(endpoint);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
visiting.delete(key);
|
|
90
|
+
const result = { endpoints, actionEndpoints };
|
|
91
|
+
memo.set(key, result);
|
|
92
|
+
return result;
|
|
93
|
+
};
|
|
94
|
+
const routingByConnector = new Map();
|
|
95
|
+
for (const def of definitions) {
|
|
96
|
+
const operationEndpoints = Object.create(null);
|
|
97
|
+
const operationActionEndpoints = Object.create(null);
|
|
98
|
+
const connectorEndpoints = new Set();
|
|
99
|
+
for (const operationName of Object.keys(def.operations)) {
|
|
100
|
+
const dependency = dependenciesFor(def, operationName);
|
|
101
|
+
operationEndpoints[operationName] = sorted(dependency.endpoints);
|
|
102
|
+
operationActionEndpoints[operationName] = sorted(dependency.actionEndpoints);
|
|
103
|
+
for (const endpoint of dependency.endpoints)
|
|
104
|
+
connectorEndpoints.add(endpoint);
|
|
105
|
+
}
|
|
106
|
+
if (connectorEndpoints.size === 0)
|
|
107
|
+
continue;
|
|
108
|
+
const endpoints = Object.create(null);
|
|
109
|
+
for (const endpoint of sorted(connectorEndpoints)) {
|
|
110
|
+
const policy = policies.get(endpoint);
|
|
111
|
+
if (policy !== undefined)
|
|
112
|
+
endpoints[endpoint] = policy;
|
|
113
|
+
}
|
|
114
|
+
const directEndpoint = 'http' in def && typeof def.http.baseUrl !== 'string' ? def.http.baseUrl.name : undefined;
|
|
115
|
+
routingByConnector.set(connectorIdentityKey(def.id, def.version), {
|
|
116
|
+
...(directEndpoint === undefined ? {} : { directEndpoint }),
|
|
117
|
+
endpoints,
|
|
118
|
+
operationEndpoints,
|
|
119
|
+
operationActionEndpoints,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
return routingByConnector;
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=customer-routing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer-routing.js","sourceRoot":"","sources":["../src/customer-routing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBA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KAAK,MAAM,QAAQ,IAAI,UAAU,CAAC,SAAS;gBAAE,kBAAkB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAChF,CAAC;QACD,IAAI,kBAAkB,CAAC,IAAI,KAAK,CAAC;YAAE,SAAS;QAE5C,MAAM,SAAS,GAA2C,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC9E,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,kBAAkB,CAAC,EAAE,CAAC;YAClD,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACtC,IAAI,MAAM,KAAK,SAAS;gBAAE,SAAS,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;QACzD,CAAC;QACD,MAAM,cAAc,GAClB,MAAM,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;QAC5F,kBAAkB,CAAC,GAAG,CAAC,oBAAoB,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,OAAO,CAAC,EAAE;YAChE,GAAG,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC;YAC3D,SAAS;YACT,kBAAkB;YAClB,wBAAwB;SACzB,CAAC,CAAC;IACL,CAAC;IAED,OAAO,kBAAkB,CAAC;AAC5B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ConnectorCompileError } from './compile-expr.js';
|
|
2
|
+
export declare function validateHeaderNames(headers: Record<string, unknown> | undefined, path: string, errors: ConnectorCompileError[]): void;
|
|
3
|
+
export declare function toHeaderRecord(map: Record<string, unknown>): Record<string, string>;
|
|
4
|
+
//# sourceMappingURL=http-headers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-headers.d.ts","sourceRoot":"","sources":["../src/http-headers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAwB/D,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC5C,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,qBAAqB,EAAE,GAC9B,IAAI,CAWN;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAcnF"}
|