@sphereon/ssi-types 0.34.1-feature.DIIPv4.113 → 0.34.1-feature.DIIPv4.140

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.
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.34.1-feature.DIIPv4.113+7f3f7f48",
4
+ "version": "0.34.1-feature.DIIPv4.140+8474dc89",
5
5
  "source": "./src/index.ts",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
@@ -26,6 +26,7 @@
26
26
  "@sd-jwt/decode": "^0.15.0",
27
27
  "@sd-jwt/types": "^0.15.0",
28
28
  "@sphereon/kmp-mdoc-core": "0.2.0-SNAPSHOT.26",
29
+ "dcql": "1.0.1",
29
30
  "debug": "^4.3.5",
30
31
  "events": "^3.3.0",
31
32
  "jwt-decode": "^4.0.0",
@@ -58,5 +59,5 @@
58
59
  "Verifiable Credentials",
59
60
  "DIDs"
60
61
  ],
61
- "gitHead": "7f3f7f484d1d9b2632ff28901d2c4fb9e29dcf06"
62
+ "gitHead": "8474dc893e3698d5d83636ea155acd6be0668a5f"
62
63
  }
package/src/index.ts CHANGED
@@ -4,8 +4,8 @@ const logger = Loggers.DEFAULT.get('sphereon:ssi')
4
4
  logger.debug(`Sphereon logger initialized`)
5
5
 
6
6
  export type * from './types'
7
+ export * from './types/datastore' // (not export "type")
7
8
  export * from './logging'
8
9
  export * from './events'
9
10
  export * from './utils'
10
11
  export * from './mapper'
11
-
@@ -0,0 +1,6 @@
1
+ export enum CredentialRole {
2
+ ISSUER = 'ISSUER',
3
+ VERIFIER = 'VERIFIER',
4
+ HOLDER = 'HOLDER',
5
+ FEDERATION_TRUST_ANCHOR = 'FEDERATION_TRUST_ANCHOR',
6
+ }
package/src/types/dcql.ts CHANGED
@@ -1,39 +1,8 @@
1
- // FIXME Temporary minimal DCQL schema for PD manager, the DcqlQuery used by Animo does not serialize properly (over REST / Veramo)
1
+ import { DcqlQuery } from 'dcql'
2
2
 
3
- export interface DcqlQueryREST {
4
- credentials: DcqlCredentialQuery[]
5
- }
6
-
7
- export interface DcqlCredentialQuery {
8
- id: string
9
- format: string
10
- alg?: string[]
11
- claims: DcqlClaim[]
12
- meta?: Record<string, any>
13
- }
14
-
15
- export interface DcqlClaim {
16
- namespace: string
17
- claim_name: string
18
- filter?: DcqlFilter
19
- }
20
-
21
- export interface DcqlFilter {
22
- type: 'string' | 'number' | 'boolean'
23
- pattern?: string
24
- minimum?: number
25
- maximum?: number
26
- }
27
-
28
- export interface DcqlPresentationResult {
29
- canBeSatisfied: boolean
30
- credential_matches: Record<string, DcqlCredentialMatch>
31
- invalid_matches?: Record<string, DcqlCredentialMatch>
32
- }
33
-
34
- export interface DcqlCredentialMatch {
35
- success: boolean
36
- input_credential_index: number
37
- claim_set_index?: number
38
- output: any
3
+ export interface DcqlQueryPayload {
4
+ queryId: string
5
+ name?: string
6
+ defaultPurpose?: string
7
+ dcqlQuery: DcqlQuery
39
8
  }