@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.
Files changed (328) hide show
  1. package/COMPATIBILITY.md +306 -0
  2. package/LICENSE +201 -0
  3. package/README.md +224 -0
  4. package/agent/agent-checkpoint.schema.json +19 -0
  5. package/agent/agent-observation.schema.json +20 -0
  6. package/agent/agent-protocol.schema.json +717 -0
  7. package/agent/agent-provider-definition.schema.json +44 -0
  8. package/agent/agent-provider-registry.schema.json +25 -0
  9. package/agent/agent-provider-runtime-event.schema.json +26 -0
  10. package/agent/agent-run-step.schema.json +24 -0
  11. package/agent/conformance-run.schema.json +19 -0
  12. package/agent/environment-lease.schema.json +31 -0
  13. package/agent/environment-snapshot.schema.json +26 -0
  14. package/agent/environment-template.schema.json +19 -0
  15. package/agent/fleet-target.schema.json +15 -0
  16. package/agent/multi-agent-plan.schema.json +18 -0
  17. package/agent/provider-rollout.schema.json +19 -0
  18. package/apiresponse/response.go +25 -0
  19. package/apiresponse/response_test.go +27 -0
  20. package/auth/token-claims.schema.json +78 -0
  21. package/capabilities/cluster-capability-matrix.schema.json +87 -0
  22. package/compat/json-schema-ecosystem-0.1.0.json +59 -0
  23. package/compat/openapi-0.1.0.snapshot.json +5076 -0
  24. package/compat/openapi-loose-boundaries-0.1.0.json +769 -0
  25. package/connectors/connector-event-envelope.schema.json +64 -0
  26. package/evaluation/evaluation-dataset.schema.json +28 -0
  27. package/evaluation/evaluation-result.schema.json +18 -0
  28. package/evaluation/evaluation-run.schema.json +19 -0
  29. package/evaluation/executor-profile.schema.json +18 -0
  30. package/evaluation/feedback-sample.schema.json +20 -0
  31. package/evaluation/gate-decision.schema.json +20 -0
  32. package/evaluation/gate-policy.schema.json +18 -0
  33. package/evaluation/replay-plan.schema.json +17 -0
  34. package/evaluation/sample-attempt.schema.json +22 -0
  35. package/events/event-envelope.schema.json +58 -0
  36. package/examples/agent-profile/k8s-sre-readonly.json +16 -0
  37. package/examples/cluster-capability-matrix/runtime-parity.json +40 -0
  38. package/examples/connector-event-envelope/feishu-message.json +19 -0
  39. package/examples/gateway-capability-baseline/minimal.json +61 -0
  40. package/examples/gateway-manifest/minimal.json +72 -0
  41. package/examples/governance/approval-request.json +35 -0
  42. package/examples/governance/audit-log.json +14 -0
  43. package/examples/marketplace-catalog/default.json +75 -0
  44. package/examples/mcp-preset/k8s-readonly.json +20 -0
  45. package/examples/openapi/agent-run-tool-call-request.json +11 -0
  46. package/examples/openapi/agent-tool-call-result-envelope.json +19 -0
  47. package/examples/openapi/cloud-extension-point-list-envelope.json +15 -0
  48. package/examples/openapi/directory-runtime-status-envelope.json +31 -0
  49. package/examples/openapi/gateway-manifest-envelope.json +53 -0
  50. package/examples/openapi/tool-invocation-request.json +14 -0
  51. package/examples/openapi/tool-invocation-result-envelope.json +23 -0
  52. package/examples/plugin-manifest/compute-provider.json +27 -0
  53. package/examples/plugin-manifest/connector.json +76 -0
  54. package/examples/plugin-manifest/skill-pack.json +47 -0
  55. package/examples/runner-operation-lifecycle/late-callback.json +27 -0
  56. package/examples/skill-manifest/k8s-sre.json +22 -0
  57. package/examples/token-claims/service-account.json +15 -0
  58. package/fixtures/json-schema/agent-checkpoint/invalid/raw-state.json +1 -0
  59. package/fixtures/json-schema/agent-checkpoint/valid/minimal.json +1 -0
  60. package/fixtures/json-schema/agent-observation/invalid/extra-secret.json +1 -0
  61. package/fixtures/json-schema/agent-observation/valid/tool.json +1 -0
  62. package/fixtures/json-schema/agent-profile/invalid/missing-scope.json +15 -0
  63. package/fixtures/json-schema/agent-profile/valid/k8s-sre-readonly.json +35 -0
  64. package/fixtures/json-schema/agent-protocol/invalid/missing-agent-id.json +3 -0
  65. package/fixtures/json-schema/agent-protocol/valid/agent-run-callback-legacy.json +9 -0
  66. package/fixtures/json-schema/agent-protocol/valid/agent-run-callback-with-events.json +39 -0
  67. package/fixtures/json-schema/agent-protocol/valid/execution-task-claim.json +5 -0
  68. package/fixtures/json-schema/agent-provider-definition/invalid/missing-command.json +1 -0
  69. package/fixtures/json-schema/agent-provider-definition/valid/cli.json +1 -0
  70. package/fixtures/json-schema/agent-provider-registry/invalid/zero-revision.json +1 -0
  71. package/fixtures/json-schema/agent-provider-registry/valid/minimal.json +1 -0
  72. package/fixtures/json-schema/agent-provider-runtime-event/invalid/health-without-provider.json +1 -0
  73. package/fixtures/json-schema/agent-provider-runtime-event/valid/ack.json +1 -0
  74. package/fixtures/json-schema/agent-run-step/invalid/unknown-state.json +1 -0
  75. package/fixtures/json-schema/agent-run-step/valid/running.json +1 -0
  76. package/fixtures/json-schema/approval-request/invalid/missing-status.json +12 -0
  77. package/fixtures/json-schema/approval-request/valid/high-risk-tool.json +56 -0
  78. package/fixtures/json-schema/audit-log/invalid/extra-field.json +10 -0
  79. package/fixtures/json-schema/audit-log/valid/tool-denied.json +23 -0
  80. package/fixtures/json-schema/cluster-capability-matrix/invalid/missing-agent-support.json +16 -0
  81. package/fixtures/json-schema/cluster-capability-matrix/invalid/partial-without-reason.json +18 -0
  82. package/fixtures/json-schema/cluster-capability-matrix/valid/runtime-parity.json +59 -0
  83. package/fixtures/json-schema/conformance-run/invalid/missing.json +1 -0
  84. package/fixtures/json-schema/conformance-run/valid/passed.json +1 -0
  85. package/fixtures/json-schema/connector-checkpoint/invalid/missing.json +1 -0
  86. package/fixtures/json-schema/connector-checkpoint/valid/http.json +1 -0
  87. package/fixtures/json-schema/connector-definition/invalid/missing.json +1 -0
  88. package/fixtures/json-schema/connector-definition/valid/http.json +1 -0
  89. package/fixtures/json-schema/connector-event-envelope/invalid/missing-payload.json +11 -0
  90. package/fixtures/json-schema/connector-event-envelope/invalid/unknown-top-level-field.json +13 -0
  91. package/fixtures/json-schema/connector-event-envelope/valid/feishu-message.json +19 -0
  92. package/fixtures/json-schema/context-envelope/invalid/envelope.json +1 -0
  93. package/fixtures/json-schema/context-envelope/valid/envelope.json +1 -0
  94. package/fixtures/json-schema/environment-lease/invalid/unbounded.json +1 -0
  95. package/fixtures/json-schema/environment-lease/valid/observe.json +1 -0
  96. package/fixtures/json-schema/environment-snapshot/invalid/negative-usage.json +1 -0
  97. package/fixtures/json-schema/environment-snapshot/valid/active.json +1 -0
  98. package/fixtures/json-schema/environment-template/invalid/missing.json +1 -0
  99. package/fixtures/json-schema/environment-template/valid/container.json +1 -0
  100. package/fixtures/json-schema/evaluation-dataset/invalid/no-samples.json +1 -0
  101. package/fixtures/json-schema/evaluation-dataset/valid/minimal.json +1 -0
  102. package/fixtures/json-schema/evaluation-result/invalid/bad-score.json +1 -0
  103. package/fixtures/json-schema/evaluation-result/valid/passed.json +1 -0
  104. package/fixtures/json-schema/evaluation-run/invalid/no-candidate.json +1 -0
  105. package/fixtures/json-schema/evaluation-run/valid/running.json +1 -0
  106. package/fixtures/json-schema/event-envelope/invalid/bad-severity.json +7 -0
  107. package/fixtures/json-schema/event-envelope/valid/minimal.json +14 -0
  108. package/fixtures/json-schema/executor-profile/invalid/missing.json +1 -0
  109. package/fixtures/json-schema/executor-profile/valid/readonly.json +1 -0
  110. package/fixtures/json-schema/feedback-sample/invalid/missing.json +1 -0
  111. package/fixtures/json-schema/feedback-sample/valid/pending.json +1 -0
  112. package/fixtures/json-schema/fleet-target/invalid/missing.json +1 -0
  113. package/fixtures/json-schema/fleet-target/valid/linux.json +1 -0
  114. package/fixtures/json-schema/gate-decision/invalid/missing.json +1 -0
  115. package/fixtures/json-schema/gate-decision/valid/pass.json +1 -0
  116. package/fixtures/json-schema/gate-policy/invalid/missing.json +1 -0
  117. package/fixtures/json-schema/gate-policy/valid/release.json +1 -0
  118. package/fixtures/json-schema/gateway-capability-baseline/invalid/missing-owner.json +32 -0
  119. package/fixtures/json-schema/gateway-capability-baseline/valid/minimal.json +61 -0
  120. package/fixtures/json-schema/gateway-manifest/invalid/bad-risk-level.json +37 -0
  121. package/fixtures/json-schema/gateway-manifest/valid/minimal.json +48 -0
  122. package/fixtures/json-schema/graph-revision/invalid/missing.json +1 -0
  123. package/fixtures/json-schema/graph-revision/valid/active.json +1 -0
  124. package/fixtures/json-schema/index-publish/invalid/missing.json +1 -0
  125. package/fixtures/json-schema/index-publish/valid/publish.json +1 -0
  126. package/fixtures/json-schema/ingestion-job/invalid/missing.json +1 -0
  127. package/fixtures/json-schema/ingestion-job/valid/queued.json +1 -0
  128. package/fixtures/json-schema/ingestion-stage/invalid/missing.json +1 -0
  129. package/fixtures/json-schema/ingestion-stage/valid/succeeded.json +1 -0
  130. package/fixtures/json-schema/knowledge-base/invalid/base.json +1 -0
  131. package/fixtures/json-schema/knowledge-base/valid/base.json +1 -0
  132. package/fixtures/json-schema/knowledge-search/invalid/search.json +1 -0
  133. package/fixtures/json-schema/knowledge-search/valid/search.json +1 -0
  134. package/fixtures/json-schema/knowledge-source/invalid/source.json +1 -0
  135. package/fixtures/json-schema/knowledge-source/valid/source.json +1 -0
  136. package/fixtures/json-schema/marketplace-catalog/invalid/missing-source.json +5 -0
  137. package/fixtures/json-schema/marketplace-catalog/valid/minimal.json +44 -0
  138. package/fixtures/json-schema/mcp-preset/invalid/bad-risk-level.json +20 -0
  139. package/fixtures/json-schema/mcp-preset/valid/k8s-readonly.json +40 -0
  140. package/fixtures/json-schema/memory-policy/invalid/missing.json +1 -0
  141. package/fixtures/json-schema/memory-policy/valid/explicit.json +1 -0
  142. package/fixtures/json-schema/memory-record/invalid/missing.json +1 -0
  143. package/fixtures/json-schema/memory-record/valid/explicit.json +1 -0
  144. package/fixtures/json-schema/multi-agent-plan/invalid/missing.json +1 -0
  145. package/fixtures/json-schema/multi-agent-plan/valid/running.json +1 -0
  146. package/fixtures/json-schema/observability-log-query-v1/invalid/missing-query.json +6 -0
  147. package/fixtures/json-schema/observability-log-query-v1/valid/request.json +15 -0
  148. package/fixtures/json-schema/observability-log-query-v1/valid/response.json +13 -0
  149. package/fixtures/json-schema/plugin-manifest/invalid/bad-type.json +7 -0
  150. package/fixtures/json-schema/plugin-manifest/invalid/logs-query-without-action.json +28 -0
  151. package/fixtures/json-schema/plugin-manifest/invalid/manifest-only-observability-provider.json +26 -0
  152. package/fixtures/json-schema/plugin-manifest/invalid/manifest-only-read-provider.json +23 -0
  153. package/fixtures/json-schema/plugin-manifest/invalid/write-provider-without-actions.json +23 -0
  154. package/fixtures/json-schema/plugin-manifest/valid/compute-provider.json +25 -0
  155. package/fixtures/json-schema/plugin-manifest/valid/minimal.json +14 -0
  156. package/fixtures/json-schema/plugin-manifest/valid/observability-provider.json +29 -0
  157. package/fixtures/json-schema/project-manifest/invalid/inline-secret.json +14 -0
  158. package/fixtures/json-schema/project-manifest/valid/demo.json +21 -0
  159. package/fixtures/json-schema/provider-rollout/invalid/missing.json +1 -0
  160. package/fixtures/json-schema/provider-rollout/valid/canary.json +1 -0
  161. package/fixtures/json-schema/replay-plan/invalid/missing.json +1 -0
  162. package/fixtures/json-schema/replay-plan/valid/readonly.json +1 -0
  163. package/fixtures/json-schema/retrieval-trace/invalid/missing.json +1 -0
  164. package/fixtures/json-schema/retrieval-trace/valid/grounded.json +1 -0
  165. package/fixtures/json-schema/runner-operation-lifecycle/invalid/bad-state.json +7 -0
  166. package/fixtures/json-schema/runner-operation-lifecycle/invalid/missing-runner-id.json +6 -0
  167. package/fixtures/json-schema/runner-operation-lifecycle/valid/final-failed.json +27 -0
  168. package/fixtures/json-schema/runner-operation-lifecycle/valid/heartbeat.json +19 -0
  169. package/fixtures/json-schema/sample-attempt/invalid/missing.json +1 -0
  170. package/fixtures/json-schema/sample-attempt/valid/completed.json +1 -0
  171. package/fixtures/json-schema/skill-manifest/invalid/bad-id.json +5 -0
  172. package/fixtures/json-schema/skill-manifest/valid/minimal.json +8 -0
  173. package/fixtures/json-schema/token-claims/invalid/bad-token-kind.json +9 -0
  174. package/fixtures/json-schema/token-claims/valid/service-account.json +15 -0
  175. package/fixtures/openapi/AIGatewayManifestEnvelope/invalid/bad-date.json +28 -0
  176. package/fixtures/openapi/AIGatewayManifestEnvelope/valid/minimal.json +31 -0
  177. package/fixtures/openapi/AgentProviderRegistryAcknowledgement/invalid/missing-targeted.json +7 -0
  178. package/fixtures/openapi/AgentProviderRegistryAcknowledgement/valid/rollout.json +17 -0
  179. package/fixtures/openapi/AgentRunCallbackRequest/invalid/missing-agent-id.json +6 -0
  180. package/fixtures/openapi/AgentRunCallbackRequest/valid/succeeded.json +10 -0
  181. package/fixtures/openapi/AgentRunCallbackRequest/valid/with-events.json +39 -0
  182. package/fixtures/openapi/AuthResultEnvelope/invalid/missing-tokens.json +13 -0
  183. package/fixtures/openapi/AuthResultEnvelope/valid/session.json +20 -0
  184. package/fixtures/openapi/CloudExtensionPointListEnvelope/invalid/missing-exclusions.json +11 -0
  185. package/fixtures/openapi/CloudExtensionPointListEnvelope/valid/managed-fleet.json +19 -0
  186. package/fixtures/openapi/ComputeAccessSourceListEnvelope/invalid/bad-source-type.json +15 -0
  187. package/fixtures/openapi/ComputeAccessSourceListEnvelope/valid/mixed.json +19 -0
  188. package/fixtures/openapi/ComputeOverviewEnvelope/invalid/bad-section-status.json +9 -0
  189. package/fixtures/openapi/ComputeOverviewEnvelope/valid/partial.json +33 -0
  190. package/fixtures/openapi/ComputeProviderListEnvelope/invalid/bad-domain.json +23 -0
  191. package/fixtures/openapi/ComputeProviderListEnvelope/valid/builtin.json +30 -0
  192. package/fixtures/openapi/ComputeResourceRelationListEnvelope/invalid/bad-relation.json +29 -0
  193. package/fixtures/openapi/ComputeResourceRelationListEnvelope/valid/vm-runtime.json +33 -0
  194. package/fixtures/openapi/ComputeTaskListEnvelope/invalid/missing-source-id.json +19 -0
  195. package/fixtures/openapi/ComputeTaskListEnvelope/valid/running.json +30 -0
  196. package/fixtures/openapi/DeliveryDraftInput/invalid/missing-application-key.json +9 -0
  197. package/fixtures/openapi/DeliveryDraftInput/valid/ai-service.json +25 -0
  198. package/fixtures/openapi/DirectoryEventListEnvelope/invalid/unknown-status.json +13 -0
  199. package/fixtures/openapi/DirectoryEventListEnvelope/valid/failed.json +16 -0
  200. package/fixtures/openapi/DirectoryPersonLifecycle/invalid/unknown-employment-status.json +5 -0
  201. package/fixtures/openapi/DirectoryPersonLifecycle/valid/departed.json +6 -0
  202. package/fixtures/openapi/DirectoryRuntimeStatusEnvelope/invalid/negative-event-count.json +11 -0
  203. package/fixtures/openapi/DirectoryRuntimeStatusEnvelope/valid/verified.json +14 -0
  204. package/fixtures/openapi/DockerContainerStartInput/invalid/missing-image.json +8 -0
  205. package/fixtures/openapi/DockerContainerStartInput/valid/git-dockerfile.json +22 -0
  206. package/fixtures/openapi/DockerOperationCallbackRequest/invalid/logs-not-array.json +7 -0
  207. package/fixtures/openapi/DockerOperationCallbackRequest/valid/succeeded.json +9 -0
  208. package/fixtures/openapi/ErrorEnvelope/invalid/extra-field.json +7 -0
  209. package/fixtures/openapi/ErrorEnvelope/valid/error.json +7 -0
  210. package/fixtures/openapi/EvaluationGateRequest/invalid/missing-candidate.json +4 -0
  211. package/fixtures/openapi/EvaluationGateRequest/valid/candidate.json +5 -0
  212. package/fixtures/openapi/ExecutionCallbackRequest/invalid/extra-field.json +6 -0
  213. package/fixtures/openapi/ExecutionCallbackRequest/valid/succeeded.json +7 -0
  214. package/fixtures/openapi/GovernanceStatusEnvelope/invalid/window-hours-string.json +81 -0
  215. package/fixtures/openapi/GovernanceStatusEnvelope/valid/minimal.json +81 -0
  216. package/fixtures/openapi/IdentityErrorEnvelope/invalid/raw-assertion.json +7 -0
  217. package/fixtures/openapi/IdentityErrorEnvelope/valid/invalid-signature.json +7 -0
  218. package/fixtures/openapi/IdentityOutpostClaimRequest/invalid/missing-protocol-version.json +4 -0
  219. package/fixtures/openapi/IdentityOutpostClaimRequest/valid/current-version.json +5 -0
  220. package/fixtures/openapi/IdentityRuntimeCapabilityEnvelope/invalid/missing-runtime-state.json +17 -0
  221. package/fixtures/openapi/IdentityRuntimeCapabilityEnvelope/valid/available.json +17 -0
  222. package/fixtures/openapi/KnowledgeIngestionJobInput/invalid/missing-source.json +1 -0
  223. package/fixtures/openapi/KnowledgeIngestionJobInput/valid/source.json +3 -0
  224. package/fixtures/openapi/KubernetesResourceAgentCreateRequest/invalid/unresolved-target.json +18 -0
  225. package/fixtures/openapi/KubernetesResourceAgentCreateRequest/valid/resolved-target.json +25 -0
  226. package/fixtures/openapi/KubernetesResourceCreateRequest/invalid/unknown-source.json +5 -0
  227. package/fixtures/openapi/KubernetesResourceCreateRequest/valid/global-multi-document.json +5 -0
  228. package/fixtures/openapi/KubernetesResourceCreateResultEnvelope/invalid/bad-document-index.json +21 -0
  229. package/fixtures/openapi/KubernetesResourceCreateResultEnvelope/valid/partial.json +62 -0
  230. package/fixtures/openapi/KubernetesResourceCreateScopeDecisionEnvelope/invalid/missing-capability.json +12 -0
  231. package/fixtures/openapi/KubernetesResourceCreateScopeDecisionEnvelope/valid/allowed.json +17 -0
  232. package/fixtures/openapi/KubernetesResourcePreflightEnvelope/invalid/warning-without-message.json +32 -0
  233. package/fixtures/openapi/KubernetesResourcePreflightEnvelope/valid/mixed-diagnostics.json +83 -0
  234. package/fixtures/openapi/LogPage/invalid/missing-entry-source.json +12 -0
  235. package/fixtures/openapi/LogPage/valid/partial-runtime.json +42 -0
  236. package/fixtures/openapi/LogQuery/invalid/missing-selector.json +3 -0
  237. package/fixtures/openapi/LogQuery/invalid/unknown-source-mode.json +6 -0
  238. package/fixtures/openapi/LogQuery/valid/docker-project.json +12 -0
  239. package/fixtures/openapi/LogQuery/valid/runtime-workload.json +21 -0
  240. package/fixtures/openapi/LogStreamEvent/invalid/missing-entry.json +3 -0
  241. package/fixtures/openapi/LogStreamEvent/invalid/unknown-event-type.json +3 -0
  242. package/fixtures/openapi/LogStreamEvent/valid/live-entry.json +16 -0
  243. package/fixtures/openapi/MCPCapabilityListEnvelope/invalid/missing-scopes.json +9 -0
  244. package/fixtures/openapi/MCPCapabilityListEnvelope/valid/minimal.json +10 -0
  245. package/fixtures/openapi/MFAAdminResetRequest/invalid/missing-reason.json +3 -0
  246. package/fixtures/openapi/MFAAdminResetRequest/valid/security-incident.json +4 -0
  247. package/fixtures/openapi/MFAWebAuthnRequestOptionsEnvelope/invalid/missing-challenge-id.json +9 -0
  248. package/fixtures/openapi/MFAWebAuthnRequestOptionsEnvelope/valid/step-up.json +11 -0
  249. package/fixtures/openapi/ManifestDeploymentEnvelope/invalid/bad-condition-status.json +33 -0
  250. package/fixtures/openapi/ManifestDeploymentEnvelope/valid/converged.json +36 -0
  251. package/fixtures/openapi/ManifestSourceUpdateInput/invalid/unknown-mode.json +6 -0
  252. package/fixtures/openapi/ManifestSourceUpdateInput/valid/soha-managed.json +6 -0
  253. package/fixtures/openapi/ObservabilityDataSource/valid/healthy.json +33 -0
  254. package/fixtures/openapi/ObservabilityDataSourceInput/invalid/secret-in-config.json +9 -0
  255. package/fixtures/openapi/ObservabilityDataSourceInput/valid/loki.json +33 -0
  256. package/fixtures/openapi/ObservabilityDataSourceInput/valid/provider.json +21 -0
  257. package/fixtures/openapi/PasswordLoginRequest/invalid/extra-field.json +5 -0
  258. package/fixtures/openapi/PasswordLoginRequest/valid/password-login.json +4 -0
  259. package/fixtures/openapi/PersonalAccessTokenInput/invalid/extra-field.json +6 -0
  260. package/fixtures/openapi/PersonalAccessTokenInput/valid/create.json +9 -0
  261. package/fixtures/openapi/PluginManifest/invalid/bad-type.json +7 -0
  262. package/fixtures/openapi/PluginManifest/valid/skill-pack.json +12 -0
  263. package/fixtures/openapi/RepositoryInput/invalid/embedded-token.json +8 -0
  264. package/fixtures/openapi/RepositoryInput/valid/gitlab.json +11 -0
  265. package/fixtures/openapi/RuntimeConfigChangeRequest/invalid/missing-version.json +8 -0
  266. package/fixtures/openapi/RuntimeConfigChangeRequest/valid/feature-flags.json +14 -0
  267. package/fixtures/openapi/RuntimeConfigSnapshotEnvelope/invalid/editable-secret.json +17 -0
  268. package/fixtures/openapi/RuntimeConfigSnapshotEnvelope/invalid/exposed-default-secret.json +18 -0
  269. package/fixtures/openapi/RuntimeConfigSnapshotEnvelope/invalid/exposed-effective-secret.json +18 -0
  270. package/fixtures/openapi/RuntimeConfigSnapshotEnvelope/valid/effective.json +34 -0
  271. package/fixtures/openapi/SAMLMetadataInput/invalid/unknown-source.json +4 -0
  272. package/fixtures/openapi/SAMLMetadataInput/valid/xml.json +4 -0
  273. package/fixtures/openapi/SecretCreateRequest/invalid/missing-value.json +5 -0
  274. package/fixtures/openapi/SecretCreateRequest/valid/create.json +13 -0
  275. package/fixtures/openapi/SecretLeaseRedemptionEnvelope/invalid/invalid-alias.json +9 -0
  276. package/fixtures/openapi/SecretLeaseRedemptionEnvelope/valid/redeem.json +9 -0
  277. package/fixtures/openapi/SecretMetadataEnvelope/invalid/plaintext-value.json +15 -0
  278. package/fixtures/openapi/SecretMetadataEnvelope/valid/metadata.json +20 -0
  279. package/fixtures/openapi/SecretRotateRequest/invalid/empty-value.json +3 -0
  280. package/fixtures/openapi/SecretRotateRequest/valid/rotate.json +3 -0
  281. package/fixtures/openapi/ServiceAccountInput/invalid/missing-status.json +4 -0
  282. package/fixtures/openapi/ServiceAccountInput/valid/create.json +8 -0
  283. package/fixtures/openapi/WorkbenchStreamEvent/invalid/extra-field.json +11 -0
  284. package/fixtures/openapi/WorkbenchStreamEvent/invalid/missing-server-fields.json +5 -0
  285. package/fixtures/openapi/WorkbenchStreamEvent/valid/message-done.json +13 -0
  286. package/gen/go/sohaapi/client.go +989 -0
  287. package/gen/go/sohaapi/client_test.go +2127 -0
  288. package/gen/go/sohaapi/types.go +21450 -0
  289. package/gen/ts/sohaapi/index.ts +22869 -0
  290. package/go.mod +18 -0
  291. package/go.sum +46 -0
  292. package/governance/approval-request.schema.json +187 -0
  293. package/governance/audit-log.schema.json +37 -0
  294. package/helmrelease/release.go +108 -0
  295. package/helmrelease/release_test.go +9 -0
  296. package/knowledge/connector-checkpoint.schema.json +16 -0
  297. package/knowledge/connector-definition.schema.json +18 -0
  298. package/knowledge/context-envelope.schema.json +32 -0
  299. package/knowledge/graph-revision.schema.json +21 -0
  300. package/knowledge/index-publish.schema.json +17 -0
  301. package/knowledge/ingestion-job.schema.json +22 -0
  302. package/knowledge/ingestion-stage.schema.json +19 -0
  303. package/knowledge/knowledge-base.schema.json +48 -0
  304. package/knowledge/knowledge-search.schema.json +21 -0
  305. package/knowledge/knowledge-source.schema.json +28 -0
  306. package/knowledge/retrieval-trace.schema.json +21 -0
  307. package/mcp/gateway-capability-baseline.schema.json +290 -0
  308. package/mcp/gateway-manifest.schema.json +210 -0
  309. package/memory/memory-policy.schema.json +19 -0
  310. package/memory/memory-record.schema.json +25 -0
  311. package/openapi/soha-api.json +42282 -0
  312. package/openapi/soha-api.yaml +21748 -0
  313. package/openapi/spec_generated.go +23 -0
  314. package/openapi/spec_test.go +38 -0
  315. package/package.json +122 -0
  316. package/plugins/marketplace-catalog.schema.json +120 -0
  317. package/plugins/observability-log-query-v1.schema.json +88 -0
  318. package/plugins/plugin-manifest.schema.json +498 -0
  319. package/presets/mcp-preset.schema.json +142 -0
  320. package/profiles/agent-profile.schema.json +154 -0
  321. package/resource/crd_definition.go +10 -0
  322. package/resource/gateway_details_test.go +55 -0
  323. package/resource/models.go +1587 -0
  324. package/resource/models_test.go +72 -0
  325. package/runner/operation-lifecycle.schema.json +112 -0
  326. package/skills/skill-manifest.schema.json +64 -0
  327. package/streamlimit/limited_buffer.go +58 -0
  328. package/streamlimit/limited_buffer_test.go +38 -0
