@twin.org/identity-connector-entity-storage 0.0.1-next.10 → 0.0.1-next.11
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type IJsonLdContextDefinitionRoot, type IJsonLdObject } from "@twin.org/data-json-ld";
|
|
2
2
|
import { type IIdentityConnector } from "@twin.org/identity-models";
|
|
3
3
|
import { DidVerificationMethodType, type IDidDocument, type IDidDocumentVerificationMethod, type IDidService, type IDidVerifiableCredential, type IDidVerifiablePresentation } from "@twin.org/standards-w3c-did";
|
|
4
4
|
/**
|
|
@@ -85,7 +85,7 @@ export declare class EntityStorageIdentityConnector implements IIdentityConnecto
|
|
|
85
85
|
* @returns The created verifiable credential and its token.
|
|
86
86
|
* @throws NotFoundError if the id can not be resolved.
|
|
87
87
|
*/
|
|
88
|
-
createVerifiableCredential<T extends IJsonLdObject
|
|
88
|
+
createVerifiableCredential<T extends IJsonLdObject>(controller: string, verificationMethodId: string, id: string | undefined, credential: T, revocationIndex?: number): Promise<{
|
|
89
89
|
verifiableCredential: IDidVerifiableCredential<T>;
|
|
90
90
|
jwt: string;
|
|
91
91
|
}>;
|
|
@@ -94,7 +94,7 @@ export declare class EntityStorageIdentityConnector implements IIdentityConnecto
|
|
|
94
94
|
* @param credentialJwt The credential to verify.
|
|
95
95
|
* @returns The credential stored in the jwt and the revocation status.
|
|
96
96
|
*/
|
|
97
|
-
checkVerifiableCredential<T extends IJsonLdObject
|
|
97
|
+
checkVerifiableCredential<T extends IJsonLdObject>(credentialJwt: string): Promise<{
|
|
98
98
|
revoked: boolean;
|
|
99
99
|
verifiableCredential?: IDidVerifiableCredential<T>;
|
|
100
100
|
}>;
|
|
@@ -126,7 +126,7 @@ export declare class EntityStorageIdentityConnector implements IIdentityConnecto
|
|
|
126
126
|
* @returns The created verifiable presentation and its token.
|
|
127
127
|
* @throws NotFoundError if the id can not be resolved.
|
|
128
128
|
*/
|
|
129
|
-
createVerifiablePresentation<T extends IJsonLdObject
|
|
129
|
+
createVerifiablePresentation<T extends IJsonLdObject>(controller: string, presentationMethodId: string, presentationId: string | undefined, contexts: IJsonLdContextDefinitionRoot | undefined, types: string | string[] | undefined, verifiableCredentials: (string | IDidVerifiableCredential<T>)[], expiresInMinutes?: number): Promise<{
|
|
130
130
|
verifiablePresentation: IDidVerifiablePresentation<T>;
|
|
131
131
|
jwt: string;
|
|
132
132
|
}>;
|
|
@@ -135,7 +135,7 @@ export declare class EntityStorageIdentityConnector implements IIdentityConnecto
|
|
|
135
135
|
* @param presentationJwt The presentation to verify.
|
|
136
136
|
* @returns The presentation stored in the jwt and the revocation status.
|
|
137
137
|
*/
|
|
138
|
-
checkVerifiablePresentation<T extends IJsonLdObject
|
|
138
|
+
checkVerifiablePresentation<T extends IJsonLdObject>(presentationJwt: string): Promise<{
|
|
139
139
|
revoked: boolean;
|
|
140
140
|
verifiablePresentation?: IDidVerifiablePresentation<T>;
|
|
141
141
|
issuers?: IDidDocument[];
|
package/docs/changelog.md
CHANGED
|
@@ -270,7 +270,7 @@ Create a verifiable credential for a verification method.
|
|
|
270
270
|
|
|
271
271
|
#### Type Parameters
|
|
272
272
|
|
|
273
|
-
• **T** *extends* `IJsonLdObject`
|
|
273
|
+
• **T** *extends* `IJsonLdObject`
|
|
274
274
|
|
|
275
275
|
#### Parameters
|
|
276
276
|
|
|
@@ -326,7 +326,7 @@ Check a verifiable credential is valid.
|
|
|
326
326
|
|
|
327
327
|
#### Type Parameters
|
|
328
328
|
|
|
329
|
-
• **T** *extends* `IJsonLdObject`
|
|
329
|
+
• **T** *extends* `IJsonLdObject`
|
|
330
330
|
|
|
331
331
|
#### Parameters
|
|
332
332
|
|
|
@@ -426,7 +426,7 @@ Create a verifiable presentation from the supplied verifiable credentials.
|
|
|
426
426
|
|
|
427
427
|
#### Type Parameters
|
|
428
428
|
|
|
429
|
-
• **T** *extends* `IJsonLdObject`
|
|
429
|
+
• **T** *extends* `IJsonLdObject`
|
|
430
430
|
|
|
431
431
|
#### Parameters
|
|
432
432
|
|
|
@@ -490,7 +490,7 @@ Check a verifiable presentation is valid.
|
|
|
490
490
|
|
|
491
491
|
#### Type Parameters
|
|
492
492
|
|
|
493
|
-
• **T** *extends* `IJsonLdObject`
|
|
493
|
+
• **T** *extends* `IJsonLdObject`
|
|
494
494
|
|
|
495
495
|
#### Parameters
|
|
496
496
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/identity-connector-entity-storage",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.11",
|
|
4
4
|
"description": "Identity connector implementation using entity storage",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@twin.org/data-core": "next",
|
|
20
20
|
"@twin.org/data-json-ld": "next",
|
|
21
21
|
"@twin.org/entity": "next",
|
|
22
|
-
"@twin.org/identity-models": "0.0.1-next.
|
|
22
|
+
"@twin.org/identity-models": "0.0.1-next.11",
|
|
23
23
|
"@twin.org/nameof": "next",
|
|
24
24
|
"@twin.org/standards-w3c-did": "next",
|
|
25
25
|
"@twin.org/vault-models": "next",
|