@veramo/credential-status 3.1.6-next.157 → 3.1.6-next.160
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/types.d.ts +2 -2
- package/build/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/plugin.schema.json +15 -2
- package/src/types.ts +2 -2
package/build/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IAgentContext, IPluginMethodMap, VerifiableCredential } from '@veramo/core';
|
|
2
|
-
import { CredentialStatus } from 'credential-status';
|
|
2
|
+
import { CredentialStatus as CredentialStatusVerification } from 'credential-status';
|
|
3
3
|
import { DIDDocument } from 'did-resolver';
|
|
4
4
|
/**
|
|
5
5
|
* Arguments for calling {@link ICheckCredentialStatus.checkCredentialStatus | checkCredentialStatus}.
|
|
@@ -38,6 +38,6 @@ export interface ICheckCredentialStatus extends IPluginMethodMap {
|
|
|
38
38
|
* @param args - The credential to be checked, along with the DID document of the issuer.
|
|
39
39
|
* @param context - *RESERVED* This is filled by the framework when the method is called.
|
|
40
40
|
*/
|
|
41
|
-
checkCredentialStatus(args: ICheckCredentialStatusArgs, context: IAgentContext<any>): Promise<
|
|
41
|
+
checkCredentialStatus(args: ICheckCredentialStatusArgs, context: IAgentContext<any>): Promise<CredentialStatusVerification>;
|
|
42
42
|
}
|
|
43
43
|
//# sourceMappingURL=types.d.ts.map
|
package/build/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AACpF,OAAO,EAAE,gBAAgB,IAAI,4BAA4B,EAAE,MAAM,mBAAmB,CAAA;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C;;;;;;;;GAQG;AACH,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,oBAAoB,CAAA;IAChC,MAAM,EAAE,WAAW,CAAA;CACpB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAE9D;;;;;OAKG;IACH,qBAAqB,CACnB,IAAI,EAAE,0BAA0B,EAChC,OAAO,EAAE,aAAa,CAAC,GAAG,CAAC,GAC1B,OAAO,CAAC,4BAA4B,CAAC,CAAA;CACzC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veramo/credential-status",
|
|
3
3
|
"description": "Veramo plugin for resolving a credential status",
|
|
4
|
-
"version": "3.1.6-next.
|
|
4
|
+
"version": "3.1.6-next.160+6fbd22fa",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@veramo/core": "^3.1.6-next.
|
|
17
|
+
"@veramo/core": "^3.1.6-next.160+6fbd22fa",
|
|
18
18
|
"credential-status": "^2.0.3",
|
|
19
19
|
"did-jwt": "^6.2.0",
|
|
20
20
|
"did-resolver": "^3.2.2"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"contributors": [],
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"keywords": [],
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "6fbd22fa6ba7bb1d4092afbded0f95c0d841bd97"
|
|
42
42
|
}
|
package/plugin.schema.json
CHANGED
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"type": "string"
|
|
123
123
|
},
|
|
124
124
|
"type": {
|
|
125
|
-
"
|
|
125
|
+
"$ref": "#/components/schemas/CredentialStatusType"
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
128
|
"required": [
|
|
@@ -131,6 +131,10 @@
|
|
|
131
131
|
],
|
|
132
132
|
"description": "Used for the discovery of information about the current status of a verifiable credential, such as whether it is suspended or revoked. The precise contents of the credential status information is determined by the specific `credentialStatus` type definition, and varies depending on factors such as whether it is simple to implement or if it is privacy-enhancing.\n\nSee {@link https://www.w3.org/TR/vc-data-model/#status | Credential Status }"
|
|
133
133
|
},
|
|
134
|
+
"CredentialStatusType": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"description": "Expresses the credential status type (also referred to as the credential status method). It is expected that the value will provide enough information to determine the current status of the credential and that machine readable information needs to be retrievable from the URI. For example, the object could contain a link to an external document noting whether or not the credential is suspended or revoked."
|
|
137
|
+
},
|
|
134
138
|
"DIDDocument": {
|
|
135
139
|
"type": "object",
|
|
136
140
|
"properties": {
|
|
@@ -368,6 +372,15 @@
|
|
|
368
372
|
"type",
|
|
369
373
|
"serviceEndpoint"
|
|
370
374
|
]
|
|
375
|
+
},
|
|
376
|
+
"CredentialStatusVerification": {
|
|
377
|
+
"type": "object",
|
|
378
|
+
"properties": {
|
|
379
|
+
"revoked": {
|
|
380
|
+
"type": "boolean"
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"description": "Represents the result of a status check.\n\nImplementations should populate the `revoked` boolean property, but they can return additional metadata that is method specific."
|
|
371
384
|
}
|
|
372
385
|
},
|
|
373
386
|
"methods": {
|
|
@@ -377,7 +390,7 @@
|
|
|
377
390
|
"$ref": "#/components/schemas/ICheckCredentialStatusArgs"
|
|
378
391
|
},
|
|
379
392
|
"returnType": {
|
|
380
|
-
"$ref": "#/components/schemas/
|
|
393
|
+
"$ref": "#/components/schemas/CredentialStatusVerification"
|
|
381
394
|
}
|
|
382
395
|
}
|
|
383
396
|
}
|
package/src/types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IAgentContext, IPluginMethodMap, VerifiableCredential } from '@veramo/core'
|
|
2
|
-
import { CredentialStatus } from 'credential-status'
|
|
2
|
+
import { CredentialStatus as CredentialStatusVerification } from 'credential-status'
|
|
3
3
|
import { DIDDocument } from 'did-resolver'
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -44,5 +44,5 @@ export interface ICheckCredentialStatus extends IPluginMethodMap {
|
|
|
44
44
|
checkCredentialStatus(
|
|
45
45
|
args: ICheckCredentialStatusArgs,
|
|
46
46
|
context: IAgentContext<any>,
|
|
47
|
-
): Promise<
|
|
47
|
+
): Promise<CredentialStatusVerification>
|
|
48
48
|
}
|