@idos-network/issuer 1.0.0-rc.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 +21 -0
- package/README.md +19 -0
- package/dist/index.d.ts +205 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +21274 -0
- package/dist/index.js.map +1 -0
- package/package.json +62 -0
- package/src/assets/add-user.drawio.svg +558 -0
- package/src/assets/country-codes.xml +271 -0
- package/src/assets/ed25519-signature-2020-v1.json +93 -0
- package/src/assets/idos-credential-subject-v1.json +32 -0
- package/src/assets/idos-credentials-v1.json +9 -0
- package/src/assets/v1.json +273 -0
- package/src/index.ts +155 -0
- package/src/services/credential.service.ts +207 -0
- package/src/services/credentials-builder.service.ts +203 -0
- package/src/services/credentials-builder.test.ts +100 -0
- package/src/services/grant.service.ts +59 -0
- package/src/services/user.service.ts +75 -0
- package/src/types.d.ts +4 -0
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
3
|
+
|
|
4
|
+
<xs:annotation>
|
|
5
|
+
<xs:documentation>
|
|
6
|
+
Copyright (C) 2023 Trust Fractal GmbH
|
|
7
|
+
|
|
8
|
+
Apache License Version 2.0. See the accompanying LICENSE file.
|
|
9
|
+
</xs:documentation>
|
|
10
|
+
</xs:annotation>
|
|
11
|
+
|
|
12
|
+
<xs:simpleType name="ISO_3166-1_alpha-2" name="ISO_3166-1_alpha-2">
|
|
13
|
+
<xs:annotation>
|
|
14
|
+
<xs:documentation>
|
|
15
|
+
ISO 3166-1 alpha-2 codes are two-letter country codes defined in ISO 3166-1, part of the ISO 3166 standard[1] published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest.
|
|
16
|
+
|
|
17
|
+
Taken from https://web.archive.org/web/20230604173816/https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
|
18
|
+
</xs:documentation>
|
|
19
|
+
</xs:annotation>
|
|
20
|
+
|
|
21
|
+
<xs:restriction base="xs:string">
|
|
22
|
+
<xs:enumeration value="AD" /> <!-- Andorra -->
|
|
23
|
+
<xs:enumeration value="AE" /> <!-- United Arab Emirates -->
|
|
24
|
+
<xs:enumeration value="AF" /> <!-- Afghanistan -->
|
|
25
|
+
<xs:enumeration value="AG" /> <!-- Antigua and Barbuda -->
|
|
26
|
+
<xs:enumeration value="AI" /> <!-- Anguilla -->
|
|
27
|
+
<xs:enumeration value="AL" /> <!-- Albania -->
|
|
28
|
+
<xs:enumeration value="AM" /> <!-- Armenia -->
|
|
29
|
+
<xs:enumeration value="AO" /> <!-- Angola -->
|
|
30
|
+
<xs:enumeration value="AQ" /> <!-- Antarctica -->
|
|
31
|
+
<xs:enumeration value="AR" /> <!-- Argentina -->
|
|
32
|
+
<xs:enumeration value="AS" /> <!-- American Samoa -->
|
|
33
|
+
<xs:enumeration value="AT" /> <!-- Austria -->
|
|
34
|
+
<xs:enumeration value="AU" /> <!-- Australia -->
|
|
35
|
+
<xs:enumeration value="AW" /> <!-- Aruba -->
|
|
36
|
+
<xs:enumeration value="AX" /> <!-- Åland Islands -->
|
|
37
|
+
<xs:enumeration value="AZ" /> <!-- Azerbaijan -->
|
|
38
|
+
<xs:enumeration value="BA" /> <!-- Bosnia and Herzegovina -->
|
|
39
|
+
<xs:enumeration value="BB" /> <!-- Barbados -->
|
|
40
|
+
<xs:enumeration value="BD" /> <!-- Bangladesh -->
|
|
41
|
+
<xs:enumeration value="BE" /> <!-- Belgium -->
|
|
42
|
+
<xs:enumeration value="BF" /> <!-- Burkina Faso -->
|
|
43
|
+
<xs:enumeration value="BG" /> <!-- Bulgaria -->
|
|
44
|
+
<xs:enumeration value="BH" /> <!-- Kingdom of Bahrain -->
|
|
45
|
+
<xs:enumeration value="BI" /> <!-- Burundi -->
|
|
46
|
+
<xs:enumeration value="BJ" /> <!-- Benin -->
|
|
47
|
+
<xs:enumeration value="BL" /> <!-- Collectivity of Saint Barthélemy -->
|
|
48
|
+
<xs:enumeration value="BM" /> <!-- Bermuda -->
|
|
49
|
+
<xs:enumeration value="BN" /> <!-- Brunei -->
|
|
50
|
+
<xs:enumeration value="BO" /> <!-- Bolivia -->
|
|
51
|
+
<xs:enumeration value="BR" /> <!-- Brazil -->
|
|
52
|
+
<xs:enumeration value="BS" /> <!-- Commonwealth of the Bahamas -->
|
|
53
|
+
<xs:enumeration value="BT" /> <!-- Kingdom of Bhutan -->
|
|
54
|
+
<xs:enumeration value="BW" /> <!-- Botswana -->
|
|
55
|
+
<xs:enumeration value="BY" /> <!-- Belarus -->
|
|
56
|
+
<xs:enumeration value="BZ" /> <!-- Belize -->
|
|
57
|
+
<xs:enumeration value="CA" /> <!-- Canada -->
|
|
58
|
+
<xs:enumeration value="CC" /> <!-- Cocos (Keeling) Islands -->
|
|
59
|
+
<xs:enumeration value="CD" /> <!-- Democratic Republic of the Congo -->
|
|
60
|
+
<xs:enumeration value="CF" /> <!-- Central African Republic -->
|
|
61
|
+
<xs:enumeration value="CG" /> <!-- Congo -->
|
|
62
|
+
<xs:enumeration value="CH" /> <!-- Switzerland -->
|
|
63
|
+
<xs:enumeration value="CI" /> <!-- Côte d'Ivoire -->
|
|
64
|
+
<xs:enumeration value="CK" /> <!-- Cook Islands -->
|
|
65
|
+
<xs:enumeration value="CL" /> <!-- Chile -->
|
|
66
|
+
<xs:enumeration value="CM" /> <!-- Cameroon -->
|
|
67
|
+
<xs:enumeration value="CN" /> <!-- People's Republic of China -->
|
|
68
|
+
<xs:enumeration value="CO" /> <!-- Colombia -->
|
|
69
|
+
<xs:enumeration value="CR" /> <!-- Costa Rica -->
|
|
70
|
+
<xs:enumeration value="CU" /> <!-- Cuba -->
|
|
71
|
+
<xs:enumeration value="CV" /> <!-- Cabo Verde -->
|
|
72
|
+
<xs:enumeration value="CW" /> <!-- Curaçao -->
|
|
73
|
+
<xs:enumeration value="CX" /> <!-- Territory of Christmas Island -->
|
|
74
|
+
<xs:enumeration value="CY" /> <!-- Cyprus -->
|
|
75
|
+
<xs:enumeration value="CZ" /> <!-- Czech Republic -->
|
|
76
|
+
<xs:enumeration value="DE" /> <!-- Germany -->
|
|
77
|
+
<xs:enumeration value="DJ" /> <!-- Djibouti -->
|
|
78
|
+
<xs:enumeration value="DK" /> <!-- Denmark -->
|
|
79
|
+
<xs:enumeration value="DM" /> <!-- Commonwealth of Dominica -->
|
|
80
|
+
<xs:enumeration value="DO" /> <!-- Dominican Republic -->
|
|
81
|
+
<xs:enumeration value="DZ" /> <!-- Algeria -->
|
|
82
|
+
<xs:enumeration value="EC" /> <!-- Ecuador -->
|
|
83
|
+
<xs:enumeration value="EE" /> <!-- Estonia -->
|
|
84
|
+
<xs:enumeration value="EG" /> <!-- Egypt -->
|
|
85
|
+
<xs:enumeration value="EH" /> <!-- Sahrawi -->
|
|
86
|
+
<xs:enumeration value="ER" /> <!-- Eritrea -->
|
|
87
|
+
<xs:enumeration value="ES" /> <!-- Spain -->
|
|
88
|
+
<xs:enumeration value="ET" /> <!-- Ethiopia -->
|
|
89
|
+
<xs:enumeration value="FI" /> <!-- Finland -->
|
|
90
|
+
<xs:enumeration value="FJ" /> <!-- Fiji -->
|
|
91
|
+
<xs:enumeration value="FK" /> <!-- Falkland Islands -->
|
|
92
|
+
<xs:enumeration value="FM" /> <!-- Micronesia -->
|
|
93
|
+
<xs:enumeration value="FO" /> <!-- Faroe Islands -->
|
|
94
|
+
<xs:enumeration value="FR" /> <!-- France -->
|
|
95
|
+
<xs:enumeration value="GA" /> <!-- Gabonese Republic -->
|
|
96
|
+
<xs:enumeration value="GB" /> <!-- United Kingdom -->
|
|
97
|
+
<xs:enumeration value="GD" /> <!-- Grenada -->
|
|
98
|
+
<xs:enumeration value="GE" /> <!-- Georgia -->
|
|
99
|
+
<xs:enumeration value="GF" /> <!-- Guiana -->
|
|
100
|
+
<xs:enumeration value="GG" /> <!-- Bailiwick of Guernsey -->
|
|
101
|
+
<xs:enumeration value="GH" /> <!-- Ghana -->
|
|
102
|
+
<xs:enumeration value="GI" /> <!-- Gibraltar -->
|
|
103
|
+
<xs:enumeration value="GL" /> <!-- Greenland -->
|
|
104
|
+
<xs:enumeration value="GM" /> <!-- Gambia -->
|
|
105
|
+
<xs:enumeration value="GN" /> <!-- Guinea -->
|
|
106
|
+
<xs:enumeration value="GP" /> <!-- Guadeloupe -->
|
|
107
|
+
<xs:enumeration value="GQ" /> <!-- Equatorial Guinea -->
|
|
108
|
+
<xs:enumeration value="GR" /> <!-- Greece -->
|
|
109
|
+
<xs:enumeration value="GS" /> <!-- South Georgia and the South Sandwich Islands -->
|
|
110
|
+
<xs:enumeration value="GT" /> <!-- Guatemala -->
|
|
111
|
+
<xs:enumeration value="GU" /> <!-- Guam -->
|
|
112
|
+
<xs:enumeration value="GW" /> <!-- Guinea-Bissau -->
|
|
113
|
+
<xs:enumeration value="GY" /> <!-- Guyana -->
|
|
114
|
+
<xs:enumeration value="HK" /> <!-- Hong Kong -->
|
|
115
|
+
<xs:enumeration value="HM" /> <!-- Heard Island and McDonald Islands -->
|
|
116
|
+
<xs:enumeration value="HN" /> <!-- Honduras -->
|
|
117
|
+
<xs:enumeration value="HR" /> <!-- Croatia -->
|
|
118
|
+
<xs:enumeration value="HT" /> <!-- Haiti -->
|
|
119
|
+
<xs:enumeration value="HU" /> <!-- Hungary -->
|
|
120
|
+
<xs:enumeration value="ID" /> <!-- Indonesia -->
|
|
121
|
+
<xs:enumeration value="IE" /> <!-- Ireland -->
|
|
122
|
+
<xs:enumeration value="IL" /> <!-- Israel -->
|
|
123
|
+
<xs:enumeration value="IM" /> <!-- Isle of Man -->
|
|
124
|
+
<xs:enumeration value="IN" /> <!-- India -->
|
|
125
|
+
<xs:enumeration value="IO" /> <!-- British Indian Ocean Territory -->
|
|
126
|
+
<xs:enumeration value="IQ" /> <!-- Iraq -->
|
|
127
|
+
<xs:enumeration value="IR" /> <!-- Iran -->
|
|
128
|
+
<xs:enumeration value="IS" /> <!-- Iceland -->
|
|
129
|
+
<xs:enumeration value="IT" /> <!-- Italy -->
|
|
130
|
+
<xs:enumeration value="JE" /> <!-- Bailiwick of Jersey -->
|
|
131
|
+
<xs:enumeration value="JM" /> <!-- Jamaica -->
|
|
132
|
+
<xs:enumeration value="JO" /> <!-- Jordan -->
|
|
133
|
+
<xs:enumeration value="JP" /> <!-- Japan -->
|
|
134
|
+
<xs:enumeration value="KE" /> <!-- Kenya -->
|
|
135
|
+
<xs:enumeration value="KG" /> <!-- Kyrgyzstan -->
|
|
136
|
+
<xs:enumeration value="KH" /> <!-- Cambodia -->
|
|
137
|
+
<xs:enumeration value="KI" /> <!-- Kiribati -->
|
|
138
|
+
<xs:enumeration value="KM" /> <!-- Union of the Comoros -->
|
|
139
|
+
<xs:enumeration value="KN" /> <!-- Saint Christopher and Nevisa -->
|
|
140
|
+
<xs:enumeration value="KP" /> <!-- Democratic People's Republic of Korea -->
|
|
141
|
+
<xs:enumeration value="KR" /> <!-- Republic of Korea -->
|
|
142
|
+
<xs:enumeration value="KW" /> <!-- Kuwait -->
|
|
143
|
+
<xs:enumeration value="KY" /> <!-- Cayman Islands -->
|
|
144
|
+
<xs:enumeration value="KZ" /> <!-- Kazakhstan -->
|
|
145
|
+
<xs:enumeration value="LA" /> <!-- Lao People's Democratic Republic -->
|
|
146
|
+
<xs:enumeration value="LB" /> <!-- Lebanese Republic -->
|
|
147
|
+
<xs:enumeration value="LC" /> <!-- Saint Lucia -->
|
|
148
|
+
<xs:enumeration value="LI" /> <!-- Liechtenstein -->
|
|
149
|
+
<xs:enumeration value="LK" /> <!-- Sri Lanka -->
|
|
150
|
+
<xs:enumeration value="LR" /> <!-- Liberia -->
|
|
151
|
+
<xs:enumeration value="LS" /> <!-- Lesotho -->
|
|
152
|
+
<xs:enumeration value="LT" /> <!-- Lithuania -->
|
|
153
|
+
<xs:enumeration value="LU" /> <!-- Luxembourg -->
|
|
154
|
+
<xs:enumeration value="LV" /> <!-- Latvia -->
|
|
155
|
+
<xs:enumeration value="LY" /> <!-- Libya -->
|
|
156
|
+
<xs:enumeration value="MA" /> <!-- Morocco -->
|
|
157
|
+
<xs:enumeration value="MC" /> <!-- Monaco -->
|
|
158
|
+
<xs:enumeration value="MD" /> <!-- Moldova -->
|
|
159
|
+
<xs:enumeration value="ME" /> <!-- Montenegro -->
|
|
160
|
+
<xs:enumeration value="MF" /> <!-- Saint Martin -->
|
|
161
|
+
<xs:enumeration value="MG" /> <!-- Madagascar -->
|
|
162
|
+
<xs:enumeration value="MH" /> <!-- Marshall Islands -->
|
|
163
|
+
<xs:enumeration value="MK" /> <!-- Macedonia -->
|
|
164
|
+
<xs:enumeration value="ML" /> <!-- Mali -->
|
|
165
|
+
<xs:enumeration value="MM" /> <!-- Myanmar -->
|
|
166
|
+
<xs:enumeration value="MN" /> <!-- Mongolia -->
|
|
167
|
+
<xs:enumeration value="MO" /> <!-- Macao -->
|
|
168
|
+
<xs:enumeration value="MP" /> <!-- Northern Mariana Islands -->
|
|
169
|
+
<xs:enumeration value="MQ" /> <!-- Martinique -->
|
|
170
|
+
<xs:enumeration value="MR" /> <!-- Mauritania -->
|
|
171
|
+
<xs:enumeration value="MS" /> <!-- Montserrat -->
|
|
172
|
+
<xs:enumeration value="MT" /> <!-- Malta -->
|
|
173
|
+
<xs:enumeration value="MU" /> <!-- Mauritius -->
|
|
174
|
+
<xs:enumeration value="MV" /> <!-- Maldives -->
|
|
175
|
+
<xs:enumeration value="MW" /> <!-- Malawi -->
|
|
176
|
+
<xs:enumeration value="MX" /> <!-- Mexico -->
|
|
177
|
+
<xs:enumeration value="MY" /> <!-- Malaysia -->
|
|
178
|
+
<xs:enumeration value="MZ" /> <!-- Mozambique -->
|
|
179
|
+
<xs:enumeration value="NA" /> <!-- Namibia -->
|
|
180
|
+
<xs:enumeration value="NC" /> <!-- New Caledonia -->
|
|
181
|
+
<xs:enumeration value="NE" /> <!-- Niger -->
|
|
182
|
+
<xs:enumeration value="NF" /> <!-- Norfolk Island -->
|
|
183
|
+
<xs:enumeration value="NG" /> <!-- Nigeria -->
|
|
184
|
+
<xs:enumeration value="NI" /> <!-- Nicaragua -->
|
|
185
|
+
<xs:enumeration value="NL" /> <!-- Netherlands -->
|
|
186
|
+
<xs:enumeration value="NO" /> <!-- Norway -->
|
|
187
|
+
<xs:enumeration value="NP" /> <!-- Nepal -->
|
|
188
|
+
<xs:enumeration value="NR" /> <!-- Nauru -->
|
|
189
|
+
<xs:enumeration value="NU" /> <!-- Niue -->
|
|
190
|
+
<xs:enumeration value="NZ" /> <!-- New Zealand -->
|
|
191
|
+
<xs:enumeration value="OM" /> <!-- Oman -->
|
|
192
|
+
<xs:enumeration value="PA" /> <!-- Panama -->
|
|
193
|
+
<xs:enumeration value="PE" /> <!-- Peru -->
|
|
194
|
+
<xs:enumeration value="PF" /> <!-- French Polynesia -->
|
|
195
|
+
<xs:enumeration value="PG" /> <!-- Papua New Guinea -->
|
|
196
|
+
<xs:enumeration value="PH" /> <!-- Philippines -->
|
|
197
|
+
<xs:enumeration value="PK" /> <!-- Pakistan -->
|
|
198
|
+
<xs:enumeration value="PL" /> <!-- Poland -->
|
|
199
|
+
<xs:enumeration value="PM" /> <!-- Saint Pierre and Miquelon -->
|
|
200
|
+
<xs:enumeration value="PN" /> <!-- Pitcairn Group of Islands -->
|
|
201
|
+
<xs:enumeration value="PR" /> <!-- Puerto Rico -->
|
|
202
|
+
<xs:enumeration value="PS" /> <!-- Palestine -->
|
|
203
|
+
<xs:enumeration value="PT" /> <!-- Portugal -->
|
|
204
|
+
<xs:enumeration value="PW" /> <!-- Palau -->
|
|
205
|
+
<xs:enumeration value="PY" /> <!-- Paraguay -->
|
|
206
|
+
<xs:enumeration value="QA" /> <!-- Qatar -->
|
|
207
|
+
<xs:enumeration value="RE" /> <!-- Réunion Island -->
|
|
208
|
+
<xs:enumeration value="RO" /> <!-- Romania -->
|
|
209
|
+
<xs:enumeration value="RS" /> <!-- Serbia -->
|
|
210
|
+
<xs:enumeration value="RU" /> <!-- Russian Federation -->
|
|
211
|
+
<xs:enumeration value="RW" /> <!-- Rwanda -->
|
|
212
|
+
<xs:enumeration value="SA" /> <!-- Saudi Arabia -->
|
|
213
|
+
<xs:enumeration value="SB" /> <!-- Solomon Islands -->
|
|
214
|
+
<xs:enumeration value="SC" /> <!-- Seychelles -->
|
|
215
|
+
<xs:enumeration value="SD" /> <!-- Sudan -->
|
|
216
|
+
<xs:enumeration value="SE" /> <!-- Sweden -->
|
|
217
|
+
<xs:enumeration value="SG" /> <!-- Singapore -->
|
|
218
|
+
<xs:enumeration value="SI" /> <!-- Slovenia -->
|
|
219
|
+
<xs:enumeration value="SJ" /> <!-- Svalbard og Jan Mayen -->
|
|
220
|
+
<xs:enumeration value="SK" /> <!-- Slovakia -->
|
|
221
|
+
<xs:enumeration value="SL" /> <!-- Sierra Leone -->
|
|
222
|
+
<xs:enumeration value="SM" /> <!-- San Marino -->
|
|
223
|
+
<xs:enumeration value="SN" /> <!-- Senegal -->
|
|
224
|
+
<xs:enumeration value="SO" /> <!-- Somalia -->
|
|
225
|
+
<xs:enumeration value="SR" /> <!-- Suriname -->
|
|
226
|
+
<xs:enumeration value="SS" /> <!-- South Sudan -->
|
|
227
|
+
<xs:enumeration value="ST" /> <!-- São Tomé and Príncipe -->
|
|
228
|
+
<xs:enumeration value="SV" /> <!-- El Salvador -->
|
|
229
|
+
<xs:enumeration value="SX" /> <!-- Sint Maarten -->
|
|
230
|
+
<xs:enumeration value="SY" /> <!-- Syria -->
|
|
231
|
+
<xs:enumeration value="SZ" /> <!-- Swaziland -->
|
|
232
|
+
<xs:enumeration value="TC" /> <!-- Turks and Caicos Islands -->
|
|
233
|
+
<xs:enumeration value="TD" /> <!-- Chad -->
|
|
234
|
+
<xs:enumeration value="TF" /> <!-- French Southern and Antarctic Lands -->
|
|
235
|
+
<xs:enumeration value="TG" /> <!-- Togolese Republic -->
|
|
236
|
+
<xs:enumeration value="TH" /> <!-- Thailand -->
|
|
237
|
+
<xs:enumeration value="TJ" /> <!-- Tajikistan -->
|
|
238
|
+
<xs:enumeration value="TK" /> <!-- Tokelau -->
|
|
239
|
+
<xs:enumeration value="TL" /> <!-- Timor-Leste -->
|
|
240
|
+
<xs:enumeration value="TM" /> <!-- Turkmenistan -->
|
|
241
|
+
<xs:enumeration value="TN" /> <!-- Tunisia -->
|
|
242
|
+
<xs:enumeration value="TO" /> <!-- Tonga -->
|
|
243
|
+
<xs:enumeration value="TR" /> <!-- Turkey -->
|
|
244
|
+
<xs:enumeration value="TT" /> <!-- Trinidad and Tobago -->
|
|
245
|
+
<xs:enumeration value="TV" /> <!-- Tuvalu -->
|
|
246
|
+
<xs:enumeration value="TW" /> <!-- Republic of China (Taiwan) -->
|
|
247
|
+
<xs:enumeration value="TZ" /> <!-- Tanzania -->
|
|
248
|
+
<xs:enumeration value="UA" /> <!-- Ukraine -->
|
|
249
|
+
<xs:enumeration value="UG" /> <!-- Uganda -->
|
|
250
|
+
<xs:enumeration value="UM" /> <!-- United States Minor Outlying Islands -->
|
|
251
|
+
<xs:enumeration value="US" /> <!-- United States of America -->
|
|
252
|
+
<xs:enumeration value="UY" /> <!-- Uruguay -->
|
|
253
|
+
<xs:enumeration value="UZ" /> <!-- Uzbekistan -->
|
|
254
|
+
<xs:enumeration value="VA" /> <!-- Vatican -->
|
|
255
|
+
<xs:enumeration value="VC" /> <!-- Saint Vincent and the Grenadines -->
|
|
256
|
+
<xs:enumeration value="VE" /> <!-- Venezuela -->
|
|
257
|
+
<xs:enumeration value="VG" /> <!-- Virgin Islands -->
|
|
258
|
+
<xs:enumeration value="VI" /> <!-- Virgin Islands of the United States -->
|
|
259
|
+
<xs:enumeration value="VN" /> <!-- Vietnam -->
|
|
260
|
+
<xs:enumeration value="VU" /> <!-- Vanuatu -->
|
|
261
|
+
<xs:enumeration value="WF" /> <!-- Wallis and Futuna Islands -->
|
|
262
|
+
<xs:enumeration value="WS" /> <!-- Samoa -->
|
|
263
|
+
<xs:enumeration value="XK" /> <!-- Kosovo -->
|
|
264
|
+
<xs:enumeration value="YE" /> <!-- Yemen -->
|
|
265
|
+
<xs:enumeration value="YT" /> <!-- Department of Mayotte -->
|
|
266
|
+
<xs:enumeration value="ZA" /> <!-- South Africa -->
|
|
267
|
+
<xs:enumeration value="ZM" /> <!-- Zambia -->
|
|
268
|
+
<xs:enumeration value="ZW" /> <!-- Zimbabwe -->
|
|
269
|
+
</xs:restriction>
|
|
270
|
+
</xs:simpleType>
|
|
271
|
+
</xs:schema>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": {
|
|
3
|
+
"id": "@id",
|
|
4
|
+
"type": "@type",
|
|
5
|
+
"@protected": true,
|
|
6
|
+
"proof": {
|
|
7
|
+
"@id": "https://w3id.org/security#proof",
|
|
8
|
+
"@type": "@id",
|
|
9
|
+
"@container": "@graph"
|
|
10
|
+
},
|
|
11
|
+
"Ed25519VerificationKey2020": {
|
|
12
|
+
"@id": "https://w3id.org/security#Ed25519VerificationKey2020",
|
|
13
|
+
"@context": {
|
|
14
|
+
"@protected": true,
|
|
15
|
+
"id": "@id",
|
|
16
|
+
"type": "@type",
|
|
17
|
+
"controller": {
|
|
18
|
+
"@id": "https://w3id.org/security#controller",
|
|
19
|
+
"@type": "@id"
|
|
20
|
+
},
|
|
21
|
+
"revoked": {
|
|
22
|
+
"@id": "https://w3id.org/security#revoked",
|
|
23
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
24
|
+
},
|
|
25
|
+
"publicKeyMultibase": {
|
|
26
|
+
"@id": "https://w3id.org/security#publicKeyMultibase",
|
|
27
|
+
"@type": "https://w3id.org/security#multibase"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"Ed25519Signature2020": {
|
|
32
|
+
"@id": "https://w3id.org/security#Ed25519Signature2020",
|
|
33
|
+
"@context": {
|
|
34
|
+
"@protected": true,
|
|
35
|
+
"id": "@id",
|
|
36
|
+
"type": "@type",
|
|
37
|
+
"challenge": "https://w3id.org/security#challenge",
|
|
38
|
+
"created": {
|
|
39
|
+
"@id": "http://purl.org/dc/terms/created",
|
|
40
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
41
|
+
},
|
|
42
|
+
"domain": "https://w3id.org/security#domain",
|
|
43
|
+
"expires": {
|
|
44
|
+
"@id": "https://w3id.org/security#expiration",
|
|
45
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
46
|
+
},
|
|
47
|
+
"nonce": "https://w3id.org/security#nonce",
|
|
48
|
+
"proofPurpose": {
|
|
49
|
+
"@id": "https://w3id.org/security#proofPurpose",
|
|
50
|
+
"@type": "@vocab",
|
|
51
|
+
"@context": {
|
|
52
|
+
"@protected": true,
|
|
53
|
+
"id": "@id",
|
|
54
|
+
"type": "@type",
|
|
55
|
+
"assertionMethod": {
|
|
56
|
+
"@id": "https://w3id.org/security#assertionMethod",
|
|
57
|
+
"@type": "@id",
|
|
58
|
+
"@container": "@set"
|
|
59
|
+
},
|
|
60
|
+
"authentication": {
|
|
61
|
+
"@id": "https://w3id.org/security#authenticationMethod",
|
|
62
|
+
"@type": "@id",
|
|
63
|
+
"@container": "@set"
|
|
64
|
+
},
|
|
65
|
+
"capabilityInvocation": {
|
|
66
|
+
"@id": "https://w3id.org/security#capabilityInvocationMethod",
|
|
67
|
+
"@type": "@id",
|
|
68
|
+
"@container": "@set"
|
|
69
|
+
},
|
|
70
|
+
"capabilityDelegation": {
|
|
71
|
+
"@id": "https://w3id.org/security#capabilityDelegationMethod",
|
|
72
|
+
"@type": "@id",
|
|
73
|
+
"@container": "@set"
|
|
74
|
+
},
|
|
75
|
+
"keyAgreement": {
|
|
76
|
+
"@id": "https://w3id.org/security#keyAgreementMethod",
|
|
77
|
+
"@type": "@id",
|
|
78
|
+
"@container": "@set"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"proofValue": {
|
|
83
|
+
"@id": "https://w3id.org/security#proofValue",
|
|
84
|
+
"@type": "https://w3id.org/security#multibase"
|
|
85
|
+
},
|
|
86
|
+
"verificationMethod": {
|
|
87
|
+
"@id": "https://w3id.org/security#verificationMethod",
|
|
88
|
+
"@type": "@id"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": {
|
|
3
|
+
"@version": 1.1,
|
|
4
|
+
"@protected": true,
|
|
5
|
+
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
|
6
|
+
"aux": "https://raw.githubusercontent.com/idos-network/idos-sdk-js/168f449a799620123bc7b01fc224423739500f94/packages/issuer-sdk-js/assets/country-codes.xml",
|
|
7
|
+
"firstName": "xsd:string",
|
|
8
|
+
"familyName": "xsd:string",
|
|
9
|
+
"maidenName": "xsd:string",
|
|
10
|
+
"governmentId": "xsd:string",
|
|
11
|
+
"governmentIdType": "xsd:string",
|
|
12
|
+
"dateOfBirth": "aux:date",
|
|
13
|
+
"placeOfBirth": "xsd:string",
|
|
14
|
+
"idDocumentCountry": "xsd:string",
|
|
15
|
+
"idDocumentNumber": "xsd:string",
|
|
16
|
+
"idDocumentType": "xsd:string",
|
|
17
|
+
"idDocumentDateOfIssue": "aux:date",
|
|
18
|
+
"idDocumentDateOfExpiry": "aux:date",
|
|
19
|
+
"idDocumentFrontFile": "xsd:string",
|
|
20
|
+
"idDocumentBackFile": "xsd:string",
|
|
21
|
+
"selfieFile": "xsd:string",
|
|
22
|
+
"residentialAddressStreet": "xsd:string",
|
|
23
|
+
"residentialAddressHouseNumber": "xsd:string",
|
|
24
|
+
"residentialAddressAdditionalAddressInfo": "xsd:string",
|
|
25
|
+
"residentialAddressCity": "xsd:string",
|
|
26
|
+
"residentialAddressPostalCode": "xsd:string",
|
|
27
|
+
"residentialAddressCountry": "aux:ISO_3166-1_alpha-2",
|
|
28
|
+
"residentialAddressProofCategory": "xsd:string",
|
|
29
|
+
"residentialAddressProofDateOfIssue": "xsd:date",
|
|
30
|
+
"residentialAddressProofFile": "xsd:string"
|
|
31
|
+
}
|
|
32
|
+
}
|