@sphereon/ssi-sdk.credential-vcdm 0.34.1-next.3 → 0.34.1-next.40

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}
@@ -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 { 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}
@@ -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-next.3+6c49ea2f",
4
+ "version": "0.34.1-next.40+16fd35c0",
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.3+6c49ea2f",
34
- "@sphereon/ssi-sdk.core": "0.34.1-next.3+6c49ea2f",
35
- "@sphereon/ssi-sdk.vc-status-list": "0.34.1-next.3+6c49ea2f",
36
- "@sphereon/ssi-types": "0.34.1-next.3+6c49ea2f",
31
+ "@sphereon/ssi-sdk-ext.did-utils": "0.34.1-next.40+16fd35c0",
32
+ "@sphereon/ssi-sdk-ext.key-utils": "0.34.1-next.40+16fd35c0",
33
+ "@sphereon/ssi-sdk.agent-config": "0.34.1-next.40+16fd35c0",
34
+ "@sphereon/ssi-sdk.core": "0.34.1-next.40+16fd35c0",
35
+ "@sphereon/ssi-types": "0.34.1-next.40+16fd35c0",
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.40+16fd35c0",
49
+ "@sphereon/ssi-sdk-ext.key-manager": "0.34.1-next.40+16fd35c0",
50
+ "@sphereon/ssi-sdk-ext.kms-local": "0.34.1-next.40+16fd35c0",
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": "6c49ea2f9c1bc61641ca2c98e3aa0a5b48018d91"
95
+ "gitHead": "16fd35c05f13688d8e2bbe4221d3dc3863dff176"
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}