@hypercerts-org/lexicon 0.10.0-beta.12 → 0.10.0-beta.14
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/CHANGELOG.md +136 -0
- package/README.md +142 -0
- package/SCHEMAS.md +220 -67
- package/dist/exports.d.ts +195 -66
- package/dist/exports.d.ts.map +1 -1
- package/dist/generated/exports.d.ts +195 -66
- package/dist/generated/exports.d.ts.map +1 -1
- package/dist/generated/lexicons.d.ts +378 -130
- package/dist/generated/lexicons.d.ts.map +1 -1
- package/dist/generated/types/app/certified/actor/profile.d.ts +27 -0
- package/dist/generated/types/app/certified/actor/profile.d.ts.map +1 -0
- package/dist/generated/types/app/certified/defs.d.ts +11 -1
- package/dist/generated/types/app/certified/defs.d.ts.map +1 -1
- package/dist/generated/types/app/certified/location.d.ts +9 -1
- package/dist/generated/types/app/certified/location.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts +21 -3
- package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/claim/attachment.d.ts +37 -0
- package/dist/generated/types/org/hypercerts/claim/attachment.d.ts.map +1 -0
- package/dist/index.cjs +618 -270
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +606 -262
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons.cjs +200 -68
- package/dist/lexicons.cjs.map +1 -1
- package/dist/lexicons.d.ts +378 -130
- package/dist/lexicons.d.ts.map +1 -1
- package/dist/lexicons.mjs +200 -68
- package/dist/lexicons.mjs.map +1 -1
- package/dist/types/app/certified/actor/profile.d.ts +27 -0
- package/dist/types/app/certified/actor/profile.d.ts.map +1 -0
- package/dist/types/app/certified/defs.d.ts +11 -1
- package/dist/types/app/certified/defs.d.ts.map +1 -1
- package/dist/types/app/certified/location.d.ts +9 -1
- package/dist/types/app/certified/location.d.ts.map +1 -1
- package/dist/types/org/hypercerts/claim/activity.d.ts +21 -3
- package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -1
- package/dist/types/org/hypercerts/claim/attachment.d.ts +37 -0
- package/dist/types/org/hypercerts/claim/attachment.d.ts.map +1 -0
- package/lexicons/app/certified/actor/profile.json +51 -0
- package/lexicons/app/certified/defs.json +11 -3
- package/lexicons/app/certified/location.json +16 -2
- package/lexicons/org/hypercerts/claim/activity.json +31 -8
- package/lexicons/org/hypercerts/claim/attachment.json +86 -0
- package/package.json +1 -1
- package/dist/generated/types/org/hypercerts/claim/evidence.d.ts +0 -29
- package/dist/generated/types/org/hypercerts/claim/evidence.d.ts.map +0 -1
- package/dist/types/org/hypercerts/claim/evidence.d.ts +0 -29
- package/dist/types/org/hypercerts/claim/evidence.d.ts.map +0 -1
- package/lexicons/org/hypercerts/claim/evidence.json +0 -57
|
@@ -4,9 +4,17 @@
|
|
|
4
4
|
"description": "Common type definitions used across certified protocols.",
|
|
5
5
|
"defs": {
|
|
6
6
|
"did": {
|
|
7
|
-
"type": "
|
|
8
|
-
"
|
|
9
|
-
"
|
|
7
|
+
"type": "object",
|
|
8
|
+
"description": "A Decentralized Identifier (DID) string.",
|
|
9
|
+
"required": ["did"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"did": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"format": "did",
|
|
14
|
+
"description": "The DID string value.",
|
|
15
|
+
"maxLength": 256
|
|
16
|
+
}
|
|
17
|
+
}
|
|
10
18
|
}
|
|
11
19
|
}
|
|
12
20
|
}
|
|
@@ -37,9 +37,10 @@
|
|
|
37
37
|
"type": "union",
|
|
38
38
|
"refs": [
|
|
39
39
|
"org.hypercerts.defs#uri",
|
|
40
|
-
"org.hypercerts.defs#smallBlob"
|
|
40
|
+
"org.hypercerts.defs#smallBlob",
|
|
41
|
+
"#string"
|
|
41
42
|
],
|
|
42
|
-
"description": "The location of where the work was performed as a URI or
|
|
43
|
+
"description": "The location of where the work was performed as a URI, blob, or inline string."
|
|
43
44
|
},
|
|
44
45
|
"name": {
|
|
45
46
|
"type": "string",
|
|
@@ -60,6 +61,19 @@
|
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
}
|
|
64
|
+
},
|
|
65
|
+
"string": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"required": ["string"],
|
|
68
|
+
"description": "A location represented as a string, e.g. coordinates or a small GeoJSON string.",
|
|
69
|
+
"properties": {
|
|
70
|
+
"string": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"description": "The location string value",
|
|
73
|
+
"maxLength": 10000,
|
|
74
|
+
"maxGraphemes": 1000
|
|
75
|
+
}
|
|
76
|
+
}
|
|
63
77
|
}
|
|
64
78
|
}
|
|
65
79
|
}
|
|
@@ -116,20 +116,43 @@
|
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
118
|
"contributorIdentity": {
|
|
119
|
-
"type": "
|
|
120
|
-
"description": "Contributor information as a string (DID or identifier)."
|
|
119
|
+
"type": "object",
|
|
120
|
+
"description": "Contributor information as a string (DID or identifier).",
|
|
121
|
+
"required": ["identity"],
|
|
122
|
+
"properties": {
|
|
123
|
+
"identity": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"description": "The contributor identity string (DID or identifier).",
|
|
126
|
+
"maxLength": 1000,
|
|
127
|
+
"maxGraphemes": 100
|
|
128
|
+
}
|
|
129
|
+
}
|
|
121
130
|
},
|
|
122
131
|
"contributorRole": {
|
|
123
|
-
"type": "
|
|
132
|
+
"type": "object",
|
|
124
133
|
"description": "Contribution details as a string.",
|
|
125
|
-
"
|
|
126
|
-
"
|
|
134
|
+
"required": ["role"],
|
|
135
|
+
"properties": {
|
|
136
|
+
"role": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"description": "The contribution role or details.",
|
|
139
|
+
"maxLength": 1000,
|
|
140
|
+
"maxGraphemes": 100
|
|
141
|
+
}
|
|
142
|
+
}
|
|
127
143
|
},
|
|
128
144
|
"workScopeString": {
|
|
129
|
-
"type": "
|
|
145
|
+
"type": "object",
|
|
130
146
|
"description": "A free-form string describing the work scope for simple or legacy scopes.",
|
|
131
|
-
"
|
|
132
|
-
"
|
|
147
|
+
"required": ["scope"],
|
|
148
|
+
"properties": {
|
|
149
|
+
"scope": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"description": "The work scope description string.",
|
|
152
|
+
"maxLength": 1000,
|
|
153
|
+
"maxGraphemes": 100
|
|
154
|
+
}
|
|
155
|
+
}
|
|
133
156
|
}
|
|
134
157
|
}
|
|
135
158
|
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "org.hypercerts.claim.attachment",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "record",
|
|
7
|
+
"description": "An attachment providing commentary, context, evidence, or documentary material related to a hypercert record (e.g. an activity, project, claim, or evaluation).",
|
|
8
|
+
"key": "tid",
|
|
9
|
+
"record": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": ["title", "content", "createdAt"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"subjects": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"description": "References to the subject(s) the attachment is connected to—this may be an activity claim, outcome claim, measurement, evaluation, or even another attachment. This is optional as the attachment can exist before the claim is recorded.",
|
|
16
|
+
"items": {
|
|
17
|
+
"type": "ref",
|
|
18
|
+
"ref": "com.atproto.repo.strongRef"
|
|
19
|
+
},
|
|
20
|
+
"maxLength": 100
|
|
21
|
+
},
|
|
22
|
+
"contentType": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"maxLength": 64,
|
|
25
|
+
"description": "The type of attachment, e.g. report, audit, evidence, testimonial, methodology, etc."
|
|
26
|
+
},
|
|
27
|
+
"content": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"description": "The files, documents, or external references included in this attachment record.",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "union",
|
|
32
|
+
"refs": [
|
|
33
|
+
"org.hypercerts.defs#uri",
|
|
34
|
+
"org.hypercerts.defs#smallBlob"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"maxLength": 100
|
|
38
|
+
},
|
|
39
|
+
"title": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"maxLength": 256,
|
|
42
|
+
"description": "Title of this attachment."
|
|
43
|
+
},
|
|
44
|
+
"shortDescription": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "Short summary of this attachment, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`.",
|
|
47
|
+
"maxLength": 3000,
|
|
48
|
+
"maxGraphemes": 300
|
|
49
|
+
},
|
|
50
|
+
"shortDescriptionFacets": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"description": "Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc).",
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "ref",
|
|
55
|
+
"ref": "app.bsky.richtext.facet"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"description": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "Optional longer description of this attachment, including context or interpretation. Rich text annotations may be provided via `descriptionFacets`.",
|
|
61
|
+
"maxLength": 30000,
|
|
62
|
+
"maxGraphemes": 3000
|
|
63
|
+
},
|
|
64
|
+
"descriptionFacets": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"description": "Rich text annotations for `description` (mentions, URLs, hashtags, etc).",
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "ref",
|
|
69
|
+
"ref": "app.bsky.richtext.facet"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"location": {
|
|
73
|
+
"type": "ref",
|
|
74
|
+
"ref": "com.atproto.repo.strongRef",
|
|
75
|
+
"description": "A strong reference to the location where this attachment's subject matter occurred. The record referenced must conform with the lexicon app.certified.location."
|
|
76
|
+
},
|
|
77
|
+
"createdAt": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"format": "datetime",
|
|
80
|
+
"description": "Client-declared timestamp when this record was originally created."
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
-
import { type $Typed } from '../../../../util';
|
|
6
|
-
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
7
|
-
import type * as OrgHypercertsDefs from '../defs.js';
|
|
8
|
-
export interface Main {
|
|
9
|
-
$type: 'org.hypercerts.claim.evidence';
|
|
10
|
-
subject?: ComAtprotoRepoStrongRef.Main;
|
|
11
|
-
content: $Typed<OrgHypercertsDefs.Uri> | $Typed<OrgHypercertsDefs.SmallBlob> | {
|
|
12
|
-
$type: string;
|
|
13
|
-
};
|
|
14
|
-
/** Title to describe the nature of the evidence. */
|
|
15
|
-
title: string;
|
|
16
|
-
/** Short description explaining what this evidence shows. */
|
|
17
|
-
shortDescription?: string;
|
|
18
|
-
/** Longer description describing the evidence in more detail. */
|
|
19
|
-
description?: string;
|
|
20
|
-
/** How this evidence relates to the subject. */
|
|
21
|
-
relationType?: 'supports' | 'challenges' | 'clarifies' | (string & {});
|
|
22
|
-
/** Client-declared timestamp when this record was originally created */
|
|
23
|
-
createdAt: string;
|
|
24
|
-
[k: string]: unknown;
|
|
25
|
-
}
|
|
26
|
-
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.evidence", "main">;
|
|
27
|
-
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
28
|
-
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
29
|
-
//# sourceMappingURL=evidence.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"evidence.d.ts","sourceRoot":"","sources":["../../../../../../generated/types/org/hypercerts/cla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lexicon';
|
|
5
|
-
import { type $Typed } from '../../../../util';
|
|
6
|
-
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
7
|
-
import type * as OrgHypercertsDefs from '../defs.js';
|
|
8
|
-
export interface Main {
|
|
9
|
-
$type: 'org.hypercerts.claim.evidence';
|
|
10
|
-
subject?: ComAtprotoRepoStrongRef.Main;
|
|
11
|
-
content: $Typed<OrgHypercertsDefs.Uri> | $Typed<OrgHypercertsDefs.SmallBlob> | {
|
|
12
|
-
$type: string;
|
|
13
|
-
};
|
|
14
|
-
/** Title to describe the nature of the evidence. */
|
|
15
|
-
title: string;
|
|
16
|
-
/** Short description explaining what this evidence shows. */
|
|
17
|
-
shortDescription?: string;
|
|
18
|
-
/** Longer description describing the evidence in more detail. */
|
|
19
|
-
description?: string;
|
|
20
|
-
/** How this evidence relates to the subject. */
|
|
21
|
-
relationType?: 'supports' | 'challenges' | 'clarifies' | (string & {});
|
|
22
|
-
/** Client-declared timestamp when this record was originally created */
|
|
23
|
-
createdAt: string;
|
|
24
|
-
[k: string]: unknown;
|
|
25
|
-
}
|
|
26
|
-
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "org.hypercerts.claim.evidence", "main">;
|
|
27
|
-
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
28
|
-
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
29
|
-
//# sourceMappingURL=evidence.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"evidence.d.ts","sourceRoot":"","sources":["../../../../../generated/types/org/hypercerts/claim/evidence.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AACtF,OAAO,KAAK,KAAK,iBAAiB,MAAM,YAAY,CAAA;AAMpD,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,+BAA+B,CAAA;IACtC,OAAO,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAA;IACtC,OAAO,EACH,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAC7B,MAAM,CAAC,iBAAiB,CAAC,SAAS,CAAC,GACnC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAA;IACb,6DAA6D;IAC7D,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gDAAgD;IAChD,YAAY,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACtE,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,4FAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lexicon": 1,
|
|
3
|
-
"id": "org.hypercerts.claim.evidence",
|
|
4
|
-
"defs": {
|
|
5
|
-
"main": {
|
|
6
|
-
"type": "record",
|
|
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
|
-
"record": {
|
|
10
|
-
"type": "object",
|
|
11
|
-
"required": ["content", "title", "createdAt"],
|
|
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
|
-
},
|
|
18
|
-
"content": {
|
|
19
|
-
"type": "union",
|
|
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."
|
|
25
|
-
},
|
|
26
|
-
"title": {
|
|
27
|
-
"type": "string",
|
|
28
|
-
"maxLength": 256,
|
|
29
|
-
"description": "Title to describe the nature of the evidence."
|
|
30
|
-
},
|
|
31
|
-
"shortDescription": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"maxLength": 3000,
|
|
34
|
-
"maxGraphemes": 300,
|
|
35
|
-
"description": "Short description explaining what this evidence shows."
|
|
36
|
-
},
|
|
37
|
-
"description": {
|
|
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"]
|
|
47
|
-
},
|
|
48
|
-
"createdAt": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"format": "datetime",
|
|
51
|
-
"description": "Client-declared timestamp when this record was originally created"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|