@velocitycareerlabs/common-schemas 1.17.0-dev-build.1bc6fcace
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 +28 -0
- package/package.json +16 -0
- package/src/credential-type/credential-type.schema.json +9 -0
- package/src/credential-type/index.js +23 -0
- package/src/credential-type/new-credential-type.schema.json +96 -0
- package/src/did/did-doc.schema.json +148 -0
- package/src/did/did-key.schema.json +62 -0
- package/src/did/did-proof.schema.json +44 -0
- package/src/did/did-service.schema.json +44 -0
- package/src/did/index.js +29 -0
- package/src/did/modify-did-service.schema.json +14 -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 +19 -0
- package/src/error/index.js +19 -0
- package/src/general/address.schema.json +33 -0
- package/src/general/date.schema.json +23 -0
- package/src/general/email.schema.json +13 -0
- package/src/general/error-response.schema.json +20 -0
- package/src/general/index.js +37 -0
- package/src/general/location.schema.json +20 -0
- package/src/general/multilingual-string.schema.json +40 -0
- package/src/general/page-body.schema.json +28 -0
- package/src/general/page-query.schema.json +29 -0
- package/src/general/phone.schema.json +13 -0
- package/src/identity/id-document.schema.json +39 -0
- package/src/identity/index.js +21 -0
- package/src/issuing/holder-offer.schema.json +142 -0
- package/src/issuing/index.js +23 -0
- package/src/issuing/issuer-data.schema.json +26 -0
- package/src/jwts/index.js +31 -0
- package/src/jwts/jwt-decode.response.200.schema.json +20 -0
- package/src/jwts/jwt-decode.schema.json +15 -0
- package/src/jwts/jwt-sign.response.200.schema.json +14 -0
- package/src/jwts/jwt-sign.schema.json +40 -0
- package/src/jwts/jwt-verify.response.200.schema.json +17 -0
- package/src/jwts/jwt-verify.schema.json +19 -0
- package/src/organization/index.js +39 -0
- package/src/organization/organization-profile-modification.schema.json +172 -0
- package/src/organization/organization-profile-public-response.schema.js +16 -0
- package/src/organization/organization-profile-verifiable-credential.schema.json +25 -0
- package/src/organization/organization-profile.schema.json +57 -0
- package/src/organization/organization-verified-profile.schema.json +125 -0
- package/src/organization/organization.search-profile.query-params.schema.json +50 -0
- package/src/organization/organization.search.query-params.schema.json +42 -0
- package/src/organization/public-key.schema.json +99 -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,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "organization-search-query-params",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"$id": "organization-search-query-params",
|
|
5
|
+
"description": "Query parameters used for searching organizations",
|
|
6
|
+
"allOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "https://velocitynetwork.foundation/schemas/page-query.schema.json#"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"filter": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"serviceTypes": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"credentialTypes": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"did": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"q": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "public-key",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"title": "public-key",
|
|
6
|
+
"description": "A public key is a verification method. Public keys are used for digital signatures, encryption and other cryptographic operations, which in turn are the basis for purposes such as authentication.",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": {
|
|
10
|
+
"title": "Public Key ID",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"example": [
|
|
13
|
+
"did:example:123#primary"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"type": {
|
|
17
|
+
"title": "Public Key Type",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"EcdsaSecp256k1VerificationKey2019",
|
|
21
|
+
"X25519KeyAgreementKey2019",
|
|
22
|
+
"Ed25519VerificationKey2018",
|
|
23
|
+
"JsonWebKey2020"
|
|
24
|
+
],
|
|
25
|
+
"example": [
|
|
26
|
+
"EcdsaSecp256k1VerificationKey2019"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"controller": {
|
|
30
|
+
"title": "Controller",
|
|
31
|
+
"description": "https://w3c.github.io/did-core-registries/#controller",
|
|
32
|
+
"type": "string",
|
|
33
|
+
"example": [
|
|
34
|
+
"did:example:123"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"oneOf": [
|
|
39
|
+
{
|
|
40
|
+
"properties": {
|
|
41
|
+
"publicKeyJwk": {
|
|
42
|
+
"title": "Public Key JWK",
|
|
43
|
+
"description": "https://w3c.github.io/did-spec-registries/#publickeyjwk",
|
|
44
|
+
"type": "object",
|
|
45
|
+
"properties": {
|
|
46
|
+
"crv": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"kid": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"kty": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"x": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"y": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"example": [
|
|
63
|
+
{
|
|
64
|
+
"crv": "secp256k1",
|
|
65
|
+
"kid": "JUvpllMEYUZ2joO59UNui_XYDqxVqiFLLAJ8klWuPBw",
|
|
66
|
+
"kty": "EC",
|
|
67
|
+
"x": "dWCvM4fTdeM0KmloF57zxtBPXTOythHPMm1HCLrdd3A",
|
|
68
|
+
"y": "36uMVGM7hnw-N6GnjFcihWE3SkrhMLzzLCdPMXPEXlA"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": [
|
|
74
|
+
"id",
|
|
75
|
+
"type",
|
|
76
|
+
"controller",
|
|
77
|
+
"publicKeyJwk"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"properties": {
|
|
82
|
+
"publicKeyBase58": {
|
|
83
|
+
"title": "Public Key Base58",
|
|
84
|
+
"description": "https://w3c.github.io/did-spec-registries/#publickeybase58",
|
|
85
|
+
"type": "string",
|
|
86
|
+
"example": [
|
|
87
|
+
"CaSHXEvLKS6SfN9aBfkVGBpp15jSnaHazqHgLHp8KZ3Y"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"required": [
|
|
92
|
+
"id",
|
|
93
|
+
"type",
|
|
94
|
+
"controller",
|
|
95
|
+
"publicKeyBase58"
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "registrar-message",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"messageType": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"enum": [
|
|
8
|
+
"test",
|
|
9
|
+
"create_tenant"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"messageId": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"payload": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"caoDid": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"caoService": {
|
|
22
|
+
"$ref": "did-service#"
|
|
23
|
+
},
|
|
24
|
+
"create_tenant": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"did": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"serviceIds": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"keys": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"kidFragment": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"pattern": "^#[a-zA-Z0-9-_:?=&;]+$"
|
|
44
|
+
},
|
|
45
|
+
"purposes": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"key": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"publicKey": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"algorithm": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"enum": [
|
|
60
|
+
"SECP256K1",
|
|
61
|
+
"ED25519"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"encoding": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"enum": [
|
|
67
|
+
"hex",
|
|
68
|
+
"base58",
|
|
69
|
+
"jwk"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": [
|
|
81
|
+
"messageType",
|
|
82
|
+
"messageId"
|
|
83
|
+
]
|
|
84
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "identify-webhook-request-body",
|
|
3
|
+
"$id": "identify-webhook-request-body",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"properties": {
|
|
8
|
+
"idDocumentCredentials": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"minItems": 1,
|
|
11
|
+
"items": {
|
|
12
|
+
"anyOf": [
|
|
13
|
+
{
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"id": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"id"
|
|
22
|
+
],
|
|
23
|
+
"deprecated": true
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "object",
|
|
27
|
+
"properties": {
|
|
28
|
+
"credentialSubject": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"id": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"id"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"credentialSubject"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"exchangeId": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"vendorOriginContext": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": [
|
|
55
|
+
"idDocumentCredentials",
|
|
56
|
+
"exchangeId"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"properties": {
|
|
61
|
+
"idDocumentCredentials": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"anyOf": [
|
|
65
|
+
{
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"id": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"required": [
|
|
73
|
+
"id"
|
|
74
|
+
],
|
|
75
|
+
"deprecated": true
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "object",
|
|
79
|
+
"properties": {
|
|
80
|
+
"credentialSubject": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"properties": {
|
|
83
|
+
"id": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": [
|
|
88
|
+
"id"
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": [
|
|
93
|
+
"credentialSubject"
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"exchangeId": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
},
|
|
102
|
+
"vendorOriginContext": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"required": [
|
|
107
|
+
"idDocumentCredentials",
|
|
108
|
+
"vendorOriginContext",
|
|
109
|
+
"exchangeId"
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 identifyWebhookRequestBodySchema = require('./identify-webhook.request.body.schema.json');
|
|
18
|
+
const verificationIdentifyResponse200Schema = require('./verification.identify.response.200.schema.json');
|
|
19
|
+
|
|
20
|
+
module.exports = {
|
|
21
|
+
identifyWebhookRequestBodySchema,
|
|
22
|
+
verificationIdentifyResponse200Schema,
|
|
23
|
+
};
|