open-index/open-npm huggingface dataset:
npm package: @sovrahq/status-list-agent-plugin
Description: QuarkID Status List Agent Plugin
Author: QuarkID
Latest version: 0.1.4

# @quarkid/status-list-agent-plugin

## Descripción

`@quarkid/status-list-agent-plugin` es un **plugin para @quarkid/agent** que añade soporte para **Status Lists de Verifiable Credentials**. Permite verificar el estado de revocación/suspensión de credenciales consultando Status List 2021 según el estándar W3C.

Este plugin habilita al agente para validar automáticamente que las credenciales presentadas no han sido revocadas o suspendidas por sus emisores.

## Tecnologías y Dependencias Clave

- **TypeScript** (^4.5.4)
- **axios** (^1.7.2) - Cliente HTTP para consultar status lists

### PeerDependencies
- **@quarkid/agent** (0.10.0-7)

### DevDependencies
- **Jest** (^28.0.3) / **ts-jest** (^28.0.1) - Testing

## Instalación

### npm
```bash
npm install @quarkid/status-list-agent-plugin @quarkid/agent
```

### yarn
```bash
yarn add @quarkid/status-list-agent-plugin @quarkid/agent
```

### pnpm
```bash
pnpm add @quarkid/status-list-agent-plugin @quarkid/agent
```

⚠️ **Nota**: Requiere `@quarkid/agent` como peerDependency.

## API / Exports Principales

| Export | Descripción |
|--------|-------------|
| `StatusListAgentPlugin` | Clase del plugin Status List para el agente |

**Integración con Agent:**

```typescript
import { Agent } from "@quarkid/agent";
import { StatusListAgentPlugin } from "@quarkid/status-list-agent-plugin";

const statusListPlugin = new StatusListAgentPlugin({
  // ... configuración
});

const agent = new Agent({
  // ... configuración del agente
  credentialStatusPlugins: [statusListPlugin]
});
```

## Configuración / Variables de Entorno

⚠️ **No requiere variables de entorno propias**. Consulta status lists mediante URLs especificadas en las credenciales.

## Compatibilidad

- **Node.js**: >= 17.x (inferido de `@types/node": "^17.0.27"`)
- **TypeScript**: >= 4.5.4
- **Entornos**: Backend (Node.js)

## Versionado y Publicación

- **Versión actual**: `0.1.3`
- **Build previo**: Ejecutar `npm run build` antes de publicar
- **Estructura de salida**: `dist/index.js` (CommonJS)

## Licencia

**Apache-2.0**

Ver archivo [LICENSE](../../../../LICENSE) en la raíz del monorepo.

---

**Mantenido por**: QuarkID Team  
**Repositorio**: https://github.com/ssi-quarkid/Paquetes-NPMjs/tree/main
npm package: @sovrahq/vc-core
Description: This package exposes interfaces to work with verifiable credentials.
Author: QuarkID
Latest version: 1.1.0-3

# Extrimian - VS Core
This package exposes interfaces to work with verifiable credentials.

## VerifiableCredential
```
export class VerifiableCredential<TSubject = any> {
    "@context"?: string[] = ["https://www.w3.org/2018/credentials/v1"];
    id: string;
    type: string[];
    issuer: string;
    name: string;
    description: string;
    issuanceDate: Date = new Date();
    expirationDate?: Date;
    credentialStatus?: CredentialStatus;
    credentialSubject: TSubject;
    refreshService?: IdType;
    credentialSchema?: IdType;
    proof?: Proof

    constructor(init: Partial<VerifiableCredential<TSubject>>) {
    }
}
```

## IdType
```
export interface IdType {
    id: string;
    type: string;
}
```

## Credential Status
```
export class CredentialStatus {
    id: string;
    type: CredentialStatusType;
    revocationListIndex: string;
    revocationListCredential: string;
}
```

## Proof
```
export interface Proof {
    type: string;
    created: string;
    proofPurpose: Purpose;
    verificationMethod: string;
}
```

This package does not add functionalities or features, it just exposes interfaces to be used by other packages.
npm package: @sovrahq/vc-verifier
Description: This package provides the functionality to verify a verifiable credential.
Author: QuarkID
Latest version: 1.2.0-4

# Extrimian - VS Verifier
This package provides the functionality to verify a verifiable credential.

## VCVerifierService

To verify a credential you can initialize a VCVerifierService

```
constructor(private params: {
        didDocumentResolver: (did: string) => Promise<DIDDocument>
}) {

}
```

This service requires a callback to resolve a DID. You need to implement the callback so that given a did returns a DIDDocument

### Verify Method
Then you can call verify method to verify the credential

```
async verify(vc: VerifiableCredential | string, purpose: Purpose): Promise<{ result: boolean, errors?: string[] }> {

}
```
+ **vc**: Verifiable credential (with proofs) to verify
+ **purpose**: purpose to verify (this is checked using the did document)