@proof.com/proof-vc-common 0.1.0
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/LICENSE +201 -0
- package/README.md +305 -0
- package/dist/certificates/chain_validator.d.ts +3 -0
- package/dist/certificates/chain_validator.d.ts.map +1 -0
- package/dist/certificates/chain_validator.js +29 -0
- package/dist/certificates/chain_validator.js.map +1 -0
- package/dist/certificates/trust_store/index.d.ts +4 -0
- package/dist/certificates/trust_store/index.d.ts.map +1 -0
- package/dist/certificates/trust_store/index.js +17 -0
- package/dist/certificates/trust_store/index.js.map +1 -0
- package/dist/certificates/trust_store/proof_root_ca_r1.d.ts +2 -0
- package/dist/certificates/trust_store/proof_root_ca_r1.d.ts.map +1 -0
- package/dist/certificates/trust_store/proof_root_ca_r1.js +16 -0
- package/dist/certificates/trust_store/proof_root_ca_r1.js.map +1 -0
- package/dist/certificates/trust_store/proof_root_ca_r1_development.d.ts +2 -0
- package/dist/certificates/trust_store/proof_root_ca_r1_development.d.ts.map +1 -0
- package/dist/certificates/trust_store/proof_root_ca_r1_development.js +17 -0
- package/dist/certificates/trust_store/proof_root_ca_r1_development.js.map +1 -0
- package/dist/index.browser.d.ts +5 -0
- package/dist/index.browser.d.ts.map +1 -0
- package/dist/index.browser.js +3 -0
- package/dist/index.browser.js.map +1 -0
- package/dist/index.node.d.ts +5 -0
- package/dist/index.node.d.ts.map +1 -0
- package/dist/index.node.js +3 -0
- package/dist/index.node.js.map +1 -0
- package/dist/presentation/base_client.d.ts +33 -0
- package/dist/presentation/base_client.d.ts.map +1 -0
- package/dist/presentation/base_client.js +92 -0
- package/dist/presentation/base_client.js.map +1 -0
- package/dist/presentation/node_client.d.ts +15 -0
- package/dist/presentation/node_client.d.ts.map +1 -0
- package/dist/presentation/node_client.js +59 -0
- package/dist/presentation/node_client.js.map +1 -0
- package/dist/proof_credential_factory.d.ts +4 -0
- package/dist/proof_credential_factory.d.ts.map +1 -0
- package/dist/proof_credential_factory.js +37 -0
- package/dist/proof_credential_factory.js.map +1 -0
- package/dist/proof_credentials.d.ts +42 -0
- package/dist/proof_credentials.d.ts.map +1 -0
- package/dist/proof_credentials.js +61 -0
- package/dist/proof_credentials.js.map +1 -0
- package/dist/transaction_data.d.ts +73 -0
- package/dist/transaction_data.d.ts.map +1 -0
- package/dist/transaction_data.js +51 -0
- package/dist/transaction_data.js.map +1 -0
- package/dist/types.d.ts +16 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +3 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +10 -0
- package/dist/utils.js.map +1 -0
- package/dist/vc_presentation.browser.d.ts +4 -0
- package/dist/vc_presentation.browser.d.ts.map +1 -0
- package/dist/vc_presentation.browser.js +13 -0
- package/dist/vc_presentation.browser.js.map +1 -0
- package/dist/vc_presentation.node.d.ts +8 -0
- package/dist/vc_presentation.node.d.ts.map +1 -0
- package/dist/vc_presentation.node.js +23 -0
- package/dist/vc_presentation.node.js.map +1 -0
- package/package.json +77 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { VCPresentationClientParams, AuthorizationRequestParams } from "./presentation/base_client.ts";
|
|
2
|
+
import { type VerifyParams, type VerifyVPTokenParams } from "./presentation/node_client.ts";
|
|
3
|
+
import type { ProofCredential, VPToken } from "./types.ts";
|
|
4
|
+
export declare function init(params: VCPresentationClientParams): void;
|
|
5
|
+
export declare function getAuthorizationRequestURL(params: AuthorizationRequestParams): Promise<string>;
|
|
6
|
+
export declare function verify(params: VerifyParams): Promise<ProofCredential>;
|
|
7
|
+
export declare function verifyVPToken(params: VerifyVPTokenParams): Promise<VPToken>;
|
|
8
|
+
//# sourceMappingURL=vc_presentation.node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vc_presentation.node.d.ts","sourceRoot":"","sources":["../src/vc_presentation.node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAI3D,wBAAgB,IAAI,CAAC,MAAM,EAAE,0BAA0B,GAAG,IAAI,CAI7D;AAED,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,0BAA0B,GACjC,OAAO,CAAC,MAAM,CAAC,CAIjB;AAED,wBAAsB,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,CAI3E;AAED,wBAAsB,aAAa,CACjC,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,OAAO,CAAC,CAIlB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NodeVCPresentationClient, } from "./presentation/node_client.js";
|
|
2
|
+
let instance = null;
|
|
3
|
+
export function init(params) {
|
|
4
|
+
if (params.environment === "production" && instance)
|
|
5
|
+
throw new Error("NodeVCPresentationClient already initialized (node)");
|
|
6
|
+
instance = new NodeVCPresentationClient(params);
|
|
7
|
+
}
|
|
8
|
+
export async function getAuthorizationRequestURL(params) {
|
|
9
|
+
if (!instance)
|
|
10
|
+
throw "NodeVCPresentationClient not initialized — call init() first (node)";
|
|
11
|
+
return instance.getAuthorizationRequestURL(params);
|
|
12
|
+
}
|
|
13
|
+
export async function verify(params) {
|
|
14
|
+
if (!instance)
|
|
15
|
+
throw "NodeVCPresentationClient not initialized — call init() first (node)";
|
|
16
|
+
return instance.verify(params);
|
|
17
|
+
}
|
|
18
|
+
export async function verifyVPToken(params) {
|
|
19
|
+
if (!instance)
|
|
20
|
+
throw "NodeVCPresentationClient not initialized — call init() first (node)";
|
|
21
|
+
return instance.verifyVPToken(params);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=vc_presentation.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vc_presentation.node.js","sourceRoot":"","sources":["../src/vc_presentation.node.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,wBAAwB,GAGzB,MAAM,+BAA+B,CAAC;AAGvC,IAAI,QAAQ,GAAoC,IAAI,CAAC;AAErD,MAAM,UAAU,IAAI,CAAC,MAAkC;IACrD,IAAI,MAAM,CAAC,WAAW,KAAK,YAAY,IAAI,QAAQ;QACjD,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;IACzE,QAAQ,GAAG,IAAI,wBAAwB,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,MAAkC;IAElC,IAAI,CAAC,QAAQ;QACX,MAAM,qEAAqE,CAAC;IAC9E,OAAO,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,MAAoB;IAC/C,IAAI,CAAC,QAAQ;QACX,MAAM,qEAAqE,CAAC;IAC9E,OAAO,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,MAA2B;IAE3B,IAAI,CAAC,QAAQ;QACX,MAAM,qEAAqE,CAAC;IAC9E,OAAO,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AACxC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@proof.com/proof-vc-common",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A digital passport. Verified once, usable everywhere.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"VC",
|
|
7
|
+
"Verifiable Credentials",
|
|
8
|
+
"OID4VCI",
|
|
9
|
+
"OID4VCP",
|
|
10
|
+
"SD-JWT-VC",
|
|
11
|
+
"Selective Disclosures",
|
|
12
|
+
"Proof",
|
|
13
|
+
"Proof.com",
|
|
14
|
+
"OAuth"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://github.com/proof/proof-vc-common",
|
|
17
|
+
"bugs": "https://github.com/proof/proof-vc-common/issues",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+ssh://git@github.com/proof/proof-vc-common.git"
|
|
21
|
+
},
|
|
22
|
+
"license": "Apache-2.0",
|
|
23
|
+
"author": "Jeremie Charrier <jeremie.charrier@proof.com>",
|
|
24
|
+
"sideEffects": false,
|
|
25
|
+
"type": "module",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"browser": {
|
|
29
|
+
"types": "./dist/index.browser.d.ts",
|
|
30
|
+
"default": "./dist/index.browser.js"
|
|
31
|
+
},
|
|
32
|
+
"node": {
|
|
33
|
+
"types": "./dist/index.node.d.ts",
|
|
34
|
+
"default": "./dist/index.node.js"
|
|
35
|
+
},
|
|
36
|
+
"default": {
|
|
37
|
+
"types": "./dist/index.node.d.ts",
|
|
38
|
+
"default": "./dist/index.node.js"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"files": [
|
|
43
|
+
"dist"
|
|
44
|
+
],
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsc",
|
|
47
|
+
"check-all": "yarn format && yarn lint && yarn typecheck && yarn publint",
|
|
48
|
+
"format": "prettier --write .",
|
|
49
|
+
"format:check": "prettier --check .",
|
|
50
|
+
"lint": "eslint . --fix",
|
|
51
|
+
"lint:check": "eslint .",
|
|
52
|
+
"publint": "publint --pack npm",
|
|
53
|
+
"typecheck": "tsc --noEmit"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@owf/crypto": "^0.2.0",
|
|
57
|
+
"@owf/identity-common": "^0.2.0",
|
|
58
|
+
"@sd-jwt/core": "^0.19.0",
|
|
59
|
+
"@sd-jwt/sd-jwt-vc": "^0.19.0"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@types/node": "^25.9.1",
|
|
63
|
+
"eslint": "^10.4.0",
|
|
64
|
+
"eslint-plugin-unused-imports": "^4.4.1",
|
|
65
|
+
"prettier": "^3.8.3",
|
|
66
|
+
"prettier-plugin-packagejson": "^3.0.2",
|
|
67
|
+
"publint": "^0.3.21",
|
|
68
|
+
"typescript": "^6.0.3",
|
|
69
|
+
"typescript-eslint": "^8.59.4"
|
|
70
|
+
},
|
|
71
|
+
"engines": {
|
|
72
|
+
"node": ">=22.0.0"
|
|
73
|
+
},
|
|
74
|
+
"publishConfig": {
|
|
75
|
+
"access": "public"
|
|
76
|
+
}
|
|
77
|
+
}
|