@@ -0,0 +1,717 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://contracts.opensoha.dev/agent/agent-protocol.schema.json",
4
+ "title": "Soha Agent Protocol",
5
+ "description": "Runner-facing control-plane contracts shared by Soha core and Soha Agent.",
6
+ "oneOf": [
7
+ { "$ref": "#/$defs/ExecutionTaskClaimRequest" },
8
+ { "$ref": "#/$defs/ExecutionCallbackRequest" },
9
+ { "$ref": "#/$defs/DockerOperationClaimRequest" },
10
+ { "$ref": "#/$defs/DockerOperationCallbackRequest" },
11
+ { "$ref": "#/$defs/AgentRunClaimRequest" },
12
+ { "$ref": "#/$defs/AgentRunCallbackRequest" },
13
+ { "$ref": "#/$defs/AgentRunToolCallRequest" }
14
+ ],
15
+ "$defs": {
16
+ "AnyObject": {
17
+ "type": "object",
18
+ "additionalProperties": true
19
+ },
20
+ "AnyValue": {},
21
+ "WorkbenchStreamEventBase": {
22
+ "$comment": "Copied from openapi/soha-api.yaml components.schemas.WorkbenchStreamEventBase. OpenAPI is the source of truth for Workbench stream event shapes.",
23
+ "type": "object",
24
+ "required": ["id", "sessionId", "sequence", "createdAt"],
25
+ "properties": {
26
+ "id": { "type": "string" },
27
+ "sessionId": { "type": "string" },
28
+ "runId": { "type": "string" },
29
+ "messageId": { "type": "string" },
30
+ "sequence": { "type": "integer" },
31
+ "createdAt": { "type": "string", "format": "date-time" }
32
+ }
33
+ },
34
+ "WorkbenchToolCall": {
35
+ "$comment": "Copied from openapi/soha-api.yaml components.schemas.WorkbenchToolCall. OpenAPI is the source of truth for Workbench tool call shape.",
36
+ "type": "object",
37
+ "required": ["id", "adapterId", "toolName", "status"],
38
+ "properties": {
39
+ "id": { "type": "string" },
40
+ "adapterId": { "type": "string" },
41
+ "toolName": { "type": "string" },
42
+ "skillId": { "type": "string" },
43
+ "skillName": { "type": "string" },
44
+ "capabilityId": { "type": "string" },
45
+ "status": {
46
+ "type": "string",
47
+ "enum": ["pending", "running", "success", "error", "skipped"]
48
+ },
49
+ "inputPreview": { "$ref": "#/$defs/AnyValue" },
50
+ "outputPreview": { "$ref": "#/$defs/AnyValue" },
51
+ "summary": { "type": "string" },
52
+ "evidenceRefs": {
53
+ "type": "array",
54
+ "items": { "type": "string" }
55
+ },
56
+ "artifactRefs": {
57
+ "type": "array",
58
+ "items": { "type": "string" }
59
+ },
60
+ "startedAt": { "type": "string", "format": "date-time" },
61
+ "completedAt": { "type": "string", "format": "date-time" },
62
+ "durationMs": { "type": "integer" }
63
+ },
64
+ "additionalProperties": false
65
+ },
66
+ "WorkbenchSource": {
67
+ "$comment": "Copied from openapi/soha-api.yaml components.schemas.WorkbenchSource. OpenAPI is the source of truth for Workbench source shape.",
68
+ "type": "object",
69
+ "required": ["id", "kind", "title"],
70
+ "properties": {
71
+ "id": { "type": "string" },
72
+ "kind": {
73
+ "type": "string",
74
+ "enum": ["log", "metric", "trace", "event", "audit", "delivery", "document"]
75
+ },
76
+ "title": { "type": "string" },
77
+ "url": { "type": "string" },
78
+ "summary": { "type": "string" }
79
+ },
80
+ "additionalProperties": false
81
+ },
82
+ "WorkbenchMessageDeltaEvent": {
83
+ "allOf": [
84
+ { "$ref": "#/$defs/WorkbenchStreamEventBase" },
85
+ {
86
+ "type": "object",
87
+ "required": ["type", "role", "contentDelta"],
88
+ "properties": {
89
+ "type": { "type": "string", "enum": ["message.delta"] },
90
+ "role": { "type": "string", "enum": ["assistant"] },
91
+ "contentDelta": { "type": "string" }
92
+ }
93
+ }
94
+ ],
95
+ "unevaluatedProperties": false
96
+ },
97
+ "WorkbenchMessageDoneEvent": {
98
+ "allOf": [
99
+ { "$ref": "#/$defs/WorkbenchStreamEventBase" },
100
+ {
101
+ "type": "object",
102
+ "required": ["type", "role", "content"],
103
+ "properties": {
104
+ "type": { "type": "string", "enum": ["message.done"] },
105
+ "role": { "type": "string", "enum": ["assistant"] },
106
+ "content": { "type": "string" },
107
+ "metadata": {
108
+ "type": "object",
109
+ "additionalProperties": true
110
+ }
111
+ }
112
+ }
113
+ ],
114
+ "unevaluatedProperties": false
115
+ },
116
+ "WorkbenchThinkingDeltaEvent": {
117
+ "allOf": [
118
+ { "$ref": "#/$defs/WorkbenchStreamEventBase" },
119
+ {
120
+ "type": "object",
121
+ "required": ["type", "textDelta"],
122
+ "properties": {
123
+ "type": { "type": "string", "enum": ["thinking.delta"] },
124
+ "textDelta": { "type": "string" }
125
+ }
126
+ }
127
+ ],
128
+ "unevaluatedProperties": false
129
+ },
130
+ "WorkbenchThinkingDoneEvent": {
131
+ "allOf": [
132
+ { "$ref": "#/$defs/WorkbenchStreamEventBase" },
133
+ {
134
+ "type": "object",
135
+ "required": ["type", "summary", "collapsed"],
136
+ "properties": {
137
+ "type": { "type": "string", "enum": ["thinking.done"] },
138
+ "summary": { "type": "string" },
139
+ "collapsed": { "type": "boolean" }
140
+ }
141
+ }
142
+ ],
143
+ "unevaluatedProperties": false
144
+ },
145
+ "WorkbenchAgentStatusEvent": {
146
+ "allOf": [
147
+ { "$ref": "#/$defs/WorkbenchStreamEventBase" },
148
+ {
149
+ "type": "object",
150
+ "required": ["type", "providerId", "providerKind", "status"],
151
+ "properties": {
152
+ "type": { "type": "string", "enum": ["agent.status"] },
153
+ "providerId": { "type": "string" },
154
+ "providerKind": {
155
+ "type": "string",
156
+ "enum": ["internal", "hermes", "openclaw", "general", "openai", "anthropic", "openai-compatible", "deepseek", "qwen", "openrouter", "azure-openai", "gemini", "cohere"]
157
+ },
158
+ "status": {
159
+ "type": "string",
160
+ "enum": ["queued", "running", "succeeded", "failed", "cancelled"]
161
+ }
162
+ }
163
+ }
164
+ ],
165
+ "unevaluatedProperties": false
166
+ },
167
+ "WorkbenchToolStartedEvent": {
168
+ "allOf": [
169
+ { "$ref": "#/$defs/WorkbenchStreamEventBase" },
170
+ {
171
+ "type": "object",
172
+ "required": ["type", "toolCall"],
173
+ "properties": {
174
+ "type": { "type": "string", "enum": ["tool.started"] },
175
+ "toolCall": { "$ref": "#/$defs/WorkbenchToolCall" }
176
+ }
177
+ }
178
+ ],
179
+ "unevaluatedProperties": false
180
+ },
181
+ "WorkbenchToolDeltaEvent": {
182
+ "allOf": [
183
+ { "$ref": "#/$defs/WorkbenchStreamEventBase" },
184
+ {
185
+ "type": "object",
186
+ "required": ["type", "toolCallId"],
187
+ "properties": {
188
+ "type": { "type": "string", "enum": ["tool.delta"] },
189
+ "toolCallId": { "type": "string" },
190
+ "outputDelta": { "type": "string" },
191
+ "logDelta": { "type": "string" }
192
+ }
193
+ }
194
+ ],
195
+ "unevaluatedProperties": false
196
+ },
197
+ "WorkbenchToolCompletedEvent": {
198
+ "allOf": [
199
+ { "$ref": "#/$defs/WorkbenchStreamEventBase" },
200
+ {
201
+ "type": "object",
202
+ "required": ["type", "toolCall"],
203
+ "properties": {
204
+ "type": { "type": "string", "enum": ["tool.completed"] },
205
+ "toolCall": { "$ref": "#/$defs/WorkbenchToolCall" }
206
+ }
207
+ }
208
+ ],
209
+ "unevaluatedProperties": false
210
+ },
211
+ "WorkbenchArtifactUpdatedEvent": {
212
+ "allOf": [
213
+ { "$ref": "#/$defs/WorkbenchStreamEventBase" },
214
+ {
215
+ "type": "object",
216
+ "required": ["type", "artifact"],
217
+ "properties": {
218
+ "type": { "type": "string", "enum": ["artifact.updated"] },
219
+ "artifact": { "$ref": "#/$defs/AnyValue" }
220
+ }
221
+ }
222
+ ],
223
+ "unevaluatedProperties": false
224
+ },
225
+ "WorkbenchSourceUpdatedEvent": {
226
+ "allOf": [
227
+ { "$ref": "#/$defs/WorkbenchStreamEventBase" },
228
+ {
229
+ "type": "object",
230
+ "required": ["type", "source"],
231
+ "properties": {
232
+ "type": { "type": "string", "enum": ["source.updated"] },
233
+ "source": { "$ref": "#/$defs/WorkbenchSource" }
234
+ }
235
+ }
236
+ ],
237
+ "unevaluatedProperties": false
238
+ },
239
+ "WorkbenchCardCommandEvent": {
240
+ "allOf": [
241
+ { "$ref": "#/$defs/WorkbenchStreamEventBase" },
242
+ {
243
+ "type": "object",
244
+ "required": ["type", "surfaceId", "command"],
245
+ "properties": {
246
+ "type": { "type": "string", "enum": ["card.command"] },
247
+ "surfaceId": { "type": "string" },
248
+ "command": { "$ref": "#/$defs/AnyValue" }
249
+ }
250
+ }
251
+ ],
252
+ "unevaluatedProperties": false
253
+ },
254
+ "WorkbenchErrorEvent": {
255
+ "allOf": [
256
+ { "$ref": "#/$defs/WorkbenchStreamEventBase" },
257
+ {
258
+ "type": "object",
259
+ "required": ["type", "message"],
260
+ "properties": {
261
+ "type": { "type": "string", "enum": ["error"] },
262
+ "message": { "type": "string" },
263
+ "code": { "type": "string" },
264
+ "retryable": { "type": "boolean" }
265
+ }
266
+ }
267
+ ],
268
+ "unevaluatedProperties": false
269
+ },
270
+ "WorkbenchStreamEvent": {
271
+ "$comment": "Copied from openapi/soha-api.yaml components.schemas.WorkbenchStreamEvent. Keep canonical stream/replay events in sync with OpenAPI.",
272
+ "oneOf": [
273
+ { "$ref": "#/$defs/WorkbenchMessageDeltaEvent" },
274
+ { "$ref": "#/$defs/WorkbenchMessageDoneEvent" },
275
+ { "$ref": "#/$defs/WorkbenchThinkingDeltaEvent" },
276
+ { "$ref": "#/$defs/WorkbenchThinkingDoneEvent" },
277
+ { "$ref": "#/$defs/WorkbenchAgentStatusEvent" },
278
+ { "$ref": "#/$defs/WorkbenchToolStartedEvent" },
279
+ { "$ref": "#/$defs/WorkbenchToolDeltaEvent" },
280
+ { "$ref": "#/$defs/WorkbenchToolCompletedEvent" },
281
+ { "$ref": "#/$defs/WorkbenchArtifactUpdatedEvent" },
282
+ { "$ref": "#/$defs/WorkbenchSourceUpdatedEvent" },
283
+ { "$ref": "#/$defs/WorkbenchCardCommandEvent" },
284
+ { "$ref": "#/$defs/WorkbenchErrorEvent" }
285
+ ]
286
+ },
287
+ "AgentRunCallbackWorkbenchStreamEventBase": {
288
+ "$comment": "Copied from openapi/soha-api.yaml components.schemas.AgentRunCallbackWorkbenchStreamEventBase. OpenAPI is the source of truth; server-owned fields are optional runner input.",
289
+ "type": "object",
290
+ "properties": {
291
+ "id": { "type": "string" },
292
+ "sessionId": { "type": "string" },
293
+ "runId": { "type": "string" },
294
+ "messageId": { "type": "string" },
295
+ "sequence": { "type": "integer" },
296
+ "createdAt": { "type": "string", "format": "date-time" }
297
+ }
298
+ },
299
+ "AgentRunCallbackWorkbenchMessageDeltaEvent": {
300
+ "allOf": [
301
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchStreamEventBase" },
302
+ {
303
+ "type": "object",
304
+ "required": ["type", "role", "contentDelta"],
305
+ "properties": {
306
+ "type": { "type": "string", "enum": ["message.delta"] },
307
+ "role": { "type": "string", "enum": ["assistant"] },
308
+ "contentDelta": { "type": "string" }
309
+ }
310
+ }
311
+ ],
312
+ "unevaluatedProperties": false
313
+ },
314
+ "AgentRunCallbackWorkbenchMessageDoneEvent": {
315
+ "allOf": [
316
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchStreamEventBase" },
317
+ {
318
+ "type": "object",
319
+ "required": ["type", "role", "content"],
320
+ "properties": {
321
+ "type": { "type": "string", "enum": ["message.done"] },
322
+ "role": { "type": "string", "enum": ["assistant"] },
323
+ "content": { "type": "string" },
324
+ "metadata": {
325
+ "type": "object",
326
+ "additionalProperties": true
327
+ }
328
+ }
329
+ }
330
+ ],
331
+ "unevaluatedProperties": false
332
+ },
333
+ "AgentRunCallbackWorkbenchThinkingDeltaEvent": {
334
+ "allOf": [
335
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchStreamEventBase" },
336
+ {
337
+ "type": "object",
338
+ "required": ["type", "textDelta"],
339
+ "properties": {
340
+ "type": { "type": "string", "enum": ["thinking.delta"] },
341
+ "textDelta": { "type": "string" }
342
+ }
343
+ }
344
+ ],
345
+ "unevaluatedProperties": false
346
+ },
347
+ "AgentRunCallbackWorkbenchThinkingDoneEvent": {
348
+ "allOf": [
349
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchStreamEventBase" },
350
+ {
351
+ "type": "object",
352
+ "required": ["type", "summary", "collapsed"],
353
+ "properties": {
354
+ "type": { "type": "string", "enum": ["thinking.done"] },
355
+ "summary": { "type": "string" },
356
+ "collapsed": { "type": "boolean" }
357
+ }
358
+ }
359
+ ],
360
+ "unevaluatedProperties": false
361
+ },
362
+ "AgentRunCallbackWorkbenchAgentStatusEvent": {
363
+ "allOf": [
364
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchStreamEventBase" },
365
+ {
366
+ "type": "object",
367
+ "required": ["type", "status"],
368
+ "properties": {
369
+ "type": { "type": "string", "enum": ["agent.status"] },
370
+ "providerId": { "type": "string" },
371
+ "providerKind": {
372
+ "type": "string",
373
+ "enum": ["internal", "hermes", "openclaw", "general", "openai", "anthropic", "openai-compatible", "deepseek", "qwen", "openrouter", "azure-openai", "gemini", "cohere"]
374
+ },
375
+ "status": {
376
+ "type": "string",
377
+ "enum": ["queued", "running", "succeeded", "failed", "cancelled"]
378
+ }
379
+ }
380
+ }
381
+ ],
382
+ "unevaluatedProperties": false
383
+ },
384
+ "AgentRunCallbackWorkbenchToolStartedEvent": {
385
+ "allOf": [
386
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchStreamEventBase" },
387
+ {
388
+ "type": "object",
389
+ "required": ["type", "toolCall"],
390
+ "properties": {
391
+ "type": { "type": "string", "enum": ["tool.started"] },
392
+ "toolCall": { "$ref": "#/$defs/WorkbenchToolCall" }
393
+ }
394
+ }
395
+ ],
396
+ "unevaluatedProperties": false
397
+ },
398
+ "AgentRunCallbackWorkbenchToolDeltaEvent": {
399
+ "allOf": [
400
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchStreamEventBase" },
401
+ {
402
+ "type": "object",
403
+ "required": ["type", "toolCallId"],
404
+ "properties": {
405
+ "type": { "type": "string", "enum": ["tool.delta"] },
406
+ "toolCallId": { "type": "string" },
407
+ "outputDelta": { "type": "string" },
408
+ "logDelta": { "type": "string" }
409
+ }
410
+ }
411
+ ],
412
+ "unevaluatedProperties": false
413
+ },
414
+ "AgentRunCallbackWorkbenchToolCompletedEvent": {
415
+ "allOf": [
416
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchStreamEventBase" },
417
+ {
418
+ "type": "object",
419
+ "required": ["type", "toolCall"],
420
+ "properties": {
421
+ "type": { "type": "string", "enum": ["tool.completed"] },
422
+ "toolCall": { "$ref": "#/$defs/WorkbenchToolCall" }
423
+ }
424
+ }
425
+ ],
426
+ "unevaluatedProperties": false
427
+ },
428
+ "AgentRunCallbackWorkbenchArtifactUpdatedEvent": {
429
+ "allOf": [
430
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchStreamEventBase" },
431
+ {
432
+ "type": "object",
433
+ "required": ["type", "artifact"],
434
+ "properties": {
435
+ "type": { "type": "string", "enum": ["artifact.updated"] },
436
+ "artifact": { "$ref": "#/$defs/AnyValue" }
437
+ }
438
+ }
439
+ ],
440
+ "unevaluatedProperties": false
441
+ },
442
+ "AgentRunCallbackWorkbenchSourceUpdatedEvent": {
443
+ "allOf": [
444
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchStreamEventBase" },
445
+ {
446
+ "type": "object",
447
+ "required": ["type", "source"],
448
+ "properties": {
449
+ "type": { "type": "string", "enum": ["source.updated"] },
450
+ "source": { "$ref": "#/$defs/WorkbenchSource" }
451
+ }
452
+ }
453
+ ],
454
+ "unevaluatedProperties": false
455
+ },
456
+ "AgentRunCallbackWorkbenchCardCommandEvent": {
457
+ "allOf": [
458
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchStreamEventBase" },
459
+ {
460
+ "type": "object",
461
+ "required": ["type", "surfaceId", "command"],
462
+ "properties": {
463
+ "type": { "type": "string", "enum": ["card.command"] },
464
+ "surfaceId": { "type": "string" },
465
+ "command": { "$ref": "#/$defs/AnyValue" }
466
+ }
467
+ }
468
+ ],
469
+ "unevaluatedProperties": false
470
+ },
471
+ "AgentRunCallbackWorkbenchErrorEvent": {
472
+ "allOf": [
473
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchStreamEventBase" },
474
+ {
475
+ "type": "object",
476
+ "required": ["type", "message"],
477
+ "properties": {
478
+ "type": { "type": "string", "enum": ["error"] },
479
+ "message": { "type": "string" },
480
+ "code": { "type": "string" },
481
+ "retryable": { "type": "boolean" }
482
+ }
483
+ }
484
+ ],
485
+ "unevaluatedProperties": false
486
+ },
487
+ "AgentRunCallbackWorkbenchStreamEvent": {
488
+ "$comment": "Copied from openapi/soha-api.yaml components.schemas.AgentRunCallbackWorkbenchStreamEvent. OpenAPI is the source of truth for callback event input.",
489
+ "oneOf": [
490
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchMessageDeltaEvent" },
491
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchMessageDoneEvent" },
492
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchThinkingDeltaEvent" },
493
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchThinkingDoneEvent" },
494
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchAgentStatusEvent" },
495
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchToolStartedEvent" },
496
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchToolDeltaEvent" },
497
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchToolCompletedEvent" },
498
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchArtifactUpdatedEvent" },
499
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchSourceUpdatedEvent" },
500
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchCardCommandEvent" },
501
+ { "$ref": "#/$defs/AgentRunCallbackWorkbenchErrorEvent" }
502
+ ]
503
+ },
504
+ "ExecutionTask": {
505
+ "type": "object",
506
+ "required": [
507
+ "id",
508
+ "applicationId",
509
+ "applicationEnvironmentId",
510
+ "taskKind",
511
+ "providerKind",
512
+ "status",
513
+ "callbackToken",
514
+ "payload"
515
+ ],
516
+ "properties": {
517
+ "id": { "type": "string" },
518
+ "applicationId": { "type": "string" },
519
+ "applicationEnvironmentId": { "type": "string" },
520
+ "taskKind": { "type": "string" },
521
+ "providerKind": { "type": "string" },
522
+ "status": { "type": "string" },
523
+ "callbackToken": { "type": "string" },
524
+ "payload": { "$ref": "#/$defs/AnyObject" }
525
+ },
526
+ "additionalProperties": true
527
+ },
528
+ "ExecutionTaskClaimRequest": {
529
+ "type": "object",
530
+ "required": ["agentId"],
531
+ "properties": {
532
+ "agentId": { "type": "string", "minLength": 1 },
533
+ "providerKinds": {
534
+ "type": "array",
535
+ "items": { "type": "string", "minLength": 1 }
536
+ },
537
+ "runtimeEndpoint": { "type": "string" }
538
+ },
539
+ "additionalProperties": false
540
+ },
541
+ "ExecutionCallbackRequest": {
542
+ "type": "object",
543
+ "required": ["callbackToken", "status", "payload"],
544
+ "properties": {
545
+ "callbackToken": { "type": "string", "minLength": 1 },
546
+ "status": { "type": "string", "minLength": 1 },
547
+ "payload": { "$ref": "#/$defs/AnyObject" }
548
+ },
549
+ "additionalProperties": false
550
+ },
551
+ "DockerOperation": {
552
+ "type": "object",
553
+ "required": ["id", "operationKind", "status", "payload", "timeoutSeconds"],
554
+ "properties": {
555
+ "id": { "type": "string" },
556
+ "hostId": { "type": "string" },
557
+ "projectId": { "type": "string" },
558
+ "serviceId": { "type": "string" },
559
+ "operationKind": { "type": "string" },
560
+ "status": { "type": "string" },
561
+ "claimedByWorkerId": { "type": "string" },
562
+ "payload": { "$ref": "#/$defs/AnyObject" },
563
+ "timeoutSeconds": { "type": "integer", "minimum": 0 }
564
+ },
565
+ "additionalProperties": true
566
+ },
567
+ "DockerOperationClaimRequest": {
568
+ "type": "object",
569
+ "required": ["workerId", "agentId"],
570
+ "properties": {
571
+ "workerId": { "type": "string", "minLength": 1 },
572
+ "agentId": { "type": "string", "minLength": 1 },
573
+ "hostIds": {
574
+ "type": "array",
575
+ "items": { "type": "string", "minLength": 1 }
576
+ },
577
+ "operationKinds": {
578
+ "type": "array",
579
+ "items": { "type": "string", "minLength": 1 }
580
+ }
581
+ },
582
+ "additionalProperties": false
583
+ },
584
+ "DockerOperationCallbackRequest": {
585
+ "type": "object",
586
+ "required": ["operationId", "workerId", "status", "payload", "logs"],
587
+ "properties": {
588
+ "operationId": { "type": "string", "minLength": 1 },
589
+ "workerId": { "type": "string", "minLength": 1 },
590
+ "status": { "type": "string", "minLength": 1 },
591
+ "payload": { "$ref": "#/$defs/AnyObject" },
592
+ "logs": {
593
+ "type": "array",
594
+ "items": { "type": "string" }
595
+ }
596
+ },
597
+ "additionalProperties": false
598
+ },
599
+ "AgentRun": {
600
+ "type": "object",
601
+ "required": [
602
+ "id",
603
+ "providerId",
604
+ "providerKind",
605
+ "capabilityId",
606
+ "status",
607
+ "callbackToken",
608
+ "timeoutSeconds"
609
+ ],
610
+ "properties": {
611
+ "id": { "type": "string" },
612
+ "providerId": { "type": "string" },
613
+ "providerKind": { "type": "string" },
614
+ "capabilityId": { "type": "string" },
615
+ "skillIds": {
616
+ "type": "array",
617
+ "items": { "type": "string" }
618
+ },
619
+ "sessionId": { "type": "string" },
620
+ "status": { "type": "string" },
621
+ "scope": { "$ref": "#/$defs/AnyObject" },
622
+ "toolset": { "$ref": "#/$defs/AnyObject" },
623
+ "toolBindings": {
624
+ "type": "array",
625
+ "items": { "$ref": "#/$defs/AnyObject" }
626
+ },
627
+ "skillBindings": {
628
+ "type": "array",
629
+ "items": { "$ref": "#/$defs/AnyObject" }
630
+ },
631
+ "input": { "$ref": "#/$defs/AnyObject" },
632
+ "output": { "$ref": "#/$defs/AnyObject" },
633
+ "callbackToken": { "type": "string" },
634
+ "timeoutSeconds": { "type": "integer", "minimum": 0 },
635
+ "analysisArtifacts": {
636
+ "type": "array",
637
+ "items": { "$ref": "#/$defs/AnyObject" }
638
+ }
639
+ },
640
+ "additionalProperties": true
641
+ },
642
+ "AgentRunClaimRequest": {
643
+ "type": "object",
644
+ "required": ["agentId"],
645
+ "properties": {
646
+ "agentId": { "type": "string", "minLength": 1 },
647
+ "providerIds": {
648
+ "type": "array",
649
+ "items": { "type": "string", "minLength": 1 }
650
+ },
651
+ "kinds": {
652
+ "type": "array",
653
+ "items": { "type": "string", "minLength": 1 }
654
+ }
655
+ },
656
+ "additionalProperties": false
657
+ },
658
+ "AgentRunCallbackRequest": {
659
+ "type": "object",
660
+ "required": ["runId", "callbackToken", "agentId", "status", "payload"],
661
+ "properties": {
662
+ "runId": { "type": "string", "minLength": 1 },
663
+ "callbackToken": { "type": "string", "minLength": 1 },
664
+ "agentId": { "type": "string", "minLength": 1 },
665
+ "status": { "type": "string", "minLength": 1 },
666
+ "payload": { "$ref": "#/$defs/AnyObject" },
667
+ "toolExecutions": {
668
+ "type": "array",
669
+ "items": { "$ref": "#/$defs/AnyObject" }
670
+ },
671
+ "analysisArtifacts": {
672
+ "type": "array",
673
+ "items": { "$ref": "#/$defs/AnyObject" }
674
+ },
675
+ "events": {
676
+ "type": "array",
677
+ "items": { "$ref": "#/$defs/AgentRunCallbackWorkbenchStreamEvent" }
678
+ },
679
+ "externalRunId": { "type": "string" },
680
+ "errorMessage": { "type": "string" }
681
+ },
682
+ "additionalProperties": false
683
+ },
684
+ "AgentRunToolCallRequest": {
685
+ "type": "object",
686
+ "required": ["runId", "callbackToken", "agentId"],
687
+ "properties": {
688
+ "runId": { "type": "string", "minLength": 1 },
689
+ "callbackToken": { "type": "string", "minLength": 1 },
690
+ "agentId": { "type": "string", "minLength": 1 },
691
+ "toolBindingId": { "type": "string" },
692
+ "adapterId": { "type": "string" },
693
+ "toolName": { "type": "string" },
694
+ "input": { "$ref": "#/$defs/AnyObject" }
695
+ },
696
+ "additionalProperties": false
697
+ },
698
+ "AgentToolCallResult": {
699
+ "type": "object",
700
+ "required": ["runId", "toolExecution"],
701
+ "properties": {
702
+ "runId": { "type": "string" },
703
+ "toolExecution": { "$ref": "#/$defs/AnyObject" },
704
+ "output": { "$ref": "#/$defs/AnyObject" }
705
+ },
706
+ "additionalProperties": true
707
+ },
708
+ "DataEnvelope": {
709
+ "type": "object",
710
+ "required": ["data"],
711
+ "properties": {
712
+ "data": {}
713
+ },
714
+ "additionalProperties": false
715
+ }
716
+ }
717
+ }