From b68d6e5319d9814abd64004a5d88be8c7b1bf39e Mon Sep 17 00:00:00 2001 From: Lucas Cunha Date: Tue, 5 Oct 2021 11:06:35 -0300 Subject: [PATCH] CIV-3792 document:appId uca definition --- package-lock.json | 2 +- package.json | 2 +- src/definitions.js | 27 +++++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2f632d2..0517db8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@identity.com/uca", - "version": "1.0.29", + "version": "1.0.30", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 03d7ddf..7f5d73c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@identity.com/uca", - "version": "1.0.29", + "version": "1.0.30", "description": "Provides functionality around User Collectable Attributes (UCA)", "main": "src/index.js", "module": "dist/es/index.js", diff --git a/src/definitions.js b/src/definitions.js index 54c747f..b422c37 100644 --- a/src/definitions.js +++ b/src/definitions.js @@ -1191,6 +1191,33 @@ const definitions = [ attestable: false, credentialItem: false, }, + { + identifier: 'cvc:Type:appIdType', + description: 'Application Identifier Type', + version: '1', + type: 'String', + attestable: false, + credentialItem: false, + }, + { + identifier: 'cvc:Document:appId', + version: '1', + type: { + properties: [ + { + name: 'appId', + type: 'cvc:Type:appId', + }, + { + name: 'appIdType', + type: 'cvc:Type:appIdType', + }, + ], + required: ['appId'], + }, + attestable: false, + credentialItem: false, + }, ]; module.exports = definitions;