A decentralized music tracking and discovery platform built on AT Protocol 🎵

refactor: rename 'artists' to 'artistMbid' for consistency in artist definitions

+23 -23
+1 -1
apps/api/lexicons/artist/defs.json
··· 133 133 } 134 134 } 135 135 }, 136 - "artists": { 136 + "artistMbid": { 137 137 "type": "object", 138 138 "properties": { 139 139 "mbid": {
+1 -1
apps/api/pkl/defs/artist/defs.pkl
··· 162 162 } 163 163 } 164 164 165 - ["artists"] { 165 + ["artistMbid"] { 166 166 type = "object" 167 167 properties { 168 168 ["mbid"] = new StringType {
+1 -1
apps/api/src/lexicon/lexicons.ts
··· 1720 1720 }, 1721 1721 }, 1722 1722 }, 1723 - artists: { 1723 + artistMbid: { 1724 1724 type: "object", 1725 1725 properties: { 1726 1726 mbid: {
+1 -1
apps/api/src/lexicon/types/app/rocksky/apikey/createApikey.ts
··· 9 9 import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; 10 10 import type * as AppRockskyApikeyDefs from "./defs"; 11 11 12 - export type QueryParams = {}; 12 + export type QueryParams = {} 13 13 14 14 export interface InputSchema { 15 15 /** The name of the API key. */
+1 -1
apps/api/src/lexicon/types/app/rocksky/apikey/updateApikey.ts
··· 9 9 import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; 10 10 import type * as AppRockskyApikeyDefs from "./defs"; 11 11 12 - export type QueryParams = {}; 12 + export type QueryParams = {} 13 13 14 14 export interface InputSchema { 15 15 /** The ID of the API key to update. */
+5 -5
apps/api/src/lexicon/types/app/rocksky/artist/defs.ts
··· 119 119 return lexicons.validate("app.rocksky.artist.defs#listenerViewBasic", v); 120 120 } 121 121 122 - export interface Artists { 122 + export interface ArtistMbid { 123 123 /** The MusicBrainz Identifier (MBID) of the artist. */ 124 124 mbid?: string; 125 125 /** The name of the artist. */ ··· 127 127 [k: string]: unknown; 128 128 } 129 129 130 - export function isArtists(v: unknown): v is Artists { 130 + export function isArtistMbid(v: unknown): v is ArtistMbid { 131 131 return ( 132 132 isObj(v) && 133 133 hasProp(v, "$type") && 134 - v.$type === "app.rocksky.artist.defs#artists" 134 + v.$type === "app.rocksky.artist.defs#artistMbid" 135 135 ); 136 136 } 137 137 138 - export function validateArtists(v: unknown): ValidationResult { 139 - return lexicons.validate("app.rocksky.artist.defs#artists", v); 138 + export function validateArtistMbid(v: unknown): ValidationResult { 139 + return lexicons.validate("app.rocksky.artist.defs#artistMbid", v); 140 140 }
+1 -1
apps/api/src/lexicon/types/app/rocksky/like/dislikeShout.ts
··· 9 9 import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; 10 10 import type * as AppRockskyShoutDefs from "../shout/defs"; 11 11 12 - export type QueryParams = {}; 12 + export type QueryParams = {} 13 13 14 14 export interface InputSchema { 15 15 /** The unique identifier of the shout to dislike */
+1 -1
apps/api/src/lexicon/types/app/rocksky/like/dislikeSong.ts
··· 9 9 import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; 10 10 import type * as AppRockskySongDefs from "../song/defs"; 11 11 12 - export type QueryParams = {}; 12 + export type QueryParams = {} 13 13 14 14 export interface InputSchema { 15 15 /** The unique identifier of the song to dislike */
+1 -1
apps/api/src/lexicon/types/app/rocksky/like/likeShout.ts
··· 9 9 import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; 10 10 import type * as AppRockskyShoutDefs from "../shout/defs"; 11 11 12 - export type QueryParams = {}; 12 + export type QueryParams = {} 13 13 14 14 export interface InputSchema { 15 15 /** The unique identifier of the shout to like */
+1 -1
apps/api/src/lexicon/types/app/rocksky/like/likeSong.ts
··· 9 9 import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; 10 10 import type * as AppRockskySongDefs from "../song/defs"; 11 11 12 - export type QueryParams = {}; 12 + export type QueryParams = {} 13 13 14 14 export interface InputSchema { 15 15 /** The unique identifier of the song to like */
+1 -1
apps/api/src/lexicon/types/app/rocksky/scrobble/createScrobble.ts
··· 9 9 import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; 10 10 import type * as AppRockskyScrobbleDefs from "./defs"; 11 11 12 - export type QueryParams = {}; 12 + export type QueryParams = {} 13 13 14 14 export interface InputSchema { 15 15 /** The title of the track being scrobbled */
+1 -1
apps/api/src/lexicon/types/app/rocksky/shout/createShout.ts
··· 9 9 import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; 10 10 import type * as AppRockskyShoutDefs from "./defs"; 11 11 12 - export type QueryParams = {}; 12 + export type QueryParams = {} 13 13 14 14 export interface InputSchema { 15 15 /** The content of the shout */
+1 -1
apps/api/src/lexicon/types/app/rocksky/shout/replyShout.ts
··· 9 9 import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; 10 10 import type * as AppRockskyShoutDefs from "./defs"; 11 11 12 - export type QueryParams = {}; 12 + export type QueryParams = {} 13 13 14 14 export interface InputSchema { 15 15 /** The unique identifier of the shout to reply to */
+1 -1
apps/api/src/lexicon/types/app/rocksky/shout/reportShout.ts
··· 9 9 import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; 10 10 import type * as AppRockskyShoutDefs from "./defs"; 11 11 12 - export type QueryParams = {}; 12 + export type QueryParams = {} 13 13 14 14 export interface InputSchema { 15 15 /** The unique identifier of the shout to report */
+1 -1
apps/api/src/lexicon/types/app/rocksky/song/createSong.ts
··· 9 9 import type { HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; 10 10 import type * as AppRockskySongDefs from "./defs"; 11 11 12 - export type QueryParams = {}; 12 + export type QueryParams = {} 13 13 14 14 export interface InputSchema { 15 15 /** The title of the song */
+1 -1
apps/api/src/lexicon/types/app/rocksky/spotify/next.ts
··· 8 8 import { CID } from "multiformats/cid"; 9 9 import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; 10 10 11 - export type QueryParams = {}; 11 + export type QueryParams = {} 12 12 13 13 export type InputSchema = undefined; 14 14 export type HandlerInput = undefined;
+1 -1
apps/api/src/lexicon/types/app/rocksky/spotify/pause.ts
··· 8 8 import { CID } from "multiformats/cid"; 9 9 import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; 10 10 11 - export type QueryParams = {}; 11 + export type QueryParams = {} 12 12 13 13 export type InputSchema = undefined; 14 14 export type HandlerInput = undefined;
+1 -1
apps/api/src/lexicon/types/app/rocksky/spotify/play.ts
··· 8 8 import { CID } from "multiformats/cid"; 9 9 import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; 10 10 11 - export type QueryParams = {}; 11 + export type QueryParams = {} 12 12 13 13 export type InputSchema = undefined; 14 14 export type HandlerInput = undefined;
+1 -1
apps/api/src/lexicon/types/app/rocksky/spotify/previous.ts
··· 8 8 import { CID } from "multiformats/cid"; 9 9 import { type HandlerAuth, HandlerPipeThrough } from "@atproto/xrpc-server"; 10 10 11 - export type QueryParams = {}; 11 + export type QueryParams = {} 12 12 13 13 export type InputSchema = undefined; 14 14 export type HandlerInput = undefined;