Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sphereon/ssi-types

Package Overview
Dependencies
Maintainers
4
Versions
1168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sphereon/ssi-types - npm Package Compare versions

Comparing version 0.8.1-unstable.86 to 0.8.1-unstable.135

2

dist/mapper/credential-mapper.js

@@ -56,3 +56,3 @@ "use strict";

decoded,
presentation: Object.assign(Object.assign({}, vp), { verifiableCredential: vcs, type: vp.type ? vp.type : vp['@type'] }),
presentation: Object.assign(Object.assign({}, vp), { verifiableCredential: vcs }),
vcs,

@@ -59,0 +59,0 @@ };

import { PresentationSubmission } from './pex';
import { IProofPurpose, IProofType } from './did';
export declare type AdditionalClaims = Record<string, any>;
export declare type IIssuerId = string;
export interface ICredentialWithoutType {
export type AdditionalClaims = Record<string, any>;
export type IIssuerId = string;
export interface ICredential {
'@context': ICredentialContextType | ICredentialContextType[];
type: string[];
credentialSchema?: undefined | ICredentialSchemaType | ICredentialSchemaType[];

@@ -13,3 +14,2 @@ issuer: IIssuerId | IIssuer;

id?: string;
'@id'?: string;
credentialStatus?: ICredentialStatus;

@@ -20,13 +20,6 @@ description?: string;

}
export interface VerifiableDataTypeProperty {
type: string[];
}
export interface VerifiableDataAtTypeProperty {
'@type': string[];
}
export declare type ICredential = ICredentialWithoutType & (VerifiableDataAtTypeProperty | VerifiableDataTypeProperty);
export interface ICredentialSubject {
id?: string;
}
export declare type ICredentialContextType = (ICredentialContext & AdditionalClaims) | string;
export type ICredentialContextType = (ICredentialContext & AdditionalClaims) | string;
export interface ICredentialContext {

@@ -36,3 +29,3 @@ name?: string;

}
export declare type ICredentialSchemaType = ICredentialSchema | string;
export type ICredentialSchemaType = ICredentialSchema | string;
export interface ICredentialSchema {

@@ -66,7 +59,7 @@ id: string;

}
export declare type IVerifiableCredential = ICredential & IHasProof;
export type IVerifiableCredential = ICredential & IHasProof;
/**
* Represents a Json Web Token in compact form.
*/
export declare type CompactJWT = string;
export type CompactJWT = string;
/**

@@ -77,7 +70,7 @@ * Represents a signed Verifiable Credential (includes proof), in either JSON or compact JWT format.

*/
export declare type W3CVerifiableCredential = IVerifiableCredential | CompactJWT;
export interface IPresentationWithoutType {
export type W3CVerifiableCredential = IVerifiableCredential | CompactJWT;
export interface IPresentation {
id?: string;
'@id'?: string;
'@context': ICredentialContextType | ICredentialContextType[];
type: string[];
verifiableCredential: W3CVerifiableCredential[];

@@ -88,4 +81,3 @@ presentation_submission?: PresentationSubmission;

}
export declare type IPresentation = IPresentationWithoutType & (VerifiableDataTypeProperty | VerifiableDataAtTypeProperty);
export declare type IVerifiablePresentation = IPresentation & IHasProof;
export type IVerifiablePresentation = IPresentation & IHasProof;
/**

@@ -96,3 +88,3 @@ * Represents a signed Verifiable Presentation (includes proof), in either JSON or compact JWT format.

*/
export declare type W3CVerifiablePresentation = IVerifiablePresentation | CompactJWT;
export type W3CVerifiablePresentation = IVerifiablePresentation | CompactJWT;
export interface WrappedVerifiableCredential {

@@ -176,8 +168,8 @@ /**

}
export declare type CredentialFormat = 'jwt' | 'ldp' | 'jwt_vc' | 'ldp_vc' | string;
export declare type PresentationFormat = 'jwt' | 'ldp' | 'jwt_vp' | 'ldp_vp' | string;
export declare type ClaimFormat = CredentialFormat | PresentationFormat;
export declare type OriginalVerifiableCredential = W3CVerifiableCredential | JwtDecodedVerifiableCredential;
export declare type OriginalVerifiablePresentation = W3CVerifiablePresentation | JwtDecodedVerifiablePresentation;
export declare type Original = OriginalVerifiablePresentation | OriginalVerifiableCredential;
export type CredentialFormat = 'jwt' | 'ldp' | 'jwt_vc' | 'ldp_vc' | string;
export type PresentationFormat = 'jwt' | 'ldp' | 'jwt_vp' | 'ldp_vp' | string;
export type ClaimFormat = CredentialFormat | PresentationFormat;
export type OriginalVerifiableCredential = W3CVerifiableCredential | JwtDecodedVerifiableCredential;
export type OriginalVerifiablePresentation = W3CVerifiablePresentation | JwtDecodedVerifiablePresentation;
export type Original = OriginalVerifiablePresentation | OriginalVerifiableCredential;
//# sourceMappingURL=vc.d.ts.map
{
"name": "@sphereon/ssi-types",
"description": "SSI Common Types",
"version": "0.8.1-unstable.86+55d3de7",
"version": "0.8.1-unstable.135+680e974",
"main": "dist/index.js",

@@ -40,3 +40,3 @@ "types": "dist/index.d.ts",

],
"gitHead": "55d3de7ef96fee215cc1eb1c497ffa3b125c218a"
"gitHead": "680e97483a66a78848f98f4c54b707a24a20a155"
}

@@ -69,3 +69,2 @@ import {

verifiableCredential: vcs, // We overwrite the credentials with wrapped versions, making it an InternalVerifiablePresentation. Note: we keep the singular key name of the vc data model
type: vp.type? vp.type: vp['@type']
},

@@ -72,0 +71,0 @@ vcs,

@@ -8,4 +8,5 @@ import { PresentationSubmission } from './pex'

export interface ICredentialWithoutType {
export interface ICredential {
'@context': ICredentialContextType | ICredentialContextType[]
type: string[]
credentialSchema?: undefined | ICredentialSchemaType | ICredentialSchemaType[]

@@ -22,3 +23,2 @@ // If iss is present, the value MUST be used to set the issuer property of the new credential JSON object or the holder property of the new presentation JSON object.

id?: string
'@id'?: string
credentialStatus?: ICredentialStatus

@@ -31,12 +31,2 @@ description?: string

export interface VerifiableDataTypeProperty {
type: string[]
}
export interface VerifiableDataAtTypeProperty {
'@type': string[]
}
export type ICredential = ICredentialWithoutType & (VerifiableDataAtTypeProperty | VerifiableDataTypeProperty)
export interface ICredentialSubject {

@@ -104,6 +94,6 @@ id?: string

export interface IPresentationWithoutType {
export interface IPresentation {
id?: string
'@id'?: string
'@context': ICredentialContextType | ICredentialContextType[]
type: string[]
verifiableCredential: W3CVerifiableCredential[] // we relax to ICredential for internal decoded stable representations without proofs

@@ -116,4 +106,2 @@ presentation_submission?: PresentationSubmission

export type IPresentation = IPresentationWithoutType & (VerifiableDataTypeProperty | VerifiableDataAtTypeProperty)
export type IVerifiablePresentation = IPresentation & IHasProof

@@ -120,0 +108,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc