@pagopa/io-react-native-wallet 0.4.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +128 -19
- package/lib/commonjs/index.js +16 -23
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/pid/index.js +3 -8
- package/lib/commonjs/pid/index.js.map +1 -1
- package/lib/commonjs/pid/issuing.js +153 -176
- package/lib/commonjs/pid/issuing.js.map +1 -1
- package/lib/commonjs/rp/__test__/index.test.js +7 -5
- package/lib/commonjs/rp/__test__/index.test.js.map +1 -1
- package/lib/commonjs/rp/index.js +145 -155
- package/lib/commonjs/rp/index.js.map +1 -1
- package/lib/commonjs/rp/types.js +1 -21
- package/lib/commonjs/rp/types.js.map +1 -1
- package/lib/commonjs/trust/index.js +24 -5
- package/lib/commonjs/trust/index.js.map +1 -1
- package/lib/commonjs/trust/types.js +102 -9
- package/lib/commonjs/trust/types.js.map +1 -1
- package/lib/commonjs/utils/crypto.js +46 -0
- package/lib/commonjs/utils/crypto.js.map +1 -0
- package/lib/commonjs/utils/dpop.js +14 -7
- package/lib/commonjs/utils/dpop.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/index.js +3 -3
- package/lib/commonjs/wallet-instance-attestation/issuing.js +42 -60
- package/lib/commonjs/wallet-instance-attestation/issuing.js.map +1 -1
- package/lib/module/index.js +4 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/pid/index.js +1 -1
- package/lib/module/pid/index.js.map +1 -1
- package/lib/module/pid/issuing.js +152 -180
- package/lib/module/pid/issuing.js.map +1 -1
- package/lib/module/rp/__test__/index.test.js +3 -3
- package/lib/module/rp/__test__/index.test.js.map +1 -1
- package/lib/module/rp/index.js +141 -154
- package/lib/module/rp/index.js.map +1 -1
- package/lib/module/rp/types.js +0 -20
- package/lib/module/rp/types.js.map +1 -1
- package/lib/module/trust/index.js +19 -5
- package/lib/module/trust/index.js.map +1 -1
- package/lib/module/trust/types.js +100 -7
- package/lib/module/trust/types.js.map +1 -1
- package/lib/module/utils/crypto.js +40 -0
- package/lib/module/utils/crypto.js.map +1 -0
- package/lib/module/utils/dpop.js +13 -5
- package/lib/module/utils/dpop.js.map +1 -1
- package/lib/module/wallet-instance-attestation/index.js +2 -2
- package/lib/module/wallet-instance-attestation/index.js.map +1 -1
- package/lib/module/wallet-instance-attestation/issuing.js +40 -58
- package/lib/module/wallet-instance-attestation/issuing.js.map +1 -1
- package/lib/typescript/index.d.ts +4 -6
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/pid/index.d.ts +1 -1
- package/lib/typescript/pid/index.d.ts.map +1 -1
- package/lib/typescript/pid/issuing.d.ts +43 -88
- package/lib/typescript/pid/issuing.d.ts.map +1 -1
- package/lib/typescript/rp/index.d.ts +41 -87
- package/lib/typescript/rp/index.d.ts.map +1 -1
- package/lib/typescript/rp/types.d.ts +10 -906
- package/lib/typescript/rp/types.d.ts.map +1 -1
- package/lib/typescript/sd-jwt/index.d.ts +1 -1
- package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
- package/lib/typescript/trust/index.d.ts +806 -3
- package/lib/typescript/trust/index.d.ts.map +1 -1
- package/lib/typescript/trust/types.d.ts +9655 -297
- package/lib/typescript/trust/types.d.ts.map +1 -1
- package/lib/typescript/utils/crypto.d.ts +10 -0
- package/lib/typescript/utils/crypto.d.ts.map +1 -0
- package/lib/typescript/utils/dpop.d.ts +10 -2
- package/lib/typescript/utils/dpop.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/index.d.ts +2 -2
- package/lib/typescript/wallet-instance-attestation/index.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/issuing.d.ts +18 -31
- package/lib/typescript/wallet-instance-attestation/issuing.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/types.d.ts +4 -4
- package/package.json +2 -2
- package/src/index.ts +14 -13
- package/src/pid/index.ts +1 -1
- package/src/pid/issuing.ts +233 -232
- package/src/rp/__test__/index.test.ts +3 -3
- package/src/rp/index.ts +172 -194
- package/src/rp/types.ts +0 -24
- package/src/sd-jwt/index.ts +1 -1
- package/src/trust/index.ts +106 -5
- package/src/trust/types.ts +152 -34
- package/src/utils/crypto.ts +41 -0
- package/src/utils/dpop.ts +17 -7
- package/src/wallet-instance-attestation/index.ts +2 -2
- package/src/wallet-instance-attestation/issuing.ts +51 -63
- package/lib/commonjs/pid/metadata.js +0 -49
- package/lib/commonjs/pid/metadata.js.map +0 -1
- package/lib/module/pid/metadata.js +0 -41
- package/lib/module/pid/metadata.js.map +0 -1
- package/lib/typescript/pid/metadata.d.ts +0 -482
- package/lib/typescript/pid/metadata.d.ts.map +0 -1
- package/src/pid/metadata.ts +0 -46
@@ -1,482 +0,0 @@
|
|
1
|
-
import { z } from "zod";
|
2
|
-
export type PidDisplayMetadata = z.infer<typeof PidDisplayMetadata>;
|
3
|
-
export declare const PidDisplayMetadata: z.ZodObject<{
|
4
|
-
name: z.ZodString;
|
5
|
-
locale: z.ZodString;
|
6
|
-
logo: z.ZodObject<{
|
7
|
-
url: z.ZodString;
|
8
|
-
alt_text: z.ZodString;
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
10
|
-
url: string;
|
11
|
-
alt_text: string;
|
12
|
-
}, {
|
13
|
-
url: string;
|
14
|
-
alt_text: string;
|
15
|
-
}>;
|
16
|
-
background_color: z.ZodString;
|
17
|
-
text_color: z.ZodString;
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
19
|
-
name: string;
|
20
|
-
locale: string;
|
21
|
-
logo: {
|
22
|
-
url: string;
|
23
|
-
alt_text: string;
|
24
|
-
};
|
25
|
-
background_color: string;
|
26
|
-
text_color: string;
|
27
|
-
}, {
|
28
|
-
name: string;
|
29
|
-
locale: string;
|
30
|
-
logo: {
|
31
|
-
url: string;
|
32
|
-
alt_text: string;
|
33
|
-
};
|
34
|
-
background_color: string;
|
35
|
-
text_color: string;
|
36
|
-
}>;
|
37
|
-
export type PidIssuerEntityConfiguration = z.infer<typeof PidIssuerEntityConfiguration>;
|
38
|
-
export declare const PidIssuerEntityConfiguration: z.ZodObject<{
|
39
|
-
jwks: z.ZodObject<{
|
40
|
-
keys: z.ZodArray<z.ZodObject<{
|
41
|
-
alg: z.ZodOptional<z.ZodString>;
|
42
|
-
crv: z.ZodOptional<z.ZodString>;
|
43
|
-
d: z.ZodOptional<z.ZodString>;
|
44
|
-
dp: z.ZodOptional<z.ZodString>;
|
45
|
-
dq: z.ZodOptional<z.ZodString>;
|
46
|
-
e: z.ZodOptional<z.ZodString>;
|
47
|
-
ext: z.ZodOptional<z.ZodBoolean>;
|
48
|
-
k: z.ZodOptional<z.ZodString>;
|
49
|
-
key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
50
|
-
kid: z.ZodOptional<z.ZodString>;
|
51
|
-
kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
|
52
|
-
n: z.ZodOptional<z.ZodString>;
|
53
|
-
p: z.ZodOptional<z.ZodString>;
|
54
|
-
q: z.ZodOptional<z.ZodString>;
|
55
|
-
qi: z.ZodOptional<z.ZodString>;
|
56
|
-
use: z.ZodOptional<z.ZodString>;
|
57
|
-
x: z.ZodOptional<z.ZodString>;
|
58
|
-
y: z.ZodOptional<z.ZodString>;
|
59
|
-
x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
60
|
-
x5t: z.ZodOptional<z.ZodString>;
|
61
|
-
"x5t#S256": z.ZodOptional<z.ZodString>;
|
62
|
-
x5u: z.ZodOptional<z.ZodString>;
|
63
|
-
}, "strip", z.ZodTypeAny, {
|
64
|
-
kty: "RSA" | "EC";
|
65
|
-
alg?: string | undefined;
|
66
|
-
crv?: string | undefined;
|
67
|
-
d?: string | undefined;
|
68
|
-
dp?: string | undefined;
|
69
|
-
dq?: string | undefined;
|
70
|
-
e?: string | undefined;
|
71
|
-
ext?: boolean | undefined;
|
72
|
-
k?: string | undefined;
|
73
|
-
key_ops?: string[] | undefined;
|
74
|
-
kid?: string | undefined;
|
75
|
-
n?: string | undefined;
|
76
|
-
p?: string | undefined;
|
77
|
-
q?: string | undefined;
|
78
|
-
qi?: string | undefined;
|
79
|
-
use?: string | undefined;
|
80
|
-
x?: string | undefined;
|
81
|
-
y?: string | undefined;
|
82
|
-
x5c?: string[] | undefined;
|
83
|
-
x5t?: string | undefined;
|
84
|
-
"x5t#S256"?: string | undefined;
|
85
|
-
x5u?: string | undefined;
|
86
|
-
}, {
|
87
|
-
kty: "RSA" | "EC";
|
88
|
-
alg?: string | undefined;
|
89
|
-
crv?: string | undefined;
|
90
|
-
d?: string | undefined;
|
91
|
-
dp?: string | undefined;
|
92
|
-
dq?: string | undefined;
|
93
|
-
e?: string | undefined;
|
94
|
-
ext?: boolean | undefined;
|
95
|
-
k?: string | undefined;
|
96
|
-
key_ops?: string[] | undefined;
|
97
|
-
kid?: string | undefined;
|
98
|
-
n?: string | undefined;
|
99
|
-
p?: string | undefined;
|
100
|
-
q?: string | undefined;
|
101
|
-
qi?: string | undefined;
|
102
|
-
use?: string | undefined;
|
103
|
-
x?: string | undefined;
|
104
|
-
y?: string | undefined;
|
105
|
-
x5c?: string[] | undefined;
|
106
|
-
x5t?: string | undefined;
|
107
|
-
"x5t#S256"?: string | undefined;
|
108
|
-
x5u?: string | undefined;
|
109
|
-
}>, "many">;
|
110
|
-
}, "strip", z.ZodTypeAny, {
|
111
|
-
keys: {
|
112
|
-
kty: "RSA" | "EC";
|
113
|
-
alg?: string | undefined;
|
114
|
-
crv?: string | undefined;
|
115
|
-
d?: string | undefined;
|
116
|
-
dp?: string | undefined;
|
117
|
-
dq?: string | undefined;
|
118
|
-
e?: string | undefined;
|
119
|
-
ext?: boolean | undefined;
|
120
|
-
k?: string | undefined;
|
121
|
-
key_ops?: string[] | undefined;
|
122
|
-
kid?: string | undefined;
|
123
|
-
n?: string | undefined;
|
124
|
-
p?: string | undefined;
|
125
|
-
q?: string | undefined;
|
126
|
-
qi?: string | undefined;
|
127
|
-
use?: string | undefined;
|
128
|
-
x?: string | undefined;
|
129
|
-
y?: string | undefined;
|
130
|
-
x5c?: string[] | undefined;
|
131
|
-
x5t?: string | undefined;
|
132
|
-
"x5t#S256"?: string | undefined;
|
133
|
-
x5u?: string | undefined;
|
134
|
-
}[];
|
135
|
-
}, {
|
136
|
-
keys: {
|
137
|
-
kty: "RSA" | "EC";
|
138
|
-
alg?: string | undefined;
|
139
|
-
crv?: string | undefined;
|
140
|
-
d?: string | undefined;
|
141
|
-
dp?: string | undefined;
|
142
|
-
dq?: string | undefined;
|
143
|
-
e?: string | undefined;
|
144
|
-
ext?: boolean | undefined;
|
145
|
-
k?: string | undefined;
|
146
|
-
key_ops?: string[] | undefined;
|
147
|
-
kid?: string | undefined;
|
148
|
-
n?: string | undefined;
|
149
|
-
p?: string | undefined;
|
150
|
-
q?: string | undefined;
|
151
|
-
qi?: string | undefined;
|
152
|
-
use?: string | undefined;
|
153
|
-
x?: string | undefined;
|
154
|
-
y?: string | undefined;
|
155
|
-
x5c?: string[] | undefined;
|
156
|
-
x5t?: string | undefined;
|
157
|
-
"x5t#S256"?: string | undefined;
|
158
|
-
x5u?: string | undefined;
|
159
|
-
}[];
|
160
|
-
}>;
|
161
|
-
metadata: z.ZodObject<{
|
162
|
-
openid_credential_issuer: z.ZodObject<{
|
163
|
-
credential_issuer: z.ZodString;
|
164
|
-
authorization_endpoint: z.ZodString;
|
165
|
-
token_endpoint: z.ZodString;
|
166
|
-
pushed_authorization_request_endpoint: z.ZodString;
|
167
|
-
dpop_signing_alg_values_supported: z.ZodArray<z.ZodString, "many">;
|
168
|
-
credential_endpoint: z.ZodString;
|
169
|
-
credentials_supported: z.ZodArray<z.ZodObject<{
|
170
|
-
format: z.ZodLiteral<"vc+sd-jwt">;
|
171
|
-
cryptographic_binding_methods_supported: z.ZodArray<z.ZodString, "many">;
|
172
|
-
cryptographic_suites_supported: z.ZodArray<z.ZodString, "many">;
|
173
|
-
display: z.ZodArray<z.ZodObject<{
|
174
|
-
name: z.ZodString;
|
175
|
-
locale: z.ZodString;
|
176
|
-
logo: z.ZodObject<{
|
177
|
-
url: z.ZodString;
|
178
|
-
alt_text: z.ZodString;
|
179
|
-
}, "strip", z.ZodTypeAny, {
|
180
|
-
url: string;
|
181
|
-
alt_text: string;
|
182
|
-
}, {
|
183
|
-
url: string;
|
184
|
-
alt_text: string;
|
185
|
-
}>;
|
186
|
-
background_color: z.ZodString;
|
187
|
-
text_color: z.ZodString;
|
188
|
-
}, "strip", z.ZodTypeAny, {
|
189
|
-
name: string;
|
190
|
-
locale: string;
|
191
|
-
logo: {
|
192
|
-
url: string;
|
193
|
-
alt_text: string;
|
194
|
-
};
|
195
|
-
background_color: string;
|
196
|
-
text_color: string;
|
197
|
-
}, {
|
198
|
-
name: string;
|
199
|
-
locale: string;
|
200
|
-
logo: {
|
201
|
-
url: string;
|
202
|
-
alt_text: string;
|
203
|
-
};
|
204
|
-
background_color: string;
|
205
|
-
text_color: string;
|
206
|
-
}>, "many">;
|
207
|
-
}, "strip", z.ZodTypeAny, {
|
208
|
-
format: "vc+sd-jwt";
|
209
|
-
cryptographic_binding_methods_supported: string[];
|
210
|
-
cryptographic_suites_supported: string[];
|
211
|
-
display: {
|
212
|
-
name: string;
|
213
|
-
locale: string;
|
214
|
-
logo: {
|
215
|
-
url: string;
|
216
|
-
alt_text: string;
|
217
|
-
};
|
218
|
-
background_color: string;
|
219
|
-
text_color: string;
|
220
|
-
}[];
|
221
|
-
}, {
|
222
|
-
format: "vc+sd-jwt";
|
223
|
-
cryptographic_binding_methods_supported: string[];
|
224
|
-
cryptographic_suites_supported: string[];
|
225
|
-
display: {
|
226
|
-
name: string;
|
227
|
-
locale: string;
|
228
|
-
logo: {
|
229
|
-
url: string;
|
230
|
-
alt_text: string;
|
231
|
-
};
|
232
|
-
background_color: string;
|
233
|
-
text_color: string;
|
234
|
-
}[];
|
235
|
-
}>, "many">;
|
236
|
-
}, "strip", z.ZodTypeAny, {
|
237
|
-
credential_issuer: string;
|
238
|
-
authorization_endpoint: string;
|
239
|
-
token_endpoint: string;
|
240
|
-
pushed_authorization_request_endpoint: string;
|
241
|
-
dpop_signing_alg_values_supported: string[];
|
242
|
-
credential_endpoint: string;
|
243
|
-
credentials_supported: {
|
244
|
-
format: "vc+sd-jwt";
|
245
|
-
cryptographic_binding_methods_supported: string[];
|
246
|
-
cryptographic_suites_supported: string[];
|
247
|
-
display: {
|
248
|
-
name: string;
|
249
|
-
locale: string;
|
250
|
-
logo: {
|
251
|
-
url: string;
|
252
|
-
alt_text: string;
|
253
|
-
};
|
254
|
-
background_color: string;
|
255
|
-
text_color: string;
|
256
|
-
}[];
|
257
|
-
}[];
|
258
|
-
}, {
|
259
|
-
credential_issuer: string;
|
260
|
-
authorization_endpoint: string;
|
261
|
-
token_endpoint: string;
|
262
|
-
pushed_authorization_request_endpoint: string;
|
263
|
-
dpop_signing_alg_values_supported: string[];
|
264
|
-
credential_endpoint: string;
|
265
|
-
credentials_supported: {
|
266
|
-
format: "vc+sd-jwt";
|
267
|
-
cryptographic_binding_methods_supported: string[];
|
268
|
-
cryptographic_suites_supported: string[];
|
269
|
-
display: {
|
270
|
-
name: string;
|
271
|
-
locale: string;
|
272
|
-
logo: {
|
273
|
-
url: string;
|
274
|
-
alt_text: string;
|
275
|
-
};
|
276
|
-
background_color: string;
|
277
|
-
text_color: string;
|
278
|
-
}[];
|
279
|
-
}[];
|
280
|
-
}>;
|
281
|
-
federation_entity: z.ZodObject<{
|
282
|
-
organization_name: z.ZodString;
|
283
|
-
homepage_uri: z.ZodString;
|
284
|
-
policy_uri: z.ZodString;
|
285
|
-
tos_uri: z.ZodString;
|
286
|
-
logo_uri: z.ZodString;
|
287
|
-
}, "strip", z.ZodTypeAny, {
|
288
|
-
organization_name: string;
|
289
|
-
homepage_uri: string;
|
290
|
-
policy_uri: string;
|
291
|
-
tos_uri: string;
|
292
|
-
logo_uri: string;
|
293
|
-
}, {
|
294
|
-
organization_name: string;
|
295
|
-
homepage_uri: string;
|
296
|
-
policy_uri: string;
|
297
|
-
tos_uri: string;
|
298
|
-
logo_uri: string;
|
299
|
-
}>;
|
300
|
-
}, "strip", z.ZodTypeAny, {
|
301
|
-
openid_credential_issuer: {
|
302
|
-
credential_issuer: string;
|
303
|
-
authorization_endpoint: string;
|
304
|
-
token_endpoint: string;
|
305
|
-
pushed_authorization_request_endpoint: string;
|
306
|
-
dpop_signing_alg_values_supported: string[];
|
307
|
-
credential_endpoint: string;
|
308
|
-
credentials_supported: {
|
309
|
-
format: "vc+sd-jwt";
|
310
|
-
cryptographic_binding_methods_supported: string[];
|
311
|
-
cryptographic_suites_supported: string[];
|
312
|
-
display: {
|
313
|
-
name: string;
|
314
|
-
locale: string;
|
315
|
-
logo: {
|
316
|
-
url: string;
|
317
|
-
alt_text: string;
|
318
|
-
};
|
319
|
-
background_color: string;
|
320
|
-
text_color: string;
|
321
|
-
}[];
|
322
|
-
}[];
|
323
|
-
};
|
324
|
-
federation_entity: {
|
325
|
-
organization_name: string;
|
326
|
-
homepage_uri: string;
|
327
|
-
policy_uri: string;
|
328
|
-
tos_uri: string;
|
329
|
-
logo_uri: string;
|
330
|
-
};
|
331
|
-
}, {
|
332
|
-
openid_credential_issuer: {
|
333
|
-
credential_issuer: string;
|
334
|
-
authorization_endpoint: string;
|
335
|
-
token_endpoint: string;
|
336
|
-
pushed_authorization_request_endpoint: string;
|
337
|
-
dpop_signing_alg_values_supported: string[];
|
338
|
-
credential_endpoint: string;
|
339
|
-
credentials_supported: {
|
340
|
-
format: "vc+sd-jwt";
|
341
|
-
cryptographic_binding_methods_supported: string[];
|
342
|
-
cryptographic_suites_supported: string[];
|
343
|
-
display: {
|
344
|
-
name: string;
|
345
|
-
locale: string;
|
346
|
-
logo: {
|
347
|
-
url: string;
|
348
|
-
alt_text: string;
|
349
|
-
};
|
350
|
-
background_color: string;
|
351
|
-
text_color: string;
|
352
|
-
}[];
|
353
|
-
}[];
|
354
|
-
};
|
355
|
-
federation_entity: {
|
356
|
-
organization_name: string;
|
357
|
-
homepage_uri: string;
|
358
|
-
policy_uri: string;
|
359
|
-
tos_uri: string;
|
360
|
-
logo_uri: string;
|
361
|
-
};
|
362
|
-
}>;
|
363
|
-
}, "strip", z.ZodTypeAny, {
|
364
|
-
jwks: {
|
365
|
-
keys: {
|
366
|
-
kty: "RSA" | "EC";
|
367
|
-
alg?: string | undefined;
|
368
|
-
crv?: string | undefined;
|
369
|
-
d?: string | undefined;
|
370
|
-
dp?: string | undefined;
|
371
|
-
dq?: string | undefined;
|
372
|
-
e?: string | undefined;
|
373
|
-
ext?: boolean | undefined;
|
374
|
-
k?: string | undefined;
|
375
|
-
key_ops?: string[] | undefined;
|
376
|
-
kid?: string | undefined;
|
377
|
-
n?: string | undefined;
|
378
|
-
p?: string | undefined;
|
379
|
-
q?: string | undefined;
|
380
|
-
qi?: string | undefined;
|
381
|
-
use?: string | undefined;
|
382
|
-
x?: string | undefined;
|
383
|
-
y?: string | undefined;
|
384
|
-
x5c?: string[] | undefined;
|
385
|
-
x5t?: string | undefined;
|
386
|
-
"x5t#S256"?: string | undefined;
|
387
|
-
x5u?: string | undefined;
|
388
|
-
}[];
|
389
|
-
};
|
390
|
-
metadata: {
|
391
|
-
openid_credential_issuer: {
|
392
|
-
credential_issuer: string;
|
393
|
-
authorization_endpoint: string;
|
394
|
-
token_endpoint: string;
|
395
|
-
pushed_authorization_request_endpoint: string;
|
396
|
-
dpop_signing_alg_values_supported: string[];
|
397
|
-
credential_endpoint: string;
|
398
|
-
credentials_supported: {
|
399
|
-
format: "vc+sd-jwt";
|
400
|
-
cryptographic_binding_methods_supported: string[];
|
401
|
-
cryptographic_suites_supported: string[];
|
402
|
-
display: {
|
403
|
-
name: string;
|
404
|
-
locale: string;
|
405
|
-
logo: {
|
406
|
-
url: string;
|
407
|
-
alt_text: string;
|
408
|
-
};
|
409
|
-
background_color: string;
|
410
|
-
text_color: string;
|
411
|
-
}[];
|
412
|
-
}[];
|
413
|
-
};
|
414
|
-
federation_entity: {
|
415
|
-
organization_name: string;
|
416
|
-
homepage_uri: string;
|
417
|
-
policy_uri: string;
|
418
|
-
tos_uri: string;
|
419
|
-
logo_uri: string;
|
420
|
-
};
|
421
|
-
};
|
422
|
-
}, {
|
423
|
-
jwks: {
|
424
|
-
keys: {
|
425
|
-
kty: "RSA" | "EC";
|
426
|
-
alg?: string | undefined;
|
427
|
-
crv?: string | undefined;
|
428
|
-
d?: string | undefined;
|
429
|
-
dp?: string | undefined;
|
430
|
-
dq?: string | undefined;
|
431
|
-
e?: string | undefined;
|
432
|
-
ext?: boolean | undefined;
|
433
|
-
k?: string | undefined;
|
434
|
-
key_ops?: string[] | undefined;
|
435
|
-
kid?: string | undefined;
|
436
|
-
n?: string | undefined;
|
437
|
-
p?: string | undefined;
|
438
|
-
q?: string | undefined;
|
439
|
-
qi?: string | undefined;
|
440
|
-
use?: string | undefined;
|
441
|
-
x?: string | undefined;
|
442
|
-
y?: string | undefined;
|
443
|
-
x5c?: string[] | undefined;
|
444
|
-
x5t?: string | undefined;
|
445
|
-
"x5t#S256"?: string | undefined;
|
446
|
-
x5u?: string | undefined;
|
447
|
-
}[];
|
448
|
-
};
|
449
|
-
metadata: {
|
450
|
-
openid_credential_issuer: {
|
451
|
-
credential_issuer: string;
|
452
|
-
authorization_endpoint: string;
|
453
|
-
token_endpoint: string;
|
454
|
-
pushed_authorization_request_endpoint: string;
|
455
|
-
dpop_signing_alg_values_supported: string[];
|
456
|
-
credential_endpoint: string;
|
457
|
-
credentials_supported: {
|
458
|
-
format: "vc+sd-jwt";
|
459
|
-
cryptographic_binding_methods_supported: string[];
|
460
|
-
cryptographic_suites_supported: string[];
|
461
|
-
display: {
|
462
|
-
name: string;
|
463
|
-
locale: string;
|
464
|
-
logo: {
|
465
|
-
url: string;
|
466
|
-
alt_text: string;
|
467
|
-
};
|
468
|
-
background_color: string;
|
469
|
-
text_color: string;
|
470
|
-
}[];
|
471
|
-
}[];
|
472
|
-
};
|
473
|
-
federation_entity: {
|
474
|
-
organization_name: string;
|
475
|
-
homepage_uri: string;
|
476
|
-
policy_uri: string;
|
477
|
-
tos_uri: string;
|
478
|
-
logo_uri: string;
|
479
|
-
};
|
480
|
-
};
|
481
|
-
}>;
|
482
|
-
//# sourceMappingURL=metadata.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/pid/metadata.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACpE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS7B,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,4BAA4B,CACpC,CAAC;AACF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BvC,CAAC"}
|
package/src/pid/metadata.ts
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
import { JWK } from "../utils/jwk";
|
2
|
-
import { z } from "zod";
|
3
|
-
|
4
|
-
export type PidDisplayMetadata = z.infer<typeof PidDisplayMetadata>;
|
5
|
-
export const PidDisplayMetadata = z.object({
|
6
|
-
name: z.string(),
|
7
|
-
locale: z.string(),
|
8
|
-
logo: z.object({
|
9
|
-
url: z.string(),
|
10
|
-
alt_text: z.string(),
|
11
|
-
}),
|
12
|
-
background_color: z.string(),
|
13
|
-
text_color: z.string(),
|
14
|
-
});
|
15
|
-
|
16
|
-
export type PidIssuerEntityConfiguration = z.infer<
|
17
|
-
typeof PidIssuerEntityConfiguration
|
18
|
-
>;
|
19
|
-
export const PidIssuerEntityConfiguration = z.object({
|
20
|
-
jwks: z.object({ keys: z.array(JWK) }),
|
21
|
-
metadata: z.object({
|
22
|
-
openid_credential_issuer: z.object({
|
23
|
-
credential_issuer: z.string(),
|
24
|
-
authorization_endpoint: z.string(),
|
25
|
-
token_endpoint: z.string(),
|
26
|
-
pushed_authorization_request_endpoint: z.string(),
|
27
|
-
dpop_signing_alg_values_supported: z.array(z.string()),
|
28
|
-
credential_endpoint: z.string(),
|
29
|
-
credentials_supported: z.array(
|
30
|
-
z.object({
|
31
|
-
format: z.literal("vc+sd-jwt"),
|
32
|
-
cryptographic_binding_methods_supported: z.array(z.string()),
|
33
|
-
cryptographic_suites_supported: z.array(z.string()),
|
34
|
-
display: z.array(PidDisplayMetadata),
|
35
|
-
})
|
36
|
-
),
|
37
|
-
}),
|
38
|
-
federation_entity: z.object({
|
39
|
-
organization_name: z.string(),
|
40
|
-
homepage_uri: z.string(),
|
41
|
-
policy_uri: z.string(),
|
42
|
-
tos_uri: z.string(),
|
43
|
-
logo_uri: z.string(),
|
44
|
-
}),
|
45
|
-
}),
|
46
|
-
});
|