···11+{
22+ "lexicon": 1,
33+ "id": "app.rocksky.feed.getStories",
44+ "defs": {
55+ "main": {
66+ "type": "query",
77+ "description": "Get all currently playing tracks by users",
88+ "parameters": {
99+ "type": "params",
1010+ "properties": {
1111+ "size": {
1212+ "type": "integer",
1313+ "description": "The maximum number of stories to return.",
1414+ "minimum": 1
1515+ }
1616+ }
1717+ },
1818+ "output": {
1919+ "encoding": "application/json",
2020+ "schema": {
2121+ "type": "ref",
2222+ "ref": "app.rocksky.feed.defs#nowPlayingsView"
2323+ }
2424+ }
2525+ }
2626+ }
2727+}
+27
apps/api/pkl/defs/feed/getStories.pkl
···11+amends "../../schema/lexicon.pkl"
22+33+lexicon = 1
44+id = "app.rocksky.feed.getStories"
55+defs = new Mapping<String, Query> {
66+ ["main"] {
77+ type = "query"
88+ description = "Get all currently playing tracks by users"
99+ parameters {
1010+ type = "params"
1111+ properties {
1212+ ["size"] = new IntegerType {
1313+ type = "integer"
1414+ description = "The maximum number of stories to return."
1515+ minimum = 1
1616+ }
1717+ }
1818+ }
1919+ output {
2020+ encoding = "application/json"
2121+ schema = new Ref {
2222+ type = "ref"
2323+ ref = "app.rocksky.feed.defs#nowPlayingsView"
2424+ }
2525+ }
2626+ }
2727+}
+12
apps/api/src/lexicon/index.ts
···4848import type * as AppRockskyFeedGetFeedGenerators from "./types/app/rocksky/feed/getFeedGenerators";
4949import type * as AppRockskyFeedGetFeedSkeleton from "./types/app/rocksky/feed/getFeedSkeleton";
5050import type * as AppRockskyFeedGetNowPlayings from "./types/app/rocksky/feed/getNowPlayings";
5151+import type * as AppRockskyFeedGetStories from "./types/app/rocksky/feed/getStories";
5152import type * as AppRockskyFeedSearch from "./types/app/rocksky/feed/search";
5253import type * as AppRockskyGoogledriveDownloadFile from "./types/app/rocksky/googledrive/downloadFile";
5354import type * as AppRockskyGoogledriveGetFile from "./types/app/rocksky/googledrive/getFile";
···705706 >,
706707 ) {
707708 const nsid = "app.rocksky.feed.getNowPlayings"; // @ts-ignore
709709+ return this._server.xrpc.method(nsid, cfg);
710710+ }
711711+712712+ getStories<AV extends AuthVerifier>(
713713+ cfg: ConfigOf<
714714+ AV,
715715+ AppRockskyFeedGetStories.Handler<ExtractAuth<AV>>,
716716+ AppRockskyFeedGetStories.HandlerReqCtx<ExtractAuth<AV>>
717717+ >,
718718+ ) {
719719+ const nsid = "app.rocksky.feed.getStories"; // @ts-ignore
708720 return this._server.xrpc.method(nsid, cfg);
709721 }
710722