@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
package/COMPATIBILITY.md
ADDED
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
# Compatibility and Versioning
|
|
2
|
+
|
|
3
|
+
This repository owns the public OpenSoha contract surface. Consumers should
|
|
4
|
+
pin released versions and treat this repository as the first place where public
|
|
5
|
+
API, schema, and SDK behavior changes are proposed.
|
|
6
|
+
|
|
7
|
+
## Version Streams
|
|
8
|
+
|
|
9
|
+
Current stream: `0.1.x`.
|
|
10
|
+
|
|
11
|
+
- `0.x` releases may still evolve quickly, but compatibility gates must run for
|
|
12
|
+
every change.
|
|
13
|
+
- `0.1.x` patch releases may add optional fields, optional query parameters,
|
|
14
|
+
new enum values, new response status codes, new operations, and new schemas.
|
|
15
|
+
- `0.1.x` patch releases must not remove existing operations, rename
|
|
16
|
+
`operationId` values, remove response status codes, remove schema properties,
|
|
17
|
+
add required request properties, remove enum values, or narrow existing
|
|
18
|
+
schema types.
|
|
19
|
+
- Minor `0.x` releases may include intentional breaking changes only when the
|
|
20
|
+
migration is documented in the release notes and consumers have a clear
|
|
21
|
+
adoption path.
|
|
22
|
+
- `1.0.0` starts the stable contract line. After `1.0.0`, breaking changes
|
|
23
|
+
require a major version bump, a migration note, and consumer coordination.
|
|
24
|
+
|
|
25
|
+
## Version Synchronization
|
|
26
|
+
|
|
27
|
+
Each release must keep these values aligned:
|
|
28
|
+
|
|
29
|
+
- `package.json` `version`
|
|
30
|
+
- `package-lock.json` root package version
|
|
31
|
+
- `openapi/soha-api.yaml` `info.version`
|
|
32
|
+
- `gen/go/sohaapi/client.go` default user agent version
|
|
33
|
+
- Git tag `v<version>`
|
|
34
|
+
- Go module tag for consumers importing
|
|
35
|
+
`github.com/opensoha/soha-contracts/gen/go/sohaapi`
|
|
36
|
+
|
|
37
|
+
The version sync gate runs with:
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
npm run check:version-sync
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The gate fails when any of the synchronized versions diverge. In GitHub tag
|
|
44
|
+
release workflows it also verifies that the pushed tag is exactly
|
|
45
|
+
`v<package.json version>`.
|
|
46
|
+
|
|
47
|
+
Release order for `0.1.x`:
|
|
48
|
+
|
|
49
|
+
1. Update `package.json`, `package-lock.json`, and OpenAPI `info.version` to
|
|
50
|
+
the same patch version.
|
|
51
|
+
2. Regenerate SDKs when OpenAPI changed.
|
|
52
|
+
3. Run `npm test`, `npm pack --dry-run`, `npm run release:artifacts`, and
|
|
53
|
+
the consumer matrix.
|
|
54
|
+
4. Create tag `v<version>`.
|
|
55
|
+
5. Let the release workflow publish npm when `NPM_TOKEN` is configured and
|
|
56
|
+
create the GitHub release with the npm tarball, `.sha256` checksum, and
|
|
57
|
+
release manifest attached.
|
|
58
|
+
|
|
59
|
+
## Compatibility Baseline
|
|
60
|
+
|
|
61
|
+
`compat/openapi-0.1.0.snapshot.json` is the current OpenAPI compatibility
|
|
62
|
+
baseline. It is generated from `openapi/soha-api.yaml` by:
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
npm run check:openapi-breaking:update
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Do not update the baseline just to make a failing check pass. Update it only
|
|
69
|
+
when starting a new compatibility baseline after an intentional versioned break
|
|
70
|
+
or when establishing a baseline for a newly stabilized stream.
|
|
71
|
+
|
|
72
|
+
The breaking-change check currently blocks these high-risk changes:
|
|
73
|
+
|
|
74
|
+
- Removing a path or HTTP operation.
|
|
75
|
+
- Changing an existing `operationId`.
|
|
76
|
+
- Removing an existing response status or media type.
|
|
77
|
+
- Adding a required request body or required parameter.
|
|
78
|
+
- Removing a component schema.
|
|
79
|
+
- Removing an existing schema property.
|
|
80
|
+
- Adding a required schema property.
|
|
81
|
+
- Removing an enum value.
|
|
82
|
+
- Changing an existing schema type, format, `$ref`, array item schema, or
|
|
83
|
+
object `additionalProperties` contract in a narrowing direction.
|
|
84
|
+
|
|
85
|
+
This is a baseline guard, not a full API review substitute. Contract changes
|
|
86
|
+
that pass this script can still require consumer tests when semantics change.
|
|
87
|
+
|
|
88
|
+
## OpenAPI Loose Boundary Baseline
|
|
89
|
+
|
|
90
|
+
`compat/openapi-loose-boundaries-0.1.0.json` records every current OpenAPI use
|
|
91
|
+
of `AnyValue`, `GenericObject`, and bare `additionalProperties: true`. The
|
|
92
|
+
check runs with:
|
|
93
|
+
|
|
94
|
+
```sh
|
|
95
|
+
npm run check:openapi-loose-boundaries
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
New loose boundaries must not be added accidentally. If a future contract truly
|
|
99
|
+
requires dynamic JSON, add it to the baseline with an intentional review note.
|
|
100
|
+
If a loose boundary is tightened, remove it from the baseline in the same
|
|
101
|
+
change so the contract surface keeps moving toward named schemas.
|
|
102
|
+
|
|
103
|
+
## Public Cloud Extension Points
|
|
104
|
+
|
|
105
|
+
`CloudExtensionPoint` OpenAPI DTOs describe only public extension points that
|
|
106
|
+
Cloud can consume through shared contracts, HTTP APIs, SDKs, webhooks, or event
|
|
107
|
+
sinks. Billing, quota, and SaaS IAM remain Cloud-only domains and must not be
|
|
108
|
+
promoted into this public contracts repository.
|
|
109
|
+
|
|
110
|
+
For `0.1.x`, patch releases may add optional public extension point fields,
|
|
111
|
+
new extension point kinds, new public boundary kinds, and new supported
|
|
112
|
+
consumer names. They must not remove or rename `id`, `name`, `kind`,
|
|
113
|
+
`boundary`, `contractRefs`, or `excludedCloudOnlyDomains`; must not add new
|
|
114
|
+
required fields; and must not remove `billing`, `quota`, or `saas-iam` from
|
|
115
|
+
the Cloud-only exclusion enum.
|
|
116
|
+
|
|
117
|
+
## Fixture Policy
|
|
118
|
+
|
|
119
|
+
Every JSON Schema owned by this repository must have at least one valid and one
|
|
120
|
+
invalid fixture under `fixtures/json-schema/<contract>/`.
|
|
121
|
+
|
|
122
|
+
High-value OpenAPI DTOs must have valid and invalid fixtures under
|
|
123
|
+
`fixtures/openapi/<SchemaName>/`. Add fixtures when a schema becomes important
|
|
124
|
+
to a cross-repository workflow, especially auth, runner callbacks, AI Gateway,
|
|
125
|
+
MCP, plugins, tokens, approvals, and governance.
|
|
126
|
+
|
|
127
|
+
Fixture validation runs with:
|
|
128
|
+
|
|
129
|
+
```sh
|
|
130
|
+
npm run validate
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Request/response and manifest examples under `examples/` are also validated
|
|
134
|
+
by `npm run validate`. Examples are release documentation assets, so they
|
|
135
|
+
should be valid positive payloads rather than negative test cases.
|
|
136
|
+
|
|
137
|
+
## Ecosystem JSON Schema Baseline
|
|
138
|
+
|
|
139
|
+
`compat/json-schema-ecosystem-0.1.0.json` protects the public plugin, skill,
|
|
140
|
+
and connector JSON Schemas from accidental breaking changes. The check runs
|
|
141
|
+
with:
|
|
142
|
+
|
|
143
|
+
```sh
|
|
144
|
+
npm run check:json-schema-compat
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
The baseline blocks removing existing root properties, adding new root required
|
|
148
|
+
properties, and removing existing enum values. Optional fields and enum values
|
|
149
|
+
may be added in `0.1.x` patch releases when fixtures and compatibility notes
|
|
150
|
+
are updated.
|
|
151
|
+
|
|
152
|
+
## Cluster Capability Matrix
|
|
153
|
+
|
|
154
|
+
`capabilities/cluster-capability-matrix.schema.json` owns the public
|
|
155
|
+
Direct/Agent runtime capability matrix consumed by Core, Web, CLI, Agent,
|
|
156
|
+
Skills, Connectors, and Cloud extension points. It describes Kubernetes, Helm,
|
|
157
|
+
YAML, logs, exec, port-forward, Docker, and runtime support with explicit
|
|
158
|
+
available, partial, and unsupported states.
|
|
159
|
+
|
|
160
|
+
For `0.1.x`, patch releases may add optional fields, new capability entries,
|
|
161
|
+
new categories, new risk levels, and new support diagnostics. They must not
|
|
162
|
+
remove or rename `items`, entry `key`, `label`, `category`, `riskLevel`,
|
|
163
|
+
`requiresApproval`, `direct`, or `agent`; must not add new required fields; and
|
|
164
|
+
must not narrow the existing `available`, `partial`, or `unsupported` status
|
|
165
|
+
values. Any `partial` or `unsupported` support state must continue to provide a
|
|
166
|
+
human-readable reason so downstream UI and diagnostics can explain degraded
|
|
167
|
+
runtime behavior.
|
|
168
|
+
|
|
169
|
+
## Plugin Manifest
|
|
170
|
+
|
|
171
|
+
`plugins/plugin-manifest.schema.json` owns the public package manifest for
|
|
172
|
+
skills, skill packs, MCP presets, connectors, AI provider adapters, agent
|
|
173
|
+
profiles, and gateway policy packs. Marketplace, CLI, Web, Skills, Connectors,
|
|
174
|
+
and Cloud consumers should use this schema as the source of truth for package
|
|
175
|
+
identity, compatibility declarations, asset references, permissions, secrets,
|
|
176
|
+
and integrity metadata.
|
|
177
|
+
|
|
178
|
+
For `0.1.x`, patch releases may add optional plugin types, optional asset
|
|
179
|
+
groups, optional capability groups, optional permission fields, optional secret
|
|
180
|
+
metadata, and optional integrity metadata. They must not remove or rename `id`,
|
|
181
|
+
`name`, `version`, `publisher`, or `type`; must not add new required fields;
|
|
182
|
+
must not narrow the plugin ID pattern; must not remove existing plugin `type`
|
|
183
|
+
enum values; and must not allow unknown top-level fields outside explicitly
|
|
184
|
+
versioned metadata.
|
|
185
|
+
|
|
186
|
+
## Skill Manifest
|
|
187
|
+
|
|
188
|
+
`skills/skill-manifest.schema.json` owns the public structured front matter
|
|
189
|
+
contract for official and ecosystem skill assets. Skill repositories may add
|
|
190
|
+
repository-local metadata, but cross-repository routing, permission review, and
|
|
191
|
+
capability binding should use this schema first.
|
|
192
|
+
|
|
193
|
+
For `0.1.x`, patch releases may add optional fields, optional provider skill
|
|
194
|
+
reference metadata, optional capability reference conventions, and optional
|
|
195
|
+
permission or scope annotations. They must not remove or rename `id`, `name`,
|
|
196
|
+
or `category`; must not add new required fields; must not narrow the skill ID
|
|
197
|
+
pattern; and must not allow unknown top-level fields outside `metadata`.
|
|
198
|
+
|
|
199
|
+
## Agent Profile
|
|
200
|
+
|
|
201
|
+
`profiles/agent-profile.schema.json` owns the public agent runtime profile
|
|
202
|
+
manifest used by official skills, CLI installers, Web previews, Agent runtime
|
|
203
|
+
selection, and Cloud managed fleet configuration. It binds skills, MCP presets,
|
|
204
|
+
capabilities, scopes, enabled/disabled tools, execution budgets, and guardrails.
|
|
205
|
+
|
|
206
|
+
For `0.1.x`, patch releases may add optional modes, optional budget fields,
|
|
207
|
+
optional guardrail conventions, and optional metadata. They must not remove or
|
|
208
|
+
rename `schemaVersion`, `id`, `name`, `version`, `mode`, `providerKind`,
|
|
209
|
+
`skillRefs`, `mcpPresetRefs`, `capabilityRefs`, `platformCapabilityRefs`,
|
|
210
|
+
`requiredScopes`, `enabledToolRefs`, or `guardrails`; must not add new required
|
|
211
|
+
fields; must not narrow the ID pattern or semantic version pattern; and must
|
|
212
|
+
not allow unknown top-level fields outside `metadata`.
|
|
213
|
+
|
|
214
|
+
## MCP Preset
|
|
215
|
+
|
|
216
|
+
`presets/mcp-preset.schema.json` owns the public MCP preset manifest used by
|
|
217
|
+
official skills, CLI installers, Gateway capability binding, Web previews, and
|
|
218
|
+
Cloud/local preset packaging. It declares a bounded set of tools, resources,
|
|
219
|
+
prompts, scopes, capabilities, risk level, and guardrails.
|
|
220
|
+
|
|
221
|
+
For `0.1.x`, patch releases may add optional risk levels, optional capability
|
|
222
|
+
metadata, optional top-level metadata, and optional tool/resource/prompt fields.
|
|
223
|
+
They must not remove or rename `schemaVersion`, `id`, `name`, `version`,
|
|
224
|
+
`riskLevel`, `skillRefs`, `platformCapabilityRefs`, `requiredScopes`, `tools`,
|
|
225
|
+
or `guardrails`; must not add new required fields; must not narrow the ID
|
|
226
|
+
pattern or semantic version pattern; and must not allow unknown top-level
|
|
227
|
+
fields outside `metadata`.
|
|
228
|
+
|
|
229
|
+
## Governance Approval Request
|
|
230
|
+
|
|
231
|
+
`governance/approval-request.schema.json` owns the public approval request,
|
|
232
|
+
trace, decision, stage, and timeline event contract for high-risk Gateway and
|
|
233
|
+
platform operations. OpenAPI approval DTOs should stay compatible with this
|
|
234
|
+
schema when the same fields are exposed over HTTP.
|
|
235
|
+
|
|
236
|
+
For `0.1.x`, patch releases may add optional approval fields, optional trace
|
|
237
|
+
fields, optional decision metadata, optional stage metadata, and optional
|
|
238
|
+
timeline event metadata. They must not remove or rename `id`, `status`,
|
|
239
|
+
`strategy`, `actorType`, `actorId`, `toolName`, `riskLevel`,
|
|
240
|
+
`requiresApproval`, `summary`, `createdAt`, or `updatedAt`; must not add new
|
|
241
|
+
required fields; must not remove existing risk level values; and must not allow
|
|
242
|
+
unknown top-level fields outside explicitly modeled metadata objects.
|
|
243
|
+
|
|
244
|
+
## Governance Audit Log
|
|
245
|
+
|
|
246
|
+
`governance/audit-log.schema.json` owns the public audit log contract for
|
|
247
|
+
Gateway, platform, connector, plugin, skill, and Cloud extension point actions.
|
|
248
|
+
OpenAPI audit DTOs and event pipeline audit payloads should stay compatible
|
|
249
|
+
with this schema when the same fields are exposed outside a repository.
|
|
250
|
+
|
|
251
|
+
For `0.1.x`, patch releases may add optional audit fields, optional actor
|
|
252
|
+
display metadata, optional resource scope fields, optional request correlation
|
|
253
|
+
fields, and optional metadata conventions. They must not remove or rename `id`,
|
|
254
|
+
`actorType`, `actorId`, `action`, `result`, `summary`, or `createdAt`; must not
|
|
255
|
+
add new required fields; must not remove existing risk level values; and must
|
|
256
|
+
not allow unknown top-level fields outside `metadata` or `resourceScope`.
|
|
257
|
+
|
|
258
|
+
## Connector Event Envelope
|
|
259
|
+
|
|
260
|
+
`connectors/connector-event-envelope.schema.json` owns the public connector
|
|
261
|
+
runtime event sink batch envelope. Connector repositories may mirror this file
|
|
262
|
+
for package compatibility, but the canonical `$id` remains
|
|
263
|
+
`https://contracts.opensoha.dev/connectors/connector-event-envelope.schema.json`.
|
|
264
|
+
|
|
265
|
+
For `0.1.x`, patch releases may add optional fields to the wrapper or event
|
|
266
|
+
items and optional provider payload conventions, but must not remove or rename
|
|
267
|
+
top-level `connectorId` or `events`; must not remove or rename event `id`,
|
|
268
|
+
`type`, `source`, `occurredAt`, `subject`, or `payload`; must not add new
|
|
269
|
+
required fields, allow unknown wrapper/event fields, narrow the connector ID
|
|
270
|
+
pattern, or move provider-specific data out of `payload`.
|
|
271
|
+
|
|
272
|
+
## Runner Operation Lifecycle
|
|
273
|
+
|
|
274
|
+
`runner/operation-lifecycle.schema.json` owns the public event contract for
|
|
275
|
+
long-running operation lifecycle breadcrumbs across delivery, Docker, VM, AI
|
|
276
|
+
provider, agent run, and connector action runners.
|
|
277
|
+
|
|
278
|
+
For `0.1.x`, patch releases may add optional operation kinds, optional states,
|
|
279
|
+
optional evidence kinds, and optional metadata fields. They must not remove or
|
|
280
|
+
rename `operationId`, `operationKind`, `runnerId`, `state`, `occurredAt`,
|
|
281
|
+
`evidence`, `finalState`, or `callback`; must not add new required fields; and
|
|
282
|
+
must not narrow existing lifecycle state names or final status values.
|
|
283
|
+
|
|
284
|
+
## Consumer Adoption
|
|
285
|
+
|
|
286
|
+
Recommended adoption flow:
|
|
287
|
+
|
|
288
|
+
1. Change contracts and fixtures here first.
|
|
289
|
+
2. Run `npm test` in this repository.
|
|
290
|
+
3. Regenerate SDKs with `npm run generate` when OpenAPI changes.
|
|
291
|
+
4. Update consumers to the same contract version.
|
|
292
|
+
5. Run consumer build/test gates before release.
|
|
293
|
+
|
|
294
|
+
Private staging may use sibling checkouts, `go.work`, Go `replace`, or
|
|
295
|
+
`file:../soha-contracts`. Public release builds should pin tagged versions or
|
|
296
|
+
published npm packages.
|
|
297
|
+
|
|
298
|
+
The consumer matrix gate is:
|
|
299
|
+
|
|
300
|
+
```sh
|
|
301
|
+
npm run check:consumers
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
Local runs skip missing sibling checkouts by default. CI and release candidate
|
|
305
|
+
validation should use `--require-all` or a specific `--consumer <name>` so a
|
|
306
|
+
missing checkout is a failure.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|