@sphereon/oid4vci-common 0.8.2-next.4 → 0.8.2-next.48

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 (76) hide show
  1. package/dist/functions/CredentialOfferUtil.d.ts +3 -0
  2. package/dist/functions/CredentialOfferUtil.d.ts.map +1 -1
  3. package/dist/functions/CredentialOfferUtil.js +29 -1
  4. package/dist/functions/CredentialOfferUtil.js.map +1 -1
  5. package/dist/functions/CredentialRequestUtil.d.ts +3 -2
  6. package/dist/functions/CredentialRequestUtil.d.ts.map +1 -1
  7. package/dist/functions/CredentialRequestUtil.js +26 -2
  8. package/dist/functions/CredentialRequestUtil.js.map +1 -1
  9. package/dist/functions/CredentialResponseUtil.d.ts +11 -0
  10. package/dist/functions/CredentialResponseUtil.d.ts.map +1 -0
  11. package/dist/functions/CredentialResponseUtil.js +80 -0
  12. package/dist/functions/CredentialResponseUtil.js.map +1 -0
  13. package/dist/functions/Encoding.js.map +1 -1
  14. package/dist/functions/FormatUtils.d.ts +15 -0
  15. package/dist/functions/FormatUtils.d.ts.map +1 -0
  16. package/dist/functions/FormatUtils.js +44 -0
  17. package/dist/functions/FormatUtils.js.map +1 -0
  18. package/dist/functions/HttpUtils.d.ts +3 -3
  19. package/dist/functions/HttpUtils.d.ts.map +1 -1
  20. package/dist/functions/HttpUtils.js +1 -1
  21. package/dist/functions/HttpUtils.js.map +1 -1
  22. package/dist/functions/IssuerMetadataUtils.d.ts +3 -0
  23. package/dist/functions/IssuerMetadataUtils.d.ts.map +1 -1
  24. package/dist/functions/IssuerMetadataUtils.js +27 -7
  25. package/dist/functions/IssuerMetadataUtils.js.map +1 -1
  26. package/dist/functions/index.d.ts +3 -0
  27. package/dist/functions/index.d.ts.map +1 -1
  28. package/dist/functions/index.js +3 -0
  29. package/dist/functions/index.js.map +1 -1
  30. package/dist/types/Authorization.types.d.ts +17 -6
  31. package/dist/types/Authorization.types.d.ts.map +1 -1
  32. package/dist/types/Authorization.types.js +6 -6
  33. package/dist/types/Authorization.types.js.map +1 -1
  34. package/dist/types/CredentialIssuance.types.d.ts +1 -0
  35. package/dist/types/CredentialIssuance.types.d.ts.map +1 -1
  36. package/dist/types/CredentialIssuance.types.js +2 -2
  37. package/dist/types/CredentialIssuance.types.js.map +1 -1
  38. package/dist/types/Generic.types.d.ts +46 -18
  39. package/dist/types/Generic.types.d.ts.map +1 -1
  40. package/dist/types/Generic.types.js.map +1 -1
  41. package/dist/types/OpenID4VCIVersions.types.js +2 -2
  42. package/dist/types/OpenID4VCIVersions.types.js.map +1 -1
  43. package/dist/types/QRCode.types.js +0 -2
  44. package/dist/types/QRCode.types.js.map +1 -1
  45. package/dist/types/ServerMetadata.d.ts +2 -0
  46. package/dist/types/ServerMetadata.d.ts.map +1 -1
  47. package/dist/types/ServerMetadata.js +1 -1
  48. package/dist/types/ServerMetadata.js.map +1 -1
  49. package/dist/types/StateManager.types.d.ts +4 -4
  50. package/dist/types/StateManager.types.d.ts.map +1 -1
  51. package/dist/types/StateManager.types.js +1 -1
  52. package/dist/types/StateManager.types.js.map +1 -1
  53. package/dist/types/Token.types.d.ts +1 -1
  54. package/dist/types/Token.types.d.ts.map +1 -1
  55. package/dist/types/Token.types.js +1 -1
  56. package/dist/types/Token.types.js.map +1 -1
  57. package/dist/types/v1_0_08.types.d.ts +6 -2
  58. package/dist/types/v1_0_08.types.d.ts.map +1 -1
  59. package/dist/types/v1_0_11.types.d.ts +3 -15
  60. package/dist/types/v1_0_11.types.d.ts.map +1 -1
  61. package/dist/types/v1_0_11.types.js.map +1 -1
  62. package/lib/functions/CredentialOfferUtil.ts +27 -0
  63. package/lib/functions/CredentialRequestUtil.ts +31 -3
  64. package/lib/functions/CredentialResponseUtil.ts +90 -0
  65. package/lib/functions/FormatUtils.ts +52 -0
  66. package/lib/functions/HttpUtils.ts +5 -5
  67. package/lib/functions/IssuerMetadataUtils.ts +26 -4
  68. package/lib/functions/index.ts +3 -0
  69. package/lib/types/Authorization.types.ts +30 -6
  70. package/lib/types/CredentialIssuance.types.ts +2 -1
  71. package/lib/types/Generic.types.ts +63 -16
  72. package/lib/types/QRCode.types.ts +2 -2
  73. package/lib/types/ServerMetadata.ts +2 -0
  74. package/lib/types/v1_0_08.types.ts +7 -2
  75. package/lib/types/v1_0_11.types.ts +6 -20
  76. package/package.json +5 -5
