···11+import "@typelex/emitter";
22+33+namespace community.lexicon.bookmarks.bookmark {
44+ /** Record bookmarking a link to come back to later. */
55+ @rec("tid")
66+ model Main {
77+ @required subject: uri;
88+99+ @required createdAt: datetime;
1010+1111+ /** Tags for content the bookmark may be related to, for example 'news' or 'funny videos' */
1212+ tags?: string[];
1313+ }
1414+}
···11+import "@typelex/emitter";
22+33+namespace community.lexicon.bookmarks.getActorBookmarks {
44+ /** Get a list of bookmarks by actor. Optionally add a list of tags to include, default will be all bookmarks. Requires auth, actor must be the requesting account. */
55+ @query
66+ op main(
77+ tags?: string[],
88+99+ @minValue(1)
1010+ @maxValue(100)
1111+ limit?: int32 = 50,
1212+1313+ cursor?: string
1414+ ): {
1515+ @required
1616+ bookmarks: community.lexicon.bookmarks.bookmark.Main[];
1717+1818+ cursor?: string;
1919+ };
2020+}
2121+2222+// --- Externals ---
2323+2424+@external
2525+namespace community.lexicon.bookmarks.bookmark {
2626+ model Main { }
2727+}
···11+import "@typelex/emitter";
22+33+namespace community.lexicon.location.address {
44+ /** A physical location in the form of a street address. */
55+ model Main {
66+ /** The ISO 3166 country code. Preferably the 2-letter code. */
77+ @required
88+ @minLength(2)
99+ @maxLength(10)
1010+ country: string;
1111+1212+ /** The postal code of the location. */
1313+ postalCode?: string;
1414+1515+ /** The administrative region of the country. For example, a state in the USA. */
1616+ region?: string;
1717+1818+ /** The locality of the region. For example, a city in the USA. */
1919+ locality?: string;
2020+2121+ /** The street address. */
2222+ street?: string;
2323+2424+ /** The name of the location. */
2525+ name?: string;
2626+ }
2727+}
···11+import "@typelex/emitter";
22+33+namespace community.lexicon.location.fsq {
44+ /** A physical location contained in the Foursquare Open Source Places dataset. */
55+ model Main {
66+ /** The unique identifier of a Foursquare POI. */
77+ @required fsq_place_id: string;
88+99+ latitude?: string;
1010+ longitude?: string;
1111+1212+ /** The name of the location. */
1313+ name?: string;
1414+ }
1515+}
···11+import "@typelex/emitter";
22+33+namespace community.lexicon.location.geo {
44+ /** A physical location in the form of a WGS84 coordinate. */
55+ model Main {
66+ @required latitude: string;
77+ @required longitude: string;
88+ altitude?: string;
99+ /** The name of the location. */
1010+ name?: string;
1111+ }
1212+}
···11+import "@typelex/emitter";
22+33+namespace community.lexicon.location.hthree {
44+ /** A physical location in the form of a H3 encoded location. */
55+ model Main {
66+ /** The h3 encoded location. */
77+ @required value: string;
88+99+ /** The name of the location. */
1010+ name?: string;
1111+ }
1212+}
···11+import "@typelex/emitter";
22+33+/** Web Monetization integration: https://webmonetization.org/ */
44+namespace community.lexicon.payments.webMonetization {
55+ @rec("any")
66+ /** Web Monetization wallet. */
77+ model Main {
88+ /** Wallet address. */
99+ @required address: uri;
1010+1111+ /** Short, human-readable description of how this wallet is related to this account. */
1212+ note?: string;
1313+ }
1414+}
···11+{
22+ "lexicon": 1,
33+ "id": "community.lexicon.location.address",
44+ "defs": {
55+ "main": {
66+ "type": "object",
77+ "description": "A physical location in the form of a street address.",
88+ "required": [
99+ "country"
1010+ ],
1111+ "properties": {
1212+ "country": {
1313+ "type": "string",
1414+ "description": "The ISO 3166 country code. Preferably the 2-letter code.",
1515+ "minLength": 2,
1616+ "maxLength": 10
1717+ },
1818+ "postalCode": {
1919+ "type": "string",
2020+ "description": "The postal code of the location."
2121+ },
2222+ "region": {
2323+ "type": "string",
2424+ "description": "The administrative region of the country. For example, a state in the USA."
2525+ },
2626+ "locality": {
2727+ "type": "string",
2828+ "description": "The locality of the region. For example, a city in the USA."
2929+ },
3030+ "street": {
3131+ "type": "string",
3232+ "description": "The street address."
3333+ },
3434+ "name": {
3535+ "type": "string",
3636+ "description": "The name of the location."
3737+ }
3838+ }
3939+ }
4040+ }
4141+}