@2060.io/vs-agent-model 1.6.0-dev.28 → 1.6.0-dev.29

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/build/types.d.ts +7 -5
  2. package/package.json +2 -2
package/build/types.d.ts CHANGED
@@ -17,17 +17,19 @@ export interface CreateCredentialTypeOptions {
17
17
  attributes: string[];
18
18
  schemaId?: string;
19
19
  supportRevocation?: boolean;
20
+ relatedJsonSchemaCredentialId?: string;
20
21
  }
21
22
  export interface CredentialIssuanceRequest {
22
- type: 'jsonld' | 'anoncreds';
23
- jsonSchemaCredential: string;
23
+ format: 'jsonld' | 'anoncreds';
24
+ jsonSchemaCredentialId: string;
24
25
  claims: JsonObject;
25
26
  did?: string;
26
27
  }
27
28
  export interface CredentialIssuanceResponse {
28
29
  status: number;
29
- didcommInvitationUrl: string;
30
- credential: Record<string, unknown>;
30
+ didcommInvitationUrl?: string;
31
+ didcommCredentialExchangeId?: string;
32
+ credential?: Record<string, unknown>;
31
33
  }
32
34
  export interface ImportCredentialTypeOptions {
33
35
  id: string;
@@ -45,7 +47,7 @@ export interface CredentialTypeInfo extends CreateCredentialTypeOptions {
45
47
  }
46
48
  export interface CredentialTypeResult extends Omit<CredentialTypeInfo, 'supportRevocation'> {
47
49
  revocationSupported: boolean;
48
- relatedJsonSchemaCredential?: string;
50
+ relatedJsonSchemaCredentialId?: string;
49
51
  }
50
52
  export interface RevocationRegistryInfo {
51
53
  credentialDefinitionId: string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@2060.io/vs-agent-model",
3
3
  "main": "build/index",
4
4
  "types": "build/index",
5
- "version": "1.6.0-dev.28",
5
+ "version": "1.6.0-dev.29",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/2060-io/vs-agent"
@@ -34,6 +34,6 @@
34
34
  "clean": "rimraf -rf ./build",
35
35
  "compile": "tsc -p tsconfig.build.json",
36
36
  "version": "pnpm version",
37
- "test": "jest"
37
+ "test": "vitest"
38
38
  }
39
39
  }