@hypercerts-org/lexicon 0.12.0 → 0.13.0
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 +10 -0
- package/README.md +92 -9
- package/SCHEMAS.md +27 -11
- package/dist/exports.d.ts +39 -2
- package/dist/exports.d.ts.map +1 -1
- package/dist/generated/exports.d.ts +39 -2
- package/dist/generated/exports.d.ts.map +1 -1
- package/dist/generated/lexicons.d.ts +70 -6
- package/dist/generated/lexicons.d.ts.map +1 -1
- package/dist/generated/types/app/certified/graph/follow.d.ts +18 -0
- package/dist/generated/types/app/certified/graph/follow.d.ts.map +1 -0
- package/dist/generated/types/app/certified/location.d.ts +1 -1
- package/dist/generated/types/app/certified/location.d.ts.map +1 -1
- package/dist/generated/types/org/hypercerts/workscope/tag.d.ts +2 -2
- package/dist/generated/types/org/hypercerts/workscope/tag.d.ts.map +1 -1
- package/dist/index.cjs +319 -220
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +311 -216
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons.cjs +36 -3
- package/dist/lexicons.cjs.map +1 -1
- package/dist/lexicons.d.ts +70 -6
- package/dist/lexicons.d.ts.map +1 -1
- package/dist/lexicons.mjs +36 -3
- package/dist/lexicons.mjs.map +1 -1
- package/dist/types/app/certified/graph/follow.d.ts +18 -0
- package/dist/types/app/certified/graph/follow.d.ts.map +1 -0
- package/dist/types/app/certified/location.d.ts +1 -1
- package/dist/types/app/certified/location.d.ts.map +1 -1
- package/dist/types/org/hypercerts/workscope/tag.d.ts +2 -2
- package/dist/types/org/hypercerts/workscope/tag.d.ts.map +1 -1
- package/lexicons/app/certified/graph/follow.json +32 -0
- package/lexicons/app/certified/location.json +1 -1
- package/lexicons/org/hypercerts/workscope/tag.json +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
6
|
+
export interface Main {
|
|
7
|
+
$type: 'app.certified.graph.follow';
|
|
8
|
+
/** DID of the account being followed. */
|
|
9
|
+
subject: string;
|
|
10
|
+
/** Client-declared timestamp when this record was originally created. */
|
|
11
|
+
createdAt: string;
|
|
12
|
+
via?: ComAtprotoRepoStrongRef.Main;
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.certified.graph.follow", "main">;
|
|
16
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
17
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
18
|
+
//# sourceMappingURL=follow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"follow.d.ts","sourceRoot":"","sources":["../../../../../generated/types/app/certified/graph/follow.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,4BAA4B,CAAA;IACnC,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAA;IACf,yEAAyE;IACzE,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAA;IAClC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yFAE7B;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"}
|
|
@@ -10,7 +10,7 @@ export interface Main {
|
|
|
10
10
|
lpVersion: string;
|
|
11
11
|
/** The Spatial Reference System URI (e.g., http://www.opengis.net/def/crs/OGC/1.3/CRS84) that defines the coordinate system. */
|
|
12
12
|
srs: string;
|
|
13
|
-
/** An identifier for the format of the location data
|
|
13
|
+
/** An identifier for the format of the location data. Use `geojson-point` for a single GeoJSON Point; use `geojson` as the catch-all for any other GeoJSON geometry (Polygon, MultiPolygon, FeatureCollection, etc.) — the inner payload's own GeoJSON `type` field carries the specifics. Values beyond the known set are permitted; see the Location Protocol spec for the canonical registry: https://spec.decentralizedgeo.org/specification/location-types/#location-type-registry */
|
|
14
14
|
locationType: 'coordinate-decimal' | 'geojson-point' | 'geojson' | 'h3' | 'geohash' | 'wkt' | 'address' | 'scaledCoordinates' | (string & {});
|
|
15
15
|
location: $Typed<OrgHypercertsDefs.Uri> | $Typed<OrgHypercertsDefs.SmallBlob> | $Typed<String> | {
|
|
16
16
|
$type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../../../generated/types/app/certified/location.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EAAE,KAAK,MAAM,EAAuC,MAAM,eAAe,CAAA;AAChF,OAAO,KAAK,KAAK,iBAAiB,MAAM,8BAA8B,CAAA;AAMtE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,wBAAwB,CAAA;IAC/B,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAA;IACjB,gIAAgI;IAChI,GAAG,EAAE,MAAM,CAAA;IACX,
|
|
1
|
+
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../../../generated/types/app/certified/location.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW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C,oFAE/B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gCAErC"}
|
|
@@ -11,12 +11,12 @@ export interface Main {
|
|
|
11
11
|
key: string;
|
|
12
12
|
/** Human-readable name for this scope. */
|
|
13
13
|
name: string;
|
|
14
|
-
/** Category type of this scope. */
|
|
14
|
+
/** Category type of this scope. Values beyond the known set are permitted. */
|
|
15
15
|
category?: 'topic' | 'language' | 'domain' | 'method' | (string & {});
|
|
16
16
|
/** Optional longer description of this scope. */
|
|
17
17
|
description?: string;
|
|
18
18
|
parent?: ComAtprotoRepoStrongRef.Main;
|
|
19
|
-
/** Lifecycle status of this tag. Communities propose tags, curators accept them, deprecated tags point to replacements via supersededBy. */
|
|
19
|
+
/** Lifecycle status of this tag. Communities propose tags, curators accept them, deprecated tags point to replacements via supersededBy. Values beyond the known set are permitted. */
|
|
20
20
|
status?: 'proposed' | 'accepted' | 'deprecated' | (string & {});
|
|
21
21
|
supersededBy?: ComAtprotoRepoStrongRef.Main;
|
|
22
22
|
/** Alternative human-readable names for this scope (e.g., translations, abbreviations, or common synonyms). Unlike sameAs, these are plain-text labels, not links to external ontologies. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../../generated/types/org/hypercerts/workscope/tag.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,8BAA8B,CAAA;IACrC,0LAA0L;IAC1L,GAAG,EAAE,MAAM,CAAA;IACX,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,
|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;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,2FAE7B;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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "app.certified.graph.follow",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "record",
|
|
7
|
+
"description": "Record declaring a social 'follow' relationship of another account. Duplicate follows will be ignored by the AppView.",
|
|
8
|
+
"key": "tid",
|
|
9
|
+
"record": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": ["subject", "createdAt"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"subject": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"format": "did",
|
|
16
|
+
"description": "DID of the account being followed."
|
|
17
|
+
},
|
|
18
|
+
"createdAt": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"format": "datetime",
|
|
21
|
+
"description": "Client-declared timestamp when this record was originally created."
|
|
22
|
+
},
|
|
23
|
+
"via": {
|
|
24
|
+
"type": "ref",
|
|
25
|
+
"ref": "com.atproto.repo.strongRef",
|
|
26
|
+
"description": "Optional strong reference to a record that mediated this follow (e.g. a starter pack or other curated list). Mirrors the optional `via` field on app.bsky.graph.follow; the referenced record may conform with any lexicon."
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"locationType": {
|
|
31
31
|
"type": "string",
|
|
32
|
-
"description": "An identifier for the format of the location data
|
|
32
|
+
"description": "An identifier for the format of the location data. Use `geojson-point` for a single GeoJSON Point; use `geojson` as the catch-all for any other GeoJSON geometry (Polygon, MultiPolygon, FeatureCollection, etc.) — the inner payload's own GeoJSON `type` field carries the specifics. Values beyond the known set are permitted; see the Location Protocol spec for the canonical registry: https://spec.decentralizedgeo.org/specification/location-types/#location-type-registry",
|
|
33
33
|
"knownValues": [
|
|
34
34
|
"coordinate-decimal",
|
|
35
35
|
"geojson-point",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"category": {
|
|
24
24
|
"type": "string",
|
|
25
|
-
"description": "Category type of this scope.",
|
|
25
|
+
"description": "Category type of this scope. Values beyond the known set are permitted.",
|
|
26
26
|
"knownValues": ["topic", "language", "domain", "method"],
|
|
27
27
|
"maxLength": 50
|
|
28
28
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"status": {
|
|
41
41
|
"type": "string",
|
|
42
|
-
"description": "Lifecycle status of this tag. Communities propose tags, curators accept them, deprecated tags point to replacements via supersededBy.",
|
|
42
|
+
"description": "Lifecycle status of this tag. Communities propose tags, curators accept them, deprecated tags point to replacements via supersededBy. Values beyond the known set are permitted.",
|
|
43
43
|
"knownValues": ["proposed", "accepted", "deprecated"],
|
|
44
44
|
"maxLength": 20
|
|
45
45
|
},
|