@sphereon/oid4vci-client 0.0.1-unstable.1
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/.eslintrc.json +77 -0
- package/.github/workflows/main.yml +34 -0
- package/.prettierignore +3 -0
- package/CHANGELOG.md +5 -0
- package/LICENSE +201 -0
- package/README.md +206 -0
- package/dist/main/index.js +1 -0
- package/docs/preauthorized-code-flow.puml +38 -0
- package/index.ts +0 -0
- package/jest.config.cjs +26 -0
- package/lib/AccessTokenClient.ts +139 -0
- package/lib/CredentialRequestClient.ts +61 -0
- package/lib/CredentialRequestClientBuilder.ts +46 -0
- package/lib/IssuanceInitiation.ts +28 -0
- package/lib/functions/Encoding.ts +132 -0
- package/lib/functions/HttpUtils.ts +42 -0
- package/lib/functions/ProofUtil.ts +56 -0
- package/lib/functions/index.ts +3 -0
- package/lib/index.ts +6 -0
- package/lib/types/OIDC4VCI.types.ts +72 -0
- package/lib/types/Oidc4vciErrors.ts +3 -0
- package/lib/types/VCIssuance.types.ts +118 -0
- package/lib/types/index.ts +3 -0
- package/package.json +59 -0
- package/tests/AccessTokenClient.spec.ts +149 -0
- package/tests/IT.spec.ts +11 -0
- package/tests/IssuanceInitiation.spec.ts +141 -0
- package/tests/VcIssuanceClient.spec.ts +159 -0
- package/tsconfig.build.json +6 -0
- package/tsconfig.json +52 -0
package/tsconfig.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"incremental": true,
|
|
4
|
+
"target": "ES6",
|
|
5
|
+
"outDir": "dist/main",
|
|
6
|
+
"moduleResolution": "node",
|
|
7
|
+
"module": "commonjs",
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"inlineSourceMap": true,
|
|
10
|
+
"esModuleInterop": true
|
|
11
|
+
/* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
|
12
|
+
"resolveJsonModule": true
|
|
13
|
+
/* Include modules imported with .json extension. */,
|
|
14
|
+
// "strict": true /* Enable all strict type-checking options. */,
|
|
15
|
+
/* Additional Checks */
|
|
16
|
+
"noUnusedLocals": true
|
|
17
|
+
/* Report errors on unused locals. */,
|
|
18
|
+
"noUnusedParameters": true
|
|
19
|
+
/* Report errors on unused parameters. */,
|
|
20
|
+
"noImplicitReturns": true
|
|
21
|
+
/* Report error when not all code paths in function return a value. */,
|
|
22
|
+
"noFallthroughCasesInSwitch": true
|
|
23
|
+
/* Report errors for fallthrough cases in switch statement. */,
|
|
24
|
+
/* Debugging Options */
|
|
25
|
+
"traceResolution": false
|
|
26
|
+
/* Report module resolution log messages. */,
|
|
27
|
+
"listEmittedFiles": false
|
|
28
|
+
/* Print names of generated files part of the compilation. */,
|
|
29
|
+
"listFiles": false
|
|
30
|
+
/* Print names of files part of the compilation. */,
|
|
31
|
+
"pretty": true,
|
|
32
|
+
"rootDirs": [
|
|
33
|
+
"lib",
|
|
34
|
+
"tests"
|
|
35
|
+
],
|
|
36
|
+
/*"lib": [
|
|
37
|
+
"ES2017"
|
|
38
|
+
],*/
|
|
39
|
+
"types": ["jest", "node"]
|
|
40
|
+
},
|
|
41
|
+
"include": [
|
|
42
|
+
"index.ts",
|
|
43
|
+
"lib/**/*.ts",
|
|
44
|
+
"tests/**/*.ts",
|
|
45
|
+
"generator/**/*.ts"
|
|
46
|
+
],
|
|
47
|
+
"exclude": [
|
|
48
|
+
"node_modules/**",
|
|
49
|
+
"dist/**"
|
|
50
|
+
],
|
|
51
|
+
"compileOnSave": false
|
|
52
|
+
}
|