Socket
Socket
Sign inDemoInstall

spotify-api-types

Package Overview
Dependencies
0
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.4.1

53

dist/v1/rest/misc.d.ts

@@ -1,2 +0,3 @@

import type { Limit_O, Market_O } from './util';
import type { ArtistObject, PagingObject, RecommendationsObject, SimplifiedAlbumObject, SimplifiedEpisodeObject, SimplifiedPlaylistObject, SimplifiedShowObject, TrackObject } from '../payloads';
import type { Limit_O, Market_O, Offset_O } from './util';
/**

@@ -80,2 +81,52 @@ * https://developer.spotify.com/documentation/web-api/reference/#endpoint-get-available-markets

}
/**
* https://developer.spotify.com/documentation/web-api/reference/#endpoint-get-recommendations
*/
export declare type GetRecommendationsResponse = RecommendationsObject;
/**
* https://developer.spotify.com/documentation/web-api/reference/#endpoint-search
*/
export interface GetSearchQuery extends Market_O, Offset_O {
/**
* Search query keywords and optional field filters and operators
*
* For example: `q=roadhouse%20blues`
*/
q: string;
/**
* A comma-separated list of item types to search across
*
* Valid types are: `album`, `artist`, `playlist`, `track`, `show`, and `episode`
*
* Search results include hits from all the specified item types
*
* For example: `q=name:abacab&type=album,track` returns both albums and tracks with `abacab` included in their name
*/
type: Array<string>;
/**
* The maximum number of results to return
*
* Default: `20`, Minimum: `1`, Maximum: `50`
*
* **Note**: The limit is applied within each type, not on the total response. For example, if the limit value is `3` and the type is `artist,album` the response contains `3` artists and `3` albums
*/
limit?: number;
/**
* If `include_external=audio` is specified the response will include any relevant audio content that is hosted externally
*
* By default external content is filtered out from responses
*/
include_external?: string;
}
/**
* https://developer.spotify.com/documentation/web-api/reference/#endpoint-search
*/
export interface GetSearchResponse {
albums: PagingObject<SimplifiedAlbumObject>;
artists: PagingObject<ArtistObject>;
playlists: PagingObject<SimplifiedPlaylistObject>;
tracks: PagingObject<TrackObject>;
shows: PagingObject<SimplifiedShowObject>;
episodes: PagingObject<SimplifiedEpisodeObject>;
}
//# sourceMappingURL=misc.d.ts.map

2

package.json
{
"name": "spotify-api-types",
"version": "0.4.0",
"version": "0.4.1",
"description": "Type definitions for Spotify API",

@@ -5,0 +5,0 @@ "main": "./dist/default/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc