-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
129 lines (124 loc) · 3.18 KB
/
types.ts
File metadata and controls
129 lines (124 loc) · 3.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// Generated by https://quicktype.io
export interface MyStats {
SessionId: string
SessionAddress: string
IPAddress: string
TotalBytesTransmitted: number
CurrentPayloadBytes: number
CurrentBurstBandwidth: number
CurrentAvgBandwidth: number
ConnectedSince: string
IcyMetaData: boolean
HttpVersion: string
RequestHeaders: string
UserAgent: string
RequestQueryString: string
CurrentItem: string
CurrentAdmarkerAmount: number
VirtualBufferSeconds: number
CurrentTrack: CurrentTrack
GeoIPCountry: string
GeoIPState: string
GeoIPCity: string
GeoIPZip: string
GeoIPLatitude: number
GeoIPLongitude: number
Codec: string
Quality: string
StreamingSessionType: string
StreamMount: string
StreamId: string
PrevSessionId: string
LastUpdate: string
OSMReverseResponse: OSMReverseResponse | null
FacebookInfo: null
StreaMonkeyListenerId: string
AdswizzListenerId: string
AdswizzSessionId: string
AdswizzListenerIdByAdserver: null
AdswizzSessionIdByAdserver: Record<string, string> | null
UseMediationLayer: boolean
StreamingHost: string
PCR: number
AdvertisementDuration: number
CellularConnection: boolean
ReverseDNSLookup: string
TLD: string
WorkerPid: string
URL: string
HTTPS: boolean
NextPossibleInstreamAd: string
InstreamGracetimeSeconds2: number
IsActiveSession: boolean
}
export interface OSMReverseResponse {
place_id: number
licence: string
osm_type: string
osm_id: number
lat: string
lon: string
display_name: string
address: { [key: string]: string }
boundingbox: string[]
}
export interface CurrentTrack {
TrackId: number
Bitrate: number
Duration: number
StoragePath: string
StorageType: string
Title: string
Artist: string
Album: string
Year: null
Track: null
Genre: string
ArtworkPath: string
TrackType: string
RawTrackAccessUrl: string
EncodingFinished: boolean
EncodingHadError: boolean
}
export interface SocketMeta {
artist: string
class: string
companion_ad: CompanionAd | null
cover_data: null
cover_url: string
master_id: string
start_time_unix: string
title: string
title_combined: string
}
export interface CompanionAd {
creative_id: string
/**
* resource_url contains the URL of the companion ad to download the media
* this is most likely not allowed due to CORS restrictions, so use the
* resource_data field instead
*/
resource_url: string
/**
* resource_type contains the mime type of the companion ad
* e.g. image/png, image/jpeg
*/
resource_type: string
/**
* click contain the URL where the user should be redirected to when
* clicking the companion ad
*/
click: string
/**
* click_tracking contains the URLs where the click should be tracked
*/
click_tracking: string[]
/**
* view_tracking contains the URLs where the view should be tracked
*/
view_tracking: string[]
/**
* resource_data contains the base64 encoded data of the companion ad
*/
resource_data: string
}