@kindgi/api 0.0.0-bootstrap.0 → 0.1.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 +201 -0
- package/README.md +216 -1
- package/dist/adapter-binding.d.ts +177 -0
- package/dist/adapter-binding.d.ts.map +1 -0
- package/dist/adapter-binding.js +12 -0
- package/dist/adapter-binding.js.map +1 -0
- package/dist/agent-binding.d.ts +207 -0
- package/dist/agent-binding.d.ts.map +1 -0
- package/dist/agent-binding.js +4 -0
- package/dist/agent-binding.js.map +1 -0
- package/dist/app.d.ts +770 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +396 -0
- package/dist/app.js.map +1 -0
- package/dist/capability-binding.d.ts +76 -0
- package/dist/capability-binding.d.ts.map +1 -0
- package/dist/capability-binding.js +4 -0
- package/dist/capability-binding.js.map +1 -0
- package/dist/cost-binding.d.ts +175 -0
- package/dist/cost-binding.d.ts.map +1 -0
- package/dist/cost-binding.js +13 -0
- package/dist/cost-binding.js.map +1 -0
- package/dist/deployment-binding.d.ts +201 -0
- package/dist/deployment-binding.d.ts.map +1 -0
- package/dist/deployment-binding.js +4 -0
- package/dist/deployment-binding.js.map +1 -0
- package/dist/env-binding.d.ts +132 -0
- package/dist/env-binding.d.ts.map +1 -0
- package/dist/env-binding.js +4 -0
- package/dist/env-binding.js.map +1 -0
- package/dist/errors.d.ts +37 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +264 -0
- package/dist/errors.js.map +1 -0
- package/dist/eval-run-binding.d.ts +196 -0
- package/dist/eval-run-binding.d.ts.map +1 -0
- package/dist/eval-run-binding.js +16 -0
- package/dist/eval-run-binding.js.map +1 -0
- package/dist/eval-run-dispatcher.d.ts +131 -0
- package/dist/eval-run-dispatcher.d.ts.map +1 -0
- package/dist/eval-run-dispatcher.js +368 -0
- package/dist/eval-run-dispatcher.js.map +1 -0
- package/dist/eval-suite-binding.d.ts +227 -0
- package/dist/eval-suite-binding.d.ts.map +1 -0
- package/dist/eval-suite-binding.js +24 -0
- package/dist/eval-suite-binding.js.map +1 -0
- package/dist/event-bus-binding.d.ts +107 -0
- package/dist/event-bus-binding.d.ts.map +1 -0
- package/dist/event-bus-binding.js +5 -0
- package/dist/event-bus-binding.js.map +1 -0
- package/dist/flow-binding.d.ts +194 -0
- package/dist/flow-binding.d.ts.map +1 -0
- package/dist/flow-binding.js +4 -0
- package/dist/flow-binding.js.map +1 -0
- package/dist/guardrail-binding.d.ts +138 -0
- package/dist/guardrail-binding.d.ts.map +1 -0
- package/dist/guardrail-binding.js +4 -0
- package/dist/guardrail-binding.js.map +1 -0
- package/dist/handler-binding.d.ts +126 -0
- package/dist/handler-binding.d.ts.map +1 -0
- package/dist/handler-binding.js +4 -0
- package/dist/handler-binding.js.map +1 -0
- package/dist/hitl-binding.d.ts +115 -0
- package/dist/hitl-binding.d.ts.map +1 -0
- package/dist/hitl-binding.js +4 -0
- package/dist/hitl-binding.js.map +1 -0
- package/dist/identity-directory-binding.d.ts +116 -0
- package/dist/identity-directory-binding.d.ts.map +1 -0
- package/dist/identity-directory-binding.js +4 -0
- package/dist/identity-directory-binding.js.map +1 -0
- package/dist/identity-provider-binding.d.ts +184 -0
- package/dist/identity-provider-binding.d.ts.map +1 -0
- package/dist/identity-provider-binding.js +4 -0
- package/dist/identity-provider-binding.js.map +1 -0
- package/dist/image-registry-binding.d.ts +165 -0
- package/dist/image-registry-binding.d.ts.map +1 -0
- package/dist/image-registry-binding.js +4 -0
- package/dist/image-registry-binding.js.map +1 -0
- package/dist/index.d.ts +72 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/key-management-binding.d.ts +101 -0
- package/dist/key-management-binding.d.ts.map +1 -0
- package/dist/key-management-binding.js +4 -0
- package/dist/key-management-binding.js.map +1 -0
- package/dist/mcp-endpoint-binding.d.ts +312 -0
- package/dist/mcp-endpoint-binding.d.ts.map +1 -0
- package/dist/mcp-endpoint-binding.js +12 -0
- package/dist/mcp-endpoint-binding.js.map +1 -0
- package/dist/memory-binding.d.ts +209 -0
- package/dist/memory-binding.d.ts.map +1 -0
- package/dist/memory-binding.js +4 -0
- package/dist/memory-binding.js.map +1 -0
- package/dist/middleware/auth.d.ts +168 -0
- package/dist/middleware/auth.d.ts.map +1 -0
- package/dist/middleware/auth.js +247 -0
- package/dist/middleware/auth.js.map +1 -0
- package/dist/middleware/authorize.d.ts +26 -0
- package/dist/middleware/authorize.d.ts.map +1 -0
- package/dist/middleware/authorize.js +65 -0
- package/dist/middleware/authorize.js.map +1 -0
- package/dist/middleware/error-mapper.d.ts +13 -0
- package/dist/middleware/error-mapper.d.ts.map +1 -0
- package/dist/middleware/error-mapper.js +32 -0
- package/dist/middleware/error-mapper.js.map +1 -0
- package/dist/middleware/idempotency.d.ts +43 -0
- package/dist/middleware/idempotency.d.ts.map +1 -0
- package/dist/middleware/idempotency.js +118 -0
- package/dist/middleware/idempotency.js.map +1 -0
- package/dist/middleware/principal.d.ts +4 -0
- package/dist/middleware/principal.d.ts.map +1 -0
- package/dist/middleware/principal.js +42 -0
- package/dist/middleware/principal.js.map +1 -0
- package/dist/middleware/public-run-routes.d.ts +16 -0
- package/dist/middleware/public-run-routes.d.ts.map +1 -0
- package/dist/middleware/public-run-routes.js +43 -0
- package/dist/middleware/public-run-routes.js.map +1 -0
- package/dist/middleware/request-id.d.ts +14 -0
- package/dist/middleware/request-id.d.ts.map +1 -0
- package/dist/middleware/request-id.js +24 -0
- package/dist/middleware/request-id.js.map +1 -0
- package/dist/middleware/sigv4-verify.d.ts +64 -0
- package/dist/middleware/sigv4-verify.d.ts.map +1 -0
- package/dist/middleware/sigv4-verify.js +286 -0
- package/dist/middleware/sigv4-verify.js.map +1 -0
- package/dist/middleware/sigv4.d.ts +25 -0
- package/dist/middleware/sigv4.d.ts.map +1 -0
- package/dist/middleware/sigv4.js +120 -0
- package/dist/middleware/sigv4.js.map +1 -0
- package/dist/openapi/generate.d.ts +15 -0
- package/dist/openapi/generate.d.ts.map +1 -0
- package/dist/openapi/generate.js +241 -0
- package/dist/openapi/generate.js.map +1 -0
- package/dist/openapi/operations.d.ts +70 -0
- package/dist/openapi/operations.d.ts.map +1 -0
- package/dist/openapi/operations.js +5051 -0
- package/dist/openapi/operations.js.map +1 -0
- package/dist/openapi/schemas.d.ts +590 -0
- package/dist/openapi/schemas.d.ts.map +1 -0
- package/dist/openapi/schemas.js +5820 -0
- package/dist/openapi/schemas.js.map +1 -0
- package/dist/provenance-binding.d.ts +116 -0
- package/dist/provenance-binding.d.ts.map +1 -0
- package/dist/provenance-binding.js +31 -0
- package/dist/provenance-binding.js.map +1 -0
- package/dist/provider-binding.d.ts +174 -0
- package/dist/provider-binding.d.ts.map +1 -0
- package/dist/provider-binding.js +4 -0
- package/dist/provider-binding.js.map +1 -0
- package/dist/public-run-token.d.ts +97 -0
- package/dist/public-run-token.d.ts.map +1 -0
- package/dist/public-run-token.js +167 -0
- package/dist/public-run-token.js.map +1 -0
- package/dist/retention-binding.d.ts +69 -0
- package/dist/retention-binding.d.ts.map +1 -0
- package/dist/retention-binding.js +4 -0
- package/dist/retention-binding.js.map +1 -0
- package/dist/reviewer-binding.d.ts +84 -0
- package/dist/reviewer-binding.d.ts.map +1 -0
- package/dist/reviewer-binding.js +4 -0
- package/dist/reviewer-binding.js.map +1 -0
- package/dist/rotation-status-store.d.ts +96 -0
- package/dist/rotation-status-store.d.ts.map +1 -0
- package/dist/rotation-status-store.js +106 -0
- package/dist/rotation-status-store.js.map +1 -0
- package/dist/routes/adapters.d.ts +29 -0
- package/dist/routes/adapters.d.ts.map +1 -0
- package/dist/routes/adapters.js +230 -0
- package/dist/routes/adapters.js.map +1 -0
- package/dist/routes/agents.d.ts +17 -0
- package/dist/routes/agents.d.ts.map +1 -0
- package/dist/routes/agents.js +342 -0
- package/dist/routes/agents.js.map +1 -0
- package/dist/routes/approvals.d.ts +37 -0
- package/dist/routes/approvals.d.ts.map +1 -0
- package/dist/routes/approvals.js +551 -0
- package/dist/routes/approvals.js.map +1 -0
- package/dist/routes/artifacts.d.ts +25 -0
- package/dist/routes/artifacts.d.ts.map +1 -0
- package/dist/routes/artifacts.js +265 -0
- package/dist/routes/artifacts.js.map +1 -0
- package/dist/routes/audit.d.ts +6 -0
- package/dist/routes/audit.d.ts.map +1 -0
- package/dist/routes/audit.js +162 -0
- package/dist/routes/audit.js.map +1 -0
- package/dist/routes/auth.d.ts +47 -0
- package/dist/routes/auth.d.ts.map +1 -0
- package/dist/routes/auth.js +630 -0
- package/dist/routes/auth.js.map +1 -0
- package/dist/routes/capabilities.d.ts +14 -0
- package/dist/routes/capabilities.d.ts.map +1 -0
- package/dist/routes/capabilities.js +62 -0
- package/dist/routes/capabilities.js.map +1 -0
- package/dist/routes/compliance.d.ts +37 -0
- package/dist/routes/compliance.d.ts.map +1 -0
- package/dist/routes/compliance.js +321 -0
- package/dist/routes/compliance.js.map +1 -0
- package/dist/routes/conversations.d.ts +13 -0
- package/dist/routes/conversations.d.ts.map +1 -0
- package/dist/routes/conversations.js +295 -0
- package/dist/routes/conversations.js.map +1 -0
- package/dist/routes/cost.d.ts +24 -0
- package/dist/routes/cost.d.ts.map +1 -0
- package/dist/routes/cost.js +243 -0
- package/dist/routes/cost.js.map +1 -0
- package/dist/routes/deployments.d.ts +122 -0
- package/dist/routes/deployments.d.ts.map +1 -0
- package/dist/routes/deployments.js +1036 -0
- package/dist/routes/deployments.js.map +1 -0
- package/dist/routes/env.d.ts +62 -0
- package/dist/routes/env.d.ts.map +1 -0
- package/dist/routes/env.js +311 -0
- package/dist/routes/env.js.map +1 -0
- package/dist/routes/eval-runs.d.ts +28 -0
- package/dist/routes/eval-runs.d.ts.map +1 -0
- package/dist/routes/eval-runs.js +479 -0
- package/dist/routes/eval-runs.js.map +1 -0
- package/dist/routes/eval-suites.d.ts +24 -0
- package/dist/routes/eval-suites.d.ts.map +1 -0
- package/dist/routes/eval-suites.js +381 -0
- package/dist/routes/eval-suites.js.map +1 -0
- package/dist/routes/event-triggers.d.ts +12 -0
- package/dist/routes/event-triggers.d.ts.map +1 -0
- package/dist/routes/event-triggers.js +218 -0
- package/dist/routes/event-triggers.js.map +1 -0
- package/dist/routes/flows.d.ts +23 -0
- package/dist/routes/flows.d.ts.map +1 -0
- package/dist/routes/flows.js +344 -0
- package/dist/routes/flows.js.map +1 -0
- package/dist/routes/guardrails.d.ts +33 -0
- package/dist/routes/guardrails.d.ts.map +1 -0
- package/dist/routes/guardrails.js +236 -0
- package/dist/routes/guardrails.js.map +1 -0
- package/dist/routes/identity.d.ts +39 -0
- package/dist/routes/identity.d.ts.map +1 -0
- package/dist/routes/identity.js +138 -0
- package/dist/routes/identity.js.map +1 -0
- package/dist/routes/mcp.d.ts +23 -0
- package/dist/routes/mcp.d.ts.map +1 -0
- package/dist/routes/mcp.js +727 -0
- package/dist/routes/mcp.js.map +1 -0
- package/dist/routes/memory.d.ts +16 -0
- package/dist/routes/memory.d.ts.map +1 -0
- package/dist/routes/memory.js +353 -0
- package/dist/routes/memory.js.map +1 -0
- package/dist/routes/observations.d.ts +19 -0
- package/dist/routes/observations.d.ts.map +1 -0
- package/dist/routes/observations.js +135 -0
- package/dist/routes/observations.js.map +1 -0
- package/dist/routes/orgs.d.ts +24 -0
- package/dist/routes/orgs.d.ts.map +1 -0
- package/dist/routes/orgs.js +208 -0
- package/dist/routes/orgs.js.map +1 -0
- package/dist/routes/pagination.d.ts +18 -0
- package/dist/routes/pagination.d.ts.map +1 -0
- package/dist/routes/pagination.js +35 -0
- package/dist/routes/pagination.js.map +1 -0
- package/dist/routes/policies.d.ts +23 -0
- package/dist/routes/policies.d.ts.map +1 -0
- package/dist/routes/policies.js +314 -0
- package/dist/routes/policies.js.map +1 -0
- package/dist/routes/projects.d.ts +45 -0
- package/dist/routes/projects.d.ts.map +1 -0
- package/dist/routes/projects.js +485 -0
- package/dist/routes/projects.js.map +1 -0
- package/dist/routes/proposals.d.ts +24 -0
- package/dist/routes/proposals.d.ts.map +1 -0
- package/dist/routes/proposals.js +581 -0
- package/dist/routes/proposals.js.map +1 -0
- package/dist/routes/provenance.d.ts +34 -0
- package/dist/routes/provenance.d.ts.map +1 -0
- package/dist/routes/provenance.js +274 -0
- package/dist/routes/provenance.js.map +1 -0
- package/dist/routes/providers.d.ts +32 -0
- package/dist/routes/providers.d.ts.map +1 -0
- package/dist/routes/providers.js +490 -0
- package/dist/routes/providers.js.map +1 -0
- package/dist/routes/public-run-tokens.d.ts +17 -0
- package/dist/routes/public-run-tokens.d.ts.map +1 -0
- package/dist/routes/public-run-tokens.js +69 -0
- package/dist/routes/public-run-tokens.js.map +1 -0
- package/dist/routes/retention.d.ts +19 -0
- package/dist/routes/retention.d.ts.map +1 -0
- package/dist/routes/retention.js +152 -0
- package/dist/routes/retention.js.map +1 -0
- package/dist/routes/reviewers.d.ts +5 -0
- package/dist/routes/reviewers.d.ts.map +1 -0
- package/dist/routes/reviewers.js +161 -0
- package/dist/routes/reviewers.js.map +1 -0
- package/dist/routes/runs.d.ts +34 -0
- package/dist/routes/runs.d.ts.map +1 -0
- package/dist/routes/runs.js +773 -0
- package/dist/routes/runs.js.map +1 -0
- package/dist/routes/s3.d.ts +31 -0
- package/dist/routes/s3.d.ts.map +1 -0
- package/dist/routes/s3.js +433 -0
- package/dist/routes/s3.js.map +1 -0
- package/dist/routes/schedules.d.ts +20 -0
- package/dist/routes/schedules.d.ts.map +1 -0
- package/dist/routes/schedules.js +234 -0
- package/dist/routes/schedules.js.map +1 -0
- package/dist/routes/scope-params.d.ts +57 -0
- package/dist/routes/scope-params.d.ts.map +1 -0
- package/dist/routes/scope-params.js +105 -0
- package/dist/routes/scope-params.js.map +1 -0
- package/dist/routes/secret-ref.d.ts +20 -0
- package/dist/routes/secret-ref.d.ts.map +1 -0
- package/dist/routes/secret-ref.js +42 -0
- package/dist/routes/secret-ref.js.map +1 -0
- package/dist/routes/secrets.d.ts +53 -0
- package/dist/routes/secrets.d.ts.map +1 -0
- package/dist/routes/secrets.js +715 -0
- package/dist/routes/secrets.js.map +1 -0
- package/dist/routes/signing-keys.d.ts +23 -0
- package/dist/routes/signing-keys.d.ts.map +1 -0
- package/dist/routes/signing-keys.js +212 -0
- package/dist/routes/signing-keys.js.map +1 -0
- package/dist/routes/sse.d.ts +58 -0
- package/dist/routes/sse.d.ts.map +1 -0
- package/dist/routes/sse.js +92 -0
- package/dist/routes/sse.js.map +1 -0
- package/dist/routes/teams.d.ts +30 -0
- package/dist/routes/teams.d.ts.map +1 -0
- package/dist/routes/teams.js +443 -0
- package/dist/routes/teams.js.map +1 -0
- package/dist/routes/tenant.d.ts +57 -0
- package/dist/routes/tenant.d.ts.map +1 -0
- package/dist/routes/tenant.js +352 -0
- package/dist/routes/tenant.js.map +1 -0
- package/dist/routes/tokens.d.ts +14 -0
- package/dist/routes/tokens.d.ts.map +1 -0
- package/dist/routes/tokens.js +231 -0
- package/dist/routes/tokens.js.map +1 -0
- package/dist/routes/tools.d.ts +33 -0
- package/dist/routes/tools.d.ts.map +1 -0
- package/dist/routes/tools.js +380 -0
- package/dist/routes/tools.js.map +1 -0
- package/dist/routes/webhook-endpoints.d.ts +10 -0
- package/dist/routes/webhook-endpoints.d.ts.map +1 -0
- package/dist/routes/webhook-endpoints.js +407 -0
- package/dist/routes/webhook-endpoints.js.map +1 -0
- package/dist/routes/webhooks.d.ts +21 -0
- package/dist/routes/webhooks.d.ts.map +1 -0
- package/dist/routes/webhooks.js +228 -0
- package/dist/routes/webhooks.js.map +1 -0
- package/dist/s3-credential-binding.d.ts +54 -0
- package/dist/s3-credential-binding.d.ts.map +1 -0
- package/dist/s3-credential-binding.js +4 -0
- package/dist/s3-credential-binding.js.map +1 -0
- package/dist/secrets-binding.d.ts +281 -0
- package/dist/secrets-binding.d.ts.map +1 -0
- package/dist/secrets-binding.js +10 -0
- package/dist/secrets-binding.js.map +1 -0
- package/dist/secrets-provider-binding.d.ts +164 -0
- package/dist/secrets-provider-binding.d.ts.map +1 -0
- package/dist/secrets-provider-binding.js +4 -0
- package/dist/secrets-provider-binding.js.map +1 -0
- package/dist/session-store-binding.d.ts +148 -0
- package/dist/session-store-binding.d.ts.map +1 -0
- package/dist/session-store-binding.js +4 -0
- package/dist/session-store-binding.js.map +1 -0
- package/dist/signing-key-binding.d.ts +210 -0
- package/dist/signing-key-binding.d.ts.map +1 -0
- package/dist/signing-key-binding.js +4 -0
- package/dist/signing-key-binding.js.map +1 -0
- package/dist/state-store-binding.d.ts +53 -0
- package/dist/state-store-binding.d.ts.map +1 -0
- package/dist/state-store-binding.js +38 -0
- package/dist/state-store-binding.js.map +1 -0
- package/dist/supervisor-binding.d.ts +526 -0
- package/dist/supervisor-binding.d.ts.map +1 -0
- package/dist/supervisor-binding.js +4 -0
- package/dist/supervisor-binding.js.map +1 -0
- package/dist/tenant-host-access.d.ts +41 -0
- package/dist/tenant-host-access.d.ts.map +1 -0
- package/dist/tenant-host-access.js +42 -0
- package/dist/tenant-host-access.js.map +1 -0
- package/dist/token-admin.d.ts +99 -0
- package/dist/token-admin.d.ts.map +1 -0
- package/dist/token-admin.js +4 -0
- package/dist/token-admin.js.map +1 -0
- package/dist/tool-binding.d.ts +247 -0
- package/dist/tool-binding.d.ts.map +1 -0
- package/dist/tool-binding.js +4 -0
- package/dist/tool-binding.js.map +1 -0
- package/dist/trigger-binding.d.ts +13 -0
- package/dist/trigger-binding.d.ts.map +1 -0
- package/dist/trigger-binding.js +4 -0
- package/dist/trigger-binding.js.map +1 -0
- package/dist/types.d.ts +71 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -0
- package/dist/webhook-endpoint-binding.d.ts +230 -0
- package/dist/webhook-endpoint-binding.d.ts.map +1 -0
- package/dist/webhook-endpoint-binding.js +12 -0
- package/dist/webhook-endpoint-binding.js.map +1 -0
- package/dist/xml.d.ts +79 -0
- package/dist/xml.d.ts.map +1 -0
- package/dist/xml.js +115 -0
- package/dist/xml.js.map +1 -0
- package/openapi.json +29659 -0
- package/package.json +76 -4
- package/scripts/emit-openapi.mjs +44 -0
- package/src/adapter-binding.ts +204 -0
- package/src/agent-binding.ts +231 -0
- package/src/app.ts +1285 -0
- package/src/capability-binding.ts +83 -0
- package/src/cost-binding.ts +213 -0
- package/src/deployment-binding.ts +225 -0
- package/src/env-binding.ts +140 -0
- package/src/errors.ts +291 -0
- package/src/eval-run-binding.ts +209 -0
- package/src/eval-run-dispatcher.ts +497 -0
- package/src/eval-suite-binding.ts +257 -0
- package/src/event-bus-binding.ts +127 -0
- package/src/flow-binding.ts +213 -0
- package/src/guardrail-binding.ts +151 -0
- package/src/handler-binding.ts +132 -0
- package/src/hitl-binding.ts +172 -0
- package/src/identity-directory-binding.ts +128 -0
- package/src/identity-provider-binding.ts +203 -0
- package/src/image-registry-binding.ts +193 -0
- package/src/index.ts +606 -0
- package/src/key-management-binding.ts +91 -0
- package/src/mcp-endpoint-binding.ts +311 -0
- package/src/memory-binding.ts +239 -0
- package/src/middleware/auth.ts +437 -0
- package/src/middleware/authorize.ts +125 -0
- package/src/middleware/error-mapper.ts +37 -0
- package/src/middleware/idempotency.ts +160 -0
- package/src/middleware/principal.ts +64 -0
- package/src/middleware/public-run-routes.ts +50 -0
- package/src/middleware/request-id.ts +28 -0
- package/src/middleware/sigv4-verify.ts +374 -0
- package/src/middleware/sigv4.ts +165 -0
- package/src/openapi/generate.ts +307 -0
- package/src/openapi/operations.ts +5445 -0
- package/src/openapi/schemas.ts +6363 -0
- package/src/provenance-binding.ts +169 -0
- package/src/provider-binding.ts +196 -0
- package/src/public-run-token.ts +263 -0
- package/src/retention-binding.ts +78 -0
- package/src/reviewer-binding.ts +99 -0
- package/src/rotation-status-store.ts +209 -0
- package/src/routes/adapters.ts +319 -0
- package/src/routes/agents.ts +424 -0
- package/src/routes/approvals.ts +759 -0
- package/src/routes/artifacts.ts +317 -0
- package/src/routes/audit.ts +219 -0
- package/src/routes/auth.ts +806 -0
- package/src/routes/capabilities.ts +79 -0
- package/src/routes/compliance.ts +482 -0
- package/src/routes/conversations.ts +369 -0
- package/src/routes/cost.ts +327 -0
- package/src/routes/deployments.ts +1493 -0
- package/src/routes/env.ts +429 -0
- package/src/routes/eval-runs.ts +631 -0
- package/src/routes/eval-suites.ts +490 -0
- package/src/routes/event-triggers.ts +283 -0
- package/src/routes/flows.ts +423 -0
- package/src/routes/guardrails.ts +320 -0
- package/src/routes/identity.ts +203 -0
- package/src/routes/mcp.ts +940 -0
- package/src/routes/memory.ts +430 -0
- package/src/routes/observations.ts +175 -0
- package/src/routes/orgs.ts +273 -0
- package/src/routes/pagination.ts +51 -0
- package/src/routes/policies.ts +413 -0
- package/src/routes/projects.ts +634 -0
- package/src/routes/proposals.ts +719 -0
- package/src/routes/provenance.ts +406 -0
- package/src/routes/providers.ts +624 -0
- package/src/routes/public-run-tokens.ts +104 -0
- package/src/routes/retention.ts +193 -0
- package/src/routes/reviewers.ts +209 -0
- package/src/routes/runs.ts +981 -0
- package/src/routes/s3.ts +519 -0
- package/src/routes/schedules.ts +300 -0
- package/src/routes/scope-params.ts +133 -0
- package/src/routes/secret-ref.ts +52 -0
- package/src/routes/secrets.ts +975 -0
- package/src/routes/signing-keys.ts +259 -0
- package/src/routes/sse.ts +148 -0
- package/src/routes/teams.ts +584 -0
- package/src/routes/tenant.ts +530 -0
- package/src/routes/tokens.ts +285 -0
- package/src/routes/tools.ts +491 -0
- package/src/routes/webhook-endpoints.ts +534 -0
- package/src/routes/webhooks.ts +296 -0
- package/src/s3-credential-binding.ts +58 -0
- package/src/secrets-binding.ts +308 -0
- package/src/secrets-provider-binding.ts +167 -0
- package/src/session-store-binding.ts +163 -0
- package/src/signing-key-binding.ts +235 -0
- package/src/state-store-binding.ts +84 -0
- package/src/supervisor-binding.ts +554 -0
- package/src/tenant-host-access.ts +62 -0
- package/src/token-admin.ts +104 -0
- package/src/tool-binding.ts +274 -0
- package/src/trigger-binding.ts +38 -0
- package/src/types.ts +74 -0
- package/src/webhook-endpoint-binding.ts +246 -0
- package/src/xml.ts +196 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
// Copyright (C) 2026 Kindgi Inc.
|
|
3
|
+
|
|
4
|
+
export { createApp } from './app.js';
|
|
5
|
+
export type {
|
|
6
|
+
CreateAppInput,
|
|
7
|
+
OpenApiConfig,
|
|
8
|
+
ScalarDocsConfig,
|
|
9
|
+
SessionConfig,
|
|
10
|
+
} from './app.js';
|
|
11
|
+
export type { AppEnv } from './types.js';
|
|
12
|
+
export {
|
|
13
|
+
SESSION_TOKEN_PREFIX,
|
|
14
|
+
encodeSessionToken,
|
|
15
|
+
MULTI_TENANT_LOOKUP,
|
|
16
|
+
} from './middleware/auth.js';
|
|
17
|
+
export type { TokenResolution, TokenResolver } from './middleware/auth.js';
|
|
18
|
+
export type {
|
|
19
|
+
ClaimMappingScopesSpec,
|
|
20
|
+
ClaimMappingSpec,
|
|
21
|
+
IdentityProviderBinding,
|
|
22
|
+
IdentityProviderGetInput,
|
|
23
|
+
IdentityProviderKind,
|
|
24
|
+
IdentityProviderListInput,
|
|
25
|
+
IdentityProviderPage,
|
|
26
|
+
IdentityProviderRegisterInput,
|
|
27
|
+
IdentityProviderRegisterOutcome,
|
|
28
|
+
IdentityProviderUnregisterInput,
|
|
29
|
+
IdentityProviderUnregisterOutcome,
|
|
30
|
+
ProviderConfig,
|
|
31
|
+
ExchangeCodeFn,
|
|
32
|
+
ExchangeCodeInput,
|
|
33
|
+
ExchangeCodeOutcome,
|
|
34
|
+
RefreshTokenFn,
|
|
35
|
+
RefreshTokenInput,
|
|
36
|
+
} from './identity-provider-binding.js';
|
|
37
|
+
export type {
|
|
38
|
+
Session,
|
|
39
|
+
SessionCreateInput,
|
|
40
|
+
SessionCreateOutput,
|
|
41
|
+
SessionGetInput,
|
|
42
|
+
SessionListInput,
|
|
43
|
+
SessionPage,
|
|
44
|
+
SessionRevokeAllForUserInput,
|
|
45
|
+
SessionRevokeAllForUserOutcome,
|
|
46
|
+
SessionRevokeInput,
|
|
47
|
+
SessionRevokeOutcome,
|
|
48
|
+
SessionStoreBinding,
|
|
49
|
+
SessionTouchInput,
|
|
50
|
+
SessionTouchOutcome,
|
|
51
|
+
} from './session-store-binding.js';
|
|
52
|
+
export type {
|
|
53
|
+
IdentityDirectoryBinding,
|
|
54
|
+
IdentityGetUserInput,
|
|
55
|
+
IdentityListSessionsInput,
|
|
56
|
+
IdentityListUsersInput,
|
|
57
|
+
IdentityRevokeSessionsInput,
|
|
58
|
+
RevokeSessionsResult,
|
|
59
|
+
SessionSummary,
|
|
60
|
+
SessionSummaryPage,
|
|
61
|
+
UserCollectionPage,
|
|
62
|
+
UserRecord,
|
|
63
|
+
} from './identity-directory-binding.js';
|
|
64
|
+
export { createInMemoryOauthStateStore } from './state-store-binding.js';
|
|
65
|
+
export type {
|
|
66
|
+
OauthStateEntry,
|
|
67
|
+
OauthStateStore,
|
|
68
|
+
OauthStateTakeInput,
|
|
69
|
+
} from './state-store-binding.js';
|
|
70
|
+
export {
|
|
71
|
+
createInMemoryIdempotencyStore,
|
|
72
|
+
idempotencyMiddleware,
|
|
73
|
+
} from './middleware/idempotency.js';
|
|
74
|
+
export type { IdempotencyStore, StoredIdempotencyEntry } from './middleware/idempotency.js';
|
|
75
|
+
export { CURRENT_EVENT_BUS_ENVELOPE_VERSION } from './event-bus-binding.js';
|
|
76
|
+
export type {
|
|
77
|
+
EventBusBinding,
|
|
78
|
+
EventBusError,
|
|
79
|
+
EventPayload,
|
|
80
|
+
SubscribeOptions,
|
|
81
|
+
Subscription,
|
|
82
|
+
} from './event-bus-binding.js';
|
|
83
|
+
export {
|
|
84
|
+
API_TOKEN_ROLES,
|
|
85
|
+
type ApiTokenRecord,
|
|
86
|
+
type ApiTokenRole,
|
|
87
|
+
type TokenAdmin,
|
|
88
|
+
type TokenGetInput,
|
|
89
|
+
type TokenListInput,
|
|
90
|
+
type TokenMintInput,
|
|
91
|
+
type TokenMintOutput,
|
|
92
|
+
type TokenRevokeInput,
|
|
93
|
+
type TokenRevokeOutcome,
|
|
94
|
+
} from './token-admin.js';
|
|
95
|
+
export type {
|
|
96
|
+
InvokeAgentBindingInput,
|
|
97
|
+
InvokeFlowBindingInput,
|
|
98
|
+
RunHandlerBinding,
|
|
99
|
+
RunHandlerFailure,
|
|
100
|
+
RunHandlerOutcome,
|
|
101
|
+
} from './handler-binding.js';
|
|
102
|
+
export type {
|
|
103
|
+
ReviewerBinding,
|
|
104
|
+
ReviewerGetInput,
|
|
105
|
+
ReviewerListInput,
|
|
106
|
+
ReviewerLookupInput,
|
|
107
|
+
ReviewerPage,
|
|
108
|
+
ReviewerRecord,
|
|
109
|
+
ReviewerRegisterInput,
|
|
110
|
+
ReviewerRegisterOutcome,
|
|
111
|
+
ReviewerRegistryBinding,
|
|
112
|
+
ReviewerUnregisterInput,
|
|
113
|
+
ReviewerUnregisterOutcome,
|
|
114
|
+
} from './reviewer-binding.js';
|
|
115
|
+
export type {
|
|
116
|
+
Approval,
|
|
117
|
+
ApprovalStatus,
|
|
118
|
+
HitlBinding,
|
|
119
|
+
HitlBindingError,
|
|
120
|
+
ListApprovalsBindingInput,
|
|
121
|
+
ListApprovalsBindingResult,
|
|
122
|
+
ReviewDecision,
|
|
123
|
+
ReviewDecisionKind,
|
|
124
|
+
ReviewDecisionRecord,
|
|
125
|
+
SubmitReviewBindingInput,
|
|
126
|
+
SubmitReviewBindingResult,
|
|
127
|
+
} from './hitl-binding.js';
|
|
128
|
+
export type {
|
|
129
|
+
BlobDeleteOutcome,
|
|
130
|
+
BlobError,
|
|
131
|
+
BlobFilter,
|
|
132
|
+
BlobListPage,
|
|
133
|
+
BlobMeta,
|
|
134
|
+
BlobPutInput,
|
|
135
|
+
BlobRead,
|
|
136
|
+
BlobStorageBinding,
|
|
137
|
+
MultipartInitiateInput,
|
|
138
|
+
MultipartListPartsPage,
|
|
139
|
+
S3ListPage,
|
|
140
|
+
} from '@kindgi/blob-binding';
|
|
141
|
+
export type { S3Credential, S3CredentialBinding } from './s3-credential-binding.js';
|
|
142
|
+
export {
|
|
143
|
+
ADAPTER_KINDS,
|
|
144
|
+
ADAPTER_STATUSES,
|
|
145
|
+
} from './adapter-binding.js';
|
|
146
|
+
export type {
|
|
147
|
+
AdapterGetInput,
|
|
148
|
+
AdapterInfo,
|
|
149
|
+
AdapterKind,
|
|
150
|
+
AdapterListFilter,
|
|
151
|
+
AdapterListInput,
|
|
152
|
+
AdapterPage,
|
|
153
|
+
AdapterRegistryBinding,
|
|
154
|
+
AdapterStatus,
|
|
155
|
+
AdapterTestInput,
|
|
156
|
+
AdapterTestOutcome,
|
|
157
|
+
} from './adapter-binding.js';
|
|
158
|
+
export { TRIGGER_KINDS } from './trigger-binding.js';
|
|
159
|
+
export {
|
|
160
|
+
DEFAULT_PUBLIC_RUN_TOKEN_TTL_SECONDS,
|
|
161
|
+
MAX_PUBLIC_RUN_TOKEN_RUNS,
|
|
162
|
+
MAX_PUBLIC_RUN_TOKEN_TTL_SECONDS,
|
|
163
|
+
PUBLIC_RUN_TOKEN_PREFIX,
|
|
164
|
+
mintPublicRunToken,
|
|
165
|
+
verifyPublicRunToken,
|
|
166
|
+
} from './public-run-token.js';
|
|
167
|
+
export type {
|
|
168
|
+
MintPublicRunTokenInput,
|
|
169
|
+
MintPublicRunTokenResult,
|
|
170
|
+
PublicRunTokenClaims,
|
|
171
|
+
PublicRunTokenConfig,
|
|
172
|
+
VerifyPublicRunTokenFailure,
|
|
173
|
+
VerifyPublicRunTokenResult,
|
|
174
|
+
} from './public-run-token.js';
|
|
175
|
+
export {
|
|
176
|
+
WEBHOOK_DELIVERY_STATUSES,
|
|
177
|
+
WEBHOOK_EVENT_TYPES,
|
|
178
|
+
} from './webhook-endpoint-binding.js';
|
|
179
|
+
export type {
|
|
180
|
+
FinishedRun,
|
|
181
|
+
RunFinishedEvent,
|
|
182
|
+
WebhookDelivery,
|
|
183
|
+
WebhookDeliveryListInput,
|
|
184
|
+
WebhookDeliveryListOutcome,
|
|
185
|
+
WebhookDeliveryOutcome,
|
|
186
|
+
WebhookDeliveryRef,
|
|
187
|
+
WebhookDeliveryStatus,
|
|
188
|
+
WebhookEndpoint,
|
|
189
|
+
WebhookEndpointBinding,
|
|
190
|
+
WebhookEndpointCreateInput,
|
|
191
|
+
WebhookEndpointCreateOutcome,
|
|
192
|
+
WebhookEndpointFilter,
|
|
193
|
+
WebhookEndpointListInput,
|
|
194
|
+
WebhookEndpointPage,
|
|
195
|
+
WebhookEndpointRef,
|
|
196
|
+
WebhookEndpointRefusal,
|
|
197
|
+
WebhookEndpointUpdateInput,
|
|
198
|
+
WebhookEndpointUpdateOutcome,
|
|
199
|
+
WebhookEvent,
|
|
200
|
+
WebhookEventType,
|
|
201
|
+
WebhookSecretRef,
|
|
202
|
+
WebhookTestEvent,
|
|
203
|
+
} from './webhook-endpoint-binding.js';
|
|
204
|
+
export type {
|
|
205
|
+
CronTriggerRecord,
|
|
206
|
+
EventTriggerRecord,
|
|
207
|
+
GetTriggerInput,
|
|
208
|
+
ListTriggersInput,
|
|
209
|
+
RegisterCronTriggerInput,
|
|
210
|
+
RegisterEventTriggerInput,
|
|
211
|
+
RegisterTriggerError,
|
|
212
|
+
RegisterTriggerInput,
|
|
213
|
+
RegisterWebhookTriggerInput,
|
|
214
|
+
TriggerKind,
|
|
215
|
+
TriggerLifecycleError,
|
|
216
|
+
TriggerLifecycleInput,
|
|
217
|
+
TriggerListPage,
|
|
218
|
+
TriggerRecord,
|
|
219
|
+
TriggerRegistryBinding,
|
|
220
|
+
UpdateCronTriggerInput,
|
|
221
|
+
UpdateEventTriggerInput,
|
|
222
|
+
UpdateTriggerError,
|
|
223
|
+
UpdateTriggerInput,
|
|
224
|
+
UpdateWebhookTriggerInput,
|
|
225
|
+
WebhookTriggerRecord,
|
|
226
|
+
} from './trigger-binding.js';
|
|
227
|
+
export type {
|
|
228
|
+
AgentGetInput,
|
|
229
|
+
AgentGetVersionInput,
|
|
230
|
+
AgentListInput,
|
|
231
|
+
AgentListVersionsInput,
|
|
232
|
+
AgentPage,
|
|
233
|
+
AgentPublishInput,
|
|
234
|
+
AgentPublishOutcome,
|
|
235
|
+
AgentRegistryBinding,
|
|
236
|
+
AgentReinstateVersionInput,
|
|
237
|
+
AgentReinstateVersionOutcome,
|
|
238
|
+
AgentUnregisterInput,
|
|
239
|
+
AgentUnregisterOutcome,
|
|
240
|
+
} from './agent-binding.js';
|
|
241
|
+
export type {
|
|
242
|
+
FlowGetInput,
|
|
243
|
+
FlowGetVersionInput,
|
|
244
|
+
FlowListInput,
|
|
245
|
+
FlowListVersionsInput,
|
|
246
|
+
FlowPage,
|
|
247
|
+
FlowPublishInput,
|
|
248
|
+
FlowPublishOutcome,
|
|
249
|
+
FlowRegistryBinding,
|
|
250
|
+
FlowReinstateVersionInput,
|
|
251
|
+
FlowReinstateVersionOutcome,
|
|
252
|
+
FlowUnregisterInput,
|
|
253
|
+
FlowUnregisterOutcome,
|
|
254
|
+
} from './flow-binding.js';
|
|
255
|
+
export type {
|
|
256
|
+
CapabilityDescriptor,
|
|
257
|
+
CapabilityGetInput,
|
|
258
|
+
CapabilityListInput,
|
|
259
|
+
CapabilityPage,
|
|
260
|
+
CapabilityRegistryBinding,
|
|
261
|
+
} from './capability-binding.js';
|
|
262
|
+
export type {
|
|
263
|
+
ProviderCapabilitiesForInput,
|
|
264
|
+
ProviderGetInput,
|
|
265
|
+
ProviderListInput,
|
|
266
|
+
ProviderPage,
|
|
267
|
+
ProviderRegisterInput,
|
|
268
|
+
ProviderRegisterOutcome,
|
|
269
|
+
ProviderRegistryBinding,
|
|
270
|
+
ProviderResolveForRuntimeInput,
|
|
271
|
+
ProviderRuntimeEntry,
|
|
272
|
+
ProviderSecretRef,
|
|
273
|
+
ProviderUnregisterInput,
|
|
274
|
+
ProviderUnregisterOutcome,
|
|
275
|
+
} from './provider-binding.js';
|
|
276
|
+
export { MCP_TRANSPORTS } from './mcp-endpoint-binding.js';
|
|
277
|
+
export type {
|
|
278
|
+
MCPClientProbeBinding,
|
|
279
|
+
MCPClientProbeInput,
|
|
280
|
+
MCPEndpoint,
|
|
281
|
+
MCPEndpointConfig,
|
|
282
|
+
MCPEndpointGetInput,
|
|
283
|
+
MCPEndpointListInput,
|
|
284
|
+
MCPEndpointPage,
|
|
285
|
+
MCPEndpointRegisterInput,
|
|
286
|
+
MCPEndpointRegisterOutcome,
|
|
287
|
+
MCPEndpointRegistryBinding,
|
|
288
|
+
MCPEndpointUnregisterInput,
|
|
289
|
+
MCPEndpointUnregisterOutcome,
|
|
290
|
+
MCPGetPromptOutcome,
|
|
291
|
+
MCPHttpSseConfig,
|
|
292
|
+
MCPListPromptsOutcome,
|
|
293
|
+
MCPListResourcesOutcome,
|
|
294
|
+
MCPPromptArgument,
|
|
295
|
+
MCPPromptDescriptor,
|
|
296
|
+
MCPPromptMessage,
|
|
297
|
+
MCPReadResourceOutcome,
|
|
298
|
+
MCPResourceContent,
|
|
299
|
+
MCPResourceDescriptor,
|
|
300
|
+
MCPEndpointSecretRef,
|
|
301
|
+
MCPStdioConfig,
|
|
302
|
+
MCPStreamableHttpConfig,
|
|
303
|
+
MCPTransport,
|
|
304
|
+
} from './mcp-endpoint-binding.js';
|
|
305
|
+
export {
|
|
306
|
+
TENANT_HOST_ACCESS_LEVELS,
|
|
307
|
+
deniesHostReach,
|
|
308
|
+
parseTenantHostAccess,
|
|
309
|
+
stdioRefusal,
|
|
310
|
+
} from './tenant-host-access.js';
|
|
311
|
+
export type { HostReach, TenantHostAccess } from './tenant-host-access.js';
|
|
312
|
+
export { POLICY_KINDS } from '@kindgi/policy-contract';
|
|
313
|
+
export type {
|
|
314
|
+
Policy,
|
|
315
|
+
PolicyGetInput,
|
|
316
|
+
PolicyGetVersionInput,
|
|
317
|
+
PolicyKind,
|
|
318
|
+
PolicyListInput,
|
|
319
|
+
PolicyListVersionsInput,
|
|
320
|
+
PolicyPage,
|
|
321
|
+
PolicyPublishInput,
|
|
322
|
+
PolicyPublishOutcome,
|
|
323
|
+
PolicyRegistryBinding,
|
|
324
|
+
PolicyReinstateVersionInput,
|
|
325
|
+
PolicyReinstateVersionOutcome,
|
|
326
|
+
PolicyUnregisterInput,
|
|
327
|
+
PolicyUnregisterOutcome,
|
|
328
|
+
PolicyVersionPage,
|
|
329
|
+
PolicyVersionRow,
|
|
330
|
+
} from '@kindgi/policy-contract';
|
|
331
|
+
export { EVAL_KINDS } from './eval-suite-binding.js';
|
|
332
|
+
export type {
|
|
333
|
+
EvalKind,
|
|
334
|
+
EvalSuite,
|
|
335
|
+
EvalSuiteGetInput,
|
|
336
|
+
EvalSuiteGetVersionInput,
|
|
337
|
+
EvalSuiteListInput,
|
|
338
|
+
EvalSuiteListVersionsInput,
|
|
339
|
+
EvalSuitePage,
|
|
340
|
+
EvalSuitePublishInput,
|
|
341
|
+
EvalSuitePublishOutcome,
|
|
342
|
+
EvalSuiteRegistryBinding,
|
|
343
|
+
EvalSuiteReinstateVersionInput,
|
|
344
|
+
EvalSuiteReinstateVersionOutcome,
|
|
345
|
+
EvalSuiteUnregisterInput,
|
|
346
|
+
EvalSuiteUnregisterOutcome,
|
|
347
|
+
} from './eval-suite-binding.js';
|
|
348
|
+
export { EVAL_RUN_STATUSES } from './eval-run-binding.js';
|
|
349
|
+
export type {
|
|
350
|
+
AgentRef,
|
|
351
|
+
EvalRun,
|
|
352
|
+
EvalRunBinding,
|
|
353
|
+
EvalRunCancelInput,
|
|
354
|
+
EvalRunCancelOutcome,
|
|
355
|
+
EvalRunFilter,
|
|
356
|
+
EvalRunGetInput,
|
|
357
|
+
EvalRunListInput,
|
|
358
|
+
EvalRunPage,
|
|
359
|
+
EvalRunStartInput,
|
|
360
|
+
EvalRunStartOutcome,
|
|
361
|
+
EvalRunStatus,
|
|
362
|
+
FlowRef,
|
|
363
|
+
} from './eval-run-binding.js';
|
|
364
|
+
export {
|
|
365
|
+
createAccuracyDispatcher,
|
|
366
|
+
createInProcessEvalRunBinding,
|
|
367
|
+
} from './eval-run-dispatcher.js';
|
|
368
|
+
export type {
|
|
369
|
+
AccuracyDispatcherOptions,
|
|
370
|
+
DispatchContext,
|
|
371
|
+
DispatchResult,
|
|
372
|
+
EvalCase,
|
|
373
|
+
EvalGrader,
|
|
374
|
+
EvalGraderInput,
|
|
375
|
+
EvalGraderOutcome,
|
|
376
|
+
EvalRunDispatcher,
|
|
377
|
+
EvalRunSubjectInvokeInput,
|
|
378
|
+
EvalRunSubjectInvokeOutcome,
|
|
379
|
+
EvalSubjectInvoker,
|
|
380
|
+
InProcessEvalRunBindingOptions,
|
|
381
|
+
} from './eval-run-dispatcher.js';
|
|
382
|
+
export { COST_GROUP_DIMENSIONS } from './cost-binding.js';
|
|
383
|
+
export type {
|
|
384
|
+
CostAggregateGroup,
|
|
385
|
+
CostAggregateInput,
|
|
386
|
+
CostAggregateResult,
|
|
387
|
+
CostBinding,
|
|
388
|
+
CostGetRecordInput,
|
|
389
|
+
CostGroupDimension,
|
|
390
|
+
CostListRecordsInput,
|
|
391
|
+
CostRecord,
|
|
392
|
+
CostRecordFilter,
|
|
393
|
+
CostRecordPage,
|
|
394
|
+
} from './cost-binding.js';
|
|
395
|
+
export type {
|
|
396
|
+
ToolGetInput,
|
|
397
|
+
ToolGetVersionInput,
|
|
398
|
+
ToolListInput,
|
|
399
|
+
ToolListVersionsInput,
|
|
400
|
+
ToolPage,
|
|
401
|
+
ToolPublishInput,
|
|
402
|
+
ToolPublishOutcome,
|
|
403
|
+
ToolRegistryBinding,
|
|
404
|
+
ToolReinstateVersionInput,
|
|
405
|
+
ToolReinstateVersionOutcome,
|
|
406
|
+
ToolResolveInput,
|
|
407
|
+
ToolResolveOutcome,
|
|
408
|
+
ToolUnregisterInput,
|
|
409
|
+
ToolUnregisterOutcome,
|
|
410
|
+
ToolVersionPage,
|
|
411
|
+
} from './tool-binding.js';
|
|
412
|
+
export type {
|
|
413
|
+
GuardrailGetInput,
|
|
414
|
+
GuardrailListInput,
|
|
415
|
+
GuardrailPage,
|
|
416
|
+
GuardrailRegisterInput,
|
|
417
|
+
GuardrailRegisterOutcome,
|
|
418
|
+
GuardrailRegistryBinding,
|
|
419
|
+
GuardrailUnregisterInput,
|
|
420
|
+
GuardrailUnregisterOutcome,
|
|
421
|
+
} from './guardrail-binding.js';
|
|
422
|
+
export type {
|
|
423
|
+
MemoryBinding,
|
|
424
|
+
MemoryFactPage,
|
|
425
|
+
MemoryGetFactInput,
|
|
426
|
+
MemoryListFactsInput,
|
|
427
|
+
MemoryRetrievalHit,
|
|
428
|
+
MemoryRetrieveInput,
|
|
429
|
+
MemoryRetrieveIntent,
|
|
430
|
+
MemoryRetrieveOutcome,
|
|
431
|
+
MemorySupersedeFactInput,
|
|
432
|
+
MemorySupersedeFactOutcome,
|
|
433
|
+
MemoryWriteFactInput,
|
|
434
|
+
MemoryWriteFactOutcome,
|
|
435
|
+
} from './memory-binding.js';
|
|
436
|
+
export type {
|
|
437
|
+
SupervisorApplyOutcome,
|
|
438
|
+
SupervisorApplyProposalInput,
|
|
439
|
+
SupervisorBinding,
|
|
440
|
+
SupervisorDraftOutcome,
|
|
441
|
+
SupervisorDraftProposalInput,
|
|
442
|
+
SupervisorDryRunOutcome,
|
|
443
|
+
SupervisorDryRunProposalInput,
|
|
444
|
+
SupervisorGetProposalInput,
|
|
445
|
+
SupervisorListProposalsInput,
|
|
446
|
+
SupervisorProposalPage,
|
|
447
|
+
SupervisorRollbackOutcome,
|
|
448
|
+
SupervisorRollbackProposalInput,
|
|
449
|
+
SupervisorSubmitReviewInput,
|
|
450
|
+
SupervisorSubmitReviewOutcome,
|
|
451
|
+
SupervisorWithdrawOutcome,
|
|
452
|
+
SupervisorWithdrawProposalInput,
|
|
453
|
+
} from './supervisor-binding.js';
|
|
454
|
+
export type {
|
|
455
|
+
FixProposal,
|
|
456
|
+
FixProposalStatus,
|
|
457
|
+
Observation,
|
|
458
|
+
ObservationStatus,
|
|
459
|
+
ObservedViolation,
|
|
460
|
+
PassCriterion,
|
|
461
|
+
PatternKind,
|
|
462
|
+
PatternRef,
|
|
463
|
+
PromptChange,
|
|
464
|
+
ProposedChange,
|
|
465
|
+
RetrievalChange,
|
|
466
|
+
RetrievalIntentShape,
|
|
467
|
+
SupervisorObservationPage,
|
|
468
|
+
SupervisorQueryObservationsInput,
|
|
469
|
+
SupervisorQueryObservationsOutcome,
|
|
470
|
+
ToolConfigChange,
|
|
471
|
+
} from './supervisor-binding.js';
|
|
472
|
+
export type {
|
|
473
|
+
Deployment,
|
|
474
|
+
DeploymentBinding,
|
|
475
|
+
DeploymentGetByImageDigestInput,
|
|
476
|
+
DeploymentGetInput,
|
|
477
|
+
DeploymentListInput,
|
|
478
|
+
DeploymentPage,
|
|
479
|
+
DeployedPrimitive,
|
|
480
|
+
DeploymentContents,
|
|
481
|
+
DeploymentPrimitiveCounts,
|
|
482
|
+
DeploymentRegisterInput,
|
|
483
|
+
DeploymentRegisterOutcome,
|
|
484
|
+
} from './deployment-binding.js';
|
|
485
|
+
export type {
|
|
486
|
+
ImageBlobDescriptor,
|
|
487
|
+
ImageDescriptor,
|
|
488
|
+
ImageExtractFileInput,
|
|
489
|
+
ImageFile,
|
|
490
|
+
ImageHeadInput,
|
|
491
|
+
ImageLayerDescriptor,
|
|
492
|
+
ImagePlatform,
|
|
493
|
+
ImagePushInput,
|
|
494
|
+
ImagePushOutcome,
|
|
495
|
+
ImageRegistryBinding,
|
|
496
|
+
ImageRegistryError,
|
|
497
|
+
} from './image-registry-binding.js';
|
|
498
|
+
export type {
|
|
499
|
+
AddTrustedInput,
|
|
500
|
+
AddTrustedOutcome,
|
|
501
|
+
GetTrustedInput,
|
|
502
|
+
IsTrustedInput,
|
|
503
|
+
ListTrustedInput,
|
|
504
|
+
RevokeTrustedInput,
|
|
505
|
+
RevokeTrustedOutcome,
|
|
506
|
+
SigningKeyBinding,
|
|
507
|
+
SigningKeyError,
|
|
508
|
+
TrustedKey,
|
|
509
|
+
TrustedKeyPage,
|
|
510
|
+
VerifyInput,
|
|
511
|
+
VerifyOutcome,
|
|
512
|
+
} from './signing-key-binding.js';
|
|
513
|
+
export type {
|
|
514
|
+
EnvBinding,
|
|
515
|
+
EnvDeleteInput,
|
|
516
|
+
EnvDeleteOutcome,
|
|
517
|
+
EnvError,
|
|
518
|
+
EnvGetInput,
|
|
519
|
+
EnvListInput,
|
|
520
|
+
EnvListPage,
|
|
521
|
+
EnvRecord,
|
|
522
|
+
EnvResolveInput,
|
|
523
|
+
EnvResolveOutcome,
|
|
524
|
+
EnvSetInput,
|
|
525
|
+
EnvSetOutcome,
|
|
526
|
+
ResolveContext,
|
|
527
|
+
} from './env-binding.js';
|
|
528
|
+
export type {
|
|
529
|
+
SecretBinding,
|
|
530
|
+
SecretError,
|
|
531
|
+
SecretGetInput,
|
|
532
|
+
SecretGetVersionInput,
|
|
533
|
+
SecretListInput,
|
|
534
|
+
SecretListPage,
|
|
535
|
+
SecretListVersionsInput,
|
|
536
|
+
SecretRecord,
|
|
537
|
+
SecretResolveInput,
|
|
538
|
+
SecretResolveOutcome,
|
|
539
|
+
SecretRevokeInput,
|
|
540
|
+
SecretRevokeOutcome,
|
|
541
|
+
SecretRotateInput,
|
|
542
|
+
SecretRotateOutcome,
|
|
543
|
+
SecretSetInput,
|
|
544
|
+
SecretSetOutcome,
|
|
545
|
+
SecretVersionPage,
|
|
546
|
+
SecretVersionRecord,
|
|
547
|
+
} from './secrets-binding.js';
|
|
548
|
+
export { RESERVED_SECRET_NAME_PREFIX } from './secrets-binding.js';
|
|
549
|
+
export type {
|
|
550
|
+
ListProvenanceRecordsInput,
|
|
551
|
+
ListProvenanceRecordsResult,
|
|
552
|
+
ProvenanceBinding,
|
|
553
|
+
ProvenanceBindingError,
|
|
554
|
+
ProvenanceListCursor,
|
|
555
|
+
ProvenanceRecordSummary,
|
|
556
|
+
} from './provenance-binding.js';
|
|
557
|
+
export type { KeyManagementBinding, KmsError } from './key-management-binding.js';
|
|
558
|
+
export { createInMemoryRotationStatusStore } from './rotation-status-store.js';
|
|
559
|
+
export type {
|
|
560
|
+
RotationStatus,
|
|
561
|
+
RotationStatusCreateInput,
|
|
562
|
+
RotationStatusGetInput,
|
|
563
|
+
RotationStatusStore,
|
|
564
|
+
RotationStatusSubscribeInput,
|
|
565
|
+
RotationStatusUpdateInput,
|
|
566
|
+
} from './rotation-status-store.js';
|
|
567
|
+
export type {
|
|
568
|
+
SecretProviderBinding,
|
|
569
|
+
SecretProviderDeleteInput,
|
|
570
|
+
SecretProviderDeleteOutput,
|
|
571
|
+
SecretProviderError,
|
|
572
|
+
SecretProviderGetInput,
|
|
573
|
+
SecretProviderGetVersionInput,
|
|
574
|
+
SecretProviderListInput,
|
|
575
|
+
SecretProviderListOutput,
|
|
576
|
+
SecretProviderMetadata,
|
|
577
|
+
SecretProviderPayload,
|
|
578
|
+
SecretProviderProbeOutput,
|
|
579
|
+
SecretProviderPutInput,
|
|
580
|
+
SecretProviderPutOutput,
|
|
581
|
+
SecretProviderRotateInput,
|
|
582
|
+
SecretProviderRotateOutput,
|
|
583
|
+
SecretProviderScope,
|
|
584
|
+
} from './secrets-provider-binding.js';
|
|
585
|
+
export { statusFor, toWireError, ERROR_CODE_TO_STATUS } from './errors.js';
|
|
586
|
+
export type { WireError, WireErrorBody } from './errors.js';
|
|
587
|
+
export { generateOpenApiDocument } from './openapi/generate.js';
|
|
588
|
+
export type { GenerateOptions, OpenApiInfo, OpenApiServer } from './openapi/generate.js';
|
|
589
|
+
export { OPERATIONS, honoToOpenapiPath } from './openapi/operations.js';
|
|
590
|
+
export type {
|
|
591
|
+
OperationSpec,
|
|
592
|
+
ParameterSpec,
|
|
593
|
+
ResponseSpec,
|
|
594
|
+
HttpMethod,
|
|
595
|
+
} from './openapi/operations.js';
|
|
596
|
+
export { COMPONENT_SCHEMAS } from './openapi/schemas.js';
|
|
597
|
+
export type { JsonSchema } from './openapi/schemas.js';
|
|
598
|
+
|
|
599
|
+
export type {
|
|
600
|
+
RetentionBinding,
|
|
601
|
+
RetentionScheduledInput,
|
|
602
|
+
RetentionScheduledItem,
|
|
603
|
+
RetentionScheduledPage,
|
|
604
|
+
RetentionSweepInput,
|
|
605
|
+
RetentionSweepResult,
|
|
606
|
+
} from './retention-binding.js';
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
// Copyright (C) 2026 Kindgi Inc.
|
|
3
|
+
|
|
4
|
+
import type { Result } from '@kindgi/types';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Caller-plugged Key Management surface consumed by envelope-encryption
|
|
8
|
+
* secret stores. The framework never talks to a KMS directly — every
|
|
9
|
+
* wrap / unwrap / rewrap / destroy flows through this interface so a
|
|
10
|
+
* deployment can choose a local key (dev + CI) or a managed KMS without
|
|
11
|
+
* changing any framework code.
|
|
12
|
+
*
|
|
13
|
+
* The four load-bearing operations are `generateDek` (write path),
|
|
14
|
+
* `unwrap` (read path), `rewrap` (KEK rotation batch job), and
|
|
15
|
+
* `destroyDek` (cryptographic-erasure primitive backing
|
|
16
|
+
* `SecretBinding.revoke({ hard: true })`). `probe` is a boot-time
|
|
17
|
+
* reachability check the runtime runs before serving requests; a
|
|
18
|
+
* failing probe fails boot fast so a mis-configured KMS never manifests
|
|
19
|
+
* as a `secret-decryption-failed` at request time.
|
|
20
|
+
*/
|
|
21
|
+
export interface KeyManagementBinding {
|
|
22
|
+
/**
|
|
23
|
+
* Diagnostic identifier for the concrete KMS adapter. Emitted as
|
|
24
|
+
* `kms-provider` on every compliance-evidence event so auditors can
|
|
25
|
+
* filter `kms-provider = 'libsodium'` to find dev-shape leakage into
|
|
26
|
+
* regulated deployments.
|
|
27
|
+
*/
|
|
28
|
+
readonly providerName: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Generate a fresh Data Encryption Key + wrap it with the current KEK.
|
|
32
|
+
* Returns the raw DEK (for immediate use in AES-GCM encryption; caller
|
|
33
|
+
* MUST discard after encrypting), the wrapped bytes (persisted
|
|
34
|
+
* alongside ciphertext), and the KEK id used (persisted for later
|
|
35
|
+
* unwrap even after rotation).
|
|
36
|
+
*/
|
|
37
|
+
generateDek(): Promise<Result<{ dek: Uint8Array; wrapped: Uint8Array; kekId: string }, KmsError>>;
|
|
38
|
+
|
|
39
|
+
/** Unwrap a previously-wrapped DEK using the KEK it was wrapped with. */
|
|
40
|
+
unwrap(input: {
|
|
41
|
+
readonly kekId: string;
|
|
42
|
+
readonly wrapped: Uint8Array;
|
|
43
|
+
}): Promise<Result<Uint8Array, KmsError>>;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Rewrap a DEK from an old KEK to a new one. Used by the KEK-rotation
|
|
47
|
+
* batch job — the DEK itself does NOT change (no ciphertext rewrite),
|
|
48
|
+
* only its wrapping.
|
|
49
|
+
*/
|
|
50
|
+
rewrap(input: {
|
|
51
|
+
readonly oldKekId: string;
|
|
52
|
+
readonly newKekId: string;
|
|
53
|
+
readonly wrapped: Uint8Array;
|
|
54
|
+
}): Promise<Result<Uint8Array, KmsError>>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Destroy a specific DEK — cryptographic-erasure primitive backing
|
|
58
|
+
* `SecretBinding.revoke({ hard: true })`. Semantics vary by provider
|
|
59
|
+
* (scheduled key deletion, key-version destruction, ...). An adapter
|
|
60
|
+
* that wraps with a local key cannot destroy an already-wrapped DEK in
|
|
61
|
+
* isolation (the KEK is what would need destruction); it returns
|
|
62
|
+
* `{ destroyed: true }` and relies on the caller having dropped the
|
|
63
|
+
* ciphertext + wrapped bytes. Idempotent —
|
|
64
|
+
* returns `{ destroyed: false }` if the KMS reports the DEK is
|
|
65
|
+
* already gone.
|
|
66
|
+
*/
|
|
67
|
+
destroyDek(input: {
|
|
68
|
+
readonly kekId: string;
|
|
69
|
+
readonly wrapped: Uint8Array;
|
|
70
|
+
}): Promise<Result<{ destroyed: boolean }, KmsError>>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Health check called at boot. Returns latency for observability.
|
|
74
|
+
* A failing probe fails boot fast so a KMS
|
|
75
|
+
* misconfiguration surfaces at deploy time, not at request time.
|
|
76
|
+
*/
|
|
77
|
+
probe(): Promise<
|
|
78
|
+
Result<{ reachable: true; providerVersion: string; latencyMs: number }, KmsError>
|
|
79
|
+
>;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type KmsError =
|
|
83
|
+
| { readonly code: 'kms-unreachable'; readonly message: string; readonly cause?: unknown }
|
|
84
|
+
| { readonly code: 'kms-unauthorized'; readonly message: string; readonly cause?: unknown }
|
|
85
|
+
| {
|
|
86
|
+
readonly code: 'kms-key-not-found';
|
|
87
|
+
readonly message: string;
|
|
88
|
+
readonly kekId: string;
|
|
89
|
+
}
|
|
90
|
+
| { readonly code: 'kms-wrap-failed'; readonly message: string; readonly cause?: unknown }
|
|
91
|
+
| { readonly code: 'kms-unwrap-failed'; readonly message: string; readonly cause?: unknown };
|