@sphereon/ssi-sdk.credential-vcdm 0.34.1-feature.disable.test.8 → 0.34.1-next.29
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/dist/index.d.cts +12 -2
- package/dist/index.d.ts +12 -2
- package/package.json +7 -6
- package/src/types.ts +14 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IPluginMethodMap, PresentationPayload, IAgentContext, IResolver, IDIDManager, IKeyManager, CredentialPayload, VerificationPolicies, IKey, ICredentialVerifier, IAgentPlugin, IIdentifier, W3CVerifiableCredential as W3CVerifiableCredential$1, W3CVerifiablePresentation as W3CVerifiablePresentation$1, VerifiableCredential, ICredentialStatusVerifier } from '@veramo/core';
|
|
2
2
|
export { ICredentialIssuer, ICredentialVerifier } from '@veramo/core';
|
|
3
3
|
import { VerifiablePresentationSP, VerifiableCredentialSP } from '@sphereon/ssi-sdk.core';
|
|
4
|
-
import {
|
|
4
|
+
import { StatusListOpts } from '@sphereon/oid4vci-common';
|
|
5
5
|
import { OriginalVerifiableCredential, ICredential, IVerifyResult, W3CVerifiablePresentation, W3CVerifiableCredential } from '@sphereon/ssi-types';
|
|
6
|
+
import { DataSource } from 'typeorm';
|
|
6
7
|
import { AbstractMessageHandler, Message } from '@veramo/message-handler';
|
|
7
8
|
import { _ExtendedIKey } from '@veramo/utils';
|
|
8
9
|
|
|
@@ -81,6 +82,15 @@ interface ICreateVerifiablePresentationLDArgs {
|
|
|
81
82
|
*/
|
|
82
83
|
now?: Date | number;
|
|
83
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Statuslist credential options, cloned from packages/vc-status-list/src/types/index.ts to break cyclic dependency loop
|
|
87
|
+
*/
|
|
88
|
+
interface IIssueCredentialStatusOpts {
|
|
89
|
+
dataSource?: DataSource;
|
|
90
|
+
statusLists?: Array<StatusListOpts>;
|
|
91
|
+
credentialId?: string;
|
|
92
|
+
value?: string;
|
|
93
|
+
}
|
|
84
94
|
/**
|
|
85
95
|
* Encapsulates the parameters required to create a
|
|
86
96
|
* {@link https://www.w3.org/TR/vc-data-model/#credentials | W3C Verifiable Credential}
|
|
@@ -561,4 +571,4 @@ declare function preProcessPresentation(args: ICreateVerifiablePresentationLDArg
|
|
|
561
571
|
*/
|
|
562
572
|
declare const CredentialIssuer: typeof VcdmCredentialPlugin;
|
|
563
573
|
|
|
564
|
-
export { type ContextDoc, CredentialIssuer, type IAssertionProofPurpose, type IAuthenticationProofPurpose, type ICanIssueCredentialTypeArgs, type ICanVerifyDocumentTypeArgs, type IControllerProofPurpose, type ICreateVerifiableCredentialLDArgs, type ICreateVerifiablePresentationLDArgs, type IProofPurpose, type IVcdmCredentialIssuer, type IVcdmCredentialPlugin, type IVcdmCredentialProvider, type IVcdmCredentialVerifier, type IVcdmIssuerAgentContext, type IVcdmVerifierAgentContext, type IVerifyCredentialVcdmArgs, type IVerifyPresentationLDArgs, MessageTypes, type StatusListCheck, VcdmCredentialPlugin, W3cMessageHandler, extractIssuer, isRevoked, pickSigningKey, preProcessCredentialPayload, preProcessPresentation, removeDIDParameters };
|
|
574
|
+
export { type ContextDoc, CredentialIssuer, type IAssertionProofPurpose, type IAuthenticationProofPurpose, type ICanIssueCredentialTypeArgs, type ICanVerifyDocumentTypeArgs, type IControllerProofPurpose, type ICreateVerifiableCredentialLDArgs, type ICreateVerifiablePresentationLDArgs, type IIssueCredentialStatusOpts, type IProofPurpose, type IVcdmCredentialIssuer, type IVcdmCredentialPlugin, type IVcdmCredentialProvider, type IVcdmCredentialVerifier, type IVcdmIssuerAgentContext, type IVcdmVerifierAgentContext, type IVerifyCredentialVcdmArgs, type IVerifyPresentationLDArgs, MessageTypes, type StatusListCheck, VcdmCredentialPlugin, W3cMessageHandler, extractIssuer, isRevoked, pickSigningKey, preProcessCredentialPayload, preProcessPresentation, removeDIDParameters };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IPluginMethodMap, PresentationPayload, IAgentContext, IResolver, IDIDManager, IKeyManager, CredentialPayload, VerificationPolicies, IKey, ICredentialVerifier, IAgentPlugin, IIdentifier, W3CVerifiableCredential as W3CVerifiableCredential$1, W3CVerifiablePresentation as W3CVerifiablePresentation$1, VerifiableCredential, ICredentialStatusVerifier } from '@veramo/core';
|
|
2
2
|
export { ICredentialIssuer, ICredentialVerifier } from '@veramo/core';
|
|
3
3
|
import { VerifiablePresentationSP, VerifiableCredentialSP } from '@sphereon/ssi-sdk.core';
|
|
4
|
-
import {
|
|
4
|
+
import { StatusListOpts } from '@sphereon/oid4vci-common';
|
|
5
5
|
import { OriginalVerifiableCredential, ICredential, IVerifyResult, W3CVerifiablePresentation, W3CVerifiableCredential } from '@sphereon/ssi-types';
|
|
6
|
+
import { DataSource } from 'typeorm';
|
|
6
7
|
import { AbstractMessageHandler, Message } from '@veramo/message-handler';
|
|
7
8
|
import { _ExtendedIKey } from '@veramo/utils';
|
|
8
9
|
|
|
@@ -81,6 +82,15 @@ interface ICreateVerifiablePresentationLDArgs {
|
|
|
81
82
|
*/
|
|
82
83
|
now?: Date | number;
|
|
83
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Statuslist credential options, cloned from packages/vc-status-list/src/types/index.ts to break cyclic dependency loop
|
|
87
|
+
*/
|
|
88
|
+
interface IIssueCredentialStatusOpts {
|
|
89
|
+
dataSource?: DataSource;
|
|
90
|
+
statusLists?: Array<StatusListOpts>;
|
|
91
|
+
credentialId?: string;
|
|
92
|
+
value?: string;
|
|
93
|
+
}
|
|
84
94
|
/**
|
|
85
95
|
* Encapsulates the parameters required to create a
|
|
86
96
|
* {@link https://www.w3.org/TR/vc-data-model/#credentials | W3C Verifiable Credential}
|
|
@@ -561,4 +571,4 @@ declare function preProcessPresentation(args: ICreateVerifiablePresentationLDArg
|
|
|
561
571
|
*/
|
|
562
572
|
declare const CredentialIssuer: typeof VcdmCredentialPlugin;
|
|
563
573
|
|
|
564
|
-
export { type ContextDoc, CredentialIssuer, type IAssertionProofPurpose, type IAuthenticationProofPurpose, type ICanIssueCredentialTypeArgs, type ICanVerifyDocumentTypeArgs, type IControllerProofPurpose, type ICreateVerifiableCredentialLDArgs, type ICreateVerifiablePresentationLDArgs, type IProofPurpose, type IVcdmCredentialIssuer, type IVcdmCredentialPlugin, type IVcdmCredentialProvider, type IVcdmCredentialVerifier, type IVcdmIssuerAgentContext, type IVcdmVerifierAgentContext, type IVerifyCredentialVcdmArgs, type IVerifyPresentationLDArgs, MessageTypes, type StatusListCheck, VcdmCredentialPlugin, W3cMessageHandler, extractIssuer, isRevoked, pickSigningKey, preProcessCredentialPayload, preProcessPresentation, removeDIDParameters };
|
|
574
|
+
export { type ContextDoc, CredentialIssuer, type IAssertionProofPurpose, type IAuthenticationProofPurpose, type ICanIssueCredentialTypeArgs, type ICanVerifyDocumentTypeArgs, type IControllerProofPurpose, type ICreateVerifiableCredentialLDArgs, type ICreateVerifiablePresentationLDArgs, type IIssueCredentialStatusOpts, type IProofPurpose, type IVcdmCredentialIssuer, type IVcdmCredentialPlugin, type IVcdmCredentialProvider, type IVcdmCredentialVerifier, type IVcdmIssuerAgentContext, type IVcdmVerifierAgentContext, type IVerifyCredentialVcdmArgs, type IVerifyPresentationLDArgs, MessageTypes, type StatusListCheck, VcdmCredentialPlugin, W3cMessageHandler, extractIssuer, isRevoked, pickSigningKey, preProcessCredentialPayload, preProcessPresentation, removeDIDParameters };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.credential-vcdm",
|
|
3
3
|
"description": "Plugin for working with W3C Verifiable Credentials DataModel 1 and 2 Credentials & Presentations.",
|
|
4
|
-
"version": "0.34.1-
|
|
4
|
+
"version": "0.34.1-next.29+2593a430",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.cjs",
|
|
@@ -30,10 +30,9 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@sphereon/ssi-sdk-ext.did-utils": "workspace:*",
|
|
32
32
|
"@sphereon/ssi-sdk-ext.key-utils": "workspace:*",
|
|
33
|
-
"@sphereon/ssi-sdk.agent-config": "0.34.1-
|
|
34
|
-
"@sphereon/ssi-sdk.core": "0.34.1-
|
|
35
|
-
"@sphereon/ssi-
|
|
36
|
-
"@sphereon/ssi-types": "0.34.1-feature.disable.test.8+4f707ea5",
|
|
33
|
+
"@sphereon/ssi-sdk.agent-config": "0.34.1-next.29+2593a430",
|
|
34
|
+
"@sphereon/ssi-sdk.core": "0.34.1-next.29+2593a430",
|
|
35
|
+
"@sphereon/ssi-types": "0.34.1-next.29+2593a430",
|
|
37
36
|
"@veramo/core": "4.2.0",
|
|
38
37
|
"@veramo/message-handler": "4.2.0",
|
|
39
38
|
"@veramo/utils": "4.2.0",
|
|
@@ -45,6 +44,7 @@
|
|
|
45
44
|
"uuid": "^9.0.1"
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
47
|
+
"@sphereon/oid4vci-common": "0.19.0",
|
|
48
48
|
"@sphereon/ssi-sdk-ext.did-provider-key": "0.29.1-next.3",
|
|
49
49
|
"@sphereon/ssi-sdk-ext.key-manager": "0.29.1-next.3",
|
|
50
50
|
"@sphereon/ssi-sdk-ext.kms-local": "0.29.1-next.3",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"@veramo/did-resolver": "4.2.0",
|
|
56
56
|
"@veramo/key-manager": "4.2.0",
|
|
57
57
|
"ethr-did-resolver": "^11.0.3",
|
|
58
|
+
"typeorm": "0.3.20",
|
|
58
59
|
"typescript": "5.8.3"
|
|
59
60
|
},
|
|
60
61
|
"files": [
|
|
@@ -91,5 +92,5 @@
|
|
|
91
92
|
"node_modules",
|
|
92
93
|
"src"
|
|
93
94
|
],
|
|
94
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "2593a430ac4faca47b620a3e12b297899518f2af"
|
|
95
96
|
}
|
package/src/types.ts
CHANGED
|
@@ -11,16 +11,18 @@ import type {
|
|
|
11
11
|
} from '@veramo/core'
|
|
12
12
|
|
|
13
13
|
import type { VerifiableCredentialSP, VerifiablePresentationSP } from '@sphereon/ssi-sdk.core'
|
|
14
|
+
import type { StatusListOpts } from '@sphereon/oid4vci-common'
|
|
14
15
|
|
|
15
|
-
import type { IIssueCredentialStatusOpts } from '@sphereon/ssi-sdk.vc-status-list'
|
|
16
16
|
import type {
|
|
17
17
|
ICredential,
|
|
18
18
|
IVerifyResult,
|
|
19
19
|
OriginalVerifiableCredential,
|
|
20
20
|
W3CVerifiableCredential,
|
|
21
|
-
W3CVerifiablePresentation
|
|
21
|
+
W3CVerifiablePresentation,
|
|
22
22
|
} from '@sphereon/ssi-types'
|
|
23
23
|
|
|
24
|
+
import type { DataSource } from 'typeorm'
|
|
25
|
+
|
|
24
26
|
export type IVcdmCredentialPlugin = IVcdmCredentialIssuer & IVcdmCredentialVerifier
|
|
25
27
|
|
|
26
28
|
/**
|
|
@@ -108,6 +110,16 @@ export interface ICreateVerifiablePresentationLDArgs {
|
|
|
108
110
|
now?: Date | number
|
|
109
111
|
}
|
|
110
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Statuslist credential options, cloned from packages/vc-status-list/src/types/index.ts to break cyclic dependency loop
|
|
115
|
+
*/
|
|
116
|
+
export interface IIssueCredentialStatusOpts {
|
|
117
|
+
dataSource?: DataSource
|
|
118
|
+
statusLists?: Array<StatusListOpts>
|
|
119
|
+
credentialId?: string // An id to use for the credential. Normally should be set as the crdential.id value
|
|
120
|
+
value?: string
|
|
121
|
+
}
|
|
122
|
+
|
|
111
123
|
/**
|
|
112
124
|
* Encapsulates the parameters required to create a
|
|
113
125
|
* {@link https://www.w3.org/TR/vc-data-model/#credentials | W3C Verifiable Credential}
|