@@ -3,10 +3,10 @@ import {
3
3
  CommonCredentialRequest,
4
4
  CredentialDataSupplierInput,
5
5
  CredentialOfferFormat,
6
- CredentialRequestJwtVc,
7
- CredentialRequestLdpVc,
6
+ CredentialRequestJwtVcJson,
7
+ CredentialRequestJwtVcJsonLdAndLdpVc,
8
+ CredentialRequestSdJwtVc,
8
9
  Grant,
9
- IssuerCredentialDefinition,
10
10
  } from './Generic.types';
11
11
  import { QRCodeOpts } from './QRCode.types';
12
12
 
@@ -23,7 +23,7 @@ export interface CredentialOfferRESTRequest extends CredentialOfferV1_0_11 {
23
23
  credentialDataSupplierInput?: CredentialDataSupplierInput;
24
24
  }
25
25
 
26
- export interface CommonCredentialOfferPayloadV1_0_11 {
26
+ export interface CredentialOfferPayloadV1_0_11 {
27
27
  /**
28
28
  * REQUIRED. The URL of the Credential Issuer, the Wallet is requested to obtain one or more Credentials from.
29
29
  */
@@ -50,22 +50,8 @@ export interface CommonCredentialOfferPayloadV1_0_11 {
50
50
  grants?: Grant;
51
51
  }
52
52
 
53
- export interface CredentialOfferLdpVcV1_0_11 extends CommonCredentialOfferPayloadV1_0_11 {
54
- /**
55
- * REQUIRED. JSON object containing (and isolating) the detailed description of the credential type.
56
- * This object MUST be processed using full JSON-LD processing. It consists of the following sub-claims:
57
- * - @context: REQUIRED. JSON array as defined in Appendix E.1.3.2
58
- * - types: REQUIRED. JSON array as defined in Appendix E.1.3.2.
59
- * This claim contains the type values the Wallet shall request in the subsequent Credential Request
60
- */
61
- credential_definition: IssuerCredentialDefinition;
62
- }
63
-
64
- export type CredentialOfferJwtVcV1_0_11 = CommonCredentialOfferPayloadV1_0_11;
65
-
66
- export type CredentialOfferPayloadV1_0_11 = CommonCredentialOfferPayloadV1_0_11 & (CredentialOfferLdpVcV1_0_11 | CredentialOfferJwtVcV1_0_11);
67
-
68
- export type CredentialRequestV1_0_11 = CommonCredentialRequest & (CredentialRequestJwtVc | CredentialRequestLdpVc);
53
+ export type CredentialRequestV1_0_11 = CommonCredentialRequest &
54
+ (CredentialRequestJwtVcJson | CredentialRequestJwtVcJsonLdAndLdpVc | CredentialRequestSdJwtVc);
69
55
 
70
56
  export interface AuthorizationRequestV1_0_11 extends AuthorizationDetailsJwtVcJson, AuthorizationDetailsJwtVcJson {
71
57
  issuer_state?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/oid4vci-common",
3
- "version": "0.8.2-next.4+07286fa",
3
+ "version": "0.8.2-next.48+81adb47",
4
4
  "description": "OpenID 4 Verifiable Credential Issuance Common Types",
5
5
  "source": "lib/index.ts",
6
6
  "main": "dist/index.js",
@@ -10,16 +10,16 @@
10
10
  "build:clean": "tsc --build --clean && tsc --build"
11
11
  },
12
12
  "dependencies": {
13
- "@sphereon/ssi-types": "0.17.2",
13
+ "@sphereon/ssi-types": "^0.18.1",
14
14
  "cross-fetch": "^3.1.8",
15
15
  "jwt-decode": "^3.1.2"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/jest": "^29.5.3",
19
- "typescript": "5.0.4"
19
+ "typescript": "5.3.3"
20
20
  },
21
21
  "engines": {
22
- "node": ">=16"
22
+ "node": ">=18"
23
23
  },
24
24
  "files": [
25
25
  "lib/**/*",
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "07286fa2c4963e0edfacd8eb85773b650e769d49"
49
+ "gitHead": "81adb47112f687715737f17c5e8518739b8a6a58"
50
50
  }