1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-20 09:41:35 +02:00

Added spotify keys to Activity schema

This commit is contained in:
Madeline 2022-09-07 15:28:45 +10:00
parent 27ec60b9fa
commit cf97d81dd4
2 changed files with 16 additions and 0 deletions

View File

@ -41,6 +41,14 @@ export const ActivitySchema = {
},
],
$since: Number, // unix time (in milliseconds) of when the client went idle, or null if the client is not idle
$id: String,
$sync_id: String,
$metadata: { // spotify
$context_url: String,
album_id: String,
artist_ids: [String],
}
};
export interface ActivitySchema {

View File

@ -33,6 +33,14 @@ export interface Activity {
};
instance?: boolean;
flags: string; // activity flags OR d together, describes what the payload includes
id?: string;
sync_id?: string;
metadata?: { // spotify
context_url?: string;
album_id: string;
artist_ids: string[];
}
}
export enum ActivityType {