"service": { "type": "object", "additionalProperties": false, "required": [ "status", "endpoint", "challengeEndpoint", "apiSpecification", "protocolVersion" ], "properties": { "status": { "$ref": "#/$defs/technicalStatus" }, "endpoint": { "$ref": "#/$defs/nullableUri" }, "challengeEndpoint": { "$ref": "#/$defs/nullableUri" }, "apiSpecification": { "type": "object", "additionalProperties": false, "required": ["url", "format", "version", "digest"], "properties": { "url": { "$ref": "#/$defs/nullableUri" }, "format": { "type": ["string", "null"] }, "version": { "type": ["string", "null"] }, "digest": { "$ref": "#/$defs/nullableDigest" } } }, "protocolVersion": { "type": ["string", "null"] } } },
"implementation": {
"type": "object",
"additionalProperties": false,
"required": [
"status",
"softwareRelease",
"sourceCommit",
"sourceUrl",
"releaseUrl",
"artifactDigest",
"buildProvenanceUrl",
"buildProvenanceDigest",
"reproducibleBuild"
],
"properties": {
"status": {
"$ref": "#/$defs/technicalStatus"
},
"softwareRelease": {
"type": ["string", "null"]
},
"sourceCommit": {
"$ref": "#/$defs/nullableDigest"
},
"sourceUrl": {
"$ref": "#/$defs/nullableUri"
},
"releaseUrl": {
"$ref": "#/$defs/nullableUri"
},
"artifactDigest": {
"$ref": "#/$defs/nullableDigest"
},
"buildProvenanceUrl": {
"$ref": "#/$defs/nullableUri"
},
"buildProvenanceDigest": {
"$ref": "#/$defs/nullableDigest"
},
"reproducibleBuild": {
"type": "object",
"additionalProperties": false,
"required": [
"status",
"referenceArtifactDigest",
"verificationCount",
"attestations"
],
"properties": {
"status": {
"enum": [
"VERIFIED",
"FAILED",
"NOT_VERIFIED",
"NOT_APPLICABLE"
]
},
"referenceArtifactDigest": {
"$ref": "#/$defs/nullableDigest"
},
"verificationCount": {
"type": "integer",
"minimum": 0
},
"attestations": {
"type": "array",
"items": {
"$ref": "#/$defs/attestation"
}
}
}
}
}
},
"dependencies": {
"type": "object",
"additionalProperties": false,
"required": [
"format",
"specVersion",
"sbomUrl",
"sbomDigest",
"componentCount",
"components"
],
"properties": {
"format": {
"type": ["string", "null"],
"enum": ["SPDX", "CYCLONEDX", "OTHER", null]
},
"specVersion": {
"type": ["string", "null"]
},
"sbomUrl": {
"$ref": "#/$defs/nullableUri"
},
"sbomDigest": {
"$ref": "#/$defs/nullableDigest"
},
"componentCount": {
"type": ["integer", "null"],
"minimum": 0
},
"components": {
"type": "array",
"items": {
"$ref": "#/$defs/dependency"
}
}
}
},
"activity": {
"type": "object",
"additionalProperties": false,
"required": [
"lastStateTransition",
"lastSignedAction",
"signedPublicArtifactCount",
"latestLedgerEvent"
],
"properties": {
"lastStateTransition": {
"$ref": "#/$defs/stateTransition"
},
"lastSignedAction": {
"$ref": "#/$defs/signedAction"
},
"signedPublicArtifactCount": {
"$ref": "#/$defs/artifactCount"
},
"latestLedgerEvent": {
"$ref": "#/$defs/ledgerEvent"
}
}
},
"telemetry": {
"type": "object",
"additionalProperties": false,
"required": ["uptimeWindow"],
"properties": {
"uptimeWindow": {
"type": "object",
"additionalProperties": false,
"required": [
"start",
"end",
"availabilityRatio",
"successfulProbes",
"totalProbes",
"probeIntervalSeconds",
"monitorId",
"reportUrl",
"reportDigest"
],
"properties": {
"start": {
"$ref": "#/$defs/nullableDateTime"
},
"end": {
"$ref": "#/$defs/nullableDateTime"
},
"availabilityRatio": {
"type": ["number", "null"],
"minimum": 0,
"maximum": 1
},
"successfulProbes": {
"type": ["integer", "null"],
"minimum": 0
},
"totalProbes": {
"type": ["integer", "null"],
"minimum": 0
},
"probeIntervalSeconds": {
"type": ["integer", "null"],
"minimum": 1
},
"monitorId": {
"$ref": "#/$defs/nullableUri"
},
"reportUrl": {
"$ref": "#/$defs/nullableUri"
},
"reportDigest": {
"$ref": "#/$defs/nullableDigest"
}
}
}
}
},
"verification": {
"type": "object",
"additionalProperties": false,
"required": [
"lastVerificationTime",
"verifierId",
"result",
"reportUrl"
],
"properties": {
"lastVerificationTime": {
"$ref": "#/$defs/nullableDateTime"
},
"verifierId": {
"$ref": "#/$defs/nullableUri"
},
"result": {
"enum": ["PASS", "PARTIAL", "FAIL", "NOT_RUN"]
},
"reportUrl": {
"$ref": "#/$defs/nullableUri"
}
}
},
"incidents": {
"type": "object",
"additionalProperties": false,
"required": ["coverageStart", "knownIncidents"],
"properties": {
"coverageStart": {
"$ref": "#/$defs/nullableDateTime"
},
"knownIncidents": {
"type": "array",
"items": {
"$ref": "#/$defs/incident"
}
}
}
},
"capabilities": {
"type": "array",
"items": {
"$ref": "#/$defs/capability"
}
},
"plannedCapabilities": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"machineReadableRecordUrl": {
"type": "string",
"format": "uri"
},
"recordDigest": {
"$ref": "#/$defs/digest"
},
"recordSignature": {
"type": "object",
"additionalProperties": false,
"required": [
"format",
"canonicalization",
"algorithm",
"keyId",
"signedAt",
"signatureUrl"
],
"properties": {
"format": {
"enum": ["DETACHED_JWS"]
},
"canonicalization": {
"enum": ["RFC8785_JCS"]
},
"algorithm": {
"type": "string",
"minLength": 1
},
"keyId": {
"type": "string",
"format": "uri"
},
"signedAt": {
"type": "string",
"format": "date-time"
},
"signatureUrl": {
"type": "string",
"format": "uri"
}
}
}
},
"$defs": { "constitutionalStatus": { "enum": [ "CONSTITUTIONALLY_DEFINED", "ACTIVE", "SUSPENDED", "RETIRED" ] },
"technicalStatus": {
"enum": [
"PLANNED",
"IMPLEMENTED",
"ACTIVE",
"DEGRADED",
"MAINTENANCE",
"SUSPENDED",
"RETIRED"
]
},
"digest": {
"type": "string",
"pattern": "^(sha256:[0-9a-f]{64}|sha512:[0-9a-f]{128})$"
},
"nullableDigest": {
"anyOf": [
{ "$ref": "#/$defs/digest" },
{ "type": "null" }
]
},
"nullableUri": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "null"
}
]
},
"nullableDateTime": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"attestation": {
"type": "object",
"additionalProperties": false,
"required": ["verifierId", "url", "digest", "verifiedAt"],
"properties": {
"verifierId": {
"type": "string",
"format": "uri"
},
"url": {
"type": "string",
"format": "uri"
},
"digest": {
"$ref": "#/$defs/digest"
},
"verifiedAt": {
"type": "string",
"format": "date-time"
}
}
},
"dependency": {
"type": "object",
"additionalProperties": false,
"required": ["name", "version", "packageUrl", "digest"],
"properties": {
"name": {
"type": "string"
},
"version": {
"type": ["string", "null"]
},
"packageUrl": {
"$ref": "#/$defs/nullableUri"
},
"digest": {
"$ref": "#/$defs/nullableDigest"
}
}
},
"stateTransition": {
"type": "object",
"additionalProperties": false,
"required": ["from", "to", "at", "eventId", "digest"],
"properties": {
"from": {
"anyOf": [
{ "$ref": "#/$defs/technicalStatus" },
{ "type": "null" }
]
},
"to": {
"anyOf": [
{ "$ref": "#/$defs/technicalStatus" },
{ "type": "null" }
]
},
"at": {
"$ref": "#/$defs/nullableDateTime"
},
"eventId": {
"$ref": "#/$defs/nullableUri"
},
"digest": {
"$ref": "#/$defs/nullableDigest"
}
}
},
"signedAction": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"type",
"at",
"digest",
"signatureUrl",
"keyFingerprint"
],
"properties": {
"id": {
"$ref": "#/$defs/nullableUri"
},
"type": {
"type": ["string", "null"]
},
"at": {
"$ref": "#/$defs/nullableDateTime"
},
"digest": {
"$ref": "#/$defs/nullableDigest"
},
"signatureUrl": {
"$ref": "#/$defs/nullableUri"
},
"keyFingerprint": {
"$ref": "#/$defs/nullableUri"
}
}
},
"artifactCount": {
"type": "object",
"additionalProperties": false,
"required": ["count", "asOf", "queryUrl", "ledgerRoot"],
"properties": {
"count": {
"type": ["integer", "null"],
"minimum": 0
},
"asOf": {
"$ref": "#/$defs/nullableDateTime"
},
"queryUrl": {
"$ref": "#/$defs/nullableUri"
},
"ledgerRoot": {
"$ref": "#/$defs/nullableDigest"
}
}
},