@credo-ts/core 0.6.0 → 0.6.1-alpha-20251205115504
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.mts +1 -1
- package/build/modules/dif-presentation-exchange/DifPresentationExchangeService.d.mts.map +1 -1
- package/build/modules/dif-presentation-exchange/utils/presentationSelection.d.mts +1 -1
- package/build/modules/vc/data-integrity/libraries/contexts/defaultContexts.mjs +3 -1
- package/build/modules/vc/data-integrity/libraries/contexts/defaultContexts.mjs.map +1 -1
- package/build/modules/vc/data-integrity/libraries/contexts/linkedvp_v1.mjs +12 -0
- package/build/modules/vc/data-integrity/libraries/contexts/linkedvp_v1.mjs.map +1 -0
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.mts +1 -1
- package/build/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.d.mts.map +1 -1
- package/build/utils/mixins.d.mts.map +1 -1
- package/package.json +1 -1
|
@@ -53,7 +53,7 @@ declare class DifPresentationExchangeService {
|
|
|
53
53
|
*/
|
|
54
54
|
mdocSessionTranscript?: MdocSessionTranscriptOptions;
|
|
55
55
|
}): Promise<{
|
|
56
|
-
verifiablePresentations: (
|
|
56
|
+
verifiablePresentations: (SdJwtVc<SdJwtVcHeader, SdJwtVcPayload> | W3cJwtVerifiablePresentation | W3cJsonLdVerifiablePresentation | MdocDeviceResponse)[];
|
|
57
57
|
encodedVerifiablePresentations: (string | W3cJsonPresentation)[];
|
|
58
58
|
presentationSubmission: _sphereon_pex_models0.PresentationSubmission;
|
|
59
59
|
presentationSubmissionLocation: PresentationSubmissionLocation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DifPresentationExchangeService.d.mts","names":[],"sources":["../../../src/modules/dif-presentation-exchange/DifPresentationExchangeService.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;cA2Da,8BAAA;;;oCAGsC;yCAGjC,sCACU,oCACvB,QAAQ;;;;;qDAUc,8BACtB;EAnBQ,8BAAA,CAAA,sBAA8B,EAyCqB,iCAzCrB,CAAA,EAAA,IAAA;EAGQ,8BAAA,CAAA,sBAAA,EA+Ca,iCA/Cb,CAAA,EAAA,IAAA;EAGjC,oBAAA,CAAA,sBAAA,EAqDU,iCArDV,EAAA,aAAA,EAsDC,sBAtDD,GAsD0B,sBAtD1B,EAAA,EAAA,sBAAA,CAAA,EAuDW,iCAvDX,CAAA,EAAA,IAAA;EACU,QAAA,eAAA;EACf,kBAAA,CAAA,YAAA,EAiFK,YAjFL,EAAA,OAAA,EAAA;IAAR,6BAAA,EAmFgC,kCAnFhC;IAUsB,sBAAA,EA0EG,iCA1EH;IACtB;;;IAwCuB,8BAAA,CAAA,EAqCW,8BArCX;IACT;;;IA6BD,SAAA,EAAA,MAAA;IAEmB;;;IAmBP,MAAA,CAAA,EAAA,MAAA;IAA4B;;;4BAA5B;MACzB;
|
|
1
|
+
{"version":3,"file":"DifPresentationExchangeService.d.mts","names":[],"sources":["../../../src/modules/dif-presentation-exchange/DifPresentationExchangeService.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;cA2Da,8BAAA;;;oCAGsC;yCAGjC,sCACU,oCACvB,QAAQ;;;;;qDAUc,8BACtB;EAnBQ,8BAAA,CAAA,sBAA8B,EAyCqB,iCAzCrB,CAAA,EAAA,IAAA;EAGQ,8BAAA,CAAA,sBAAA,EA+Ca,iCA/Cb,CAAA,EAAA,IAAA;EAGjC,oBAAA,CAAA,sBAAA,EAqDU,iCArDV,EAAA,aAAA,EAsDC,sBAtDD,GAsD0B,sBAtD1B,EAAA,EAAA,sBAAA,CAAA,EAuDW,iCAvDX,CAAA,EAAA,IAAA;EACU,QAAA,eAAA;EACf,kBAAA,CAAA,YAAA,EAiFK,YAjFL,EAAA,OAAA,EAAA;IAAR,6BAAA,EAmFgC,kCAnFhC;IAUsB,sBAAA,EA0EG,iCA1EH;IACtB;;;IAwCuB,8BAAA,CAAA,EAqCW,8BArCX;IACT;;;IA6BD,SAAA,EAAA,MAAA;IAEmB;;;IAmBP,MAAA,CAAA,EAAA,MAAA;IAA4B;;;4BAA5B;MACzB;sCADqD,aAAA;;;;EACrD,CAAA,CAAA;EAAA,QAAA,yCAAA"}
|
|
@@ -26,7 +26,7 @@ declare function extractPresentationsWithDescriptorsFromSubmission(presentations
|
|
|
26
26
|
readonly claimFormat: ClaimFormat.JwtVp | ClaimFormat.LdpVp;
|
|
27
27
|
readonly descriptor: _sphereon_pex_models20.Descriptor;
|
|
28
28
|
readonly presentation: W3cJwtVerifiablePresentation | W3cJsonLdVerifiablePresentation;
|
|
29
|
-
readonly credential:
|
|
29
|
+
readonly credential: W3cJsonLdVerifiableCredential | W3cJwtVerifiableCredential;
|
|
30
30
|
readonly inputDescriptor: _sphereon_pex_models20.InputDescriptorV1 | _sphereon_pex_models20.InputDescriptorV2;
|
|
31
31
|
} | {
|
|
32
32
|
readonly claimFormat: ClaimFormat.SdJwtDc;
|
|
@@ -4,6 +4,7 @@ import { CREDENTIALS_V1 } from "./credentials_v1.mjs";
|
|
|
4
4
|
import { DATA_INTEGRITY_V2 } from "./dataIntegrity_v2.mjs";
|
|
5
5
|
import { DID_V1 } from "./did_v1.mjs";
|
|
6
6
|
import { ED25519_V1 } from "./ed25519_v1.mjs";
|
|
7
|
+
import { LINKED_VP_V1 } from "./linkedvp_v1.mjs";
|
|
7
8
|
import { ODRL } from "./odrl.mjs";
|
|
8
9
|
import { PURL_OB_V3P0 } from "./purl_ob_v3po.mjs";
|
|
9
10
|
import { SCHEMA_ORG } from "./schema_org.mjs";
|
|
@@ -30,7 +31,8 @@ const DEFAULT_CONTEXTS = {
|
|
|
30
31
|
"https://identity.foundation/presentation-exchange/submission/v1": PRESENTATION_SUBMISSION,
|
|
31
32
|
"https://purl.imsglobal.org/spec/ob/v3p0/context.json": PURL_OB_V3P0,
|
|
32
33
|
"https://w3c-ccg.github.io/vc-status-rl-2020/contexts/vc-revocation-list-2020/v1.jsonld": VC_REVOCATION_LIST_2020,
|
|
33
|
-
"https://w3id.org/security/data-integrity/v2": DATA_INTEGRITY_V2
|
|
34
|
+
"https://w3id.org/security/data-integrity/v2": DATA_INTEGRITY_V2,
|
|
35
|
+
"https://identity.foundation/linked-vp/contexts/v1": LINKED_VP_V1
|
|
34
36
|
};
|
|
35
37
|
|
|
36
38
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultContexts.mjs","names":[],"sources":["../../../../../../src/modules/vc/data-integrity/libraries/contexts/defaultContexts.ts"],"sourcesContent":["import { CREDENTIALS_V1 } from './credentials_v1'\nimport { DATA_INTEGRITY_V2 } from './dataIntegrity_v2'\nimport { DID_V1 } from './did_v1'\nimport { ED25519_V1 } from './ed25519_v1'\nimport { ODRL } from './odrl'\nimport { PURL_OB_V3P0 } from './purl_ob_v3po'\nimport { SCHEMA_ORG } from './schema_org'\nimport { SECP256K1_V1 } from './secp256k1_v1'\nimport { SECURITY_V1 } from './security_v1'\nimport { SECURITY_V2 } from './security_v2'\nimport { PRESENTATION_SUBMISSION } from './submission'\nimport { VC_REVOCATION_LIST_2020 } from './vc_revocation_list_2020'\nimport { X25519_V1 } from './X25519_v1'\n\nexport const DEFAULT_CONTEXTS = {\n 'https://w3id.org/security/v1': SECURITY_V1,\n 'https://w3id.org/security/v2': SECURITY_V2,\n 'https://w3id.org/security/suites/x25519-2019/v1': X25519_V1,\n 'https://w3id.org/security/suites/ed25519-2018/v1': ED25519_V1,\n 'https://w3id.org/security/suites/secp256k1-2019/v1': SECP256K1_V1,\n 'https://www.w3.org/2018/credentials/v1': CREDENTIALS_V1,\n 'https://w3id.org/did/v1': DID_V1,\n 'https://www.w3.org/ns/did/v1': DID_V1,\n 'https://w3.org/ns/did/v1': DID_V1,\n 'https://www.w3.org/ns/odrl.jsonld': ODRL,\n 'http://schema.org/': SCHEMA_ORG,\n 'https://identity.foundation/presentation-exchange/submission/v1': PRESENTATION_SUBMISSION,\n 'https://purl.imsglobal.org/spec/ob/v3p0/context.json': PURL_OB_V3P0,\n 'https://w3c-ccg.github.io/vc-status-rl-2020/contexts/vc-revocation-list-2020/v1.jsonld': VC_REVOCATION_LIST_2020,\n 'https://w3id.org/security/data-integrity/v2': DATA_INTEGRITY_V2,\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"defaultContexts.mjs","names":[],"sources":["../../../../../../src/modules/vc/data-integrity/libraries/contexts/defaultContexts.ts"],"sourcesContent":["import { CREDENTIALS_V1 } from './credentials_v1'\nimport { DATA_INTEGRITY_V2 } from './dataIntegrity_v2'\nimport { DID_V1 } from './did_v1'\nimport { ED25519_V1 } from './ed25519_v1'\nimport { LINKED_VP_V1 } from './linkedvp_v1'\nimport { ODRL } from './odrl'\nimport { PURL_OB_V3P0 } from './purl_ob_v3po'\nimport { SCHEMA_ORG } from './schema_org'\nimport { SECP256K1_V1 } from './secp256k1_v1'\nimport { SECURITY_V1 } from './security_v1'\nimport { SECURITY_V2 } from './security_v2'\nimport { PRESENTATION_SUBMISSION } from './submission'\nimport { VC_REVOCATION_LIST_2020 } from './vc_revocation_list_2020'\nimport { X25519_V1 } from './X25519_v1'\n\nexport const DEFAULT_CONTEXTS = {\n 'https://w3id.org/security/v1': SECURITY_V1,\n 'https://w3id.org/security/v2': SECURITY_V2,\n 'https://w3id.org/security/suites/x25519-2019/v1': X25519_V1,\n 'https://w3id.org/security/suites/ed25519-2018/v1': ED25519_V1,\n 'https://w3id.org/security/suites/secp256k1-2019/v1': SECP256K1_V1,\n 'https://www.w3.org/2018/credentials/v1': CREDENTIALS_V1,\n 'https://w3id.org/did/v1': DID_V1,\n 'https://www.w3.org/ns/did/v1': DID_V1,\n 'https://w3.org/ns/did/v1': DID_V1,\n 'https://www.w3.org/ns/odrl.jsonld': ODRL,\n 'http://schema.org/': SCHEMA_ORG,\n 'https://identity.foundation/presentation-exchange/submission/v1': PRESENTATION_SUBMISSION,\n 'https://purl.imsglobal.org/spec/ob/v3p0/context.json': PURL_OB_V3P0,\n 'https://w3c-ccg.github.io/vc-status-rl-2020/contexts/vc-revocation-list-2020/v1.jsonld': VC_REVOCATION_LIST_2020,\n 'https://w3id.org/security/data-integrity/v2': DATA_INTEGRITY_V2,\n 'https://identity.foundation/linked-vp/contexts/v1': LINKED_VP_V1,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAeA,MAAa,mBAAmB;CAC9B,gCAAgC;CAChC,gCAAgC;CAChC,mDAAmD;CACnD,oDAAoD;CACpD,sDAAsD;CACtD,0CAA0C;CAC1C,2BAA2B;CAC3B,gCAAgC;CAChC,4BAA4B;CAC5B,qCAAqC;CACrC,sBAAsB;CACtB,mEAAmE;CACnE,wDAAwD;CACxD,0FAA0F;CAC1F,+CAA+C;CAC/C,qDAAqD;CACtD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
//#region src/modules/vc/data-integrity/libraries/contexts/linkedvp_v1.ts
|
|
4
|
+
const LINKED_VP_V1 = { "@context": [{
|
|
5
|
+
"@version": 1.1,
|
|
6
|
+
"@protected": true,
|
|
7
|
+
LinkedVerifiablePresentation: "https://identity.foundation/linked-vp/contexts/v1#LinkedVerifiablePresentation"
|
|
8
|
+
}] };
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { LINKED_VP_V1 };
|
|
12
|
+
//# sourceMappingURL=linkedvp_v1.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkedvp_v1.mjs","names":[],"sources":["../../../../../../src/modules/vc/data-integrity/libraries/contexts/linkedvp_v1.ts"],"sourcesContent":["export const LINKED_VP_V1 = {\n '@context': [\n {\n '@version': 1.1,\n '@protected': true,\n LinkedVerifiablePresentation: 'https://identity.foundation/linked-vp/contexts/v1#LinkedVerifiablePresentation',\n },\n ],\n}\n"],"mappings":";;;AAAA,MAAa,eAAe,EAC1B,YAAY,CACV;CACE,YAAY;CACZ,cAAc;CACd,8BAA8B;CAC/B,CACF,EACF"}
|
|
@@ -32,7 +32,7 @@ declare class W3cJwtVerifiablePresentation {
|
|
|
32
32
|
get id(): string | undefined;
|
|
33
33
|
get type(): string[];
|
|
34
34
|
get holder(): string | W3cHolder | undefined;
|
|
35
|
-
get verifiableCredential(): SingleOrArray<
|
|
35
|
+
get verifiableCredential(): SingleOrArray<W3cJsonLdVerifiableCredential | W3cJwtVerifiableCredential>;
|
|
36
36
|
get holderId(): string | null;
|
|
37
37
|
/**
|
|
38
38
|
* The {@link ClaimFormat} of the presentation. For JWT presentations this is always `jwt_vp`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"W3cJwtVerifiablePresentation.d.mts","names":[],"sources":["../../../../src/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;UAOiB,mCAAA;OACV;;cAGM,4BAAA;gBACU;;uBAGO;mDAMyB;;;;AAdvD;AAIA;;;;EA8B6B,IAAA,YAAA,CAAA,CAAA,EAAA,eAAA;EAAe,IAAA,aAAA,CAAA,CAAA,EAAA,MAAA;EAgBxB,IAAA,OAAA,CAAA,CAAA,EAAA,CAAA,MAAA,GAhBwB,UAgBxB,CAAA,EAAA;EAYD,IAAA,EAAA,CAAA,CAAA,EAAA,MAAA,GAAA,SAAA;EAIc,IAAA,IAAA,CAAA,CAAA,EAAA,MAAA,EAAA;EAAA,IAAA,MAAA,CAAA,CAAA,EAAA,MAAA,GAhBb,SAAA,GAgBa,SAAA;EAWL,IAAA,oBAAY,CAAA,CAAA,EAXP,aAWO,CAfrB,
|
|
1
|
+
{"version":3,"file":"W3cJwtVerifiablePresentation.d.mts","names":[],"sources":["../../../../src/modules/vc/jwt-vc/W3cJwtVerifiablePresentation.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;UAOiB,mCAAA;OACV;;cAGM,4BAAA;gBACU;;uBAGO;mDAMyB;;;;AAdvD;AAIA;;;;EA8B6B,IAAA,YAAA,CAAA,CAAA,EAAA,eAAA;EAAe,IAAA,aAAA,CAAA,CAAA,EAAA,MAAA;EAgBxB,IAAA,OAAA,CAAA,CAAA,EAAA,CAAA,MAAA,GAhBwB,UAgBxB,CAAA,EAAA;EAYD,IAAA,EAAA,CAAA,CAAA,EAAA,MAAA,GAAA,SAAA;EAIc,IAAA,IAAA,CAAA,CAAA,EAAA,MAAA,EAAA;EAAA,IAAA,MAAA,CAAA,CAAA,EAAA,MAAA,GAhBb,SAAA,GAgBa,SAAA;EAWL,IAAA,oBAAY,CAAA,CAAA,EAXP,aAWO,CAfrB,6BAAA,GAIc,0BAWO,CAAA;EAAK,IAAA,QAAA,CAAA,CAAA,EAAA,MAAA,GAAA,IAAA;;;;qBAAjB,WAAA,CAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mixins.d.mts","names":[],"sources":["../../src/utils/mixins.ts"],"sourcesContent":[],"mappings":";KAKY,8CAA8C;KAI9C,4DAA4D,mBAAmB,sBAAsB;AAJrG,KAQA,
|
|
1
|
+
{"version":3,"file":"mixins.d.mts","names":[],"sources":["../../src/utils/mixins.ts"],"sourcesContent":[],"mappings":";KAKY,8CAA8C;KAI9C,4DAA4D,mBAAmB,sBAAsB;AAJrG,KAQA,mBAR8C,CAAA,CAAC,CAAA,GAAA,CAQrB,CARqB,SAAA,GAAA,GAAA,CAAA,CAAA,EAQD,CARC,EAAA,GAAA,IAAA,GAAA,KAAA,CAAA,UAAA,CAAA,CAAA,EAAA,KAAA,EAAA,EAAA,GAAA,IAAA,IAQkD,CARlD,GAAA,KAAA"}
|