@twin.org/identity-models 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.
@@ -67,7 +67,7 @@ export interface IIdentityConnector extends IComponent {
67
67
  * @returns The created verifiable credential and its token.
68
68
  * @throws NotFoundError if the id can not be resolved.
69
69
  */
70
- createVerifiableCredential<T extends IJsonLdObject = IJsonLdObject>(controller: string, verificationMethodId: string, id: string | undefined, credential: T, revocationIndex?: number): Promise<{
70
+ createVerifiableCredential<T extends IJsonLdObject>(controller: string, verificationMethodId: string, id: string | undefined, credential: T, revocationIndex?: number): Promise<{
71
71
  verifiableCredential: IDidVerifiableCredential<T>;
72
72
  jwt: string;
73
73
  }>;
@@ -76,7 +76,7 @@ export interface IIdentityConnector extends IComponent {
76
76
  * @param credentialJwt The credential to verify.
77
77
  * @returns The credential stored in the jwt and the revocation status.
78
78
  */
79
- checkVerifiableCredential<T extends IJsonLdObject = IJsonLdObject>(credentialJwt: string): Promise<{
79
+ checkVerifiableCredential<T extends IJsonLdObject>(credentialJwt: string): Promise<{
80
80
  revoked: boolean;
81
81
  verifiableCredential?: IDidVerifiableCredential<T>;
82
82
  }>;
@@ -108,7 +108,7 @@ export interface IIdentityConnector extends IComponent {
108
108
  * @returns The created verifiable presentation and its token.
109
109
  * @throws NotFoundError if the id can not be resolved.
110
110
  */
111
- createVerifiablePresentation<T extends IJsonLdObject = IJsonLdObject>(controller: string, presentationMethodId: string, presentationId: string | undefined, contexts: IJsonLdContextDefinitionRoot | undefined, types: string | string[] | undefined, verifiableCredentials: (string | IDidVerifiableCredential<T>)[], expiresInMinutes?: number): Promise<{
111
+ 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<{
112
112
  verifiablePresentation: IDidVerifiablePresentation<T>;
113
113
  jwt: string;
114
114
  }>;
@@ -117,7 +117,7 @@ export interface IIdentityConnector extends IComponent {
117
117
  * @param presentationJwt The presentation to verify.
118
118
  * @returns The presentation stored in the jwt and the revocation status.
119
119
  */
120
- checkVerifiablePresentation<T extends IJsonLdObject = IJsonLdObject>(presentationJwt: string): Promise<{
120
+ checkVerifiablePresentation<T extends IJsonLdObject>(presentationJwt: string): Promise<{
121
121
  revoked: boolean;
122
122
  verifiablePresentation?: IDidVerifiablePresentation<T>;
123
123
  issuers?: IDidDocument[];
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/identity-service-models - Changelog
2
2
 
3
- ## v0.0.1-next.10
3
+ ## v0.0.1-next.11
4
4
 
5
5
  - Initial Release
@@ -200,7 +200,7 @@ Create a verifiable credential for a verification method.
200
200
 
201
201
  #### Type Parameters
202
202
 
203
- • **T** *extends* `IJsonLdObject` = `IJsonLdObject`
203
+ • **T** *extends* `IJsonLdObject`
204
204
 
205
205
  #### Parameters
206
206
 
@@ -252,7 +252,7 @@ Check a verifiable credential is valid.
252
252
 
253
253
  #### Type Parameters
254
254
 
255
- • **T** *extends* `IJsonLdObject` = `IJsonLdObject`
255
+ • **T** *extends* `IJsonLdObject`
256
256
 
257
257
  #### Parameters
258
258
 
@@ -340,7 +340,7 @@ Create a verifiable presentation from the supplied verifiable credentials.
340
340
 
341
341
  #### Type Parameters
342
342
 
343
- • **T** *extends* `IJsonLdObject` = `IJsonLdObject`
343
+ • **T** *extends* `IJsonLdObject`
344
344
 
345
345
  #### Parameters
346
346
 
@@ -400,7 +400,7 @@ Check a verifiable presentation is valid.
400
400
 
401
401
  #### Type Parameters
402
402
 
403
- • **T** *extends* `IJsonLdObject` = `IJsonLdObject`
403
+ • **T** *extends* `IJsonLdObject`
404
404
 
405
405
  #### Parameters
406
406
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/identity-models",
3
- "version": "0.0.1-next.10",
3
+ "version": "0.0.1-next.11",
4
4
  "description": "Models which define the structure of the contracts and connectors",
5
5
  "repository": {
6
6
  "type": "git",