@credo-ts/core
Version:
<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1
1 lines • 13.2 kB
Source Map (JSON)
{"version":3,"file":"credentials_v2.mjs","names":[],"sources":["../../../../../src/modules/vc/jsonld/contexts/credentials_v2.ts"],"sourcesContent":["export const CREDENTIALS_V2 = {\n '@context': {\n '@protected': true,\n id: '@id',\n type: '@type',\n description: 'https://schema.org/description',\n digestMultibase: {\n '@id': 'https://w3id.org/security#digestMultibase',\n '@type': 'https://w3id.org/security#multibase',\n },\n digestSRI: {\n '@id': 'https://www.w3.org/2018/credentials#digestSRI',\n '@type': 'https://www.w3.org/2018/credentials#sriString',\n },\n mediaType: {\n '@id': 'https://schema.org/encodingFormat',\n },\n name: 'https://schema.org/name',\n VerifiableCredential: {\n '@id': 'https://www.w3.org/2018/credentials#VerifiableCredential',\n '@context': {\n '@protected': true,\n id: '@id',\n type: '@type',\n confidenceMethod: {\n '@id': 'https://www.w3.org/2018/credentials#confidenceMethod',\n '@type': '@id',\n },\n credentialSchema: {\n '@id': 'https://www.w3.org/2018/credentials#credentialSchema',\n '@type': '@id',\n },\n credentialStatus: {\n '@id': 'https://www.w3.org/2018/credentials#credentialStatus',\n '@type': '@id',\n },\n credentialSubject: {\n '@id': 'https://www.w3.org/2018/credentials#credentialSubject',\n '@type': '@id',\n },\n description: 'https://schema.org/description',\n evidence: {\n '@id': 'https://www.w3.org/2018/credentials#evidence',\n '@type': '@id',\n },\n issuer: {\n '@id': 'https://www.w3.org/2018/credentials#issuer',\n '@type': '@id',\n },\n name: 'https://schema.org/name',\n proof: {\n '@id': 'https://w3id.org/security#proof',\n '@type': '@id',\n '@container': '@graph',\n },\n refreshService: {\n '@id': 'https://www.w3.org/2018/credentials#refreshService',\n '@type': '@id',\n },\n relatedResource: {\n '@id': 'https://www.w3.org/2018/credentials#relatedResource',\n '@type': '@id',\n },\n renderMethod: {\n '@id': 'https://www.w3.org/2018/credentials#renderMethod',\n '@type': '@id',\n },\n termsOfUse: {\n '@id': 'https://www.w3.org/2018/credentials#termsOfUse',\n '@type': '@id',\n },\n validFrom: {\n '@id': 'https://www.w3.org/2018/credentials#validFrom',\n '@type': 'http://www.w3.org/2001/XMLSchema#dateTime',\n },\n validUntil: {\n '@id': 'https://www.w3.org/2018/credentials#validUntil',\n '@type': 'http://www.w3.org/2001/XMLSchema#dateTime',\n },\n },\n },\n EnvelopedVerifiableCredential: 'https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential',\n VerifiablePresentation: {\n '@id': 'https://www.w3.org/2018/credentials#VerifiablePresentation',\n '@context': {\n '@protected': true,\n id: '@id',\n type: '@type',\n holder: {\n '@id': 'https://www.w3.org/2018/credentials#holder',\n '@type': '@id',\n },\n proof: {\n '@id': 'https://w3id.org/security#proof',\n '@type': '@id',\n '@container': '@graph',\n },\n termsOfUse: {\n '@id': 'https://www.w3.org/2018/credentials#termsOfUse',\n '@type': '@id',\n },\n verifiableCredential: {\n '@id': 'https://www.w3.org/2018/credentials#verifiableCredential',\n '@type': '@id',\n '@container': '@graph',\n '@context': null,\n },\n },\n },\n EnvelopedVerifiablePresentation: 'https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation',\n JsonSchemaCredential: 'https://www.w3.org/2018/credentials#JsonSchemaCredential',\n JsonSchema: {\n '@id': 'https://www.w3.org/2018/credentials#JsonSchema',\n '@context': {\n '@protected': true,\n id: '@id',\n type: '@type',\n jsonSchema: {\n '@id': 'https://www.w3.org/2018/credentials#jsonSchema',\n '@type': '@json',\n },\n },\n },\n BitstringStatusListCredential: 'https://www.w3.org/ns/credentials/status#BitstringStatusListCredential',\n BitstringStatusList: {\n '@id': 'https://www.w3.org/ns/credentials/status#BitstringStatusList',\n '@context': {\n '@protected': true,\n id: '@id',\n type: '@type',\n encodedList: {\n '@id': 'https://www.w3.org/ns/credentials/status#encodedList',\n '@type': 'https://w3id.org/security#multibase',\n },\n statusPurpose: 'https://www.w3.org/ns/credentials/status#statusPurpose',\n ttl: 'https://www.w3.org/ns/credentials/status#ttl',\n },\n },\n BitstringStatusListEntry: {\n '@id': 'https://www.w3.org/ns/credentials/status#BitstringStatusListEntry',\n '@context': {\n '@protected': true,\n id: '@id',\n type: '@type',\n statusListCredential: {\n '@id': 'https://www.w3.org/ns/credentials/status#statusListCredential',\n '@type': '@id',\n },\n statusListIndex: 'https://www.w3.org/ns/credentials/status#statusListIndex',\n statusPurpose: 'https://www.w3.org/ns/credentials/status#statusPurpose',\n statusMessage: {\n '@id': 'https://www.w3.org/ns/credentials/status#statusMessage',\n '@context': {\n '@protected': true,\n id: '@id',\n type: '@type',\n message: 'https://www.w3.org/ns/credentials/status#message',\n status: 'https://www.w3.org/ns/credentials/status#status',\n },\n },\n statusReference: {\n '@id': 'https://www.w3.org/ns/credentials/status#statusReference',\n '@type': '@id',\n },\n statusSize: {\n '@id': 'https://www.w3.org/ns/credentials/status#statusSize',\n '@type': 'https://www.w3.org/2001/XMLSchema#integer',\n },\n },\n },\n DataIntegrityProof: {\n '@id': 'https://w3id.org/security#DataIntegrityProof',\n '@context': {\n '@protected': true,\n id: '@id',\n type: '@type',\n challenge: 'https://w3id.org/security#challenge',\n created: {\n '@id': 'http://purl.org/dc/terms/created',\n '@type': 'http://www.w3.org/2001/XMLSchema#dateTime',\n },\n cryptosuite: {\n '@id': 'https://w3id.org/security#cryptosuite',\n '@type': 'https://w3id.org/security#cryptosuiteString',\n },\n domain: 'https://w3id.org/security#domain',\n expires: {\n '@id': 'https://w3id.org/security#expiration',\n '@type': 'http://www.w3.org/2001/XMLSchema#dateTime',\n },\n nonce: 'https://w3id.org/security#nonce',\n previousProof: {\n '@id': 'https://w3id.org/security#previousProof',\n '@type': '@id',\n },\n proofPurpose: {\n '@id': 'https://w3id.org/security#proofPurpose',\n '@type': '@vocab',\n '@context': {\n '@protected': true,\n id: '@id',\n type: '@type',\n assertionMethod: {\n '@id': 'https://w3id.org/security#assertionMethod',\n '@type': '@id',\n '@container': '@set',\n },\n authentication: {\n '@id': 'https://w3id.org/security#authenticationMethod',\n '@type': '@id',\n '@container': '@set',\n },\n capabilityDelegation: {\n '@id': 'https://w3id.org/security#capabilityDelegationMethod',\n '@type': '@id',\n '@container': '@set',\n },\n capabilityInvocation: {\n '@id': 'https://w3id.org/security#capabilityInvocationMethod',\n '@type': '@id',\n '@container': '@set',\n },\n keyAgreement: {\n '@id': 'https://w3id.org/security#keyAgreementMethod',\n '@type': '@id',\n '@container': '@set',\n },\n },\n },\n proofValue: {\n '@id': 'https://w3id.org/security#proofValue',\n '@type': 'https://w3id.org/security#multibase',\n },\n verificationMethod: {\n '@id': 'https://w3id.org/security#verificationMethod',\n '@type': '@id',\n },\n },\n },\n '...': {\n '@id': 'https://www.iana.org/assignments/jwt#...',\n },\n _sd: {\n '@id': 'https://www.iana.org/assignments/jwt#_sd',\n '@type': '@json',\n },\n _sd_alg: {\n '@id': 'https://www.iana.org/assignments/jwt#_sd_alg',\n },\n aud: {\n '@id': 'https://www.iana.org/assignments/jwt#aud',\n '@type': '@id',\n },\n cnf: {\n '@id': 'https://www.iana.org/assignments/jwt#cnf',\n '@context': {\n '@protected': true,\n kid: {\n '@id': 'https://www.iana.org/assignments/jwt#kid',\n '@type': '@id',\n },\n jwk: {\n '@id': 'https://www.iana.org/assignments/jwt#jwk',\n '@type': '@json',\n },\n },\n },\n exp: {\n '@id': 'https://www.iana.org/assignments/jwt#exp',\n '@type': 'https://www.w3.org/2001/XMLSchema#nonNegativeInteger',\n },\n iat: {\n '@id': 'https://www.iana.org/assignments/jwt#iat',\n '@type': 'https://www.w3.org/2001/XMLSchema#nonNegativeInteger',\n },\n iss: {\n '@id': 'https://www.iana.org/assignments/jose#iss',\n '@type': '@id',\n },\n jku: {\n '@id': 'https://www.iana.org/assignments/jose#jku',\n '@type': '@id',\n },\n kid: {\n '@id': 'https://www.iana.org/assignments/jose#kid',\n '@type': '@id',\n },\n nbf: {\n '@id': 'https://www.iana.org/assignments/jwt#nbf',\n '@type': 'https://www.w3.org/2001/XMLSchema#nonNegativeInteger',\n },\n sub: {\n '@id': 'https://www.iana.org/assignments/jose#sub',\n '@type': '@id',\n },\n x5u: {\n '@id': 'https://www.iana.org/assignments/jose#x5u',\n '@type': '@id',\n },\n },\n}\n"],"mappings":";AAAA,MAAa,iBAAiB,EAC5B,YAAY;CACV,cAAc;CACd,IAAI;CACJ,MAAM;CACN,aAAa;CACb,iBAAiB;EACf,OAAO;EACP,SAAS;CACX;CACA,WAAW;EACT,OAAO;EACP,SAAS;CACX;CACA,WAAW,EACT,OAAO,oCACT;CACA,MAAM;CACN,sBAAsB;EACpB,OAAO;EACP,YAAY;GACV,cAAc;GACd,IAAI;GACJ,MAAM;GACN,kBAAkB;IAChB,OAAO;IACP,SAAS;GACX;GACA,kBAAkB;IAChB,OAAO;IACP,SAAS;GACX;GACA,kBAAkB;IAChB,OAAO;IACP,SAAS;GACX;GACA,mBAAmB;IACjB,OAAO;IACP,SAAS;GACX;GACA,aAAa;GACb,UAAU;IACR,OAAO;IACP,SAAS;GACX;GACA,QAAQ;IACN,OAAO;IACP,SAAS;GACX;GACA,MAAM;GACN,OAAO;IACL,OAAO;IACP,SAAS;IACT,cAAc;GAChB;GACA,gBAAgB;IACd,OAAO;IACP,SAAS;GACX;GACA,iBAAiB;IACf,OAAO;IACP,SAAS;GACX;GACA,cAAc;IACZ,OAAO;IACP,SAAS;GACX;GACA,YAAY;IACV,OAAO;IACP,SAAS;GACX;GACA,WAAW;IACT,OAAO;IACP,SAAS;GACX;GACA,YAAY;IACV,OAAO;IACP,SAAS;GACX;EACF;CACF;CACA,+BAA+B;CAC/B,wBAAwB;EACtB,OAAO;EACP,YAAY;GACV,cAAc;GACd,IAAI;GACJ,MAAM;GACN,QAAQ;IACN,OAAO;IACP,SAAS;GACX;GACA,OAAO;IACL,OAAO;IACP,SAAS;IACT,cAAc;GAChB;GACA,YAAY;IACV,OAAO;IACP,SAAS;GACX;GACA,sBAAsB;IACpB,OAAO;IACP,SAAS;IACT,cAAc;IACd,YAAY;GACd;EACF;CACF;CACA,iCAAiC;CACjC,sBAAsB;CACtB,YAAY;EACV,OAAO;EACP,YAAY;GACV,cAAc;GACd,IAAI;GACJ,MAAM;GACN,YAAY;IACV,OAAO;IACP,SAAS;GACX;EACF;CACF;CACA,+BAA+B;CAC/B,qBAAqB;EACnB,OAAO;EACP,YAAY;GACV,cAAc;GACd,IAAI;GACJ,MAAM;GACN,aAAa;IACX,OAAO;IACP,SAAS;GACX;GACA,eAAe;GACf,KAAK;EACP;CACF;CACA,0BAA0B;EACxB,OAAO;EACP,YAAY;GACV,cAAc;GACd,IAAI;GACJ,MAAM;GACN,sBAAsB;IACpB,OAAO;IACP,SAAS;GACX;GACA,iBAAiB;GACjB,eAAe;GACf,eAAe;IACb,OAAO;IACP,YAAY;KACV,cAAc;KACd,IAAI;KACJ,MAAM;KACN,SAAS;KACT,QAAQ;IACV;GACF;GACA,iBAAiB;IACf,OAAO;IACP,SAAS;GACX;GACA,YAAY;IACV,OAAO;IACP,SAAS;GACX;EACF;CACF;CACA,oBAAoB;EAClB,OAAO;EACP,YAAY;GACV,cAAc;GACd,IAAI;GACJ,MAAM;GACN,WAAW;GACX,SAAS;IACP,OAAO;IACP,SAAS;GACX;GACA,aAAa;IACX,OAAO;IACP,SAAS;GACX;GACA,QAAQ;GACR,SAAS;IACP,OAAO;IACP,SAAS;GACX;GACA,OAAO;GACP,eAAe;IACb,OAAO;IACP,SAAS;GACX;GACA,cAAc;IACZ,OAAO;IACP,SAAS;IACT,YAAY;KACV,cAAc;KACd,IAAI;KACJ,MAAM;KACN,iBAAiB;MACf,OAAO;MACP,SAAS;MACT,cAAc;KAChB;KACA,gBAAgB;MACd,OAAO;MACP,SAAS;MACT,cAAc;KAChB;KACA,sBAAsB;MACpB,OAAO;MACP,SAAS;MACT,cAAc;KAChB;KACA,sBAAsB;MACpB,OAAO;MACP,SAAS;MACT,cAAc;KAChB;KACA,cAAc;MACZ,OAAO;MACP,SAAS;MACT,cAAc;KAChB;IACF;GACF;GACA,YAAY;IACV,OAAO;IACP,SAAS;GACX;GACA,oBAAoB;IAClB,OAAO;IACP,SAAS;GACX;EACF;CACF;CACA,OAAO,EACL,OAAO,2CACT;CACA,KAAK;EACH,OAAO;EACP,SAAS;CACX;CACA,SAAS,EACP,OAAO,+CACT;CACA,KAAK;EACH,OAAO;EACP,SAAS;CACX;CACA,KAAK;EACH,OAAO;EACP,YAAY;GACV,cAAc;GACd,KAAK;IACH,OAAO;IACP,SAAS;GACX;GACA,KAAK;IACH,OAAO;IACP,SAAS;GACX;EACF;CACF;CACA,KAAK;EACH,OAAO;EACP,SAAS;CACX;CACA,KAAK;EACH,OAAO;EACP,SAAS;CACX;CACA,KAAK;EACH,OAAO;EACP,SAAS;CACX;CACA,KAAK;EACH,OAAO;EACP,SAAS;CACX;CACA,KAAK;EACH,OAAO;EACP,SAAS;CACX;CACA,KAAK;EACH,OAAO;EACP,SAAS;CACX;CACA,KAAK;EACH,OAAO;EACP,SAAS;CACX;CACA,KAAK;EACH,OAAO;EACP,SAAS;CACX;AACF,EACF"}