@velocitycareerlabs/libapp 1.25.0-dev-build.17c2a2ff0 → 1.25.0-dev-build.1a18f10e5

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 (223) hide show
  1. package/display-descriptors/MultiLicensev1.0.descriptor.json +140 -0
  2. package/display-descriptors/assessment-dec2020.descriptor.json +147 -0
  3. package/display-descriptors/assessment-dimension.descriptor.json +175 -0
  4. package/display-descriptors/assessment-v1.0.descriptor.json +267 -0
  5. package/display-descriptors/assessment-v1.1.descriptor.json +307 -0
  6. package/display-descriptors/badge-v1.1.descriptor.json +170 -0
  7. package/display-descriptors/badge.descriptor.json +143 -0
  8. package/display-descriptors/certification-v1.0.descriptor.json +140 -0
  9. package/display-descriptors/certification-v1.1.descriptor.json +190 -0
  10. package/display-descriptors/certification.descriptor.json +99 -0
  11. package/display-descriptors/clr.descriptor.json +123 -0
  12. package/display-descriptors/course-attendance-v1.0.descriptor.json +182 -0
  13. package/display-descriptors/course-attendance-v1.1.descriptor.json +242 -0
  14. package/display-descriptors/course-completion-v1.0.descriptor.json +192 -0
  15. package/display-descriptors/course-completion-v1.1.descriptor.json +253 -0
  16. package/display-descriptors/course-registration-v1.0.descriptor.json +151 -0
  17. package/display-descriptors/course-registration-v1.1.descriptor.json +181 -0
  18. package/display-descriptors/course.descriptor.json +150 -0
  19. package/display-descriptors/current-employment-position.descriptor.json +120 -0
  20. package/display-descriptors/drivers-license-v1.0.descriptor.json +261 -0
  21. package/display-descriptors/drivers-license-v1.1.descriptor.json +261 -0
  22. package/display-descriptors/education-degree-graduation-v1.0.descriptor.json +233 -0
  23. package/display-descriptors/education-degree-registration-v1.0.descriptor.json +171 -0
  24. package/display-descriptors/education-degree-registration-v1.1.descriptor.json +200 -0
  25. package/display-descriptors/education-degree-study-v1.0.descriptor.json +212 -0
  26. package/display-descriptors/education-degree-study-v1.1.descriptor.json +241 -0
  27. package/display-descriptors/education-degree.descriptor.json +110 -0
  28. package/display-descriptors/email-v1.1.descriptor.json +19 -0
  29. package/display-descriptors/email.descriptor.json +16 -0
  30. package/display-descriptors/employment-current-v1.0.descriptor.json +140 -0
  31. package/display-descriptors/employment-past-v1.0.descriptor.json +151 -0
  32. package/display-descriptors/employment-past-v1.1.descriptor.json +200 -0
  33. package/display-descriptors/en/MultiLicensev1.0.descriptor.json +140 -0
  34. package/display-descriptors/en/assessment-dec2020.descriptor.json +147 -0
  35. package/display-descriptors/en/assessment-dimension.descriptor.json +175 -0
  36. package/display-descriptors/en/assessment-v1.0.descriptor.json +267 -0
  37. package/display-descriptors/en/assessment-v1.1.descriptor.json +307 -0
  38. package/display-descriptors/en/badge-v1.1.descriptor.json +170 -0
  39. package/display-descriptors/en/badge.descriptor.json +143 -0
  40. package/display-descriptors/en/certification-v1.0.descriptor.json +140 -0
  41. package/display-descriptors/en/certification-v1.1.descriptor.json +190 -0
  42. package/display-descriptors/en/certification.descriptor.json +99 -0
  43. package/display-descriptors/en/clr.descriptor.json +123 -0
  44. package/display-descriptors/en/course-attendance-v1.0.descriptor.json +182 -0
  45. package/display-descriptors/en/course-attendance-v1.1.descriptor.json +242 -0
  46. package/display-descriptors/en/course-completion-v1.0.descriptor.json +192 -0
  47. package/display-descriptors/en/course-completion-v1.1.descriptor.json +253 -0
  48. package/display-descriptors/en/course-registration-v1.0.descriptor.json +151 -0
  49. package/display-descriptors/en/course-registration-v1.1.descriptor.json +181 -0
  50. package/display-descriptors/en/course.descriptor.json +150 -0
  51. package/display-descriptors/en/current-employment-position.descriptor.json +120 -0
  52. package/display-descriptors/en/drivers-license-v1.0.descriptor.json +261 -0
  53. package/display-descriptors/en/drivers-license-v1.1.descriptor.json +261 -0
  54. package/display-descriptors/en/education-degree-graduation-v1.0.descriptor.json +233 -0
  55. package/display-descriptors/en/education-degree-registration-v1.0.descriptor.json +171 -0
  56. package/display-descriptors/en/education-degree-registration-v1.1.descriptor.json +200 -0
  57. package/display-descriptors/en/education-degree-study-v1.0.descriptor.json +212 -0
  58. package/display-descriptors/en/education-degree-study-v1.1.descriptor.json +241 -0
  59. package/display-descriptors/en/education-degree.descriptor.json +110 -0
  60. package/display-descriptors/en/email-v1.1.descriptor.json +19 -0
  61. package/display-descriptors/en/email.descriptor.json +16 -0
  62. package/display-descriptors/en/employment-current-v1.0.descriptor.json +140 -0
  63. package/display-descriptors/en/employment-past-v1.0.descriptor.json +151 -0
  64. package/display-descriptors/en/employment-past-v1.1.descriptor.json +200 -0
  65. package/display-descriptors/en/id-document-v1.0.descriptor.json +258 -0
  66. package/display-descriptors/en/id-document-v1.1.descriptor.json +258 -0
  67. package/display-descriptors/en/id-document.descriptor.json +152 -0
  68. package/display-descriptors/en/license-v1.0.descriptor.json +172 -0
  69. package/display-descriptors/en/license-v1.1.descriptor.json +210 -0
  70. package/display-descriptors/en/national-id-card-v1.0.descriptor.json +258 -0
  71. package/display-descriptors/en/national-id-card-v1.1.descriptor.json +268 -0
  72. package/display-descriptors/en/open-badge-v1.0.descriptor.json +140 -0
  73. package/display-descriptors/en/open-badge-v2.0.descriptor.json +121 -0
  74. package/display-descriptors/en/passport-v1.0.descriptor.json +229 -0
  75. package/display-descriptors/en/passport-v1.1.descriptor.json +239 -0
  76. package/display-descriptors/en/past-employment-position.descriptor.json +131 -0
  77. package/display-descriptors/en/phone-v1.0.descriptor.json +18 -0
  78. package/display-descriptors/en/phone-v1.1.descriptor.json +18 -0
  79. package/display-descriptors/en/phone.descriptor.json +15 -0
  80. package/display-descriptors/en/proof-of-age-v1.0.descriptor.json +258 -0
  81. package/display-descriptors/en/proof-of-age-v1.1.descriptor.json +268 -0
  82. package/display-descriptors/en/resident-permit-v1.0.descriptor.json +258 -0
  83. package/display-descriptors/en/resident-permit-v1.1.descriptor.json +268 -0
  84. package/display-descriptors/id-document-v1.0.descriptor.json +258 -0
  85. package/display-descriptors/id-document-v1.1.descriptor.json +258 -0
  86. package/display-descriptors/id-document.descriptor.json +152 -0
  87. package/display-descriptors/license-v1.0.descriptor.json +172 -0
  88. package/display-descriptors/license-v1.1.descriptor.json +210 -0
  89. package/display-descriptors/national-id-card-v1.0.descriptor.json +258 -0
  90. package/display-descriptors/national-id-card-v1.1.descriptor.json +268 -0
  91. package/display-descriptors/open-badge-v1.0.descriptor.json +140 -0
  92. package/display-descriptors/open-badge-v2.0.descriptor.json +121 -0
  93. package/display-descriptors/passport-v1.0.descriptor.json +229 -0
  94. package/display-descriptors/passport-v1.1.descriptor.json +239 -0
  95. package/display-descriptors/past-employment-position.descriptor.json +131 -0
  96. package/display-descriptors/phone-v1.0.descriptor.json +18 -0
  97. package/display-descriptors/phone-v1.1.descriptor.json +18 -0
  98. package/display-descriptors/phone.descriptor.json +15 -0
  99. package/display-descriptors/proof-of-age-v1.0.descriptor.json +258 -0
  100. package/display-descriptors/proof-of-age-v1.1.descriptor.json +268 -0
  101. package/display-descriptors/resident-permit-v1.0.descriptor.json +258 -0
  102. package/display-descriptors/resident-permit-v1.1.descriptor.json +268 -0
  103. package/form-schemas/AssessmentV1.0.form-schema.json +64 -0
  104. package/form-schemas/AssessmentV1.1.form-schema.json +89 -0
  105. package/form-schemas/BadgeV1.1.form-schema.json +72 -0
  106. package/form-schemas/CertificationV1.0.form-schema.json +84 -0
  107. package/form-schemas/CertificationV1.1.form-schema.json +109 -0
  108. package/form-schemas/CourseAttendanceV1.0.form-schema.json +76 -0
  109. package/form-schemas/CourseAttendanceV1.1.form-schema.json +101 -0
  110. package/form-schemas/CourseCompletionV1.0.form-schema.json +81 -0
  111. package/form-schemas/CourseCompletionV1.1.form-schema.json +106 -0
  112. package/form-schemas/CourseRegistrationV1.0.form-schema.json +56 -0
  113. package/form-schemas/CourseRegistrationV1.1.form-schema.json +81 -0
  114. package/form-schemas/DriversLicenseV1.0.form-schema.json +199 -0
  115. package/form-schemas/DriversLicenseV1.1.form-schema.json +199 -0
  116. package/form-schemas/EducationDegreeGraduationV1.0.form-schema.json +101 -0
  117. package/form-schemas/EducationDegreeRegistrationV1.0.form-schema.json +67 -0
  118. package/form-schemas/EducationDegreeRegistrationV1.1.form-schema.json +92 -0
  119. package/form-schemas/EducationDegreeStudyV1.0.form-schema.json +92 -0
  120. package/form-schemas/EducationDegreeStudyV1.1.form-schema.json +117 -0
  121. package/form-schemas/EmploymentCurrentV1.0.form-schema.json +70 -0
  122. package/form-schemas/EmploymentPastV1.0.form-schema.json +75 -0
  123. package/form-schemas/EmploymentPastV1.1.form-schema.json +101 -0
  124. package/form-schemas/IdDocumentV1.0.form-schema.json +180 -0
  125. package/form-schemas/IdDocumentV1.1.form-schema.json +180 -0
  126. package/form-schemas/LicenseV1.0.form-schema.json +92 -0
  127. package/form-schemas/LicenseV1.1.form-schema.json +117 -0
  128. package/form-schemas/NationalIdCardV1.0.form-schema.json +176 -0
  129. package/form-schemas/NationalIdCardV1.1.form-schema.json +176 -0
  130. package/form-schemas/OpenBadgeV1.0.form-schema.json +44 -0
  131. package/form-schemas/OpenBadgeV2.0.form-schema.json +44 -0
  132. package/form-schemas/PassportV1.0.form-schema.json +141 -0
  133. package/form-schemas/PassportV1.1.form-schema.json +141 -0
  134. package/form-schemas/PhoneV1.0.form-schema.json +5 -0
  135. package/form-schemas/PhoneV1.1.form-schema.json +5 -0
  136. package/form-schemas/ProofOfAgeV1.0.form-schema.json +176 -0
  137. package/form-schemas/ProofOfAgeV1.1.form-schema.json +176 -0
  138. package/form-schemas/ResidentPermitV1.0.form-schema.json +176 -0
  139. package/form-schemas/ResidentPermitV1.1.form-schema.json +176 -0
  140. package/form-schemas/en/AssessmentV1.0.form-schema.json +64 -0
  141. package/form-schemas/en/AssessmentV1.1.form-schema.json +89 -0
  142. package/form-schemas/en/BadgeV1.1.form-schema.json +72 -0
  143. package/form-schemas/en/CertificationV1.0.form-schema.json +84 -0
  144. package/form-schemas/en/CertificationV1.1.form-schema.json +109 -0
  145. package/form-schemas/en/CourseAttendanceV1.0.form-schema.json +76 -0
  146. package/form-schemas/en/CourseAttendanceV1.1.form-schema.json +101 -0
  147. package/form-schemas/en/CourseCompletionV1.0.form-schema.json +81 -0
  148. package/form-schemas/en/CourseCompletionV1.1.form-schema.json +106 -0
  149. package/form-schemas/en/CourseRegistrationV1.0.form-schema.json +56 -0
  150. package/form-schemas/en/CourseRegistrationV1.1.form-schema.json +81 -0
  151. package/form-schemas/en/DriversLicenseV1.0.form-schema.json +199 -0
  152. package/form-schemas/en/DriversLicenseV1.1.form-schema.json +199 -0
  153. package/form-schemas/en/EducationDegreeGraduationV1.0.form-schema.json +101 -0
  154. package/form-schemas/en/EducationDegreeRegistrationV1.0.form-schema.json +67 -0
  155. package/form-schemas/en/EducationDegreeRegistrationV1.1.form-schema.json +92 -0
  156. package/form-schemas/en/EducationDegreeStudyV1.0.form-schema.json +92 -0
  157. package/form-schemas/en/EducationDegreeStudyV1.1.form-schema.json +117 -0
  158. package/form-schemas/en/EmploymentCurrentV1.0.form-schema.json +70 -0
  159. package/form-schemas/en/EmploymentPastV1.0.form-schema.json +75 -0
  160. package/form-schemas/en/EmploymentPastV1.1.form-schema.json +101 -0
  161. package/form-schemas/en/IdDocumentV1.0.form-schema.json +180 -0
  162. package/form-schemas/en/IdDocumentV1.1.form-schema.json +180 -0
  163. package/form-schemas/en/LicenseV1.0.form-schema.json +92 -0
  164. package/form-schemas/en/LicenseV1.1.form-schema.json +117 -0
  165. package/form-schemas/en/NationalIdCardV1.0.form-schema.json +176 -0
  166. package/form-schemas/en/NationalIdCardV1.1.form-schema.json +176 -0
  167. package/form-schemas/en/OpenBadgeV1.0.form-schema.json +44 -0
  168. package/form-schemas/en/OpenBadgeV2.0.form-schema.json +44 -0
  169. package/form-schemas/en/PassportV1.0.form-schema.json +141 -0
  170. package/form-schemas/en/PassportV1.1.form-schema.json +141 -0
  171. package/form-schemas/en/PhoneV1.0.form-schema.json +5 -0
  172. package/form-schemas/en/PhoneV1.1.form-schema.json +5 -0
  173. package/form-schemas/en/ProofOfAgeV1.0.form-schema.json +176 -0
  174. package/form-schemas/en/ProofOfAgeV1.1.form-schema.json +176 -0
  175. package/form-schemas/en/ResidentPermitV1.0.form-schema.json +176 -0
  176. package/form-schemas/en/ResidentPermitV1.1.form-schema.json +176 -0
  177. package/package.json +2 -2
  178. package/schemas/MultiLicenseV1.0.json +997 -0
  179. package/schemas/assessment-v1.0.schema.json +314 -0
  180. package/schemas/assessment-v1.1.schema.json +360 -0
  181. package/schemas/assessment.schema.json +154 -0
  182. package/schemas/badge-v1.1.schema.json +243 -0
  183. package/schemas/badge.schema.json +152 -0
  184. package/schemas/certification-v1.0.schema.json +233 -0
  185. package/schemas/certification-v1.1.schema.json +277 -0
  186. package/schemas/certification.schema.json +149 -0
  187. package/schemas/clr-subject.schema.json +2247 -0
  188. package/schemas/clr.schema.json +1565 -0
  189. package/schemas/course-attendance-v1.0.schema.json +300 -0
  190. package/schemas/course-attendance-v1.1.schema.json +346 -0
  191. package/schemas/course-completion-v1.0.schema.json +303 -0
  192. package/schemas/course-completion-v1.1.schema.json +349 -0
  193. package/schemas/course-registration-v1.0.schema.json +219 -0
  194. package/schemas/course-registration-v1.1.schema.json +271 -0
  195. package/schemas/course.schema.json +140 -0
  196. package/schemas/current-employment-position.schema.json +145 -0
  197. package/schemas/drivers-license-v1.0.schema.json +333 -0
  198. package/schemas/education-degree-graduation-v1.0.schema.json +320 -0
  199. package/schemas/education-degree-registration-v1.0.schema.json +228 -0
  200. package/schemas/education-degree-registration-v1.1.schema.json +279 -0
  201. package/schemas/education-degree-study-v1.0.schema.json +311 -0
  202. package/schemas/education-degree-study-v1.1.schema.json +357 -0
  203. package/schemas/education-degree.schema.json +161 -0
  204. package/schemas/email.schema.json +19 -0
  205. package/schemas/employment-current-v1.0.schema.json +216 -0
  206. package/schemas/employment-past-v1.0.schema.json +220 -0
  207. package/schemas/employment-past-v1.1.schema.json +271 -0
  208. package/schemas/id-document-v1.0.schema.json +278 -0
  209. package/schemas/id-document.schema.json +169 -0
  210. package/schemas/license-v1.0.schema.json +252 -0
  211. package/schemas/license-v1.1.schema.json +296 -0
  212. package/schemas/license.schema.json +261 -0
  213. package/schemas/national-id-card-v1.0.schema.json +272 -0
  214. package/schemas/open-badge-v1.0.schema.json +176 -0
  215. package/schemas/open-badge-v2.0.schema.json +348 -0
  216. package/schemas/passport-v1.0.schema.json +235 -0
  217. package/schemas/past-employment-position.schema.json +149 -0
  218. package/schemas/phone-v1.0.schema.json +45 -0
  219. package/schemas/phone.schema.json +19 -0
  220. package/schemas/proof-of-age-v1.0.schema.json +272 -0
  221. package/schemas/resident-permit-v1.0.schema.json +272 -0
  222. package/docker/compose.yml +0 -9
  223. package/docker/nginx.conf +0 -9
