@hypercerts-org/lexicon 0.10.0-beta.12 → 0.10.0-beta.13

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +93 -0
  2. package/README.md +142 -0
  3. package/SCHEMAS.md +174 -67
  4. package/dist/exports.d.ts +103 -61
  5. package/dist/exports.d.ts.map +1 -1
  6. package/dist/generated/exports.d.ts +103 -61
  7. package/dist/generated/exports.d.ts.map +1 -1
  8. package/dist/generated/lexicons.d.ts +196 -112
  9. package/dist/generated/lexicons.d.ts.map +1 -1
  10. package/dist/generated/types/app/certified/location.d.ts +9 -1
  11. package/dist/generated/types/app/certified/location.d.ts.map +1 -1
  12. package/dist/generated/types/org/hypercerts/claim/attachment.d.ts +37 -0
  13. package/dist/generated/types/org/hypercerts/claim/attachment.d.ts.map +1 -0
  14. package/dist/index.cjs +283 -190
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.mjs +280 -187
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/lexicons.cjs +102 -59
  19. package/dist/lexicons.cjs.map +1 -1
  20. package/dist/lexicons.d.ts +196 -112
  21. package/dist/lexicons.d.ts.map +1 -1
  22. package/dist/lexicons.mjs +102 -59
  23. package/dist/lexicons.mjs.map +1 -1
  24. package/dist/types/app/certified/location.d.ts +9 -1
  25. package/dist/types/app/certified/location.d.ts.map +1 -1
  26. package/dist/types/org/hypercerts/claim/attachment.d.ts +37 -0
  27. package/dist/types/org/hypercerts/claim/attachment.d.ts.map +1 -0
  28. package/lexicons/app/certified/location.json +16 -2
  29. package/lexicons/org/hypercerts/claim/attachment.json +86 -0
  30. package/package.json +1 -1
  31. package/dist/generated/types/org/hypercerts/claim/evidence.d.ts +0 -29
  32. package/dist/generated/types/org/hypercerts/claim/evidence.d.ts.map +0 -1
  33. package/dist/types/org/hypercerts/claim/evidence.d.ts +0 -29
  34. package/dist/types/org/hypercerts/claim/evidence.d.ts.map +0 -1
  35. package/lexicons/org/hypercerts/claim/evidence.json +0 -57
@@ -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/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
- }