@sphereon/oid4vci-common 0.8.1 → 0.8.2-next.6

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.
@@ -79,6 +79,7 @@ export interface CredentialOfferFormat {
79
79
  export type CredentialDataSupplierInput = any;
80
80
  export type CreateCredentialOfferURIResult = {
81
81
  uri: string;
82
+ qrCodeDataUri?: string;
82
83
  session: CredentialOfferSession;
83
84
  userPin?: string;
84
85
  userPinLength?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"Generic.types.d.ts","sourceRoot":"","sources":["../../lib/types/Generic.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE7G,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG,gBAAgB,GAAG,QAAQ,CAAkB;AAEnG,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,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ic.types.ts"],"names":[],"mappings":";;;AAqMa,QAAA,qBAAqB,GAAG,qBAAqB,CAAC"}
1
+ {"version":3,"file":"Generic.types.js","sourceRoot":"","sources":["../../lib/types/Generic.types.ts"],"names":[],"mappings":";;;AAsMa,QAAA,qBAAqB,GAAG,qBAAqB,CAAC"}
@@ -0,0 +1,205 @@
1
+ /// <reference types="node" />
2
+ export interface ComponentOptions {
3
+ /**
4
+ * Component options for data/ECC.
5
+ */
6
+ data?: {
7
+ /**
8
+ * Scale factor for data/ECC dots.
9
+ * @default 1
10
+ */
11
+ scale?: number;
12
+ };
13
+ /**
14
+ * Component options for timing patterns.
15
+ */
16
+ timing?: {
17
+ /**
18
+ * Scale factor for timing patterns.
19
+ * @default 1
20
+ */
21
+ scale?: number;
22
+ /**
23
+ * Protector for timing patterns.
24
+ * @default false
25
+ */
26
+ protectors?: boolean;
27
+ };
28
+ /**
29
+ * Component options for alignment patterns.
30
+ */
31
+ alignment?: {
32
+ /**
33
+ * Scale factor for alignment patterns.
34
+ * @default 1
35
+ */
36
+ scale?: number;
37
+ /**
38
+ * Protector for alignment patterns.
39
+ * @default false
40
+ */
41
+ protectors?: boolean;
42
+ };
43
+ /**
44
+ * Component options for alignment pattern on the bottom-right corner.
45
+ */
46
+ cornerAlignment?: {
47
+ /**
48
+ * Scale factor for alignment pattern on the bottom-right corner.
49
+ * @default 1
50
+ */
51
+ scale?: number;
52
+ /**
53
+ * Protector for alignment pattern on the bottom-right corner.
54
+ * @default true
55
+ */
56
+ protectors?: boolean;
57
+ };
58
+ }
59
+ export interface QRCodeOpts {
60
+ /**
61
+ * Size of the QR code in pixel.
62
+ *
63
+ * @defaultValue 400
64
+ */
65
+ size?: number;
66
+ /**
67
+ * Size of margins around the QR code body in pixel.
68
+ *
69
+ * @defaultValue 20
70
+ */
71
+ margin?: number;
72
+ /**
73
+ * Error correction level of the QR code.
74
+ *
75
+ * Accepts a value provided by _QRErrorCorrectLevel_.
76
+ *
77
+ * For more information, please refer to [https://www.qrcode.com/en/about/error_correction.html](https://www.qrcode.com/en/about/error_correction.html).
78
+ *
79
+ * @defaultValue 0
80
+ */
81
+ correctLevel?: number;
82
+ /**
83
+ * **This is an advanced option.**
84
+ *
85
+ * Specify the mask pattern to be used in QR code encoding.
86
+ *
87
+ * Accepts a value provided by _QRMaskPattern_.
88
+ *
89
+ * To find out all eight mask patterns, please refer to [https://en.wikipedia.org/wiki/File:QR_Code_Mask_Patterns.svg](https://en.wikipedia.org/wiki/File:QR_Code_Mask_Patterns.svg)
90
+ *
91
+ * For more information, please refer to [https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Masking](https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Masking).
92
+ */
93
+ maskPattern?: number;
94
+ /**
95
+ * **This is an advanced option.**
96
+ *
97
+ * Specify the version to be used in QR code encoding.
98
+ *
99
+ * Accepts an integer in range [1, 40].
100
+ *
101
+ * For more information, please refer to [https://www.qrcode.com/en/about/version.html](https://www.qrcode.com/en/about/version.html).
102
+ */
103
+ version?: number;
104
+ /**
105
+ * Options to control components in the QR code.
106
+ *
107
+ * @deafultValue undefined
108
+ */
109
+ components?: ComponentOptions;
110
+ /**
111
+ * Color of the blocks on the QR code.
112
+ *
113
+ * Accepts a CSS &lt;color&gt;.
114
+ *
115
+ * For more information about CSS &lt;color&gt;, please refer to [https://developer.mozilla.org/en-US/docs/Web/CSS/color_value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).
116
+ *
117
+ * @defaultValue "#000000"
118
+ */
119
+ colorDark?: string;
120
+ /**
121
+ * Color of the empty areas on the QR code.
122
+ *
123
+ * Accepts a CSS &lt;color&gt;.
124
+ *
125
+ * For more information about CSS &lt;color&gt;, please refer to [https://developer.mozilla.org/en-US/docs/Web/CSS/color_value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).
126
+ *
127
+ * @defaultValue "#ffffff"
128
+ */
129
+ colorLight?: string;
130
+ /**
131
+ * Automatically calculate the _colorLight_ value from the QR code's background.
132
+ *
133
+ * @defaultValue true
134
+ */
135
+ autoColor?: boolean;
136
+ /**
137
+ * Background image to be used in the QR code.
138
+ *
139
+ * Accepts a `data:` string in web browsers or a Buffer in Node.js.
140
+ *
141
+ * @defaultValue undefined
142
+ */
143
+ backgroundImage?: string | Buffer;
144
+ /**
145
+ * Color of the dimming mask above the background image.
146
+ *
147
+ * Accepts a CSS &lt;color&gt;.
148
+ *
149
+ * For more information about CSS &lt;color&gt;, please refer to [https://developer.mozilla.org/en-US/docs/Web/CSS/color_value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).
150
+ *
151
+ * @defaultValue "rgba(0, 0, 0, 0)"
152
+ */
153
+ backgroundDimming?: string;
154
+ /**
155
+ * GIF background image to be used in the QR code.
156
+ *
157
+ * @defaultValue undefined
158
+ */
159
+ gifBackground?: ArrayBuffer;
160
+ /**
161
+ * Use a white margin instead of a transparent one which reveals the background of the QR code on margins.
162
+ *
163
+ * @defaultValue true
164
+ */
165
+ whiteMargin?: boolean;
166
+ /**
167
+ * Logo image to be displayed at the center of the QR code.
168
+ *
169
+ * Accepts a `data:` string in web browsers or a Buffer in Node.js.
170
+ *
171
+ * When set to `undefined` or `null`, the logo is disabled.
172
+ *
173
+ * @defaultValue undefined
174
+ */
175
+ logoImage?: string | Buffer;
176
+ /**
177
+ * Ratio of the logo size to the QR code size.
178
+ *
179
+ * @defaultValue 0.2
180
+ */
181
+ logoScale?: number;
182
+ /**
183
+ * Size of margins around the logo image in pixels.
184
+ *
185
+ * @defaultValue 6
186
+ */
187
+ logoMargin?: number;
188
+ /**
189
+ * Corner radius of the logo image in pixels.
190
+ *
191
+ * @defaultValue 8
192
+ */
193
+ logoCornerRadius?: number;
194
+ /**
195
+ * @deprecated
196
+ *
197
+ * Ratio of the real size to the full size of the blocks.
198
+ *
199
+ * This can be helpful when you want to make more parts of the background visible.
200
+ *
201
+ * @deafultValue 0.4
202
+ */
203
+ dotScale?: number;
204
+ }
205
+ //# sourceMappingURL=QRCode.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QRCode.types.d.ts","sourceRoot":"","sources":["../../lib/types/QRCode.types.ts"],"names":[],"mappings":";AAAA,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE;QACL;;;WAGG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF;;OAEG;IACH,MAAM,CAAC,EAAE;QACP;;;WAGG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;WAGG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;IAEF;;OAEG;IACH,SAAS,CAAC,EAAE;QACV;;;WAGG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;WAGG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;IAEF;;OAEG;IACH,eAAe,CAAC,EAAE;QAChB;;;WAGG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;WAGG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;CACH;AAED,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAE9B;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAElC;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,aAAa,CAAC,EAAE,WAAW,CAAC;IAE5B;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ ;
4
+ ;
5
+ //# sourceMappingURL=QRCode.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QRCode.types.js","sourceRoot":"","sources":["../../lib/types/QRCode.types.ts"],"names":[],"mappings":";;AA8DC,CAAC;AAoKD,CAAC"}
@@ -9,4 +9,5 @@ export * from './OpenID4VCIErrors';
9
9
  export * from './OpenID4VCIVersions.types';
10
10
  export * from './StateManager.types';
11
11
  export * from './Token.types';
12
+ export * from './QRCode.types';
12
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
@@ -25,4 +25,5 @@ __exportStar(require("./OpenID4VCIErrors"), exports);
25
25
  __exportStar(require("./OpenID4VCIVersions.types"), exports);
26
26
  __exportStar(require("./StateManager.types"), exports);
27
27
  __exportStar(require("./Token.types"), exports);
28
+ __exportStar(require("./QRCode.types"), exports);
28
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,6DAA2C;AAC3C,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC;AAChC,mDAAiC;AACjC,qDAAmC;AACnC,6DAA2C;AAC3C,uDAAqC;AACrC,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,6DAA2C;AAC3C,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC;AAChC,mDAAiC;AACjC,qDAAmC;AACnC,6DAA2C;AAC3C,uDAAqC;AACrC,gDAA8B;AAC9B,iDAA+B"}
@@ -1,5 +1,6 @@
1
1
  import { AuthorizationDetailsJwtVcJson, CommonAuthorizationRequest } from './Authorization.types';
2
2
  import { CommonCredentialRequest, CredentialDataSupplierInput, CredentialOfferFormat, CredentialRequestJwtVc, CredentialRequestLdpVc, Grant, IssuerCredentialDefinition } from './Generic.types';
3
+ import { QRCodeOpts } from './QRCode.types';
3
4
  export interface CredentialOfferV1_0_11 {
4
5
  credential_offer?: CredentialOfferPayloadV1_0_11;
5
6
  credential_offer_uri?: string;
@@ -8,6 +9,7 @@ export interface CredentialOfferRESTRequest extends CredentialOfferV1_0_11 {
8
9
  baseUri?: string;
9
10
  scheme?: string;
10
11
  pinLength?: number;
12
+ qrCodeOpts?: QRCodeOpts;
11
13
  credentialDataSupplierInput?: CredentialDataSupplierInput;
12
14
  }
13
15
  export interface CommonCredentialOfferPayloadV1_0_11 {
@@ -1 +1 @@
1
- {"version":3,"file":"v1_0_11.types.d.ts","sourceRoot":"","sources":["../../lib/types/v1_0_11.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAClG,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,KAAK,EACL,0BAA0B,EAC3B,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,CAAC,EAAE,6BAA6B,CAAC;IACjD,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,0BAA2B,SAAQ,sBAAsB;IACxE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2BAA2B,CAAC,EAAE,2BAA2B,CAAC;CAC3D;AAED,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;;;;;;OAQG;IACH,WAAW,EAAE,CAAC,qBAAqB,GAAG,MAAM,CAAC,EAAE,CAAC;IAChD;;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C3D;AAED,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;;;;;;OAQG;IACH,WAAW,EAAE,CAAC,qBAAqB,GAAG,MAAM,CAAC,EAAE,CAAC;IAChD;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB;AAED,MAAM,WAAW,2BAA4B,SAAQ,mCAAmC;IACtF;;;;;;OAMG;IACH,qBAAqB,EAAE,0BAA0B,CAAC;CACnD;AAED,MAAM,MAAM,2BAA2B,GAAG,mCAAmC,CAAC;AAE9E,MAAM,MAAM,6BAA6B,GAAG,mCAAmC,GAAG,CAAC,2BAA2B,GAAG,2BAA2B,CAAC,CAAC;AAE9I,MAAM,MAAM,wBAAwB,GAAG,uBAAuB,GAAG,CAAC,sBAAsB,GAAG,sBAAsB,CAAC,CAAC;AAEnH,MAAM,WAAW,2BAA4B,SAAQ,6BAA6B,EAAE,6BAA6B;IAC/G,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAGD,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAE1F"}
@@ -1 +1 @@
1
- {"version":3,"file":"v1_0_11.types.js","sourceRoot":"","sources":["../../lib/types/v1_0_11.types.ts"],"names":[],"mappings":";;;AAuEA,qDAAqD;AACrD,SAAgB,6BAA6B,CAAC,OAAmC;IAC/E,OAAO,OAAO,IAAI,cAAc,IAAI,OAAO,CAAC;AAC9C,CAAC;AAFD,sEAEC"}
1
+ {"version":3,"file":"v1_0_11.types.js","sourceRoot":"","sources":["../../lib/types/v1_0_11.types.ts"],"names":[],"mappings":";;;AAyEA,qDAAqD;AACrD,SAAgB,6BAA6B,CAAC,OAAmC;IAC/E,OAAO,OAAO,IAAI,cAAc,IAAI,OAAO,CAAC;AAC9C,CAAC;AAFD,sEAEC"}
@@ -101,6 +101,7 @@ export type CredentialDataSupplierInput = any;
101
101
 
102
102
  export type CreateCredentialOfferURIResult = {
103
103
  uri: string;
104
+ qrCodeDataUri?: string;
104
105
  session: CredentialOfferSession;
105
106
  userPin?: string;
106
107
  userPinLength?: number;
@@ -0,0 +1,227 @@
1
+ export interface ComponentOptions {
2
+ /**
3
+ * Component options for data/ECC.
4
+ */
5
+ data?: {
6
+ /**
7
+ * Scale factor for data/ECC dots.
8
+ * @default 1
9
+ */
10
+ scale?: number;
11
+ };
12
+
13
+ /**
14
+ * Component options for timing patterns.
15
+ */
16
+ timing?: {
17
+ /**
18
+ * Scale factor for timing patterns.
19
+ * @default 1
20
+ */
21
+ scale?: number;
22
+
23
+ /**
24
+ * Protector for timing patterns.
25
+ * @default false
26
+ */
27
+ protectors?: boolean;
28
+ };
29
+
30
+ /**
31
+ * Component options for alignment patterns.
32
+ */
33
+ alignment?: {
34
+ /**
35
+ * Scale factor for alignment patterns.
36
+ * @default 1
37
+ */
38
+ scale?: number;
39
+
40
+ /**
41
+ * Protector for alignment patterns.
42
+ * @default false
43
+ */
44
+ protectors?: boolean;
45
+ };
46
+
47
+ /**
48
+ * Component options for alignment pattern on the bottom-right corner.
49
+ */
50
+ cornerAlignment?: {
51
+ /**
52
+ * Scale factor for alignment pattern on the bottom-right corner.
53
+ * @default 1
54
+ */
55
+ scale?: number;
56
+
57
+ /**
58
+ * Protector for alignment pattern on the bottom-right corner.
59
+ * @default true
60
+ */
61
+ protectors?: boolean;
62
+ };
63
+ };
64
+
65
+ export interface QRCodeOpts {
66
+ /**
67
+ * Size of the QR code in pixel.
68
+ *
69
+ * @defaultValue 400
70
+ */
71
+ size?: number;
72
+
73
+ /**
74
+ * Size of margins around the QR code body in pixel.
75
+ *
76
+ * @defaultValue 20
77
+ */
78
+ margin?: number;
79
+
80
+ /**
81
+ * Error correction level of the QR code.
82
+ *
83
+ * Accepts a value provided by _QRErrorCorrectLevel_.
84
+ *
85
+ * For more information, please refer to [https://www.qrcode.com/en/about/error_correction.html](https://www.qrcode.com/en/about/error_correction.html).
86
+ *
87
+ * @defaultValue 0
88
+ */
89
+ correctLevel?: number;
90
+
91
+ /**
92
+ * **This is an advanced option.**
93
+ *
94
+ * Specify the mask pattern to be used in QR code encoding.
95
+ *
96
+ * Accepts a value provided by _QRMaskPattern_.
97
+ *
98
+ * To find out all eight mask patterns, please refer to [https://en.wikipedia.org/wiki/File:QR_Code_Mask_Patterns.svg](https://en.wikipedia.org/wiki/File:QR_Code_Mask_Patterns.svg)
99
+ *
100
+ * For more information, please refer to [https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Masking](https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Masking).
101
+ */
102
+ maskPattern?: number;
103
+
104
+ /**
105
+ * **This is an advanced option.**
106
+ *
107
+ * Specify the version to be used in QR code encoding.
108
+ *
109
+ * Accepts an integer in range [1, 40].
110
+ *
111
+ * For more information, please refer to [https://www.qrcode.com/en/about/version.html](https://www.qrcode.com/en/about/version.html).
112
+ */
113
+ version?: number;
114
+
115
+ /**
116
+ * Options to control components in the QR code.
117
+ *
118
+ * @deafultValue undefined
119
+ */
120
+ components?: ComponentOptions;
121
+
122
+ /**
123
+ * Color of the blocks on the QR code.
124
+ *
125
+ * Accepts a CSS &lt;color&gt;.
126
+ *
127
+ * For more information about CSS &lt;color&gt;, please refer to [https://developer.mozilla.org/en-US/docs/Web/CSS/color_value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).
128
+ *
129
+ * @defaultValue "#000000"
130
+ */
131
+ colorDark?: string;
132
+
133
+ /**
134
+ * Color of the empty areas on the QR code.
135
+ *
136
+ * Accepts a CSS &lt;color&gt;.
137
+ *
138
+ * For more information about CSS &lt;color&gt;, please refer to [https://developer.mozilla.org/en-US/docs/Web/CSS/color_value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).
139
+ *
140
+ * @defaultValue "#ffffff"
141
+ */
142
+ colorLight?: string;
143
+
144
+ /**
145
+ * Automatically calculate the _colorLight_ value from the QR code's background.
146
+ *
147
+ * @defaultValue true
148
+ */
149
+ autoColor?: boolean;
150
+
151
+ /**
152
+ * Background image to be used in the QR code.
153
+ *
154
+ * Accepts a `data:` string in web browsers or a Buffer in Node.js.
155
+ *
156
+ * @defaultValue undefined
157
+ */
158
+ backgroundImage?: string | Buffer;
159
+
160
+ /**
161
+ * Color of the dimming mask above the background image.
162
+ *
163
+ * Accepts a CSS &lt;color&gt;.
164
+ *
165
+ * For more information about CSS &lt;color&gt;, please refer to [https://developer.mozilla.org/en-US/docs/Web/CSS/color_value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).
166
+ *
167
+ * @defaultValue "rgba(0, 0, 0, 0)"
168
+ */
169
+ backgroundDimming?: string;
170
+
171
+ /**
172
+ * GIF background image to be used in the QR code.
173
+ *
174
+ * @defaultValue undefined
175
+ */
176
+ gifBackground?: ArrayBuffer;
177
+
178
+ /**
179
+ * Use a white margin instead of a transparent one which reveals the background of the QR code on margins.
180
+ *
181
+ * @defaultValue true
182
+ */
183
+ whiteMargin?: boolean;
184
+
185
+ /**
186
+ * Logo image to be displayed at the center of the QR code.
187
+ *
188
+ * Accepts a `data:` string in web browsers or a Buffer in Node.js.
189
+ *
190
+ * When set to `undefined` or `null`, the logo is disabled.
191
+ *
192
+ * @defaultValue undefined
193
+ */
194
+ logoImage?: string | Buffer;
195
+
196
+ /**
197
+ * Ratio of the logo size to the QR code size.
198
+ *
199
+ * @defaultValue 0.2
200
+ */
201
+ logoScale?: number;
202
+
203
+ /**
204
+ * Size of margins around the logo image in pixels.
205
+ *
206
+ * @defaultValue 6
207
+ */
208
+ logoMargin?: number;
209
+
210
+ /**
211
+ * Corner radius of the logo image in pixels.
212
+ *
213
+ * @defaultValue 8
214
+ */
215
+ logoCornerRadius?: number;
216
+
217
+ /**
218
+ * @deprecated
219
+ *
220
+ * Ratio of the real size to the full size of the blocks.
221
+ *
222
+ * This can be helpful when you want to make more parts of the background visible.
223
+ *
224
+ * @deafultValue 0.4
225
+ */
226
+ dotScale?: number;
227
+ };
@@ -9,3 +9,4 @@ export * from './OpenID4VCIErrors';
9
9
  export * from './OpenID4VCIVersions.types';
10
10
  export * from './StateManager.types';
11
11
  export * from './Token.types';
12
+ export * from './QRCode.types';
@@ -8,6 +8,7 @@ import {
8
8
  Grant,
9
9
  IssuerCredentialDefinition,
10
10
  } from './Generic.types';
11
+ import { QRCodeOpts } from './QRCode.types';
11
12
 
12
13
  export interface CredentialOfferV1_0_11 {
13
14
  credential_offer?: CredentialOfferPayloadV1_0_11;
@@ -18,6 +19,7 @@ export interface CredentialOfferRESTRequest extends CredentialOfferV1_0_11 {
18
19
  baseUri?: string;
19
20
  scheme?: string;
20
21
  pinLength?: number;
22
+ qrCodeOpts?: QRCodeOpts;
21
23
  credentialDataSupplierInput?: CredentialDataSupplierInput;
22
24
  }
23
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/oid4vci-common",
3
- "version": "0.8.1",
3
+ "version": "0.8.2-next.6+094ebfc",
4
4
  "description": "OpenID 4 Verifiable Credential Issuance Common Types",
5
5
  "source": "lib/index.ts",
6
6
  "main": "dist/index.js",
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "535b3ca77228717a3a2e1def0287c5c402f334a1"
49
+ "gitHead": "094ebfc61e1650e3c7bb32e4a22ec576d7049f18"
50
50
  }