@sphereon/ssi-sdk.credential-vcdm 0.34.1-next.7 → 0.34.1-next.86

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 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 { IIssueCredentialStatusOpts } from '@sphereon/ssi-sdk.vc-status-list';
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}
@@ -131,6 +141,7 @@ interface ICreateVerifiableCredentialLDArgs {
131
141
  */
132
142
  purpose?: IAuthenticationProofPurpose | IControllerProofPurpose | IAssertionProofPurpose | IProofPurpose;
133
143
  credentialStatusOpts?: IIssueCredentialStatusOpts;
144
+ opts?: any;
134
145
  }
135
146
  /**
136
147
  * Encapsulates the parameters required to verify a
@@ -561,4 +572,4 @@ declare function preProcessPresentation(args: ICreateVerifiablePresentationLDArg
561
572
  */
562
573
  declare const CredentialIssuer: typeof VcdmCredentialPlugin;
563
574
 
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 };
575
+ 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 { IIssueCredentialStatusOpts } from '@sphereon/ssi-sdk.vc-status-list';
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}
@@ -131,6 +141,7 @@ interface ICreateVerifiableCredentialLDArgs {
131
141
  */
132
142
  purpose?: IAuthenticationProofPurpose | IControllerProofPurpose | IAssertionProofPurpose | IProofPurpose;
133
143
  credentialStatusOpts?: IIssueCredentialStatusOpts;
144
+ opts?: any;
134
145
  }
135
146
  /**
136
147
  * Encapsulates the parameters required to verify a
@@ -561,4 +572,4 @@ declare function preProcessPresentation(args: ICreateVerifiablePresentationLDArg
561
572
  */
562
573
  declare const CredentialIssuer: typeof VcdmCredentialPlugin;
563
574
 
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 };
575
+ 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-next.7+abc1dfeb",
4
+ "version": "0.34.1-next.86+38dc1ac2",
5
5
  "source": "src/index.ts",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
@@ -28,12 +28,11 @@
28
28
  "generate-plugin-schema": "tsx ../../packages/dev/bin/sphereon.js dev generate-plugin-schema"
29
29
  },
30
30
  "dependencies": {
31
- "@sphereon/ssi-sdk-ext.did-utils": "workspace:*",
32
- "@sphereon/ssi-sdk-ext.key-utils": "workspace:*",
33
- "@sphereon/ssi-sdk.agent-config": "0.34.1-next.7+abc1dfeb",
34
- "@sphereon/ssi-sdk.core": "0.34.1-next.7+abc1dfeb",
35
- "@sphereon/ssi-sdk.vc-status-list": "0.34.1-next.7+abc1dfeb",
36
- "@sphereon/ssi-types": "0.34.1-next.7+abc1dfeb",
31
+ "@sphereon/ssi-sdk-ext.did-utils": "0.34.1-next.86+38dc1ac2",
32
+ "@sphereon/ssi-sdk-ext.key-utils": "0.34.1-next.86+38dc1ac2",
33
+ "@sphereon/ssi-sdk.agent-config": "0.34.1-next.86+38dc1ac2",
34
+ "@sphereon/ssi-sdk.core": "0.34.1-next.86+38dc1ac2",
35
+ "@sphereon/ssi-types": "0.34.1-next.86+38dc1ac2",
37
36
  "@veramo/core": "4.2.0",
38
37
  "@veramo/message-handler": "4.2.0",
39
38
  "@veramo/utils": "4.2.0",
@@ -45,9 +44,10 @@
45
44
  "uuid": "^9.0.1"
46
45
  },
47
46
  "devDependencies": {
48
- "@sphereon/ssi-sdk-ext.did-provider-key": "0.29.1-next.3",
49
- "@sphereon/ssi-sdk-ext.key-manager": "0.29.1-next.3",
50
- "@sphereon/ssi-sdk-ext.kms-local": "0.29.1-next.3",
47
+ "@sphereon/oid4vci-common": "0.19.0",
48
+ "@sphereon/ssi-sdk-ext.did-provider-key": "0.34.1-next.86+38dc1ac2",
49
+ "@sphereon/ssi-sdk-ext.key-manager": "0.34.1-next.86+38dc1ac2",
50
+ "@sphereon/ssi-sdk-ext.kms-local": "0.34.1-next.86+38dc1ac2",
51
51
  "@types/debug": "4.1.8",
52
52
  "@types/uuid": "9.0.2",
53
53
  "@veramo/did-manager": "4.2.0",
@@ -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": "abc1dfebd9a53c49235573ad0a337abb248bf2f3"
95
+ "gitHead": "38dc1ac283787611ad5ebcedf1ca222438566dd9"
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}
@@ -165,6 +177,8 @@ export interface ICreateVerifiableCredentialLDArgs {
165
177
  purpose?: IAuthenticationProofPurpose | IControllerProofPurpose | IAssertionProofPurpose | IProofPurpose
166
178
 
167
179
  credentialStatusOpts?: IIssueCredentialStatusOpts
180
+
181
+ opts?: any
168
182
  }
169
183
 
170
184
  /**