@hypercerts-org/lexicon 0.9.0-beta.0 → 0.10.0-beta.1
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/README.md +346 -164
- package/dist/exports.d.ts +1018 -0
- package/dist/exports.d.ts.map +1 -0
- package/dist/generated/exports.d.ts +1018 -0
- package/dist/generated/exports.d.ts.map +1 -0
- package/dist/generated/lexicons.d.ts +1805 -0
- package/dist/generated/lexicons.d.ts.map +1 -0
- package/dist/generated/types/app/certified/badge/award.d.ts +24 -0
- package/dist/generated/types/app/certified/badge/award.d.ts.map +1 -0
- package/dist/generated/types/app/certified/badge/definition.d.ts +25 -0
- package/dist/generated/types/app/certified/badge/definition.d.ts.map +1 -0
- package/dist/generated/types/app/certified/badge/response.d.ts +20 -0
- package/dist/generated/types/app/certified/badge/response.d.ts.map +1 -0
- package/dist/generated/types/app/certified/defs.d.ts +3 -0
- package/dist/generated/types/app/certified/defs.d.ts.map +1 -0
- package/dist/generated/types/app/certified/location.d.ts +29 -0
- package/dist/generated/types/app/certified/location.d.ts.map +1 -0
- package/dist/generated/types/com/atproto/repo/strongRef.d.ts +12 -0
- package/dist/generated/types/com/atproto/repo/strongRef.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts +57 -0
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/collection.d.ts +25 -0
- package/dist/generated/types/org/hypercerts/claim/collection.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/contribution.d.ts +24 -0
- package/dist/generated/types/org/hypercerts/claim/contribution.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/evaluation.d.ts +43 -0
- package/dist/generated/types/org/hypercerts/claim/evaluation.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/evidence.d.ts +29 -0
- package/dist/generated/types/org/hypercerts/claim/evidence.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/measurement.d.ts +30 -0
- package/dist/generated/types/org/hypercerts/claim/measurement.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/project.d.ts +29 -0
- package/dist/generated/types/org/hypercerts/claim/project.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/claim/rights.d.ts +25 -0
- package/dist/generated/types/org/hypercerts/claim/rights.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/defs.d.ts +45 -0
- package/dist/generated/types/org/hypercerts/defs.d.ts.map +1 -0
- package/dist/generated/types/org/hypercerts/funding/receipt.d.ts +34 -0
- package/dist/generated/types/org/hypercerts/funding/receipt.d.ts.map +1 -0
- package/dist/generated/types/pub/leaflet/pages/linearDocument.d.ts +2 -0
- package/dist/generated/types/pub/leaflet/pages/linearDocument.d.ts.map +1 -0
- package/dist/generated/util.d.ts +37 -0
- package/dist/generated/util.d.ts.map +1 -0
- package/dist/index.cjs +2119 -955
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2054 -935
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons.cjs +1002 -0
- package/dist/lexicons.cjs.map +1 -0
- package/dist/lexicons.d.ts +1805 -0
- package/dist/lexicons.d.ts.map +1 -0
- package/dist/lexicons.mjs +996 -0
- package/dist/lexicons.mjs.map +1 -0
- package/dist/types/app/certified/badge/award.d.ts +24 -0
- package/dist/types/app/certified/badge/award.d.ts.map +1 -0
- package/dist/types/app/certified/badge/definition.d.ts +25 -0
- package/dist/types/app/certified/badge/definition.d.ts.map +1 -0
- package/dist/types/app/certified/badge/response.d.ts +20 -0
- package/dist/types/app/certified/badge/response.d.ts.map +1 -0
- package/dist/types/app/certified/defs.d.ts +3 -0
- package/dist/types/app/certified/defs.d.ts.map +1 -0
- package/dist/types/app/certified/location.d.ts +29 -0
- package/dist/types/app/certified/location.d.ts.map +1 -0
- package/dist/types/com/atproto/repo/strongRef.d.ts +12 -0
- package/dist/types/com/atproto/repo/strongRef.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/activity.d.ts +57 -0
- package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/collection.d.ts +25 -0
- package/dist/types/org/hypercerts/claim/collection.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/contribution.d.ts +24 -0
- package/dist/types/org/hypercerts/claim/contribution.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/evaluation.d.ts +43 -0
- package/dist/types/org/hypercerts/claim/evaluation.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/evidence.d.ts +29 -0
- package/dist/types/org/hypercerts/claim/evidence.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/measurement.d.ts +30 -0
- package/dist/types/org/hypercerts/claim/measurement.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/project.d.ts +29 -0
- package/dist/types/org/hypercerts/claim/project.d.ts.map +1 -0
- package/dist/types/org/hypercerts/claim/rights.d.ts +25 -0
- package/dist/types/org/hypercerts/claim/rights.d.ts.map +1 -0
- package/dist/types/org/hypercerts/defs.d.ts +45 -0
- package/dist/types/org/hypercerts/defs.d.ts.map +1 -0
- package/dist/types/org/hypercerts/funding/receipt.d.ts +34 -0
- package/dist/types/org/hypercerts/funding/receipt.d.ts.map +1 -0
- package/dist/types/pub/leaflet/pages/linearDocument.d.ts +2 -0
- package/dist/types/pub/leaflet/pages/linearDocument.d.ts.map +1 -0
- package/dist/util.d.ts +37 -0
- package/dist/util.d.ts.map +1 -0
- package/lexicons/app/certified/badge/award.json +36 -0
- package/lexicons/app/certified/badge/definition.json +53 -0
- package/lexicons/app/certified/badge/response.json +36 -0
- package/lexicons/app/certified/defs.json +4 -16
- package/lexicons/app/certified/location.json +5 -8
- package/lexicons/com/atproto/repo/strongRef.json +1 -1
- package/lexicons/org/hypercerts/claim/activity.json +135 -0
- package/lexicons/org/hypercerts/claim/collection.json +54 -0
- package/lexicons/org/hypercerts/claim/contribution.json +4 -11
- package/lexicons/org/hypercerts/claim/evaluation.json +50 -9
- package/lexicons/org/hypercerts/claim/evidence.json +29 -16
- package/lexicons/org/hypercerts/claim/measurement.json +18 -8
- package/lexicons/org/hypercerts/claim/project.json +64 -0
- package/lexicons/org/hypercerts/claim/rights.json +16 -3
- package/lexicons/org/hypercerts/defs.json +71 -0
- package/lexicons/org/hypercerts/funding/receipt.json +66 -0
- package/package.json +46 -26
- package/dist/index.d.ts +0 -2094
- package/lexicons/org/hypercerts/claim.json +0 -95
- package/lexicons/org/hypercerts/collection.json +0 -62
|
@@ -2,34 +2,65 @@
|
|
|
2
2
|
"lexicon": 1,
|
|
3
3
|
"id": "org.hypercerts.claim.evaluation",
|
|
4
4
|
"defs": {
|
|
5
|
+
"score": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"description": "Overall score for an evaluation on a numeric scale.",
|
|
8
|
+
"required": ["min", "max", "value"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"min": {
|
|
11
|
+
"type": "integer",
|
|
12
|
+
"description": "Minimum value of the scale, e.g. 0 or 1."
|
|
13
|
+
},
|
|
14
|
+
"max": {
|
|
15
|
+
"type": "integer",
|
|
16
|
+
"description": "Maximum value of the scale, e.g. 5 or 10."
|
|
17
|
+
},
|
|
18
|
+
"value": {
|
|
19
|
+
"type": "integer",
|
|
20
|
+
"description": "Score within the inclusive range [min, max]."
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
5
24
|
"main": {
|
|
6
25
|
"type": "record",
|
|
7
|
-
"description": "An evaluation of a hypercert
|
|
26
|
+
"description": "An evaluation of a hypercert record (e.g. an activity and its impact).",
|
|
8
27
|
"key": "tid",
|
|
9
28
|
"record": {
|
|
10
29
|
"type": "object",
|
|
11
|
-
"required": ["
|
|
30
|
+
"required": ["evaluators", "summary", "createdAt"],
|
|
12
31
|
"properties": {
|
|
13
32
|
"subject": {
|
|
14
33
|
"type": "ref",
|
|
15
34
|
"ref": "com.atproto.repo.strongRef",
|
|
16
|
-
"description": "A strong reference to
|
|
35
|
+
"description": "A strong reference to what is being evaluated. (e.g activity, measurement, contribution, etc.)"
|
|
17
36
|
},
|
|
18
37
|
"evaluators": {
|
|
19
38
|
"type": "array",
|
|
20
39
|
"description": "DIDs of the evaluators",
|
|
21
40
|
"items": {
|
|
22
|
-
"type": "
|
|
23
|
-
"
|
|
41
|
+
"type": "ref",
|
|
42
|
+
"ref": "app.certified.defs#did"
|
|
24
43
|
},
|
|
25
|
-
"maxLength":
|
|
44
|
+
"maxLength": 1000
|
|
26
45
|
},
|
|
27
|
-
"
|
|
46
|
+
"content": {
|
|
28
47
|
"type": "array",
|
|
29
48
|
"description": "Evaluation data (URIs or blobs) containing detailed reports or methodology",
|
|
30
49
|
"items": {
|
|
31
50
|
"type": "union",
|
|
32
|
-
"refs": [
|
|
51
|
+
"refs": [
|
|
52
|
+
"org.hypercerts.defs#uri",
|
|
53
|
+
"org.hypercerts.defs#smallBlob"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"maxLength": 100
|
|
57
|
+
},
|
|
58
|
+
"measurements": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"description": "Optional references to the measurements that contributed to this evaluation. The record(s) referenced must conform with the lexicon org.hypercerts.claim.measurement ",
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "ref",
|
|
63
|
+
"ref": "com.atproto.repo.strongRef"
|
|
33
64
|
},
|
|
34
65
|
"maxLength": 100
|
|
35
66
|
},
|
|
@@ -39,6 +70,16 @@
|
|
|
39
70
|
"maxLength": 5000,
|
|
40
71
|
"maxGraphemes": 1000
|
|
41
72
|
},
|
|
73
|
+
"score": {
|
|
74
|
+
"type": "ref",
|
|
75
|
+
"ref": "#score",
|
|
76
|
+
"description": "Optional overall score for this evaluation on a numeric scale."
|
|
77
|
+
},
|
|
78
|
+
"location": {
|
|
79
|
+
"type": "ref",
|
|
80
|
+
"ref": "com.atproto.repo.strongRef",
|
|
81
|
+
"description": "An optional reference for georeferenced evaluations. The record referenced must conform with the lexicon app.certified.location."
|
|
82
|
+
},
|
|
42
83
|
"createdAt": {
|
|
43
84
|
"type": "string",
|
|
44
85
|
"format": "datetime",
|
|
@@ -48,4 +89,4 @@
|
|
|
48
89
|
}
|
|
49
90
|
}
|
|
50
91
|
}
|
|
51
|
-
}
|
|
92
|
+
}
|
|
@@ -4,41 +4,54 @@
|
|
|
4
4
|
"defs": {
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "record",
|
|
7
|
-
"description": "A piece of evidence
|
|
8
|
-
"key": "
|
|
7
|
+
"description": "A piece of evidence related to a hypercert record (e.g. an activity, project, claim, or evaluation). Evidence may support, clarify, or challenge the referenced subject.",
|
|
8
|
+
"key": "tid",
|
|
9
9
|
"record": {
|
|
10
10
|
"type": "object",
|
|
11
|
-
"required": ["content", "
|
|
11
|
+
"required": ["content", "title", "createdAt"],
|
|
12
12
|
"properties": {
|
|
13
|
+
"subject": {
|
|
14
|
+
"type": "ref",
|
|
15
|
+
"ref": "com.atproto.repo.strongRef",
|
|
16
|
+
"description": "A strong reference to the record this evidence relates to (e.g. an activity, project, claim, or evaluation)."
|
|
17
|
+
},
|
|
13
18
|
"content": {
|
|
14
19
|
"type": "union",
|
|
15
|
-
"refs": [
|
|
16
|
-
|
|
20
|
+
"refs": [
|
|
21
|
+
"org.hypercerts.defs#uri",
|
|
22
|
+
"org.hypercerts.defs#smallBlob"
|
|
23
|
+
],
|
|
24
|
+
"description": "A piece of evidence (URI or blob) related to the subject record; it may support, clarify, or challenge a hypercert claim."
|
|
17
25
|
},
|
|
18
26
|
"title": {
|
|
19
27
|
"type": "string",
|
|
20
28
|
"maxLength": 256,
|
|
21
|
-
"description": "
|
|
29
|
+
"description": "Title to describe the nature of the evidence."
|
|
22
30
|
},
|
|
23
31
|
"shortDescription": {
|
|
24
32
|
"type": "string",
|
|
25
33
|
"maxLength": 3000,
|
|
26
34
|
"maxGraphemes": 300,
|
|
27
|
-
"description": "Short description explaining what this evidence
|
|
35
|
+
"description": "Short description explaining what this evidence shows."
|
|
28
36
|
},
|
|
29
37
|
"description": {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "Longer description describing the evidence in more detail.",
|
|
40
|
+
"maxLength": 30000,
|
|
41
|
+
"maxGraphemes": 3000
|
|
42
|
+
},
|
|
43
|
+
"relationType": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "How this evidence relates to the subject.",
|
|
46
|
+
"knownValues": ["supports", "challenges", "clarifies"]
|
|
34
47
|
},
|
|
35
48
|
"createdAt": {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
49
|
+
"type": "string",
|
|
50
|
+
"format": "datetime",
|
|
51
|
+
"description": "Client-declared timestamp when this record was originally created"
|
|
52
|
+
}
|
|
40
53
|
}
|
|
41
54
|
}
|
|
42
55
|
}
|
|
43
56
|
}
|
|
44
|
-
}
|
|
57
|
+
}
|
|
@@ -4,23 +4,23 @@
|
|
|
4
4
|
"defs": {
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "record",
|
|
7
|
-
"description": "
|
|
7
|
+
"description": "Measurement data related to a hypercert record (e.g. an activity and its impact).",
|
|
8
8
|
"key": "tid",
|
|
9
9
|
"record": {
|
|
10
10
|
"type": "object",
|
|
11
|
-
"required": ["
|
|
11
|
+
"required": ["measurers", "metric", "value", "createdAt"],
|
|
12
12
|
"properties": {
|
|
13
|
-
"
|
|
13
|
+
"subject": {
|
|
14
14
|
"type": "ref",
|
|
15
15
|
"ref": "com.atproto.repo.strongRef",
|
|
16
|
-
"description": "A strong reference to the
|
|
16
|
+
"description": "A strong reference to the record this measurement refers to (e.g. an activity, project, or claim)."
|
|
17
17
|
},
|
|
18
18
|
"measurers": {
|
|
19
19
|
"type": "array",
|
|
20
20
|
"description": "DIDs of the entity (or entities) that measured this data",
|
|
21
21
|
"items": {
|
|
22
|
-
"type": "
|
|
23
|
-
"
|
|
22
|
+
"type": "ref",
|
|
23
|
+
"ref": "app.certified.defs#did"
|
|
24
24
|
},
|
|
25
25
|
"maxLength": 100
|
|
26
26
|
},
|
|
@@ -34,20 +34,30 @@
|
|
|
34
34
|
"description": "The measured value",
|
|
35
35
|
"maxLength": 500
|
|
36
36
|
},
|
|
37
|
-
"
|
|
37
|
+
"methodType": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "Short identifier for the measurement methodology",
|
|
40
|
+
"maxLength": 30
|
|
41
|
+
},
|
|
42
|
+
"methodURI": {
|
|
38
43
|
"type": "string",
|
|
39
44
|
"format": "uri",
|
|
40
45
|
"description": "URI to methodology documentation, standard protocol, or measurement procedure"
|
|
41
46
|
},
|
|
42
47
|
"evidenceURI": {
|
|
43
48
|
"type": "array",
|
|
44
|
-
"description": "URIs to
|
|
49
|
+
"description": "URIs to related evidence or underlying data (e.g. org.hypercerts.claim.evidence records or raw datasets)",
|
|
45
50
|
"items": {
|
|
46
51
|
"type": "string",
|
|
47
52
|
"format": "uri"
|
|
48
53
|
},
|
|
49
54
|
"maxLength": 50
|
|
50
55
|
},
|
|
56
|
+
"location": {
|
|
57
|
+
"type": "ref",
|
|
58
|
+
"ref": "com.atproto.repo.strongRef",
|
|
59
|
+
"description": "A strong reference to the location where the measurement was taken. The record referenced must conform with the lexicon app.certified.location"
|
|
60
|
+
},
|
|
51
61
|
"createdAt": {
|
|
52
62
|
"type": "string",
|
|
53
63
|
"format": "datetime",
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "org.hypercerts.claim.project",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "record",
|
|
7
|
+
"description": "A project that can include multiple activities, each of which may be linked to at most one project.",
|
|
8
|
+
"key": "tid",
|
|
9
|
+
"record": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": ["title", "shortDescription", "createdAt"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"title": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Title of this project",
|
|
16
|
+
"maxLength": 800,
|
|
17
|
+
"maxGraphemes": 80
|
|
18
|
+
},
|
|
19
|
+
"shortDescription": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"maxLength": 3000,
|
|
22
|
+
"maxGraphemes": 300,
|
|
23
|
+
"description": "Short summary of this project, suitable for previews and list views."
|
|
24
|
+
},
|
|
25
|
+
"description": {
|
|
26
|
+
"type": "ref",
|
|
27
|
+
"ref": "pub.leaflet.pages.linearDocument#main",
|
|
28
|
+
"description": "Rich-text description of this project, represented as a Leaflet linear document."
|
|
29
|
+
},
|
|
30
|
+
"avatar": {
|
|
31
|
+
"type": "blob",
|
|
32
|
+
"description": "Primary avatar image representing this project across apps and views; typically a square logo or project identity image.",
|
|
33
|
+
"accept": ["image/png", "image/jpeg"],
|
|
34
|
+
"maxSize": 1000000
|
|
35
|
+
},
|
|
36
|
+
"coverPhoto": {
|
|
37
|
+
"type": "blob",
|
|
38
|
+
"description": "The cover photo of this project.",
|
|
39
|
+
"accept": ["image/png", "image/jpeg"],
|
|
40
|
+
"maxSize": 1000000
|
|
41
|
+
},
|
|
42
|
+
"activities": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"description": "Array of activities with their associated weights in this project",
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "ref",
|
|
47
|
+
"ref": "org.hypercerts.claim.activity#activityWeight"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"location": {
|
|
51
|
+
"type": "ref",
|
|
52
|
+
"ref": "com.atproto.repo.strongRef",
|
|
53
|
+
"description": "A strong reference to a location record describing where the work for this project took place. The referenced record must conform to the app.certified.location lexicon."
|
|
54
|
+
},
|
|
55
|
+
"createdAt": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"format": "datetime",
|
|
58
|
+
"description": "Client-declared timestamp when this record was originally created"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -4,11 +4,16 @@
|
|
|
4
4
|
"defs": {
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "record",
|
|
7
|
-
"description": "Describes the rights that a
|
|
8
|
-
"key": "
|
|
7
|
+
"description": "Describes the rights that a contributor and/or an owner has, such as whether the hypercert can be sold, transferred, and under what conditions.",
|
|
8
|
+
"key": "tid",
|
|
9
9
|
"record": {
|
|
10
10
|
"type": "object",
|
|
11
|
-
"required": [
|
|
11
|
+
"required": [
|
|
12
|
+
"rightsName",
|
|
13
|
+
"rightsType",
|
|
14
|
+
"rightsDescription",
|
|
15
|
+
"createdAt"
|
|
16
|
+
],
|
|
12
17
|
"properties": {
|
|
13
18
|
"rightsName": {
|
|
14
19
|
"type": "string",
|
|
@@ -24,6 +29,14 @@
|
|
|
24
29
|
"type": "string",
|
|
25
30
|
"description": "Description of the rights of this hypercert"
|
|
26
31
|
},
|
|
32
|
+
"attachment": {
|
|
33
|
+
"type": "union",
|
|
34
|
+
"refs": [
|
|
35
|
+
"org.hypercerts.defs#uri",
|
|
36
|
+
"org.hypercerts.defs#smallBlob"
|
|
37
|
+
],
|
|
38
|
+
"description": "An attachment to define the rights further, e.g. a legal document."
|
|
39
|
+
},
|
|
27
40
|
"createdAt": {
|
|
28
41
|
"type": "string",
|
|
29
42
|
"format": "datetime",
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "org.hypercerts.defs",
|
|
4
|
+
"defs": {
|
|
5
|
+
"uri": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["uri"],
|
|
8
|
+
"description": "Object containing a URI to external data",
|
|
9
|
+
"properties": {
|
|
10
|
+
"uri": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "uri",
|
|
13
|
+
"maxGraphemes": 1024,
|
|
14
|
+
"description": "URI to external data"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"smallBlob": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"required": ["blob"],
|
|
21
|
+
"description": "Object containing a blob to external data",
|
|
22
|
+
"properties": {
|
|
23
|
+
"blob": {
|
|
24
|
+
"type": "blob",
|
|
25
|
+
"accept": ["*/*"],
|
|
26
|
+
"maxSize": 10485760,
|
|
27
|
+
"description": "Blob to external data (up to 10MB)"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"largeBlob": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"required": ["blob"],
|
|
34
|
+
"description": "Object containing a blob to external data",
|
|
35
|
+
"properties": {
|
|
36
|
+
"blob": {
|
|
37
|
+
"type": "blob",
|
|
38
|
+
"accept": ["*/*"],
|
|
39
|
+
"maxSize": 104857600,
|
|
40
|
+
"description": "Blob to external data (up to 100MB)"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"smallImage": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"required": ["image"],
|
|
47
|
+
"description": "Object containing a small image",
|
|
48
|
+
"properties": {
|
|
49
|
+
"image": {
|
|
50
|
+
"type": "blob",
|
|
51
|
+
"accept": ["image/jpeg", "image/jpg", "image/png", "image/webp"],
|
|
52
|
+
"maxSize": 5242880,
|
|
53
|
+
"description": "Image (up to 5MB)"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"largeImage": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"required": ["image"],
|
|
60
|
+
"description": "Object containing a large image",
|
|
61
|
+
"properties": {
|
|
62
|
+
"image": {
|
|
63
|
+
"type": "blob",
|
|
64
|
+
"accept": ["image/jpeg", "image/jpg", "image/png", "image/webp"],
|
|
65
|
+
"maxSize": 10485760,
|
|
66
|
+
"description": "Image (up to 10MB)"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "org.hypercerts.funding.receipt",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "record",
|
|
7
|
+
"description": "Records a funding receipt for a payment from one user to another user. It may be recorded by the recipient, by the sender, or by a third party. The sender may remain anonymous.",
|
|
8
|
+
"key": "tid",
|
|
9
|
+
"record": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": ["from", "to", "amount", "currency", "createdAt"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"from": {
|
|
14
|
+
"type": "ref",
|
|
15
|
+
"ref": "app.certified.defs#did",
|
|
16
|
+
"description": "DID of the sender who transferred the funds. Leave empty if sender wants to stay anonymous."
|
|
17
|
+
},
|
|
18
|
+
"to": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "The recipient of the funds. Can be identified by DID or a clear-text name."
|
|
21
|
+
},
|
|
22
|
+
"amount": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Amount of funding received."
|
|
25
|
+
},
|
|
26
|
+
"currency": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Currency of the payment (e.g. EUR, USD, ETH)."
|
|
29
|
+
},
|
|
30
|
+
"paymentRail": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "How the funds were transferred (e.g. bank_transfer, credit_card, onchain, cash, check, payment_processor)."
|
|
33
|
+
},
|
|
34
|
+
"paymentNetwork": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "Optional network within the payment rail (e.g. arbitrum, ethereum, sepa, visa, paypal)."
|
|
37
|
+
},
|
|
38
|
+
"transactionId": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Identifier of the underlying payment transaction (e.g. bank reference, onchain transaction hash, or processor-specific ID). Use paymentNetwork to specify the network where applicable."
|
|
41
|
+
},
|
|
42
|
+
"for": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"format": "at-uri",
|
|
45
|
+
"description": "Optional reference to the activity, project, or organization this funding relates to."
|
|
46
|
+
},
|
|
47
|
+
"notes": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "Optional notes or additional context for this funding receipt.",
|
|
50
|
+
"maxLength": 500
|
|
51
|
+
},
|
|
52
|
+
"occurredAt": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"format": "datetime",
|
|
55
|
+
"description": "Timestamp when the payment occurred."
|
|
56
|
+
},
|
|
57
|
+
"createdAt": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"format": "datetime",
|
|
60
|
+
"description": "Client-declared timestamp when this receipt record was created."
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
package/package.json
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hypercerts-org/lexicon",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0-beta.1",
|
|
4
4
|
"description": "ATProto lexicon definitions and TypeScript types for the Hypercerts protocol",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/index.cjs",
|
|
7
|
-
"module": "dist/index.mjs",
|
|
8
|
-
"types": "dist/
|
|
9
|
-
"publishConfig": {
|
|
10
|
-
"access": "public",
|
|
11
|
-
"registry": "https://registry.npmjs.org/"
|
|
12
|
-
},
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"types": "./dist/exports.d.ts",
|
|
13
9
|
"exports": {
|
|
14
10
|
".": {
|
|
15
|
-
"types": "./dist/
|
|
11
|
+
"types": "./dist/exports.d.ts",
|
|
16
12
|
"import": "./dist/index.mjs",
|
|
17
13
|
"require": "./dist/index.cjs"
|
|
18
|
-
}
|
|
14
|
+
},
|
|
15
|
+
"./lexicons": {
|
|
16
|
+
"types": "./dist/lexicons.d.ts",
|
|
17
|
+
"import": "./dist/lexicons.mjs",
|
|
18
|
+
"require": "./dist/lexicons.cjs"
|
|
19
|
+
},
|
|
20
|
+
"./package.json": "./package.json"
|
|
19
21
|
},
|
|
20
22
|
"files": [
|
|
21
23
|
"dist",
|
|
22
|
-
"lexicons"
|
|
23
|
-
"README.md"
|
|
24
|
+
"lexicons"
|
|
24
25
|
],
|
|
25
26
|
"keywords": [
|
|
26
27
|
"hypercerts",
|
|
@@ -28,39 +29,58 @@
|
|
|
28
29
|
"lexicon",
|
|
29
30
|
"typescript"
|
|
30
31
|
],
|
|
31
|
-
"author": "
|
|
32
|
+
"author": "",
|
|
32
33
|
"license": "MIT",
|
|
33
34
|
"repository": {
|
|
34
|
-
"
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/hypercerts-org/hypercerts-lexicon"
|
|
35
37
|
},
|
|
36
38
|
"scripts": {
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"gen-api": "find ./lexicons -name '*.json' | xargs lex gen-api --yes ./src",
|
|
39
|
+
"list": "find ./lexicons -name '*.json'",
|
|
40
|
+
"check": "npm run gen-api && npm run lint && npm run typecheck && npm run build",
|
|
41
|
+
"build": "rollup -c && npm run build:types",
|
|
42
|
+
"build:types": "tsc --project tsconfig.build.json",
|
|
43
|
+
"gen-api": "find ./lexicons -name '*.json' | xargs lex gen-api --yes ./generated && ./scripts/create-shims.sh && npm run gen-index",
|
|
43
44
|
"gen-md": "find ./lexicons -name '*.json' | xargs lex gen-md --yes ./lexicons.md",
|
|
44
|
-
"gen-ts": "
|
|
45
|
+
"//gen-ts": "UNUSED - use gen-api instead",
|
|
46
|
+
"gen-ts": "find ./lexicons -name '*.json' | xargs lex gen-ts-obj > generated/DO-NOT-USE-lexicons.ts",
|
|
47
|
+
"gen-index": "node ./scripts/generate-exports.js",
|
|
45
48
|
"lex": "lex",
|
|
46
|
-
"
|
|
49
|
+
"format": "prettier --write .",
|
|
50
|
+
"format:check": "prettier --check .",
|
|
51
|
+
"lint": "npm run format:check && npm run eslint",
|
|
52
|
+
"eslint": "eslint generated/exports.ts",
|
|
53
|
+
"typecheck": "tsc --noEmit",
|
|
54
|
+
"clean": "rm -rf dist generated",
|
|
55
|
+
"prepublishOnly": "npm run check",
|
|
56
|
+
"changeset": "changeset",
|
|
57
|
+
"version-packages": "changeset version && npm install --package-lock-only",
|
|
58
|
+
"release": "npm run check && changeset publish"
|
|
47
59
|
},
|
|
48
60
|
"dependencies": {
|
|
49
|
-
"@
|
|
61
|
+
"@atcute/leaflet": "^1.0.15",
|
|
62
|
+
"@atproto/lexicon": "^0.6.0",
|
|
50
63
|
"multiformats": "^13.3.6"
|
|
51
64
|
},
|
|
52
65
|
"devDependencies": {
|
|
53
66
|
"@atproto/lex-cli": "^0.9.5",
|
|
54
67
|
"@atproto/xrpc": "^0.7.5",
|
|
68
|
+
"@changesets/changelog-github": "^0.5.2",
|
|
69
|
+
"@changesets/cli": "^2.29.8",
|
|
70
|
+
"@eslint/js": "^9.39.2",
|
|
55
71
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
56
72
|
"@rollup/plugin-json": "^6.1.0",
|
|
57
73
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
58
74
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
75
|
+
"eslint": "^9.39.2",
|
|
76
|
+
"globals": "^17.0.0",
|
|
77
|
+
"prettier": "^3.2.5",
|
|
59
78
|
"rollup": "^4.53.3",
|
|
60
|
-
"
|
|
79
|
+
"tslib": "^2.8.1",
|
|
80
|
+
"typescript": "^5.7.2",
|
|
81
|
+
"typescript-eslint": "^8.51.0"
|
|
61
82
|
},
|
|
62
83
|
"peerDependencies": {
|
|
63
84
|
"@atproto/xrpc": "*"
|
|
64
|
-
}
|
|
65
|
-
"sideEffects": false
|
|
85
|
+
}
|
|
66
86
|
}
|