···1import "@typelex/emitter";
23namespace community.lexicon.bookmarks.getActorBookmarks {
4- /** 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. */
5- @query
6- op main(
7- tags?: string[],
89- @minValue(1)
10- @maxValue(100)
11- limit?: int32 = 50,
1213- cursor?: string
14- ): {
15- @required
16- bookmarks: community.lexicon.bookmarks.bookmark.Main[];
1718- cursor?: string;
19- };
20}
2122// --- Externals ---
2324@external
25namespace community.lexicon.bookmarks.bookmark {
26- model Main { }
27-}
···1import "@typelex/emitter";
23namespace community.lexicon.bookmarks.getActorBookmarks {
4+ /** 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. */
5+ @query
6+ op main(
7+ tags?: string[],
89+ @minValue(1)
10+ @maxValue(100)
11+ limit?: int32 = 50,
1213+ cursor?: string,
14+ ): {
15+ @required
16+ bookmarks: community.lexicon.bookmarks.bookmark.Main[];
1718+ cursor?: string;
19+ };
20}
2122// --- Externals ---
2324@external
25namespace community.lexicon.bookmarks.bookmark {
26+ model Main {}
27+}
···1import "@typelex/emitter";
23namespace community.lexicon.location.address {
4- /** A physical location in the form of a street address. */
5- model Main {
6- /** The ISO 3166 country code. Preferably the 2-letter code. */
7- @required
8- @minLength(2)
9- @maxLength(10)
10- country: string;
1112- /** The postal code of the location. */
13- postalCode?: string;
1415- /** The administrative region of the country. For example, a state in the USA. */
16- region?: string;
1718- /** The locality of the region. For example, a city in the USA. */
19- locality?: string;
2021- /** The street address. */
22- street?: string;
2324- /** The name of the location. */
25- name?: string;
26- }
27}
···1import "@typelex/emitter";
23namespace community.lexicon.location.address {
4+ /** A physical location in the form of a street address. */
5+ model Main {
6+ /** The ISO 3166 country code. Preferably the 2-letter code. */
7+ @required
8+ @minLength(2)
9+ @maxLength(10)
10+ country: string;
1112+ /** The postal code of the location. */
13+ postalCode?: string;
1415+ /** The administrative region of the country. For example, a state in the USA. */
16+ region?: string;
1718+ /** The locality of the region. For example, a city in the USA. */
19+ locality?: string;
2021+ /** The street address. */
22+ street?: string;
2324+ /** The name of the location. */
25+ name?: string;
26+ }
27}
···1import "@typelex/emitter";
23namespace community.lexicon.location.fsq {
4- /** A physical location contained in the Foursquare Open Source Places dataset. */
5- model Main {
6- /** The unique identifier of a Foursquare POI. */
7- @required fsq_place_id: string;
89- latitude?: string;
10- longitude?: string;
1112- /** The name of the location. */
13- name?: string;
14- }
15}
···1import "@typelex/emitter";
23namespace community.lexicon.location.fsq {
4+ /** A physical location contained in the Foursquare Open Source Places dataset. */
5+ model Main {
6+ /** The unique identifier of a Foursquare POI. */
7+ @required fsq_place_id: string;
89+ latitude?: string;
10+ longitude?: string;
1112+ /** The name of the location. */
13+ name?: string;
14+ }
15}
···1import "@typelex/emitter";
23namespace community.lexicon.location.geo {
4- /** A physical location in the form of a WGS84 coordinate. */
5- model Main {
6- @required latitude: string;
7- @required longitude: string;
8- altitude?: string;
9- /** The name of the location. */
10- name?: string;
11- }
12-}0
···1import "@typelex/emitter";
23namespace community.lexicon.location.geo {
4+ /** A physical location in the form of a WGS84 coordinate. */
5+ model Main {
6+ @required latitude: string;
7+ @required longitude: string;
8+ altitude?: string;
9+10+ /** The name of the location. */
11+ name?: string;
12+ }
13+}
···1import "@typelex/emitter";
23namespace community.lexicon.location.hthree {
4- /** A physical location in the form of a H3 encoded location. */
5- model Main {
6- /** The h3 encoded location. */
7- @required value: string;
89- /** The name of the location. */
10- name?: string;
11- }
12-}
···1import "@typelex/emitter";
23namespace community.lexicon.location.hthree {
4+ /** A physical location in the form of a H3 encoded location. */
5+ model Main {
6+ /** The h3 encoded location. */
7+ @required value: string;
89+ /** The name of the location. */
10+ name?: string;
11+ }
12+}
···23/** Web Monetization integration: https://webmonetization.org/ */
4namespace community.lexicon.payments.webMonetization {
5- @rec("any")
6- /** Web Monetization wallet. */
7- model Main {
8- /** Wallet address. */
9- @required address: uri;
1011- /** Short, human-readable description of how this wallet is related to this account. */
12- note?: string;
13- }
14-}
···23/** Web Monetization integration: https://webmonetization.org/ */
4namespace community.lexicon.payments.webMonetization {
5+ /** Web Monetization wallet. */
6+ @rec("any")
7+ model Main {
8+ /** Wallet address. */
9+ @required address: uri;
1011+ /** Short, human-readable description of how this wallet is related to this account. */
12+ note?: string;
13+ }
14+}