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-next.26 to 0.8.1-next.31

8

dist/types/vc.d.ts

@@ -99,3 +99,3 @@ import { PresentationSubmission } from './pex';

*/
format: ClaimFormat;
format: CredentialFormat;
/**

@@ -122,3 +122,3 @@ * Internal stable representation of a Credential without Proofs, created based on https://www.w3.org/TR/vc-data-model/#jwt-decoding

*/
format: ClaimFormat;
format: PresentationFormat;
/**

@@ -163,3 +163,5 @@ * Internal stable representation of a Presentation without proofs, created based on https://www.w3.org/TR/vc-data-model/#jwt-decoding

}
export declare type ClaimFormat = 'jwt' | 'jwt_vc' | 'jwt_vp' | 'ldp' | 'ldp_vc' | 'ldp_vp' | string;
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;

@@ -166,0 +168,0 @@ export declare type OriginalVerifiablePresentation = W3CVerifiablePresentation | JwtDecodedVerifiablePresentation;

{
"name": "@sphereon/ssi-types",
"description": "SSI Common Types",
"version": "0.8.1-next.26+4dc8dea",
"version": "0.8.1-next.31+fe90ad0",
"main": "dist/index.js",

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

],
"gitHead": "4dc8dea175ff9eb8526ce6f1abb4b72ffbb58128"
"gitHead": "fe90ad0ac1fc1f401075310cae842a1e2136a361"
}
import {
ClaimFormat,
ICredential,

@@ -11,3 +10,3 @@ IPresentation,

OriginalVerifiableCredential,
OriginalVerifiablePresentation,
OriginalVerifiablePresentation, PresentationFormat,
WrappedVerifiableCredential,

@@ -50,3 +49,3 @@ WrappedVerifiablePresentation,

const type = isJwtEncoded ? OriginalType.JWT_ENCODED : isJwtDecoded ? OriginalType.JWT_DECODED : OriginalType.JSONLD
const format: ClaimFormat = isJwtDecoded || isJwtEncoded ? 'jwt_vp' : 'ldp_vp'
const format: PresentationFormat = isJwtDecoded || isJwtEncoded ? 'jwt_vp' : 'ldp_vp'
const decoded = CredentialMapper.decodeVerifiablePresentation(original)

@@ -53,0 +52,0 @@ const vp: IPresentation =

@@ -127,3 +127,3 @@ import { PresentationSubmission } from './pex'

*/
format: ClaimFormat
format: CredentialFormat
/**

@@ -151,3 +151,3 @@ * Internal stable representation of a Credential without Proofs, created based on https://www.w3.org/TR/vc-data-model/#jwt-decoding

*/
format: ClaimFormat
format: PresentationFormat
/**

@@ -199,3 +199,5 @@ * Internal stable representation of a Presentation without proofs, created based on https://www.w3.org/TR/vc-data-model/#jwt-decoding

export type ClaimFormat = 'jwt' | 'jwt_vc' | 'jwt_vp' | 'ldp' | 'ldp_vc' | 'ldp_vp' | string
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

@@ -202,0 +204,0 @@ export type OriginalVerifiableCredential = W3CVerifiableCredential | JwtDecodedVerifiableCredential

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