@opensoha/contracts 0.1.4
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/COMPATIBILITY.md +306 -0
- package/LICENSE +201 -0
- package/README.md +224 -0
- package/agent/agent-checkpoint.schema.json +19 -0
- package/agent/agent-observation.schema.json +20 -0
- package/agent/agent-protocol.schema.json +717 -0
- package/agent/agent-provider-definition.schema.json +44 -0
- package/agent/agent-provider-registry.schema.json +25 -0
- package/agent/agent-provider-runtime-event.schema.json +26 -0
- package/agent/agent-run-step.schema.json +24 -0
- package/agent/conformance-run.schema.json +19 -0
- package/agent/environment-lease.schema.json +31 -0
- package/agent/environment-snapshot.schema.json +26 -0
- package/agent/environment-template.schema.json +19 -0
- package/agent/fleet-target.schema.json +15 -0
- package/agent/multi-agent-plan.schema.json +18 -0
- package/agent/provider-rollout.schema.json +19 -0
- package/apiresponse/response.go +25 -0
- package/apiresponse/response_test.go +27 -0
- package/auth/token-claims.schema.json +78 -0
- package/capabilities/cluster-capability-matrix.schema.json +87 -0
- package/compat/json-schema-ecosystem-0.1.0.json +59 -0
- package/compat/openapi-0.1.0.snapshot.json +5076 -0
- package/compat/openapi-loose-boundaries-0.1.0.json +769 -0
- package/connectors/connector-event-envelope.schema.json +64 -0
- package/evaluation/evaluation-dataset.schema.json +28 -0
- package/evaluation/evaluation-result.schema.json +18 -0
- package/evaluation/evaluation-run.schema.json +19 -0
- package/evaluation/executor-profile.schema.json +18 -0
- package/evaluation/feedback-sample.schema.json +20 -0
- package/evaluation/gate-decision.schema.json +20 -0
- package/evaluation/gate-policy.schema.json +18 -0
- package/evaluation/replay-plan.schema.json +17 -0
- package/evaluation/sample-attempt.schema.json +22 -0
- package/events/event-envelope.schema.json +58 -0
- package/examples/agent-profile/k8s-sre-readonly.json +16 -0
- package/examples/cluster-capability-matrix/runtime-parity.json +40 -0
- package/examples/connector-event-envelope/feishu-message.json +19 -0
- package/examples/gateway-capability-baseline/minimal.json +61 -0
- package/examples/gateway-manifest/minimal.json +72 -0
- package/examples/governance/approval-request.json +35 -0
- package/examples/governance/audit-log.json +14 -0
- package/examples/marketplace-catalog/default.json +75 -0
- package/examples/mcp-preset/k8s-readonly.json +20 -0
- package/examples/openapi/agent-run-tool-call-request.json +11 -0
- package/examples/openapi/agent-tool-call-result-envelope.json +19 -0
- package/examples/openapi/cloud-extension-point-list-envelope.json +15 -0
- package/examples/openapi/directory-runtime-status-envelope.json +31 -0
- package/examples/openapi/gateway-manifest-envelope.json +53 -0
- package/examples/openapi/tool-invocation-request.json +14 -0
- package/examples/openapi/tool-invocation-result-envelope.json +23 -0
- package/examples/plugin-manifest/compute-provider.json +27 -0
- package/examples/plugin-manifest/connector.json +76 -0
- package/examples/plugin-manifest/skill-pack.json +47 -0
- package/examples/runner-operation-lifecycle/late-callback.json +27 -0
- package/examples/skill-manifest/k8s-sre.json +22 -0
- package/examples/token-claims/service-account.json +15 -0
- package/fixtures/json-schema/agent-checkpoint/invalid/raw-state.json +1 -0
- package/fixtures/json-schema/agent-checkpoint/valid/minimal.json +1 -0
- package/fixtures/json-schema/agent-observation/invalid/extra-secret.json +1 -0
- package/fixtures/json-schema/agent-observation/valid/tool.json +1 -0
- package/fixtures/json-schema/agent-profile/invalid/missing-scope.json +15 -0
- package/fixtures/json-schema/agent-profile/valid/k8s-sre-readonly.json +35 -0
- package/fixtures/json-schema/agent-protocol/invalid/missing-agent-id.json +3 -0
- package/fixtures/json-schema/agent-protocol/valid/agent-run-callback-legacy.json +9 -0
- package/fixtures/json-schema/agent-protocol/valid/agent-run-callback-with-events.json +39 -0
- package/fixtures/json-schema/agent-protocol/valid/execution-task-claim.json +5 -0
- package/fixtures/json-schema/agent-provider-definition/invalid/missing-command.json +1 -0
- package/fixtures/json-schema/agent-provider-definition/valid/cli.json +1 -0
- package/fixtures/json-schema/agent-provider-registry/invalid/zero-revision.json +1 -0
- package/fixtures/json-schema/agent-provider-registry/valid/minimal.json +1 -0
- package/fixtures/json-schema/agent-provider-runtime-event/invalid/health-without-provider.json +1 -0
- package/fixtures/json-schema/agent-provider-runtime-event/valid/ack.json +1 -0
- package/fixtures/json-schema/agent-run-step/invalid/unknown-state.json +1 -0
- package/fixtures/json-schema/agent-run-step/valid/running.json +1 -0
- package/fixtures/json-schema/approval-request/invalid/missing-status.json +12 -0
- package/fixtures/json-schema/approval-request/valid/high-risk-tool.json +56 -0
- package/fixtures/json-schema/audit-log/invalid/extra-field.json +10 -0
- package/fixtures/json-schema/audit-log/valid/tool-denied.json +23 -0
- package/fixtures/json-schema/cluster-capability-matrix/invalid/missing-agent-support.json +16 -0
- package/fixtures/json-schema/cluster-capability-matrix/invalid/partial-without-reason.json +18 -0
- package/fixtures/json-schema/cluster-capability-matrix/valid/runtime-parity.json +59 -0
- package/fixtures/json-schema/conformance-run/invalid/missing.json +1 -0
- package/fixtures/json-schema/conformance-run/valid/passed.json +1 -0
- package/fixtures/json-schema/connector-checkpoint/invalid/missing.json +1 -0
- package/fixtures/json-schema/connector-checkpoint/valid/http.json +1 -0
- package/fixtures/json-schema/connector-definition/invalid/missing.json +1 -0
- package/fixtures/json-schema/connector-definition/valid/http.json +1 -0
- package/fixtures/json-schema/connector-event-envelope/invalid/missing-payload.json +11 -0
- package/fixtures/json-schema/connector-event-envelope/invalid/unknown-top-level-field.json +13 -0
- package/fixtures/json-schema/connector-event-envelope/valid/feishu-message.json +19 -0
- package/fixtures/json-schema/context-envelope/invalid/envelope.json +1 -0
- package/fixtures/json-schema/context-envelope/valid/envelope.json +1 -0
- package/fixtures/json-schema/environment-lease/invalid/unbounded.json +1 -0
- package/fixtures/json-schema/environment-lease/valid/observe.json +1 -0
- package/fixtures/json-schema/environment-snapshot/invalid/negative-usage.json +1 -0
- package/fixtures/json-schema/environment-snapshot/valid/active.json +1 -0
- package/fixtures/json-schema/environment-template/invalid/missing.json +1 -0
- package/fixtures/json-schema/environment-template/valid/container.json +1 -0
- package/fixtures/json-schema/evaluation-dataset/invalid/no-samples.json +1 -0
- package/fixtures/json-schema/evaluation-dataset/valid/minimal.json +1 -0
- package/fixtures/json-schema/evaluation-result/invalid/bad-score.json +1 -0
- package/fixtures/json-schema/evaluation-result/valid/passed.json +1 -0
- package/fixtures/json-schema/evaluation-run/invalid/no-candidate.json +1 -0
- package/fixtures/json-schema/evaluation-run/valid/running.json +1 -0
- package/fixtures/json-schema/event-envelope/invalid/bad-severity.json +7 -0
- package/fixtures/json-schema/event-envelope/valid/minimal.json +14 -0
- package/fixtures/json-schema/executor-profile/invalid/missing.json +1 -0
- package/fixtures/json-schema/executor-profile/valid/readonly.json +1 -0
- package/fixtures/json-schema/feedback-sample/invalid/missing.json +1 -0
- package/fixtures/json-schema/feedback-sample/valid/pending.json +1 -0
- package/fixtures/json-schema/fleet-target/invalid/missing.json +1 -0
- package/fixtures/json-schema/fleet-target/valid/linux.json +1 -0
- package/fixtures/json-schema/gate-decision/invalid/missing.json +1 -0
- package/fixtures/json-schema/gate-decision/valid/pass.json +1 -0
- package/fixtures/json-schema/gate-policy/invalid/missing.json +1 -0
- package/fixtures/json-schema/gate-policy/valid/release.json +1 -0
- package/fixtures/json-schema/gateway-capability-baseline/invalid/missing-owner.json +32 -0
- package/fixtures/json-schema/gateway-capability-baseline/valid/minimal.json +61 -0
- package/fixtures/json-schema/gateway-manifest/invalid/bad-risk-level.json +37 -0
- package/fixtures/json-schema/gateway-manifest/valid/minimal.json +48 -0
- package/fixtures/json-schema/graph-revision/invalid/missing.json +1 -0
- package/fixtures/json-schema/graph-revision/valid/active.json +1 -0
- package/fixtures/json-schema/index-publish/invalid/missing.json +1 -0
- package/fixtures/json-schema/index-publish/valid/publish.json +1 -0
- package/fixtures/json-schema/ingestion-job/invalid/missing.json +1 -0
- package/fixtures/json-schema/ingestion-job/valid/queued.json +1 -0
- package/fixtures/json-schema/ingestion-stage/invalid/missing.json +1 -0
- package/fixtures/json-schema/ingestion-stage/valid/succeeded.json +1 -0
- package/fixtures/json-schema/knowledge-base/invalid/base.json +1 -0
- package/fixtures/json-schema/knowledge-base/valid/base.json +1 -0
- package/fixtures/json-schema/knowledge-search/invalid/search.json +1 -0
- package/fixtures/json-schema/knowledge-search/valid/search.json +1 -0
- package/fixtures/json-schema/knowledge-source/invalid/source.json +1 -0
- package/fixtures/json-schema/knowledge-source/valid/source.json +1 -0
- package/fixtures/json-schema/marketplace-catalog/invalid/missing-source.json +5 -0
- package/fixtures/json-schema/marketplace-catalog/valid/minimal.json +44 -0
- package/fixtures/json-schema/mcp-preset/invalid/bad-risk-level.json +20 -0
- package/fixtures/json-schema/mcp-preset/valid/k8s-readonly.json +40 -0
- package/fixtures/json-schema/memory-policy/invalid/missing.json +1 -0
- package/fixtures/json-schema/memory-policy/valid/explicit.json +1 -0
- package/fixtures/json-schema/memory-record/invalid/missing.json +1 -0
- package/fixtures/json-schema/memory-record/valid/explicit.json +1 -0
- package/fixtures/json-schema/multi-agent-plan/invalid/missing.json +1 -0
- package/fixtures/json-schema/multi-agent-plan/valid/running.json +1 -0
- package/fixtures/json-schema/observability-log-query-v1/invalid/missing-query.json +6 -0
- package/fixtures/json-schema/observability-log-query-v1/valid/request.json +15 -0
- package/fixtures/json-schema/observability-log-query-v1/valid/response.json +13 -0
- package/fixtures/json-schema/plugin-manifest/invalid/bad-type.json +7 -0
- package/fixtures/json-schema/plugin-manifest/invalid/logs-query-without-action.json +28 -0
- package/fixtures/json-schema/plugin-manifest/invalid/manifest-only-observability-provider.json +26 -0
- package/fixtures/json-schema/plugin-manifest/invalid/manifest-only-read-provider.json +23 -0
- package/fixtures/json-schema/plugin-manifest/invalid/write-provider-without-actions.json +23 -0
- package/fixtures/json-schema/plugin-manifest/valid/compute-provider.json +25 -0
- package/fixtures/json-schema/plugin-manifest/valid/minimal.json +14 -0
- package/fixtures/json-schema/plugin-manifest/valid/observability-provider.json +29 -0
- package/fixtures/json-schema/project-manifest/invalid/inline-secret.json +14 -0
- package/fixtures/json-schema/project-manifest/valid/demo.json +21 -0
- package/fixtures/json-schema/provider-rollout/invalid/missing.json +1 -0
- package/fixtures/json-schema/provider-rollout/valid/canary.json +1 -0
- package/fixtures/json-schema/replay-plan/invalid/missing.json +1 -0
- package/fixtures/json-schema/replay-plan/valid/readonly.json +1 -0
- package/fixtures/json-schema/retrieval-trace/invalid/missing.json +1 -0
- package/fixtures/json-schema/retrieval-trace/valid/grounded.json +1 -0
- package/fixtures/json-schema/runner-operation-lifecycle/invalid/bad-state.json +7 -0
- package/fixtures/json-schema/runner-operation-lifecycle/invalid/missing-runner-id.json +6 -0
- package/fixtures/json-schema/runner-operation-lifecycle/valid/final-failed.json +27 -0
- package/fixtures/json-schema/runner-operation-lifecycle/valid/heartbeat.json +19 -0
- package/fixtures/json-schema/sample-attempt/invalid/missing.json +1 -0
- package/fixtures/json-schema/sample-attempt/valid/completed.json +1 -0
- package/fixtures/json-schema/skill-manifest/invalid/bad-id.json +5 -0
- package/fixtures/json-schema/skill-manifest/valid/minimal.json +8 -0
- package/fixtures/json-schema/token-claims/invalid/bad-token-kind.json +9 -0
- package/fixtures/json-schema/token-claims/valid/service-account.json +15 -0
- package/fixtures/openapi/AIGatewayManifestEnvelope/invalid/bad-date.json +28 -0
- package/fixtures/openapi/AIGatewayManifestEnvelope/valid/minimal.json +31 -0
- package/fixtures/openapi/AgentProviderRegistryAcknowledgement/invalid/missing-targeted.json +7 -0
- package/fixtures/openapi/AgentProviderRegistryAcknowledgement/valid/rollout.json +17 -0
- package/fixtures/openapi/AgentRunCallbackRequest/invalid/missing-agent-id.json +6 -0
- package/fixtures/openapi/AgentRunCallbackRequest/valid/succeeded.json +10 -0
- package/fixtures/openapi/AgentRunCallbackRequest/valid/with-events.json +39 -0
- package/fixtures/openapi/AuthResultEnvelope/invalid/missing-tokens.json +13 -0
- package/fixtures/openapi/AuthResultEnvelope/valid/session.json +20 -0
- package/fixtures/openapi/CloudExtensionPointListEnvelope/invalid/missing-exclusions.json +11 -0
- package/fixtures/openapi/CloudExtensionPointListEnvelope/valid/managed-fleet.json +19 -0
- package/fixtures/openapi/ComputeAccessSourceListEnvelope/invalid/bad-source-type.json +15 -0
- package/fixtures/openapi/ComputeAccessSourceListEnvelope/valid/mixed.json +19 -0
- package/fixtures/openapi/ComputeOverviewEnvelope/invalid/bad-section-status.json +9 -0
- package/fixtures/openapi/ComputeOverviewEnvelope/valid/partial.json +33 -0
- package/fixtures/openapi/ComputeProviderListEnvelope/invalid/bad-domain.json +23 -0
- package/fixtures/openapi/ComputeProviderListEnvelope/valid/builtin.json +30 -0
- package/fixtures/openapi/ComputeResourceRelationListEnvelope/invalid/bad-relation.json +29 -0
- package/fixtures/openapi/ComputeResourceRelationListEnvelope/valid/vm-runtime.json +33 -0
- package/fixtures/openapi/ComputeTaskListEnvelope/invalid/missing-source-id.json +19 -0
- package/fixtures/openapi/ComputeTaskListEnvelope/valid/running.json +30 -0
- package/fixtures/openapi/DeliveryDraftInput/invalid/missing-application-key.json +9 -0
- package/fixtures/openapi/DeliveryDraftInput/valid/ai-service.json +25 -0
- package/fixtures/openapi/DirectoryEventListEnvelope/invalid/unknown-status.json +13 -0
- package/fixtures/openapi/DirectoryEventListEnvelope/valid/failed.json +16 -0
- package/fixtures/openapi/DirectoryPersonLifecycle/invalid/unknown-employment-status.json +5 -0
- package/fixtures/openapi/DirectoryPersonLifecycle/valid/departed.json +6 -0
- package/fixtures/openapi/DirectoryRuntimeStatusEnvelope/invalid/negative-event-count.json +11 -0
- package/fixtures/openapi/DirectoryRuntimeStatusEnvelope/valid/verified.json +14 -0
- package/fixtures/openapi/DockerContainerStartInput/invalid/missing-image.json +8 -0
- package/fixtures/openapi/DockerContainerStartInput/valid/git-dockerfile.json +22 -0
- package/fixtures/openapi/DockerOperationCallbackRequest/invalid/logs-not-array.json +7 -0
- package/fixtures/openapi/DockerOperationCallbackRequest/valid/succeeded.json +9 -0
- package/fixtures/openapi/ErrorEnvelope/invalid/extra-field.json +7 -0
- package/fixtures/openapi/ErrorEnvelope/valid/error.json +7 -0
- package/fixtures/openapi/EvaluationGateRequest/invalid/missing-candidate.json +4 -0
- package/fixtures/openapi/EvaluationGateRequest/valid/candidate.json +5 -0
- package/fixtures/openapi/ExecutionCallbackRequest/invalid/extra-field.json +6 -0
- package/fixtures/openapi/ExecutionCallbackRequest/valid/succeeded.json +7 -0
- package/fixtures/openapi/GovernanceStatusEnvelope/invalid/window-hours-string.json +81 -0
- package/fixtures/openapi/GovernanceStatusEnvelope/valid/minimal.json +81 -0
- package/fixtures/openapi/IdentityErrorEnvelope/invalid/raw-assertion.json +7 -0
- package/fixtures/openapi/IdentityErrorEnvelope/valid/invalid-signature.json +7 -0
- package/fixtures/openapi/IdentityOutpostClaimRequest/invalid/missing-protocol-version.json +4 -0
- package/fixtures/openapi/IdentityOutpostClaimRequest/valid/current-version.json +5 -0
- package/fixtures/openapi/IdentityRuntimeCapabilityEnvelope/invalid/missing-runtime-state.json +17 -0
- package/fixtures/openapi/IdentityRuntimeCapabilityEnvelope/valid/available.json +17 -0
- package/fixtures/openapi/KnowledgeIngestionJobInput/invalid/missing-source.json +1 -0
- package/fixtures/openapi/KnowledgeIngestionJobInput/valid/source.json +3 -0
- package/fixtures/openapi/KubernetesResourceAgentCreateRequest/invalid/unresolved-target.json +18 -0
- package/fixtures/openapi/KubernetesResourceAgentCreateRequest/valid/resolved-target.json +25 -0
- package/fixtures/openapi/KubernetesResourceCreateRequest/invalid/unknown-source.json +5 -0
- package/fixtures/openapi/KubernetesResourceCreateRequest/valid/global-multi-document.json +5 -0
- package/fixtures/openapi/KubernetesResourceCreateResultEnvelope/invalid/bad-document-index.json +21 -0
- package/fixtures/openapi/KubernetesResourceCreateResultEnvelope/valid/partial.json +62 -0
- package/fixtures/openapi/KubernetesResourceCreateScopeDecisionEnvelope/invalid/missing-capability.json +12 -0
- package/fixtures/openapi/KubernetesResourceCreateScopeDecisionEnvelope/valid/allowed.json +17 -0
- package/fixtures/openapi/KubernetesResourcePreflightEnvelope/invalid/warning-without-message.json +32 -0
- package/fixtures/openapi/KubernetesResourcePreflightEnvelope/valid/mixed-diagnostics.json +83 -0
- package/fixtures/openapi/LogPage/invalid/missing-entry-source.json +12 -0
- package/fixtures/openapi/LogPage/valid/partial-runtime.json +42 -0
- package/fixtures/openapi/LogQuery/invalid/missing-selector.json +3 -0
- package/fixtures/openapi/LogQuery/invalid/unknown-source-mode.json +6 -0
- package/fixtures/openapi/LogQuery/valid/docker-project.json +12 -0
- package/fixtures/openapi/LogQuery/valid/runtime-workload.json +21 -0
- package/fixtures/openapi/LogStreamEvent/invalid/missing-entry.json +3 -0
- package/fixtures/openapi/LogStreamEvent/invalid/unknown-event-type.json +3 -0
- package/fixtures/openapi/LogStreamEvent/valid/live-entry.json +16 -0
- package/fixtures/openapi/MCPCapabilityListEnvelope/invalid/missing-scopes.json +9 -0
- package/fixtures/openapi/MCPCapabilityListEnvelope/valid/minimal.json +10 -0
- package/fixtures/openapi/MFAAdminResetRequest/invalid/missing-reason.json +3 -0
- package/fixtures/openapi/MFAAdminResetRequest/valid/security-incident.json +4 -0
- package/fixtures/openapi/MFAWebAuthnRequestOptionsEnvelope/invalid/missing-challenge-id.json +9 -0
- package/fixtures/openapi/MFAWebAuthnRequestOptionsEnvelope/valid/step-up.json +11 -0
- package/fixtures/openapi/ManifestDeploymentEnvelope/invalid/bad-condition-status.json +33 -0
- package/fixtures/openapi/ManifestDeploymentEnvelope/valid/converged.json +36 -0
- package/fixtures/openapi/ManifestSourceUpdateInput/invalid/unknown-mode.json +6 -0
- package/fixtures/openapi/ManifestSourceUpdateInput/valid/soha-managed.json +6 -0
- package/fixtures/openapi/ObservabilityDataSource/valid/healthy.json +33 -0
- package/fixtures/openapi/ObservabilityDataSourceInput/invalid/secret-in-config.json +9 -0
- package/fixtures/openapi/ObservabilityDataSourceInput/valid/loki.json +33 -0
- package/fixtures/openapi/ObservabilityDataSourceInput/valid/provider.json +21 -0
- package/fixtures/openapi/PasswordLoginRequest/invalid/extra-field.json +5 -0
- package/fixtures/openapi/PasswordLoginRequest/valid/password-login.json +4 -0
- package/fixtures/openapi/PersonalAccessTokenInput/invalid/extra-field.json +6 -0
- package/fixtures/openapi/PersonalAccessTokenInput/valid/create.json +9 -0
- package/fixtures/openapi/PluginManifest/invalid/bad-type.json +7 -0
- package/fixtures/openapi/PluginManifest/valid/skill-pack.json +12 -0
- package/fixtures/openapi/RepositoryInput/invalid/embedded-token.json +8 -0
- package/fixtures/openapi/RepositoryInput/valid/gitlab.json +11 -0
- package/fixtures/openapi/RuntimeConfigChangeRequest/invalid/missing-version.json +8 -0
- package/fixtures/openapi/RuntimeConfigChangeRequest/valid/feature-flags.json +14 -0
- package/fixtures/openapi/RuntimeConfigSnapshotEnvelope/invalid/editable-secret.json +17 -0
- package/fixtures/openapi/RuntimeConfigSnapshotEnvelope/invalid/exposed-default-secret.json +18 -0
- package/fixtures/openapi/RuntimeConfigSnapshotEnvelope/invalid/exposed-effective-secret.json +18 -0
- package/fixtures/openapi/RuntimeConfigSnapshotEnvelope/valid/effective.json +34 -0
- package/fixtures/openapi/SAMLMetadataInput/invalid/unknown-source.json +4 -0
- package/fixtures/openapi/SAMLMetadataInput/valid/xml.json +4 -0
- package/fixtures/openapi/SecretCreateRequest/invalid/missing-value.json +5 -0
- package/fixtures/openapi/SecretCreateRequest/valid/create.json +13 -0
- package/fixtures/openapi/SecretLeaseRedemptionEnvelope/invalid/invalid-alias.json +9 -0
- package/fixtures/openapi/SecretLeaseRedemptionEnvelope/valid/redeem.json +9 -0
- package/fixtures/openapi/SecretMetadataEnvelope/invalid/plaintext-value.json +15 -0
- package/fixtures/openapi/SecretMetadataEnvelope/valid/metadata.json +20 -0
- package/fixtures/openapi/SecretRotateRequest/invalid/empty-value.json +3 -0
- package/fixtures/openapi/SecretRotateRequest/valid/rotate.json +3 -0
- package/fixtures/openapi/ServiceAccountInput/invalid/missing-status.json +4 -0
- package/fixtures/openapi/ServiceAccountInput/valid/create.json +8 -0
- package/fixtures/openapi/WorkbenchStreamEvent/invalid/extra-field.json +11 -0
- package/fixtures/openapi/WorkbenchStreamEvent/invalid/missing-server-fields.json +5 -0
- package/fixtures/openapi/WorkbenchStreamEvent/valid/message-done.json +13 -0
- package/gen/go/sohaapi/client.go +989 -0
- package/gen/go/sohaapi/client_test.go +2127 -0
- package/gen/go/sohaapi/types.go +21450 -0
- package/gen/ts/sohaapi/index.ts +22869 -0
- package/go.mod +18 -0
- package/go.sum +46 -0
- package/governance/approval-request.schema.json +187 -0
- package/governance/audit-log.schema.json +37 -0
- package/helmrelease/release.go +108 -0
- package/helmrelease/release_test.go +9 -0
- package/knowledge/connector-checkpoint.schema.json +16 -0
- package/knowledge/connector-definition.schema.json +18 -0
- package/knowledge/context-envelope.schema.json +32 -0
- package/knowledge/graph-revision.schema.json +21 -0
- package/knowledge/index-publish.schema.json +17 -0
- package/knowledge/ingestion-job.schema.json +22 -0
- package/knowledge/ingestion-stage.schema.json +19 -0
- package/knowledge/knowledge-base.schema.json +48 -0
- package/knowledge/knowledge-search.schema.json +21 -0
- package/knowledge/knowledge-source.schema.json +28 -0
- package/knowledge/retrieval-trace.schema.json +21 -0
- package/mcp/gateway-capability-baseline.schema.json +290 -0
- package/mcp/gateway-manifest.schema.json +210 -0
- package/memory/memory-policy.schema.json +19 -0
- package/memory/memory-record.schema.json +25 -0
- package/openapi/soha-api.json +42282 -0
- package/openapi/soha-api.yaml +21748 -0
- package/openapi/spec_generated.go +23 -0
- package/openapi/spec_test.go +38 -0
- package/package.json +122 -0
- package/plugins/marketplace-catalog.schema.json +120 -0
- package/plugins/observability-log-query-v1.schema.json +88 -0
- package/plugins/plugin-manifest.schema.json +498 -0
- package/presets/mcp-preset.schema.json +142 -0
- package/profiles/agent-profile.schema.json +154 -0
- package/resource/crd_definition.go +10 -0
- package/resource/gateway_details_test.go +55 -0
- package/resource/models.go +1587 -0
- package/resource/models_test.go +72 -0
- package/runner/operation-lifecycle.schema.json +112 -0
- package/skills/skill-manifest.schema.json +64 -0
- package/streamlimit/limited_buffer.go +58 -0
- package/streamlimit/limited_buffer_test.go +38 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Code generated from OpenSoha contracts. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
package openapi
|
|
4
|
+
|
|
5
|
+
import _ "embed"
|
|
6
|
+
|
|
7
|
+
const (
|
|
8
|
+
Version = "0.1.4"
|
|
9
|
+
YAMLSHA256 = "09e3b9d0e56d0fa64dec6ca3a631a15cea6c8837fdcd1efe6866d9f2b7163e1a"
|
|
10
|
+
JSONSHA256 = "677e1cf4de13bb9888f4af32c773ff47c8937312bcf04da764477b7b3c711aab"
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
//go:embed soha-api.yaml
|
|
14
|
+
var yamlSpec []byte
|
|
15
|
+
|
|
16
|
+
//go:embed soha-api.json
|
|
17
|
+
var jsonSpec []byte
|
|
18
|
+
|
|
19
|
+
// YAML returns a copy of the canonical OpenAPI YAML document.
|
|
20
|
+
func YAML() []byte { return append([]byte(nil), yamlSpec...) }
|
|
21
|
+
|
|
22
|
+
// JSON returns a copy of the canonical OpenAPI JSON document.
|
|
23
|
+
func JSON() []byte { return append([]byte(nil), jsonSpec...) }
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
package openapi
|
|
2
|
+
|
|
3
|
+
import (
|
|
4
|
+
"crypto/sha256"
|
|
5
|
+
"encoding/json"
|
|
6
|
+
"fmt"
|
|
7
|
+
"testing"
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
func TestEmbeddedSpecsMatchMetadata(t *testing.T) {
|
|
11
|
+
for _, test := range []struct {
|
|
12
|
+
name string
|
|
13
|
+
body []byte
|
|
14
|
+
want string
|
|
15
|
+
}{
|
|
16
|
+
{name: "yaml", body: YAML(), want: YAMLSHA256},
|
|
17
|
+
{name: "json", body: JSON(), want: JSONSHA256},
|
|
18
|
+
} {
|
|
19
|
+
t.Run(test.name, func(t *testing.T) {
|
|
20
|
+
got := fmt.Sprintf("%x", sha256.Sum256(test.body))
|
|
21
|
+
if got != test.want {
|
|
22
|
+
t.Fatalf("sha256 = %s, want %s", got, test.want)
|
|
23
|
+
}
|
|
24
|
+
})
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var document struct {
|
|
28
|
+
Info struct {
|
|
29
|
+
Version string `json:"version"`
|
|
30
|
+
} `json:"info"`
|
|
31
|
+
}
|
|
32
|
+
if err := json.Unmarshal(JSON(), &document); err != nil {
|
|
33
|
+
t.Fatalf("decode embedded JSON: %v", err)
|
|
34
|
+
}
|
|
35
|
+
if document.Info.Version != Version {
|
|
36
|
+
t.Fatalf("info.version = %q, want %q", document.Info.Version, Version)
|
|
37
|
+
}
|
|
38
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@opensoha/contracts",
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Shared OpenSoha API, agent, MCP, skill, event, and auth contracts.",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/opensoha/soha-contracts"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"generate": "node scripts/generate-sdk.mjs",
|
|
14
|
+
"check:generated": "node scripts/generate-sdk.mjs --check",
|
|
15
|
+
"check:version-sync": "node scripts/check-version-sync.mjs",
|
|
16
|
+
"check:consumers": "node scripts/check-consumers.mjs",
|
|
17
|
+
"validate": "node scripts/validate.mjs",
|
|
18
|
+
"lint:openapi": "node scripts/lint-openapi.mjs",
|
|
19
|
+
"check:openapi-breaking": "node scripts/check-openapi-breaking.mjs",
|
|
20
|
+
"check:openapi-loose-boundaries": "node scripts/check-openapi-loose-boundaries.mjs",
|
|
21
|
+
"check:json-schema-compat": "node scripts/check-json-schema-compat.mjs",
|
|
22
|
+
"check:openapi-breaking:update": "node scripts/check-openapi-breaking.mjs --update-baseline",
|
|
23
|
+
"release:artifacts": "node scripts/prepare-release-artifacts.mjs",
|
|
24
|
+
"release:verify": "node scripts/prepare-release-artifacts.mjs --verify",
|
|
25
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
26
|
+
"test": "npm run check:version-sync && npm run check:generated && npm run validate && npm run lint:openapi && npm run check:openapi-breaking && npm run check:openapi-loose-boundaries && npm run check:json-schema-compat && npm run typecheck && go test ./..."
|
|
27
|
+
},
|
|
28
|
+
"exports": {
|
|
29
|
+
"./gen/ts/sohaapi": "./gen/ts/sohaapi/index.ts",
|
|
30
|
+
"./openapi/soha-api.yaml": "./openapi/soha-api.yaml",
|
|
31
|
+
"./openapi/soha-api.json": "./openapi/soha-api.json",
|
|
32
|
+
"./capabilities/cluster-capability-matrix.schema.json": "./capabilities/cluster-capability-matrix.schema.json",
|
|
33
|
+
"./profiles/agent-profile.schema.json": "./profiles/agent-profile.schema.json",
|
|
34
|
+
"./presets/mcp-preset.schema.json": "./presets/mcp-preset.schema.json",
|
|
35
|
+
"./governance/approval-request.schema.json": "./governance/approval-request.schema.json",
|
|
36
|
+
"./governance/audit-log.schema.json": "./governance/audit-log.schema.json",
|
|
37
|
+
"./agent/agent-protocol.schema.json": "./agent/agent-protocol.schema.json",
|
|
38
|
+
"./agent/agent-provider-definition.schema.json": "./agent/agent-provider-definition.schema.json",
|
|
39
|
+
"./agent/agent-provider-registry.schema.json": "./agent/agent-provider-registry.schema.json",
|
|
40
|
+
"./agent/agent-run-step.schema.json": "./agent/agent-run-step.schema.json",
|
|
41
|
+
"./agent/agent-observation.schema.json": "./agent/agent-observation.schema.json",
|
|
42
|
+
"./agent/agent-checkpoint.schema.json": "./agent/agent-checkpoint.schema.json",
|
|
43
|
+
"./agent/environment-lease.schema.json": "./agent/environment-lease.schema.json",
|
|
44
|
+
"./agent/environment-snapshot.schema.json": "./agent/environment-snapshot.schema.json",
|
|
45
|
+
"./agent/agent-provider-runtime-event.schema.json": "./agent/agent-provider-runtime-event.schema.json",
|
|
46
|
+
"./evaluation/evaluation-dataset.schema.json": "./evaluation/evaluation-dataset.schema.json",
|
|
47
|
+
"./evaluation/evaluation-run.schema.json": "./evaluation/evaluation-run.schema.json",
|
|
48
|
+
"./evaluation/evaluation-result.schema.json": "./evaluation/evaluation-result.schema.json",
|
|
49
|
+
"./runner/operation-lifecycle.schema.json": "./runner/operation-lifecycle.schema.json",
|
|
50
|
+
"./mcp/gateway-manifest.schema.json": "./mcp/gateway-manifest.schema.json",
|
|
51
|
+
"./mcp/gateway-capability-baseline.schema.json": "./mcp/gateway-capability-baseline.schema.json",
|
|
52
|
+
"./skills/skill-manifest.schema.json": "./skills/skill-manifest.schema.json",
|
|
53
|
+
"./plugins/plugin-manifest.schema.json": "./plugins/plugin-manifest.schema.json",
|
|
54
|
+
"./plugins/marketplace-catalog.schema.json": "./plugins/marketplace-catalog.schema.json",
|
|
55
|
+
"./events/event-envelope.schema.json": "./events/event-envelope.schema.json",
|
|
56
|
+
"./auth/token-claims.schema.json": "./auth/token-claims.schema.json",
|
|
57
|
+
"./connectors/connector-event-envelope.schema.json": "./connectors/connector-event-envelope.schema.json",
|
|
58
|
+
"./knowledge/knowledge-base.schema.json": "./knowledge/knowledge-base.schema.json",
|
|
59
|
+
"./knowledge/knowledge-source.schema.json": "./knowledge/knowledge-source.schema.json",
|
|
60
|
+
"./knowledge/knowledge-search.schema.json": "./knowledge/knowledge-search.schema.json",
|
|
61
|
+
"./knowledge/context-envelope.schema.json": "./knowledge/context-envelope.schema.json",
|
|
62
|
+
"./knowledge/connector-definition.schema.json": "./knowledge/connector-definition.schema.json",
|
|
63
|
+
"./knowledge/connector-checkpoint.schema.json": "./knowledge/connector-checkpoint.schema.json",
|
|
64
|
+
"./knowledge/ingestion-job.schema.json": "./knowledge/ingestion-job.schema.json",
|
|
65
|
+
"./knowledge/ingestion-stage.schema.json": "./knowledge/ingestion-stage.schema.json",
|
|
66
|
+
"./knowledge/index-publish.schema.json": "./knowledge/index-publish.schema.json",
|
|
67
|
+
"./knowledge/retrieval-trace.schema.json": "./knowledge/retrieval-trace.schema.json",
|
|
68
|
+
"./knowledge/graph-revision.schema.json": "./knowledge/graph-revision.schema.json",
|
|
69
|
+
"./agent/fleet-target.schema.json": "./agent/fleet-target.schema.json",
|
|
70
|
+
"./agent/provider-rollout.schema.json": "./agent/provider-rollout.schema.json",
|
|
71
|
+
"./agent/conformance-run.schema.json": "./agent/conformance-run.schema.json",
|
|
72
|
+
"./agent/environment-template.schema.json": "./agent/environment-template.schema.json",
|
|
73
|
+
"./agent/multi-agent-plan.schema.json": "./agent/multi-agent-plan.schema.json",
|
|
74
|
+
"./evaluation/executor-profile.schema.json": "./evaluation/executor-profile.schema.json",
|
|
75
|
+
"./evaluation/sample-attempt.schema.json": "./evaluation/sample-attempt.schema.json",
|
|
76
|
+
"./evaluation/replay-plan.schema.json": "./evaluation/replay-plan.schema.json",
|
|
77
|
+
"./evaluation/gate-policy.schema.json": "./evaluation/gate-policy.schema.json",
|
|
78
|
+
"./evaluation/gate-decision.schema.json": "./evaluation/gate-decision.schema.json",
|
|
79
|
+
"./evaluation/feedback-sample.schema.json": "./evaluation/feedback-sample.schema.json",
|
|
80
|
+
"./memory/memory-record.schema.json": "./memory/memory-record.schema.json",
|
|
81
|
+
"./memory/memory-policy.schema.json": "./memory/memory-policy.schema.json"
|
|
82
|
+
},
|
|
83
|
+
"files": [
|
|
84
|
+
"COMPATIBILITY.md",
|
|
85
|
+
"go.mod",
|
|
86
|
+
"go.sum",
|
|
87
|
+
"apiresponse",
|
|
88
|
+
"helmrelease",
|
|
89
|
+
"resource",
|
|
90
|
+
"streamlimit",
|
|
91
|
+
"compat",
|
|
92
|
+
"examples",
|
|
93
|
+
"fixtures",
|
|
94
|
+
"gen",
|
|
95
|
+
"openapi",
|
|
96
|
+
"capabilities",
|
|
97
|
+
"profiles",
|
|
98
|
+
"presets",
|
|
99
|
+
"governance",
|
|
100
|
+
"agent",
|
|
101
|
+
"evaluation",
|
|
102
|
+
"runner",
|
|
103
|
+
"mcp",
|
|
104
|
+
"skills",
|
|
105
|
+
"plugins",
|
|
106
|
+
"events",
|
|
107
|
+
"auth",
|
|
108
|
+
"connectors",
|
|
109
|
+
"knowledge",
|
|
110
|
+
"memory"
|
|
111
|
+
],
|
|
112
|
+
"devDependencies": {
|
|
113
|
+
"ajv": "^8.20.0",
|
|
114
|
+
"ajv-formats": "^3.0.1",
|
|
115
|
+
"openapi-typescript": "^7.13.0",
|
|
116
|
+
"typescript": "^5.9.3",
|
|
117
|
+
"yaml": "^2.9.0"
|
|
118
|
+
},
|
|
119
|
+
"publishConfig": {
|
|
120
|
+
"access": "public"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.opensoha.dev/plugins/marketplace-catalog.schema.json",
|
|
4
|
+
"title": "OpenSoha Marketplace Catalog",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["schemaVersion", "generatedAt", "sourceId", "plugins"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "type": "string", "const": "marketplace.opensoha.io/v1" },
|
|
9
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
10
|
+
"sourceId": { "type": "string", "minLength": 1 },
|
|
11
|
+
"sourceUrl": { "type": "string" },
|
|
12
|
+
"plugins": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": { "$ref": "#/$defs/plugin" }
|
|
15
|
+
},
|
|
16
|
+
"advisories": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": { "$ref": "#/$defs/advisory" }
|
|
19
|
+
},
|
|
20
|
+
"metadata": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": true
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"$defs": {
|
|
26
|
+
"plugin": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"required": ["id", "name", "version", "publisher", "type", "source", "manifest"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"id": { "type": "string", "minLength": 1 },
|
|
31
|
+
"name": { "type": "string", "minLength": 1 },
|
|
32
|
+
"version": { "type": "string", "minLength": 1 },
|
|
33
|
+
"publisher": { "type": "string", "minLength": 1 },
|
|
34
|
+
"type": { "type": "string" },
|
|
35
|
+
"summary": { "type": "string" },
|
|
36
|
+
"source": { "type": "string" },
|
|
37
|
+
"sourceId": { "type": "string" },
|
|
38
|
+
"sourceUrl": { "type": "string" },
|
|
39
|
+
"riskLevel": { "type": "string" },
|
|
40
|
+
"latestVersion": { "type": "string" },
|
|
41
|
+
"categories": { "type": "array", "items": { "type": "string" } },
|
|
42
|
+
"verified": { "type": "boolean" },
|
|
43
|
+
"publisherInfo": { "$ref": "#/$defs/publisher" },
|
|
44
|
+
"compatibility": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": { "type": "string" }
|
|
47
|
+
},
|
|
48
|
+
"versions": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": { "$ref": "#/$defs/version" }
|
|
51
|
+
},
|
|
52
|
+
"advisories": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": { "$ref": "#/$defs/advisory" }
|
|
55
|
+
},
|
|
56
|
+
"deprecated": { "type": "boolean" },
|
|
57
|
+
"suspended": { "type": "boolean" },
|
|
58
|
+
"manifest": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"additionalProperties": true
|
|
61
|
+
},
|
|
62
|
+
"installed": { "type": "boolean" }
|
|
63
|
+
},
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
},
|
|
66
|
+
"publisher": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"required": ["id", "name"],
|
|
69
|
+
"properties": {
|
|
70
|
+
"id": { "type": "string", "minLength": 1 },
|
|
71
|
+
"name": { "type": "string", "minLength": 1 },
|
|
72
|
+
"verified": { "type": "boolean" },
|
|
73
|
+
"verificationLevel": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"enum": ["official", "verified", "community", "private"]
|
|
76
|
+
},
|
|
77
|
+
"url": { "type": "string" }
|
|
78
|
+
},
|
|
79
|
+
"additionalProperties": false
|
|
80
|
+
},
|
|
81
|
+
"version": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"required": ["version", "manifestUrl"],
|
|
84
|
+
"properties": {
|
|
85
|
+
"version": { "type": "string", "minLength": 1 },
|
|
86
|
+
"manifestUrl": { "type": "string", "minLength": 1 },
|
|
87
|
+
"packageUrl": { "type": "string" },
|
|
88
|
+
"checksum": { "type": "string" },
|
|
89
|
+
"signature": { "type": "string" },
|
|
90
|
+
"publishedAt": { "type": "string", "format": "date-time" },
|
|
91
|
+
"deprecated": { "type": "boolean" },
|
|
92
|
+
"suspended": { "type": "boolean" },
|
|
93
|
+
"minSohaVersion": { "type": "string" },
|
|
94
|
+
"metadata": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"additionalProperties": true
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"additionalProperties": false
|
|
100
|
+
},
|
|
101
|
+
"advisory": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"required": ["id", "severity", "summary"],
|
|
104
|
+
"properties": {
|
|
105
|
+
"id": { "type": "string", "minLength": 1 },
|
|
106
|
+
"severity": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"enum": ["low", "medium", "high", "critical"]
|
|
109
|
+
},
|
|
110
|
+
"summary": { "type": "string", "minLength": 1 },
|
|
111
|
+
"url": { "type": "string" },
|
|
112
|
+
"publishedAt": { "type": "string", "format": "date-time" },
|
|
113
|
+
"affectedVersions": { "type": "array", "items": { "type": "string" } },
|
|
114
|
+
"withdrawn": { "type": "boolean" }
|
|
115
|
+
},
|
|
116
|
+
"additionalProperties": false
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"additionalProperties": false
|
|
120
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.opensoha.dev/plugins/observability-log-query-v1.schema.json",
|
|
4
|
+
"title": "OpenSoha Observability Provider logs.query v1",
|
|
5
|
+
"description": "Versioned request and response contract for an observability provider logs.query action.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{ "$ref": "#/$defs/Request" },
|
|
8
|
+
{ "$ref": "#/$defs/Response" }
|
|
9
|
+
],
|
|
10
|
+
"$defs": {
|
|
11
|
+
"Request": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"additionalProperties": false,
|
|
14
|
+
"required": ["protocolVersion", "providerKey", "sourceId", "config", "query"],
|
|
15
|
+
"properties": {
|
|
16
|
+
"protocolVersion": { "const": "v1" },
|
|
17
|
+
"providerKey": { "type": "string", "pattern": "^[a-z][a-z0-9._-]*$" },
|
|
18
|
+
"sourceId": { "type": "string", "minLength": 1 },
|
|
19
|
+
"config": { "type": "object", "additionalProperties": true },
|
|
20
|
+
"credentials": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"propertyNames": { "pattern": "^[a-z][a-z0-9._-]*$" },
|
|
23
|
+
"additionalProperties": { "type": "string" }
|
|
24
|
+
},
|
|
25
|
+
"query": { "$ref": "#/$defs/Query" }
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"Query": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"required": ["scope", "timeFrom", "timeTo", "limit", "direction"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"scope": { "$ref": "#/$defs/Scope" },
|
|
34
|
+
"timeFrom": { "type": "string", "format": "date-time" },
|
|
35
|
+
"timeTo": { "type": "string", "format": "date-time" },
|
|
36
|
+
"query": { "type": "string" },
|
|
37
|
+
"terms": { "type": "array", "items": { "type": "string" } },
|
|
38
|
+
"severities": { "type": "array", "items": { "type": "string" } },
|
|
39
|
+
"limit": { "type": "integer", "minimum": 1 },
|
|
40
|
+
"direction": { "type": "string", "enum": ["forward", "backward"] },
|
|
41
|
+
"pageToken": { "type": "string" }
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"Scope": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"properties": {
|
|
48
|
+
"clusterId": { "type": "string" },
|
|
49
|
+
"namespace": { "type": "string" },
|
|
50
|
+
"service": { "type": "string" },
|
|
51
|
+
"workload": { "type": "string" },
|
|
52
|
+
"pod": { "type": "string" },
|
|
53
|
+
"container": { "type": "string" },
|
|
54
|
+
"containers": { "type": "array", "uniqueItems": true, "items": { "type": "string" } }
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"Response": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": ["records", "truncated"],
|
|
61
|
+
"properties": {
|
|
62
|
+
"sourceId": { "type": "string" },
|
|
63
|
+
"records": { "type": "array", "items": { "$ref": "#/$defs/Record" } },
|
|
64
|
+
"nextPageToken": { "type": "string" },
|
|
65
|
+
"truncated": { "type": "boolean" },
|
|
66
|
+
"queryCost": { "type": "object", "additionalProperties": true },
|
|
67
|
+
"errorKind": { "type": "string" }
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"Record": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"additionalProperties": false,
|
|
73
|
+
"required": ["timestamp", "message"],
|
|
74
|
+
"properties": {
|
|
75
|
+
"timestamp": { "type": "string", "format": "date-time" },
|
|
76
|
+
"severity": { "type": "string" },
|
|
77
|
+
"message": { "type": "string" },
|
|
78
|
+
"service": { "type": "string" },
|
|
79
|
+
"workload": { "type": "string" },
|
|
80
|
+
"namespace": { "type": "string" },
|
|
81
|
+
"clusterId": { "type": "string" },
|
|
82
|
+
"pod": { "type": "string" },
|
|
83
|
+
"container": { "type": "string" },
|
|
84
|
+
"attributes": { "type": "object", "additionalProperties": true }
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|