@verii/common-schemas 1.0.0-pre.1752076816
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 +202 -0
- package/NOTICE +1 -0
- package/index.js +25 -0
- package/package.json +18 -0
- package/src/did-service/did-service.schema.json +42 -0
- package/src/did-service/index.js +23 -0
- package/src/did-service/modify-did-service.schema.json +46 -0
- package/src/entity/immutable-entity.schema.json +15 -0
- package/src/entity/index.js +20 -0
- package/src/entity/mutable-entity.schema.json +19 -0
- package/src/error/error.schema.json +23 -0
- package/src/error/index.js +19 -0
- package/src/general/index.js +23 -0
- package/src/general/page-body.schema.json +28 -0
- package/src/general/page-query.schema.json +29 -0
- package/src/issuing/holder-offer.schema.js +115 -0
- package/src/issuing/index.js +24 -0
- package/src/issuing/new-offer-related-resource.schema.json +86 -0
- package/src/issuing/w3c-vc.schema.json +196 -0
- package/src/organization/address.schema.json +33 -0
- package/src/organization/index.js +31 -0
- package/src/organization/location.schema.json +20 -0
- package/src/organization/organization-profile-base.schema.json +169 -0
- package/src/organization/organization-profile.schema.json +66 -0
- package/src/organization/registrar-message-response.json +9 -0
- package/src/organization/registrar-message.json +84 -0
- package/src/verification/identify-webhook.request.body.schema.json +113 -0
- package/src/verification/index.js +23 -0
- package/src/verification/verification.identify.response.200.schema.json +12 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 Velocity Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const w3cVcSchema = require('./w3c-vc.schema.json');
|
|
18
|
+
const newOfferRelatedResourceSchema = require('./new-offer-related-resource.schema.json');
|
|
19
|
+
|
|
20
|
+
module.exports = {
|
|
21
|
+
newOfferRelatedResourceSchema,
|
|
22
|
+
w3cVcSchema,
|
|
23
|
+
...require('./holder-offer.schema'),
|
|
24
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://velocitycareerlabs.io/new-offer-related-resource.schema.json",
|
|
4
|
+
"title": "New Offer Related Resource",
|
|
5
|
+
"oneOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "the id of the resource that is an related resource",
|
|
12
|
+
"format": "uri"
|
|
13
|
+
},
|
|
14
|
+
"type": {
|
|
15
|
+
"anyOf": [
|
|
16
|
+
{
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "string"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"description": "the type of related resource. Typically omitted"
|
|
27
|
+
},
|
|
28
|
+
"mediaType": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "the media type of the URI. Can be used to validate what is downloaded"
|
|
31
|
+
},
|
|
32
|
+
"digestSRI": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "the digest of the object"
|
|
35
|
+
},
|
|
36
|
+
"name": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "the name of the referenced resource"
|
|
39
|
+
},
|
|
40
|
+
"hint": {
|
|
41
|
+
"anyOf": [
|
|
42
|
+
{
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "string"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"description": "rendering hints for wallets. Can be used to validate the downloaded credential. Eg PDF or VerifiableCredential"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"id"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "object",
|
|
61
|
+
"properties": {
|
|
62
|
+
"offerId": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"description": "a reference to an offerId in the same exchange"
|
|
65
|
+
},
|
|
66
|
+
"type": {
|
|
67
|
+
"anyOf": [
|
|
68
|
+
{
|
|
69
|
+
"type": "array",
|
|
70
|
+
"items": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"type": "string"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"description": "the type of related resource. Typically omitted"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"required": [
|
|
82
|
+
"offerId"
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://velocitycareerlabs.io/w3c-vc.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"title": "w3c-vc",
|
|
6
|
+
"description": "An w3c vc schema",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"properties": {
|
|
9
|
+
"@context": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"description": "The JSON-LD context of the credential. @context is defaulted based on the VN credential metadata for the type chosen below"
|
|
15
|
+
},
|
|
16
|
+
"type": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"description": "The JSON-LD type of the credential.",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"minItems": 1
|
|
23
|
+
},
|
|
24
|
+
"credentialSubject": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"description": "Contains all the claims of the credential",
|
|
27
|
+
"additionalProperties": true
|
|
28
|
+
},
|
|
29
|
+
"validUntil": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"format": "date-time"
|
|
32
|
+
},
|
|
33
|
+
"validFrom": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"format": "date-time"
|
|
36
|
+
},
|
|
37
|
+
"name": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"issuer": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"properties": {
|
|
44
|
+
"id": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "The issuer id."
|
|
47
|
+
},
|
|
48
|
+
"name": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "The name of brand"
|
|
51
|
+
},
|
|
52
|
+
"image": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "The uri to image"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"replaces": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"$ref": "https://velocitycareerlabs.io/new-offer-related-resource.schema.json#"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"relatedResource": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"$ref": "https://velocitycareerlabs.io/new-offer-related-resource.schema.json#"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"description": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"image": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"format": "uri"
|
|
76
|
+
},
|
|
77
|
+
"awardedDate": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"format": "date-time"
|
|
80
|
+
},
|
|
81
|
+
"endorsement": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"items": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"additionalProperties": true
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"endorsementJwt": {
|
|
89
|
+
"type": "array",
|
|
90
|
+
"items": {
|
|
91
|
+
"type": "string"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"evidence": {
|
|
95
|
+
"type": "array",
|
|
96
|
+
"items": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"additionalProperties": true
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"credentialSchema": {
|
|
102
|
+
"oneOf": [{
|
|
103
|
+
"type": "object",
|
|
104
|
+
"properties": {
|
|
105
|
+
"id": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"format": "uri"
|
|
108
|
+
},
|
|
109
|
+
"type": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}, {
|
|
114
|
+
"type": "array",
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"properties": {
|
|
118
|
+
"id": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"format": "uri"
|
|
121
|
+
},
|
|
122
|
+
"type": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}]
|
|
128
|
+
},
|
|
129
|
+
"credentialStatus": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"properties": {
|
|
132
|
+
"id": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"format": "uri"
|
|
135
|
+
},
|
|
136
|
+
"type": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"refreshService": {
|
|
142
|
+
"type": "object",
|
|
143
|
+
"properties": {
|
|
144
|
+
"id": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"format": "uri"
|
|
147
|
+
},
|
|
148
|
+
"type": {
|
|
149
|
+
"type": "string"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"termsOfUrl": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"properties": {
|
|
156
|
+
"id": {
|
|
157
|
+
"type": "string"
|
|
158
|
+
},
|
|
159
|
+
"type": {
|
|
160
|
+
"type": "string"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"expirationDate": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"format": "date-time",
|
|
167
|
+
"deprecated": true
|
|
168
|
+
},
|
|
169
|
+
"linkedCredentials": {
|
|
170
|
+
"type": "array",
|
|
171
|
+
"items": {
|
|
172
|
+
"type": "object",
|
|
173
|
+
"properties": {
|
|
174
|
+
"linkedCredentialId": {
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
"linkType": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"enum": [
|
|
180
|
+
"REPLACE"
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"required": [
|
|
185
|
+
"linkedCredentialId",
|
|
186
|
+
"linkType"
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
"deprecated": true
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"required": [
|
|
193
|
+
"type",
|
|
194
|
+
"credentialSubject"
|
|
195
|
+
]
|
|
196
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "address",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"$id": "https://velocitynetwork.foundation/schemas/address.schema.json",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"description": "address validation schema",
|
|
7
|
+
"properties": {
|
|
8
|
+
"line1": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"line2": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"line3": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"regionCode": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "regex",
|
|
20
|
+
"pattern": "^[A-Z]{2}(-[A-Z0-9]{1,3})?$",
|
|
21
|
+
"description": "An uppercase region code as defined by [ISO-3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)"
|
|
22
|
+
},
|
|
23
|
+
"countryCode": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"format": "regex",
|
|
26
|
+
"pattern": "^[A-Z]{2}$",
|
|
27
|
+
"description": "An uppercase two-letter country code as defined by [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)"
|
|
28
|
+
},
|
|
29
|
+
"postcode": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 Velocity Team
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const organizationProfileBaseSchema = require('./organization-profile-base.schema.json');
|
|
18
|
+
const organizationProfileSchema = require('./organization-profile.schema.json');
|
|
19
|
+
const registrarMessage = require('./registrar-message.json');
|
|
20
|
+
const registrarMessageResponse = require('./registrar-message-response.json');
|
|
21
|
+
const addressSchema = require('./address.schema.json');
|
|
22
|
+
const locationSchema = require('./location.schema.json');
|
|
23
|
+
|
|
24
|
+
module.exports = {
|
|
25
|
+
addressSchema,
|
|
26
|
+
locationSchema,
|
|
27
|
+
organizationProfileBaseSchema,
|
|
28
|
+
organizationProfileSchema,
|
|
29
|
+
registrarMessage,
|
|
30
|
+
registrarMessageResponse,
|
|
31
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "location",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"$id": "https://velocitynetwork.foundation/schemas/location.schema.json",
|
|
5
|
+
"description": "location validation schema",
|
|
6
|
+
"properties": {
|
|
7
|
+
"countryCode": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "regex",
|
|
10
|
+
"pattern": "^[A-Z]{2}$"
|
|
11
|
+
},
|
|
12
|
+
"regionCode": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"format": "regex",
|
|
15
|
+
"pattern": "^[A-Za-z0-9]{1,3}(-[A-Za-z0-9]{1,3})?$",
|
|
16
|
+
"description": "An uppercase region code as defined by [ISO-3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "organization-profile-base",
|
|
4
|
+
"title": "Base Organization Profile Information",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"description": "Profile info for an org that can be set in a \"form\"",
|
|
8
|
+
"properties": {
|
|
9
|
+
"name": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "the name of the of",
|
|
12
|
+
"maxLength": 100
|
|
13
|
+
},
|
|
14
|
+
"location": {
|
|
15
|
+
"$ref": "https://velocitynetwork.foundation/schemas/location.schema.json#"
|
|
16
|
+
},
|
|
17
|
+
"logo": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "the logo to be used for the org",
|
|
20
|
+
"format": "uri"
|
|
21
|
+
},
|
|
22
|
+
"website": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"format": "uri"
|
|
25
|
+
},
|
|
26
|
+
"alsoKnownAs": {
|
|
27
|
+
"title": "Also Known As",
|
|
28
|
+
"description": "https://www.w3.org/TR/did-core/#also-known-as",
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"format": "uri"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"contactEmail": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"format": "email"
|
|
38
|
+
},
|
|
39
|
+
"technicalEmail": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"format": "email"
|
|
42
|
+
},
|
|
43
|
+
"description": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"founded": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": "regex",
|
|
49
|
+
"pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$"
|
|
50
|
+
},
|
|
51
|
+
"closed": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"format": "regex",
|
|
54
|
+
"pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$"
|
|
55
|
+
},
|
|
56
|
+
"type": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"enum": [
|
|
59
|
+
"company",
|
|
60
|
+
"non-profit"
|
|
61
|
+
],
|
|
62
|
+
"default": "company"
|
|
63
|
+
},
|
|
64
|
+
"registrationNumbers": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"properties": {
|
|
69
|
+
"authority": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"enum": [
|
|
72
|
+
"NationalAuthority",
|
|
73
|
+
"DunnAndBradstreet",
|
|
74
|
+
"GLEIF",
|
|
75
|
+
"LinkedIn"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"number": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"uri": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"format": "uri"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": [
|
|
87
|
+
"authority",
|
|
88
|
+
"number"
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"commercialEntities": {
|
|
93
|
+
"type": "array",
|
|
94
|
+
"items": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"properties": {
|
|
97
|
+
"type": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "the type of commericial entity",
|
|
100
|
+
"enum": [
|
|
101
|
+
"Brand",
|
|
102
|
+
"Department"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"name": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "the commercial name of the org",
|
|
108
|
+
"maxLength": 100
|
|
109
|
+
},
|
|
110
|
+
"logo": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"description": "the commercial logo to be used for the org",
|
|
113
|
+
"format": "uri"
|
|
114
|
+
},
|
|
115
|
+
"description": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"description": "a description associated with this entity"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"required": [
|
|
121
|
+
"type",
|
|
122
|
+
"name",
|
|
123
|
+
"logo"
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"adminGivenName": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"description": "Given name of the admin"
|
|
130
|
+
},
|
|
131
|
+
"adminFamilyName": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"description": "Family name of the admin"
|
|
134
|
+
},
|
|
135
|
+
"adminTitle": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"description": "Title of the admin"
|
|
138
|
+
},
|
|
139
|
+
"adminEmail": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"format": "email",
|
|
142
|
+
"description": "Email of the admin"
|
|
143
|
+
},
|
|
144
|
+
"signatoryGivenName": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"description": "Given name of the signatory"
|
|
147
|
+
},
|
|
148
|
+
"signatoryFamilyName": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"description": "Family name of the signatory"
|
|
151
|
+
},
|
|
152
|
+
"signatoryTitle": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"description": "Title of the signatory"
|
|
155
|
+
},
|
|
156
|
+
"signatoryEmail": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"format": "email",
|
|
159
|
+
"description": "Email of the signatory"
|
|
160
|
+
},
|
|
161
|
+
"physicalAddress": {
|
|
162
|
+
"$ref": "https://velocitynetwork.foundation/schemas/address.schema.json#"
|
|
163
|
+
},
|
|
164
|
+
"linkedInProfile": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"format": "uri"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "organization-profile",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"title": "An organization in persistent storage",
|
|
6
|
+
"description": "Profile info for an organization",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "organization-profile-base#",
|
|
10
|
+
"required": [
|
|
11
|
+
"type",
|
|
12
|
+
"name",
|
|
13
|
+
"website",
|
|
14
|
+
"location",
|
|
15
|
+
"logo"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"id": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "did:[a-z0-9]+:[A-Za-z0-9._:?=&%;-]+$",
|
|
24
|
+
"description": "the did of the organization"
|
|
25
|
+
},
|
|
26
|
+
"verifiableCredentialJwt": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": "uri",
|
|
29
|
+
"description": "the jwt of the vc that has the profile information encoded with in"
|
|
30
|
+
},
|
|
31
|
+
"permittedVelocityServiceCategory": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"enum": [
|
|
36
|
+
"Issuer",
|
|
37
|
+
"Inspector",
|
|
38
|
+
"CredentialAgentOperator",
|
|
39
|
+
"NodeOperator",
|
|
40
|
+
"NotaryIssuer",
|
|
41
|
+
"HolderAppProvider",
|
|
42
|
+
"TrustRoot",
|
|
43
|
+
"IdentityIssuer",
|
|
44
|
+
"IdDocumentIssuer",
|
|
45
|
+
"NotaryIdDocumentIssuer",
|
|
46
|
+
"ContactIssuer",
|
|
47
|
+
"NotaryContactIssuer"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"createdAt": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"format": "date-time"
|
|
54
|
+
},
|
|
55
|
+
"updatedAt": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"format": "date-time"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"required": [
|
|
61
|
+
"id",
|
|
62
|
+
"permittedVelocityServiceCategory"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|