···11-{
22- "lexicon": 1,
33- "id": "app.rocksky.feed.getNowPlayings",
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 now playing tracks 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-}
-69
apps/api/pkl/defs/feed/defs.pkl
···3434 }
3535 }
3636 }
3737- ["nowPlayingView"] = new ObjectType {
3838- type = "object"
3939- properties {
4040- ["album"] = new StringType {
4141- type = "string"
4242- }
4343- ["albumArt"] = new StringType {
4444- type = "string"
4545- format = "uri"
4646- }
4747- ["albumArtist"] = new StringType {
4848- type = "string"
4949- }
5050- ["albumUri"] = new StringType {
5151- type = "string"
5252- format = "at-uri"
5353- }
5454- ["artist"] = new StringType {
5555- type = "string"
5656- }
5757- ["artistUri"] = new StringType {
5858- type = "string"
5959- format = "at-uri"
6060- }
6161- ["avatar"] = new StringType {
6262- type = "string"
6363- format = "uri"
6464- }
6565- ["createdAt"] = new StringType {
6666- type = "string"
6767- }
6868- ["did"] = new StringType {
6969- type = "string"
7070- format = "at-identifier"
7171- }
7272- ["handle"] = new StringType {
7373- type = "string"
7474- }
7575- ["id"] = new StringType {
7676- type = "string"
7777- }
7878- ["title"] = new StringType {
7979- type = "string"
8080- }
8181- ["trackId"] = new StringType {
8282- type = "string"
8383- }
8484- ["trackUri"] = new StringType {
8585- type = "string"
8686- format = "at-uri"
8787- }
8888- ["uri"] = new StringType {
8989- type = "string"
9090- format = "at-uri"
9191- }
9292- }
9393- }
9494- ["nowPlayingsView"] = new ObjectType {
9595- type = "object"
9696- properties {
9797- ["nowPlayings"] = new Array {
9898- type = "array"
9999- items = new Ref {
100100- type = "ref"
101101- ref = "app.rocksky.feed.defs#nowPlayingView"
102102- }
103103- }
104104- }
105105- }
10637 ["storyView"] = new ObjectType {
10738 type = "object"
10839 properties {
-27
apps/api/pkl/defs/feed/getNowPlayings.pkl
···11-amends "../../schema/lexicon.pkl"
22-33-lexicon = 1
44-id = "app.rocksky.feed.getNowPlayings"
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 now playing tracks 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
···4747import type * as AppRockskyFeedGetFeedGenerator from "./types/app/rocksky/feed/getFeedGenerator";
4848import type * as AppRockskyFeedGetFeedGenerators from "./types/app/rocksky/feed/getFeedGenerators";
4949import type * as AppRockskyFeedGetFeedSkeleton from "./types/app/rocksky/feed/getFeedSkeleton";
5050-import type * as AppRockskyFeedGetNowPlayings from "./types/app/rocksky/feed/getNowPlayings";
5150import type * as AppRockskyFeedGetStories from "./types/app/rocksky/feed/getStories";
5251import type * as AppRockskyFeedSearch from "./types/app/rocksky/feed/search";
5352import type * as AppRockskyGoogledriveDownloadFile from "./types/app/rocksky/googledrive/downloadFile";
···695694 >,
696695 ) {
697696 const nsid = "app.rocksky.feed.getFeedSkeleton"; // @ts-ignore
698698- return this._server.xrpc.method(nsid, cfg);
699699- }
700700-701701- getNowPlayings<AV extends AuthVerifier>(
702702- cfg: ConfigOf<
703703- AV,
704704- AppRockskyFeedGetNowPlayings.Handler<ExtractAuth<AV>>,
705705- AppRockskyFeedGetNowPlayings.HandlerReqCtx<ExtractAuth<AV>>
706706- >,
707707- ) {
708708- const nsid = "app.rocksky.feed.getNowPlayings"; // @ts-ignore
709697 return this._server.xrpc.method(nsid, cfg);
710698 }
711699