@pdtf/schemas 3.6.0-dev.20 → 3.6.0-dev.21

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.
@@ -0,0 +1,59 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://trust.propdata.org.uk/schemas/v4/entities/transactionRole.json",
4
+ "type": "object",
5
+ "title": "Transaction Role Entity",
6
+ "description": "A party's role in a transaction, where no more specific relationship credential applies. Asserts participation in a role, not a relationship to another named party.",
7
+ "x-pdtf-source": {
8
+ "packageName": "@pdtf/schemas",
9
+ "packageVersion": "3.6.0-dev.21",
10
+ "v3SchemaId": "https://trust.propdata.org.uk/schemas/v3/pdtf-transaction.json",
11
+ "combinedPath": "src/schemas/v3/combined.json",
12
+ "combinedSha256": "1c6c5812f73a36d3674d5fb7b5eb1f6ce524d09c4195e281e078b9e41ea94f6d"
13
+ },
14
+ "properties": {
15
+ "id": {
16
+ "title": "Transaction Role URN",
17
+ "description": "Uniform Resource Name identifier for the transaction role",
18
+ "type": "string",
19
+ "pattern": "^urn:[a-z0-9][a-z0-9-]{0,31}:[a-zA-Z0-9._~:/?#\\[\\]@!$&'()*+,;=-]+$"
20
+ },
21
+ "participant": {
22
+ "title": "Participant Reference",
23
+ "description": "DID referencing the Person or Organisation holding the role",
24
+ "type": "string",
25
+ "pattern": "^did:[a-z0-9]+:(?:(?:[a-zA-Z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[a-zA-Z0-9._-]|%[0-9A-Fa-f]{2})+$"
26
+ },
27
+ "role": {
28
+ "title": "Role",
29
+ "type": "string",
30
+ "enum": [
31
+ "Seller",
32
+ "Seller's Conveyancer",
33
+ "Prospective Buyer",
34
+ "Buyer",
35
+ "Buyer's Conveyancer",
36
+ "Gift Donor",
37
+ "Estate Agent",
38
+ "Buyer's Agent",
39
+ "Surveyor",
40
+ "Mortgage Broker",
41
+ "Lender",
42
+ "Landlord",
43
+ "Tenant",
44
+ "Platform Support"
45
+ ]
46
+ },
47
+ "transaction": {
48
+ "title": "Transaction Reference",
49
+ "description": "DID referencing the Transaction entity",
50
+ "type": "string",
51
+ "pattern": "^did:[a-z0-9]+:(?:(?:[a-zA-Z0-9._-]|%[0-9A-Fa-f]{2})*:)*(?:[a-zA-Z0-9._-]|%[0-9A-Fa-f]{2})+$"
52
+ }
53
+ },
54
+ "required": [
55
+ "participant",
56
+ "role",
57
+ "transaction"
58
+ ]
59
+ }