@opensoha/contracts 0.1.7 → 0.1.9
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 +2 -2
- package/auth/permission-catalog.json +7 -7
- package/compat/json-schema-ecosystem-0.1.0.json +1 -1
- package/compat/openapi-loose-boundaries-0.1.0.json +16 -1
- package/fixtures/json-schema/companion-pack/invalid/traversal.json +19 -0
- package/fixtures/json-schema/companion-pack/valid/svg.json +47 -0
- package/fixtures/json-schema/companion-provenance/invalid/missing-source.json +8 -0
- package/fixtures/json-schema/companion-provenance/valid/minimal.json +10 -0
- package/fixtures/json-schema/marketplace-catalog/valid/companion-pack.json +39 -0
- package/fixtures/json-schema/plugin-manifest/invalid/companion-pack-without-assets.json +17 -0
- package/fixtures/json-schema/plugin-manifest/valid/companion-pack.json +28 -0
- package/fixtures/openapi/BrandingAssetUploadEnvelope/invalid/remote-url.json +5 -0
- package/fixtures/openapi/BrandingAssetUploadEnvelope/valid/png-data-url.json +5 -0
- package/fixtures/openapi/BrandingSettingsEnvelope/invalid/missing-favicon.json +9 -0
- package/fixtures/openapi/BrandingSettingsEnvelope/valid/default.json +10 -0
- package/fixtures/openapi/CompanionInteractionReceiptEnvelope/invalid/missing-profile.json +9 -0
- package/fixtures/openapi/CompanionInteractionReceiptEnvelope/valid/applied.json +22 -0
- package/fixtures/openapi/CompanionInteractionRequest/invalid/client-reward.json +5 -0
- package/fixtures/openapi/CompanionInteractionRequest/valid/pet.json +5 -0
- package/fixtures/openapi/CompanionPackManifest/invalid/external-entry.json +11 -0
- package/fixtures/openapi/CompanionPackManifest/valid/svg.json +20 -0
- package/fixtures/openapi/CompanionProfileEnvelope/invalid/level-zero.json +15 -0
- package/fixtures/openapi/CompanionProfileEnvelope/valid/default.json +15 -0
- package/fixtures/openapi/IdentitySettingsEnvelope/invalid/exposed-secret.json +14 -0
- package/fixtures/openapi/IdentitySettingsEnvelope/valid/redacted-provider.json +16 -0
- package/fixtures/openapi/KubernetesClusterListEnvelope/invalid/missing-health.json +12 -0
- package/fixtures/openapi/KubernetesClusterListEnvelope/valid/agent-cluster.json +18 -0
- package/fixtures/openapi/KubernetesNetworkTopologyEnvelope/invalid/missing-summary.json +7 -0
- package/fixtures/openapi/KubernetesNetworkTopologyEnvelope/valid/ingress-service-pod.json +29 -0
- package/fixtures/openapi/KubernetesPodListEnvelope/invalid/missing-scope.json +11 -0
- package/fixtures/openapi/KubernetesPodListEnvelope/valid/running-pod.json +15 -0
- package/fixtures/openapi/PlatformAuditLogListEnvelope/invalid/missing-action.json +14 -0
- package/fixtures/openapi/PlatformAuditLogListEnvelope/valid/kubernetes-mutation.json +24 -0
- package/fixtures/openapi/PlatformOperationLogListEnvelope/invalid/missing-target-scope.json +13 -0
- package/fixtures/openapi/PlatformOperationLogListEnvelope/valid/kubernetes-operation.json +29 -0
- package/fixtures/openapi/PluginProvenanceStatement/invalid/algorithm.json +10 -0
- package/fixtures/openapi/PluginProvenanceStatement/valid/minimal.json +10 -0
- package/fixtures/openapi/PodMetricsEnvelope/invalid/missing-configured.json +10 -0
- package/fixtures/openapi/PodMetricsEnvelope/valid/prometheus.json +25 -0
- package/fixtures/openapi/UpdateBrandingSettingsRequest/invalid/unknown-field.json +9 -0
- package/fixtures/openapi/UpdateBrandingSettingsRequest/valid/default.json +8 -0
- package/fixtures/openapi/UpdateLoginProvidersSettingsRequest/invalid/missing-providers.json +4 -0
- package/fixtures/openapi/UpdateLoginProvidersSettingsRequest/valid/provider-with-secret.json +15 -0
- package/fixtures/openapi/UploadBrandingAssetRequest/invalid/missing-file.json +1 -0
- package/fixtures/openapi/UploadBrandingAssetRequest/valid/file.json +3 -0
- package/gen/go/sohaapi/client.go +1 -1
- package/gen/go/sohaapi/types.go +4678 -40
- package/gen/ts/sohaapi/index.ts +18003 -8300
- package/openapi/soha-api.json +34915 -17384
- package/openapi/soha-api.yaml +18848 -11384
- package/openapi/spec_generated.go +3 -3
- package/package.json +3 -1
- package/plugins/companion-pack.schema.json +118 -0
- package/plugins/companion-provenance.schema.json +19 -0
- package/plugins/marketplace-catalog.schema.json +20 -0
- package/plugins/plugin-manifest.schema.json +19 -1
|
@@ -6,8 +6,8 @@ import _ "embed"
|
|
|
6
6
|
|
|
7
7
|
const (
|
|
8
8
|
PermissionCatalogVersion = "1.3.0"
|
|
9
|
-
PermissionCatalogContentSHA256 = "
|
|
10
|
-
PermissionCatalogSHA256 = "
|
|
9
|
+
PermissionCatalogContentSHA256 = "fe738c69a160e58cf919ce6de8380d6427be6f8848cabad7d807ec82fdea8a3b"
|
|
10
|
+
PermissionCatalogSHA256 = "206f12ff27279b1f345a87cd93be82789d1a79df311de9e7a86ab8cf75dde013"
|
|
11
11
|
)
|
|
12
12
|
|
|
13
13
|
//go:embed permission-catalog.json
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "authorization.opensoha.io/v1",
|
|
3
3
|
"catalogVersion": "1.3.0",
|
|
4
|
-
"contentHash": "sha256:
|
|
4
|
+
"contentHash": "sha256:fe738c69a160e58cf919ce6de8380d6427be6f8848cabad7d807ec82fdea8a3b",
|
|
5
5
|
"permissions": [
|
|
6
6
|
{
|
|
7
7
|
"key": "access.directory.create",
|
|
@@ -9788,7 +9788,7 @@
|
|
|
9788
9788
|
"domain": "settings",
|
|
9789
9789
|
"resource": "identity",
|
|
9790
9790
|
"action": "create",
|
|
9791
|
-
"displayName": "
|
|
9791
|
+
"displayName": "创建登录设置",
|
|
9792
9792
|
"riskLevel": "mutate",
|
|
9793
9793
|
"scopeKinds": [
|
|
9794
9794
|
"tenant",
|
|
@@ -9807,7 +9807,7 @@
|
|
|
9807
9807
|
"domain": "settings",
|
|
9808
9808
|
"resource": "identity",
|
|
9809
9809
|
"action": "delete",
|
|
9810
|
-
"displayName": "
|
|
9810
|
+
"displayName": "删除登录设置",
|
|
9811
9811
|
"riskLevel": "high",
|
|
9812
9812
|
"scopeKinds": [
|
|
9813
9813
|
"tenant",
|
|
@@ -9826,7 +9826,7 @@
|
|
|
9826
9826
|
"domain": "settings",
|
|
9827
9827
|
"resource": "identity",
|
|
9828
9828
|
"action": "manage",
|
|
9829
|
-
"displayName": "
|
|
9829
|
+
"displayName": "管理登录设置",
|
|
9830
9830
|
"riskLevel": "mutate",
|
|
9831
9831
|
"scopeKinds": [
|
|
9832
9832
|
"tenant",
|
|
@@ -9848,7 +9848,7 @@
|
|
|
9848
9848
|
"domain": "settings",
|
|
9849
9849
|
"resource": "identity",
|
|
9850
9850
|
"action": "update",
|
|
9851
|
-
"displayName": "
|
|
9851
|
+
"displayName": "修改登录设置",
|
|
9852
9852
|
"riskLevel": "mutate",
|
|
9853
9853
|
"scopeKinds": [
|
|
9854
9854
|
"tenant",
|
|
@@ -9867,7 +9867,7 @@
|
|
|
9867
9867
|
"domain": "settings",
|
|
9868
9868
|
"resource": "identity",
|
|
9869
9869
|
"action": "validate",
|
|
9870
|
-
"displayName": "
|
|
9870
|
+
"displayName": "校验登录设置",
|
|
9871
9871
|
"riskLevel": "execute",
|
|
9872
9872
|
"scopeKinds": [
|
|
9873
9873
|
"tenant",
|
|
@@ -9886,7 +9886,7 @@
|
|
|
9886
9886
|
"domain": "settings",
|
|
9887
9887
|
"resource": "identity",
|
|
9888
9888
|
"action": "view",
|
|
9889
|
-
"displayName": "
|
|
9889
|
+
"displayName": "查看登录设置",
|
|
9890
9890
|
"riskLevel": "read",
|
|
9891
9891
|
"scopeKinds": [
|
|
9892
9892
|
"tenant",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.
|
|
2
|
+
"version": "0.1.9",
|
|
3
3
|
"generatedFrom": "openapi/soha-api.yaml",
|
|
4
4
|
"entries": [
|
|
5
5
|
{
|
|
@@ -710,6 +710,21 @@
|
|
|
710
710
|
"path": "components/schemas/OpenAIResponseRequest/properties/input",
|
|
711
711
|
"target": "#/components/schemas/AnyValue"
|
|
712
712
|
},
|
|
713
|
+
{
|
|
714
|
+
"kind": "schemaRef",
|
|
715
|
+
"path": "components/schemas/PlatformAuditLog/properties/metadata",
|
|
716
|
+
"target": "#/components/schemas/GenericObject"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"kind": "schemaRef",
|
|
720
|
+
"path": "components/schemas/PlatformOperationLog/properties/metadata",
|
|
721
|
+
"target": "#/components/schemas/GenericObject"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"kind": "schemaRef",
|
|
725
|
+
"path": "components/schemas/PlatformOperationLog/properties/targetScope",
|
|
726
|
+
"target": "#/components/schemas/GenericObject"
|
|
727
|
+
},
|
|
713
728
|
{
|
|
714
729
|
"kind": "schemaRef",
|
|
715
730
|
"path": "components/schemas/RenderedDeliverySpec/properties/executionHints",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"renderer": "live2d-cubism",
|
|
3
|
+
"entryAsset": "../model/model3.json",
|
|
4
|
+
"assets": [
|
|
5
|
+
{
|
|
6
|
+
"path": "../model/model3.json",
|
|
7
|
+
"kind": "entry",
|
|
8
|
+
"contentType": "application/json",
|
|
9
|
+
"sizeBytes": 1024,
|
|
10
|
+
"sha256": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"license": {
|
|
14
|
+
"name": "Unknown",
|
|
15
|
+
"url": "https://example.invalid/license",
|
|
16
|
+
"redistributionAllowed": true,
|
|
17
|
+
"commercialUseAllowed": false
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"renderer": "svg",
|
|
3
|
+
"entryAsset": "model/soha.svg",
|
|
4
|
+
"thumbnailAsset": "thumbnail.png",
|
|
5
|
+
"assets": [
|
|
6
|
+
{
|
|
7
|
+
"path": "model/soha.svg",
|
|
8
|
+
"kind": "entry",
|
|
9
|
+
"contentType": "image/svg+xml",
|
|
10
|
+
"sizeBytes": 2048,
|
|
11
|
+
"sha256": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"path": "thumbnail.png",
|
|
15
|
+
"kind": "thumbnail",
|
|
16
|
+
"contentType": "image/png",
|
|
17
|
+
"sizeBytes": 1024,
|
|
18
|
+
"sha256": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"animations": {
|
|
22
|
+
"idle": "breathe",
|
|
23
|
+
"thinking": "ponder",
|
|
24
|
+
"speaking": "talk"
|
|
25
|
+
},
|
|
26
|
+
"interactions": [
|
|
27
|
+
{
|
|
28
|
+
"id": "pet",
|
|
29
|
+
"label": "Pet",
|
|
30
|
+
"action": "pet",
|
|
31
|
+
"animation": "happy",
|
|
32
|
+
"cooldownSeconds": 5,
|
|
33
|
+
"rewardXp": 2,
|
|
34
|
+
"rewardAffinity": 1
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"unlocks": [
|
|
38
|
+
{ "id": "happy", "kind": "animation", "level": 2, "ref": "happy" }
|
|
39
|
+
],
|
|
40
|
+
"license": {
|
|
41
|
+
"name": "Apache License 2.0",
|
|
42
|
+
"spdxId": "Apache-2.0",
|
|
43
|
+
"url": "https://www.apache.org/licenses/LICENSE-2.0",
|
|
44
|
+
"redistributionAllowed": true,
|
|
45
|
+
"commercialUseAllowed": true
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"subjectSha256": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
3
|
+
"builderId": "https://github.com/opensoha/soha-cloud/actions/runs/1",
|
|
4
|
+
"sourceUri": "https://github.com/opensoha/companion-packs",
|
|
5
|
+
"sourceCommit": "0123456789abcdef0123456789abcdef01234567",
|
|
6
|
+
"builtAt": "2026-08-08T00:00:00Z",
|
|
7
|
+
"signingKeyId": "opensoha.release",
|
|
8
|
+
"signatureAlgorithm": "ed25519",
|
|
9
|
+
"signature": "c2lnbmF0dXJl"
|
|
10
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "marketplace.opensoha.io/v1",
|
|
3
|
+
"generatedAt": "2026-08-08T00:00:00Z",
|
|
4
|
+
"sourceId": "opensoha-official",
|
|
5
|
+
"plugins": [
|
|
6
|
+
{
|
|
7
|
+
"id": "opensoha.soha-companion",
|
|
8
|
+
"name": "Soha Companion",
|
|
9
|
+
"version": "0.1.0",
|
|
10
|
+
"publisher": "opensoha",
|
|
11
|
+
"type": "companion-pack",
|
|
12
|
+
"source": "marketplace:opensoha/soha-companion",
|
|
13
|
+
"versions": [
|
|
14
|
+
{
|
|
15
|
+
"version": "0.1.0",
|
|
16
|
+
"manifestUrl": "https://marketplace.opensoha.dev/plugins/opensoha.soha-companion/0.1.0/plugin.manifest.json",
|
|
17
|
+
"package": {
|
|
18
|
+
"url": "https://marketplace.opensoha.dev/plugins/opensoha.soha-companion/0.1.0/companion.zip",
|
|
19
|
+
"contentType": "application/zip",
|
|
20
|
+
"sizeBytes": 4096,
|
|
21
|
+
"sha256": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
22
|
+
"signature": "c2lnbmF0dXJl",
|
|
23
|
+
"signatureAlgorithm": "ed25519",
|
|
24
|
+
"signingKeyId": "opensoha.release",
|
|
25
|
+
"provenanceUrl": "https://marketplace.opensoha.dev/plugins/opensoha.soha-companion/0.1.0/provenance.json",
|
|
26
|
+
"sbomUrl": "https://marketplace.opensoha.dev/plugins/opensoha.soha-companion/0.1.0/sbom.json"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"manifest": {
|
|
31
|
+
"id": "opensoha.soha-companion",
|
|
32
|
+
"name": "Soha Companion",
|
|
33
|
+
"version": "0.1.0",
|
|
34
|
+
"publisher": "opensoha",
|
|
35
|
+
"type": "companion-pack"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "opensoha.empty-companion",
|
|
3
|
+
"name": "Empty Companion",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"publisher": "opensoha",
|
|
6
|
+
"type": "companion-pack",
|
|
7
|
+
"companionPack": {
|
|
8
|
+
"renderer": "svg",
|
|
9
|
+
"entryAsset": "model.svg",
|
|
10
|
+
"license": {
|
|
11
|
+
"name": "Apache License 2.0",
|
|
12
|
+
"url": "https://www.apache.org/licenses/LICENSE-2.0",
|
|
13
|
+
"redistributionAllowed": true,
|
|
14
|
+
"commercialUseAllowed": true
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "opensoha.soha-companion",
|
|
3
|
+
"name": "Soha Companion",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"publisher": "opensoha",
|
|
6
|
+
"type": "companion-pack",
|
|
7
|
+
"runtime": { "mode": "manifest-only" },
|
|
8
|
+
"companionPack": {
|
|
9
|
+
"renderer": "svg",
|
|
10
|
+
"entryAsset": "model/soha.svg",
|
|
11
|
+
"assets": [
|
|
12
|
+
{
|
|
13
|
+
"path": "model/soha.svg",
|
|
14
|
+
"kind": "entry",
|
|
15
|
+
"contentType": "image/svg+xml",
|
|
16
|
+
"sizeBytes": 2048,
|
|
17
|
+
"sha256": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"license": {
|
|
21
|
+
"name": "Apache License 2.0",
|
|
22
|
+
"spdxId": "Apache-2.0",
|
|
23
|
+
"url": "https://www.apache.org/licenses/LICENSE-2.0",
|
|
24
|
+
"redistributionAllowed": true,
|
|
25
|
+
"commercialUseAllowed": true
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"idempotencyKey": "interaction-0001",
|
|
4
|
+
"applied": true,
|
|
5
|
+
"xpAwarded": 2,
|
|
6
|
+
"affinityAwarded": 1,
|
|
7
|
+
"unlockedIds": [],
|
|
8
|
+
"profile": {
|
|
9
|
+
"id": "companion:user-1",
|
|
10
|
+
"ownerId": "user-1",
|
|
11
|
+
"activePluginId": "opensoha.soha-companion",
|
|
12
|
+
"activeVersion": "0.1.0",
|
|
13
|
+
"level": 1,
|
|
14
|
+
"xp": 2,
|
|
15
|
+
"affinity": 1,
|
|
16
|
+
"unlockedIds": [],
|
|
17
|
+
"revision": 2,
|
|
18
|
+
"createdAt": "2026-08-08T00:00:00Z",
|
|
19
|
+
"updatedAt": "2026-08-08T00:00:01Z"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"renderer": "svg",
|
|
3
|
+
"entryAsset": "model/soha.svg",
|
|
4
|
+
"assets": [
|
|
5
|
+
{
|
|
6
|
+
"path": "model/soha.svg",
|
|
7
|
+
"kind": "entry",
|
|
8
|
+
"contentType": "image/svg+xml",
|
|
9
|
+
"sizeBytes": 2048,
|
|
10
|
+
"sha256": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"license": {
|
|
14
|
+
"name": "Apache License 2.0",
|
|
15
|
+
"spdxId": "Apache-2.0",
|
|
16
|
+
"url": "https://www.apache.org/licenses/LICENSE-2.0",
|
|
17
|
+
"redistributionAllowed": true,
|
|
18
|
+
"commercialUseAllowed": true
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"id": "companion:user-1",
|
|
4
|
+
"ownerId": "user-1",
|
|
5
|
+
"activePluginId": "builtin.soha-companion",
|
|
6
|
+
"activeVersion": "builtin",
|
|
7
|
+
"level": 0,
|
|
8
|
+
"xp": 0,
|
|
9
|
+
"affinity": 0,
|
|
10
|
+
"unlockedIds": [],
|
|
11
|
+
"revision": 1,
|
|
12
|
+
"createdAt": "2026-08-08T00:00:00Z",
|
|
13
|
+
"updatedAt": "2026-08-08T00:00:00Z"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"id": "companion:user-1",
|
|
4
|
+
"ownerId": "user-1",
|
|
5
|
+
"activePluginId": "builtin.soha-companion",
|
|
6
|
+
"activeVersion": "builtin",
|
|
7
|
+
"level": 1,
|
|
8
|
+
"xp": 0,
|
|
9
|
+
"affinity": 0,
|
|
10
|
+
"unlockedIds": [],
|
|
11
|
+
"revision": 1,
|
|
12
|
+
"createdAt": "2026-08-08T00:00:00Z",
|
|
13
|
+
"updatedAt": "2026-08-08T00:00:00Z"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"providers": [
|
|
4
|
+
{
|
|
5
|
+
"id": "github",
|
|
6
|
+
"name": "GitHub",
|
|
7
|
+
"type": "oauth2",
|
|
8
|
+
"enabled": true,
|
|
9
|
+
"clientId": "public-client-id",
|
|
10
|
+
"scopes": ["read:user", "user:email"]
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"defaultProviderId": "github",
|
|
14
|
+
"localPasswordLoginEnabled": true
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"items": [
|
|
3
|
+
{
|
|
4
|
+
"id": "edge-prod",
|
|
5
|
+
"name": "Edge Production",
|
|
6
|
+
"region": "cn-east",
|
|
7
|
+
"environment": "production",
|
|
8
|
+
"labels": { "connection": "agent" },
|
|
9
|
+
"connectionMode": "agent",
|
|
10
|
+
"version": "v1.34.0+k3s1",
|
|
11
|
+
"capabilities": ["workload.read", "pod.logs"],
|
|
12
|
+
"health": {
|
|
13
|
+
"status": "healthy",
|
|
14
|
+
"lastChecked": "2026-08-10T08:00:00Z"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"clusterId": "edge-prod",
|
|
4
|
+
"namespace": "production",
|
|
5
|
+
"source": "ingress",
|
|
6
|
+
"generatedAt": "2026-08-10T08:00:00Z",
|
|
7
|
+
"summary": {
|
|
8
|
+
"entryCount": 1,
|
|
9
|
+
"routeCount": 1,
|
|
10
|
+
"serviceCount": 1,
|
|
11
|
+
"missingServiceCount": 0,
|
|
12
|
+
"backendPodCount": 1,
|
|
13
|
+
"pendingRouteCount": 0
|
|
14
|
+
},
|
|
15
|
+
"traces": [
|
|
16
|
+
{
|
|
17
|
+
"id": "trace-1",
|
|
18
|
+
"sourceType": "Ingress",
|
|
19
|
+
"state": "ready",
|
|
20
|
+
"entry": { "id": "entry-1", "name": "app.example.com", "kind": "Host", "state": "ready" },
|
|
21
|
+
"route": { "id": "route-1", "name": "app", "kind": "Ingress", "state": "ready" },
|
|
22
|
+
"service": { "id": "service-1", "name": "api", "kind": "Service", "state": "ready" },
|
|
23
|
+
"backendPods": [
|
|
24
|
+
{ "id": "pod-1", "name": "api-7c8d9f", "kind": "Pod", "state": "ready" }
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"items": [
|
|
3
|
+
{
|
|
4
|
+
"name": "api-7c8d9f",
|
|
5
|
+
"namespace": "production",
|
|
6
|
+
"phase": "Running",
|
|
7
|
+
"nodeName": "worker-1",
|
|
8
|
+
"podIp": "10.42.1.8",
|
|
9
|
+
"readyContainers": "2/2",
|
|
10
|
+
"restarts": 0,
|
|
11
|
+
"ageSeconds": 3600,
|
|
12
|
+
"allowedActions": ["logs", "view"]
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"items": [
|
|
3
|
+
{
|
|
4
|
+
"id": "audit-01",
|
|
5
|
+
"actorId": "user-01",
|
|
6
|
+
"actorName": "Platform Operator",
|
|
7
|
+
"roles": ["platform-operator"],
|
|
8
|
+
"teams": ["sre"],
|
|
9
|
+
"clusterId": "cluster-01",
|
|
10
|
+
"namespace": "production",
|
|
11
|
+
"resourceKind": "Pod",
|
|
12
|
+
"resourceName": "api-0",
|
|
13
|
+
"action": "delete",
|
|
14
|
+
"result": "success",
|
|
15
|
+
"summary": "deleted pod for rebuild",
|
|
16
|
+
"requestPath": "/api/v1/clusters/cluster-01/workloads/pods/api-0",
|
|
17
|
+
"requestMethod": "DELETE",
|
|
18
|
+
"requestId": "request-01",
|
|
19
|
+
"sourceIp": "192.0.2.10",
|
|
20
|
+
"metadata": { "source": "web" },
|
|
21
|
+
"createdAt": "2026-08-10T08:00:00Z"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|