@triveria/wallet 0.0.259 → 0.0.260

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.
Files changed (2) hide show
  1. package/api.d.ts +12 -2
  2. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -296,6 +296,10 @@ export interface CredentialVerifierDefinition {
296
296
  * Unique ID of the definition
297
297
  */
298
298
  'id': string;
299
+ /**
300
+ * A custom authorization scope that can be used for this verifier with authorization request
301
+ */
302
+ 'scope'?: string;
299
303
  'presentationDefinition'?: PresentationDefinition;
300
304
  'dcqlQuery'?: DCQLQuery;
301
305
  }
@@ -794,9 +798,13 @@ export interface PresentationMetadata {
794
798
  }
795
799
  export interface PresentationRequest {
796
800
  /**
797
- * URL of verifier authorization server. MUST contain the verifier scope as a query parameter(`scope`).
801
+ * URL of verifier or vp_token request url
798
802
  */
799
803
  'verifierUrl': string;
804
+ /**
805
+ * Custom authorization scope, used when `verifierUrl` is the URL of verifier
806
+ */
807
+ 'verifierScope'?: string;
800
808
  }
801
809
  /**
802
810
  * Info needed to revoke legal entity\'s DID
@@ -878,10 +886,12 @@ export interface VerifiedWrapper {
878
886
  'holder': string;
879
887
  }
880
888
  /**
881
- * Request for the creation of URL used by holder to present credentials to a verifier.
889
+ * Registers a new verification request. When `createUrl` is true, URL used by holder to present credentials to a verifier is created. Otherwise, the holder can use the verifier authorization endpoint with a custom scope to request credentials. In this case `holderEntityId` must be provided.
882
890
  */
883
891
  export interface VerifyInitRequest {
884
892
  'verifierId': string;
893
+ 'createUrl'?: boolean;
894
+ 'holderEntityId'?: string;
885
895
  }
886
896
  export interface VerifyInitResponse {
887
897
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.259",
4
+ "version": "0.0.260",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {