@opensoha/contracts 0.1.6 → 0.1.7
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/auth/catalog_generated.go +3 -3
- package/auth/permission-catalog.json +108 -2
- package/capabilities/cluster-capability-matrix.schema.json +30 -1
- package/compat/json-schema-ecosystem-0.1.0.json +1 -1
- package/compat/openapi-loose-boundaries-0.1.0.json +1 -1
- package/examples/gateway-manifest/minimal.json +6 -6
- package/examples/openapi/agent-run-tool-call-request.json +1 -1
- package/examples/openapi/agent-tool-call-result-envelope.json +1 -1
- package/examples/openapi/gateway-manifest-envelope.json +4 -4
- package/examples/openapi/tool-invocation-request.json +1 -1
- package/examples/openapi/tool-invocation-result-envelope.json +1 -1
- package/examples/plugin-manifest/skill-pack.json +2 -2
- package/examples/skill-manifest/k8s-sre.json +2 -2
- package/examples/token-claims/service-account.json +1 -1
- package/fixtures/json-schema/cluster-capability-matrix/valid/runtime-parity.json +3 -0
- package/fixtures/json-schema/gateway-manifest/valid/minimal.json +4 -4
- package/fixtures/json-schema/skill-manifest/valid/minimal.json +2 -2
- package/fixtures/json-schema/token-claims/valid/service-account.json +1 -1
- package/fixtures/openapi/AIGatewayManifestEnvelope/valid/minimal.json +1 -1
- package/fixtures/openapi/AgentInstallationEnvelope/invalid/missing-command.json +7 -0
- package/fixtures/openapi/AgentInstallationEnvelope/valid/minimal.json +8 -0
- package/fixtures/openapi/ApplicationInput/invalid/missing-key.json +4 -0
- package/fixtures/openapi/ApplicationInput/valid/minimal.json +5 -0
- package/fixtures/openapi/HelmReleaseImportRequest/invalid/empty-releases.json +10 -0
- package/fixtures/openapi/HelmReleaseImportRequest/valid/managed.json +14 -0
- package/fixtures/openapi/HelmReleaseImportResultEnvelope/invalid/missing-mode.json +20 -0
- package/fixtures/openapi/HelmReleaseImportResultEnvelope/valid/created.json +35 -0
- package/fixtures/openapi/KubernetesImportCandidateListEnvelope/invalid/unknown-kind.json +14 -0
- package/fixtures/openapi/KubernetesImportCandidateListEnvelope/valid/grouped.json +31 -0
- package/fixtures/openapi/KubernetesServiceImportRequest/invalid/unsupported-mode.json +15 -0
- package/fixtures/openapi/KubernetesServiceImportRequest/valid/managed.json +15 -0
- package/fixtures/openapi/KubernetesServiceImportRequest/valid/observe-only.json +15 -0
- package/fixtures/openapi/KubernetesServiceImportResultEnvelope/invalid/missing-mode.json +20 -0
- package/fixtures/openapi/KubernetesServiceImportResultEnvelope/valid/created.json +37 -0
- package/fixtures/openapi/MCPCapabilityListEnvelope/invalid/missing-scopes.json +1 -1
- package/fixtures/openapi/MCPCapabilityListEnvelope/valid/minimal.json +1 -1
- package/fixtures/openapi/ObservabilityDashboardImportResultEnvelope/invalid/missing-dashboard.json +7 -0
- package/fixtures/openapi/ObservabilityDashboardImportResultEnvelope/valid/imported.json +36 -0
- package/fixtures/openapi/ObservabilityGrafanaDashboardImportInput/invalid/missing-data-source.json +3 -0
- package/fixtures/openapi/ObservabilityGrafanaDashboardImportInput/invalid/missing-json.json +3 -0
- package/fixtures/openapi/ObservabilityGrafanaDashboardImportInput/valid/classic.json +4 -0
- package/fixtures/openapi/ObservabilityMetricDataSourceListEnvelope/invalid/missing-name.json +7 -0
- package/fixtures/openapi/ObservabilityMetricDataSourceListEnvelope/valid/list.json +8 -0
- package/fixtures/openapi/PersonalAccessTokenInput/invalid/extra-field.json +1 -1
- package/fixtures/openapi/PersonalAccessTokenInput/valid/create.json +1 -1
- package/fixtures/openapi/RegistryConnectionInput/invalid/missing-type.json +4 -0
- package/fixtures/openapi/RegistryConnectionInput/valid/harbor.json +9 -0
- package/fixtures/openapi/RegistryConnectionListEnvelope/invalid/exposed-secret.json +18 -0
- package/fixtures/openapi/RegistryConnectionListEnvelope/valid/configured.json +19 -0
- package/fixtures/openapi/SoftwarePackage/invalid/unsafe-software-package.json +15 -0
- package/fixtures/openapi/SoftwarePackage/valid/software-package.json +17 -0
- package/fixtures/openapi/SoftwarePackageURLImportRequest/invalid/software-package-url-import-request.json +9 -0
- package/fixtures/openapi/SoftwarePackageURLImportRequest/valid/software-package-url-import-request.json +12 -0
- package/fixtures/openapi/SoftwareStorage/invalid/software-storage.json +6 -0
- package/fixtures/openapi/SoftwareStorage/valid/software-storage.json +22 -0
- package/gen/go/sohaapi/client.go +1 -1
- package/gen/go/sohaapi/types.go +719 -3
- package/gen/ts/sohaapi/index.ts +1235 -23
- package/openapi/soha-api.json +2241 -3
- package/openapi/soha-api.yaml +1498 -156
- package/openapi/spec_generated.go +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"application": {
|
|
4
|
+
"id": "app-1",
|
|
5
|
+
"key": "payments",
|
|
6
|
+
"name": "Payments",
|
|
7
|
+
"created": false
|
|
8
|
+
},
|
|
9
|
+
"environment": {
|
|
10
|
+
"id": "env-1",
|
|
11
|
+
"key": "prod",
|
|
12
|
+
"name": "Production",
|
|
13
|
+
"created": false
|
|
14
|
+
},
|
|
15
|
+
"applicationEnvironmentId": "app-env-1",
|
|
16
|
+
"applicationEnvironmentCreated": false,
|
|
17
|
+
"services": [],
|
|
18
|
+
"targets": []
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"application": {
|
|
4
|
+
"id": "app-1",
|
|
5
|
+
"key": "payments",
|
|
6
|
+
"name": "Payments",
|
|
7
|
+
"created": true
|
|
8
|
+
},
|
|
9
|
+
"environment": {
|
|
10
|
+
"id": "env-1",
|
|
11
|
+
"key": "prod",
|
|
12
|
+
"name": "Production",
|
|
13
|
+
"created": false
|
|
14
|
+
},
|
|
15
|
+
"applicationEnvironmentId": "app-env-1",
|
|
16
|
+
"applicationEnvironmentCreated": true,
|
|
17
|
+
"ownershipMode": "observe_only",
|
|
18
|
+
"services": [
|
|
19
|
+
{
|
|
20
|
+
"id": "service-1",
|
|
21
|
+
"key": "k8s-deployment-payments-api",
|
|
22
|
+
"name": "payments-api",
|
|
23
|
+
"workloadKind": "Deployment",
|
|
24
|
+
"workloadName": "payments-api",
|
|
25
|
+
"created": true
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"targets": [
|
|
29
|
+
{
|
|
30
|
+
"id": "target-1",
|
|
31
|
+
"workloadKind": "Deployment",
|
|
32
|
+
"workloadName": "payments-api",
|
|
33
|
+
"created": true
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"dashboard": {
|
|
4
|
+
"id": "dashboard:8b9f35ba-6870-4f34-b45f-6f601d8b8c35",
|
|
5
|
+
"name": "Kubernetes Overview",
|
|
6
|
+
"source": "grafana",
|
|
7
|
+
"sourceSchemaVersion": 39,
|
|
8
|
+
"tags": ["kubernetes"],
|
|
9
|
+
"panels": [
|
|
10
|
+
{
|
|
11
|
+
"id": "1",
|
|
12
|
+
"title": "CPU",
|
|
13
|
+
"type": "timeseries",
|
|
14
|
+
"layout": { "x": 0, "y": 0, "w": 12, "h": 8 },
|
|
15
|
+
"targets": [
|
|
16
|
+
{
|
|
17
|
+
"refId": "A",
|
|
18
|
+
"expression": "sum(rate(container_cpu_usage_seconds_total[5m]))"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"queryable": true
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"createdAt": "2026-08-08T08:00:00Z",
|
|
25
|
+
"updatedAt": "2026-08-08T08:00:00Z"
|
|
26
|
+
},
|
|
27
|
+
"warnings": [
|
|
28
|
+
{
|
|
29
|
+
"code": "datasource_rebound",
|
|
30
|
+
"message": "Grafana data-source references will use the default enabled Prometheus source."
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"importedPanelCount": 1,
|
|
34
|
+
"skippedPanelCount": 0
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
{
|
|
2
|
+
"json": "{\"title\":\"Kubernetes Overview\",\"schemaVersion\":39,\"tags\":[\"kubernetes\"],\"panels\":[{\"id\":1,\"title\":\"CPU\",\"type\":\"timeseries\",\"gridPos\":{\"x\":0,\"y\":0,\"w\":12,\"h\":8},\"targets\":[{\"refId\":\"A\",\"expr\":\"sum(rate(container_cpu_usage_seconds_total[5m]))\"}]}]}",
|
|
3
|
+
"dataSourceId": "prometheus-main"
|
|
4
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"items": [
|
|
3
|
+
{
|
|
4
|
+
"id": "registry-harbor-production",
|
|
5
|
+
"name": "Harbor Production",
|
|
6
|
+
"registryType": "harbor",
|
|
7
|
+
"endpoint": "https://harbor.example.com",
|
|
8
|
+
"secret": "must-not-be-returned",
|
|
9
|
+
"insecure": false,
|
|
10
|
+
"metadata": {
|
|
11
|
+
"secretConfigured": true,
|
|
12
|
+
"secretStorage": "encrypted"
|
|
13
|
+
},
|
|
14
|
+
"createdAt": "2026-08-08T08:00:00Z",
|
|
15
|
+
"updatedAt": "2026-08-08T08:00:00Z"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"items": [
|
|
3
|
+
{
|
|
4
|
+
"id": "registry-harbor-production",
|
|
5
|
+
"name": "Harbor Production",
|
|
6
|
+
"registryType": "harbor",
|
|
7
|
+
"endpoint": "https://harbor.example.com",
|
|
8
|
+
"namespace": "delivery",
|
|
9
|
+
"username": "robot$delivery",
|
|
10
|
+
"insecure": false,
|
|
11
|
+
"metadata": {
|
|
12
|
+
"secretConfigured": true,
|
|
13
|
+
"secretStorage": "encrypted"
|
|
14
|
+
},
|
|
15
|
+
"createdAt": "2026-08-08T08:00:00Z",
|
|
16
|
+
"updatedAt": "2026-08-08T08:00:00Z"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "pkg-01j9z3m4w8n2",
|
|
3
|
+
"softwareId": "../soha-cli",
|
|
4
|
+
"name": "Soha CLI",
|
|
5
|
+
"publisher": "OpenSoha",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"platform": "darwin",
|
|
8
|
+
"arch": "arm64",
|
|
9
|
+
"fileName": "../soha-cli.pkg",
|
|
10
|
+
"sizeBytes": 0,
|
|
11
|
+
"sha256": "invalid",
|
|
12
|
+
"downloadPath": "https://untrusted.example.com/installer",
|
|
13
|
+
"createdAt": "2026-08-08T00:00:00Z",
|
|
14
|
+
"updatedAt": "2026-08-08T00:00:00Z"
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "pkg-01j9z3m4w8n2",
|
|
3
|
+
"softwareId": "soha-cli",
|
|
4
|
+
"name": "Soha CLI",
|
|
5
|
+
"description": "Command-line client for Soha.",
|
|
6
|
+
"publisher": "OpenSoha",
|
|
7
|
+
"category": "Developer Tools",
|
|
8
|
+
"version": "0.1.0",
|
|
9
|
+
"platform": "darwin",
|
|
10
|
+
"arch": "arm64",
|
|
11
|
+
"fileName": "soha-cli-0.1.0-darwin-arm64.pkg",
|
|
12
|
+
"sizeBytes": 1048576,
|
|
13
|
+
"sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
|
|
14
|
+
"downloadPath": "/api/v1/software/packages/pkg-01j9z3m4w8n2/download",
|
|
15
|
+
"createdAt": "2026-08-08T00:00:00Z",
|
|
16
|
+
"updatedAt": "2026-08-08T00:00:00Z"
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"softwareId": "soha-desktop",
|
|
3
|
+
"name": "Soha Desktop",
|
|
4
|
+
"description": "Desktop client for Soha.",
|
|
5
|
+
"publisher": "OpenSoha",
|
|
6
|
+
"category": "Developer Tools",
|
|
7
|
+
"version": "0.2.0",
|
|
8
|
+
"platform": "darwin",
|
|
9
|
+
"arch": "arm64",
|
|
10
|
+
"url": "https://downloads.opensoha.dev/soha-desktop-0.2.0-arm64.dmg",
|
|
11
|
+
"fileName": "soha-desktop-0.2.0-arm64.dmg"
|
|
12
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"backend": "filesystem",
|
|
3
|
+
"objectCount": 1,
|
|
4
|
+
"totalBytes": 1048576,
|
|
5
|
+
"items": [
|
|
6
|
+
{
|
|
7
|
+
"id": "pkg-01j9z3m4w8n2",
|
|
8
|
+
"softwareId": "soha-cli",
|
|
9
|
+
"name": "Soha CLI",
|
|
10
|
+
"publisher": "OpenSoha",
|
|
11
|
+
"version": "0.1.0",
|
|
12
|
+
"platform": "darwin",
|
|
13
|
+
"arch": "arm64",
|
|
14
|
+
"fileName": "soha-cli-0.1.0-darwin-arm64.pkg",
|
|
15
|
+
"sizeBytes": 1048576,
|
|
16
|
+
"sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
|
|
17
|
+
"downloadPath": "/api/v1/software/packages/pkg-01j9z3m4w8n2/download",
|
|
18
|
+
"createdAt": "2026-08-08T00:00:00Z",
|
|
19
|
+
"updatedAt": "2026-08-08T00:00:00Z"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|