@sphereon/ssi-types 0.30.2-feature.SPRIND.61.JARM.pex.fixes.39 → 0.30.2-feature.siop.fixes.41

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.
@@ -0,0 +1,16 @@
1
+ import { CredentialFormat, PresentationFormat } from '../types';
2
+ export type CredentialEncoding = 'json' | 'jwt' | 'cbor';
3
+ export type IssuerAttributeName = 'iss' | 'issuer' | 'issuerAuth';
4
+ export type SubjectAttributeName = 'subject' | 'id' | 'deviceMac' | 'TODO';
5
+ export type TypeAttributeName = 'type' | 'vct';
6
+ export type DataModel = 'W3C_VCDM' | 'IETF_SD_JWT' | 'ISO_MSO_MDOC';
7
+ export interface CredentialConstraint {
8
+ credentialFormat: CredentialFormat;
9
+ presentationFormat: PresentationFormat;
10
+ maxSignatures: number;
11
+ encoding: CredentialEncoding;
12
+ dataModel: DataModel;
13
+ typeAttribute?: TypeAttributeName;
14
+ issuerAttributes: [IssuerAttributeName];
15
+ }
16
+ //# sourceMappingURL=credential-constraints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credential-constraints.d.ts","sourceRoot":"","sources":["../../src/mapper/credential-constraints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAE/D,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAwB,KAAK,GAAG,MAAM,CAAA;AAE7E,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,QAAQ,GAAG,YAAY,CAAA;AACjE,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,IAAI,GAAG,WAAW,GAAG,MAAM,CAAA;AAC1E,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,KAAK,CAAA;AAE9C,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,aAAa,GAAG,cAAc,CAAA;AAEnE,MAAM,WAAW,oBAAoB;IACnC,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,kBAAkB,EAAE,kBAAkB,CAAA;IACtC,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,SAAS,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,iBAAiB,CAAA;IACjC,gBAAgB,EAAE,CAAC,mBAAmB,CAAC,CAAA;CACxC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=credential-constraints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credential-constraints.js","sourceRoot":"","sources":["../../src/mapper/credential-constraints.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-types",
3
3
  "description": "SSI Common Types",
4
- "version": "0.30.2-feature.SPRIND.61.JARM.pex.fixes.39+6474f4b6",
4
+ "version": "0.30.2-feature.siop.fixes.41+5b4bff06",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
@@ -46,5 +46,5 @@
46
46
  "DIDs"
47
47
  ],
48
48
  "nx": {},
49
- "gitHead": "6474f4b6c8c90cac6e3a521a6e5584298e62a873"
49
+ "gitHead": "5b4bff06f6681cff811bc80cc2346794322c352e"
50
50
  }
@@ -0,0 +1,19 @@
1
+ import { CredentialFormat, PresentationFormat } from '../types'
2
+
3
+ export type CredentialEncoding = 'json' /*includes json-ld*/ | 'jwt' | 'cbor'
4
+
5
+ export type IssuerAttributeName = 'iss' | 'issuer' | 'issuerAuth'
6
+ export type SubjectAttributeName = 'subject' | 'id' | 'deviceMac' | 'TODO'
7
+ export type TypeAttributeName = 'type' | 'vct'
8
+
9
+ export type DataModel = 'W3C_VCDM' | 'IETF_SD_JWT' | 'ISO_MSO_MDOC'
10
+
11
+ export interface CredentialConstraint {
12
+ credentialFormat: CredentialFormat
13
+ presentationFormat: PresentationFormat
14
+ maxSignatures: number
15
+ encoding: CredentialEncoding
16
+ dataModel: DataModel
17
+ typeAttribute?: TypeAttributeName // optional since mdocs use namespace maps without an explicit type attribute
18
+ issuerAttributes: [IssuerAttributeName]
19
+ }