@@ -0,0 +1,278 @@
1
+ {
2
+ "title": "ID document",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "https://velocitynetwork.foundation/schemas/id-document-v1.0",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "@context": {
9
+ "$ref": "#/definitions/Json-ld-context_Schema"
10
+ },
11
+ "type": {
12
+ "type": "string",
13
+ "default": "IdDocument"
14
+ },
15
+ "documentType": {
16
+ "type": "string",
17
+ "description": "The type of document.",
18
+ "maxLength": 32
19
+ },
20
+ "authority": {
21
+ "$ref": "#/definitions/Organization_Schema"
22
+ },
23
+ "validity": {
24
+ "$ref": "#/definitions/Validity_Schema"
25
+ },
26
+ "person": {
27
+ "$ref": "#/definitions/Person_Schema"
28
+ },
29
+ "identifier": {
30
+ "type": "string",
31
+ "description": "The id number.",
32
+ "maxLength": 64
33
+ },
34
+ "nationality": {
35
+ "type": "string",
36
+ "pattern": "^[A-Z]{2}$",
37
+ "description": "The nationality of the person holding the document.",
38
+ "maxLength": 2
39
+ },
40
+ "postalAddress": {
41
+ "$ref": "#/definitions/Address_Schema"
42
+ }
43
+ },
44
+ "required": [
45
+ "documentType",
46
+ "authority",
47
+ "identifier",
48
+ "person"
49
+ ],
50
+ "definitions": {
51
+ "Json-ld-context_Schema": {
52
+ "title": "json-ld-context",
53
+ "oneOf": [
54
+ {
55
+ "type": "string",
56
+ "maxLength": 2048
57
+ },
58
+ {
59
+ "type": "array",
60
+ "minItems": 1,
61
+ "items": {
62
+ "type": "string",
63
+ "maxLength": 2048
64
+ }
65
+ }
66
+ ],
67
+ "description": "Simplified context for Velocity Publishers to Use"
68
+ },
69
+ "Address_Schema": {
70
+ "title": "Address",
71
+ "type": "object",
72
+ "additionalProperties": false,
73
+ "properties": {
74
+ "type": {
75
+ "type": "string",
76
+ "default": "Address"
77
+ },
78
+ "streetAddress": {
79
+ "type": "string",
80
+ "description": "The street address.",
81
+ "maxLength": 512
82
+ },
83
+ "addressLocality": {
84
+ "type": "string",
85
+ "description": "The locality of the address, e.g., town or city name.",
86
+ "maxLength": 256
87
+ },
88
+ "addressRegion": {
89
+ "type": "string",
90
+ "pattern": "^[A-Z]{2}(-[A-Z0-9]{1,3})?$",
91
+ "description": "The region where the place is. These are states, provinces, etc. Must be an [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2)",
92
+ "maxLength": 6
93
+ },
94
+ "postCode": {
95
+ "type": "string",
96
+ "description": "Postcode or zip code of the address.",
97
+ "maxLength": 32
98
+ },
99
+ "addressCountry": {
100
+ "type": "string",
101
+ "description": "The country where the place is. Must be an [ISO 3166 2 letter country code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)",
102
+ "pattern": "^[A-Z]{2}$",
103
+ "maxLength": 2
104
+ }
105
+ },
106
+ "required": [
107
+ "addressCountry"
108
+ ]
109
+ },
110
+ "Did_Schema": {
111
+ "title": "DID",
112
+ "type": "string",
113
+ "pattern": "^did:[a-z0-9]+:[A-Za-z0-9._:?=&%;-]+$"
114
+ },
115
+ "Organization_Schema": {
116
+ "title": "Organization",
117
+ "type": "object",
118
+ "additionalProperties": false,
119
+ "properties": {
120
+ "type": {
121
+ "type": "string",
122
+ "default": "Organization"
123
+ },
124
+ "name": {
125
+ "type": "string",
126
+ "description": "The name of the organization.",
127
+ "maxLength": 256
128
+ },
129
+ "identifier": {
130
+ "$ref": "#/definitions/Did_Schema"
131
+ },
132
+ "place": {
133
+ "$ref": "#/definitions/Place_Schema"
134
+ }
135
+ },
136
+ "required": [
137
+ "name",
138
+ "place"
139
+ ]
140
+ },
141
+ "Person_Schema": {
142
+ "title": "Person",
143
+ "type": "object",
144
+ "additionalProperties": false,
145
+ "properties": {
146
+ "type": {
147
+ "type": "string",
148
+ "default": "Person"
149
+ },
150
+ "givenName": {
151
+ "type": "string",
152
+ "description": "The given name or first name of the person.",
153
+ "maxLength": 64
154
+ },
155
+ "familyName": {
156
+ "type": "string",
157
+ "description": "The family name or surname of the person.",
158
+ "maxLength": 64
159
+ },
160
+ "middleName": {
161
+ "type": "string",
162
+ "description": "The middle name of the person.",
163
+ "maxLength": 256
164
+ },
165
+ "namePrefix": {
166
+ "type": "string",
167
+ "description": "A prefix to the name such as Dr or Sir.",
168
+ "maxLength": 8
169
+ },
170
+ "nameSuffix": {
171
+ "type": "string",
172
+ "description": "A suffix to the name such as Jr. or Sr.",
173
+ "maxLength": 16
174
+ },
175
+ "birthDate": {
176
+ "type": "string",
177
+ "format": "date",
178
+ "description": "The date of birth of the person."
179
+ },
180
+ "birthPlace": {
181
+ "$ref": "#/definitions/Place_Schema"
182
+ },
183
+ "gender": {
184
+ "type": "string",
185
+ "enum": [
186
+ "Male",
187
+ "Female",
188
+ "Other"
189
+ ],
190
+ "description": "The gender of the person."
191
+ }
192
+ },
193
+ "required": [
194
+ "givenName",
195
+ "birthDate"
196
+ ]
197
+ },
198
+ "Place_Schema": {
199
+ "title": "Place",
200
+ "type": "object",
201
+ "additionalProperties": false,
202
+ "properties": {
203
+ "type": {
204
+ "type": "string",
205
+ "default": "Place"
206
+ },
207
+ "name": {
208
+ "type": "string",
209
+ "description": "The name of the place, e.g., building name, branch name, etc.",
210
+ "maxLength": 256
211
+ },
212
+ "addressLocality": {
213
+ "type": "string",
214
+ "description": "The locality where the place is, e.g., town or city name.",
215
+ "maxLength": 256
216
+ },
217
+ "addressRegion": {
218
+ "type": "string",
219
+ "pattern": "^[A-Z]{2}(-[A-Z0-9]{1,3})?$",
220
+ "description": "The region where the place is. These are states, provinces, etc. Must be an [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2)",
221
+ "maxLength": 6
222
+ },
223
+ "addressCountry": {
224
+ "type": "string",
225
+ "description": "The country where the place is. Must be an [ISO 3166 2 letter country code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)",
226
+ "pattern": "^[A-Z]{2}$",
227
+ "maxLength": 2
228
+ }
229
+ },
230
+ "required": [
231
+ "addressCountry"
232
+ ]
233
+ },
234
+ "Validity_Schema": {
235
+ "title": "Validity",
236
+ "type": "object",
237
+ "additionalProperties": false,
238
+ "properties": {
239
+ "type": {
240
+ "type": "string",
241
+ "default": "Validity"
242
+ },
243
+ "firstValidFrom": {
244
+ "type": "string",
245
+ "format": "date",
246
+ "description": "The original date from which a certification, document or license is valid. "
247
+ },
248
+ "validFrom": {
249
+ "oneOf": [
250
+ {
251
+ "format": "date"
252
+ },
253
+ {
254
+ "format": "date-time"
255
+ }
256
+ ],
257
+ "description": "The date from which a certification, document or license is valid. In case of renewal, validFrom date will state the date or renewal. ",
258
+ "type": "string"
259
+ },
260
+ "validUntil": {
261
+ "oneOf": [
262
+ {
263
+ "format": "date"
264
+ },
265
+ {
266
+ "format": "date-time"
267
+ }
268
+ ],
269
+ "description": "The date until which a certification, document or license is valid. ",
270
+ "type": "string"
271
+ },
272
+ "validIn": {
273
+ "$ref": "#/definitions/Place_Schema"
274
+ }
275
+ }
276
+ }
277
+ }
278
+ }
@@ -0,0 +1,169 @@
1
+ {
2
+ "title": "id-document",
3
+ "type": "object",
4
+ "$id": "id-document",
5
+ "version": 1,
6
+ "description": "id document v1 schema",
7
+ "definitions": {
8
+ "DID": {
9
+ "type": "string",
10
+ "format": "regex",
11
+ "pattern": "^did:[a-z0-9]+:[A-Za-z0-9._:?=&%;-]+$"
12
+ },
13
+ "MultiLingualString": {
14
+ "type": "object",
15
+ "properties": {
16
+ "localized": {
17
+ "type": "object",
18
+ "propertyNames": {
19
+ "pattern": "^[a-z]{2}_[A-Z]{2}$"
20
+ },
21
+ "additionalProperties": {
22
+ "type": "string"
23
+ }
24
+ },
25
+ "preferredLocale": {
26
+ "type": "object",
27
+ "properties": {
28
+ "country": {
29
+ "type": "string",
30
+ "format": "regex",
31
+ "pattern": "^[A-Z]{2}$"
32
+ },
33
+ "language": {
34
+ "type": "string",
35
+ "format": "regex",
36
+ "pattern": "^[a-z]{2}$"
37
+ }
38
+ }
39
+ }
40
+ },
41
+ "additionalProperties": false,
42
+ "format": "regex",
43
+ "pattern": "^[a-zA-Z0-9\\s]*$",
44
+ "maxLength": 64,
45
+ "required": [
46
+ "localized"
47
+ ]
48
+ },
49
+ "Date": {
50
+ "type": "object",
51
+ "properties": {
52
+ "day": {
53
+ "type": "integer",
54
+ "minimum": 1,
55
+ "maximum": 31
56
+ },
57
+ "month": {
58
+ "type": "integer",
59
+ "minimum": 1,
60
+ "maximum": 12
61
+ },
62
+ "year": {
63
+ "type": "integer",
64
+ "minimum": 1950
65
+ }
66
+ },
67
+ "additionalProperties": false
68
+ },
69
+ "Location": {
70
+ "type": "object",
71
+ "properties": {
72
+ "countryCode": {
73
+ "type": "string",
74
+ "pattern": "^[A-Z]{2}$",
75
+ "description": "An uppercase two-letter country code as defined by [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)"
76
+ },
77
+ "regionCode": {
78
+ "type": "string",
79
+ "format": "regex",
80
+ "pattern": "^[A-Za-z0-9]{1,3}$",
81
+ "description": "An uppercase region code as defined by [ISO-3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)"
82
+ }
83
+ }
84
+ },
85
+ "Address": {
86
+ "type": "object",
87
+ "properties": {
88
+ "line1": {
89
+ "type": "string",
90
+ "format": "regex",
91
+ "pattern": "^[a-zA-Z0-9\\s]*$",
92
+ "maxLength": 64
93
+ },
94
+ "line2": {
95
+ "type": "string",
96
+ "format": "regex",
97
+ "pattern": "^[a-zA-Z0-9\\s]*$",
98
+ "maxLength": 64
99
+ },
100
+ "line3": {
101
+ "type": "string",
102
+ "format": "regex",
103
+ "pattern": "^[a-zA-Z0-9\\s]*$",
104
+ "maxLength": 64
105
+ },
106
+ "regionCode": {
107
+ "type": "string",
108
+ "format": "regex",
109
+ "pattern": "^[A-Za-z0-9]{1,3}$",
110
+ "description": "An uppercase region code as defined by [ISO-3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)"
111
+ },
112
+ "countryCode": {
113
+ "type": "string",
114
+ "format": "regex",
115
+ "pattern": "^[A-Z]{2}$",
116
+ "description": "An uppercase two-letter country code as defined by [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)"
117
+ },
118
+ "postcode": {
119
+ "type": "string",
120
+ "format": "regex",
121
+ "pattern": "^[a-zA-Z0-9\\s]*$",
122
+ "maxLength": 64
123
+ }
124
+ }
125
+ }
126
+ },
127
+ "properties": {
128
+ "kind": {
129
+ "type": "string",
130
+ "description": "DriversLicense, IdCard, SSN, NI Number, etc"
131
+ },
132
+ "authority": {
133
+ "$ref": "#/definitions/MultiLingualString",
134
+ "description": "name of the issuing authority"
135
+ },
136
+ "authorityId": {
137
+ "type": "string",
138
+ "description": "DID id of the issuing authority"
139
+ },
140
+ "location": {
141
+ "$ref": "#/definitions/Location"
142
+ },
143
+ "identityNumber": {
144
+ "type": "string",
145
+ "description": "The id number of the identity credential"
146
+ },
147
+ "firstName": {
148
+ "$ref": "#/definitions/MultiLingualString"
149
+ },
150
+ "lastName": {
151
+ "$ref": "#/definitions/MultiLingualString"
152
+ },
153
+ "middleNames": {
154
+ "$ref": "#/definitions/MultiLingualString"
155
+ },
156
+ "address": {
157
+ "$ref": "#/definitions/Address"
158
+ },
159
+ "dob": {
160
+ "$ref": "#/definitions/Date"
161
+ }
162
+ },
163
+ "required": [
164
+ "kind",
165
+ "identityNumber",
166
+ "authority",
167
+ "firstName"
168
+ ]
169
+ }
@@ -0,0 +1,252 @@
1
+ {
2
+ "title": "License",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "$id": "https://velocitynetwork.foundation/schemas/license-v1.0",
5
+ "allOf": [
6
+ {
7
+ "$ref": "#/definitions/Certification-license-base"
8
+ },
9
+ {
10
+ "type": "object",
11
+ "properties": {
12
+ "type": {
13
+ "type": "string",
14
+ "default": "CertificationLicense"
15
+ },
16
+ "identifier": {
17
+ "type": "string",
18
+ "description": "The number or other unique identifier of the license held by the person. ",
19
+ "maxLength": 512
20
+ },
21
+ "validity": {
22
+ "$ref": "#/definitions/Validity_Schema"
23
+ },
24
+ "endorsementCode": {
25
+ "type": "array",
26
+ "description": "Endorsements to the license such as vehicle class A1, B, in driver's license, or specialties in nursing license.",
27
+ "minItems": 1,
28
+ "items": {
29
+ "type": "string",
30
+ "maxLength": 128
31
+ }
32
+ },
33
+ "restrictionCode": {
34
+ "type": "array",
35
+ "description": "Restrictions to the license such as need to wear glasses in driver's license.",
36
+ "minItems": 1,
37
+ "items": {
38
+ "type": "string",
39
+ "maxLength": 128
40
+ }
41
+ }
42
+ }
43
+ }
44
+ ],
45
+ "required": [
46
+ "authority",
47
+ "name",
48
+ "identifier"
49
+ ],
50
+ "definitions": {
51
+ "Certification-license-base": {
52
+ "title": "Certification-license-base",
53
+ "$schema": "http://json-schema.org/draft-07/schema#",
54
+ "type": "object",
55
+ "properties": {
56
+ "@context": {
57
+ "$ref": "#/definitions/Json-ld-context_Schema"
58
+ },
59
+ "authority": {
60
+ "$ref": "#/definitions/Organization_Schema"
61
+ },
62
+ "name": {
63
+ "type": "string",
64
+ "description": "The name of the certification or license.",
65
+ "maxLength": 256
66
+ },
67
+ "description": {
68
+ "type": "string",
69
+ "description": "Detailed description of the certification or license.",
70
+ "maxLength": 2048
71
+ },
72
+ "alignment": {
73
+ "type": "array",
74
+ "description": "A public resource to which the certification or license is aligned.",
75
+ "minItems": 1,
76
+ "items": {
77
+ "$ref": "#/definitions/Alignment_Schema"
78
+ }
79
+ }
80
+ }
81
+ },
82
+ "Json-ld-context_Schema": {
83
+ "title": "json-ld-context",
84
+ "oneOf": [
85
+ {
86
+ "type": "string",
87
+ "maxLength": 2048
88
+ },
89
+ {
90
+ "type": "array",
91
+ "minItems": 1,
92
+ "items": {
93
+ "type": "string",
94
+ "maxLength": 2048
95
+ }
96
+ }
97
+ ],
98
+ "description": "Simplified context for Velocity Publishers to Use"
99
+ },
100
+ "Alignment_Schema": {
101
+ "title": "Alignment",
102
+ "type": "object",
103
+ "additionalProperties": false,
104
+ "properties": {
105
+ "type": {
106
+ "type": "string",
107
+ "default": "AlignmentObject"
108
+ },
109
+ "targetName": {
110
+ "type": "string",
111
+ "description": "Name of the target alignment.",
112
+ "maxLength": 256
113
+ },
114
+ "targetUrl": {
115
+ "type": "string",
116
+ "format": "uri",
117
+ "description": "URL of the target alignment. ",
118
+ "maxLength": 2048
119
+ },
120
+ "targetDescription": {
121
+ "type": "string",
122
+ "description": "Detailed description of the target alignment. ",
123
+ "maxLength": 2048
124
+ },
125
+ "targetCode": {
126
+ "type": "string",
127
+ "description": "Code of the target alignment. ",
128
+ "maxLength": 256
129
+ },
130
+ "targetFramework": {
131
+ "type": "string",
132
+ "description": "The framework to which the target belongs. ",
133
+ "maxLength": 256
134
+ }
135
+ },
136
+ "required": [
137
+ "targetName",
138
+ "targetUrl"
139
+ ]
140
+ },
141
+ "Did_Schema": {
142
+ "title": "DID",
143
+ "type": "string",
144
+ "pattern": "^did:[a-z0-9]+:[A-Za-z0-9._:?=&%;-]+$"
145
+ },
146
+ "Organization_Schema": {
147
+ "title": "Organization",
148
+ "type": "object",
149
+ "additionalProperties": false,
150
+ "properties": {
151
+ "type": {
152
+ "type": "string",
153
+ "default": "Organization"
154
+ },
155
+ "name": {
156
+ "type": "string",
157
+ "description": "The name of the organization.",
158
+ "maxLength": 256
159
+ },
160
+ "identifier": {
161
+ "$ref": "#/definitions/Did_Schema"
162
+ },
163
+ "place": {
164
+ "$ref": "#/definitions/Place_Schema"
165
+ }
166
+ },
167
+ "required": [
168
+ "name",
169
+ "place"
170
+ ]
171
+ },
172
+ "Place_Schema": {
173
+ "title": "Place",
174
+ "type": "object",
175
+ "additionalProperties": false,
176
+ "properties": {
177
+ "type": {
178
+ "type": "string",
179
+ "default": "Place"
180
+ },
181
+ "name": {
182
+ "type": "string",
183
+ "description": "The name of the place, e.g., building name, branch name, etc.",
184
+ "maxLength": 256
185
+ },
186
+ "addressLocality": {
187
+ "type": "string",
188
+ "description": "The locality where the place is, e.g., town or city name.",
189
+ "maxLength": 256
190
+ },
191
+ "addressRegion": {
192
+ "type": "string",
193
+ "pattern": "^[A-Z]{2}(-[A-Z0-9]{1,3})?$",
194
+ "description": "The region where the place is. These are states, provinces, etc. Must be an [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2)",
195
+ "maxLength": 6
196
+ },
197
+ "addressCountry": {
198
+ "type": "string",
199
+ "description": "The country where the place is. Must be an [ISO 3166 2 letter country code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)",
200
+ "pattern": "^[A-Z]{2}$",
201
+ "maxLength": 2
202
+ }
203
+ },
204
+ "required": [
205
+ "addressCountry"
206
+ ]
207
+ },
208
+ "Validity_Schema": {
209
+ "title": "Validity",
210
+ "type": "object",
211
+ "additionalProperties": false,
212
+ "properties": {
213
+ "type": {
214
+ "type": "string",
215
+ "default": "Validity"
216
+ },
217
+ "firstValidFrom": {
218
+ "type": "string",
219
+ "format": "date",
220
+ "description": "The original date from which a certification, document or license is valid. "
221
+ },
222
+ "validFrom": {
223
+ "oneOf": [
224
+ {
225
+ "format": "date"
226
+ },
227
+ {
228
+ "format": "date-time"
229
+ }
230
+ ],
231
+ "description": "The date from which a certification, document or license is valid. In case of renewal, validFrom date will state the date or renewal. ",
232
+ "type": "string"
233
+ },
234
+ "validUntil": {
235
+ "oneOf": [
236
+ {
237
+ "format": "date"
238
+ },
239
+ {
240
+ "format": "date-time"
241
+ }
242
+ ],
243
+ "description": "The date until which a certification, document or license is valid. ",
244
+ "type": "string"
245
+ },
246
+ "validIn": {
247
+ "$ref": "#/definitions/Place_Schema"
248
+ }
249
+ }
250
+ }
251
+ }
252
+ }