diff --git a/apps/api/lexicons/scrobble/defs.json b/apps/api/lexicons/scrobble/defs.json index 001b7172..56ad19f3 100644 --- a/apps/api/lexicons/scrobble/defs.json +++ b/apps/api/lexicons/scrobble/defs.json @@ -13,6 +13,15 @@ "type": "string", "description": "The handle of the user who created the scrobble." }, + "userDisplayName": { + "type": "string", + "description": "The display name of the user who created the scrobble." + }, + "userAvatar": { + "type": "string", + "description": "The avatar URL of the user who created the scrobble.", + "format": "uri" + }, "title": { "type": "string", "description": "The title of the scrobble." diff --git a/apps/api/pkl/defs/scrobble/defs.pkl b/apps/api/pkl/defs/scrobble/defs.pkl index 7e257807..50f9465f 100644 --- a/apps/api/pkl/defs/scrobble/defs.pkl +++ b/apps/api/pkl/defs/scrobble/defs.pkl @@ -14,6 +14,15 @@ defs = new Mapping { type = "string" description = "The handle of the user who created the scrobble." } + ["userDisplayName"] = new StringType { + type = "string" + description = "The display name of the user who created the scrobble." + } + ["userAvatar"] = new StringType { + type = "string" + description = "The avatar URL of the user who created the scrobble." + format = "uri" + } ["title"] = new StringType { type = "string" description = "The title of the scrobble." diff --git a/apps/api/src/lexicon/index.ts b/apps/api/src/lexicon/index.ts index 4542d508..3e61c236 100644 --- a/apps/api/src/lexicon/index.ts +++ b/apps/api/src/lexicon/index.ts @@ -3,159 +3,159 @@ */ import { createServer as createXrpcServer, - Server as XrpcServer, - Options as XrpcOptions, - AuthVerifier, - StreamAuthVerifier, -} from "@atproto/xrpc-server"; -import { schemas } from "./lexicons"; -import * as AppRockskyActorGetActorAlbums from "./types/app/rocksky/actor/getActorAlbums"; -import * as AppRockskyActorGetActorArtists from "./types/app/rocksky/actor/getActorArtists"; -import * as AppRockskyActorGetActorLovedSongs from "./types/app/rocksky/actor/getActorLovedSongs"; -import * as AppRockskyActorGetActorPlaylists from "./types/app/rocksky/actor/getActorPlaylists"; -import * as AppRockskyActorGetActorScrobbles from "./types/app/rocksky/actor/getActorScrobbles"; -import * as AppRockskyActorGetActorSongs from "./types/app/rocksky/actor/getActorSongs"; -import * as AppRockskyActorGetProfile from "./types/app/rocksky/actor/getProfile"; -import * as AppRockskyAlbumGetAlbum from "./types/app/rocksky/album/getAlbum"; -import * as AppRockskyAlbumGetAlbums from "./types/app/rocksky/album/getAlbums"; -import * as AppRockskyAlbumGetAlbumTracks from "./types/app/rocksky/album/getAlbumTracks"; -import * as AppRockskyApikeyCreateApikey from "./types/app/rocksky/apikey/createApikey"; -import * as AppRockskyApikeyGetApikeys from "./types/app/rocksky/apikey/getApikeys"; -import * as AppRockskyApikeyRemoveApikey from "./types/app/rocksky/apikey/removeApikey"; -import * as AppRockskyApikeyUpdateApikey from "./types/app/rocksky/apikey/updateApikey"; -import * as AppRockskyArtistGetArtistAlbums from "./types/app/rocksky/artist/getArtistAlbums"; -import * as AppRockskyArtistGetArtist from "./types/app/rocksky/artist/getArtist"; -import * as AppRockskyArtistGetArtists from "./types/app/rocksky/artist/getArtists"; -import * as AppRockskyArtistGetArtistTracks from "./types/app/rocksky/artist/getArtistTracks"; -import * as AppRockskyChartsGetScrobblesChart from "./types/app/rocksky/charts/getScrobblesChart"; -import * as AppRockskyDropboxDownloadFile from "./types/app/rocksky/dropbox/downloadFile"; -import * as AppRockskyDropboxGetFiles from "./types/app/rocksky/dropbox/getFiles"; -import * as AppRockskyDropboxGetMetadata from "./types/app/rocksky/dropbox/getMetadata"; -import * as AppRockskyDropboxGetTemporaryLink from "./types/app/rocksky/dropbox/getTemporaryLink"; -import * as AppRockskyFeedGetNowPlayings from "./types/app/rocksky/feed/getNowPlayings"; -import * as AppRockskyFeedSearch from "./types/app/rocksky/feed/search"; -import * as AppRockskyGoogledriveDownloadFile from "./types/app/rocksky/googledrive/downloadFile"; -import * as AppRockskyGoogledriveGetFile from "./types/app/rocksky/googledrive/getFile"; -import * as AppRockskyGoogledriveGetFiles from "./types/app/rocksky/googledrive/getFiles"; -import * as AppRockskyLikeDislikeShout from "./types/app/rocksky/like/dislikeShout"; -import * as AppRockskyLikeDislikeSong from "./types/app/rocksky/like/dislikeSong"; -import * as AppRockskyLikeLikeShout from "./types/app/rocksky/like/likeShout"; -import * as AppRockskyLikeLikeSong from "./types/app/rocksky/like/likeSong"; -import * as AppRockskyPlayerAddDirectoryToQueue from "./types/app/rocksky/player/addDirectoryToQueue"; -import * as AppRockskyPlayerAddItemsToQueue from "./types/app/rocksky/player/addItemsToQueue"; -import * as AppRockskyPlayerGetCurrentlyPlaying from "./types/app/rocksky/player/getCurrentlyPlaying"; -import * as AppRockskyPlayerGetPlaybackQueue from "./types/app/rocksky/player/getPlaybackQueue"; -import * as AppRockskyPlayerNext from "./types/app/rocksky/player/next"; -import * as AppRockskyPlayerPause from "./types/app/rocksky/player/pause"; -import * as AppRockskyPlayerPlayDirectory from "./types/app/rocksky/player/playDirectory"; -import * as AppRockskyPlayerPlayFile from "./types/app/rocksky/player/playFile"; -import * as AppRockskyPlayerPlay from "./types/app/rocksky/player/play"; -import * as AppRockskyPlayerPrevious from "./types/app/rocksky/player/previous"; -import * as AppRockskyPlayerSeek from "./types/app/rocksky/player/seek"; -import * as AppRockskyPlaylistCreatePlaylist from "./types/app/rocksky/playlist/createPlaylist"; -import * as AppRockskyPlaylistGetPlaylist from "./types/app/rocksky/playlist/getPlaylist"; -import * as AppRockskyPlaylistGetPlaylists from "./types/app/rocksky/playlist/getPlaylists"; -import * as AppRockskyPlaylistInsertDirectory from "./types/app/rocksky/playlist/insertDirectory"; -import * as AppRockskyPlaylistInsertFiles from "./types/app/rocksky/playlist/insertFiles"; -import * as AppRockskyPlaylistRemovePlaylist from "./types/app/rocksky/playlist/removePlaylist"; -import * as AppRockskyPlaylistRemoveTrack from "./types/app/rocksky/playlist/removeTrack"; -import * as AppRockskyPlaylistStartPlaylist from "./types/app/rocksky/playlist/startPlaylist"; -import * as AppRockskyScrobbleCreateScrobble from "./types/app/rocksky/scrobble/createScrobble"; -import * as AppRockskyScrobbleGetScrobble from "./types/app/rocksky/scrobble/getScrobble"; -import * as AppRockskyScrobbleGetScrobbles from "./types/app/rocksky/scrobble/getScrobbles"; -import * as AppRockskyShoutCreateShout from "./types/app/rocksky/shout/createShout"; -import * as AppRockskyShoutGetAlbumShouts from "./types/app/rocksky/shout/getAlbumShouts"; -import * as AppRockskyShoutGetArtistShouts from "./types/app/rocksky/shout/getArtistShouts"; -import * as AppRockskyShoutGetProfileShouts from "./types/app/rocksky/shout/getProfileShouts"; -import * as AppRockskyShoutGetShoutReplies from "./types/app/rocksky/shout/getShoutReplies"; -import * as AppRockskyShoutGetTrackShouts from "./types/app/rocksky/shout/getTrackShouts"; -import * as AppRockskyShoutRemoveShout from "./types/app/rocksky/shout/removeShout"; -import * as AppRockskyShoutReplyShout from "./types/app/rocksky/shout/replyShout"; -import * as AppRockskyShoutReportShout from "./types/app/rocksky/shout/reportShout"; -import * as AppRockskySongCreateSong from "./types/app/rocksky/song/createSong"; -import * as AppRockskySongGetSong from "./types/app/rocksky/song/getSong"; -import * as AppRockskySongGetSongs from "./types/app/rocksky/song/getSongs"; -import * as AppRockskySpotifyGetCurrentlyPlaying from "./types/app/rocksky/spotify/getCurrentlyPlaying"; -import * as AppRockskySpotifyNext from "./types/app/rocksky/spotify/next"; -import * as AppRockskySpotifyPause from "./types/app/rocksky/spotify/pause"; -import * as AppRockskySpotifyPlay from "./types/app/rocksky/spotify/play"; -import * as AppRockskySpotifyPrevious from "./types/app/rocksky/spotify/previous"; -import * as AppRockskySpotifySeek from "./types/app/rocksky/spotify/seek"; -import * as AppRockskyStatsGetStats from "./types/app/rocksky/stats/getStats"; + type Server as XrpcServer, + type Options as XrpcOptions, + type AuthVerifier, + type StreamAuthVerifier, +} from '@atproto/xrpc-server' +import { schemas } from './lexicons' +import type * as AppRockskyActorGetActorAlbums from './types/app/rocksky/actor/getActorAlbums' +import type * as AppRockskyActorGetActorArtists from './types/app/rocksky/actor/getActorArtists' +import type * as AppRockskyActorGetActorLovedSongs from './types/app/rocksky/actor/getActorLovedSongs' +import type * as AppRockskyActorGetActorPlaylists from './types/app/rocksky/actor/getActorPlaylists' +import type * as AppRockskyActorGetActorScrobbles from './types/app/rocksky/actor/getActorScrobbles' +import type * as AppRockskyActorGetActorSongs from './types/app/rocksky/actor/getActorSongs' +import type * as AppRockskyActorGetProfile from './types/app/rocksky/actor/getProfile' +import type * as AppRockskyAlbumGetAlbum from './types/app/rocksky/album/getAlbum' +import type * as AppRockskyAlbumGetAlbums from './types/app/rocksky/album/getAlbums' +import type * as AppRockskyAlbumGetAlbumTracks from './types/app/rocksky/album/getAlbumTracks' +import type * as AppRockskyApikeyCreateApikey from './types/app/rocksky/apikey/createApikey' +import type * as AppRockskyApikeyGetApikeys from './types/app/rocksky/apikey/getApikeys' +import type * as AppRockskyApikeyRemoveApikey from './types/app/rocksky/apikey/removeApikey' +import type * as AppRockskyApikeyUpdateApikey from './types/app/rocksky/apikey/updateApikey' +import type * as AppRockskyArtistGetArtistAlbums from './types/app/rocksky/artist/getArtistAlbums' +import type * as AppRockskyArtistGetArtist from './types/app/rocksky/artist/getArtist' +import type * as AppRockskyArtistGetArtists from './types/app/rocksky/artist/getArtists' +import type * as AppRockskyArtistGetArtistTracks from './types/app/rocksky/artist/getArtistTracks' +import type * as AppRockskyChartsGetScrobblesChart from './types/app/rocksky/charts/getScrobblesChart' +import type * as AppRockskyDropboxDownloadFile from './types/app/rocksky/dropbox/downloadFile' +import type * as AppRockskyDropboxGetFiles from './types/app/rocksky/dropbox/getFiles' +import type * as AppRockskyDropboxGetMetadata from './types/app/rocksky/dropbox/getMetadata' +import type * as AppRockskyDropboxGetTemporaryLink from './types/app/rocksky/dropbox/getTemporaryLink' +import type * as AppRockskyFeedGetNowPlayings from './types/app/rocksky/feed/getNowPlayings' +import type * as AppRockskyFeedSearch from './types/app/rocksky/feed/search' +import type * as AppRockskyGoogledriveDownloadFile from './types/app/rocksky/googledrive/downloadFile' +import type * as AppRockskyGoogledriveGetFile from './types/app/rocksky/googledrive/getFile' +import type * as AppRockskyGoogledriveGetFiles from './types/app/rocksky/googledrive/getFiles' +import type * as AppRockskyLikeDislikeShout from './types/app/rocksky/like/dislikeShout' +import type * as AppRockskyLikeDislikeSong from './types/app/rocksky/like/dislikeSong' +import type * as AppRockskyLikeLikeShout from './types/app/rocksky/like/likeShout' +import type * as AppRockskyLikeLikeSong from './types/app/rocksky/like/likeSong' +import type * as AppRockskyPlayerAddDirectoryToQueue from './types/app/rocksky/player/addDirectoryToQueue' +import type * as AppRockskyPlayerAddItemsToQueue from './types/app/rocksky/player/addItemsToQueue' +import type * as AppRockskyPlayerGetCurrentlyPlaying from './types/app/rocksky/player/getCurrentlyPlaying' +import type * as AppRockskyPlayerGetPlaybackQueue from './types/app/rocksky/player/getPlaybackQueue' +import type * as AppRockskyPlayerNext from './types/app/rocksky/player/next' +import type * as AppRockskyPlayerPause from './types/app/rocksky/player/pause' +import type * as AppRockskyPlayerPlayDirectory from './types/app/rocksky/player/playDirectory' +import type * as AppRockskyPlayerPlayFile from './types/app/rocksky/player/playFile' +import type * as AppRockskyPlayerPlay from './types/app/rocksky/player/play' +import type * as AppRockskyPlayerPrevious from './types/app/rocksky/player/previous' +import type * as AppRockskyPlayerSeek from './types/app/rocksky/player/seek' +import type * as AppRockskyPlaylistCreatePlaylist from './types/app/rocksky/playlist/createPlaylist' +import type * as AppRockskyPlaylistGetPlaylist from './types/app/rocksky/playlist/getPlaylist' +import type * as AppRockskyPlaylistGetPlaylists from './types/app/rocksky/playlist/getPlaylists' +import type * as AppRockskyPlaylistInsertDirectory from './types/app/rocksky/playlist/insertDirectory' +import type * as AppRockskyPlaylistInsertFiles from './types/app/rocksky/playlist/insertFiles' +import type * as AppRockskyPlaylistRemovePlaylist from './types/app/rocksky/playlist/removePlaylist' +import type * as AppRockskyPlaylistRemoveTrack from './types/app/rocksky/playlist/removeTrack' +import type * as AppRockskyPlaylistStartPlaylist from './types/app/rocksky/playlist/startPlaylist' +import type * as AppRockskyScrobbleCreateScrobble from './types/app/rocksky/scrobble/createScrobble' +import type * as AppRockskyScrobbleGetScrobble from './types/app/rocksky/scrobble/getScrobble' +import type * as AppRockskyScrobbleGetScrobbles from './types/app/rocksky/scrobble/getScrobbles' +import type * as AppRockskyShoutCreateShout from './types/app/rocksky/shout/createShout' +import type * as AppRockskyShoutGetAlbumShouts from './types/app/rocksky/shout/getAlbumShouts' +import type * as AppRockskyShoutGetArtistShouts from './types/app/rocksky/shout/getArtistShouts' +import type * as AppRockskyShoutGetProfileShouts from './types/app/rocksky/shout/getProfileShouts' +import type * as AppRockskyShoutGetShoutReplies from './types/app/rocksky/shout/getShoutReplies' +import type * as AppRockskyShoutGetTrackShouts from './types/app/rocksky/shout/getTrackShouts' +import type * as AppRockskyShoutRemoveShout from './types/app/rocksky/shout/removeShout' +import type * as AppRockskyShoutReplyShout from './types/app/rocksky/shout/replyShout' +import type * as AppRockskyShoutReportShout from './types/app/rocksky/shout/reportShout' +import type * as AppRockskySongCreateSong from './types/app/rocksky/song/createSong' +import type * as AppRockskySongGetSong from './types/app/rocksky/song/getSong' +import type * as AppRockskySongGetSongs from './types/app/rocksky/song/getSongs' +import type * as AppRockskySpotifyGetCurrentlyPlaying from './types/app/rocksky/spotify/getCurrentlyPlaying' +import type * as AppRockskySpotifyNext from './types/app/rocksky/spotify/next' +import type * as AppRockskySpotifyPause from './types/app/rocksky/spotify/pause' +import type * as AppRockskySpotifyPlay from './types/app/rocksky/spotify/play' +import type * as AppRockskySpotifyPrevious from './types/app/rocksky/spotify/previous' +import type * as AppRockskySpotifySeek from './types/app/rocksky/spotify/seek' +import type * as AppRockskyStatsGetStats from './types/app/rocksky/stats/getStats' export function createServer(options?: XrpcOptions): Server { - return new Server(options); + return new Server(options) } export class Server { - xrpc: XrpcServer; - app: AppNS; - com: ComNS; + xrpc: XrpcServer + app: AppNS + com: ComNS constructor(options?: XrpcOptions) { - this.xrpc = createXrpcServer(schemas, options); - this.app = new AppNS(this); - this.com = new ComNS(this); + this.xrpc = createXrpcServer(schemas, options) + this.app = new AppNS(this) + this.com = new ComNS(this) } } export class AppNS { - _server: Server; - rocksky: AppRockskyNS; - bsky: AppBskyNS; + _server: Server + rocksky: AppRockskyNS + bsky: AppBskyNS constructor(server: Server) { - this._server = server; - this.rocksky = new AppRockskyNS(server); - this.bsky = new AppBskyNS(server); + this._server = server + this.rocksky = new AppRockskyNS(server) + this.bsky = new AppBskyNS(server) } } export class AppRockskyNS { - _server: Server; - actor: AppRockskyActorNS; - album: AppRockskyAlbumNS; - apikey: AppRockskyApikeyNS; - artist: AppRockskyArtistNS; - charts: AppRockskyChartsNS; - dropbox: AppRockskyDropboxNS; - feed: AppRockskyFeedNS; - googledrive: AppRockskyGoogledriveNS; - like: AppRockskyLikeNS; - player: AppRockskyPlayerNS; - playlist: AppRockskyPlaylistNS; - scrobble: AppRockskyScrobbleNS; - shout: AppRockskyShoutNS; - song: AppRockskySongNS; - spotify: AppRockskySpotifyNS; - stats: AppRockskyStatsNS; + _server: Server + actor: AppRockskyActorNS + album: AppRockskyAlbumNS + apikey: AppRockskyApikeyNS + artist: AppRockskyArtistNS + charts: AppRockskyChartsNS + dropbox: AppRockskyDropboxNS + feed: AppRockskyFeedNS + googledrive: AppRockskyGoogledriveNS + like: AppRockskyLikeNS + player: AppRockskyPlayerNS + playlist: AppRockskyPlaylistNS + scrobble: AppRockskyScrobbleNS + shout: AppRockskyShoutNS + song: AppRockskySongNS + spotify: AppRockskySpotifyNS + stats: AppRockskyStatsNS constructor(server: Server) { - this._server = server; - this.actor = new AppRockskyActorNS(server); - this.album = new AppRockskyAlbumNS(server); - this.apikey = new AppRockskyApikeyNS(server); - this.artist = new AppRockskyArtistNS(server); - this.charts = new AppRockskyChartsNS(server); - this.dropbox = new AppRockskyDropboxNS(server); - this.feed = new AppRockskyFeedNS(server); - this.googledrive = new AppRockskyGoogledriveNS(server); - this.like = new AppRockskyLikeNS(server); - this.player = new AppRockskyPlayerNS(server); - this.playlist = new AppRockskyPlaylistNS(server); - this.scrobble = new AppRockskyScrobbleNS(server); - this.shout = new AppRockskyShoutNS(server); - this.song = new AppRockskySongNS(server); - this.spotify = new AppRockskySpotifyNS(server); - this.stats = new AppRockskyStatsNS(server); + this._server = server + this.actor = new AppRockskyActorNS(server) + this.album = new AppRockskyAlbumNS(server) + this.apikey = new AppRockskyApikeyNS(server) + this.artist = new AppRockskyArtistNS(server) + this.charts = new AppRockskyChartsNS(server) + this.dropbox = new AppRockskyDropboxNS(server) + this.feed = new AppRockskyFeedNS(server) + this.googledrive = new AppRockskyGoogledriveNS(server) + this.like = new AppRockskyLikeNS(server) + this.player = new AppRockskyPlayerNS(server) + this.playlist = new AppRockskyPlaylistNS(server) + this.scrobble = new AppRockskyScrobbleNS(server) + this.shout = new AppRockskyShoutNS(server) + this.song = new AppRockskySongNS(server) + this.spotify = new AppRockskySpotifyNS(server) + this.stats = new AppRockskyStatsNS(server) } } export class AppRockskyActorNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } getActorAlbums( @@ -165,8 +165,8 @@ export class AppRockskyActorNS { AppRockskyActorGetActorAlbums.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.actor.getActorAlbums"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.actor.getActorAlbums' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getActorArtists( @@ -176,8 +176,8 @@ export class AppRockskyActorNS { AppRockskyActorGetActorArtists.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.actor.getActorArtists"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.actor.getActorArtists' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getActorLovedSongs( @@ -187,8 +187,8 @@ export class AppRockskyActorNS { AppRockskyActorGetActorLovedSongs.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.actor.getActorLovedSongs"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.actor.getActorLovedSongs' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getActorPlaylists( @@ -198,8 +198,8 @@ export class AppRockskyActorNS { AppRockskyActorGetActorPlaylists.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.actor.getActorPlaylists"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.actor.getActorPlaylists' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getActorScrobbles( @@ -209,8 +209,8 @@ export class AppRockskyActorNS { AppRockskyActorGetActorScrobbles.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.actor.getActorScrobbles"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.actor.getActorScrobbles' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getActorSongs( @@ -220,8 +220,8 @@ export class AppRockskyActorNS { AppRockskyActorGetActorSongs.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.actor.getActorSongs"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.actor.getActorSongs' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getProfile( @@ -231,16 +231,16 @@ export class AppRockskyActorNS { AppRockskyActorGetProfile.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.actor.getProfile"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.actor.getProfile' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } } export class AppRockskyAlbumNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } getAlbum( @@ -250,8 +250,8 @@ export class AppRockskyAlbumNS { AppRockskyAlbumGetAlbum.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.album.getAlbum"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.album.getAlbum' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getAlbums( @@ -261,8 +261,8 @@ export class AppRockskyAlbumNS { AppRockskyAlbumGetAlbums.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.album.getAlbums"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.album.getAlbums' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getAlbumTracks( @@ -272,16 +272,16 @@ export class AppRockskyAlbumNS { AppRockskyAlbumGetAlbumTracks.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.album.getAlbumTracks"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.album.getAlbumTracks' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } } export class AppRockskyApikeyNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } createApikey( @@ -291,8 +291,8 @@ export class AppRockskyApikeyNS { AppRockskyApikeyCreateApikey.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.apikey.createApikey"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.apikey.createApikey' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getApikeys( @@ -302,8 +302,8 @@ export class AppRockskyApikeyNS { AppRockskyApikeyGetApikeys.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.apikey.getApikeys"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.apikey.getApikeys' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } removeApikey( @@ -313,8 +313,8 @@ export class AppRockskyApikeyNS { AppRockskyApikeyRemoveApikey.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.apikey.removeApikey"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.apikey.removeApikey' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } updateApikey( @@ -324,16 +324,16 @@ export class AppRockskyApikeyNS { AppRockskyApikeyUpdateApikey.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.apikey.updateApikey"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.apikey.updateApikey' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } } export class AppRockskyArtistNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } getArtistAlbums( @@ -343,8 +343,8 @@ export class AppRockskyArtistNS { AppRockskyArtistGetArtistAlbums.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.artist.getArtistAlbums"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.artist.getArtistAlbums' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getArtist( @@ -354,8 +354,8 @@ export class AppRockskyArtistNS { AppRockskyArtistGetArtist.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.artist.getArtist"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.artist.getArtist' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getArtists( @@ -365,8 +365,8 @@ export class AppRockskyArtistNS { AppRockskyArtistGetArtists.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.artist.getArtists"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.artist.getArtists' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getArtistTracks( @@ -376,16 +376,16 @@ export class AppRockskyArtistNS { AppRockskyArtistGetArtistTracks.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.artist.getArtistTracks"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.artist.getArtistTracks' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } } export class AppRockskyChartsNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } getScrobblesChart( @@ -395,16 +395,16 @@ export class AppRockskyChartsNS { AppRockskyChartsGetScrobblesChart.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.charts.getScrobblesChart"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.charts.getScrobblesChart' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } } export class AppRockskyDropboxNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } downloadFile( @@ -414,8 +414,8 @@ export class AppRockskyDropboxNS { AppRockskyDropboxDownloadFile.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.dropbox.downloadFile"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.dropbox.downloadFile' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getFiles( @@ -425,8 +425,8 @@ export class AppRockskyDropboxNS { AppRockskyDropboxGetFiles.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.dropbox.getFiles"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.dropbox.getFiles' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getMetadata( @@ -436,8 +436,8 @@ export class AppRockskyDropboxNS { AppRockskyDropboxGetMetadata.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.dropbox.getMetadata"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.dropbox.getMetadata' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getTemporaryLink( @@ -447,16 +447,16 @@ export class AppRockskyDropboxNS { AppRockskyDropboxGetTemporaryLink.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.dropbox.getTemporaryLink"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.dropbox.getTemporaryLink' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } } export class AppRockskyFeedNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } getNowPlayings( @@ -466,8 +466,8 @@ export class AppRockskyFeedNS { AppRockskyFeedGetNowPlayings.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.feed.getNowPlayings"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.feed.getNowPlayings' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } search( @@ -477,16 +477,16 @@ export class AppRockskyFeedNS { AppRockskyFeedSearch.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.feed.search"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.feed.search' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } } export class AppRockskyGoogledriveNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } downloadFile( @@ -496,8 +496,8 @@ export class AppRockskyGoogledriveNS { AppRockskyGoogledriveDownloadFile.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.googledrive.downloadFile"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.googledrive.downloadFile' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getFile( @@ -507,8 +507,8 @@ export class AppRockskyGoogledriveNS { AppRockskyGoogledriveGetFile.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.googledrive.getFile"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.googledrive.getFile' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getFiles( @@ -518,16 +518,16 @@ export class AppRockskyGoogledriveNS { AppRockskyGoogledriveGetFiles.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.googledrive.getFiles"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.googledrive.getFiles' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } } export class AppRockskyLikeNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } dislikeShout( @@ -537,8 +537,8 @@ export class AppRockskyLikeNS { AppRockskyLikeDislikeShout.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.like.dislikeShout"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.like.dislikeShout' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } dislikeSong( @@ -548,8 +548,8 @@ export class AppRockskyLikeNS { AppRockskyLikeDislikeSong.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.like.dislikeSong"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.like.dislikeSong' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } likeShout( @@ -559,8 +559,8 @@ export class AppRockskyLikeNS { AppRockskyLikeLikeShout.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.like.likeShout"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.like.likeShout' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } likeSong( @@ -570,16 +570,16 @@ export class AppRockskyLikeNS { AppRockskyLikeLikeSong.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.like.likeSong"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.like.likeSong' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } } export class AppRockskyPlayerNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } addDirectoryToQueue( @@ -589,8 +589,8 @@ export class AppRockskyPlayerNS { AppRockskyPlayerAddDirectoryToQueue.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.player.addDirectoryToQueue"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.player.addDirectoryToQueue' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } addItemsToQueue( @@ -600,8 +600,8 @@ export class AppRockskyPlayerNS { AppRockskyPlayerAddItemsToQueue.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.player.addItemsToQueue"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.player.addItemsToQueue' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getCurrentlyPlaying( @@ -611,8 +611,8 @@ export class AppRockskyPlayerNS { AppRockskyPlayerGetCurrentlyPlaying.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.player.getCurrentlyPlaying"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.player.getCurrentlyPlaying' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getPlaybackQueue( @@ -622,8 +622,8 @@ export class AppRockskyPlayerNS { AppRockskyPlayerGetPlaybackQueue.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.player.getPlaybackQueue"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.player.getPlaybackQueue' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } next( @@ -633,8 +633,8 @@ export class AppRockskyPlayerNS { AppRockskyPlayerNext.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.player.next"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.player.next' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } pause( @@ -644,8 +644,8 @@ export class AppRockskyPlayerNS { AppRockskyPlayerPause.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.player.pause"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.player.pause' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } playDirectory( @@ -655,8 +655,8 @@ export class AppRockskyPlayerNS { AppRockskyPlayerPlayDirectory.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.player.playDirectory"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.player.playDirectory' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } playFile( @@ -666,8 +666,8 @@ export class AppRockskyPlayerNS { AppRockskyPlayerPlayFile.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.player.playFile"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.player.playFile' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } play( @@ -677,8 +677,8 @@ export class AppRockskyPlayerNS { AppRockskyPlayerPlay.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.player.play"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.player.play' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } previous( @@ -688,8 +688,8 @@ export class AppRockskyPlayerNS { AppRockskyPlayerPrevious.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.player.previous"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.player.previous' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } seek( @@ -699,16 +699,16 @@ export class AppRockskyPlayerNS { AppRockskyPlayerSeek.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.player.seek"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.player.seek' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } } export class AppRockskyPlaylistNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } createPlaylist( @@ -718,8 +718,8 @@ export class AppRockskyPlaylistNS { AppRockskyPlaylistCreatePlaylist.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.playlist.createPlaylist"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.playlist.createPlaylist' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getPlaylist( @@ -729,8 +729,8 @@ export class AppRockskyPlaylistNS { AppRockskyPlaylistGetPlaylist.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.playlist.getPlaylist"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.playlist.getPlaylist' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getPlaylists( @@ -740,8 +740,8 @@ export class AppRockskyPlaylistNS { AppRockskyPlaylistGetPlaylists.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.playlist.getPlaylists"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.playlist.getPlaylists' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } insertDirectory( @@ -751,8 +751,8 @@ export class AppRockskyPlaylistNS { AppRockskyPlaylistInsertDirectory.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.playlist.insertDirectory"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.playlist.insertDirectory' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } insertFiles( @@ -762,8 +762,8 @@ export class AppRockskyPlaylistNS { AppRockskyPlaylistInsertFiles.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.playlist.insertFiles"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.playlist.insertFiles' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } removePlaylist( @@ -773,8 +773,8 @@ export class AppRockskyPlaylistNS { AppRockskyPlaylistRemovePlaylist.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.playlist.removePlaylist"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.playlist.removePlaylist' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } removeTrack( @@ -784,8 +784,8 @@ export class AppRockskyPlaylistNS { AppRockskyPlaylistRemoveTrack.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.playlist.removeTrack"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.playlist.removeTrack' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } startPlaylist( @@ -795,16 +795,16 @@ export class AppRockskyPlaylistNS { AppRockskyPlaylistStartPlaylist.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.playlist.startPlaylist"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.playlist.startPlaylist' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } } export class AppRockskyScrobbleNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } createScrobble( @@ -814,8 +814,8 @@ export class AppRockskyScrobbleNS { AppRockskyScrobbleCreateScrobble.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.scrobble.createScrobble"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.scrobble.createScrobble' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getScrobble( @@ -825,8 +825,8 @@ export class AppRockskyScrobbleNS { AppRockskyScrobbleGetScrobble.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.scrobble.getScrobble"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.scrobble.getScrobble' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getScrobbles( @@ -836,16 +836,16 @@ export class AppRockskyScrobbleNS { AppRockskyScrobbleGetScrobbles.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.scrobble.getScrobbles"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.scrobble.getScrobbles' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } } export class AppRockskyShoutNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } createShout( @@ -855,8 +855,8 @@ export class AppRockskyShoutNS { AppRockskyShoutCreateShout.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.shout.createShout"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.shout.createShout' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getAlbumShouts( @@ -866,8 +866,8 @@ export class AppRockskyShoutNS { AppRockskyShoutGetAlbumShouts.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.shout.getAlbumShouts"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.shout.getAlbumShouts' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getArtistShouts( @@ -877,8 +877,8 @@ export class AppRockskyShoutNS { AppRockskyShoutGetArtistShouts.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.shout.getArtistShouts"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.shout.getArtistShouts' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getProfileShouts( @@ -888,8 +888,8 @@ export class AppRockskyShoutNS { AppRockskyShoutGetProfileShouts.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.shout.getProfileShouts"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.shout.getProfileShouts' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getShoutReplies( @@ -899,8 +899,8 @@ export class AppRockskyShoutNS { AppRockskyShoutGetShoutReplies.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.shout.getShoutReplies"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.shout.getShoutReplies' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getTrackShouts( @@ -910,8 +910,8 @@ export class AppRockskyShoutNS { AppRockskyShoutGetTrackShouts.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.shout.getTrackShouts"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.shout.getTrackShouts' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } removeShout( @@ -921,8 +921,8 @@ export class AppRockskyShoutNS { AppRockskyShoutRemoveShout.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.shout.removeShout"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.shout.removeShout' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } replyShout( @@ -932,8 +932,8 @@ export class AppRockskyShoutNS { AppRockskyShoutReplyShout.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.shout.replyShout"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.shout.replyShout' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } reportShout( @@ -943,16 +943,16 @@ export class AppRockskyShoutNS { AppRockskyShoutReportShout.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.shout.reportShout"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.shout.reportShout' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } } export class AppRockskySongNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } createSong( @@ -962,8 +962,8 @@ export class AppRockskySongNS { AppRockskySongCreateSong.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.song.createSong"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.song.createSong' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getSong( @@ -973,8 +973,8 @@ export class AppRockskySongNS { AppRockskySongGetSong.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.song.getSong"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.song.getSong' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } getSongs( @@ -984,16 +984,16 @@ export class AppRockskySongNS { AppRockskySongGetSongs.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.song.getSongs"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.song.getSongs' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } } export class AppRockskySpotifyNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } getCurrentlyPlaying( @@ -1003,8 +1003,8 @@ export class AppRockskySpotifyNS { AppRockskySpotifyGetCurrentlyPlaying.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.spotify.getCurrentlyPlaying"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.spotify.getCurrentlyPlaying' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } next( @@ -1014,8 +1014,8 @@ export class AppRockskySpotifyNS { AppRockskySpotifyNext.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.spotify.next"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.spotify.next' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } pause( @@ -1025,8 +1025,8 @@ export class AppRockskySpotifyNS { AppRockskySpotifyPause.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.spotify.pause"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.spotify.pause' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } play( @@ -1036,8 +1036,8 @@ export class AppRockskySpotifyNS { AppRockskySpotifyPlay.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.spotify.play"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.spotify.play' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } previous( @@ -1047,8 +1047,8 @@ export class AppRockskySpotifyNS { AppRockskySpotifyPrevious.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.spotify.previous"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.spotify.previous' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } seek( @@ -1058,16 +1058,16 @@ export class AppRockskySpotifyNS { AppRockskySpotifySeek.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.spotify.seek"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.spotify.seek' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } } export class AppRockskyStatsNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } getStats( @@ -1077,79 +1077,79 @@ export class AppRockskyStatsNS { AppRockskyStatsGetStats.HandlerReqCtx> >, ) { - const nsid = "app.rocksky.stats.getStats"; // @ts-ignore - return this._server.xrpc.method(nsid, cfg); + const nsid = 'app.rocksky.stats.getStats' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) } } export class AppBskyNS { - _server: Server; - actor: AppBskyActorNS; + _server: Server + actor: AppBskyActorNS constructor(server: Server) { - this._server = server; - this.actor = new AppBskyActorNS(server); + this._server = server + this.actor = new AppBskyActorNS(server) } } export class AppBskyActorNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } } export class ComNS { - _server: Server; - atproto: ComAtprotoNS; + _server: Server + atproto: ComAtprotoNS constructor(server: Server) { - this._server = server; - this.atproto = new ComAtprotoNS(server); + this._server = server + this.atproto = new ComAtprotoNS(server) } } export class ComAtprotoNS { - _server: Server; - repo: ComAtprotoRepoNS; + _server: Server + repo: ComAtprotoRepoNS constructor(server: Server) { - this._server = server; - this.repo = new ComAtprotoRepoNS(server); + this._server = server + this.repo = new ComAtprotoRepoNS(server) } } export class ComAtprotoRepoNS { - _server: Server; + _server: Server constructor(server: Server) { - this._server = server; + this._server = server } } type SharedRateLimitOpts = { - name: string; - calcKey?: (ctx: T) => string | null; - calcPoints?: (ctx: T) => number; -}; + name: string + calcKey?: (ctx: T) => string | null + calcPoints?: (ctx: T) => number +} type RouteRateLimitOpts = { - durationMs: number; - points: number; - calcKey?: (ctx: T) => string | null; - calcPoints?: (ctx: T) => number; -}; -type HandlerOpts = { blobLimit?: number }; -type HandlerRateLimitOpts = SharedRateLimitOpts | RouteRateLimitOpts; + durationMs: number + points: number + calcKey?: (ctx: T) => string | null + calcPoints?: (ctx: T) => number +} +type HandlerOpts = { blobLimit?: number } +type HandlerRateLimitOpts = SharedRateLimitOpts | RouteRateLimitOpts type ConfigOf = | Handler | { - auth?: Auth; - opts?: HandlerOpts; - rateLimit?: HandlerRateLimitOpts | HandlerRateLimitOpts[]; - handler: Handler; - }; + auth?: Auth + opts?: HandlerOpts + rateLimit?: HandlerRateLimitOpts | HandlerRateLimitOpts[] + handler: Handler + } type ExtractAuth = Extract< Awaited>, { credentials: unknown } ->; +> diff --git a/apps/api/src/lexicon/lexicons.ts b/apps/api/src/lexicon/lexicons.ts index 1c24889d..d117ccfd 100644 --- a/apps/api/src/lexicon/lexicons.ts +++ b/apps/api/src/lexicon/lexicons.ts @@ -1,82 +1,82 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type LexiconDoc, Lexicons } from "@atproto/lexicon"; +import { type LexiconDoc, Lexicons } from '@atproto/lexicon' export const schemaDict = { AppRockskyActorDefs: { lexicon: 1, - id: "app.rocksky.actor.defs", + id: 'app.rocksky.actor.defs', defs: { profileViewDetailed: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the actor.", + type: 'string', + description: 'The unique identifier of the actor.', }, did: { - type: "string", - description: "The DID of the actor.", + type: 'string', + description: 'The DID of the actor.', }, handle: { - type: "string", - description: "The handle of the actor.", + type: 'string', + description: 'The handle of the actor.', }, displayName: { - type: "string", - description: "The display name of the actor.", + type: 'string', + description: 'The display name of the actor.', }, avatar: { - type: "string", + type: 'string', description: "The URL of the actor's avatar image.", - format: "uri", + format: 'uri', }, createdAt: { - type: "string", - description: "The date and time when the actor was created.", - format: "datetime", + type: 'string', + description: 'The date and time when the actor was created.', + format: 'datetime', }, updatedAt: { - type: "string", - description: "The date and time when the actor was last updated.", - format: "datetime", + type: 'string', + description: 'The date and time when the actor was last updated.', + format: 'datetime', }, }, }, profileViewBasic: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the actor.", + type: 'string', + description: 'The unique identifier of the actor.', }, did: { - type: "string", - description: "The DID of the actor.", + type: 'string', + description: 'The DID of the actor.', }, handle: { - type: "string", - description: "The handle of the actor.", + type: 'string', + description: 'The handle of the actor.', }, displayName: { - type: "string", - description: "The display name of the actor.", + type: 'string', + description: 'The display name of the actor.', }, avatar: { - type: "string", + type: 'string', description: "The URL of the actor's avatar image.", - format: "uri", + format: 'uri', }, createdAt: { - type: "string", - description: "The date and time when the actor was created.", - format: "datetime", + type: 'string', + description: 'The date and time when the actor was created.', + format: 'datetime', }, updatedAt: { - type: "string", - description: "The date and time when the actor was last updated.", - format: "datetime", + type: 'string', + description: 'The date and time when the actor was last updated.', + format: 'datetime', }, }, }, @@ -84,42 +84,42 @@ export const schemaDict = { }, AppRockskyActorGetActorAlbums: { lexicon: 1, - id: "app.rocksky.actor.getActorAlbums", + id: 'app.rocksky.actor.getActorAlbums', defs: { main: { - type: "query", - description: "Get albums for an actor", + type: 'query', + description: 'Get albums for an actor', parameters: { - type: "params", - required: ["did"], + type: 'params', + required: ['did'], properties: { did: { - type: "string", - description: "The DID or handle of the actor", - format: "at-identifier", + type: 'string', + description: 'The DID or handle of the actor', + format: 'at-identifier', }, limit: { - type: "integer", - description: "The maximum number of albums to return", + type: 'integer', + description: 'The maximum number of albums to return', minimum: 1, }, offset: { - type: "integer", - description: "The offset for pagination", + type: 'integer', + description: 'The offset for pagination', minimum: 0, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { albums: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.album.defs#albumViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.album.defs#albumViewBasic', }, }, }, @@ -130,42 +130,42 @@ export const schemaDict = { }, AppRockskyActorGetActorArtists: { lexicon: 1, - id: "app.rocksky.actor.getActorArtists", + id: 'app.rocksky.actor.getActorArtists', defs: { main: { - type: "query", - description: "Get artists for an actor", + type: 'query', + description: 'Get artists for an actor', parameters: { - type: "params", - required: ["did"], + type: 'params', + required: ['did'], properties: { did: { - type: "string", - description: "The DID or handle of the actor", - format: "at-identifier", + type: 'string', + description: 'The DID or handle of the actor', + format: 'at-identifier', }, limit: { - type: "integer", - description: "The maximum number of albums to return", + type: 'integer', + description: 'The maximum number of albums to return', minimum: 1, }, offset: { - type: "integer", - description: "The offset for pagination", + type: 'integer', + description: 'The offset for pagination', minimum: 0, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { artists: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.artist.defs#artistViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.artist.defs#artistViewBasic', }, }, }, @@ -176,42 +176,42 @@ export const schemaDict = { }, AppRockskyActorGetActorLovedSongs: { lexicon: 1, - id: "app.rocksky.actor.getActorLovedSongs", + id: 'app.rocksky.actor.getActorLovedSongs', defs: { main: { - type: "query", - description: "Get loved songs for an actor", + type: 'query', + description: 'Get loved songs for an actor', parameters: { - type: "params", - required: ["did"], + type: 'params', + required: ['did'], properties: { did: { - type: "string", - description: "The DID or handle of the actor", - format: "at-identifier", + type: 'string', + description: 'The DID or handle of the actor', + format: 'at-identifier', }, limit: { - type: "integer", - description: "The maximum number of albums to return", + type: 'integer', + description: 'The maximum number of albums to return', minimum: 1, }, offset: { - type: "integer", - description: "The offset for pagination", + type: 'integer', + description: 'The offset for pagination', minimum: 0, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { tracks: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.song.defs#songViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.song.defs#songViewBasic', }, }, }, @@ -222,42 +222,42 @@ export const schemaDict = { }, AppRockskyActorGetActorPlaylists: { lexicon: 1, - id: "app.rocksky.actor.getActorPlaylists", + id: 'app.rocksky.actor.getActorPlaylists', defs: { main: { - type: "query", - description: "Get playlists for an actor", + type: 'query', + description: 'Get playlists for an actor', parameters: { - type: "params", - required: ["did"], + type: 'params', + required: ['did'], properties: { did: { - type: "string", - description: "The DID or handle of the actor", - format: "at-identifier", + type: 'string', + description: 'The DID or handle of the actor', + format: 'at-identifier', }, limit: { - type: "integer", - description: "The maximum number of albums to return", + type: 'integer', + description: 'The maximum number of albums to return', minimum: 1, }, offset: { - type: "integer", - description: "The offset for pagination", + type: 'integer', + description: 'The offset for pagination', minimum: 0, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { playlists: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.playlist.defs#playlistViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.playlist.defs#playlistViewBasic', }, }, }, @@ -268,42 +268,42 @@ export const schemaDict = { }, AppRockskyActorGetActorScrobbles: { lexicon: 1, - id: "app.rocksky.actor.getActorScrobbles", + id: 'app.rocksky.actor.getActorScrobbles', defs: { main: { - type: "query", - description: "Get scrobbles for an actor", + type: 'query', + description: 'Get scrobbles for an actor', parameters: { - type: "params", - required: ["did"], + type: 'params', + required: ['did'], properties: { did: { - type: "string", - description: "The DID or handle of the actor", - format: "at-identifier", + type: 'string', + description: 'The DID or handle of the actor', + format: 'at-identifier', }, limit: { - type: "integer", - description: "The maximum number of albums to return", + type: 'integer', + description: 'The maximum number of albums to return', minimum: 1, }, offset: { - type: "integer", - description: "The offset for pagination", + type: 'integer', + description: 'The offset for pagination', minimum: 0, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { scrobbles: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.scrobble.defs#scrobbleViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.scrobble.defs#scrobbleViewBasic', }, }, }, @@ -314,42 +314,42 @@ export const schemaDict = { }, AppRockskyActorGetActorSongs: { lexicon: 1, - id: "app.rocksky.actor.getActorSongs", + id: 'app.rocksky.actor.getActorSongs', defs: { main: { - type: "query", - description: "Get songs for an actor", + type: 'query', + description: 'Get songs for an actor', parameters: { - type: "params", - required: ["did"], + type: 'params', + required: ['did'], properties: { did: { - type: "string", - description: "The DID or handle of the actor", - format: "at-identifier", + type: 'string', + description: 'The DID or handle of the actor', + format: 'at-identifier', }, limit: { - type: "integer", - description: "The maximum number of albums to return", + type: 'integer', + description: 'The maximum number of albums to return', minimum: 1, }, offset: { - type: "integer", - description: "The offset for pagination", + type: 'integer', + description: 'The offset for pagination', minimum: 0, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { songs: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.song.defs#songViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.song.defs#songViewBasic', }, }, }, @@ -360,26 +360,26 @@ export const schemaDict = { }, AppRockskyActorGetProfile: { lexicon: 1, - id: "app.rocksky.actor.getProfile", + id: 'app.rocksky.actor.getProfile', defs: { main: { - type: "query", - description: "Get the profile of an actor", + type: 'query', + description: 'Get the profile of an actor', parameters: { - type: "params", + type: 'params', properties: { did: { - type: "string", - description: "The DID or handle of the actor", - format: "at-identifier", + type: 'string', + description: 'The DID or handle of the actor', + format: 'at-identifier', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.actor.defs#profileViewDetailed", + type: 'ref', + ref: 'lex:app.rocksky.actor.defs#profileViewDetailed', }, }, }, @@ -387,53 +387,53 @@ export const schemaDict = { }, AppBskyActorProfile: { lexicon: 1, - id: "app.bsky.actor.profile", + id: 'app.bsky.actor.profile', defs: { main: { - type: "record", - description: "A declaration of a Bluesky account profile.", - key: "literal:self", + type: 'record', + description: 'A declaration of a Bluesky account profile.', + key: 'literal:self', record: { - type: "object", + type: 'object', properties: { displayName: { - type: "string", + type: 'string', maxGraphemes: 64, maxLength: 640, }, description: { - type: "string", - description: "Free-form profile description text.", + type: 'string', + description: 'Free-form profile description text.', maxGraphemes: 256, maxLength: 2560, }, avatar: { - type: "blob", + type: 'blob', description: "Small image to be displayed next to posts from account. AKA, 'profile picture'", - accept: ["image/png", "image/jpeg"], + accept: ['image/png', 'image/jpeg'], maxSize: 1000000, }, banner: { - type: "blob", + type: 'blob', description: - "Larger horizontal image to display behind profile view.", - accept: ["image/png", "image/jpeg"], + 'Larger horizontal image to display behind profile view.', + accept: ['image/png', 'image/jpeg'], maxSize: 10000000, }, labels: { - type: "union", + type: 'union', description: - "Self-label values, specific to the Bluesky application, on the overall account.", - refs: ["lex:com.atproto.label.defs#selfLabels"], + 'Self-label values, specific to the Bluesky application, on the overall account.', + refs: ['lex:com.atproto.label.defs#selfLabels'], }, joinedViaStarterPack: { - type: "ref", - ref: "lex:com.atproto.repo.strongRef", + type: 'ref', + ref: 'lex:com.atproto.repo.strongRef', }, createdAt: { - type: "string", - format: "datetime", + type: 'string', + format: 'datetime', }, }, }, @@ -442,85 +442,85 @@ export const schemaDict = { }, AppRockskyAlbum: { lexicon: 1, - id: "app.rocksky.album", + id: 'app.rocksky.album', defs: { main: { - type: "record", - description: "A declaration of an album.", - key: "tid", + type: 'record', + description: 'A declaration of an album.', + key: 'tid', record: { - type: "object", - required: ["title", "artist", "createdAt"], + type: 'object', + required: ['title', 'artist', 'createdAt'], properties: { title: { - type: "string", - description: "The title of the album.", + type: 'string', + description: 'The title of the album.', minLength: 1, maxLength: 512, }, artist: { - type: "string", - description: "The artist of the album.", + type: 'string', + description: 'The artist of the album.', minLength: 1, maxLength: 256, }, duration: { - type: "integer", - description: "The duration of the album in seconds.", + type: 'integer', + description: 'The duration of the album in seconds.', }, releaseDate: { - type: "string", - description: "The release date of the album.", - format: "datetime", + type: 'string', + description: 'The release date of the album.', + format: 'datetime', }, year: { - type: "integer", - description: "The year the album was released.", + type: 'integer', + description: 'The year the album was released.', }, genre: { - type: "string", - description: "The genre of the album.", + type: 'string', + description: 'The genre of the album.', maxLength: 256, }, albumArt: { - type: "blob", - description: "The album art of the album.", - accept: ["image/png", "image/jpeg"], + type: 'blob', + description: 'The album art of the album.', + accept: ['image/png', 'image/jpeg'], maxSize: 2000000, }, tags: { - type: "array", - description: "The tags of the album.", + type: 'array', + description: 'The tags of the album.', items: { - type: "string", + type: 'string', minLength: 1, maxLength: 256, }, }, youtubeLink: { - type: "string", - description: "The YouTube link of the album.", - format: "uri", + type: 'string', + description: 'The YouTube link of the album.', + format: 'uri', }, spotifyLink: { - type: "string", - description: "The Spotify link of the album.", - format: "uri", + type: 'string', + description: 'The Spotify link of the album.', + format: 'uri', }, tidalLink: { - type: "string", - description: "The tidal link of the album.", - format: "uri", + type: 'string', + description: 'The tidal link of the album.', + format: 'uri', }, appleMusicLink: { - type: "string", - description: "The Apple Music link of the album.", - format: "uri", + type: 'string', + description: 'The Apple Music link of the album.', + format: 'uri', }, createdAt: { - type: "string", - description: "The date and time when the album was created.", - format: "datetime", + type: 'string', + description: 'The date and time when the album was created.', + format: 'datetime', }, }, }, @@ -529,121 +529,121 @@ export const schemaDict = { }, AppRockskyAlbumDefs: { lexicon: 1, - id: "app.rocksky.album.defs", + id: 'app.rocksky.album.defs', defs: { albumViewBasic: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the album.", + type: 'string', + description: 'The unique identifier of the album.', }, uri: { - type: "string", - description: "The URI of the album.", - format: "at-uri", + type: 'string', + description: 'The URI of the album.', + format: 'at-uri', }, title: { - type: "string", - description: "The title of the album.", + type: 'string', + description: 'The title of the album.', }, artist: { - type: "string", - description: "The artist of the album.", + type: 'string', + description: 'The artist of the album.', }, artistUri: { - type: "string", + type: 'string', description: "The URI of the album's artist.", - format: "at-uri", + format: 'at-uri', }, year: { - type: "integer", - description: "The year the album was released.", + type: 'integer', + description: 'The year the album was released.', }, albumArt: { - type: "string", - description: "The URL of the album art image.", - format: "uri", + type: 'string', + description: 'The URL of the album art image.', + format: 'uri', }, releaseDate: { - type: "string", - description: "The release date of the album.", + type: 'string', + description: 'The release date of the album.', }, sha256: { - type: "string", - description: "The SHA256 hash of the album.", + type: 'string', + description: 'The SHA256 hash of the album.', }, playCount: { - type: "integer", - description: "The number of times the album has been played.", + type: 'integer', + description: 'The number of times the album has been played.', minimum: 0, }, uniqueListeners: { - type: "integer", + type: 'integer', description: - "The number of unique listeners who have played the album.", + 'The number of unique listeners who have played the album.', minimum: 0, }, }, }, albumViewDetailed: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the album.", + type: 'string', + description: 'The unique identifier of the album.', }, uri: { - type: "string", - description: "The URI of the album.", - format: "at-uri", + type: 'string', + description: 'The URI of the album.', + format: 'at-uri', }, title: { - type: "string", - description: "The title of the album.", + type: 'string', + description: 'The title of the album.', }, artist: { - type: "string", - description: "The artist of the album.", + type: 'string', + description: 'The artist of the album.', }, artistUri: { - type: "string", + type: 'string', description: "The URI of the album's artist.", - format: "at-uri", + format: 'at-uri', }, year: { - type: "integer", - description: "The year the album was released.", + type: 'integer', + description: 'The year the album was released.', }, albumArt: { - type: "string", - description: "The URL of the album art image.", - format: "uri", + type: 'string', + description: 'The URL of the album art image.', + format: 'uri', }, releaseDate: { - type: "string", - description: "The release date of the album.", + type: 'string', + description: 'The release date of the album.', }, sha256: { - type: "string", - description: "The SHA256 hash of the album.", + type: 'string', + description: 'The SHA256 hash of the album.', }, playCount: { - type: "integer", - description: "The number of times the album has been played.", + type: 'integer', + description: 'The number of times the album has been played.', minimum: 0, }, uniqueListeners: { - type: "integer", + type: 'integer', description: - "The number of unique listeners who have played the album.", + 'The number of unique listeners who have played the album.', minimum: 0, }, tracks: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.song.defs.songViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.song.defs.songViewBasic', }, }, }, @@ -652,27 +652,27 @@ export const schemaDict = { }, AppRockskyAlbumGetAlbum: { lexicon: 1, - id: "app.rocksky.album.getAlbum", + id: 'app.rocksky.album.getAlbum', defs: { main: { - type: "query", - description: "Get detailed album view", + type: 'query', + description: 'Get detailed album view', parameters: { - type: "params", - required: ["uri"], + type: 'params', + required: ['uri'], properties: { uri: { - type: "string", - description: "The URI of the album to retrieve.", - format: "at-uri", + type: 'string', + description: 'The URI of the album to retrieve.', + format: 'at-uri', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.album.defs#albumViewDetailed", + type: 'ref', + ref: 'lex:app.rocksky.album.defs#albumViewDetailed', }, }, }, @@ -680,36 +680,36 @@ export const schemaDict = { }, AppRockskyAlbumGetAlbums: { lexicon: 1, - id: "app.rocksky.album.getAlbums", + id: 'app.rocksky.album.getAlbums', defs: { main: { - type: "query", - description: "Get albums", + type: 'query', + description: 'Get albums', parameters: { - type: "params", + type: 'params', properties: { limit: { - type: "integer", - description: "The maximum number of albums to return", + type: 'integer', + description: 'The maximum number of albums to return', minimum: 1, }, offset: { - type: "integer", - description: "The offset for pagination", + type: 'integer', + description: 'The offset for pagination', minimum: 0, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { albums: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.album.defs#albumViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.album.defs#albumViewBasic', }, }, }, @@ -720,32 +720,32 @@ export const schemaDict = { }, AppRockskyAlbumGetAlbumTracks: { lexicon: 1, - id: "app.rocksky.album.getAlbumTracks", + id: 'app.rocksky.album.getAlbumTracks', defs: { main: { - type: "query", - description: "Get tracks for an album", + type: 'query', + description: 'Get tracks for an album', parameters: { - type: "params", - required: ["uri"], + type: 'params', + required: ['uri'], properties: { uri: { - type: "string", - description: "The URI of the album to retrieve tracks from", - format: "at-uri", + type: 'string', + description: 'The URI of the album to retrieve tracks from', + format: 'at-uri', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { tracks: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.song.defs#songViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.song.defs#songViewBasic', }, }, }, @@ -756,33 +756,33 @@ export const schemaDict = { }, AppRockskyApikeyCreateApikey: { lexicon: 1, - id: "app.rocksky.apikey.createApikey", + id: 'app.rocksky.apikey.createApikey', defs: { main: { - type: "procedure", - description: "Create a new API key for the authenticated user", + type: 'procedure', + description: 'Create a new API key for the authenticated user', input: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", - required: ["name"], + type: 'object', + required: ['name'], properties: { name: { - type: "string", - description: "The name of the API key.", + type: 'string', + description: 'The name of the API key.', }, description: { - type: "string", - description: "A description for the API key.", + type: 'string', + description: 'A description for the API key.', }, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.apikey.defs#apiKey", + type: 'ref', + ref: 'lex:app.rocksky.apikey.defs#apiKey', }, }, }, @@ -790,27 +790,27 @@ export const schemaDict = { }, AppRockskyApikeyDefs: { lexicon: 1, - id: "app.rocksky.apikey.defs", + id: 'app.rocksky.apikey.defs', defs: { apiKeyView: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the API key.", + type: 'string', + description: 'The unique identifier of the API key.', }, name: { - type: "string", - description: "The name of the API key.", + type: 'string', + description: 'The name of the API key.', }, description: { - type: "string", - description: "A description for the API key.", + type: 'string', + description: 'A description for the API key.', }, createdAt: { - type: "string", - description: "The date and time when the API key was created.", - format: "datetime", + type: 'string', + description: 'The date and time when the API key was created.', + format: 'datetime', }, }, }, @@ -818,40 +818,40 @@ export const schemaDict = { }, AppRockskyApikeysDefs: { lexicon: 1, - id: "app.rocksky.apikeys.defs", + id: 'app.rocksky.apikeys.defs', defs: {}, }, AppRockskyApikeyGetApikeys: { lexicon: 1, - id: "app.rocksky.apikey.getApikeys", + id: 'app.rocksky.apikey.getApikeys', defs: { main: { - type: "query", - description: "Get a list of API keys for the authenticated user", + type: 'query', + description: 'Get a list of API keys for the authenticated user', parameters: { - type: "params", + type: 'params', properties: { offset: { - type: "integer", + type: 'integer', description: - "The number of API keys to skip before starting to collect the result set.", + 'The number of API keys to skip before starting to collect the result set.', }, limit: { - type: "integer", - description: "The number of API keys to return per page.", + type: 'integer', + description: 'The number of API keys to return per page.', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { apiKeys: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.apikey.defs#apikeyView", + type: 'ref', + ref: 'lex:app.rocksky.apikey.defs#apikeyView', }, }, }, @@ -862,26 +862,26 @@ export const schemaDict = { }, AppRockskyApikeyRemoveApikey: { lexicon: 1, - id: "app.rocksky.apikey.removeApikey", + id: 'app.rocksky.apikey.removeApikey', defs: { main: { - type: "procedure", - description: "Remove an API key for the authenticated user", + type: 'procedure', + description: 'Remove an API key for the authenticated user', parameters: { - type: "params", - required: ["id"], + type: 'params', + required: ['id'], properties: { id: { - type: "string", - description: "The ID of the API key to remove.", + type: 'string', + description: 'The ID of the API key to remove.', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.apikey.defs#apiKey", + type: 'ref', + ref: 'lex:app.rocksky.apikey.defs#apiKey', }, }, }, @@ -889,37 +889,37 @@ export const schemaDict = { }, AppRockskyApikeyUpdateApikey: { lexicon: 1, - id: "app.rocksky.apikey.updateApikey", + id: 'app.rocksky.apikey.updateApikey', defs: { main: { - type: "procedure", - description: "Update an existing API key for the authenticated user", + type: 'procedure', + description: 'Update an existing API key for the authenticated user', input: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", - required: ["id", "name"], + type: 'object', + required: ['id', 'name'], properties: { id: { - type: "string", - description: "The ID of the API key to update.", + type: 'string', + description: 'The ID of the API key to update.', }, name: { - type: "string", - description: "The new name of the API key.", + type: 'string', + description: 'The new name of the API key.', }, description: { - type: "string", - description: "A new description for the API key.", + type: 'string', + description: 'A new description for the API key.', }, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.apikey.defs#apiKey", + type: 'ref', + ref: 'lex:app.rocksky.apikey.defs#apiKey', }, }, }, @@ -927,61 +927,61 @@ export const schemaDict = { }, AppRockskyArtist: { lexicon: 1, - id: "app.rocksky.artist", + id: 'app.rocksky.artist', defs: { main: { - type: "record", - description: "A declaration of an artist.", - key: "tid", + type: 'record', + description: 'A declaration of an artist.', + key: 'tid', record: { - type: "object", - required: ["name", "createdAt"], + type: 'object', + required: ['name', 'createdAt'], properties: { name: { - type: "string", - description: "The name of the artist.", + type: 'string', + description: 'The name of the artist.', minLength: 1, maxLength: 512, }, bio: { - type: "string", - description: "The biography of the artist.", + type: 'string', + description: 'The biography of the artist.', maxLength: 1000, }, picture: { - type: "blob", - description: "The picture of the artist.", - accept: ["image/png", "image/jpeg"], + type: 'blob', + description: 'The picture of the artist.', + accept: ['image/png', 'image/jpeg'], maxSize: 2000000, }, tags: { - type: "array", - description: "The tags of the artist.", + type: 'array', + description: 'The tags of the artist.', items: { - type: "string", + type: 'string', minLength: 1, maxLength: 256, }, }, born: { - type: "string", - description: "The birth date of the artist.", - format: "datetime", + type: 'string', + description: 'The birth date of the artist.', + format: 'datetime', }, died: { - type: "string", - description: "The death date of the artist.", - format: "datetime", + type: 'string', + description: 'The death date of the artist.', + format: 'datetime', }, bornIn: { - type: "string", - description: "The birth place of the artist.", + type: 'string', + description: 'The birth place of the artist.', maxLength: 256, }, createdAt: { - type: "string", - description: "The date when the artist was created.", - format: "datetime", + type: 'string', + description: 'The date when the artist was created.', + format: 'datetime', }, }, }, @@ -990,78 +990,78 @@ export const schemaDict = { }, AppRockskyArtistDefs: { lexicon: 1, - id: "app.rocksky.artist.defs", + id: 'app.rocksky.artist.defs', defs: { artistViewBasic: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the artist.", + type: 'string', + description: 'The unique identifier of the artist.', }, uri: { - type: "string", - description: "The URI of the artist.", - format: "at-uri", + type: 'string', + description: 'The URI of the artist.', + format: 'at-uri', }, name: { - type: "string", - description: "The name of the artist.", + type: 'string', + description: 'The name of the artist.', }, picture: { - type: "string", - description: "The picture of the artist.", + type: 'string', + description: 'The picture of the artist.', }, sha256: { - type: "string", - description: "The SHA256 hash of the artist.", + type: 'string', + description: 'The SHA256 hash of the artist.', }, playCount: { - type: "integer", - description: "The number of times the artist has been played.", + type: 'integer', + description: 'The number of times the artist has been played.', minimum: 0, }, uniqueListeners: { - type: "integer", + type: 'integer', description: - "The number of unique listeners who have played the artist.", + 'The number of unique listeners who have played the artist.', minimum: 0, }, }, }, artistViewDetailed: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the artist.", + type: 'string', + description: 'The unique identifier of the artist.', }, uri: { - type: "string", - description: "The URI of the artist.", - format: "at-uri", + type: 'string', + description: 'The URI of the artist.', + format: 'at-uri', }, name: { - type: "string", - description: "The name of the artist.", + type: 'string', + description: 'The name of the artist.', }, picture: { - type: "string", - description: "The picture of the artist.", + type: 'string', + description: 'The picture of the artist.', }, sha256: { - type: "string", - description: "The SHA256 hash of the artist.", + type: 'string', + description: 'The SHA256 hash of the artist.', }, playCount: { - type: "integer", - description: "The number of times the artist has been played.", + type: 'integer', + description: 'The number of times the artist has been played.', minimum: 0, }, uniqueListeners: { - type: "integer", + type: 'integer', description: - "The number of unique listeners who have played the artist.", + 'The number of unique listeners who have played the artist.', minimum: 0, }, }, @@ -1070,32 +1070,32 @@ export const schemaDict = { }, AppRockskyArtistGetArtistAlbums: { lexicon: 1, - id: "app.rocksky.artist.getArtistAlbums", + id: 'app.rocksky.artist.getArtistAlbums', defs: { main: { - type: "query", + type: 'query', description: "Get artist's albums", parameters: { - type: "params", - required: ["uri"], + type: 'params', + required: ['uri'], properties: { uri: { - type: "string", - description: "The URI of the artist to retrieve albums from", - format: "at-uri", + type: 'string', + description: 'The URI of the artist to retrieve albums from', + format: 'at-uri', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { albums: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.album.defs#albumViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.album.defs#albumViewBasic', }, }, }, @@ -1106,27 +1106,27 @@ export const schemaDict = { }, AppRockskyArtistGetArtist: { lexicon: 1, - id: "app.rocksky.artist.getArtist", + id: 'app.rocksky.artist.getArtist', defs: { main: { - type: "query", - description: "Get artist details", + type: 'query', + description: 'Get artist details', parameters: { - type: "params", - required: ["uri"], + type: 'params', + required: ['uri'], properties: { uri: { - type: "string", - description: "The URI of the artist to retrieve details from", - format: "at-uri", + type: 'string', + description: 'The URI of the artist to retrieve details from', + format: 'at-uri', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.artist.defs#artistViewDetailed", + type: 'ref', + ref: 'lex:app.rocksky.artist.defs#artistViewDetailed', }, }, }, @@ -1134,36 +1134,36 @@ export const schemaDict = { }, AppRockskyArtistGetArtists: { lexicon: 1, - id: "app.rocksky.artist.getArtists", + id: 'app.rocksky.artist.getArtists', defs: { main: { - type: "query", - description: "Get artists", + type: 'query', + description: 'Get artists', parameters: { - type: "params", + type: 'params', properties: { limit: { - type: "integer", - description: "The maximum number of artists to return", + type: 'integer', + description: 'The maximum number of artists to return', minimum: 1, }, offset: { - type: "integer", - description: "The offset for pagination", + type: 'integer', + description: 'The offset for pagination', minimum: 0, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { artists: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.artist.defs#artistViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.artist.defs#artistViewBasic', }, }, }, @@ -1174,41 +1174,41 @@ export const schemaDict = { }, AppRockskyArtistGetArtistTracks: { lexicon: 1, - id: "app.rocksky.artist.getArtistTracks", + id: 'app.rocksky.artist.getArtistTracks', defs: { main: { - type: "query", + type: 'query', description: "Get artist's tracks", parameters: { - type: "params", + type: 'params', properties: { uri: { - type: "string", - description: "The URI of the artist to retrieve albums from", - format: "at-uri", + type: 'string', + description: 'The URI of the artist to retrieve albums from', + format: 'at-uri', }, limit: { - type: "integer", - description: "The maximum number of tracks to return", + type: 'integer', + description: 'The maximum number of tracks to return', minimum: 1, }, offset: { - type: "integer", - description: "The offset for pagination", + type: 'integer', + description: 'The offset for pagination', minimum: 0, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { tracks: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.song.defs#songViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.song.defs#songViewBasic', }, }, }, @@ -1219,31 +1219,31 @@ export const schemaDict = { }, AppRockskyChartsDefs: { lexicon: 1, - id: "app.rocksky.charts.defs", + id: 'app.rocksky.charts.defs', defs: { chartsView: { - type: "object", + type: 'object', properties: { scrobbles: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.charts.defs#scrobbleViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.charts.defs#scrobbleViewBasic', }, }, }, }, scrobbleViewBasic: { - type: "object", + type: 'object', properties: { date: { - type: "string", - description: "The date of the scrobble.", - format: "datetime", + type: 'string', + description: 'The date of the scrobble.', + format: 'datetime', }, count: { - type: "integer", - description: "The number of scrobbles on this date.", + type: 'integer', + description: 'The number of scrobbles on this date.', }, }, }, @@ -1251,41 +1251,41 @@ export const schemaDict = { }, AppRockskyChartsGetScrobblesChart: { lexicon: 1, - id: "app.rocksky.charts.getScrobblesChart", + id: 'app.rocksky.charts.getScrobblesChart', defs: { main: { - type: "query", - description: "Get the scrobbles chart", + type: 'query', + description: 'Get the scrobbles chart', parameters: { - type: "params", + type: 'params', properties: { did: { - type: "string", - description: "The DID or handle of the actor", - format: "at-identifier", + type: 'string', + description: 'The DID or handle of the actor', + format: 'at-identifier', }, artisturi: { - type: "string", - description: "The URI of the artist to filter by", - format: "at-uri", + type: 'string', + description: 'The URI of the artist to filter by', + format: 'at-uri', }, albumuri: { - type: "string", - description: "The URI of the album to filter by", - format: "at-uri", + type: 'string', + description: 'The URI of the album to filter by', + format: 'at-uri', }, songuri: { - type: "string", - description: "The URI of the track to filter by", - format: "at-uri", + type: 'string', + description: 'The URI of the track to filter by', + format: 'at-uri', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.charts.defs#chartsView", + type: 'ref', + ref: 'lex:app.rocksky.charts.defs#chartsView', }, }, }, @@ -1293,61 +1293,61 @@ export const schemaDict = { }, AppRockskyDropboxDefs: { lexicon: 1, - id: "app.rocksky.dropbox.defs", + id: 'app.rocksky.dropbox.defs', defs: { fileView: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the file.", + type: 'string', + description: 'The unique identifier of the file.', }, name: { - type: "string", - description: "The name of the file.", + type: 'string', + description: 'The name of the file.', }, pathLower: { - type: "string", - description: "The lowercased path of the file.", + type: 'string', + description: 'The lowercased path of the file.', }, pathDisplay: { - type: "string", - description: "The display path of the file.", + type: 'string', + description: 'The display path of the file.', }, clientModified: { - type: "string", + type: 'string', description: - "The last modified date and time of the file on the client.", - format: "datetime", + 'The last modified date and time of the file on the client.', + format: 'datetime', }, serverModified: { - type: "string", + type: 'string', description: - "The last modified date and time of the file on the server.", - format: "datetime", + 'The last modified date and time of the file on the server.', + format: 'datetime', }, }, }, fileListView: { - type: "object", + type: 'object', properties: { files: { - type: "array", - description: "A list of files in the Dropbox.", + type: 'array', + description: 'A list of files in the Dropbox.', items: { - type: "ref", - ref: "lex:app.rocksky.dropbox.defs#fileView", + type: 'ref', + ref: 'lex:app.rocksky.dropbox.defs#fileView', }, }, }, }, temporaryLinkView: { - type: "object", + type: 'object', properties: { link: { - type: "string", - description: "The temporary link to access the file.", - format: "uri", + type: 'string', + description: 'The temporary link to access the file.', + format: 'uri', }, }, }, @@ -1355,48 +1355,48 @@ export const schemaDict = { }, AppRockskyDropboxDownloadFile: { lexicon: 1, - id: "app.rocksky.dropbox.downloadFile", + id: 'app.rocksky.dropbox.downloadFile', defs: { main: { - type: "query", - description: "Download a file from Dropbox by its unique identifier", + type: 'query', + description: 'Download a file from Dropbox by its unique identifier', parameters: { - type: "params", - required: ["fileId"], + type: 'params', + required: ['fileId'], properties: { fileId: { - type: "string", - description: "The unique identifier of the file to download", + type: 'string', + description: 'The unique identifier of the file to download', }, }, }, output: { - encoding: "application/octet-stream", + encoding: 'application/octet-stream', }, }, }, }, AppRockskyDropboxGetFiles: { lexicon: 1, - id: "app.rocksky.dropbox.getFiles", + id: 'app.rocksky.dropbox.getFiles', defs: { main: { - type: "query", - description: "Retrieve a list of files from Dropbox", + type: 'query', + description: 'Retrieve a list of files from Dropbox', parameters: { - type: "params", + type: 'params', properties: { at: { - type: "string", - description: "Path to the Dropbox folder or root directory", + type: 'string', + description: 'Path to the Dropbox folder or root directory', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.dropbox.defs#fileListView", + type: 'ref', + ref: 'lex:app.rocksky.dropbox.defs#fileListView', }, }, }, @@ -1404,26 +1404,26 @@ export const schemaDict = { }, AppRockskyDropboxGetMetadata: { lexicon: 1, - id: "app.rocksky.dropbox.getMetadata", + id: 'app.rocksky.dropbox.getMetadata', defs: { main: { - type: "query", - description: "Retrieve metadata of a file or folder in Dropbox", + type: 'query', + description: 'Retrieve metadata of a file or folder in Dropbox', parameters: { - type: "params", - required: ["path"], + type: 'params', + required: ['path'], properties: { path: { - type: "string", - description: "Path to the file or folder in Dropbox", + type: 'string', + description: 'Path to the file or folder in Dropbox', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.dropbox.defs#fileView", + type: 'ref', + ref: 'lex:app.rocksky.dropbox.defs#fileView', }, }, }, @@ -1431,26 +1431,26 @@ export const schemaDict = { }, AppRockskyDropboxGetTemporaryLink: { lexicon: 1, - id: "app.rocksky.dropbox.getTemporaryLink", + id: 'app.rocksky.dropbox.getTemporaryLink', defs: { main: { - type: "query", - description: "Retrieve a temporary link to access a file in Dropbox", + type: 'query', + description: 'Retrieve a temporary link to access a file in Dropbox', parameters: { - type: "params", - required: ["path"], + type: 'params', + required: ['path'], properties: { path: { - type: "string", - description: "Path to the file in Dropbox", + type: 'string', + description: 'Path to the file in Dropbox', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.dropbox.defs#temporaryLinkView", + type: 'ref', + ref: 'lex:app.rocksky.dropbox.defs#temporaryLinkView', }, }, }, @@ -1458,103 +1458,103 @@ export const schemaDict = { }, AppRockskyFeedDefs: { lexicon: 1, - id: "app.rocksky.feed.defs", + id: 'app.rocksky.feed.defs', defs: { searchResultsView: { - type: "object", + type: 'object', properties: { hits: { - type: "array", + type: 'array', items: { - type: "union", + type: 'union', refs: [ - "lex:app.rocksky.song.defs#songViewBasic", - "lex:app.rocksky.album.defs#albumViewBasic", - "lex:app.rocksky.artist.defs#artistViewBasic", - "lex:app.rocksky.playlist.defs#playlistViewBasic", - "lex:app.rocksky.actor.defs#profileViewBasic", + 'lex:app.rocksky.song.defs#songViewBasic', + 'lex:app.rocksky.album.defs#albumViewBasic', + 'lex:app.rocksky.artist.defs#artistViewBasic', + 'lex:app.rocksky.playlist.defs#playlistViewBasic', + 'lex:app.rocksky.actor.defs#profileViewBasic', ], }, }, processingTimeMs: { - type: "integer", + type: 'integer', }, limit: { - type: "integer", + type: 'integer', }, offset: { - type: "integer", + type: 'integer', }, estimatedTotalHits: { - type: "integer", + type: 'integer', }, }, }, nowPlayingView: { - type: "object", + type: 'object', properties: { album: { - type: "string", + type: 'string', }, albumArt: { - type: "string", - format: "uri", + type: 'string', + format: 'uri', }, albumArtist: { - type: "string", + type: 'string', }, albumUri: { - type: "string", - format: "at-uri", + type: 'string', + format: 'at-uri', }, artist: { - type: "string", + type: 'string', }, artistUri: { - type: "string", - format: "at-uri", + type: 'string', + format: 'at-uri', }, avatar: { - type: "string", - format: "uri", + type: 'string', + format: 'uri', }, createdAt: { - type: "string", + type: 'string', }, did: { - type: "string", - format: "at-identifier", + type: 'string', + format: 'at-identifier', }, handle: { - type: "string", + type: 'string', }, id: { - type: "string", + type: 'string', }, title: { - type: "string", + type: 'string', }, trackId: { - type: "string", + type: 'string', }, trackUri: { - type: "string", - format: "at-uri", + type: 'string', + format: 'at-uri', }, uri: { - type: "string", - format: "at-uri", + type: 'string', + format: 'at-uri', }, }, }, nowPlayingsView: { - type: "object", + type: 'object', properties: { nowPlayings: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.feed.defs#nowPlayingView", + type: 'ref', + ref: 'lex:app.rocksky.feed.defs#nowPlayingView', }, }, }, @@ -1563,27 +1563,27 @@ export const schemaDict = { }, AppRockskyFeedGetNowPlayings: { lexicon: 1, - id: "app.rocksky.feed.getNowPlayings", + id: 'app.rocksky.feed.getNowPlayings', defs: { main: { - type: "query", - description: "Get all currently playing tracks by users", + type: 'query', + description: 'Get all currently playing tracks by users', parameters: { - type: "params", + type: 'params', properties: { size: { - type: "integer", + type: 'integer', description: - "The maximum number of now playing tracks to return.", + 'The maximum number of now playing tracks to return.', minimum: 1, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.feed.defs#nowPlayingsView", + type: 'ref', + ref: 'lex:app.rocksky.feed.defs#nowPlayingsView', }, }, }, @@ -1591,26 +1591,26 @@ export const schemaDict = { }, AppRockskyFeedSearch: { lexicon: 1, - id: "app.rocksky.feed.search", + id: 'app.rocksky.feed.search', defs: { main: { - type: "query", - description: "Search for content in the feed", + type: 'query', + description: 'Search for content in the feed', parameters: { - type: "params", - required: ["query"], + type: 'params', + required: ['query'], properties: { query: { - type: "string", - description: "The search query string", + type: 'string', + description: 'The search query string', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.feed.defs#searchResultsView", + type: 'ref', + ref: 'lex:app.rocksky.feed.defs#searchResultsView', }, }, }, @@ -1618,25 +1618,25 @@ export const schemaDict = { }, AppRockskyGoogledriveDefs: { lexicon: 1, - id: "app.rocksky.googledrive.defs", + id: 'app.rocksky.googledrive.defs', defs: { fileView: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the file.", + type: 'string', + description: 'The unique identifier of the file.', }, }, }, fileListView: { - type: "object", + type: 'object', properties: { files: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.googledrive.defs#fileView", + type: 'ref', + ref: 'lex:app.rocksky.googledrive.defs#fileView', }, }, }, @@ -1645,50 +1645,50 @@ export const schemaDict = { }, AppRockskyGoogledriveDownloadFile: { lexicon: 1, - id: "app.rocksky.googledrive.downloadFile", + id: 'app.rocksky.googledrive.downloadFile', defs: { main: { - type: "query", + type: 'query', description: - "Download a file from Google Drive by its unique identifier", + 'Download a file from Google Drive by its unique identifier', parameters: { - type: "params", - required: ["fileId"], + type: 'params', + required: ['fileId'], properties: { fileId: { - type: "string", - description: "The unique identifier of the file to download", + type: 'string', + description: 'The unique identifier of the file to download', }, }, }, output: { - encoding: "application/octet-stream", + encoding: 'application/octet-stream', }, }, }, }, AppRockskyGoogledriveGetFile: { lexicon: 1, - id: "app.rocksky.googledrive.getFile", + id: 'app.rocksky.googledrive.getFile', defs: { main: { - type: "query", - description: "Get a file from Google Drive by its unique identifier", + type: 'query', + description: 'Get a file from Google Drive by its unique identifier', parameters: { - type: "params", - required: ["fileId"], + type: 'params', + required: ['fileId'], properties: { fileId: { - type: "string", - description: "The unique identifier of the file to retrieve", + type: 'string', + description: 'The unique identifier of the file to retrieve', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.googledrive.defs#fileView", + type: 'ref', + ref: 'lex:app.rocksky.googledrive.defs#fileView', }, }, }, @@ -1696,25 +1696,25 @@ export const schemaDict = { }, AppRockskyGoogledriveGetFiles: { lexicon: 1, - id: "app.rocksky.googledrive.getFiles", + id: 'app.rocksky.googledrive.getFiles', defs: { main: { - type: "query", - description: "Get a list of files from Google Drive", + type: 'query', + description: 'Get a list of files from Google Drive', parameters: { - type: "params", + type: 'params', properties: { at: { - type: "string", - description: "Path to the Google Drive folder or root directory", + type: 'string', + description: 'Path to the Google Drive folder or root directory', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.googledrive.defs#fileListView", + type: 'ref', + ref: 'lex:app.rocksky.googledrive.defs#fileListView', }, }, }, @@ -1722,29 +1722,29 @@ export const schemaDict = { }, AppRockskyLikeDislikeShout: { lexicon: 1, - id: "app.rocksky.like.dislikeShout", + id: 'app.rocksky.like.dislikeShout', defs: { main: { - type: "procedure", - description: "Dislike a shout", + type: 'procedure', + description: 'Dislike a shout', input: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { uri: { - type: "string", - description: "The unique identifier of the shout to dislike", - format: "at-uri", + type: 'string', + description: 'The unique identifier of the shout to dislike', + format: 'at-uri', }, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.shout.defs#shoutView", + type: 'ref', + ref: 'lex:app.rocksky.shout.defs#shoutView', }, }, }, @@ -1752,29 +1752,29 @@ export const schemaDict = { }, AppRockskyLikeDislikeSong: { lexicon: 1, - id: "app.rocksky.like.dislikeSong", + id: 'app.rocksky.like.dislikeSong', defs: { main: { - type: "procedure", - description: "Dislike a song", + type: 'procedure', + description: 'Dislike a song', input: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { uri: { - type: "string", - description: "The unique identifier of the song to dislike", - format: "at-uri", + type: 'string', + description: 'The unique identifier of the song to dislike', + format: 'at-uri', }, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.song.defs#songViewDetailed", + type: 'ref', + ref: 'lex:app.rocksky.song.defs#songViewDetailed', }, }, }, @@ -1782,24 +1782,24 @@ export const schemaDict = { }, AppRockskyLike: { lexicon: 1, - id: "app.rocksky.like", + id: 'app.rocksky.like', defs: { main: { - type: "record", - description: "A declaration of a like.", - key: "tid", + type: 'record', + description: 'A declaration of a like.', + key: 'tid', record: { - type: "object", - required: ["createdAt", "subject"], + type: 'object', + required: ['createdAt', 'subject'], properties: { createdAt: { - type: "string", - description: "The date when the like was created.", - format: "datetime", + type: 'string', + description: 'The date when the like was created.', + format: 'datetime', }, subject: { - type: "ref", - ref: "lex:com.atproto.repo.strongRef", + type: 'ref', + ref: 'lex:com.atproto.repo.strongRef', }, }, }, @@ -1808,29 +1808,29 @@ export const schemaDict = { }, AppRockskyLikeLikeShout: { lexicon: 1, - id: "app.rocksky.like.likeShout", + id: 'app.rocksky.like.likeShout', defs: { main: { - type: "procedure", - description: "Like a shout", + type: 'procedure', + description: 'Like a shout', input: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { uri: { - type: "string", - description: "The unique identifier of the shout to like", - format: "at-uri", + type: 'string', + description: 'The unique identifier of the shout to like', + format: 'at-uri', }, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.shout.defs#shoutView", + type: 'ref', + ref: 'lex:app.rocksky.shout.defs#shoutView', }, }, }, @@ -1838,29 +1838,29 @@ export const schemaDict = { }, AppRockskyLikeLikeSong: { lexicon: 1, - id: "app.rocksky.like.likeSong", + id: 'app.rocksky.like.likeSong', defs: { main: { - type: "procedure", - description: "Like a song", + type: 'procedure', + description: 'Like a song', input: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { uri: { - type: "string", - description: "The unique identifier of the song to like", - format: "at-uri", + type: 'string', + description: 'The unique identifier of the song to like', + format: 'at-uri', }, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.song.defs#songViewDetailed", + type: 'ref', + ref: 'lex:app.rocksky.song.defs#songViewDetailed', }, }, }, @@ -1868,31 +1868,31 @@ export const schemaDict = { }, AppRockskyPlayerAddDirectoryToQueue: { lexicon: 1, - id: "app.rocksky.player.addDirectoryToQueue", + id: 'app.rocksky.player.addDirectoryToQueue', defs: { main: { - type: "procedure", + type: 'procedure', description: "Add directory to the player's queue", parameters: { - type: "params", - required: ["directory"], + type: 'params', + required: ['directory'], properties: { playerId: { - type: "string", + type: 'string', }, directory: { - type: "string", - description: "The directory to add to the queue", + type: 'string', + description: 'The directory to add to the queue', }, position: { - type: "integer", + type: 'integer', description: - "Position in the queue to insert the directory at, defaults to the end if not specified", + 'Position in the queue to insert the directory at, defaults to the end if not specified', }, shuffle: { - type: "boolean", + type: 'boolean', description: - "Whether to shuffle the added directory in the queue", + 'Whether to shuffle the added directory in the queue', }, }, }, @@ -1901,33 +1901,33 @@ export const schemaDict = { }, AppRockskyPlayerAddItemsToQueue: { lexicon: 1, - id: "app.rocksky.player.addItemsToQueue", + id: 'app.rocksky.player.addItemsToQueue', defs: { main: { - type: "procedure", + type: 'procedure', description: "Add items to the player's queue", parameters: { - type: "params", - required: ["items"], + type: 'params', + required: ['items'], properties: { playerId: { - type: "string", + type: 'string', }, items: { - type: "array", + type: 'array', items: { - type: "string", - description: "List of file identifiers to add to the queue", + type: 'string', + description: 'List of file identifiers to add to the queue', }, }, position: { - type: "integer", + type: 'integer', description: - "Position in the queue to insert the items at, defaults to the end if not specified", + 'Position in the queue to insert the items at, defaults to the end if not specified', }, shuffle: { - type: "boolean", - description: "Whether to shuffle the added items in the queue", + type: 'boolean', + description: 'Whether to shuffle the added items in the queue', }, }, }, @@ -1936,25 +1936,25 @@ export const schemaDict = { }, AppRockskyPlayerDefs: { lexicon: 1, - id: "app.rocksky.player.defs", + id: 'app.rocksky.player.defs', defs: { currentlyPlayingViewDetailed: { - type: "object", + type: 'object', properties: { title: { - type: "string", - description: "The title of the currently playing track", + type: 'string', + description: 'The title of the currently playing track', }, }, }, playbackQueueViewDetailed: { - type: "object", + type: 'object', properties: { tracks: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.song.defs.songViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.song.defs.songViewBasic', }, }, }, @@ -1963,30 +1963,30 @@ export const schemaDict = { }, AppRockskyPlayerGetCurrentlyPlaying: { lexicon: 1, - id: "app.rocksky.player.getCurrentlyPlaying", + id: 'app.rocksky.player.getCurrentlyPlaying', defs: { main: { - type: "query", - description: "Get the currently playing track", + type: 'query', + description: 'Get the currently playing track', parameters: { - type: "params", + type: 'params', properties: { playerId: { - type: "string", + type: 'string', }, actor: { - type: "string", + type: 'string', description: - "Handle or DID of the actor to retrieve the currently playing track for. If not provided, defaults to the current user.", - format: "at-identifier", + 'Handle or DID of the actor to retrieve the currently playing track for. If not provided, defaults to the current user.', + format: 'at-identifier', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.player.defs#currentlyPlayingViewDetailed", + type: 'ref', + ref: 'lex:app.rocksky.player.defs#currentlyPlayingViewDetailed', }, }, }, @@ -1994,24 +1994,24 @@ export const schemaDict = { }, AppRockskyPlayerGetPlaybackQueue: { lexicon: 1, - id: "app.rocksky.player.getPlaybackQueue", + id: 'app.rocksky.player.getPlaybackQueue', defs: { main: { - type: "query", - description: "Retrieve the current playback queue", + type: 'query', + description: 'Retrieve the current playback queue', parameters: { - type: "params", + type: 'params', properties: { playerId: { - type: "string", + type: 'string', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.player.defs#playbackQueueViewDetailed", + type: 'ref', + ref: 'lex:app.rocksky.player.defs#playbackQueueViewDetailed', }, }, }, @@ -2019,16 +2019,16 @@ export const schemaDict = { }, AppRockskyPlayerNext: { lexicon: 1, - id: "app.rocksky.player.next", + id: 'app.rocksky.player.next', defs: { main: { - type: "procedure", - description: "Play the next track in the queue", + type: 'procedure', + description: 'Play the next track in the queue', parameters: { - type: "params", + type: 'params', properties: { playerId: { - type: "string", + type: 'string', }, }, }, @@ -2037,16 +2037,16 @@ export const schemaDict = { }, AppRockskyPlayerPause: { lexicon: 1, - id: "app.rocksky.player.pause", + id: 'app.rocksky.player.pause', defs: { main: { - type: "procedure", - description: "Pause the currently playing track", + type: 'procedure', + description: 'Pause the currently playing track', parameters: { - type: "params", + type: 'params', properties: { playerId: { - type: "string", + type: 'string', }, }, }, @@ -2055,29 +2055,29 @@ export const schemaDict = { }, AppRockskyPlayerPlayDirectory: { lexicon: 1, - id: "app.rocksky.player.playDirectory", + id: 'app.rocksky.player.playDirectory', defs: { main: { - type: "procedure", - description: "Play all tracks in a directory", + type: 'procedure', + description: 'Play all tracks in a directory', parameters: { - type: "params", - required: ["directoryId"], + type: 'params', + required: ['directoryId'], properties: { playerId: { - type: "string", + type: 'string', }, directoryId: { - type: "string", + type: 'string', }, shuffle: { - type: "boolean", + type: 'boolean', }, recurse: { - type: "boolean", + type: 'boolean', }, position: { - type: "integer", + type: 'integer', }, }, }, @@ -2086,20 +2086,20 @@ export const schemaDict = { }, AppRockskyPlayerPlayFile: { lexicon: 1, - id: "app.rocksky.player.playFile", + id: 'app.rocksky.player.playFile', defs: { main: { - type: "procedure", - description: "Play a specific audio file", + type: 'procedure', + description: 'Play a specific audio file', parameters: { - type: "params", - required: ["fileId"], + type: 'params', + required: ['fileId'], properties: { playerId: { - type: "string", + type: 'string', }, fileId: { - type: "string", + type: 'string', }, }, }, @@ -2108,16 +2108,16 @@ export const schemaDict = { }, AppRockskyPlayerPlay: { lexicon: 1, - id: "app.rocksky.player.play", + id: 'app.rocksky.player.play', defs: { main: { - type: "procedure", - description: "Resume playback of the currently paused track", + type: 'procedure', + description: 'Resume playback of the currently paused track', parameters: { - type: "params", + type: 'params', properties: { playerId: { - type: "string", + type: 'string', }, }, }, @@ -2126,16 +2126,16 @@ export const schemaDict = { }, AppRockskyPlayerPrevious: { lexicon: 1, - id: "app.rocksky.player.previous", + id: 'app.rocksky.player.previous', defs: { main: { - type: "procedure", - description: "Play the previous track in the queue", + type: 'procedure', + description: 'Play the previous track in the queue', parameters: { - type: "params", + type: 'params', properties: { playerId: { - type: "string", + type: 'string', }, }, }, @@ -2144,22 +2144,22 @@ export const schemaDict = { }, AppRockskyPlayerSeek: { lexicon: 1, - id: "app.rocksky.player.seek", + id: 'app.rocksky.player.seek', defs: { main: { - type: "procedure", + type: 'procedure', description: - "Seek to a specific position in the currently playing track", + 'Seek to a specific position in the currently playing track', parameters: { - type: "params", - required: ["position"], + type: 'params', + required: ['position'], properties: { playerId: { - type: "string", + type: 'string', }, position: { - type: "integer", - description: "The position in seconds to seek to", + type: 'integer', + description: 'The position in seconds to seek to', }, }, }, @@ -2168,22 +2168,22 @@ export const schemaDict = { }, AppRockskyPlaylistCreatePlaylist: { lexicon: 1, - id: "app.rocksky.playlist.createPlaylist", + id: 'app.rocksky.playlist.createPlaylist', defs: { main: { - type: "procedure", - description: "Create a new playlist", + type: 'procedure', + description: 'Create a new playlist', parameters: { - type: "params", - required: ["name"], + type: 'params', + required: ['name'], properties: { name: { - type: "string", - description: "The name of the playlist", + type: 'string', + description: 'The name of the playlist', }, description: { - type: "string", - description: "A brief description of the playlist", + type: 'string', + description: 'A brief description of the playlist', }, }, }, @@ -2192,122 +2192,122 @@ export const schemaDict = { }, AppRockskyPlaylistDefs: { lexicon: 1, - id: "app.rocksky.playlist.defs", + id: 'app.rocksky.playlist.defs', defs: { playlistViewDetailed: { - type: "object", + type: 'object', description: - "Detailed view of a playlist, including its tracks and metadata", + 'Detailed view of a playlist, including its tracks and metadata', properties: { id: { - type: "string", - description: "The unique identifier of the playlist.", + type: 'string', + description: 'The unique identifier of the playlist.', }, title: { - type: "string", - description: "The title of the playlist.", + type: 'string', + description: 'The title of the playlist.', }, uri: { - type: "string", - description: "The URI of the playlist.", - format: "at-uri", + type: 'string', + description: 'The URI of the playlist.', + format: 'at-uri', }, curatorDid: { - type: "string", - description: "The DID of the curator of the playlist.", - format: "at-identifier", + type: 'string', + description: 'The DID of the curator of the playlist.', + format: 'at-identifier', }, curatorHandle: { - type: "string", - description: "The handle of the curator of the playlist.", - format: "at-identifier", + type: 'string', + description: 'The handle of the curator of the playlist.', + format: 'at-identifier', }, curatorName: { - type: "string", - description: "The name of the curator of the playlist.", + type: 'string', + description: 'The name of the curator of the playlist.', }, curatorAvatarUrl: { - type: "string", - description: "The URL of the avatar image of the curator.", - format: "uri", + type: 'string', + description: 'The URL of the avatar image of the curator.', + format: 'uri', }, description: { - type: "string", - description: "A description of the playlist.", + type: 'string', + description: 'A description of the playlist.', }, coverImageUrl: { - type: "string", - description: "The URL of the cover image for the playlist.", - format: "uri", + type: 'string', + description: 'The URL of the cover image for the playlist.', + format: 'uri', }, createdAt: { - type: "string", - description: "The date and time when the playlist was created.", - format: "datetime", + type: 'string', + description: 'The date and time when the playlist was created.', + format: 'datetime', }, tracks: { - type: "array", - description: "A list of tracks in the playlist.", + type: 'array', + description: 'A list of tracks in the playlist.', items: { - type: "ref", - ref: "lex:app.rocksky.song.defs#songViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.song.defs#songViewBasic', }, }, }, }, playlistViewBasic: { - type: "object", - description: "Basic view of a playlist, including its metadata", + type: 'object', + description: 'Basic view of a playlist, including its metadata', properties: { id: { - type: "string", - description: "The unique identifier of the playlist.", + type: 'string', + description: 'The unique identifier of the playlist.', }, title: { - type: "string", - description: "The title of the playlist.", + type: 'string', + description: 'The title of the playlist.', }, uri: { - type: "string", - description: "The URI of the playlist.", - format: "at-uri", + type: 'string', + description: 'The URI of the playlist.', + format: 'at-uri', }, curatorDid: { - type: "string", - description: "The DID of the curator of the playlist.", - format: "at-identifier", + type: 'string', + description: 'The DID of the curator of the playlist.', + format: 'at-identifier', }, curatorHandle: { - type: "string", - description: "The handle of the curator of the playlist.", - format: "at-identifier", + type: 'string', + description: 'The handle of the curator of the playlist.', + format: 'at-identifier', }, curatorName: { - type: "string", - description: "The name of the curator of the playlist.", + type: 'string', + description: 'The name of the curator of the playlist.', }, curatorAvatarUrl: { - type: "string", - description: "The URL of the avatar image of the curator.", - format: "uri", + type: 'string', + description: 'The URL of the avatar image of the curator.', + format: 'uri', }, description: { - type: "string", - description: "A description of the playlist.", + type: 'string', + description: 'A description of the playlist.', }, coverImageUrl: { - type: "string", - description: "The URL of the cover image for the playlist.", - format: "uri", + type: 'string', + description: 'The URL of the cover image for the playlist.', + format: 'uri', }, createdAt: { - type: "string", - description: "The date and time when the playlist was created.", - format: "datetime", + type: 'string', + description: 'The date and time when the playlist was created.', + format: 'datetime', }, trackCount: { - type: "integer", - description: "The number of tracks in the playlist.", + type: 'integer', + description: 'The number of tracks in the playlist.', minimum: 0, }, }, @@ -2316,27 +2316,27 @@ export const schemaDict = { }, AppRockskyPlaylistGetPlaylist: { lexicon: 1, - id: "app.rocksky.playlist.getPlaylist", + id: 'app.rocksky.playlist.getPlaylist', defs: { main: { - type: "query", - description: "Retrieve a playlist by its ID", + type: 'query', + description: 'Retrieve a playlist by its ID', parameters: { - type: "params", - required: ["uri"], + type: 'params', + required: ['uri'], properties: { uri: { - type: "string", - description: "The URI of the playlist to retrieve.", - format: "at-uri", + type: 'string', + description: 'The URI of the playlist to retrieve.', + format: 'at-uri', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.playlist.defs#playlistViewDetailed", + type: 'ref', + ref: 'lex:app.rocksky.playlist.defs#playlistViewDetailed', }, }, }, @@ -2344,35 +2344,35 @@ export const schemaDict = { }, AppRockskyPlaylistGetPlaylists: { lexicon: 1, - id: "app.rocksky.playlist.getPlaylists", + id: 'app.rocksky.playlist.getPlaylists', defs: { main: { - type: "query", - description: "Retrieve a list of playlists", + type: 'query', + description: 'Retrieve a list of playlists', parameters: { - type: "params", + type: 'params', properties: { limit: { - type: "integer", - description: "The maximum number of playlists to return.", + type: 'integer', + description: 'The maximum number of playlists to return.', }, offset: { - type: "integer", + type: 'integer', description: - "The offset for pagination, used to skip a number of playlists.", + 'The offset for pagination, used to skip a number of playlists.', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { playlists: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.playlist.defs#playlistViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.playlist.defs#playlistViewBasic', }, }, }, @@ -2383,28 +2383,28 @@ export const schemaDict = { }, AppRockskyPlaylistInsertDirectory: { lexicon: 1, - id: "app.rocksky.playlist.insertDirectory", + id: 'app.rocksky.playlist.insertDirectory', defs: { main: { - type: "procedure", - description: "Insert a directory into a playlist", + type: 'procedure', + description: 'Insert a directory into a playlist', parameters: { - type: "params", - required: ["uri", "directory"], + type: 'params', + required: ['uri', 'directory'], properties: { uri: { - type: "string", - description: "The URI of the playlist to start", - format: "at-uri", + type: 'string', + description: 'The URI of the playlist to start', + format: 'at-uri', }, directory: { - type: "string", - description: "The directory (id) to insert into the playlist", + type: 'string', + description: 'The directory (id) to insert into the playlist', }, position: { - type: "integer", + type: 'integer', description: - "The position in the playlist to insert the directory at, if not specified, the directory will be appended", + 'The position in the playlist to insert the directory at, if not specified, the directory will be appended', }, }, }, @@ -2413,31 +2413,31 @@ export const schemaDict = { }, AppRockskyPlaylistInsertFiles: { lexicon: 1, - id: "app.rocksky.playlist.insertFiles", + id: 'app.rocksky.playlist.insertFiles', defs: { main: { - type: "procedure", - description: "Insert files into a playlist", + type: 'procedure', + description: 'Insert files into a playlist', parameters: { - type: "params", - required: ["uri", "files"], + type: 'params', + required: ['uri', 'files'], properties: { uri: { - type: "string", - description: "The URI of the playlist to start", - format: "at-uri", + type: 'string', + description: 'The URI of the playlist to start', + format: 'at-uri', }, files: { - type: "array", + type: 'array', items: { - type: "string", - description: "List of file (id) to insert into the playlist", + type: 'string', + description: 'List of file (id) to insert into the playlist', }, }, position: { - type: "integer", + type: 'integer', description: - "The position in the playlist to insert the files at, if not specified, files will be appended", + 'The position in the playlist to insert the files at, if not specified, files will be appended', }, }, }, @@ -2446,62 +2446,62 @@ export const schemaDict = { }, AppRockskyPlaylist: { lexicon: 1, - id: "app.rocksky.playlist", + id: 'app.rocksky.playlist', defs: { main: { - type: "record", - description: "A declaration of a playlist.", - key: "tid", + type: 'record', + description: 'A declaration of a playlist.', + key: 'tid', record: { - type: "object", - required: ["name", "createdAt"], + type: 'object', + required: ['name', 'createdAt'], properties: { name: { - type: "string", - description: "The name of the playlist.", + type: 'string', + description: 'The name of the playlist.', minLength: 1, maxLength: 512, }, description: { - type: "string", - description: "The playlist description.", + type: 'string', + description: 'The playlist description.', minLength: 1, maxLength: 256, }, picture: { - type: "blob", - description: "The picture of the playlist.", - accept: ["image/png", "image/jpeg"], + type: 'blob', + description: 'The picture of the playlist.', + accept: ['image/png', 'image/jpeg'], maxSize: 2000000, }, tracks: { - type: "array", - description: "The tracks in the playlist.", + type: 'array', + description: 'The tracks in the playlist.', items: { - type: "ref", - ref: "lex:app.rocksky.song#record", + type: 'ref', + ref: 'lex:app.rocksky.song#record', }, }, createdAt: { - type: "string", - description: "The date the playlist was created.", - format: "datetime", + type: 'string', + description: 'The date the playlist was created.', + format: 'datetime', }, spotifyLink: { - type: "string", - description: "The Spotify link of the playlist.", + type: 'string', + description: 'The Spotify link of the playlist.', }, tidalLink: { - type: "string", - description: "The Tidal link of the playlist.", + type: 'string', + description: 'The Tidal link of the playlist.', }, youtubeLink: { - type: "string", - description: "The YouTube link of the playlist.", + type: 'string', + description: 'The YouTube link of the playlist.', }, appleMusicLink: { - type: "string", - description: "The Apple Music link of the playlist.", + type: 'string', + description: 'The Apple Music link of the playlist.', }, }, }, @@ -2510,19 +2510,19 @@ export const schemaDict = { }, AppRockskyPlaylistRemovePlaylist: { lexicon: 1, - id: "app.rocksky.playlist.removePlaylist", + id: 'app.rocksky.playlist.removePlaylist', defs: { main: { - type: "procedure", - description: "Remove a playlist", + type: 'procedure', + description: 'Remove a playlist', parameters: { - type: "params", - required: ["uri"], + type: 'params', + required: ['uri'], properties: { uri: { - type: "string", - description: "The URI of the playlist to remove", - format: "at-uri", + type: 'string', + description: 'The URI of the playlist to remove', + format: 'at-uri', }, }, }, @@ -2531,24 +2531,24 @@ export const schemaDict = { }, AppRockskyPlaylistRemoveTrack: { lexicon: 1, - id: "app.rocksky.playlist.removeTrack", + id: 'app.rocksky.playlist.removeTrack', defs: { main: { - type: "procedure", - description: "Remove a track from a playlist", + type: 'procedure', + description: 'Remove a track from a playlist', parameters: { - type: "params", - required: ["uri", "position"], + type: 'params', + required: ['uri', 'position'], properties: { uri: { - type: "string", - description: "The URI of the playlist to remove the track from", - format: "at-uri", + type: 'string', + description: 'The URI of the playlist to remove the track from', + format: 'at-uri', }, position: { - type: "integer", + type: 'integer', description: - "The position of the track to remove in the playlist", + 'The position of the track to remove in the playlist', }, }, }, @@ -2557,28 +2557,28 @@ export const schemaDict = { }, AppRockskyPlaylistStartPlaylist: { lexicon: 1, - id: "app.rocksky.playlist.startPlaylist", + id: 'app.rocksky.playlist.startPlaylist', defs: { main: { - type: "procedure", - description: "Start a playlist", + type: 'procedure', + description: 'Start a playlist', parameters: { - type: "params", - required: ["uri"], + type: 'params', + required: ['uri'], properties: { uri: { - type: "string", - description: "The URI of the playlist to start", - format: "at-uri", + type: 'string', + description: 'The URI of the playlist to start', + format: 'at-uri', }, shuffle: { - type: "boolean", - description: "Whether to shuffle the playlist when starting it", + type: 'boolean', + description: 'Whether to shuffle the playlist when starting it', }, position: { - type: "integer", + type: 'integer', description: - "The position in the playlist to start from, if not specified, starts from the beginning", + 'The position in the playlist to start from, if not specified, starts from the beginning', }, }, }, @@ -2587,67 +2587,67 @@ export const schemaDict = { }, AppRockskyRadioDefs: { lexicon: 1, - id: "app.rocksky.radio.defs", + id: 'app.rocksky.radio.defs', defs: { radioViewBasic: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the radio.", + type: 'string', + description: 'The unique identifier of the radio.', }, name: { - type: "string", - description: "The name of the radio.", + type: 'string', + description: 'The name of the radio.', }, description: { - type: "string", - description: "A brief description of the radio.", + type: 'string', + description: 'A brief description of the radio.', }, createdAt: { - type: "string", - description: "The date and time when the radio was created.", - format: "datetime", + type: 'string', + description: 'The date and time when the radio was created.', + format: 'datetime', }, }, }, radioViewDetailed: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the radio.", + type: 'string', + description: 'The unique identifier of the radio.', }, name: { - type: "string", - description: "The name of the radio.", + type: 'string', + description: 'The name of the radio.', }, description: { - type: "string", - description: "A brief description of the radio.", + type: 'string', + description: 'A brief description of the radio.', }, website: { - type: "string", - description: "The website of the radio.", - format: "uri", + type: 'string', + description: 'The website of the radio.', + format: 'uri', }, url: { - type: "string", - description: "The streaming URL of the radio.", - format: "uri", + type: 'string', + description: 'The streaming URL of the radio.', + format: 'uri', }, genre: { - type: "string", - description: "The genre of the radio.", + type: 'string', + description: 'The genre of the radio.', }, logo: { - type: "string", - description: "The logo of the radio station.", + type: 'string', + description: 'The logo of the radio station.', }, createdAt: { - type: "string", - description: "The date and time when the radio was created.", - format: "datetime", + type: 'string', + description: 'The date and time when the radio was created.', + format: 'datetime', }, }, }, @@ -2655,54 +2655,54 @@ export const schemaDict = { }, AppRockskyRadio: { lexicon: 1, - id: "app.rocksky.radio", + id: 'app.rocksky.radio', defs: { main: { - type: "record", - description: "A declaration of a radio station.", - key: "tid", + type: 'record', + description: 'A declaration of a radio station.', + key: 'tid', record: { - type: "object", - required: ["name", "url", "createdAt"], + type: 'object', + required: ['name', 'url', 'createdAt'], properties: { name: { - type: "string", - description: "The name of the radio station.", + type: 'string', + description: 'The name of the radio station.', minLength: 1, maxLength: 512, }, url: { - type: "string", - description: "The URL of the radio station.", - format: "uri", + type: 'string', + description: 'The URL of the radio station.', + format: 'uri', }, description: { - type: "string", - description: "A description of the radio station.", + type: 'string', + description: 'A description of the radio station.', minLength: 1, maxLength: 1000, }, genre: { - type: "string", - description: "The genre of the radio station.", + type: 'string', + description: 'The genre of the radio station.', minLength: 1, maxLength: 256, }, logo: { - type: "blob", - description: "The logo of the radio station.", - accept: ["image/png", "image/jpeg"], + type: 'blob', + description: 'The logo of the radio station.', + accept: ['image/png', 'image/jpeg'], maxSize: 2000000, }, website: { - type: "string", - description: "The website of the radio station.", - format: "uri", + type: 'string', + description: 'The website of the radio station.', + format: 'uri', }, createdAt: { - type: "string", - description: "The date when the radio station was created.", - format: "datetime", + type: 'string', + description: 'The date when the radio station was created.', + format: 'datetime', }, }, }, @@ -2711,125 +2711,125 @@ export const schemaDict = { }, AppRockskyScrobbleCreateScrobble: { lexicon: 1, - id: "app.rocksky.scrobble.createScrobble", + id: 'app.rocksky.scrobble.createScrobble', defs: { main: { - type: "procedure", - description: "Create a new scrobble", + type: 'procedure', + description: 'Create a new scrobble', input: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", - required: ["title", "artist"], + type: 'object', + required: ['title', 'artist'], properties: { title: { - type: "string", - description: "The title of the track being scrobbled", + type: 'string', + description: 'The title of the track being scrobbled', }, artist: { - type: "string", - description: "The artist of the track being scrobbled", + type: 'string', + description: 'The artist of the track being scrobbled', }, album: { - type: "string", - description: "The album of the track being scrobbled", + type: 'string', + description: 'The album of the track being scrobbled', }, duration: { - type: "integer", - description: "The duration of the track in seconds", + type: 'integer', + description: 'The duration of the track in seconds', }, mbId: { - type: "string", - description: "The MusicBrainz ID of the track, if available", + type: 'string', + description: 'The MusicBrainz ID of the track, if available', }, albumArt: { - type: "string", - description: "The URL of the album art for the track", - format: "uri", + type: 'string', + description: 'The URL of the album art for the track', + format: 'uri', }, trackNumber: { - type: "integer", - description: "The track number of the track in the album", + type: 'integer', + description: 'The track number of the track in the album', }, releaseDate: { - type: "string", + type: 'string', description: - "The release date of the track, formatted as YYYY-MM-DD", + 'The release date of the track, formatted as YYYY-MM-DD', }, year: { - type: "integer", - description: "The year the track was released", + type: 'integer', + description: 'The year the track was released', }, discNumber: { - type: "integer", + type: 'integer', description: - "The disc number of the track in the album, if applicable", + 'The disc number of the track in the album, if applicable', }, lyrics: { - type: "string", - description: "The lyrics of the track, if available", + type: 'string', + description: 'The lyrics of the track, if available', }, composer: { - type: "string", - description: "The composer of the track, if available", + type: 'string', + description: 'The composer of the track, if available', }, copyrightMessage: { - type: "string", + type: 'string', description: - "The copyright message for the track, if available", + 'The copyright message for the track, if available', }, label: { - type: "string", - description: "The record label of the track, if available", + type: 'string', + description: 'The record label of the track, if available', }, artistPicture: { - type: "string", + type: 'string', description: "The URL of the artist's picture, if available", - format: "uri", + format: 'uri', }, spotifyLink: { - type: "string", - description: "The Spotify link for the track, if available", - format: "uri", + type: 'string', + description: 'The Spotify link for the track, if available', + format: 'uri', }, lastfmLink: { - type: "string", - description: "The Last.fm link for the track, if available", - format: "uri", + type: 'string', + description: 'The Last.fm link for the track, if available', + format: 'uri', }, tidalLink: { - type: "string", - description: "The Tidal link for the track, if available", - format: "uri", + type: 'string', + description: 'The Tidal link for the track, if available', + format: 'uri', }, appleMusicLink: { - type: "string", - description: "The Apple Music link for the track, if available", - format: "uri", + type: 'string', + description: 'The Apple Music link for the track, if available', + format: 'uri', }, youtubeLink: { - type: "string", - description: "The Youtube link for the track, if available", - format: "uri", + type: 'string', + description: 'The Youtube link for the track, if available', + format: 'uri', }, deezerLink: { - type: "string", - description: "The Deezer link for the track, if available", - format: "uri", + type: 'string', + description: 'The Deezer link for the track, if available', + format: 'uri', }, timestamp: { - type: "integer", + type: 'integer', description: - "The timestamp of the scrobble in milliseconds since epoch", + 'The timestamp of the scrobble in milliseconds since epoch', }, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.scrobble.defs#scrobbleViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.scrobble.defs#scrobbleViewBasic', }, }, }, @@ -2837,121 +2837,131 @@ export const schemaDict = { }, AppRockskyScrobbleDefs: { lexicon: 1, - id: "app.rocksky.scrobble.defs", + id: 'app.rocksky.scrobble.defs', defs: { scrobbleViewBasic: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the scrobble.", + type: 'string', + description: 'The unique identifier of the scrobble.', }, user: { - type: "string", - description: "The handle of the user who created the scrobble.", + type: 'string', + description: 'The handle of the user who created the scrobble.', + }, + userDisplayName: { + type: 'string', + description: + 'The display name of the user who created the scrobble.', + }, + userAvatar: { + type: 'string', + description: 'The avatar URL of the user who created the scrobble.', + format: 'uri', }, title: { - type: "string", - description: "The title of the scrobble.", + type: 'string', + description: 'The title of the scrobble.', }, artist: { - type: "string", - description: "The artist of the song.", + type: 'string', + description: 'The artist of the song.', }, artistUri: { - type: "string", - description: "The URI of the artist.", - format: "at-uri", + type: 'string', + description: 'The URI of the artist.', + format: 'at-uri', }, album: { - type: "string", - description: "The album of the song.", + type: 'string', + description: 'The album of the song.', }, albumUri: { - type: "string", - description: "The URI of the album.", - format: "at-uri", + type: 'string', + description: 'The URI of the album.', + format: 'at-uri', }, cover: { - type: "string", - description: "The album art URL of the song.", - format: "uri", + type: 'string', + description: 'The album art URL of the song.', + format: 'uri', }, date: { - type: "string", - description: "The timestamp when the scrobble was created.", - format: "datetime", + type: 'string', + description: 'The timestamp when the scrobble was created.', + format: 'datetime', }, uri: { - type: "string", - description: "The URI of the scrobble.", - format: "uri", + type: 'string', + description: 'The URI of the scrobble.', + format: 'uri', }, sha256: { - type: "string", - description: "The SHA256 hash of the scrobble data.", + type: 'string', + description: 'The SHA256 hash of the scrobble data.', }, }, }, scrobbleViewDetailed: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the scrobble.", + type: 'string', + description: 'The unique identifier of the scrobble.', }, user: { - type: "string", - description: "The handle of the user who created the scrobble.", + type: 'string', + description: 'The handle of the user who created the scrobble.', }, title: { - type: "string", - description: "The title of the scrobble.", + type: 'string', + description: 'The title of the scrobble.', }, artist: { - type: "string", - description: "The artist of the song.", + type: 'string', + description: 'The artist of the song.', }, artistUri: { - type: "string", - description: "The URI of the artist.", - format: "at-uri", + type: 'string', + description: 'The URI of the artist.', + format: 'at-uri', }, album: { - type: "string", - description: "The album of the song.", + type: 'string', + description: 'The album of the song.', }, albumUri: { - type: "string", - description: "The URI of the album.", - format: "at-uri", + type: 'string', + description: 'The URI of the album.', + format: 'at-uri', }, cover: { - type: "string", - description: "The album art URL of the song.", - format: "uri", + type: 'string', + description: 'The album art URL of the song.', + format: 'uri', }, date: { - type: "string", - description: "The timestamp when the scrobble was created.", - format: "datetime", + type: 'string', + description: 'The timestamp when the scrobble was created.', + format: 'datetime', }, uri: { - type: "string", - description: "The URI of the scrobble.", - format: "uri", + type: 'string', + description: 'The URI of the scrobble.', + format: 'uri', }, sha256: { - type: "string", - description: "The SHA256 hash of the scrobble data.", + type: 'string', + description: 'The SHA256 hash of the scrobble data.', }, listeners: { - type: "integer", - description: "The number of listeners", + type: 'integer', + description: 'The number of listeners', }, scrobbles: { - type: "integer", - description: "The number of scrobbles for this song", + type: 'integer', + description: 'The number of scrobbles for this song', }, }, }, @@ -2959,27 +2969,27 @@ export const schemaDict = { }, AppRockskyScrobbleGetScrobble: { lexicon: 1, - id: "app.rocksky.scrobble.getScrobble", + id: 'app.rocksky.scrobble.getScrobble', defs: { main: { - type: "query", - description: "Get a scrobble by its unique identifier", + type: 'query', + description: 'Get a scrobble by its unique identifier', parameters: { - type: "params", - required: ["uri"], + type: 'params', + required: ['uri'], properties: { uri: { - type: "string", - description: "The unique identifier of the scrobble", - format: "at-uri", + type: 'string', + description: 'The unique identifier of the scrobble', + format: 'at-uri', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.scrobble.defs#scrobbleViewDetailed", + type: 'ref', + ref: 'lex:app.rocksky.scrobble.defs#scrobbleViewDetailed', }, }, }, @@ -2987,41 +2997,41 @@ export const schemaDict = { }, AppRockskyScrobbleGetScrobbles: { lexicon: 1, - id: "app.rocksky.scrobble.getScrobbles", + id: 'app.rocksky.scrobble.getScrobbles', defs: { main: { - type: "query", - description: "Get scrobbles all scrobbles", + type: 'query', + description: 'Get scrobbles all scrobbles', parameters: { - type: "params", + type: 'params', properties: { did: { - type: "string", - description: "The DID or handle of the actor", - format: "at-identifier", + type: 'string', + description: 'The DID or handle of the actor', + format: 'at-identifier', }, limit: { - type: "integer", - description: "The maximum number of scrobbles to return", + type: 'integer', + description: 'The maximum number of scrobbles to return', minimum: 1, }, offset: { - type: "integer", - description: "The offset for pagination", + type: 'integer', + description: 'The offset for pagination', minimum: 0, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { scrobbles: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.scrobble.defs#scrobbleViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.scrobble.defs#scrobbleViewBasic', }, }, }, @@ -3032,143 +3042,143 @@ export const schemaDict = { }, AppRockskyScrobble: { lexicon: 1, - id: "app.rocksky.scrobble", + id: 'app.rocksky.scrobble', defs: { main: { - type: "record", - description: "A declaration of a scrobble.", - key: "tid", + type: 'record', + description: 'A declaration of a scrobble.', + key: 'tid', record: { - type: "object", + type: 'object', required: [ - "title", - "artist", - "album", - "albumArtist", - "duration", - "createdAt", + 'title', + 'artist', + 'album', + 'albumArtist', + 'duration', + 'createdAt', ], properties: { title: { - type: "string", - description: "The title of the song.", + type: 'string', + description: 'The title of the song.', minLength: 1, maxLength: 512, }, artist: { - type: "string", - description: "The artist of the song.", + type: 'string', + description: 'The artist of the song.', minLength: 1, maxLength: 256, }, albumArtist: { - type: "string", - description: "The album artist of the song.", + type: 'string', + description: 'The album artist of the song.', minLength: 1, maxLength: 256, }, album: { - type: "string", - description: "The album of the song.", + type: 'string', + description: 'The album of the song.', minLength: 1, maxLength: 256, }, duration: { - type: "integer", - description: "The duration of the song in seconds.", + type: 'integer', + description: 'The duration of the song in seconds.', minimum: 1, }, trackNumber: { - type: "integer", - description: "The track number of the song in the album.", + type: 'integer', + description: 'The track number of the song in the album.', minimum: 1, }, discNumber: { - type: "integer", - description: "The disc number of the song in the album.", + type: 'integer', + description: 'The disc number of the song in the album.', minimum: 1, }, releaseDate: { - type: "string", - description: "The release date of the song.", - format: "datetime", + type: 'string', + description: 'The release date of the song.', + format: 'datetime', }, year: { - type: "integer", - description: "The year the song was released.", + type: 'integer', + description: 'The year the song was released.', }, genre: { - type: "string", - description: "The genre of the song.", + type: 'string', + description: 'The genre of the song.', maxLength: 256, }, tags: { - type: "array", - description: "The tags of the song.", + type: 'array', + description: 'The tags of the song.', items: { - type: "string", + type: 'string', minLength: 1, maxLength: 256, }, }, composer: { - type: "string", - description: "The composer of the song.", + type: 'string', + description: 'The composer of the song.', maxLength: 256, }, lyrics: { - type: "string", - description: "The lyrics of the song.", + type: 'string', + description: 'The lyrics of the song.', maxLength: 10000, }, copyrightMessage: { - type: "string", - description: "The copyright message of the song.", + type: 'string', + description: 'The copyright message of the song.', maxLength: 256, }, wiki: { - type: "string", - description: "Informations about the song", + type: 'string', + description: 'Informations about the song', maxLength: 10000, }, albumArt: { - type: "blob", - description: "The album art of the song.", - accept: ["image/png", "image/jpeg"], + type: 'blob', + description: 'The album art of the song.', + accept: ['image/png', 'image/jpeg'], maxSize: 2000000, }, youtubeLink: { - type: "string", - description: "The YouTube link of the song.", - format: "uri", + type: 'string', + description: 'The YouTube link of the song.', + format: 'uri', }, spotifyLink: { - type: "string", - description: "The Spotify link of the song.", - format: "uri", + type: 'string', + description: 'The Spotify link of the song.', + format: 'uri', }, tidalLink: { - type: "string", - description: "The Tidal link of the song.", - format: "uri", + type: 'string', + description: 'The Tidal link of the song.', + format: 'uri', }, appleMusicLink: { - type: "string", - description: "The Apple Music link of the song.", - format: "uri", + type: 'string', + description: 'The Apple Music link of the song.', + format: 'uri', }, createdAt: { - type: "string", - description: "The date when the song was created.", - format: "datetime", + type: 'string', + description: 'The date when the song was created.', + format: 'datetime', }, mbid: { - type: "string", - description: "The MusicBrainz ID of the song.", + type: 'string', + description: 'The MusicBrainz ID of the song.', }, label: { - type: "string", - description: "The label of the song.", + type: 'string', + description: 'The label of the song.', maxLength: 256, }, }, @@ -3178,29 +3188,29 @@ export const schemaDict = { }, AppRockskyShoutCreateShout: { lexicon: 1, - id: "app.rocksky.shout.createShout", + id: 'app.rocksky.shout.createShout', defs: { main: { - type: "procedure", - description: "Create a new shout", + type: 'procedure', + description: 'Create a new shout', input: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { message: { - type: "string", - description: "The content of the shout", + type: 'string', + description: 'The content of the shout', minLength: 1, }, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.shout.defs#shoutView", + type: 'ref', + ref: 'lex:app.rocksky.shout.defs#shoutView', }, }, }, @@ -3208,61 +3218,61 @@ export const schemaDict = { }, AppRockskyShoutDefs: { lexicon: 1, - id: "app.rocksky.shout.defs", + id: 'app.rocksky.shout.defs', defs: { author: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the author.", + type: 'string', + description: 'The unique identifier of the author.', }, did: { - type: "string", - description: "The decentralized identifier (DID) of the author.", - format: "at-identifier", + type: 'string', + description: 'The decentralized identifier (DID) of the author.', + format: 'at-identifier', }, handle: { - type: "string", - description: "The handle of the author.", - format: "at-identifier", + type: 'string', + description: 'The handle of the author.', + format: 'at-identifier', }, displayName: { - type: "string", - description: "The display name of the author.", + type: 'string', + description: 'The display name of the author.', }, avatar: { - type: "string", + type: 'string', description: "The URL of the author's avatar image.", - format: "uri", + format: 'uri', }, }, }, shoutView: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the shout.", + type: 'string', + description: 'The unique identifier of the shout.', }, message: { - type: "string", - description: "The content of the shout.", + type: 'string', + description: 'The content of the shout.', }, parent: { - type: "string", + type: 'string', description: - "The ID of the parent shout if this is a reply, otherwise null.", + 'The ID of the parent shout if this is a reply, otherwise null.', }, createdAt: { - type: "string", - description: "The date and time when the shout was created.", - format: "datetime", + type: 'string', + description: 'The date and time when the shout was created.', + format: 'datetime', }, author: { - type: "ref", - description: "The author of the shout.", - ref: "lex:app.rocksky.shout.defs#author", + type: 'ref', + description: 'The author of the shout.', + ref: 'lex:app.rocksky.shout.defs#author', }, }, }, @@ -3270,44 +3280,44 @@ export const schemaDict = { }, AppRockskyShoutGetAlbumShouts: { lexicon: 1, - id: "app.rocksky.shout.getAlbumShouts", + id: 'app.rocksky.shout.getAlbumShouts', defs: { main: { - type: "query", - description: "Get shouts for an album", + type: 'query', + description: 'Get shouts for an album', parameters: { - type: "params", - required: ["uri"], + type: 'params', + required: ['uri'], properties: { uri: { - type: "string", + type: 'string', description: - "The unique identifier of the album to retrieve shouts for", - format: "at-uri", + 'The unique identifier of the album to retrieve shouts for', + format: 'at-uri', }, limit: { - type: "integer", - description: "The maximum number of shouts to return", + type: 'integer', + description: 'The maximum number of shouts to return', minimum: 1, }, offset: { - type: "integer", + type: 'integer', description: - "The number of shouts to skip before starting to collect the result set", + 'The number of shouts to skip before starting to collect the result set', minimum: 0, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { shouts: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.shout.defs#shoutViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.shout.defs#shoutViewBasic', }, }, }, @@ -3318,43 +3328,43 @@ export const schemaDict = { }, AppRockskyShoutGetArtistShouts: { lexicon: 1, - id: "app.rocksky.shout.getArtistShouts", + id: 'app.rocksky.shout.getArtistShouts', defs: { main: { - type: "query", - description: "Get shouts for an artist", + type: 'query', + description: 'Get shouts for an artist', parameters: { - type: "params", - required: ["uri"], + type: 'params', + required: ['uri'], properties: { uri: { - type: "string", - description: "The URI of the artist to retrieve shouts for", - format: "at-uri", + type: 'string', + description: 'The URI of the artist to retrieve shouts for', + format: 'at-uri', }, limit: { - type: "integer", - description: "The maximum number of shouts to return", + type: 'integer', + description: 'The maximum number of shouts to return', minimum: 1, }, offset: { - type: "integer", + type: 'integer', description: - "The number of shouts to skip before starting to collect the result set", + 'The number of shouts to skip before starting to collect the result set', minimum: 0, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { shouts: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.shout.defs#shoutViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.shout.defs#shoutViewBasic', }, }, }, @@ -3365,42 +3375,42 @@ export const schemaDict = { }, AppRockskyShoutGetProfileShouts: { lexicon: 1, - id: "app.rocksky.shout.getProfileShouts", + id: 'app.rocksky.shout.getProfileShouts', defs: { main: { - type: "query", + type: 'query', description: "Get the shouts of an actor's profile", parameters: { - type: "params", - required: ["did"], + type: 'params', + required: ['did'], properties: { did: { - type: "string", - description: "The DID or handle of the actor", - format: "at-identifier", + type: 'string', + description: 'The DID or handle of the actor', + format: 'at-identifier', }, offset: { - type: "integer", - description: "The offset for pagination", + type: 'integer', + description: 'The offset for pagination', minimum: 0, }, limit: { - type: "integer", - description: "The maximum number of shouts to return", + type: 'integer', + description: 'The maximum number of shouts to return', minimum: 1, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { shouts: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.shout.defs#shoutViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.shout.defs#shoutViewBasic', }, }, }, @@ -3411,43 +3421,43 @@ export const schemaDict = { }, AppRockskyShoutGetShoutReplies: { lexicon: 1, - id: "app.rocksky.shout.getShoutReplies", + id: 'app.rocksky.shout.getShoutReplies', defs: { main: { - type: "query", - description: "Get replies to a shout", + type: 'query', + description: 'Get replies to a shout', parameters: { - type: "params", - required: ["uri"], + type: 'params', + required: ['uri'], properties: { uri: { - type: "string", - description: "The URI of the shout to retrieve replies for", - format: "at-uri", + type: 'string', + description: 'The URI of the shout to retrieve replies for', + format: 'at-uri', }, limit: { - type: "integer", - description: "The maximum number of shouts to return", + type: 'integer', + description: 'The maximum number of shouts to return', minimum: 1, }, offset: { - type: "integer", + type: 'integer', description: - "The number of shouts to skip before starting to collect the result set", + 'The number of shouts to skip before starting to collect the result set', minimum: 0, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { shouts: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.shout.defs#shoutViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.shout.defs#shoutViewBasic', }, }, }, @@ -3458,32 +3468,32 @@ export const schemaDict = { }, AppRockskyShoutGetTrackShouts: { lexicon: 1, - id: "app.rocksky.shout.getTrackShouts", + id: 'app.rocksky.shout.getTrackShouts', defs: { main: { - type: "query", - description: "Get all shouts for a specific track", + type: 'query', + description: 'Get all shouts for a specific track', parameters: { - type: "params", - required: ["uri"], + type: 'params', + required: ['uri'], properties: { uri: { - type: "string", - description: "The URI of the track to retrieve shouts for", - format: "at-uri", + type: 'string', + description: 'The URI of the track to retrieve shouts for', + format: 'at-uri', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { shouts: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.shout.defs#shoutViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.shout.defs#shoutViewBasic', }, }, }, @@ -3494,26 +3504,26 @@ export const schemaDict = { }, AppRockskyShoutRemoveShout: { lexicon: 1, - id: "app.rocksky.shout.removeShout", + id: 'app.rocksky.shout.removeShout', defs: { main: { - type: "procedure", - description: "Remove a shout by its ID", + type: 'procedure', + description: 'Remove a shout by its ID', parameters: { - type: "params", - required: ["id"], + type: 'params', + required: ['id'], properties: { id: { - type: "string", - description: "The ID of the shout to be removed", + type: 'string', + description: 'The ID of the shout to be removed', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.shout.defs#shoutView", + type: 'ref', + ref: 'lex:app.rocksky.shout.defs#shoutView', }, }, }, @@ -3521,34 +3531,34 @@ export const schemaDict = { }, AppRockskyShoutReplyShout: { lexicon: 1, - id: "app.rocksky.shout.replyShout", + id: 'app.rocksky.shout.replyShout', defs: { main: { - type: "procedure", - description: "Reply to a shout", + type: 'procedure', + description: 'Reply to a shout', input: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", - required: ["shoutId", "message"], + type: 'object', + required: ['shoutId', 'message'], properties: { shoutId: { - type: "string", - description: "The unique identifier of the shout to reply to", + type: 'string', + description: 'The unique identifier of the shout to reply to', }, message: { - type: "string", - description: "The content of the reply", + type: 'string', + description: 'The content of the reply', minLength: 1, }, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.shout.defs#shoutView", + type: 'ref', + ref: 'lex:app.rocksky.shout.defs#shoutView', }, }, }, @@ -3556,34 +3566,34 @@ export const schemaDict = { }, AppRockskyShoutReportShout: { lexicon: 1, - id: "app.rocksky.shout.reportShout", + id: 'app.rocksky.shout.reportShout', defs: { main: { - type: "procedure", - description: "Report a shout for moderation", + type: 'procedure', + description: 'Report a shout for moderation', input: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", - required: ["shoutId"], + type: 'object', + required: ['shoutId'], properties: { shoutId: { - type: "string", - description: "The unique identifier of the shout to report", + type: 'string', + description: 'The unique identifier of the shout to report', }, reason: { - type: "string", - description: "The reason for reporting the shout", + type: 'string', + description: 'The reason for reporting the shout', minLength: 1, }, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.shout.defs#shoutView", + type: 'ref', + ref: 'lex:app.rocksky.shout.defs#shoutView', }, }, }, @@ -3591,34 +3601,34 @@ export const schemaDict = { }, AppRockskyShout: { lexicon: 1, - id: "app.rocksky.shout", + id: 'app.rocksky.shout', defs: { main: { - type: "record", - description: "A declaration of a shout.", - key: "tid", + type: 'record', + description: 'A declaration of a shout.', + key: 'tid', record: { - type: "object", - required: ["message", "createdAt", "subject"], + type: 'object', + required: ['message', 'createdAt', 'subject'], properties: { message: { - type: "string", - description: "The message of the shout.", + type: 'string', + description: 'The message of the shout.', minLength: 1, maxLength: 1000, }, createdAt: { - type: "string", - description: "The date when the shout was created.", - format: "datetime", + type: 'string', + description: 'The date when the shout was created.', + format: 'datetime', }, parent: { - type: "ref", - ref: "lex:com.atproto.repo.strongRef", + type: 'ref', + ref: 'lex:com.atproto.repo.strongRef', }, subject: { - type: "ref", - ref: "lex:com.atproto.repo.strongRef", + type: 'ref', + ref: 'lex:com.atproto.repo.strongRef', }, }, }, @@ -3627,78 +3637,78 @@ export const schemaDict = { }, AppRockskySongCreateSong: { lexicon: 1, - id: "app.rocksky.song.createSong", + id: 'app.rocksky.song.createSong', defs: { main: { - type: "procedure", - description: "Create a new song", + type: 'procedure', + description: 'Create a new song', input: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", - required: ["title", "artist", "album", "albumArtist"], + type: 'object', + required: ['title', 'artist', 'album', 'albumArtist'], properties: { title: { - type: "string", - description: "The title of the song", + type: 'string', + description: 'The title of the song', }, artist: { - type: "string", - description: "The artist of the song", + type: 'string', + description: 'The artist of the song', }, albumArtist: { - type: "string", + type: 'string', description: - "The album artist of the song, if different from the main artist", + 'The album artist of the song, if different from the main artist', }, album: { - type: "string", - description: "The album of the song, if applicable", + type: 'string', + description: 'The album of the song, if applicable', }, duration: { - type: "integer", - description: "The duration of the song in seconds", + type: 'integer', + description: 'The duration of the song in seconds', }, mbId: { - type: "string", - description: "The MusicBrainz ID of the song, if available", + type: 'string', + description: 'The MusicBrainz ID of the song, if available', }, albumArt: { - type: "string", - description: "The URL of the album art for the song", - format: "uri", + type: 'string', + description: 'The URL of the album art for the song', + format: 'uri', }, trackNumber: { - type: "integer", + type: 'integer', description: - "The track number of the song in the album, if applicable", + 'The track number of the song in the album, if applicable', }, releaseDate: { - type: "string", + type: 'string', description: - "The release date of the song, formatted as YYYY-MM-DD", + 'The release date of the song, formatted as YYYY-MM-DD', }, year: { - type: "integer", - description: "The year the song was released", + type: 'integer', + description: 'The year the song was released', }, discNumber: { - type: "integer", + type: 'integer', description: - "The disc number of the song in the album, if applicable", + 'The disc number of the song in the album, if applicable', }, lyrics: { - type: "string", - description: "The lyrics of the song, if available", + type: 'string', + description: 'The lyrics of the song, if available', }, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.song.defs#songViewDetailed", + type: 'ref', + ref: 'lex:app.rocksky.song.defs#songViewDetailed', }, }, }, @@ -3706,159 +3716,159 @@ export const schemaDict = { }, AppRockskySongDefs: { lexicon: 1, - id: "app.rocksky.song.defs", + id: 'app.rocksky.song.defs', defs: { songViewBasic: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the song.", + type: 'string', + description: 'The unique identifier of the song.', }, title: { - type: "string", - description: "The title of the song.", + type: 'string', + description: 'The title of the song.', }, artist: { - type: "string", - description: "The artist of the song.", + type: 'string', + description: 'The artist of the song.', }, albumArtist: { - type: "string", - description: "The artist of the album the song belongs to.", + type: 'string', + description: 'The artist of the album the song belongs to.', }, albumArt: { - type: "string", - description: "The URL of the album art image.", - format: "uri", + type: 'string', + description: 'The URL of the album art image.', + format: 'uri', }, uri: { - type: "string", - description: "The URI of the song.", - format: "at-uri", + type: 'string', + description: 'The URI of the song.', + format: 'at-uri', }, album: { - type: "string", - description: "The album of the song.", + type: 'string', + description: 'The album of the song.', }, duration: { - type: "integer", - description: "The duration of the song in milliseconds.", + type: 'integer', + description: 'The duration of the song in milliseconds.', }, trackNumber: { - type: "integer", - description: "The track number of the song in the album.", + type: 'integer', + description: 'The track number of the song in the album.', }, discNumber: { - type: "integer", - description: "The disc number of the song in the album.", + type: 'integer', + description: 'The disc number of the song in the album.', }, playCount: { - type: "integer", - description: "The number of times the song has been played.", + type: 'integer', + description: 'The number of times the song has been played.', minimum: 0, }, uniqueListeners: { - type: "integer", + type: 'integer', description: - "The number of unique listeners who have played the song.", + 'The number of unique listeners who have played the song.', minimum: 0, }, albumUri: { - type: "string", - description: "The URI of the album the song belongs to.", - format: "at-uri", + type: 'string', + description: 'The URI of the album the song belongs to.', + format: 'at-uri', }, artistUri: { - type: "string", - description: "The URI of the artist of the song.", - format: "at-uri", + type: 'string', + description: 'The URI of the artist of the song.', + format: 'at-uri', }, sha256: { - type: "string", - description: "The SHA256 hash of the song.", + type: 'string', + description: 'The SHA256 hash of the song.', }, createdAt: { - type: "string", - description: "The timestamp when the song was created.", - format: "datetime", + type: 'string', + description: 'The timestamp when the song was created.', + format: 'datetime', }, }, }, songViewDetailed: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the song.", + type: 'string', + description: 'The unique identifier of the song.', }, title: { - type: "string", - description: "The title of the song.", + type: 'string', + description: 'The title of the song.', }, artist: { - type: "string", - description: "The artist of the song.", + type: 'string', + description: 'The artist of the song.', }, albumArtist: { - type: "string", - description: "The artist of the album the song belongs to.", + type: 'string', + description: 'The artist of the album the song belongs to.', }, albumArt: { - type: "string", - description: "The URL of the album art image.", - format: "uri", + type: 'string', + description: 'The URL of the album art image.', + format: 'uri', }, uri: { - type: "string", - description: "The URI of the song.", - format: "at-uri", + type: 'string', + description: 'The URI of the song.', + format: 'at-uri', }, album: { - type: "string", - description: "The album of the song.", + type: 'string', + description: 'The album of the song.', }, duration: { - type: "integer", - description: "The duration of the song in milliseconds.", + type: 'integer', + description: 'The duration of the song in milliseconds.', }, trackNumber: { - type: "integer", - description: "The track number of the song in the album.", + type: 'integer', + description: 'The track number of the song in the album.', }, discNumber: { - type: "integer", - description: "The disc number of the song in the album.", + type: 'integer', + description: 'The disc number of the song in the album.', }, playCount: { - type: "integer", - description: "The number of times the song has been played.", + type: 'integer', + description: 'The number of times the song has been played.', minimum: 0, }, uniqueListeners: { - type: "integer", + type: 'integer', description: - "The number of unique listeners who have played the song.", + 'The number of unique listeners who have played the song.', minimum: 0, }, albumUri: { - type: "string", - description: "The URI of the album the song belongs to.", - format: "at-uri", + type: 'string', + description: 'The URI of the album the song belongs to.', + format: 'at-uri', }, artistUri: { - type: "string", - description: "The URI of the artist of the song.", - format: "at-uri", + type: 'string', + description: 'The URI of the artist of the song.', + format: 'at-uri', }, sha256: { - type: "string", - description: "The SHA256 hash of the song.", + type: 'string', + description: 'The SHA256 hash of the song.', }, createdAt: { - type: "string", - description: "The timestamp when the song was created.", - format: "datetime", + type: 'string', + description: 'The timestamp when the song was created.', + format: 'datetime', }, }, }, @@ -3866,27 +3876,27 @@ export const schemaDict = { }, AppRockskySongGetSong: { lexicon: 1, - id: "app.rocksky.song.getSong", + id: 'app.rocksky.song.getSong', defs: { main: { - type: "query", - description: "Get a song by its uri", + type: 'query', + description: 'Get a song by its uri', parameters: { - type: "params", - required: ["uri"], + type: 'params', + required: ['uri'], properties: { uri: { - type: "string", - description: "The unique identifier of the song to retrieve", - format: "at-uri", + type: 'string', + description: 'The unique identifier of the song to retrieve', + format: 'at-uri', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.song.defs#songViewDetailed", + type: 'ref', + ref: 'lex:app.rocksky.song.defs#songViewDetailed', }, }, }, @@ -3894,36 +3904,36 @@ export const schemaDict = { }, AppRockskySongGetSongs: { lexicon: 1, - id: "app.rocksky.song.getSongs", + id: 'app.rocksky.song.getSongs', defs: { main: { - type: "query", - description: "Get songs", + type: 'query', + description: 'Get songs', parameters: { - type: "params", + type: 'params', properties: { limit: { - type: "integer", - description: "The maximum number of songs to return", + type: 'integer', + description: 'The maximum number of songs to return', minimum: 1, }, offset: { - type: "integer", - description: "The offset for pagination", + type: 'integer', + description: 'The offset for pagination', minimum: 0, }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "object", + type: 'object', properties: { songs: { - type: "array", + type: 'array', items: { - type: "ref", - ref: "lex:app.rocksky.song.defs#songViewBasic", + type: 'ref', + ref: 'lex:app.rocksky.song.defs#songViewBasic', }, }, }, @@ -3934,144 +3944,144 @@ export const schemaDict = { }, AppRockskySong: { lexicon: 1, - id: "app.rocksky.song", + id: 'app.rocksky.song', defs: { main: { - type: "record", - description: "A declaration of a song.", - key: "tid", + type: 'record', + description: 'A declaration of a song.', + key: 'tid', record: { - type: "object", + type: 'object', required: [ - "title", - "artist", - "album", - "albumArtist", - "duration", - "createdAt", + 'title', + 'artist', + 'album', + 'albumArtist', + 'duration', + 'createdAt', ], properties: { title: { - type: "string", - description: "The title of the song.", + type: 'string', + description: 'The title of the song.', minLength: 1, maxLength: 512, }, artist: { - type: "string", - description: "The artist of the song.", + type: 'string', + description: 'The artist of the song.', minLength: 1, maxLength: 256, }, albumArtist: { - type: "string", - description: "The album artist of the song.", + type: 'string', + description: 'The album artist of the song.', minLength: 1, maxLength: 256, }, album: { - type: "string", - description: "The album of the song.", + type: 'string', + description: 'The album of the song.', minLength: 1, maxLength: 256, }, duration: { - type: "integer", - description: "The duration of the song in seconds.", + type: 'integer', + description: 'The duration of the song in seconds.', minimum: 1, }, trackNumber: { - type: "integer", - description: "The track number of the song in the album.", + type: 'integer', + description: 'The track number of the song in the album.', minimum: 1, }, discNumber: { - type: "integer", - description: "The disc number of the song in the album.", + type: 'integer', + description: 'The disc number of the song in the album.', minimum: 1, }, releaseDate: { - type: "string", - description: "The release date of the song.", - format: "datetime", + type: 'string', + description: 'The release date of the song.', + format: 'datetime', }, year: { - type: "integer", - description: "The year the song was released.", + type: 'integer', + description: 'The year the song was released.', }, genre: { - type: "string", - description: "The genre of the song.", + type: 'string', + description: 'The genre of the song.', minLength: 1, maxLength: 256, }, tags: { - type: "array", - description: "The tags of the song.", + type: 'array', + description: 'The tags of the song.', items: { - type: "string", + type: 'string', minLength: 1, maxLength: 256, }, }, composer: { - type: "string", - description: "The composer of the song.", + type: 'string', + description: 'The composer of the song.', maxLength: 256, }, lyrics: { - type: "string", - description: "The lyrics of the song.", + type: 'string', + description: 'The lyrics of the song.', maxLength: 10000, }, copyrightMessage: { - type: "string", - description: "The copyright message of the song.", + type: 'string', + description: 'The copyright message of the song.', maxLength: 256, }, wiki: { - type: "string", - description: "Informations about the song", + type: 'string', + description: 'Informations about the song', maxLength: 10000, }, albumArt: { - type: "blob", - description: "The album art of the song.", - accept: ["image/png", "image/jpeg"], + type: 'blob', + description: 'The album art of the song.', + accept: ['image/png', 'image/jpeg'], maxSize: 2000000, }, youtubeLink: { - type: "string", - description: "The YouTube link of the song.", - format: "uri", + type: 'string', + description: 'The YouTube link of the song.', + format: 'uri', }, spotifyLink: { - type: "string", - description: "The Spotify link of the song.", - format: "uri", + type: 'string', + description: 'The Spotify link of the song.', + format: 'uri', }, tidalLink: { - type: "string", - description: "The Tidal link of the song.", - format: "uri", + type: 'string', + description: 'The Tidal link of the song.', + format: 'uri', }, appleMusicLink: { - type: "string", - description: "The Apple Music link of the song.", - format: "uri", + type: 'string', + description: 'The Apple Music link of the song.', + format: 'uri', }, createdAt: { - type: "string", - description: "The date when the song was created.", - format: "datetime", + type: 'string', + description: 'The date when the song was created.', + format: 'datetime', }, mbid: { - type: "string", - description: "The MusicBrainz ID of the song.", + type: 'string', + description: 'The MusicBrainz ID of the song.', }, label: { - type: "string", - description: "The label of the song.", + type: 'string', + description: 'The label of the song.', maxLength: 256, }, }, @@ -4081,34 +4091,34 @@ export const schemaDict = { }, AppRockskySpotifyDefs: { lexicon: 1, - id: "app.rocksky.spotify.defs", + id: 'app.rocksky.spotify.defs', defs: { spotifyTrackView: { - type: "object", + type: 'object', properties: { id: { - type: "string", - description: "The unique identifier of the Spotify track.", + type: 'string', + description: 'The unique identifier of the Spotify track.', }, name: { - type: "string", - description: "The name of the track.", + type: 'string', + description: 'The name of the track.', }, artist: { - type: "string", - description: "The name of the artist.", + type: 'string', + description: 'The name of the artist.', }, album: { - type: "string", - description: "The name of the album.", + type: 'string', + description: 'The name of the album.', }, duration: { - type: "integer", - description: "The duration of the track in milliseconds.", + type: 'integer', + description: 'The duration of the track in milliseconds.', }, previewUrl: { - type: "string", - description: "A URL to a preview of the track.", + type: 'string', + description: 'A URL to a preview of the track.', }, }, }, @@ -4116,27 +4126,27 @@ export const schemaDict = { }, AppRockskySpotifyGetCurrentlyPlaying: { lexicon: 1, - id: "app.rocksky.spotify.getCurrentlyPlaying", + id: 'app.rocksky.spotify.getCurrentlyPlaying', defs: { main: { - type: "query", - description: "Get the currently playing track", + type: 'query', + description: 'Get the currently playing track', parameters: { - type: "params", + type: 'params', properties: { actor: { - type: "string", + type: 'string', description: - "Handle or DID of the actor to retrieve the currently playing track for. If not provided, defaults to the current user.", - format: "at-identifier", + 'Handle or DID of the actor to retrieve the currently playing track for. If not provided, defaults to the current user.', + format: 'at-identifier', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.player.defs#currentlyPlayingViewDetailed", + type: 'ref', + ref: 'lex:app.rocksky.player.defs#currentlyPlayingViewDetailed', }, }, }, @@ -4144,59 +4154,59 @@ export const schemaDict = { }, AppRockskySpotifyNext: { lexicon: 1, - id: "app.rocksky.spotify.next", + id: 'app.rocksky.spotify.next', defs: { main: { - type: "procedure", - description: "Play the next track in the queue", + type: 'procedure', + description: 'Play the next track in the queue', }, }, }, AppRockskySpotifyPause: { lexicon: 1, - id: "app.rocksky.spotify.pause", + id: 'app.rocksky.spotify.pause', defs: { main: { - type: "procedure", - description: "Pause the currently playing track", + type: 'procedure', + description: 'Pause the currently playing track', }, }, }, AppRockskySpotifyPlay: { lexicon: 1, - id: "app.rocksky.spotify.play", + id: 'app.rocksky.spotify.play', defs: { main: { - type: "procedure", - description: "Resume playback of the currently paused track", + type: 'procedure', + description: 'Resume playback of the currently paused track', }, }, }, AppRockskySpotifyPrevious: { lexicon: 1, - id: "app.rocksky.spotify.previous", + id: 'app.rocksky.spotify.previous', defs: { main: { - type: "procedure", - description: "Play the previous track in the queue", + type: 'procedure', + description: 'Play the previous track in the queue', }, }, }, AppRockskySpotifySeek: { lexicon: 1, - id: "app.rocksky.spotify.seek", + id: 'app.rocksky.spotify.seek', defs: { main: { - type: "procedure", + type: 'procedure', description: - "Seek to a specific position in the currently playing track", + 'Seek to a specific position in the currently playing track', parameters: { - type: "params", - required: ["position"], + type: 'params', + required: ['position'], properties: { position: { - type: "integer", - description: "The position in seconds to seek to", + type: 'integer', + description: 'The position in seconds to seek to', }, }, }, @@ -4205,30 +4215,30 @@ export const schemaDict = { }, AppRockskyStatsDefs: { lexicon: 1, - id: "app.rocksky.stats.defs", + id: 'app.rocksky.stats.defs', defs: { statsView: { - type: "object", + type: 'object', properties: { scrobbles: { - type: "integer", - description: "The total number of scrobbles.", + type: 'integer', + description: 'The total number of scrobbles.', }, artists: { - type: "integer", - description: "The total number of unique artists scrobbled.", + type: 'integer', + description: 'The total number of unique artists scrobbled.', }, lovedTracks: { - type: "integer", - description: "The total number of tracks marked as loved.", + type: 'integer', + description: 'The total number of tracks marked as loved.', }, albums: { - type: "integer", - description: "The total number of unique albums scrobbled.", + type: 'integer', + description: 'The total number of unique albums scrobbled.', }, tracks: { - type: "integer", - description: "The total number of unique tracks scrobbled.", + type: 'integer', + description: 'The total number of unique tracks scrobbled.', }, }, }, @@ -4236,26 +4246,26 @@ export const schemaDict = { }, AppRockskyStatsGetStats: { lexicon: 1, - id: "app.rocksky.stats.getStats", + id: 'app.rocksky.stats.getStats', defs: { main: { - type: "query", + type: 'query', parameters: { - type: "params", - required: ["did"], + type: 'params', + required: ['did'], properties: { did: { - type: "string", - description: "The DID or handle of the user to get stats for.", - format: "at-identifier", + type: 'string', + description: 'The DID or handle of the user to get stats for.', + format: 'at-identifier', }, }, }, output: { - encoding: "application/json", + encoding: 'application/json', schema: { - type: "ref", - ref: "lex:app.rocksky.stats.defs#statsView", + type: 'ref', + ref: 'lex:app.rocksky.stats.defs#statsView', }, }, }, @@ -4263,129 +4273,129 @@ export const schemaDict = { }, ComAtprotoRepoStrongRef: { lexicon: 1, - id: "com.atproto.repo.strongRef", - description: "A URI with a content-hash fingerprint.", + id: 'com.atproto.repo.strongRef', + description: 'A URI with a content-hash fingerprint.', defs: { main: { - type: "object", - required: ["uri", "cid"], + type: 'object', + required: ['uri', 'cid'], properties: { uri: { - type: "string", - format: "at-uri", + type: 'string', + format: 'at-uri', }, cid: { - type: "string", - format: "cid", + type: 'string', + format: 'cid', }, }, }, }, }, -} as const satisfies Record; +} as const satisfies Record -export const schemas = Object.values(schemaDict); -export const lexicons: Lexicons = new Lexicons(schemas); +export const schemas = Object.values(schemaDict) +export const lexicons: Lexicons = new Lexicons(schemas) export const ids = { - AppRockskyActorDefs: "app.rocksky.actor.defs", - AppRockskyActorGetActorAlbums: "app.rocksky.actor.getActorAlbums", - AppRockskyActorGetActorArtists: "app.rocksky.actor.getActorArtists", - AppRockskyActorGetActorLovedSongs: "app.rocksky.actor.getActorLovedSongs", - AppRockskyActorGetActorPlaylists: "app.rocksky.actor.getActorPlaylists", - AppRockskyActorGetActorScrobbles: "app.rocksky.actor.getActorScrobbles", - AppRockskyActorGetActorSongs: "app.rocksky.actor.getActorSongs", - AppRockskyActorGetProfile: "app.rocksky.actor.getProfile", - AppBskyActorProfile: "app.bsky.actor.profile", - AppRockskyAlbum: "app.rocksky.album", - AppRockskyAlbumDefs: "app.rocksky.album.defs", - AppRockskyAlbumGetAlbum: "app.rocksky.album.getAlbum", - AppRockskyAlbumGetAlbums: "app.rocksky.album.getAlbums", - AppRockskyAlbumGetAlbumTracks: "app.rocksky.album.getAlbumTracks", - AppRockskyApikeyCreateApikey: "app.rocksky.apikey.createApikey", - AppRockskyApikeyDefs: "app.rocksky.apikey.defs", - AppRockskyApikeysDefs: "app.rocksky.apikeys.defs", - AppRockskyApikeyGetApikeys: "app.rocksky.apikey.getApikeys", - AppRockskyApikeyRemoveApikey: "app.rocksky.apikey.removeApikey", - AppRockskyApikeyUpdateApikey: "app.rocksky.apikey.updateApikey", - AppRockskyArtist: "app.rocksky.artist", - AppRockskyArtistDefs: "app.rocksky.artist.defs", - AppRockskyArtistGetArtistAlbums: "app.rocksky.artist.getArtistAlbums", - AppRockskyArtistGetArtist: "app.rocksky.artist.getArtist", - AppRockskyArtistGetArtists: "app.rocksky.artist.getArtists", - AppRockskyArtistGetArtistTracks: "app.rocksky.artist.getArtistTracks", - AppRockskyChartsDefs: "app.rocksky.charts.defs", - AppRockskyChartsGetScrobblesChart: "app.rocksky.charts.getScrobblesChart", - AppRockskyDropboxDefs: "app.rocksky.dropbox.defs", - AppRockskyDropboxDownloadFile: "app.rocksky.dropbox.downloadFile", - AppRockskyDropboxGetFiles: "app.rocksky.dropbox.getFiles", - AppRockskyDropboxGetMetadata: "app.rocksky.dropbox.getMetadata", - AppRockskyDropboxGetTemporaryLink: "app.rocksky.dropbox.getTemporaryLink", - AppRockskyFeedDefs: "app.rocksky.feed.defs", - AppRockskyFeedGetNowPlayings: "app.rocksky.feed.getNowPlayings", - AppRockskyFeedSearch: "app.rocksky.feed.search", - AppRockskyGoogledriveDefs: "app.rocksky.googledrive.defs", - AppRockskyGoogledriveDownloadFile: "app.rocksky.googledrive.downloadFile", - AppRockskyGoogledriveGetFile: "app.rocksky.googledrive.getFile", - AppRockskyGoogledriveGetFiles: "app.rocksky.googledrive.getFiles", - AppRockskyLikeDislikeShout: "app.rocksky.like.dislikeShout", - AppRockskyLikeDislikeSong: "app.rocksky.like.dislikeSong", - AppRockskyLike: "app.rocksky.like", - AppRockskyLikeLikeShout: "app.rocksky.like.likeShout", - AppRockskyLikeLikeSong: "app.rocksky.like.likeSong", - AppRockskyPlayerAddDirectoryToQueue: "app.rocksky.player.addDirectoryToQueue", - AppRockskyPlayerAddItemsToQueue: "app.rocksky.player.addItemsToQueue", - AppRockskyPlayerDefs: "app.rocksky.player.defs", - AppRockskyPlayerGetCurrentlyPlaying: "app.rocksky.player.getCurrentlyPlaying", - AppRockskyPlayerGetPlaybackQueue: "app.rocksky.player.getPlaybackQueue", - AppRockskyPlayerNext: "app.rocksky.player.next", - AppRockskyPlayerPause: "app.rocksky.player.pause", - AppRockskyPlayerPlayDirectory: "app.rocksky.player.playDirectory", - AppRockskyPlayerPlayFile: "app.rocksky.player.playFile", - AppRockskyPlayerPlay: "app.rocksky.player.play", - AppRockskyPlayerPrevious: "app.rocksky.player.previous", - AppRockskyPlayerSeek: "app.rocksky.player.seek", - AppRockskyPlaylistCreatePlaylist: "app.rocksky.playlist.createPlaylist", - AppRockskyPlaylistDefs: "app.rocksky.playlist.defs", - AppRockskyPlaylistGetPlaylist: "app.rocksky.playlist.getPlaylist", - AppRockskyPlaylistGetPlaylists: "app.rocksky.playlist.getPlaylists", - AppRockskyPlaylistInsertDirectory: "app.rocksky.playlist.insertDirectory", - AppRockskyPlaylistInsertFiles: "app.rocksky.playlist.insertFiles", - AppRockskyPlaylist: "app.rocksky.playlist", - AppRockskyPlaylistRemovePlaylist: "app.rocksky.playlist.removePlaylist", - AppRockskyPlaylistRemoveTrack: "app.rocksky.playlist.removeTrack", - AppRockskyPlaylistStartPlaylist: "app.rocksky.playlist.startPlaylist", - AppRockskyRadioDefs: "app.rocksky.radio.defs", - AppRockskyRadio: "app.rocksky.radio", - AppRockskyScrobbleCreateScrobble: "app.rocksky.scrobble.createScrobble", - AppRockskyScrobbleDefs: "app.rocksky.scrobble.defs", - AppRockskyScrobbleGetScrobble: "app.rocksky.scrobble.getScrobble", - AppRockskyScrobbleGetScrobbles: "app.rocksky.scrobble.getScrobbles", - AppRockskyScrobble: "app.rocksky.scrobble", - AppRockskyShoutCreateShout: "app.rocksky.shout.createShout", - AppRockskyShoutDefs: "app.rocksky.shout.defs", - AppRockskyShoutGetAlbumShouts: "app.rocksky.shout.getAlbumShouts", - AppRockskyShoutGetArtistShouts: "app.rocksky.shout.getArtistShouts", - AppRockskyShoutGetProfileShouts: "app.rocksky.shout.getProfileShouts", - AppRockskyShoutGetShoutReplies: "app.rocksky.shout.getShoutReplies", - AppRockskyShoutGetTrackShouts: "app.rocksky.shout.getTrackShouts", - AppRockskyShoutRemoveShout: "app.rocksky.shout.removeShout", - AppRockskyShoutReplyShout: "app.rocksky.shout.replyShout", - AppRockskyShoutReportShout: "app.rocksky.shout.reportShout", - AppRockskyShout: "app.rocksky.shout", - AppRockskySongCreateSong: "app.rocksky.song.createSong", - AppRockskySongDefs: "app.rocksky.song.defs", - AppRockskySongGetSong: "app.rocksky.song.getSong", - AppRockskySongGetSongs: "app.rocksky.song.getSongs", - AppRockskySong: "app.rocksky.song", - AppRockskySpotifyDefs: "app.rocksky.spotify.defs", + AppRockskyActorDefs: 'app.rocksky.actor.defs', + AppRockskyActorGetActorAlbums: 'app.rocksky.actor.getActorAlbums', + AppRockskyActorGetActorArtists: 'app.rocksky.actor.getActorArtists', + AppRockskyActorGetActorLovedSongs: 'app.rocksky.actor.getActorLovedSongs', + AppRockskyActorGetActorPlaylists: 'app.rocksky.actor.getActorPlaylists', + AppRockskyActorGetActorScrobbles: 'app.rocksky.actor.getActorScrobbles', + AppRockskyActorGetActorSongs: 'app.rocksky.actor.getActorSongs', + AppRockskyActorGetProfile: 'app.rocksky.actor.getProfile', + AppBskyActorProfile: 'app.bsky.actor.profile', + AppRockskyAlbum: 'app.rocksky.album', + AppRockskyAlbumDefs: 'app.rocksky.album.defs', + AppRockskyAlbumGetAlbum: 'app.rocksky.album.getAlbum', + AppRockskyAlbumGetAlbums: 'app.rocksky.album.getAlbums', + AppRockskyAlbumGetAlbumTracks: 'app.rocksky.album.getAlbumTracks', + AppRockskyApikeyCreateApikey: 'app.rocksky.apikey.createApikey', + AppRockskyApikeyDefs: 'app.rocksky.apikey.defs', + AppRockskyApikeysDefs: 'app.rocksky.apikeys.defs', + AppRockskyApikeyGetApikeys: 'app.rocksky.apikey.getApikeys', + AppRockskyApikeyRemoveApikey: 'app.rocksky.apikey.removeApikey', + AppRockskyApikeyUpdateApikey: 'app.rocksky.apikey.updateApikey', + AppRockskyArtist: 'app.rocksky.artist', + AppRockskyArtistDefs: 'app.rocksky.artist.defs', + AppRockskyArtistGetArtistAlbums: 'app.rocksky.artist.getArtistAlbums', + AppRockskyArtistGetArtist: 'app.rocksky.artist.getArtist', + AppRockskyArtistGetArtists: 'app.rocksky.artist.getArtists', + AppRockskyArtistGetArtistTracks: 'app.rocksky.artist.getArtistTracks', + AppRockskyChartsDefs: 'app.rocksky.charts.defs', + AppRockskyChartsGetScrobblesChart: 'app.rocksky.charts.getScrobblesChart', + AppRockskyDropboxDefs: 'app.rocksky.dropbox.defs', + AppRockskyDropboxDownloadFile: 'app.rocksky.dropbox.downloadFile', + AppRockskyDropboxGetFiles: 'app.rocksky.dropbox.getFiles', + AppRockskyDropboxGetMetadata: 'app.rocksky.dropbox.getMetadata', + AppRockskyDropboxGetTemporaryLink: 'app.rocksky.dropbox.getTemporaryLink', + AppRockskyFeedDefs: 'app.rocksky.feed.defs', + AppRockskyFeedGetNowPlayings: 'app.rocksky.feed.getNowPlayings', + AppRockskyFeedSearch: 'app.rocksky.feed.search', + AppRockskyGoogledriveDefs: 'app.rocksky.googledrive.defs', + AppRockskyGoogledriveDownloadFile: 'app.rocksky.googledrive.downloadFile', + AppRockskyGoogledriveGetFile: 'app.rocksky.googledrive.getFile', + AppRockskyGoogledriveGetFiles: 'app.rocksky.googledrive.getFiles', + AppRockskyLikeDislikeShout: 'app.rocksky.like.dislikeShout', + AppRockskyLikeDislikeSong: 'app.rocksky.like.dislikeSong', + AppRockskyLike: 'app.rocksky.like', + AppRockskyLikeLikeShout: 'app.rocksky.like.likeShout', + AppRockskyLikeLikeSong: 'app.rocksky.like.likeSong', + AppRockskyPlayerAddDirectoryToQueue: 'app.rocksky.player.addDirectoryToQueue', + AppRockskyPlayerAddItemsToQueue: 'app.rocksky.player.addItemsToQueue', + AppRockskyPlayerDefs: 'app.rocksky.player.defs', + AppRockskyPlayerGetCurrentlyPlaying: 'app.rocksky.player.getCurrentlyPlaying', + AppRockskyPlayerGetPlaybackQueue: 'app.rocksky.player.getPlaybackQueue', + AppRockskyPlayerNext: 'app.rocksky.player.next', + AppRockskyPlayerPause: 'app.rocksky.player.pause', + AppRockskyPlayerPlayDirectory: 'app.rocksky.player.playDirectory', + AppRockskyPlayerPlayFile: 'app.rocksky.player.playFile', + AppRockskyPlayerPlay: 'app.rocksky.player.play', + AppRockskyPlayerPrevious: 'app.rocksky.player.previous', + AppRockskyPlayerSeek: 'app.rocksky.player.seek', + AppRockskyPlaylistCreatePlaylist: 'app.rocksky.playlist.createPlaylist', + AppRockskyPlaylistDefs: 'app.rocksky.playlist.defs', + AppRockskyPlaylistGetPlaylist: 'app.rocksky.playlist.getPlaylist', + AppRockskyPlaylistGetPlaylists: 'app.rocksky.playlist.getPlaylists', + AppRockskyPlaylistInsertDirectory: 'app.rocksky.playlist.insertDirectory', + AppRockskyPlaylistInsertFiles: 'app.rocksky.playlist.insertFiles', + AppRockskyPlaylist: 'app.rocksky.playlist', + AppRockskyPlaylistRemovePlaylist: 'app.rocksky.playlist.removePlaylist', + AppRockskyPlaylistRemoveTrack: 'app.rocksky.playlist.removeTrack', + AppRockskyPlaylistStartPlaylist: 'app.rocksky.playlist.startPlaylist', + AppRockskyRadioDefs: 'app.rocksky.radio.defs', + AppRockskyRadio: 'app.rocksky.radio', + AppRockskyScrobbleCreateScrobble: 'app.rocksky.scrobble.createScrobble', + AppRockskyScrobbleDefs: 'app.rocksky.scrobble.defs', + AppRockskyScrobbleGetScrobble: 'app.rocksky.scrobble.getScrobble', + AppRockskyScrobbleGetScrobbles: 'app.rocksky.scrobble.getScrobbles', + AppRockskyScrobble: 'app.rocksky.scrobble', + AppRockskyShoutCreateShout: 'app.rocksky.shout.createShout', + AppRockskyShoutDefs: 'app.rocksky.shout.defs', + AppRockskyShoutGetAlbumShouts: 'app.rocksky.shout.getAlbumShouts', + AppRockskyShoutGetArtistShouts: 'app.rocksky.shout.getArtistShouts', + AppRockskyShoutGetProfileShouts: 'app.rocksky.shout.getProfileShouts', + AppRockskyShoutGetShoutReplies: 'app.rocksky.shout.getShoutReplies', + AppRockskyShoutGetTrackShouts: 'app.rocksky.shout.getTrackShouts', + AppRockskyShoutRemoveShout: 'app.rocksky.shout.removeShout', + AppRockskyShoutReplyShout: 'app.rocksky.shout.replyShout', + AppRockskyShoutReportShout: 'app.rocksky.shout.reportShout', + AppRockskyShout: 'app.rocksky.shout', + AppRockskySongCreateSong: 'app.rocksky.song.createSong', + AppRockskySongDefs: 'app.rocksky.song.defs', + AppRockskySongGetSong: 'app.rocksky.song.getSong', + AppRockskySongGetSongs: 'app.rocksky.song.getSongs', + AppRockskySong: 'app.rocksky.song', + AppRockskySpotifyDefs: 'app.rocksky.spotify.defs', AppRockskySpotifyGetCurrentlyPlaying: - "app.rocksky.spotify.getCurrentlyPlaying", - AppRockskySpotifyNext: "app.rocksky.spotify.next", - AppRockskySpotifyPause: "app.rocksky.spotify.pause", - AppRockskySpotifyPlay: "app.rocksky.spotify.play", - AppRockskySpotifyPrevious: "app.rocksky.spotify.previous", - AppRockskySpotifySeek: "app.rocksky.spotify.seek", - AppRockskyStatsDefs: "app.rocksky.stats.defs", - AppRockskyStatsGetStats: "app.rocksky.stats.getStats", - ComAtprotoRepoStrongRef: "com.atproto.repo.strongRef", -}; + 'app.rocksky.spotify.getCurrentlyPlaying', + AppRockskySpotifyNext: 'app.rocksky.spotify.next', + AppRockskySpotifyPause: 'app.rocksky.spotify.pause', + AppRockskySpotifyPlay: 'app.rocksky.spotify.play', + AppRockskySpotifyPrevious: 'app.rocksky.spotify.previous', + AppRockskySpotifySeek: 'app.rocksky.spotify.seek', + AppRockskyStatsDefs: 'app.rocksky.stats.defs', + AppRockskyStatsGetStats: 'app.rocksky.stats.getStats', + ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef', +} diff --git a/apps/api/src/lexicon/types/app/bsky/actor/profile.ts b/apps/api/src/lexicon/types/app/bsky/actor/profile.ts index 119a7fb1..17882944 100644 --- a/apps/api/src/lexicon/types/app/bsky/actor/profile.ts +++ b/apps/api/src/lexicon/types/app/bsky/actor/profile.ts @@ -1,38 +1,38 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type * as ComAtprotoLabelDefs from "../../../com/atproto/label/defs"; -import type * as ComAtprotoRepoStrongRef from "../../../com/atproto/repo/strongRef"; +import type { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs' +import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef' export interface Record { - displayName?: string; + displayName?: string /** Free-form profile description text. */ - description?: string; + description?: string /** Small image to be displayed next to posts from account. AKA, 'profile picture' */ - avatar?: BlobRef; + avatar?: BlobRef /** Larger horizontal image to display behind profile view. */ - banner?: BlobRef; + banner?: BlobRef labels?: | ComAtprotoLabelDefs.SelfLabels - | { $type: string; [k: string]: unknown }; - joinedViaStarterPack?: ComAtprotoRepoStrongRef.Main; - createdAt?: string; - [k: string]: unknown; + | { $type: string; [k: string]: unknown } + joinedViaStarterPack?: ComAtprotoRepoStrongRef.Main + createdAt?: string + [k: string]: unknown } export function isRecord(v: unknown): v is Record { return ( isObj(v) && - hasProp(v, "$type") && - (v.$type === "app.bsky.actor.profile#main" || - v.$type === "app.bsky.actor.profile") - ); + hasProp(v, '$type') && + (v.$type === 'app.bsky.actor.profile#main' || + v.$type === 'app.bsky.actor.profile') + ) } export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate("app.bsky.actor.profile#main", v); + return lexicons.validate('app.bsky.actor.profile#main', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/actor/defs.ts b/apps/api/src/lexicon/types/app/rocksky/actor/defs.ts index 3275091e..243ad079 100644 --- a/apps/api/src/lexicon/types/app/rocksky/actor/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/actor/defs.ts @@ -1,67 +1,67 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' export interface ProfileViewDetailed { /** The unique identifier of the actor. */ - id?: string; + id?: string /** The DID of the actor. */ - did?: string; + did?: string /** The handle of the actor. */ - handle?: string; + handle?: string /** The display name of the actor. */ - displayName?: string; + displayName?: string /** The URL of the actor's avatar image. */ - avatar?: string; + avatar?: string /** The date and time when the actor was created. */ - createdAt?: string; + createdAt?: string /** The date and time when the actor was last updated. */ - updatedAt?: string; - [k: string]: unknown; + updatedAt?: string + [k: string]: unknown } export function isProfileViewDetailed(v: unknown): v is ProfileViewDetailed { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.actor.defs#profileViewDetailed" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.actor.defs#profileViewDetailed' + ) } export function validateProfileViewDetailed(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.actor.defs#profileViewDetailed", v); + return lexicons.validate('app.rocksky.actor.defs#profileViewDetailed', v) } export interface ProfileViewBasic { /** The unique identifier of the actor. */ - id?: string; + id?: string /** The DID of the actor. */ - did?: string; + did?: string /** The handle of the actor. */ - handle?: string; + handle?: string /** The display name of the actor. */ - displayName?: string; + displayName?: string /** The URL of the actor's avatar image. */ - avatar?: string; + avatar?: string /** The date and time when the actor was created. */ - createdAt?: string; + createdAt?: string /** The date and time when the actor was last updated. */ - updatedAt?: string; - [k: string]: unknown; + updatedAt?: string + [k: string]: unknown } export function isProfileViewBasic(v: unknown): v is ProfileViewBasic { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.actor.defs#profileViewBasic" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.actor.defs#profileViewBasic' + ) } export function validateProfileViewBasic(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.actor.defs#profileViewBasic", v); + return lexicons.validate('app.rocksky.actor.defs#profileViewBasic', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/actor/getActorAlbums.ts b/apps/api/src/lexicon/types/app/rocksky/actor/getActorAlbums.ts index 91b9d83e..43d06bfd 100644 --- a/apps/api/src/lexicon/types/app/rocksky/actor/getActorAlbums.ts +++ b/apps/api/src/lexicon/types/app/rocksky/actor/getActorAlbums.ts @@ -1,52 +1,52 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyAlbumDefs from "../album/defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyAlbumDefs from '../album/defs' export interface QueryParams { /** The DID or handle of the actor */ - did: string; + did: string /** The maximum number of albums to return */ - limit?: number; + limit?: number /** The offset for pagination */ - offset?: number; + offset?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - albums?: AppRockskyAlbumDefs.AlbumViewBasic[]; - [k: string]: unknown; + albums?: AppRockskyAlbumDefs.AlbumViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/actor/getActorArtists.ts b/apps/api/src/lexicon/types/app/rocksky/actor/getActorArtists.ts index ec112805..22b4b860 100644 --- a/apps/api/src/lexicon/types/app/rocksky/actor/getActorArtists.ts +++ b/apps/api/src/lexicon/types/app/rocksky/actor/getActorArtists.ts @@ -1,52 +1,52 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyArtistDefs from "../artist/defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyArtistDefs from '../artist/defs' export interface QueryParams { /** The DID or handle of the actor */ - did: string; + did: string /** The maximum number of albums to return */ - limit?: number; + limit?: number /** The offset for pagination */ - offset?: number; + offset?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - artists?: AppRockskyArtistDefs.ArtistViewBasic[]; - [k: string]: unknown; + artists?: AppRockskyArtistDefs.ArtistViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/actor/getActorLovedSongs.ts b/apps/api/src/lexicon/types/app/rocksky/actor/getActorLovedSongs.ts index b77438ca..8a1a75e9 100644 --- a/apps/api/src/lexicon/types/app/rocksky/actor/getActorLovedSongs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/actor/getActorLovedSongs.ts @@ -1,52 +1,52 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskySongDefs from "../song/defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskySongDefs from '../song/defs' export interface QueryParams { /** The DID or handle of the actor */ - did: string; + did: string /** The maximum number of albums to return */ - limit?: number; + limit?: number /** The offset for pagination */ - offset?: number; + offset?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - tracks?: AppRockskySongDefs.SongViewBasic[]; - [k: string]: unknown; + tracks?: AppRockskySongDefs.SongViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/actor/getActorPlaylists.ts b/apps/api/src/lexicon/types/app/rocksky/actor/getActorPlaylists.ts index 4f3edadc..ceb752ec 100644 --- a/apps/api/src/lexicon/types/app/rocksky/actor/getActorPlaylists.ts +++ b/apps/api/src/lexicon/types/app/rocksky/actor/getActorPlaylists.ts @@ -1,52 +1,52 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyPlaylistDefs from "../playlist/defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyPlaylistDefs from '../playlist/defs' export interface QueryParams { /** The DID or handle of the actor */ - did: string; + did: string /** The maximum number of albums to return */ - limit?: number; + limit?: number /** The offset for pagination */ - offset?: number; + offset?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - playlists?: AppRockskyPlaylistDefs.PlaylistViewBasic[]; - [k: string]: unknown; + playlists?: AppRockskyPlaylistDefs.PlaylistViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/actor/getActorScrobbles.ts b/apps/api/src/lexicon/types/app/rocksky/actor/getActorScrobbles.ts index 2fcf11a8..06dc2bba 100644 --- a/apps/api/src/lexicon/types/app/rocksky/actor/getActorScrobbles.ts +++ b/apps/api/src/lexicon/types/app/rocksky/actor/getActorScrobbles.ts @@ -1,52 +1,52 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyScrobbleDefs from "../scrobble/defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyScrobbleDefs from '../scrobble/defs' export interface QueryParams { /** The DID or handle of the actor */ - did: string; + did: string /** The maximum number of albums to return */ - limit?: number; + limit?: number /** The offset for pagination */ - offset?: number; + offset?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - scrobbles?: AppRockskyScrobbleDefs.ScrobbleViewBasic[]; - [k: string]: unknown; + scrobbles?: AppRockskyScrobbleDefs.ScrobbleViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/actor/getActorSongs.ts b/apps/api/src/lexicon/types/app/rocksky/actor/getActorSongs.ts index cc79c110..73fa06b1 100644 --- a/apps/api/src/lexicon/types/app/rocksky/actor/getActorSongs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/actor/getActorSongs.ts @@ -1,52 +1,52 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskySongDefs from "../song/defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskySongDefs from '../song/defs' export interface QueryParams { /** The DID or handle of the actor */ - did: string; + did: string /** The maximum number of albums to return */ - limit?: number; + limit?: number /** The offset for pagination */ - offset?: number; + offset?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - songs?: AppRockskySongDefs.SongViewBasic[]; - [k: string]: unknown; + songs?: AppRockskySongDefs.SongViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/actor/getProfile.ts b/apps/api/src/lexicon/types/app/rocksky/actor/getProfile.ts index ed78b3d2..ae11ca31 100644 --- a/apps/api/src/lexicon/types/app/rocksky/actor/getProfile.ts +++ b/apps/api/src/lexicon/types/app/rocksky/actor/getProfile.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyActorDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyActorDefs from './defs' export interface QueryParams { /** The DID or handle of the actor */ - did?: string; + did?: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyActorDefs.ProfileViewDetailed; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyActorDefs.ProfileViewDetailed +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/album.ts b/apps/api/src/lexicon/types/app/rocksky/album.ts index 3f9661c9..76b0c2fe 100644 --- a/apps/api/src/lexicon/types/app/rocksky/album.ts +++ b/apps/api/src/lexicon/types/app/rocksky/album.ts @@ -1,49 +1,49 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../lexicons"; -import { isObj, hasProp } from "../../../util"; -import { CID } from "multiformats/cid"; +import type { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../lexicons' +import { isObj, hasProp } from '../../../util' +import { CID } from 'multiformats/cid' export interface Record { /** The title of the album. */ - title: string; + title: string /** The artist of the album. */ - artist: string; + artist: string /** The duration of the album in seconds. */ - duration?: number; + duration?: number /** The release date of the album. */ - releaseDate?: string; + releaseDate?: string /** The year the album was released. */ - year?: number; + year?: number /** The genre of the album. */ - genre?: string; + genre?: string /** The album art of the album. */ - albumArt?: BlobRef; + albumArt?: BlobRef /** The tags of the album. */ - tags?: string[]; + tags?: string[] /** The YouTube link of the album. */ - youtubeLink?: string; + youtubeLink?: string /** The Spotify link of the album. */ - spotifyLink?: string; + spotifyLink?: string /** The tidal link of the album. */ - tidalLink?: string; + tidalLink?: string /** The Apple Music link of the album. */ - appleMusicLink?: string; + appleMusicLink?: string /** The date and time when the album was created. */ - createdAt: string; - [k: string]: unknown; + createdAt: string + [k: string]: unknown } export function isRecord(v: unknown): v is Record { return ( isObj(v) && - hasProp(v, "$type") && - (v.$type === "app.rocksky.album#main" || v.$type === "app.rocksky.album") - ); + hasProp(v, '$type') && + (v.$type === 'app.rocksky.album#main' || v.$type === 'app.rocksky.album') + ) } export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.album#main", v); + return lexicons.validate('app.rocksky.album#main', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/album/defs.ts b/apps/api/src/lexicon/types/app/rocksky/album/defs.ts index 3e48dc0b..420c29e5 100644 --- a/apps/api/src/lexicon/types/app/rocksky/album/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/album/defs.ts @@ -1,85 +1,85 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type * as AppRockskySongDefsSongViewBasic from "../song/defs/songViewBasic"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type * as AppRockskySongDefsSongViewBasic from '../song/defs/songViewBasic' export interface AlbumViewBasic { /** The unique identifier of the album. */ - id?: string; + id?: string /** The URI of the album. */ - uri?: string; + uri?: string /** The title of the album. */ - title?: string; + title?: string /** The artist of the album. */ - artist?: string; + artist?: string /** The URI of the album's artist. */ - artistUri?: string; + artistUri?: string /** The year the album was released. */ - year?: number; + year?: number /** The URL of the album art image. */ - albumArt?: string; + albumArt?: string /** The release date of the album. */ - releaseDate?: string; + releaseDate?: string /** The SHA256 hash of the album. */ - sha256?: string; + sha256?: string /** The number of times the album has been played. */ - playCount?: number; + playCount?: number /** The number of unique listeners who have played the album. */ - uniqueListeners?: number; - [k: string]: unknown; + uniqueListeners?: number + [k: string]: unknown } export function isAlbumViewBasic(v: unknown): v is AlbumViewBasic { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.album.defs#albumViewBasic" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.album.defs#albumViewBasic' + ) } export function validateAlbumViewBasic(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.album.defs#albumViewBasic", v); + return lexicons.validate('app.rocksky.album.defs#albumViewBasic', v) } export interface AlbumViewDetailed { /** The unique identifier of the album. */ - id?: string; + id?: string /** The URI of the album. */ - uri?: string; + uri?: string /** The title of the album. */ - title?: string; + title?: string /** The artist of the album. */ - artist?: string; + artist?: string /** The URI of the album's artist. */ - artistUri?: string; + artistUri?: string /** The year the album was released. */ - year?: number; + year?: number /** The URL of the album art image. */ - albumArt?: string; + albumArt?: string /** The release date of the album. */ - releaseDate?: string; + releaseDate?: string /** The SHA256 hash of the album. */ - sha256?: string; + sha256?: string /** The number of times the album has been played. */ - playCount?: number; + playCount?: number /** The number of unique listeners who have played the album. */ - uniqueListeners?: number; - tracks?: AppRockskySongDefsSongViewBasic.Main[]; - [k: string]: unknown; + uniqueListeners?: number + tracks?: AppRockskySongDefsSongViewBasic.Main[] + [k: string]: unknown } export function isAlbumViewDetailed(v: unknown): v is AlbumViewDetailed { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.album.defs#albumViewDetailed" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.album.defs#albumViewDetailed' + ) } export function validateAlbumViewDetailed(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.album.defs#albumViewDetailed", v); + return lexicons.validate('app.rocksky.album.defs#albumViewDetailed', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/album/getAlbum.ts b/apps/api/src/lexicon/types/app/rocksky/album/getAlbum.ts index 0b1c2f51..2767a0ca 100644 --- a/apps/api/src/lexicon/types/app/rocksky/album/getAlbum.ts +++ b/apps/api/src/lexicon/types/app/rocksky/album/getAlbum.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyAlbumDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyAlbumDefs from './defs' export interface QueryParams { /** The URI of the album to retrieve. */ - uri: string; + uri: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyAlbumDefs.AlbumViewDetailed; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyAlbumDefs.AlbumViewDetailed +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/album/getAlbumTracks.ts b/apps/api/src/lexicon/types/app/rocksky/album/getAlbumTracks.ts index c23ccd50..3ca7b5be 100644 --- a/apps/api/src/lexicon/types/app/rocksky/album/getAlbumTracks.ts +++ b/apps/api/src/lexicon/types/app/rocksky/album/getAlbumTracks.ts @@ -1,48 +1,48 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskySongDefs from "../song/defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskySongDefs from '../song/defs' export interface QueryParams { /** The URI of the album to retrieve tracks from */ - uri: string; + uri: string } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - tracks?: AppRockskySongDefs.SongViewBasic[]; - [k: string]: unknown; + tracks?: AppRockskySongDefs.SongViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/album/getAlbums.ts b/apps/api/src/lexicon/types/app/rocksky/album/getAlbums.ts index d64cacb1..09696349 100644 --- a/apps/api/src/lexicon/types/app/rocksky/album/getAlbums.ts +++ b/apps/api/src/lexicon/types/app/rocksky/album/getAlbums.ts @@ -1,50 +1,50 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyAlbumDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyAlbumDefs from './defs' export interface QueryParams { /** The maximum number of albums to return */ - limit?: number; + limit?: number /** The offset for pagination */ - offset?: number; + offset?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - albums?: AppRockskyAlbumDefs.AlbumViewBasic[]; - [k: string]: unknown; + albums?: AppRockskyAlbumDefs.AlbumViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/apikey/createApikey.ts b/apps/api/src/lexicon/types/app/rocksky/apikey/createApikey.ts index 5e12653e..092bd944 100644 --- a/apps/api/src/lexicon/types/app/rocksky/apikey/createApikey.ts +++ b/apps/api/src/lexicon/types/app/rocksky/apikey/createApikey.ts @@ -1,51 +1,51 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyApikeyDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyApikeyDefs from './defs' -export type QueryParams = {}; +export type QueryParams = {} export interface InputSchema { /** The name of the API key. */ - name: string; + name: string /** A description for the API key. */ - description?: string; - [k: string]: unknown; + description?: string + [k: string]: unknown } -export type OutputSchema = AppRockskyApikeyDefs.ApiKey; +export type OutputSchema = AppRockskyApikeyDefs.ApiKey export interface HandlerInput { - encoding: "application/json"; - body: InputSchema; + encoding: 'application/json' + body: InputSchema } export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/apikey/defs.ts b/apps/api/src/lexicon/types/app/rocksky/apikey/defs.ts index 2ffbe945..c936aa24 100644 --- a/apps/api/src/lexicon/types/app/rocksky/apikey/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/apikey/defs.ts @@ -1,31 +1,31 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' export interface ApiKeyView { /** The unique identifier of the API key. */ - id?: string; + id?: string /** The name of the API key. */ - name?: string; + name?: string /** A description for the API key. */ - description?: string; + description?: string /** The date and time when the API key was created. */ - createdAt?: string; - [k: string]: unknown; + createdAt?: string + [k: string]: unknown } export function isApiKeyView(v: unknown): v is ApiKeyView { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.apikey.defs#apiKeyView" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.apikey.defs#apiKeyView' + ) } export function validateApiKeyView(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.apikey.defs#apiKeyView", v); + return lexicons.validate('app.rocksky.apikey.defs#apiKeyView', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/apikey/getApikeys.ts b/apps/api/src/lexicon/types/app/rocksky/apikey/getApikeys.ts index dd82a755..b71be12d 100644 --- a/apps/api/src/lexicon/types/app/rocksky/apikey/getApikeys.ts +++ b/apps/api/src/lexicon/types/app/rocksky/apikey/getApikeys.ts @@ -1,50 +1,50 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyApikeyDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyApikeyDefs from './defs' export interface QueryParams { /** The number of API keys to skip before starting to collect the result set. */ - offset?: number; + offset?: number /** The number of API keys to return per page. */ - limit?: number; + limit?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - apiKeys?: AppRockskyApikeyDefs.ApikeyView[]; - [k: string]: unknown; + apiKeys?: AppRockskyApikeyDefs.ApikeyView[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/apikey/removeApikey.ts b/apps/api/src/lexicon/types/app/rocksky/apikey/removeApikey.ts index f84c6257..d07978ba 100644 --- a/apps/api/src/lexicon/types/app/rocksky/apikey/removeApikey.ts +++ b/apps/api/src/lexicon/types/app/rocksky/apikey/removeApikey.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyApikeyDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyApikeyDefs from './defs' export interface QueryParams { /** The ID of the API key to remove. */ - id: string; + id: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyApikeyDefs.ApiKey; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyApikeyDefs.ApiKey +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/apikey/updateApikey.ts b/apps/api/src/lexicon/types/app/rocksky/apikey/updateApikey.ts index 639a3d05..711e03fc 100644 --- a/apps/api/src/lexicon/types/app/rocksky/apikey/updateApikey.ts +++ b/apps/api/src/lexicon/types/app/rocksky/apikey/updateApikey.ts @@ -1,53 +1,53 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyApikeyDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyApikeyDefs from './defs' -export type QueryParams = {}; +export type QueryParams = {} export interface InputSchema { /** The ID of the API key to update. */ - id: string; + id: string /** The new name of the API key. */ - name: string; + name: string /** A new description for the API key. */ - description?: string; - [k: string]: unknown; + description?: string + [k: string]: unknown } -export type OutputSchema = AppRockskyApikeyDefs.ApiKey; +export type OutputSchema = AppRockskyApikeyDefs.ApiKey export interface HandlerInput { - encoding: "application/json"; - body: InputSchema; + encoding: 'application/json' + body: InputSchema } export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/apikeys/defs.ts b/apps/api/src/lexicon/types/app/rocksky/apikeys/defs.ts index 4c2e0c7e..3943ee36 100644 --- a/apps/api/src/lexicon/types/app/rocksky/apikeys/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/apikeys/defs.ts @@ -1,7 +1,7 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' diff --git a/apps/api/src/lexicon/types/app/rocksky/artist.ts b/apps/api/src/lexicon/types/app/rocksky/artist.ts index 41bd4196..9c4ce804 100644 --- a/apps/api/src/lexicon/types/app/rocksky/artist.ts +++ b/apps/api/src/lexicon/types/app/rocksky/artist.ts @@ -1,39 +1,39 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../lexicons"; -import { isObj, hasProp } from "../../../util"; -import { CID } from "multiformats/cid"; +import type { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../lexicons' +import { isObj, hasProp } from '../../../util' +import { CID } from 'multiformats/cid' export interface Record { /** The name of the artist. */ - name: string; + name: string /** The biography of the artist. */ - bio?: string; + bio?: string /** The picture of the artist. */ - picture?: BlobRef; + picture?: BlobRef /** The tags of the artist. */ - tags?: string[]; + tags?: string[] /** The birth date of the artist. */ - born?: string; + born?: string /** The death date of the artist. */ - died?: string; + died?: string /** The birth place of the artist. */ - bornIn?: string; + bornIn?: string /** The date when the artist was created. */ - createdAt: string; - [k: string]: unknown; + createdAt: string + [k: string]: unknown } export function isRecord(v: unknown): v is Record { return ( isObj(v) && - hasProp(v, "$type") && - (v.$type === "app.rocksky.artist#main" || v.$type === "app.rocksky.artist") - ); + hasProp(v, '$type') && + (v.$type === 'app.rocksky.artist#main' || v.$type === 'app.rocksky.artist') + ) } export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.artist#main", v); + return lexicons.validate('app.rocksky.artist#main', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/artist/defs.ts b/apps/api/src/lexicon/types/app/rocksky/artist/defs.ts index d2b664fd..b3d1e350 100644 --- a/apps/api/src/lexicon/types/app/rocksky/artist/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/artist/defs.ts @@ -1,67 +1,67 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' export interface ArtistViewBasic { /** The unique identifier of the artist. */ - id?: string; + id?: string /** The URI of the artist. */ - uri?: string; + uri?: string /** The name of the artist. */ - name?: string; + name?: string /** The picture of the artist. */ - picture?: string; + picture?: string /** The SHA256 hash of the artist. */ - sha256?: string; + sha256?: string /** The number of times the artist has been played. */ - playCount?: number; + playCount?: number /** The number of unique listeners who have played the artist. */ - uniqueListeners?: number; - [k: string]: unknown; + uniqueListeners?: number + [k: string]: unknown } export function isArtistViewBasic(v: unknown): v is ArtistViewBasic { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.artist.defs#artistViewBasic" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.artist.defs#artistViewBasic' + ) } export function validateArtistViewBasic(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.artist.defs#artistViewBasic", v); + return lexicons.validate('app.rocksky.artist.defs#artistViewBasic', v) } export interface ArtistViewDetailed { /** The unique identifier of the artist. */ - id?: string; + id?: string /** The URI of the artist. */ - uri?: string; + uri?: string /** The name of the artist. */ - name?: string; + name?: string /** The picture of the artist. */ - picture?: string; + picture?: string /** The SHA256 hash of the artist. */ - sha256?: string; + sha256?: string /** The number of times the artist has been played. */ - playCount?: number; + playCount?: number /** The number of unique listeners who have played the artist. */ - uniqueListeners?: number; - [k: string]: unknown; + uniqueListeners?: number + [k: string]: unknown } export function isArtistViewDetailed(v: unknown): v is ArtistViewDetailed { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.artist.defs#artistViewDetailed" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.artist.defs#artistViewDetailed' + ) } export function validateArtistViewDetailed(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.artist.defs#artistViewDetailed", v); + return lexicons.validate('app.rocksky.artist.defs#artistViewDetailed', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/artist/getArtist.ts b/apps/api/src/lexicon/types/app/rocksky/artist/getArtist.ts index 2c46caa1..2a91839b 100644 --- a/apps/api/src/lexicon/types/app/rocksky/artist/getArtist.ts +++ b/apps/api/src/lexicon/types/app/rocksky/artist/getArtist.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyArtistDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyArtistDefs from './defs' export interface QueryParams { /** The URI of the artist to retrieve details from */ - uri: string; + uri: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyArtistDefs.ArtistViewDetailed; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyArtistDefs.ArtistViewDetailed +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/artist/getArtistAlbums.ts b/apps/api/src/lexicon/types/app/rocksky/artist/getArtistAlbums.ts index 6030c2b3..f22cdeb6 100644 --- a/apps/api/src/lexicon/types/app/rocksky/artist/getArtistAlbums.ts +++ b/apps/api/src/lexicon/types/app/rocksky/artist/getArtistAlbums.ts @@ -1,48 +1,48 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyAlbumDefs from "../album/defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyAlbumDefs from '../album/defs' export interface QueryParams { /** The URI of the artist to retrieve albums from */ - uri: string; + uri: string } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - albums?: AppRockskyAlbumDefs.AlbumViewBasic[]; - [k: string]: unknown; + albums?: AppRockskyAlbumDefs.AlbumViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/artist/getArtistTracks.ts b/apps/api/src/lexicon/types/app/rocksky/artist/getArtistTracks.ts index 11e30249..72cc5240 100644 --- a/apps/api/src/lexicon/types/app/rocksky/artist/getArtistTracks.ts +++ b/apps/api/src/lexicon/types/app/rocksky/artist/getArtistTracks.ts @@ -1,52 +1,52 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskySongDefs from "../song/defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskySongDefs from '../song/defs' export interface QueryParams { /** The URI of the artist to retrieve albums from */ - uri?: string; + uri?: string /** The maximum number of tracks to return */ - limit?: number; + limit?: number /** The offset for pagination */ - offset?: number; + offset?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - tracks?: AppRockskySongDefs.SongViewBasic[]; - [k: string]: unknown; + tracks?: AppRockskySongDefs.SongViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/artist/getArtists.ts b/apps/api/src/lexicon/types/app/rocksky/artist/getArtists.ts index 86c3f04d..a2765b42 100644 --- a/apps/api/src/lexicon/types/app/rocksky/artist/getArtists.ts +++ b/apps/api/src/lexicon/types/app/rocksky/artist/getArtists.ts @@ -1,50 +1,50 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyArtistDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyArtistDefs from './defs' export interface QueryParams { /** The maximum number of artists to return */ - limit?: number; + limit?: number /** The offset for pagination */ - offset?: number; + offset?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - artists?: AppRockskyArtistDefs.ArtistViewBasic[]; - [k: string]: unknown; + artists?: AppRockskyArtistDefs.ArtistViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/charts/defs.ts b/apps/api/src/lexicon/types/app/rocksky/charts/defs.ts index 7e671a00..5ea76189 100644 --- a/apps/api/src/lexicon/types/app/rocksky/charts/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/charts/defs.ts @@ -1,44 +1,44 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' export interface ChartsView { - scrobbles?: ScrobbleViewBasic[]; - [k: string]: unknown; + scrobbles?: ScrobbleViewBasic[] + [k: string]: unknown } export function isChartsView(v: unknown): v is ChartsView { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.charts.defs#chartsView" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.charts.defs#chartsView' + ) } export function validateChartsView(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.charts.defs#chartsView", v); + return lexicons.validate('app.rocksky.charts.defs#chartsView', v) } export interface ScrobbleViewBasic { /** The date of the scrobble. */ - date?: string; + date?: string /** The number of scrobbles on this date. */ - count?: number; - [k: string]: unknown; + count?: number + [k: string]: unknown } export function isScrobbleViewBasic(v: unknown): v is ScrobbleViewBasic { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.charts.defs#scrobbleViewBasic" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.charts.defs#scrobbleViewBasic' + ) } export function validateScrobbleViewBasic(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.charts.defs#scrobbleViewBasic", v); + return lexicons.validate('app.rocksky.charts.defs#scrobbleViewBasic', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/charts/getScrobblesChart.ts b/apps/api/src/lexicon/types/app/rocksky/charts/getScrobblesChart.ts index bf91da35..9eaf424d 100644 --- a/apps/api/src/lexicon/types/app/rocksky/charts/getScrobblesChart.ts +++ b/apps/api/src/lexicon/types/app/rocksky/charts/getScrobblesChart.ts @@ -1,49 +1,49 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyChartsDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyChartsDefs from './defs' export interface QueryParams { /** The DID or handle of the actor */ - did?: string; + did?: string /** The URI of the artist to filter by */ - artisturi?: string; + artisturi?: string /** The URI of the album to filter by */ - albumuri?: string; + albumuri?: string /** The URI of the track to filter by */ - songuri?: string; + songuri?: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyChartsDefs.ChartsView; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyChartsDefs.ChartsView +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/dropbox/defs.ts b/apps/api/src/lexicon/types/app/rocksky/dropbox/defs.ts index 222ebf1d..e4073a6a 100644 --- a/apps/api/src/lexicon/types/app/rocksky/dropbox/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/dropbox/defs.ts @@ -1,71 +1,71 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' export interface FileView { /** The unique identifier of the file. */ - id?: string; + id?: string /** The name of the file. */ - name?: string; + name?: string /** The lowercased path of the file. */ - pathLower?: string; + pathLower?: string /** The display path of the file. */ - pathDisplay?: string; + pathDisplay?: string /** The last modified date and time of the file on the client. */ - clientModified?: string; + clientModified?: string /** The last modified date and time of the file on the server. */ - serverModified?: string; - [k: string]: unknown; + serverModified?: string + [k: string]: unknown } export function isFileView(v: unknown): v is FileView { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.dropbox.defs#fileView" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.dropbox.defs#fileView' + ) } export function validateFileView(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.dropbox.defs#fileView", v); + return lexicons.validate('app.rocksky.dropbox.defs#fileView', v) } export interface FileListView { /** A list of files in the Dropbox. */ - files?: FileView[]; - [k: string]: unknown; + files?: FileView[] + [k: string]: unknown } export function isFileListView(v: unknown): v is FileListView { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.dropbox.defs#fileListView" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.dropbox.defs#fileListView' + ) } export function validateFileListView(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.dropbox.defs#fileListView", v); + return lexicons.validate('app.rocksky.dropbox.defs#fileListView', v) } export interface TemporaryLinkView { /** The temporary link to access the file. */ - link?: string; - [k: string]: unknown; + link?: string + [k: string]: unknown } export function isTemporaryLinkView(v: unknown): v is TemporaryLinkView { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.dropbox.defs#temporaryLinkView" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.dropbox.defs#temporaryLinkView' + ) } export function validateTemporaryLinkView(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.dropbox.defs#temporaryLinkView", v); + return lexicons.validate('app.rocksky.dropbox.defs#temporaryLinkView', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/dropbox/downloadFile.ts b/apps/api/src/lexicon/types/app/rocksky/dropbox/downloadFile.ts index 4f2023cd..8a22d8ab 100644 --- a/apps/api/src/lexicon/types/app/rocksky/dropbox/downloadFile.ts +++ b/apps/api/src/lexicon/types/app/rocksky/dropbox/downloadFile.ts @@ -1,42 +1,42 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import type stream from "stream"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import type stream from 'stream' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { /** The unique identifier of the file to download */ - fileId: string; + fileId: string } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/octet-stream"; - body: Uint8Array | stream.Readable; - headers?: { [key: string]: string }; + encoding: 'application/octet-stream' + body: Uint8Array | stream.Readable + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/dropbox/getFiles.ts b/apps/api/src/lexicon/types/app/rocksky/dropbox/getFiles.ts index b6e92e56..15991594 100644 --- a/apps/api/src/lexicon/types/app/rocksky/dropbox/getFiles.ts +++ b/apps/api/src/lexicon/types/app/rocksky/dropbox/getFiles.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyDropboxDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyDropboxDefs from './defs' export interface QueryParams { /** Path to the Dropbox folder or root directory */ - at?: string; + at?: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyDropboxDefs.FileListView; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyDropboxDefs.FileListView +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/dropbox/getMetadata.ts b/apps/api/src/lexicon/types/app/rocksky/dropbox/getMetadata.ts index ea57a3da..178eecb9 100644 --- a/apps/api/src/lexicon/types/app/rocksky/dropbox/getMetadata.ts +++ b/apps/api/src/lexicon/types/app/rocksky/dropbox/getMetadata.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyDropboxDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyDropboxDefs from './defs' export interface QueryParams { /** Path to the file or folder in Dropbox */ - path: string; + path: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyDropboxDefs.FileView; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyDropboxDefs.FileView +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/dropbox/getTemporaryLink.ts b/apps/api/src/lexicon/types/app/rocksky/dropbox/getTemporaryLink.ts index 710abd88..47344292 100644 --- a/apps/api/src/lexicon/types/app/rocksky/dropbox/getTemporaryLink.ts +++ b/apps/api/src/lexicon/types/app/rocksky/dropbox/getTemporaryLink.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyDropboxDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyDropboxDefs from './defs' export interface QueryParams { /** Path to the file in Dropbox */ - path: string; + path: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyDropboxDefs.TemporaryLinkView; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyDropboxDefs.TemporaryLinkView +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/feed/defs.ts b/apps/api/src/lexicon/types/app/rocksky/feed/defs.ts index 6db0f337..e4ca56e4 100644 --- a/apps/api/src/lexicon/types/app/rocksky/feed/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/feed/defs.ts @@ -1,15 +1,15 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type * as AppRockskySongDefs from "../song/defs"; -import type * as AppRockskyAlbumDefs from "../album/defs"; -import type * as AppRockskyArtistDefs from "../artist/defs"; -import type * as AppRockskyPlaylistDefs from "../playlist/defs"; -import type * as AppRockskyActorDefs from "../actor/defs"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type * as AppRockskySongDefs from '../song/defs' +import type * as AppRockskyAlbumDefs from '../album/defs' +import type * as AppRockskyArtistDefs from '../artist/defs' +import type * as AppRockskyPlaylistDefs from '../playlist/defs' +import type * as AppRockskyActorDefs from '../actor/defs' export interface SearchResultsView { hits?: ( @@ -19,70 +19,70 @@ export interface SearchResultsView { | AppRockskyPlaylistDefs.PlaylistViewBasic | AppRockskyActorDefs.ProfileViewBasic | { $type: string; [k: string]: unknown } - )[]; - processingTimeMs?: number; - limit?: number; - offset?: number; - estimatedTotalHits?: number; - [k: string]: unknown; + )[] + processingTimeMs?: number + limit?: number + offset?: number + estimatedTotalHits?: number + [k: string]: unknown } export function isSearchResultsView(v: unknown): v is SearchResultsView { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.feed.defs#searchResultsView" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.feed.defs#searchResultsView' + ) } export function validateSearchResultsView(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.feed.defs#searchResultsView", v); + return lexicons.validate('app.rocksky.feed.defs#searchResultsView', v) } export interface NowPlayingView { - album?: string; - albumArt?: string; - albumArtist?: string; - albumUri?: string; - artist?: string; - artistUri?: string; - avatar?: string; - createdAt?: string; - did?: string; - handle?: string; - id?: string; - title?: string; - trackId?: string; - trackUri?: string; - uri?: string; - [k: string]: unknown; + album?: string + albumArt?: string + albumArtist?: string + albumUri?: string + artist?: string + artistUri?: string + avatar?: string + createdAt?: string + did?: string + handle?: string + id?: string + title?: string + trackId?: string + trackUri?: string + uri?: string + [k: string]: unknown } export function isNowPlayingView(v: unknown): v is NowPlayingView { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.feed.defs#nowPlayingView" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.feed.defs#nowPlayingView' + ) } export function validateNowPlayingView(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.feed.defs#nowPlayingView", v); + return lexicons.validate('app.rocksky.feed.defs#nowPlayingView', v) } export interface NowPlayingsView { - nowPlayings?: NowPlayingView[]; - [k: string]: unknown; + nowPlayings?: NowPlayingView[] + [k: string]: unknown } export function isNowPlayingsView(v: unknown): v is NowPlayingsView { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.feed.defs#nowPlayingsView" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.feed.defs#nowPlayingsView' + ) } export function validateNowPlayingsView(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.feed.defs#nowPlayingsView", v); + return lexicons.validate('app.rocksky.feed.defs#nowPlayingsView', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/feed/getNowPlayings.ts b/apps/api/src/lexicon/types/app/rocksky/feed/getNowPlayings.ts index dd108561..ece6c2d0 100644 --- a/apps/api/src/lexicon/types/app/rocksky/feed/getNowPlayings.ts +++ b/apps/api/src/lexicon/types/app/rocksky/feed/getNowPlayings.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyFeedDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyFeedDefs from './defs' export interface QueryParams { /** The maximum number of now playing tracks to return. */ - size?: number; + size?: number } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyFeedDefs.NowPlayingsView; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyFeedDefs.NowPlayingsView +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/feed/search.ts b/apps/api/src/lexicon/types/app/rocksky/feed/search.ts index 8cf409fa..802b621a 100644 --- a/apps/api/src/lexicon/types/app/rocksky/feed/search.ts +++ b/apps/api/src/lexicon/types/app/rocksky/feed/search.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyFeedDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyFeedDefs from './defs' export interface QueryParams { /** The search query string */ - query: string; + query: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyFeedDefs.SearchResultsView; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyFeedDefs.SearchResultsView +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/googledrive/defs.ts b/apps/api/src/lexicon/types/app/rocksky/googledrive/defs.ts index 34777d01..85ad82da 100644 --- a/apps/api/src/lexicon/types/app/rocksky/googledrive/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/googledrive/defs.ts @@ -1,42 +1,42 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' export interface FileView { /** The unique identifier of the file. */ - id?: string; - [k: string]: unknown; + id?: string + [k: string]: unknown } export function isFileView(v: unknown): v is FileView { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.googledrive.defs#fileView" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.googledrive.defs#fileView' + ) } export function validateFileView(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.googledrive.defs#fileView", v); + return lexicons.validate('app.rocksky.googledrive.defs#fileView', v) } export interface FileListView { - files?: FileView[]; - [k: string]: unknown; + files?: FileView[] + [k: string]: unknown } export function isFileListView(v: unknown): v is FileListView { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.googledrive.defs#fileListView" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.googledrive.defs#fileListView' + ) } export function validateFileListView(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.googledrive.defs#fileListView", v); + return lexicons.validate('app.rocksky.googledrive.defs#fileListView', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/googledrive/downloadFile.ts b/apps/api/src/lexicon/types/app/rocksky/googledrive/downloadFile.ts index 4f2023cd..8a22d8ab 100644 --- a/apps/api/src/lexicon/types/app/rocksky/googledrive/downloadFile.ts +++ b/apps/api/src/lexicon/types/app/rocksky/googledrive/downloadFile.ts @@ -1,42 +1,42 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import type stream from "stream"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import type stream from 'stream' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { /** The unique identifier of the file to download */ - fileId: string; + fileId: string } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/octet-stream"; - body: Uint8Array | stream.Readable; - headers?: { [key: string]: string }; + encoding: 'application/octet-stream' + body: Uint8Array | stream.Readable + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/googledrive/getFile.ts b/apps/api/src/lexicon/types/app/rocksky/googledrive/getFile.ts index f10d3c5e..0f894bd0 100644 --- a/apps/api/src/lexicon/types/app/rocksky/googledrive/getFile.ts +++ b/apps/api/src/lexicon/types/app/rocksky/googledrive/getFile.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyGoogledriveDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyGoogledriveDefs from './defs' export interface QueryParams { /** The unique identifier of the file to retrieve */ - fileId: string; + fileId: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyGoogledriveDefs.FileView; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyGoogledriveDefs.FileView +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/googledrive/getFiles.ts b/apps/api/src/lexicon/types/app/rocksky/googledrive/getFiles.ts index 0d4b1c64..4c23c2d8 100644 --- a/apps/api/src/lexicon/types/app/rocksky/googledrive/getFiles.ts +++ b/apps/api/src/lexicon/types/app/rocksky/googledrive/getFiles.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyGoogledriveDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyGoogledriveDefs from './defs' export interface QueryParams { /** Path to the Google Drive folder or root directory */ - at?: string; + at?: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyGoogledriveDefs.FileListView; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyGoogledriveDefs.FileListView +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/like.ts b/apps/api/src/lexicon/types/app/rocksky/like.ts index 21035e90..337f3bb4 100644 --- a/apps/api/src/lexicon/types/app/rocksky/like.ts +++ b/apps/api/src/lexicon/types/app/rocksky/like.ts @@ -1,27 +1,27 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../lexicons"; -import { isObj, hasProp } from "../../../util"; -import { CID } from "multiformats/cid"; -import type * as ComAtprotoRepoStrongRef from "../../com/atproto/repo/strongRef"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../lexicons' +import { isObj, hasProp } from '../../../util' +import { CID } from 'multiformats/cid' +import type * as ComAtprotoRepoStrongRef from '../../com/atproto/repo/strongRef' export interface Record { /** The date when the like was created. */ - createdAt: string; - subject: ComAtprotoRepoStrongRef.Main; - [k: string]: unknown; + createdAt: string + subject: ComAtprotoRepoStrongRef.Main + [k: string]: unknown } export function isRecord(v: unknown): v is Record { return ( isObj(v) && - hasProp(v, "$type") && - (v.$type === "app.rocksky.like#main" || v.$type === "app.rocksky.like") - ); + hasProp(v, '$type') && + (v.$type === 'app.rocksky.like#main' || v.$type === 'app.rocksky.like') + ) } export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.like#main", v); + return lexicons.validate('app.rocksky.like#main', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/like/dislikeShout.ts b/apps/api/src/lexicon/types/app/rocksky/like/dislikeShout.ts index cce29e93..9431959d 100644 --- a/apps/api/src/lexicon/types/app/rocksky/like/dislikeShout.ts +++ b/apps/api/src/lexicon/types/app/rocksky/like/dislikeShout.ts @@ -1,49 +1,49 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyShoutDefs from "../shout/defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyShoutDefs from '../shout/defs' -export type QueryParams = {}; +export type QueryParams = {} export interface InputSchema { /** The unique identifier of the shout to dislike */ - uri?: string; - [k: string]: unknown; + uri?: string + [k: string]: unknown } -export type OutputSchema = AppRockskyShoutDefs.ShoutView; +export type OutputSchema = AppRockskyShoutDefs.ShoutView export interface HandlerInput { - encoding: "application/json"; - body: InputSchema; + encoding: 'application/json' + body: InputSchema } export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/like/dislikeSong.ts b/apps/api/src/lexicon/types/app/rocksky/like/dislikeSong.ts index ac21497a..a951d8db 100644 --- a/apps/api/src/lexicon/types/app/rocksky/like/dislikeSong.ts +++ b/apps/api/src/lexicon/types/app/rocksky/like/dislikeSong.ts @@ -1,49 +1,49 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskySongDefs from "../song/defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskySongDefs from '../song/defs' -export type QueryParams = {}; +export type QueryParams = {} export interface InputSchema { /** The unique identifier of the song to dislike */ - uri?: string; - [k: string]: unknown; + uri?: string + [k: string]: unknown } -export type OutputSchema = AppRockskySongDefs.SongViewDetailed; +export type OutputSchema = AppRockskySongDefs.SongViewDetailed export interface HandlerInput { - encoding: "application/json"; - body: InputSchema; + encoding: 'application/json' + body: InputSchema } export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/like/likeShout.ts b/apps/api/src/lexicon/types/app/rocksky/like/likeShout.ts index 8d652876..aa996bb2 100644 --- a/apps/api/src/lexicon/types/app/rocksky/like/likeShout.ts +++ b/apps/api/src/lexicon/types/app/rocksky/like/likeShout.ts @@ -1,49 +1,49 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyShoutDefs from "../shout/defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyShoutDefs from '../shout/defs' -export type QueryParams = {}; +export type QueryParams = {} export interface InputSchema { /** The unique identifier of the shout to like */ - uri?: string; - [k: string]: unknown; + uri?: string + [k: string]: unknown } -export type OutputSchema = AppRockskyShoutDefs.ShoutView; +export type OutputSchema = AppRockskyShoutDefs.ShoutView export interface HandlerInput { - encoding: "application/json"; - body: InputSchema; + encoding: 'application/json' + body: InputSchema } export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/like/likeSong.ts b/apps/api/src/lexicon/types/app/rocksky/like/likeSong.ts index 3f36fdb9..596e24e5 100644 --- a/apps/api/src/lexicon/types/app/rocksky/like/likeSong.ts +++ b/apps/api/src/lexicon/types/app/rocksky/like/likeSong.ts @@ -1,49 +1,49 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskySongDefs from "../song/defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskySongDefs from '../song/defs' -export type QueryParams = {}; +export type QueryParams = {} export interface InputSchema { /** The unique identifier of the song to like */ - uri?: string; - [k: string]: unknown; + uri?: string + [k: string]: unknown } -export type OutputSchema = AppRockskySongDefs.SongViewDetailed; +export type OutputSchema = AppRockskySongDefs.SongViewDetailed export interface HandlerInput { - encoding: "application/json"; - body: InputSchema; + encoding: 'application/json' + body: InputSchema } export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/player/addDirectoryToQueue.ts b/apps/api/src/lexicon/types/app/rocksky/player/addDirectoryToQueue.ts index 585d9326..2fb660fa 100644 --- a/apps/api/src/lexicon/types/app/rocksky/player/addDirectoryToQueue.ts +++ b/apps/api/src/lexicon/types/app/rocksky/player/addDirectoryToQueue.ts @@ -1,40 +1,40 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { - playerId?: string; + playerId?: string /** The directory to add to the queue */ - directory: string; + directory: string /** Position in the queue to insert the directory at, defaults to the end if not specified */ - position?: number; + position?: number /** Whether to shuffle the added directory in the queue */ - shuffle?: boolean; + shuffle?: boolean } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/player/addItemsToQueue.ts b/apps/api/src/lexicon/types/app/rocksky/player/addItemsToQueue.ts index 06971d3c..272eb8ad 100644 --- a/apps/api/src/lexicon/types/app/rocksky/player/addItemsToQueue.ts +++ b/apps/api/src/lexicon/types/app/rocksky/player/addItemsToQueue.ts @@ -1,39 +1,39 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { - playerId?: string; - items: string[]; + playerId?: string + items: string[] /** Position in the queue to insert the items at, defaults to the end if not specified */ - position?: number; + position?: number /** Whether to shuffle the added items in the queue */ - shuffle?: boolean; + shuffle?: boolean } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/player/defs.ts b/apps/api/src/lexicon/types/app/rocksky/player/defs.ts index a31fa2cc..263cfaae 100644 --- a/apps/api/src/lexicon/types/app/rocksky/player/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/player/defs.ts @@ -1,16 +1,16 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type * as AppRockskySongDefsSongViewBasic from "../song/defs/songViewBasic"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type * as AppRockskySongDefsSongViewBasic from '../song/defs/songViewBasic' export interface CurrentlyPlayingViewDetailed { /** The title of the currently playing track */ - title?: string; - [k: string]: unknown; + title?: string + [k: string]: unknown } export function isCurrentlyPlayingViewDetailed( @@ -18,23 +18,23 @@ export function isCurrentlyPlayingViewDetailed( ): v is CurrentlyPlayingViewDetailed { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.player.defs#currentlyPlayingViewDetailed" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.player.defs#currentlyPlayingViewDetailed' + ) } export function validateCurrentlyPlayingViewDetailed( v: unknown, ): ValidationResult { return lexicons.validate( - "app.rocksky.player.defs#currentlyPlayingViewDetailed", + 'app.rocksky.player.defs#currentlyPlayingViewDetailed', v, - ); + ) } export interface PlaybackQueueViewDetailed { - tracks?: AppRockskySongDefsSongViewBasic.Main[]; - [k: string]: unknown; + tracks?: AppRockskySongDefsSongViewBasic.Main[] + [k: string]: unknown } export function isPlaybackQueueViewDetailed( @@ -42,16 +42,16 @@ export function isPlaybackQueueViewDetailed( ): v is PlaybackQueueViewDetailed { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.player.defs#playbackQueueViewDetailed" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.player.defs#playbackQueueViewDetailed' + ) } export function validatePlaybackQueueViewDetailed( v: unknown, ): ValidationResult { return lexicons.validate( - "app.rocksky.player.defs#playbackQueueViewDetailed", + 'app.rocksky.player.defs#playbackQueueViewDetailed', v, - ); + ) } diff --git a/apps/api/src/lexicon/types/app/rocksky/player/getCurrentlyPlaying.ts b/apps/api/src/lexicon/types/app/rocksky/player/getCurrentlyPlaying.ts index 2fc8b155..9f7dd15c 100644 --- a/apps/api/src/lexicon/types/app/rocksky/player/getCurrentlyPlaying.ts +++ b/apps/api/src/lexicon/types/app/rocksky/player/getCurrentlyPlaying.ts @@ -1,44 +1,44 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyPlayerDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyPlayerDefs from './defs' export interface QueryParams { - playerId?: string; + playerId?: string /** Handle or DID of the actor to retrieve the currently playing track for. If not provided, defaults to the current user. */ - actor?: string; + actor?: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyPlayerDefs.CurrentlyPlayingViewDetailed; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyPlayerDefs.CurrentlyPlayingViewDetailed +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/player/getPlaybackQueue.ts b/apps/api/src/lexicon/types/app/rocksky/player/getPlaybackQueue.ts index c9ba27d8..6853cec1 100644 --- a/apps/api/src/lexicon/types/app/rocksky/player/getPlaybackQueue.ts +++ b/apps/api/src/lexicon/types/app/rocksky/player/getPlaybackQueue.ts @@ -1,42 +1,42 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyPlayerDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyPlayerDefs from './defs' export interface QueryParams { - playerId?: string; + playerId?: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyPlayerDefs.PlaybackQueueViewDetailed; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyPlayerDefs.PlaybackQueueViewDetailed +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/player/next.ts b/apps/api/src/lexicon/types/app/rocksky/player/next.ts index 156fd6b1..fddb01fd 100644 --- a/apps/api/src/lexicon/types/app/rocksky/player/next.ts +++ b/apps/api/src/lexicon/types/app/rocksky/player/next.ts @@ -1,34 +1,34 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { - playerId?: string; + playerId?: string } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/player/pause.ts b/apps/api/src/lexicon/types/app/rocksky/player/pause.ts index 156fd6b1..fddb01fd 100644 --- a/apps/api/src/lexicon/types/app/rocksky/player/pause.ts +++ b/apps/api/src/lexicon/types/app/rocksky/player/pause.ts @@ -1,34 +1,34 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { - playerId?: string; + playerId?: string } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/player/play.ts b/apps/api/src/lexicon/types/app/rocksky/player/play.ts index 156fd6b1..fddb01fd 100644 --- a/apps/api/src/lexicon/types/app/rocksky/player/play.ts +++ b/apps/api/src/lexicon/types/app/rocksky/player/play.ts @@ -1,34 +1,34 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { - playerId?: string; + playerId?: string } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/player/playDirectory.ts b/apps/api/src/lexicon/types/app/rocksky/player/playDirectory.ts index bd12386e..f345f720 100644 --- a/apps/api/src/lexicon/types/app/rocksky/player/playDirectory.ts +++ b/apps/api/src/lexicon/types/app/rocksky/player/playDirectory.ts @@ -1,38 +1,38 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { - playerId?: string; - directoryId: string; - shuffle?: boolean; - recurse?: boolean; - position?: number; + playerId?: string + directoryId: string + shuffle?: boolean + recurse?: boolean + position?: number } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/player/playFile.ts b/apps/api/src/lexicon/types/app/rocksky/player/playFile.ts index c54f183a..62c704c5 100644 --- a/apps/api/src/lexicon/types/app/rocksky/player/playFile.ts +++ b/apps/api/src/lexicon/types/app/rocksky/player/playFile.ts @@ -1,35 +1,35 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { - playerId?: string; - fileId: string; + playerId?: string + fileId: string } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/player/previous.ts b/apps/api/src/lexicon/types/app/rocksky/player/previous.ts index 156fd6b1..fddb01fd 100644 --- a/apps/api/src/lexicon/types/app/rocksky/player/previous.ts +++ b/apps/api/src/lexicon/types/app/rocksky/player/previous.ts @@ -1,34 +1,34 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { - playerId?: string; + playerId?: string } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/player/seek.ts b/apps/api/src/lexicon/types/app/rocksky/player/seek.ts index cd90d0dd..4e7c6dc3 100644 --- a/apps/api/src/lexicon/types/app/rocksky/player/seek.ts +++ b/apps/api/src/lexicon/types/app/rocksky/player/seek.ts @@ -1,36 +1,36 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { - playerId?: string; + playerId?: string /** The position in seconds to seek to */ - position: number; + position: number } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/playlist.ts b/apps/api/src/lexicon/types/app/rocksky/playlist.ts index 6e9510b2..5fa6e35f 100644 --- a/apps/api/src/lexicon/types/app/rocksky/playlist.ts +++ b/apps/api/src/lexicon/types/app/rocksky/playlist.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../lexicons"; -import { isObj, hasProp } from "../../../util"; -import { CID } from "multiformats/cid"; -import type * as AppRockskySong from "./song"; +import type { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../lexicons' +import { isObj, hasProp } from '../../../util' +import { CID } from 'multiformats/cid' +import type * as AppRockskySong from './song' export interface Record { /** The name of the playlist. */ - name: string; + name: string /** The playlist description. */ - description?: string; + description?: string /** The picture of the playlist. */ - picture?: BlobRef; + picture?: BlobRef /** The tracks in the playlist. */ - tracks?: AppRockskySong.Record[]; + tracks?: AppRockskySong.Record[] /** The date the playlist was created. */ - createdAt: string; + createdAt: string /** The Spotify link of the playlist. */ - spotifyLink?: string; + spotifyLink?: string /** The Tidal link of the playlist. */ - tidalLink?: string; + tidalLink?: string /** The YouTube link of the playlist. */ - youtubeLink?: string; + youtubeLink?: string /** The Apple Music link of the playlist. */ - appleMusicLink?: string; - [k: string]: unknown; + appleMusicLink?: string + [k: string]: unknown } export function isRecord(v: unknown): v is Record { return ( isObj(v) && - hasProp(v, "$type") && - (v.$type === "app.rocksky.playlist#main" || - v.$type === "app.rocksky.playlist") - ); + hasProp(v, '$type') && + (v.$type === 'app.rocksky.playlist#main' || + v.$type === 'app.rocksky.playlist') + ) } export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.playlist#main", v); + return lexicons.validate('app.rocksky.playlist#main', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/playlist/createPlaylist.ts b/apps/api/src/lexicon/types/app/rocksky/playlist/createPlaylist.ts index a3e7d89a..0ba568cd 100644 --- a/apps/api/src/lexicon/types/app/rocksky/playlist/createPlaylist.ts +++ b/apps/api/src/lexicon/types/app/rocksky/playlist/createPlaylist.ts @@ -1,37 +1,37 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { /** The name of the playlist */ - name: string; + name: string /** A brief description of the playlist */ - description?: string; + description?: string } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/playlist/defs.ts b/apps/api/src/lexicon/types/app/rocksky/playlist/defs.ts index d8c839f8..6072232a 100644 --- a/apps/api/src/lexicon/types/app/rocksky/playlist/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/playlist/defs.ts @@ -1,86 +1,86 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type * as AppRockskySongDefs from "../song/defs"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type * as AppRockskySongDefs from '../song/defs' /** Detailed view of a playlist, including its tracks and metadata */ export interface PlaylistViewDetailed { /** The unique identifier of the playlist. */ - id?: string; + id?: string /** The title of the playlist. */ - title?: string; + title?: string /** The URI of the playlist. */ - uri?: string; + uri?: string /** The DID of the curator of the playlist. */ - curatorDid?: string; + curatorDid?: string /** The handle of the curator of the playlist. */ - curatorHandle?: string; + curatorHandle?: string /** The name of the curator of the playlist. */ - curatorName?: string; + curatorName?: string /** The URL of the avatar image of the curator. */ - curatorAvatarUrl?: string; + curatorAvatarUrl?: string /** A description of the playlist. */ - description?: string; + description?: string /** The URL of the cover image for the playlist. */ - coverImageUrl?: string; + coverImageUrl?: string /** The date and time when the playlist was created. */ - createdAt?: string; + createdAt?: string /** A list of tracks in the playlist. */ - tracks?: AppRockskySongDefs.SongViewBasic[]; - [k: string]: unknown; + tracks?: AppRockskySongDefs.SongViewBasic[] + [k: string]: unknown } export function isPlaylistViewDetailed(v: unknown): v is PlaylistViewDetailed { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.playlist.defs#playlistViewDetailed" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.playlist.defs#playlistViewDetailed' + ) } export function validatePlaylistViewDetailed(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.playlist.defs#playlistViewDetailed", v); + return lexicons.validate('app.rocksky.playlist.defs#playlistViewDetailed', v) } /** Basic view of a playlist, including its metadata */ export interface PlaylistViewBasic { /** The unique identifier of the playlist. */ - id?: string; + id?: string /** The title of the playlist. */ - title?: string; + title?: string /** The URI of the playlist. */ - uri?: string; + uri?: string /** The DID of the curator of the playlist. */ - curatorDid?: string; + curatorDid?: string /** The handle of the curator of the playlist. */ - curatorHandle?: string; + curatorHandle?: string /** The name of the curator of the playlist. */ - curatorName?: string; + curatorName?: string /** The URL of the avatar image of the curator. */ - curatorAvatarUrl?: string; + curatorAvatarUrl?: string /** A description of the playlist. */ - description?: string; + description?: string /** The URL of the cover image for the playlist. */ - coverImageUrl?: string; + coverImageUrl?: string /** The date and time when the playlist was created. */ - createdAt?: string; + createdAt?: string /** The number of tracks in the playlist. */ - trackCount?: number; - [k: string]: unknown; + trackCount?: number + [k: string]: unknown } export function isPlaylistViewBasic(v: unknown): v is PlaylistViewBasic { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.playlist.defs#playlistViewBasic" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.playlist.defs#playlistViewBasic' + ) } export function validatePlaylistViewBasic(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.playlist.defs#playlistViewBasic", v); + return lexicons.validate('app.rocksky.playlist.defs#playlistViewBasic', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/playlist/getPlaylist.ts b/apps/api/src/lexicon/types/app/rocksky/playlist/getPlaylist.ts index 09739b6e..98a740dd 100644 --- a/apps/api/src/lexicon/types/app/rocksky/playlist/getPlaylist.ts +++ b/apps/api/src/lexicon/types/app/rocksky/playlist/getPlaylist.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyPlaylistDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyPlaylistDefs from './defs' export interface QueryParams { /** The URI of the playlist to retrieve. */ - uri: string; + uri: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyPlaylistDefs.PlaylistViewDetailed; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyPlaylistDefs.PlaylistViewDetailed +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/playlist/getPlaylists.ts b/apps/api/src/lexicon/types/app/rocksky/playlist/getPlaylists.ts index 1b5973d5..ce360c68 100644 --- a/apps/api/src/lexicon/types/app/rocksky/playlist/getPlaylists.ts +++ b/apps/api/src/lexicon/types/app/rocksky/playlist/getPlaylists.ts @@ -1,50 +1,50 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyPlaylistDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyPlaylistDefs from './defs' export interface QueryParams { /** The maximum number of playlists to return. */ - limit?: number; + limit?: number /** The offset for pagination, used to skip a number of playlists. */ - offset?: number; + offset?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - playlists?: AppRockskyPlaylistDefs.PlaylistViewBasic[]; - [k: string]: unknown; + playlists?: AppRockskyPlaylistDefs.PlaylistViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/playlist/insertDirectory.ts b/apps/api/src/lexicon/types/app/rocksky/playlist/insertDirectory.ts index ad8a2c41..4dcdde7e 100644 --- a/apps/api/src/lexicon/types/app/rocksky/playlist/insertDirectory.ts +++ b/apps/api/src/lexicon/types/app/rocksky/playlist/insertDirectory.ts @@ -1,39 +1,39 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { /** The URI of the playlist to start */ - uri: string; + uri: string /** The directory (id) to insert into the playlist */ - directory: string; + directory: string /** The position in the playlist to insert the directory at, if not specified, the directory will be appended */ - position?: number; + position?: number } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/playlist/insertFiles.ts b/apps/api/src/lexicon/types/app/rocksky/playlist/insertFiles.ts index fffa06c6..ffe2ed60 100644 --- a/apps/api/src/lexicon/types/app/rocksky/playlist/insertFiles.ts +++ b/apps/api/src/lexicon/types/app/rocksky/playlist/insertFiles.ts @@ -1,38 +1,38 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { /** The URI of the playlist to start */ - uri: string; - files: string[]; + uri: string + files: string[] /** The position in the playlist to insert the files at, if not specified, files will be appended */ - position?: number; + position?: number } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/playlist/removePlaylist.ts b/apps/api/src/lexicon/types/app/rocksky/playlist/removePlaylist.ts index bfa03748..9de6b0ad 100644 --- a/apps/api/src/lexicon/types/app/rocksky/playlist/removePlaylist.ts +++ b/apps/api/src/lexicon/types/app/rocksky/playlist/removePlaylist.ts @@ -1,35 +1,35 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { /** The URI of the playlist to remove */ - uri: string; + uri: string } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/playlist/removeTrack.ts b/apps/api/src/lexicon/types/app/rocksky/playlist/removeTrack.ts index 4f7d33a2..11c5a93b 100644 --- a/apps/api/src/lexicon/types/app/rocksky/playlist/removeTrack.ts +++ b/apps/api/src/lexicon/types/app/rocksky/playlist/removeTrack.ts @@ -1,37 +1,37 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { /** The URI of the playlist to remove the track from */ - uri: string; + uri: string /** The position of the track to remove in the playlist */ - position: number; + position: number } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/playlist/startPlaylist.ts b/apps/api/src/lexicon/types/app/rocksky/playlist/startPlaylist.ts index ef30d1cd..763336b3 100644 --- a/apps/api/src/lexicon/types/app/rocksky/playlist/startPlaylist.ts +++ b/apps/api/src/lexicon/types/app/rocksky/playlist/startPlaylist.ts @@ -1,39 +1,39 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { /** The URI of the playlist to start */ - uri: string; + uri: string /** Whether to shuffle the playlist when starting it */ - shuffle?: boolean; + shuffle?: boolean /** The position in the playlist to start from, if not specified, starts from the beginning */ - position?: number; + position?: number } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/radio.ts b/apps/api/src/lexicon/types/app/rocksky/radio.ts index 210375b5..94231d27 100644 --- a/apps/api/src/lexicon/types/app/rocksky/radio.ts +++ b/apps/api/src/lexicon/types/app/rocksky/radio.ts @@ -1,37 +1,37 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../lexicons"; -import { isObj, hasProp } from "../../../util"; -import { CID } from "multiformats/cid"; +import type { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../lexicons' +import { isObj, hasProp } from '../../../util' +import { CID } from 'multiformats/cid' export interface Record { /** The name of the radio station. */ - name: string; + name: string /** The URL of the radio station. */ - url: string; + url: string /** A description of the radio station. */ - description?: string; + description?: string /** The genre of the radio station. */ - genre?: string; + genre?: string /** The logo of the radio station. */ - logo?: BlobRef; + logo?: BlobRef /** The website of the radio station. */ - website?: string; + website?: string /** The date when the radio station was created. */ - createdAt: string; - [k: string]: unknown; + createdAt: string + [k: string]: unknown } export function isRecord(v: unknown): v is Record { return ( isObj(v) && - hasProp(v, "$type") && - (v.$type === "app.rocksky.radio#main" || v.$type === "app.rocksky.radio") - ); + hasProp(v, '$type') && + (v.$type === 'app.rocksky.radio#main' || v.$type === 'app.rocksky.radio') + ) } export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.radio#main", v); + return lexicons.validate('app.rocksky.radio#main', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/radio/defs.ts b/apps/api/src/lexicon/types/app/rocksky/radio/defs.ts index f03f75bc..7ba28f05 100644 --- a/apps/api/src/lexicon/types/app/rocksky/radio/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/radio/defs.ts @@ -1,63 +1,63 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' export interface RadioViewBasic { /** The unique identifier of the radio. */ - id?: string; + id?: string /** The name of the radio. */ - name?: string; + name?: string /** A brief description of the radio. */ - description?: string; + description?: string /** The date and time when the radio was created. */ - createdAt?: string; - [k: string]: unknown; + createdAt?: string + [k: string]: unknown } export function isRadioViewBasic(v: unknown): v is RadioViewBasic { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.radio.defs#radioViewBasic" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.radio.defs#radioViewBasic' + ) } export function validateRadioViewBasic(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.radio.defs#radioViewBasic", v); + return lexicons.validate('app.rocksky.radio.defs#radioViewBasic', v) } export interface RadioViewDetailed { /** The unique identifier of the radio. */ - id?: string; + id?: string /** The name of the radio. */ - name?: string; + name?: string /** A brief description of the radio. */ - description?: string; + description?: string /** The website of the radio. */ - website?: string; + website?: string /** The streaming URL of the radio. */ - url?: string; + url?: string /** The genre of the radio. */ - genre?: string; + genre?: string /** The logo of the radio station. */ - logo?: string; + logo?: string /** The date and time when the radio was created. */ - createdAt?: string; - [k: string]: unknown; + createdAt?: string + [k: string]: unknown } export function isRadioViewDetailed(v: unknown): v is RadioViewDetailed { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.radio.defs#radioViewDetailed" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.radio.defs#radioViewDetailed' + ) } export function validateRadioViewDetailed(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.radio.defs#radioViewDetailed", v); + return lexicons.validate('app.rocksky.radio.defs#radioViewDetailed', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/scrobble.ts b/apps/api/src/lexicon/types/app/rocksky/scrobble.ts index 535b1e43..d7a0cbe4 100644 --- a/apps/api/src/lexicon/types/app/rocksky/scrobble.ts +++ b/apps/api/src/lexicon/types/app/rocksky/scrobble.ts @@ -1,70 +1,70 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../lexicons"; -import { isObj, hasProp } from "../../../util"; -import { CID } from "multiformats/cid"; +import type { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../lexicons' +import { isObj, hasProp } from '../../../util' +import { CID } from 'multiformats/cid' export interface Record { /** The title of the song. */ - title: string; + title: string /** The artist of the song. */ - artist: string; + artist: string /** The album artist of the song. */ - albumArtist: string; + albumArtist: string /** The album of the song. */ - album: string; + album: string /** The duration of the song in seconds. */ - duration: number; + duration: number /** The track number of the song in the album. */ - trackNumber?: number; + trackNumber?: number /** The disc number of the song in the album. */ - discNumber?: number; + discNumber?: number /** The release date of the song. */ - releaseDate?: string; + releaseDate?: string /** The year the song was released. */ - year?: number; + year?: number /** The genre of the song. */ - genre?: string; + genre?: string /** The tags of the song. */ - tags?: string[]; + tags?: string[] /** The composer of the song. */ - composer?: string; + composer?: string /** The lyrics of the song. */ - lyrics?: string; + lyrics?: string /** The copyright message of the song. */ - copyrightMessage?: string; + copyrightMessage?: string /** Informations about the song */ - wiki?: string; + wiki?: string /** The album art of the song. */ - albumArt?: BlobRef; + albumArt?: BlobRef /** The YouTube link of the song. */ - youtubeLink?: string; + youtubeLink?: string /** The Spotify link of the song. */ - spotifyLink?: string; + spotifyLink?: string /** The Tidal link of the song. */ - tidalLink?: string; + tidalLink?: string /** The Apple Music link of the song. */ - appleMusicLink?: string; + appleMusicLink?: string /** The date when the song was created. */ - createdAt: string; + createdAt: string /** The MusicBrainz ID of the song. */ - mbid?: string; + mbid?: string /** The label of the song. */ - label?: string; - [k: string]: unknown; + label?: string + [k: string]: unknown } export function isRecord(v: unknown): v is Record { return ( isObj(v) && - hasProp(v, "$type") && - (v.$type === "app.rocksky.scrobble#main" || - v.$type === "app.rocksky.scrobble") - ); + hasProp(v, '$type') && + (v.$type === 'app.rocksky.scrobble#main' || + v.$type === 'app.rocksky.scrobble') + ) } export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.scrobble#main", v); + return lexicons.validate('app.rocksky.scrobble#main', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/scrobble/createScrobble.ts b/apps/api/src/lexicon/types/app/rocksky/scrobble/createScrobble.ts index 507ad0e3..573135b5 100644 --- a/apps/api/src/lexicon/types/app/rocksky/scrobble/createScrobble.ts +++ b/apps/api/src/lexicon/types/app/rocksky/scrobble/createScrobble.ts @@ -1,91 +1,91 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyScrobbleDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyScrobbleDefs from './defs' -export type QueryParams = {}; +export type QueryParams = {} export interface InputSchema { /** The title of the track being scrobbled */ - title: string; + title: string /** The artist of the track being scrobbled */ - artist: string; + artist: string /** The album of the track being scrobbled */ - album?: string; + album?: string /** The duration of the track in seconds */ - duration?: number; + duration?: number /** The MusicBrainz ID of the track, if available */ - mbId?: string; + mbId?: string /** The URL of the album art for the track */ - albumArt?: string; + albumArt?: string /** The track number of the track in the album */ - trackNumber?: number; + trackNumber?: number /** The release date of the track, formatted as YYYY-MM-DD */ - releaseDate?: string; + releaseDate?: string /** The year the track was released */ - year?: number; + year?: number /** The disc number of the track in the album, if applicable */ - discNumber?: number; + discNumber?: number /** The lyrics of the track, if available */ - lyrics?: string; + lyrics?: string /** The composer of the track, if available */ - composer?: string; + composer?: string /** The copyright message for the track, if available */ - copyrightMessage?: string; + copyrightMessage?: string /** The record label of the track, if available */ - label?: string; + label?: string /** The URL of the artist's picture, if available */ - artistPicture?: string; + artistPicture?: string /** The Spotify link for the track, if available */ - spotifyLink?: string; + spotifyLink?: string /** The Last.fm link for the track, if available */ - lastfmLink?: string; + lastfmLink?: string /** The Tidal link for the track, if available */ - tidalLink?: string; + tidalLink?: string /** The Apple Music link for the track, if available */ - appleMusicLink?: string; + appleMusicLink?: string /** The Youtube link for the track, if available */ - youtubeLink?: string; + youtubeLink?: string /** The Deezer link for the track, if available */ - deezerLink?: string; + deezerLink?: string /** The timestamp of the scrobble in milliseconds since epoch */ - timestamp?: number; - [k: string]: unknown; + timestamp?: number + [k: string]: unknown } -export type OutputSchema = AppRockskyScrobbleDefs.ScrobbleViewBasic; +export type OutputSchema = AppRockskyScrobbleDefs.ScrobbleViewBasic export interface HandlerInput { - encoding: "application/json"; - body: InputSchema; + encoding: 'application/json' + body: InputSchema } export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/scrobble/defs.ts b/apps/api/src/lexicon/types/app/rocksky/scrobble/defs.ts index 8c7d6618..59d734dd 100644 --- a/apps/api/src/lexicon/types/app/rocksky/scrobble/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/scrobble/defs.ts @@ -1,87 +1,91 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' export interface ScrobbleViewBasic { /** The unique identifier of the scrobble. */ - id?: string; + id?: string /** The handle of the user who created the scrobble. */ - user?: string; + user?: string + /** The display name of the user who created the scrobble. */ + userDisplayName?: string + /** The avatar URL of the user who created the scrobble. */ + userAvatar?: string /** The title of the scrobble. */ - title?: string; + title?: string /** The artist of the song. */ - artist?: string; + artist?: string /** The URI of the artist. */ - artistUri?: string; + artistUri?: string /** The album of the song. */ - album?: string; + album?: string /** The URI of the album. */ - albumUri?: string; + albumUri?: string /** The album art URL of the song. */ - cover?: string; + cover?: string /** The timestamp when the scrobble was created. */ - date?: string; + date?: string /** The URI of the scrobble. */ - uri?: string; + uri?: string /** The SHA256 hash of the scrobble data. */ - sha256?: string; - [k: string]: unknown; + sha256?: string + [k: string]: unknown } export function isScrobbleViewBasic(v: unknown): v is ScrobbleViewBasic { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.scrobble.defs#scrobbleViewBasic" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.scrobble.defs#scrobbleViewBasic' + ) } export function validateScrobbleViewBasic(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.scrobble.defs#scrobbleViewBasic", v); + return lexicons.validate('app.rocksky.scrobble.defs#scrobbleViewBasic', v) } export interface ScrobbleViewDetailed { /** The unique identifier of the scrobble. */ - id?: string; + id?: string /** The handle of the user who created the scrobble. */ - user?: string; + user?: string /** The title of the scrobble. */ - title?: string; + title?: string /** The artist of the song. */ - artist?: string; + artist?: string /** The URI of the artist. */ - artistUri?: string; + artistUri?: string /** The album of the song. */ - album?: string; + album?: string /** The URI of the album. */ - albumUri?: string; + albumUri?: string /** The album art URL of the song. */ - cover?: string; + cover?: string /** The timestamp when the scrobble was created. */ - date?: string; + date?: string /** The URI of the scrobble. */ - uri?: string; + uri?: string /** The SHA256 hash of the scrobble data. */ - sha256?: string; + sha256?: string /** The number of listeners */ - listeners?: number; + listeners?: number /** The number of scrobbles for this song */ - scrobbles?: number; - [k: string]: unknown; + scrobbles?: number + [k: string]: unknown } export function isScrobbleViewDetailed(v: unknown): v is ScrobbleViewDetailed { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.scrobble.defs#scrobbleViewDetailed" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.scrobble.defs#scrobbleViewDetailed' + ) } export function validateScrobbleViewDetailed(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.scrobble.defs#scrobbleViewDetailed", v); + return lexicons.validate('app.rocksky.scrobble.defs#scrobbleViewDetailed', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/scrobble/getScrobble.ts b/apps/api/src/lexicon/types/app/rocksky/scrobble/getScrobble.ts index cf6c8bd0..a6b96dfb 100644 --- a/apps/api/src/lexicon/types/app/rocksky/scrobble/getScrobble.ts +++ b/apps/api/src/lexicon/types/app/rocksky/scrobble/getScrobble.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyScrobbleDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyScrobbleDefs from './defs' export interface QueryParams { /** The unique identifier of the scrobble */ - uri: string; + uri: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyScrobbleDefs.ScrobbleViewDetailed; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyScrobbleDefs.ScrobbleViewDetailed +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/scrobble/getScrobbles.ts b/apps/api/src/lexicon/types/app/rocksky/scrobble/getScrobbles.ts index 9064e2ba..88e8a1b9 100644 --- a/apps/api/src/lexicon/types/app/rocksky/scrobble/getScrobbles.ts +++ b/apps/api/src/lexicon/types/app/rocksky/scrobble/getScrobbles.ts @@ -1,52 +1,52 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyScrobbleDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyScrobbleDefs from './defs' export interface QueryParams { /** The DID or handle of the actor */ - did?: string; + did?: string /** The maximum number of scrobbles to return */ - limit?: number; + limit?: number /** The offset for pagination */ - offset?: number; + offset?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - scrobbles?: AppRockskyScrobbleDefs.ScrobbleViewBasic[]; - [k: string]: unknown; + scrobbles?: AppRockskyScrobbleDefs.ScrobbleViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/shout.ts b/apps/api/src/lexicon/types/app/rocksky/shout.ts index 893db47e..2b4f380d 100644 --- a/apps/api/src/lexicon/types/app/rocksky/shout.ts +++ b/apps/api/src/lexicon/types/app/rocksky/shout.ts @@ -1,30 +1,30 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../lexicons"; -import { isObj, hasProp } from "../../../util"; -import { CID } from "multiformats/cid"; -import type * as ComAtprotoRepoStrongRef from "../../com/atproto/repo/strongRef"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../lexicons' +import { isObj, hasProp } from '../../../util' +import { CID } from 'multiformats/cid' +import type * as ComAtprotoRepoStrongRef from '../../com/atproto/repo/strongRef' export interface Record { /** The message of the shout. */ - message: string; + message: string /** The date when the shout was created. */ - createdAt: string; - parent?: ComAtprotoRepoStrongRef.Main; - subject: ComAtprotoRepoStrongRef.Main; - [k: string]: unknown; + createdAt: string + parent?: ComAtprotoRepoStrongRef.Main + subject: ComAtprotoRepoStrongRef.Main + [k: string]: unknown } export function isRecord(v: unknown): v is Record { return ( isObj(v) && - hasProp(v, "$type") && - (v.$type === "app.rocksky.shout#main" || v.$type === "app.rocksky.shout") - ); + hasProp(v, '$type') && + (v.$type === 'app.rocksky.shout#main' || v.$type === 'app.rocksky.shout') + ) } export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.shout#main", v); + return lexicons.validate('app.rocksky.shout#main', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/shout/createShout.ts b/apps/api/src/lexicon/types/app/rocksky/shout/createShout.ts index 8e4df585..a0f85b21 100644 --- a/apps/api/src/lexicon/types/app/rocksky/shout/createShout.ts +++ b/apps/api/src/lexicon/types/app/rocksky/shout/createShout.ts @@ -1,49 +1,49 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyShoutDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyShoutDefs from './defs' -export type QueryParams = {}; +export type QueryParams = {} export interface InputSchema { /** The content of the shout */ - message?: string; - [k: string]: unknown; + message?: string + [k: string]: unknown } -export type OutputSchema = AppRockskyShoutDefs.ShoutView; +export type OutputSchema = AppRockskyShoutDefs.ShoutView export interface HandlerInput { - encoding: "application/json"; - body: InputSchema; + encoding: 'application/json' + body: InputSchema } export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/shout/defs.ts b/apps/api/src/lexicon/types/app/rocksky/shout/defs.ts index 028473ba..792e450a 100644 --- a/apps/api/src/lexicon/types/app/rocksky/shout/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/shout/defs.ts @@ -1,58 +1,58 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' export interface Author { /** The unique identifier of the author. */ - id?: string; + id?: string /** The decentralized identifier (DID) of the author. */ - did?: string; + did?: string /** The handle of the author. */ - handle?: string; + handle?: string /** The display name of the author. */ - displayName?: string; + displayName?: string /** The URL of the author's avatar image. */ - avatar?: string; - [k: string]: unknown; + avatar?: string + [k: string]: unknown } export function isAuthor(v: unknown): v is Author { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.shout.defs#author" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.shout.defs#author' + ) } export function validateAuthor(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.shout.defs#author", v); + return lexicons.validate('app.rocksky.shout.defs#author', v) } export interface ShoutView { /** The unique identifier of the shout. */ - id?: string; + id?: string /** The content of the shout. */ - message?: string; + message?: string /** The ID of the parent shout if this is a reply, otherwise null. */ - parent?: string; + parent?: string /** The date and time when the shout was created. */ - createdAt?: string; - author?: Author; - [k: string]: unknown; + createdAt?: string + author?: Author + [k: string]: unknown } export function isShoutView(v: unknown): v is ShoutView { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.shout.defs#shoutView" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.shout.defs#shoutView' + ) } export function validateShoutView(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.shout.defs#shoutView", v); + return lexicons.validate('app.rocksky.shout.defs#shoutView', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/shout/getAlbumShouts.ts b/apps/api/src/lexicon/types/app/rocksky/shout/getAlbumShouts.ts index be939325..99568435 100644 --- a/apps/api/src/lexicon/types/app/rocksky/shout/getAlbumShouts.ts +++ b/apps/api/src/lexicon/types/app/rocksky/shout/getAlbumShouts.ts @@ -1,52 +1,52 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyShoutDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyShoutDefs from './defs' export interface QueryParams { /** The unique identifier of the album to retrieve shouts for */ - uri: string; + uri: string /** The maximum number of shouts to return */ - limit?: number; + limit?: number /** The number of shouts to skip before starting to collect the result set */ - offset?: number; + offset?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - shouts?: AppRockskyShoutDefs.ShoutViewBasic[]; - [k: string]: unknown; + shouts?: AppRockskyShoutDefs.ShoutViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/shout/getArtistShouts.ts b/apps/api/src/lexicon/types/app/rocksky/shout/getArtistShouts.ts index a64d0529..e73c0d8c 100644 --- a/apps/api/src/lexicon/types/app/rocksky/shout/getArtistShouts.ts +++ b/apps/api/src/lexicon/types/app/rocksky/shout/getArtistShouts.ts @@ -1,52 +1,52 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyShoutDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyShoutDefs from './defs' export interface QueryParams { /** The URI of the artist to retrieve shouts for */ - uri: string; + uri: string /** The maximum number of shouts to return */ - limit?: number; + limit?: number /** The number of shouts to skip before starting to collect the result set */ - offset?: number; + offset?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - shouts?: AppRockskyShoutDefs.ShoutViewBasic[]; - [k: string]: unknown; + shouts?: AppRockskyShoutDefs.ShoutViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/shout/getProfileShouts.ts b/apps/api/src/lexicon/types/app/rocksky/shout/getProfileShouts.ts index 958a1449..9f2f3059 100644 --- a/apps/api/src/lexicon/types/app/rocksky/shout/getProfileShouts.ts +++ b/apps/api/src/lexicon/types/app/rocksky/shout/getProfileShouts.ts @@ -1,52 +1,52 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyShoutDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyShoutDefs from './defs' export interface QueryParams { /** The DID or handle of the actor */ - did: string; + did: string /** The offset for pagination */ - offset?: number; + offset?: number /** The maximum number of shouts to return */ - limit?: number; + limit?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - shouts?: AppRockskyShoutDefs.ShoutViewBasic[]; - [k: string]: unknown; + shouts?: AppRockskyShoutDefs.ShoutViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/shout/getShoutReplies.ts b/apps/api/src/lexicon/types/app/rocksky/shout/getShoutReplies.ts index 1c2e5c5b..f0f25e10 100644 --- a/apps/api/src/lexicon/types/app/rocksky/shout/getShoutReplies.ts +++ b/apps/api/src/lexicon/types/app/rocksky/shout/getShoutReplies.ts @@ -1,52 +1,52 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyShoutDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyShoutDefs from './defs' export interface QueryParams { /** The URI of the shout to retrieve replies for */ - uri: string; + uri: string /** The maximum number of shouts to return */ - limit?: number; + limit?: number /** The number of shouts to skip before starting to collect the result set */ - offset?: number; + offset?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - shouts?: AppRockskyShoutDefs.ShoutViewBasic[]; - [k: string]: unknown; + shouts?: AppRockskyShoutDefs.ShoutViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/shout/getTrackShouts.ts b/apps/api/src/lexicon/types/app/rocksky/shout/getTrackShouts.ts index 41367003..01fcf917 100644 --- a/apps/api/src/lexicon/types/app/rocksky/shout/getTrackShouts.ts +++ b/apps/api/src/lexicon/types/app/rocksky/shout/getTrackShouts.ts @@ -1,48 +1,48 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyShoutDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyShoutDefs from './defs' export interface QueryParams { /** The URI of the track to retrieve shouts for */ - uri: string; + uri: string } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - shouts?: AppRockskyShoutDefs.ShoutViewBasic[]; - [k: string]: unknown; + shouts?: AppRockskyShoutDefs.ShoutViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/shout/removeShout.ts b/apps/api/src/lexicon/types/app/rocksky/shout/removeShout.ts index 52c0bd11..3d716c7a 100644 --- a/apps/api/src/lexicon/types/app/rocksky/shout/removeShout.ts +++ b/apps/api/src/lexicon/types/app/rocksky/shout/removeShout.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyShoutDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyShoutDefs from './defs' export interface QueryParams { /** The ID of the shout to be removed */ - id: string; + id: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyShoutDefs.ShoutView; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyShoutDefs.ShoutView +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/shout/replyShout.ts b/apps/api/src/lexicon/types/app/rocksky/shout/replyShout.ts index f4f5e9bb..e729c3c2 100644 --- a/apps/api/src/lexicon/types/app/rocksky/shout/replyShout.ts +++ b/apps/api/src/lexicon/types/app/rocksky/shout/replyShout.ts @@ -1,51 +1,51 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyShoutDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyShoutDefs from './defs' -export type QueryParams = {}; +export type QueryParams = {} export interface InputSchema { /** The unique identifier of the shout to reply to */ - shoutId: string; + shoutId: string /** The content of the reply */ - message: string; - [k: string]: unknown; + message: string + [k: string]: unknown } -export type OutputSchema = AppRockskyShoutDefs.ShoutView; +export type OutputSchema = AppRockskyShoutDefs.ShoutView export interface HandlerInput { - encoding: "application/json"; - body: InputSchema; + encoding: 'application/json' + body: InputSchema } export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/shout/reportShout.ts b/apps/api/src/lexicon/types/app/rocksky/shout/reportShout.ts index b71fefbd..33bb265a 100644 --- a/apps/api/src/lexicon/types/app/rocksky/shout/reportShout.ts +++ b/apps/api/src/lexicon/types/app/rocksky/shout/reportShout.ts @@ -1,51 +1,51 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyShoutDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyShoutDefs from './defs' -export type QueryParams = {}; +export type QueryParams = {} export interface InputSchema { /** The unique identifier of the shout to report */ - shoutId: string; + shoutId: string /** The reason for reporting the shout */ - reason?: string; - [k: string]: unknown; + reason?: string + [k: string]: unknown } -export type OutputSchema = AppRockskyShoutDefs.ShoutView; +export type OutputSchema = AppRockskyShoutDefs.ShoutView export interface HandlerInput { - encoding: "application/json"; - body: InputSchema; + encoding: 'application/json' + body: InputSchema } export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/song.ts b/apps/api/src/lexicon/types/app/rocksky/song.ts index 6d68b18d..830af600 100644 --- a/apps/api/src/lexicon/types/app/rocksky/song.ts +++ b/apps/api/src/lexicon/types/app/rocksky/song.ts @@ -1,69 +1,69 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../lexicons"; -import { isObj, hasProp } from "../../../util"; -import { CID } from "multiformats/cid"; +import type { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../lexicons' +import { isObj, hasProp } from '../../../util' +import { CID } from 'multiformats/cid' export interface Record { /** The title of the song. */ - title: string; + title: string /** The artist of the song. */ - artist: string; + artist: string /** The album artist of the song. */ - albumArtist: string; + albumArtist: string /** The album of the song. */ - album: string; + album: string /** The duration of the song in seconds. */ - duration: number; + duration: number /** The track number of the song in the album. */ - trackNumber?: number; + trackNumber?: number /** The disc number of the song in the album. */ - discNumber?: number; + discNumber?: number /** The release date of the song. */ - releaseDate?: string; + releaseDate?: string /** The year the song was released. */ - year?: number; + year?: number /** The genre of the song. */ - genre?: string; + genre?: string /** The tags of the song. */ - tags?: string[]; + tags?: string[] /** The composer of the song. */ - composer?: string; + composer?: string /** The lyrics of the song. */ - lyrics?: string; + lyrics?: string /** The copyright message of the song. */ - copyrightMessage?: string; + copyrightMessage?: string /** Informations about the song */ - wiki?: string; + wiki?: string /** The album art of the song. */ - albumArt?: BlobRef; + albumArt?: BlobRef /** The YouTube link of the song. */ - youtubeLink?: string; + youtubeLink?: string /** The Spotify link of the song. */ - spotifyLink?: string; + spotifyLink?: string /** The Tidal link of the song. */ - tidalLink?: string; + tidalLink?: string /** The Apple Music link of the song. */ - appleMusicLink?: string; + appleMusicLink?: string /** The date when the song was created. */ - createdAt: string; + createdAt: string /** The MusicBrainz ID of the song. */ - mbid?: string; + mbid?: string /** The label of the song. */ - label?: string; - [k: string]: unknown; + label?: string + [k: string]: unknown } export function isRecord(v: unknown): v is Record { return ( isObj(v) && - hasProp(v, "$type") && - (v.$type === "app.rocksky.song#main" || v.$type === "app.rocksky.song") - ); + hasProp(v, '$type') && + (v.$type === 'app.rocksky.song#main' || v.$type === 'app.rocksky.song') + ) } export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.song#main", v); + return lexicons.validate('app.rocksky.song#main', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/song/createSong.ts b/apps/api/src/lexicon/types/app/rocksky/song/createSong.ts index 791c6966..49c8ee33 100644 --- a/apps/api/src/lexicon/types/app/rocksky/song/createSong.ts +++ b/apps/api/src/lexicon/types/app/rocksky/song/createSong.ts @@ -1,71 +1,71 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskySongDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskySongDefs from './defs' -export type QueryParams = {}; +export type QueryParams = {} export interface InputSchema { /** The title of the song */ - title: string; + title: string /** The artist of the song */ - artist: string; + artist: string /** The album artist of the song, if different from the main artist */ - albumArtist: string; + albumArtist: string /** The album of the song, if applicable */ - album: string; + album: string /** The duration of the song in seconds */ - duration?: number; + duration?: number /** The MusicBrainz ID of the song, if available */ - mbId?: string; + mbId?: string /** The URL of the album art for the song */ - albumArt?: string; + albumArt?: string /** The track number of the song in the album, if applicable */ - trackNumber?: number; + trackNumber?: number /** The release date of the song, formatted as YYYY-MM-DD */ - releaseDate?: string; + releaseDate?: string /** The year the song was released */ - year?: number; + year?: number /** The disc number of the song in the album, if applicable */ - discNumber?: number; + discNumber?: number /** The lyrics of the song, if available */ - lyrics?: string; - [k: string]: unknown; + lyrics?: string + [k: string]: unknown } -export type OutputSchema = AppRockskySongDefs.SongViewDetailed; +export type OutputSchema = AppRockskySongDefs.SongViewDetailed export interface HandlerInput { - encoding: "application/json"; - body: InputSchema; + encoding: 'application/json' + body: InputSchema } export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/song/defs.ts b/apps/api/src/lexicon/types/app/rocksky/song/defs.ts index d31f333d..d6eb3491 100644 --- a/apps/api/src/lexicon/types/app/rocksky/song/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/song/defs.ts @@ -1,103 +1,103 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' export interface SongViewBasic { /** The unique identifier of the song. */ - id?: string; + id?: string /** The title of the song. */ - title?: string; + title?: string /** The artist of the song. */ - artist?: string; + artist?: string /** The artist of the album the song belongs to. */ - albumArtist?: string; + albumArtist?: string /** The URL of the album art image. */ - albumArt?: string; + albumArt?: string /** The URI of the song. */ - uri?: string; + uri?: string /** The album of the song. */ - album?: string; + album?: string /** The duration of the song in milliseconds. */ - duration?: number; + duration?: number /** The track number of the song in the album. */ - trackNumber?: number; + trackNumber?: number /** The disc number of the song in the album. */ - discNumber?: number; + discNumber?: number /** The number of times the song has been played. */ - playCount?: number; + playCount?: number /** The number of unique listeners who have played the song. */ - uniqueListeners?: number; + uniqueListeners?: number /** The URI of the album the song belongs to. */ - albumUri?: string; + albumUri?: string /** The URI of the artist of the song. */ - artistUri?: string; + artistUri?: string /** The SHA256 hash of the song. */ - sha256?: string; + sha256?: string /** The timestamp when the song was created. */ - createdAt?: string; - [k: string]: unknown; + createdAt?: string + [k: string]: unknown } export function isSongViewBasic(v: unknown): v is SongViewBasic { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.song.defs#songViewBasic" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.song.defs#songViewBasic' + ) } export function validateSongViewBasic(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.song.defs#songViewBasic", v); + return lexicons.validate('app.rocksky.song.defs#songViewBasic', v) } export interface SongViewDetailed { /** The unique identifier of the song. */ - id?: string; + id?: string /** The title of the song. */ - title?: string; + title?: string /** The artist of the song. */ - artist?: string; + artist?: string /** The artist of the album the song belongs to. */ - albumArtist?: string; + albumArtist?: string /** The URL of the album art image. */ - albumArt?: string; + albumArt?: string /** The URI of the song. */ - uri?: string; + uri?: string /** The album of the song. */ - album?: string; + album?: string /** The duration of the song in milliseconds. */ - duration?: number; + duration?: number /** The track number of the song in the album. */ - trackNumber?: number; + trackNumber?: number /** The disc number of the song in the album. */ - discNumber?: number; + discNumber?: number /** The number of times the song has been played. */ - playCount?: number; + playCount?: number /** The number of unique listeners who have played the song. */ - uniqueListeners?: number; + uniqueListeners?: number /** The URI of the album the song belongs to. */ - albumUri?: string; + albumUri?: string /** The URI of the artist of the song. */ - artistUri?: string; + artistUri?: string /** The SHA256 hash of the song. */ - sha256?: string; + sha256?: string /** The timestamp when the song was created. */ - createdAt?: string; - [k: string]: unknown; + createdAt?: string + [k: string]: unknown } export function isSongViewDetailed(v: unknown): v is SongViewDetailed { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.song.defs#songViewDetailed" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.song.defs#songViewDetailed' + ) } export function validateSongViewDetailed(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.song.defs#songViewDetailed", v); + return lexicons.validate('app.rocksky.song.defs#songViewDetailed', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/song/getSong.ts b/apps/api/src/lexicon/types/app/rocksky/song/getSong.ts index 578be0e4..e240beb2 100644 --- a/apps/api/src/lexicon/types/app/rocksky/song/getSong.ts +++ b/apps/api/src/lexicon/types/app/rocksky/song/getSong.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskySongDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskySongDefs from './defs' export interface QueryParams { /** The unique identifier of the song to retrieve */ - uri: string; + uri: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskySongDefs.SongViewDetailed; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskySongDefs.SongViewDetailed +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/song/getSongs.ts b/apps/api/src/lexicon/types/app/rocksky/song/getSongs.ts index 7c209584..444d1343 100644 --- a/apps/api/src/lexicon/types/app/rocksky/song/getSongs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/song/getSongs.ts @@ -1,50 +1,50 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskySongDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskySongDefs from './defs' export interface QueryParams { /** The maximum number of songs to return */ - limit?: number; + limit?: number /** The offset for pagination */ - offset?: number; + offset?: number } -export type InputSchema = undefined; +export type InputSchema = undefined export interface OutputSchema { - songs?: AppRockskySongDefs.SongViewBasic[]; - [k: string]: unknown; + songs?: AppRockskySongDefs.SongViewBasic[] + [k: string]: unknown } -export type HandlerInput = undefined; +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/spotify/defs.ts b/apps/api/src/lexicon/types/app/rocksky/spotify/defs.ts index 86a590f6..0cb404d0 100644 --- a/apps/api/src/lexicon/types/app/rocksky/spotify/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/spotify/defs.ts @@ -1,35 +1,35 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' export interface SpotifyTrackView { /** The unique identifier of the Spotify track. */ - id?: string; + id?: string /** The name of the track. */ - name?: string; + name?: string /** The name of the artist. */ - artist?: string; + artist?: string /** The name of the album. */ - album?: string; + album?: string /** The duration of the track in milliseconds. */ - duration?: number; + duration?: number /** A URL to a preview of the track. */ - previewUrl?: string; - [k: string]: unknown; + previewUrl?: string + [k: string]: unknown } export function isSpotifyTrackView(v: unknown): v is SpotifyTrackView { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.spotify.defs#spotifyTrackView" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.spotify.defs#spotifyTrackView' + ) } export function validateSpotifyTrackView(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.spotify.defs#spotifyTrackView", v); + return lexicons.validate('app.rocksky.spotify.defs#spotifyTrackView', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/spotify/getCurrentlyPlaying.ts b/apps/api/src/lexicon/types/app/rocksky/spotify/getCurrentlyPlaying.ts index c6be7e31..1302318a 100644 --- a/apps/api/src/lexicon/types/app/rocksky/spotify/getCurrentlyPlaying.ts +++ b/apps/api/src/lexicon/types/app/rocksky/spotify/getCurrentlyPlaying.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyPlayerDefs from "../player/defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyPlayerDefs from '../player/defs' export interface QueryParams { /** Handle or DID of the actor to retrieve the currently playing track for. If not provided, defaults to the current user. */ - actor?: string; + actor?: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyPlayerDefs.CurrentlyPlayingViewDetailed; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyPlayerDefs.CurrentlyPlayingViewDetailed +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/spotify/next.ts b/apps/api/src/lexicon/types/app/rocksky/spotify/next.ts index c404dc11..1aaf2dd9 100644 --- a/apps/api/src/lexicon/types/app/rocksky/spotify/next.ts +++ b/apps/api/src/lexicon/types/app/rocksky/spotify/next.ts @@ -1,32 +1,32 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' -export type QueryParams = {}; +export type QueryParams = {} -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/spotify/pause.ts b/apps/api/src/lexicon/types/app/rocksky/spotify/pause.ts index c404dc11..1aaf2dd9 100644 --- a/apps/api/src/lexicon/types/app/rocksky/spotify/pause.ts +++ b/apps/api/src/lexicon/types/app/rocksky/spotify/pause.ts @@ -1,32 +1,32 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' -export type QueryParams = {}; +export type QueryParams = {} -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/spotify/play.ts b/apps/api/src/lexicon/types/app/rocksky/spotify/play.ts index c404dc11..1aaf2dd9 100644 --- a/apps/api/src/lexicon/types/app/rocksky/spotify/play.ts +++ b/apps/api/src/lexicon/types/app/rocksky/spotify/play.ts @@ -1,32 +1,32 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' -export type QueryParams = {}; +export type QueryParams = {} -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/spotify/previous.ts b/apps/api/src/lexicon/types/app/rocksky/spotify/previous.ts index c404dc11..1aaf2dd9 100644 --- a/apps/api/src/lexicon/types/app/rocksky/spotify/previous.ts +++ b/apps/api/src/lexicon/types/app/rocksky/spotify/previous.ts @@ -1,32 +1,32 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' -export type QueryParams = {}; +export type QueryParams = {} -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/spotify/seek.ts b/apps/api/src/lexicon/types/app/rocksky/spotify/seek.ts index 7b47acff..8bcc26e5 100644 --- a/apps/api/src/lexicon/types/app/rocksky/spotify/seek.ts +++ b/apps/api/src/lexicon/types/app/rocksky/spotify/seek.ts @@ -1,35 +1,35 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import { type HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' export interface QueryParams { /** The position in seconds to seek to */ - position: number; + position: number } -export type InputSchema = undefined; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type HandlerInput = undefined export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | void; +export type HandlerOutput = HandlerError | void export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/app/rocksky/stats/defs.ts b/apps/api/src/lexicon/types/app/rocksky/stats/defs.ts index e24d1a4c..ca70d320 100644 --- a/apps/api/src/lexicon/types/app/rocksky/stats/defs.ts +++ b/apps/api/src/lexicon/types/app/rocksky/stats/defs.ts @@ -1,33 +1,33 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' export interface StatsView { /** The total number of scrobbles. */ - scrobbles?: number; + scrobbles?: number /** The total number of unique artists scrobbled. */ - artists?: number; + artists?: number /** The total number of tracks marked as loved. */ - lovedTracks?: number; + lovedTracks?: number /** The total number of unique albums scrobbled. */ - albums?: number; + albums?: number /** The total number of unique tracks scrobbled. */ - tracks?: number; - [k: string]: unknown; + tracks?: number + [k: string]: unknown } export function isStatsView(v: unknown): v is StatsView { return ( isObj(v) && - hasProp(v, "$type") && - v.$type === "app.rocksky.stats.defs#statsView" - ); + hasProp(v, '$type') && + v.$type === 'app.rocksky.stats.defs#statsView' + ) } export function validateStatsView(v: unknown): ValidationResult { - return lexicons.validate("app.rocksky.stats.defs#statsView", v); + return lexicons.validate('app.rocksky.stats.defs#statsView', v) } diff --git a/apps/api/src/lexicon/types/app/rocksky/stats/getStats.ts b/apps/api/src/lexicon/types/app/rocksky/stats/getStats.ts index 5c1a3ced..aa3c390e 100644 --- a/apps/api/src/lexicon/types/app/rocksky/stats/getStats.ts +++ b/apps/api/src/lexicon/types/app/rocksky/stats/getStats.ts @@ -1,43 +1,43 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import type express from "express"; -import { ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; -import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; -import type * as AppRockskyStatsDefs from "./defs"; +import type express from 'express' +import { ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' +import type { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server' +import type * as AppRockskyStatsDefs from './defs' export interface QueryParams { /** The DID or handle of the user to get stats for. */ - did: string; + did: string } -export type InputSchema = undefined; -export type OutputSchema = AppRockskyStatsDefs.StatsView; -export type HandlerInput = undefined; +export type InputSchema = undefined +export type OutputSchema = AppRockskyStatsDefs.StatsView +export type HandlerInput = undefined export interface HandlerSuccess { - encoding: "application/json"; - body: OutputSchema; - headers?: { [key: string]: string }; + encoding: 'application/json' + body: OutputSchema + headers?: { [key: string]: string } } export interface HandlerError { - status: number; - message?: string; + status: number + message?: string } -export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough; +export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough export type HandlerReqCtx = { - auth: HA; - params: QueryParams; - input: HandlerInput; - req: express.Request; - res: express.Response; - resetRouteRateLimits: () => Promise; -}; + auth: HA + params: QueryParams + input: HandlerInput + req: express.Request + res: express.Response + resetRouteRateLimits: () => Promise +} export type Handler = ( ctx: HandlerReqCtx, -) => Promise | HandlerOutput; +) => Promise | HandlerOutput diff --git a/apps/api/src/lexicon/types/com/atproto/repo/strongRef.ts b/apps/api/src/lexicon/types/com/atproto/repo/strongRef.ts index 089fdb69..0f8254db 100644 --- a/apps/api/src/lexicon/types/com/atproto/repo/strongRef.ts +++ b/apps/api/src/lexicon/types/com/atproto/repo/strongRef.ts @@ -1,26 +1,26 @@ /** * GENERATED CODE - DO NOT MODIFY */ -import { type ValidationResult, BlobRef } from "@atproto/lexicon"; -import { lexicons } from "../../../../lexicons"; -import { isObj, hasProp } from "../../../../util"; -import { CID } from "multiformats/cid"; +import { type ValidationResult, BlobRef } from '@atproto/lexicon' +import { lexicons } from '../../../../lexicons' +import { isObj, hasProp } from '../../../../util' +import { CID } from 'multiformats/cid' export interface Main { - uri: string; - cid: string; - [k: string]: unknown; + uri: string + cid: string + [k: string]: unknown } export function isMain(v: unknown): v is Main { return ( isObj(v) && - hasProp(v, "$type") && - (v.$type === "com.atproto.repo.strongRef#main" || - v.$type === "com.atproto.repo.strongRef") - ); + hasProp(v, '$type') && + (v.$type === 'com.atproto.repo.strongRef#main' || + v.$type === 'com.atproto.repo.strongRef') + ) } export function validateMain(v: unknown): ValidationResult { - return lexicons.validate("com.atproto.repo.strongRef#main", v); + return lexicons.validate('com.atproto.repo.strongRef#main', v) } diff --git a/apps/api/src/lexicon/util.ts b/apps/api/src/lexicon/util.ts index e5546559..d7e70440 100644 --- a/apps/api/src/lexicon/util.ts +++ b/apps/api/src/lexicon/util.ts @@ -2,12 +2,12 @@ * GENERATED CODE - DO NOT MODIFY */ export function isObj(v: unknown): v is Record { - return typeof v === "object" && v !== null; + return typeof v === 'object' && v !== null } export function hasProp( data: object, prop: K, ): data is Record { - return prop in data; + return prop in data } diff --git a/apps/api/src/nowplaying/nowplaying.service.ts b/apps/api/src/nowplaying/nowplaying.service.ts index 0a90f3b1..261a7b9a 100644 --- a/apps/api/src/nowplaying/nowplaying.service.ts +++ b/apps/api/src/nowplaying/nowplaying.service.ts @@ -1,8 +1,8 @@ -import { Agent, BlobRef } from "@atproto/api"; +import type { Agent, BlobRef } from "@atproto/api"; import { TID } from "@atproto/common"; import { equals } from "@xata.io/client"; import chalk from "chalk"; -import { Context } from "context"; +import type { Context } from "context"; import { createHash } from "crypto"; import dayjs from "dayjs"; import * as Album from "lexicon/types/app/rocksky/album"; @@ -10,7 +10,7 @@ import * as Artist from "lexicon/types/app/rocksky/artist"; import * as Scrobble from "lexicon/types/app/rocksky/scrobble"; import * as Song from "lexicon/types/app/rocksky/song"; import downloadImage, { getContentType } from "lib/downloadImage"; -import { Track } from "types/track"; +import type { Track } from "types/track"; export async function putArtistRecord( track: Track, @@ -64,10 +64,10 @@ export async function putAlbumRecord( agent: Agent, ): Promise { const rkey = TID.nextStr(); - let albumArt = undefined; + let albumArt ; if (track.albumArt) { - let options = undefined; + let options ; if (track.albumArt.endsWith(".jpeg") || track.albumArt.endsWith(".jpg")) { options = { encoding: "image/jpeg" }; } @@ -124,10 +124,10 @@ export async function putSongRecord( agent: Agent, ): Promise { const rkey = TID.nextStr(); - let albumArt = undefined; + let albumArt ; if (track.albumArt) { - let options = undefined; + let options ; if (track.albumArt.endsWith(".jpeg") || track.albumArt.endsWith(".jpg")) { options = { encoding: "image/jpeg" }; } @@ -153,15 +153,15 @@ export async function putSongRecord( : undefined, year: track.year, albumArt, - composer: !!track.composer ? track.composer : undefined, - lyrics: !!track.lyrics ? track.lyrics : undefined, + composer: track.composer ? track.composer : undefined, + lyrics: track.lyrics ? track.lyrics : undefined, trackNumber: track.trackNumber, discNumber: track.discNumber === 0 ? 1 : track.discNumber, - copyrightMessage: !!track.copyrightMessage + copyrightMessage: track.copyrightMessage ? track.copyrightMessage : undefined, createdAt: new Date().toISOString(), - spotifyLink: !!track.spotifyLink ? track.spotifyLink : undefined, + spotifyLink: track.spotifyLink ? track.spotifyLink : undefined, }; if (!Song.validateRecord(record).success) { @@ -191,10 +191,10 @@ async function putScrobbleRecord( agent: Agent, ): Promise { const rkey = TID.nextStr(); - let albumArt = undefined; + let albumArt ; if (track.albumArt) { - let options = undefined; + let options ; if (track.albumArt.endsWith(".jpeg") || track.albumArt.endsWith(".jpg")) { options = { encoding: "image/jpeg" }; } @@ -222,16 +222,16 @@ async function putScrobbleRecord( ? track.releaseDate.toISOString() : undefined, year: track.year, - composer: !!track.composer ? track.composer : undefined, - lyrics: !!track.lyrics ? track.lyrics : undefined, - copyrightMessage: !!track.copyrightMessage + composer: track.composer ? track.composer : undefined, + lyrics: track.lyrics ? track.lyrics : undefined, + copyrightMessage: track.copyrightMessage ? track.copyrightMessage : undefined, // if track.timestamp is not null, set it to the timestamp createdAt: track.timestamp ? dayjs.unix(track.timestamp).toISOString() : new Date().toISOString(), - spotifyLink: !!track.spotifyLink ? track.spotifyLink : undefined, + spotifyLink: track.spotifyLink ? track.spotifyLink : undefined, }; if (!Scrobble.validateRecord(record).success) { diff --git a/apps/api/src/xrpc/app/rocksky/scrobble/createScrobble.ts b/apps/api/src/xrpc/app/rocksky/scrobble/createScrobble.ts index 72aa62b7..59b581d1 100644 --- a/apps/api/src/xrpc/app/rocksky/scrobble/createScrobble.ts +++ b/apps/api/src/xrpc/app/rocksky/scrobble/createScrobble.ts @@ -1,32 +1,32 @@ -import { Agent, BlobRef } from "@atproto/api"; +import type { Agent, BlobRef } from "@atproto/api"; import { TID } from "@atproto/common"; -import { HandlerAuth } from "@atproto/xrpc-server"; +import type { HandlerAuth } from "@atproto/xrpc-server"; import chalk from "chalk"; -import { Context } from "context"; +import type { Context } from "context"; import dayjs from "dayjs"; import { and, eq } from "drizzle-orm"; import { Effect, Match, Option, pipe } from "effect"; -import { Server } from "lexicon"; +import type { Server } from "lexicon"; import * as Album from "lexicon/types/app/rocksky/album"; import * as Artist from "lexicon/types/app/rocksky/artist"; import * as Scrobble from "lexicon/types/app/rocksky/scrobble"; -import { InputSchema } from "lexicon/types/app/rocksky/scrobble/createScrobble"; -import { ScrobbleViewBasic } from "lexicon/types/app/rocksky/scrobble/defs"; +import type { InputSchema } from "lexicon/types/app/rocksky/scrobble/createScrobble"; +import type { ScrobbleViewBasic } from "lexicon/types/app/rocksky/scrobble/defs"; import * as Song from "lexicon/types/app/rocksky/song"; import { deepSnakeCaseKeys } from "lib"; import { createAgent } from "lib/agent"; import downloadImage from "lib/downloadImage"; import { createHash } from "node:crypto"; import tables from "schema"; -import { SelectAlbum } from "schema/albums"; -import { SelectArtist } from "schema/artists"; -import { SelectScrobble } from "schema/scrobbles"; -import { SelectTrack } from "schema/tracks"; -import { InsertUserAlbum } from "schema/user-albums"; -import { InsertUserArtist } from "schema/user-artists"; -import { InsertUserTrack } from "schema/user-tracks"; -import { SelectUser } from "schema/users"; -import { Track, trackSchema } from "types/track"; +import type { SelectAlbum } from "schema/albums"; +import type { SelectArtist } from "schema/artists"; +import type { SelectScrobble } from "schema/scrobbles"; +import type { SelectTrack } from "schema/tracks"; +import type { InsertUserAlbum } from "schema/user-albums"; +import type { InsertUserArtist } from "schema/user-artists"; +import type { InsertUserTrack } from "schema/user-tracks"; +import type { SelectUser } from "schema/users"; +import { type Track, trackSchema } from "types/track"; export default function (server: Server, ctx: Context) { const createScrobble = (input, auth: HandlerAuth) => diff --git a/apps/api/src/xrpc/app/rocksky/scrobble/getScrobbles.ts b/apps/api/src/xrpc/app/rocksky/scrobble/getScrobbles.ts index 30b97a1c..f3dc446f 100644 --- a/apps/api/src/xrpc/app/rocksky/scrobble/getScrobbles.ts +++ b/apps/api/src/xrpc/app/rocksky/scrobble/getScrobbles.ts @@ -1,14 +1,14 @@ -import { Context } from "context"; +import type { Context } from "context"; import { desc, eq } from "drizzle-orm"; import { Effect, pipe } from "effect"; -import { Server } from "lexicon"; -import { ScrobbleViewBasic } from "lexicon/types/app/rocksky/scrobble/defs"; -import { QueryParams } from "lexicon/types/app/rocksky/scrobble/getScrobbles"; +import type { Server } from "lexicon"; +import type { ScrobbleViewBasic } from "lexicon/types/app/rocksky/scrobble/defs"; +import type { QueryParams } from "lexicon/types/app/rocksky/scrobble/getScrobbles"; import * as R from "ramda"; import tables from "schema"; -import { SelectScrobble } from "schema/scrobbles"; -import { SelectTrack } from "schema/tracks"; -import { SelectUser } from "schema/users"; +import type { SelectScrobble } from "schema/scrobbles"; +import type { SelectTrack } from "schema/tracks"; +import type { SelectUser } from "schema/users"; export default function (server: Server, ctx: Context) { const getScrobbles = (params) => @@ -21,7 +21,7 @@ export default function (server: Server, ctx: Context) { Effect.catchAll((err) => { console.error("Error retrieving scrobbles:", err); return Effect.succeed({ scrobbles: [] }); - }), + }) ); server.app.rocksky.scrobble.getScrobbles({ handler: async ({ params }) => { @@ -58,7 +58,7 @@ const retrieve = ({ }; const presentation = ( - data: Scrobbles, + data: Scrobbles ): Effect.Effect<{ scrobbles: ScrobbleViewBasic[] }, never> => { return Effect.sync(() => ({ scrobbles: data.map(({ scrobbles, tracks, users }) => ({ @@ -66,6 +66,8 @@ const presentation = ( cover: tracks.albumArt, date: scrobbles.timestamp.toISOString(), user: users.handle, + userDisplayName: users.displayName, + userAvatar: users.avatar, uri: scrobbles.uri, tags: [], id: scrobbles.id, diff --git a/apps/api/src/xrpc/app/rocksky/shout/getShoutReplies.ts b/apps/api/src/xrpc/app/rocksky/shout/getShoutReplies.ts index d9bf2115..32fb1c3a 100644 --- a/apps/api/src/xrpc/app/rocksky/shout/getShoutReplies.ts +++ b/apps/api/src/xrpc/app/rocksky/shout/getShoutReplies.ts @@ -1,12 +1,12 @@ -import { Context } from "context"; +import type { Context } from "context"; import { asc, eq } from "drizzle-orm"; import { Effect, pipe } from "effect"; -import { Server } from "lexicon"; -import { ShoutView } from "lexicon/types/app/rocksky/shout/defs"; -import { QueryParams } from "lexicon/types/app/rocksky/shout/getShoutReplies"; +import type { Server } from "lexicon"; +import type { ShoutView } from "lexicon/types/app/rocksky/shout/defs"; +import type { QueryParams } from "lexicon/types/app/rocksky/shout/getShoutReplies"; import tables from "schema"; -import { SelectShout } from "schema/shouts"; -import { SelectUser } from "schema/users"; +import type { SelectShout } from "schema/shouts"; +import type { SelectUser } from "schema/users"; export default function (server: Server, ctx: Context) { const getShoutReplies = (params) => diff --git a/apps/api/src/xrpc/app/rocksky/shout/getTrackShouts.ts b/apps/api/src/xrpc/app/rocksky/shout/getTrackShouts.ts index 48adab14..581b03eb 100644 --- a/apps/api/src/xrpc/app/rocksky/shout/getTrackShouts.ts +++ b/apps/api/src/xrpc/app/rocksky/shout/getTrackShouts.ts @@ -1,9 +1,9 @@ -import { Context } from "context"; +import type { Context } from "context"; import { count, desc, eq, sql } from "drizzle-orm"; import { Effect, pipe } from "effect"; -import { Server } from "lexicon"; -import { ShoutView } from "lexicon/types/app/rocksky/shout/defs"; -import { QueryParams } from "lexicon/types/app/rocksky/shout/getTrackShouts"; +import type { Server } from "lexicon"; +import type { ShoutView } from "lexicon/types/app/rocksky/shout/defs"; +import type { QueryParams } from "lexicon/types/app/rocksky/shout/getTrackShouts"; import tables from "schema"; export default function (server: Server, ctx: Context) { diff --git a/apps/api/src/xrpc/app/rocksky/shout/removeShout.ts b/apps/api/src/xrpc/app/rocksky/shout/removeShout.ts index 64b6a86a..2486151c 100644 --- a/apps/api/src/xrpc/app/rocksky/shout/removeShout.ts +++ b/apps/api/src/xrpc/app/rocksky/shout/removeShout.ts @@ -1,9 +1,9 @@ -import { Agent } from "@atproto/api"; -import { HandlerAuth } from "@atproto/xrpc-server"; -import { Context } from "context"; +import type { Agent } from "@atproto/api"; +import type { HandlerAuth } from "@atproto/xrpc-server"; +import type { Context } from "context"; import { Effect, pipe } from "effect"; -import { Server } from "lexicon"; -import { QueryParams } from "lexicon/types/app/rocksky/shout/removeShout"; +import type { Server } from "lexicon"; +import type { QueryParams } from "lexicon/types/app/rocksky/shout/removeShout"; import { createAgent } from "lib/agent"; export default function (server: Server, ctx: Context) { diff --git a/apps/api/src/xrpc/app/rocksky/shout/replyShout.ts b/apps/api/src/xrpc/app/rocksky/shout/replyShout.ts index 90614c51..2dc5e3d0 100644 --- a/apps/api/src/xrpc/app/rocksky/shout/replyShout.ts +++ b/apps/api/src/xrpc/app/rocksky/shout/replyShout.ts @@ -1,9 +1,9 @@ -import { Agent } from "@atproto/api"; -import { HandlerAuth } from "@atproto/xrpc-server"; -import { Context } from "context"; +import type { Agent } from "@atproto/api"; +import type { HandlerAuth } from "@atproto/xrpc-server"; +import type { Context } from "context"; import { Effect, pipe } from "effect"; -import { Server } from "lexicon"; -import { QueryParams } from "lexicon/types/app/rocksky/shout/replyShout"; +import type { Server } from "lexicon"; +import type { QueryParams } from "lexicon/types/app/rocksky/shout/replyShout"; import { createAgent } from "lib/agent"; export default function (server: Server, ctx: Context) { diff --git a/apps/api/src/xrpc/app/rocksky/song/createSong.ts b/apps/api/src/xrpc/app/rocksky/song/createSong.ts index 0e0e238b..f864e8f8 100644 --- a/apps/api/src/xrpc/app/rocksky/song/createSong.ts +++ b/apps/api/src/xrpc/app/rocksky/song/createSong.ts @@ -1,29 +1,29 @@ -import { Agent, BlobRef } from "@atproto/api"; +import type { Agent, BlobRef } from "@atproto/api"; import { TID } from "@atproto/common"; -import { HandlerAuth } from "@atproto/xrpc-server"; +import type { HandlerAuth } from "@atproto/xrpc-server"; import chalk from "chalk"; -import { Context } from "context"; +import type { Context } from "context"; import { and, eq } from "drizzle-orm"; import { Effect, Match, Option, pipe } from "effect"; -import { NoSuchElementException, UnknownException } from "effect/Cause"; -import { Server } from "lexicon"; +import type { NoSuchElementException, UnknownException } from "effect/Cause"; +import type { Server } from "lexicon"; import * as Album from "lexicon/types/app/rocksky/album"; import * as Artist from "lexicon/types/app/rocksky/artist"; import * as Song from "lexicon/types/app/rocksky/song"; -import { InputSchema } from "lexicon/types/app/rocksky/song/createSong"; -import { SongViewDetailed } from "lexicon/types/app/rocksky/song/defs"; +import type { InputSchema } from "lexicon/types/app/rocksky/song/createSong"; +import type { SongViewDetailed } from "lexicon/types/app/rocksky/song/defs"; import { deepSnakeCaseKeys } from "lib"; import { createAgent } from "lib/agent"; import downloadImage from "lib/downloadImage"; import { createHash } from "node:crypto"; import tables from "schema"; -import { InsertAlbumTrack, SelectAlbumTrack } from "schema/album-tracks"; -import { SelectAlbum } from "schema/albums"; -import { InsertArtistAlbum, SelectArtistAlbum } from "schema/artist-albums"; -import { InsertArtistTrack, SelectArtistTrack } from "schema/artist-tracks"; -import { SelectArtist } from "schema/artists"; -import { SelectTrack } from "schema/tracks"; -import { Track, trackSchema } from "types/track"; +import type { InsertAlbumTrack, SelectAlbumTrack } from "schema/album-tracks"; +import type { SelectAlbum } from "schema/albums"; +import type { InsertArtistAlbum, SelectArtistAlbum } from "schema/artist-albums"; +import type { InsertArtistTrack, SelectArtistTrack } from "schema/artist-tracks"; +import type { SelectArtist } from "schema/artists"; +import type { SelectTrack } from "schema/tracks"; +import { type Track, trackSchema } from "types/track"; export default function (server: Server, ctx: Context) { const createSong = (input: InputSchema, auth: HandlerAuth) => diff --git a/apps/web/src/pages/home/feed/Feed.tsx b/apps/web/src/pages/home/feed/Feed.tsx index 4961324d..c65038bb 100644 --- a/apps/web/src/pages/home/feed/Feed.tsx +++ b/apps/web/src/pages/home/feed/Feed.tsx @@ -1,6 +1,6 @@ import styled from "@emotion/styled"; import { Link } from "@tanstack/react-router"; -import { BlockProps } from "baseui/block"; +import type { BlockProps } from "baseui/block"; import { FlexGrid, FlexGridItem } from "baseui/flex-grid"; import { StatefulTooltip } from "baseui/tooltip"; import { HeadingMedium, LabelMedium } from "baseui/typography";