@segha/watchmode 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/IdMapping.ts +15 -0
- package/README.md +178 -0
- package/index.ts +4 -0
- package/json-schemas/API/APIEndpoints.json +23 -0
- package/json-schemas/API/BaseUrl.json +6 -0
- package/json-schemas/API/ConfigurationSchema.json +13 -0
- package/json-schemas/API/DatasetsBaseUrl.json +6 -0
- package/json-schemas/API/DatasetsEndpoints.json +10 -0
- package/json-schemas/API/EndpointsSchema.json +50 -0
- package/json-schemas/API/IDMappingDatasetEndpoint.json +6 -0
- package/json-schemas/API/ListSourcesEndpoint.json +6 -0
- package/json-schemas/API/MethodsSchema.json +528 -0
- package/json-schemas/API/SourcesEndpoints.json +10 -0
- package/json-schemas/API/SpecSchema.json +554 -0
- package/json-schemas/API/TitleSourcesEndpoint.json +6 -0
- package/json-schemas/API/TitlesEndpoints.json +10 -0
- package/json-schemas/API/Version.json +6 -0
- package/json-schemas/API/index.json +1241 -0
- package/json-schemas/FreeServiceType.json +6 -0
- package/json-schemas/IdMappingEntrySchema.json +38 -0
- package/json-schemas/IdMappingSchema.json +41 -0
- package/json-schemas/PurchaseServiceType.json +6 -0
- package/json-schemas/Sources/FreeServiceType.json +6 -0
- package/json-schemas/Sources/PurchaseServiceType.json +6 -0
- package/json-schemas/Sources/StreamingSourceSchema.json +129 -0
- package/json-schemas/Sources/StreamingSourceTypeSchema.json +26 -0
- package/json-schemas/Sources/StreamingSourcesParametersSchema.json +18 -0
- package/json-schemas/Sources/StreamingSourcesSchema.json +132 -0
- package/json-schemas/Sources/SubscriptionServiceType.json +6 -0
- package/json-schemas/Sources/TVEServiceType.json +6 -0
- package/json-schemas/Sources/index.json +336 -0
- package/json-schemas/StreamingSourceSchema.json +129 -0
- package/json-schemas/StreamingSourceTypeSchema.json +26 -0
- package/json-schemas/StreamingSourcesParametersSchema.json +18 -0
- package/json-schemas/StreamingSourcesSchema.json +132 -0
- package/json-schemas/SubscriptionServiceType.json +6 -0
- package/json-schemas/TVEServiceType.json +6 -0
- package/json-schemas/TitleStreamingSourceSchema.json +169 -0
- package/json-schemas/TitleStreamingSourcesParametersSchema.json +13 -0
- package/json-schemas/TitleStreamingSourcesSchema.json +172 -0
- package/json-schemas/Titles/TitleStreamingSourceSchema.json +169 -0
- package/json-schemas/Titles/TitleStreamingSourcesParametersSchema.json +13 -0
- package/json-schemas/Titles/TitleStreamingSourcesSchema.json +172 -0
- package/json-schemas/Titles/index.json +361 -0
- package/json-schemas/index.json +769 -0
- package/package.json +51 -0
|
@@ -0,0 +1,769 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "@segha/watchmode",
|
|
4
|
+
"description": "Schemas for Watchmode",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"IdMappingEntrySchema": {
|
|
7
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"Watchmode ID": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Watchmode ID"
|
|
13
|
+
},
|
|
14
|
+
"IMDB ID": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "IMDB ID"
|
|
17
|
+
},
|
|
18
|
+
"TMDB ID": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "TMDB ID"
|
|
21
|
+
},
|
|
22
|
+
"TMDB Type": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "TMDB Type"
|
|
25
|
+
},
|
|
26
|
+
"Title": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Title"
|
|
29
|
+
},
|
|
30
|
+
"Year": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Year"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"Watchmode ID",
|
|
37
|
+
"IMDB ID",
|
|
38
|
+
"TMDB ID",
|
|
39
|
+
"TMDB Type",
|
|
40
|
+
"Title",
|
|
41
|
+
"Year"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"IdMappingSchema": {
|
|
45
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"properties": {
|
|
50
|
+
"Watchmode ID": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "Watchmode ID"
|
|
53
|
+
},
|
|
54
|
+
"IMDB ID": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "IMDB ID"
|
|
57
|
+
},
|
|
58
|
+
"TMDB ID": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "TMDB ID"
|
|
61
|
+
},
|
|
62
|
+
"TMDB Type": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"description": "TMDB Type"
|
|
65
|
+
},
|
|
66
|
+
"Title": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"description": "Title"
|
|
69
|
+
},
|
|
70
|
+
"Year": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"description": "Year"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"required": [
|
|
76
|
+
"Watchmode ID",
|
|
77
|
+
"IMDB ID",
|
|
78
|
+
"TMDB ID",
|
|
79
|
+
"TMDB Type",
|
|
80
|
+
"Title",
|
|
81
|
+
"Year"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"FreeServiceType": {
|
|
86
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
87
|
+
"type": "string",
|
|
88
|
+
"const": "free",
|
|
89
|
+
"description": "Free ad-supported services (Tubi, Pluto TV, etc.)"
|
|
90
|
+
},
|
|
91
|
+
"PurchaseServiceType": {
|
|
92
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
93
|
+
"type": "string",
|
|
94
|
+
"const": "purchase",
|
|
95
|
+
"description": "Rental/purchase services (iTunes, Vudu, etc.)"
|
|
96
|
+
},
|
|
97
|
+
"StreamingSourceSchema": {
|
|
98
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
99
|
+
"type": "object",
|
|
100
|
+
"properties": {
|
|
101
|
+
"id": {
|
|
102
|
+
"type": "number",
|
|
103
|
+
"description": "ID"
|
|
104
|
+
},
|
|
105
|
+
"name": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "Name"
|
|
108
|
+
},
|
|
109
|
+
"type": {
|
|
110
|
+
"anyOf": [
|
|
111
|
+
{
|
|
112
|
+
"type": "string",
|
|
113
|
+
"const": "sub",
|
|
114
|
+
"description": "Subscription services (Netflix, Hulu, etc.)"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "string",
|
|
118
|
+
"const": "purchase",
|
|
119
|
+
"description": "Rental/purchase services (iTunes, Vudu, etc.)"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"type": "string",
|
|
123
|
+
"const": "free",
|
|
124
|
+
"description": "Free ad-supported services (Tubi, Pluto TV, etc.)"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"type": "string",
|
|
128
|
+
"const": "tve",
|
|
129
|
+
"description": "TV Channel App (cable login required)"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"description": "Streaming source type"
|
|
133
|
+
},
|
|
134
|
+
"logo_100px": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"description": "Logo 100px"
|
|
137
|
+
},
|
|
138
|
+
"ios_appstore_url": {
|
|
139
|
+
"anyOf": [
|
|
140
|
+
{
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "null"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"description": "iOS App Store URL"
|
|
148
|
+
},
|
|
149
|
+
"android_playstore_url": {
|
|
150
|
+
"anyOf": [
|
|
151
|
+
{
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"type": "null"
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
"description": "Android Play Store URL"
|
|
159
|
+
},
|
|
160
|
+
"android_tv_url": {
|
|
161
|
+
"anyOf": [
|
|
162
|
+
{
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"type": "null"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"description": "Android TV URL"
|
|
170
|
+
},
|
|
171
|
+
"fire_tv_url": {
|
|
172
|
+
"anyOf": [
|
|
173
|
+
{
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"type": "null"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"description": "Fire TV URL"
|
|
181
|
+
},
|
|
182
|
+
"roku_url": {
|
|
183
|
+
"anyOf": [
|
|
184
|
+
{
|
|
185
|
+
"type": "string"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"type": "null"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"description": "Roku URL"
|
|
192
|
+
},
|
|
193
|
+
"tvos_url": {
|
|
194
|
+
"anyOf": [
|
|
195
|
+
{
|
|
196
|
+
"type": "string"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"type": "null"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"description": "tvOS URL"
|
|
203
|
+
},
|
|
204
|
+
"regions": {
|
|
205
|
+
"type": "array",
|
|
206
|
+
"items": {
|
|
207
|
+
"type": "string"
|
|
208
|
+
},
|
|
209
|
+
"description": "Regions"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"required": [
|
|
213
|
+
"id",
|
|
214
|
+
"name",
|
|
215
|
+
"type",
|
|
216
|
+
"logo_100px",
|
|
217
|
+
"ios_appstore_url",
|
|
218
|
+
"android_playstore_url",
|
|
219
|
+
"android_tv_url",
|
|
220
|
+
"fire_tv_url",
|
|
221
|
+
"roku_url",
|
|
222
|
+
"tvos_url",
|
|
223
|
+
"regions"
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
"StreamingSourceTypeSchema": {
|
|
227
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
228
|
+
"anyOf": [
|
|
229
|
+
{
|
|
230
|
+
"type": "string",
|
|
231
|
+
"const": "sub",
|
|
232
|
+
"description": "Subscription services (Netflix, Hulu, etc.)"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"type": "string",
|
|
236
|
+
"const": "purchase",
|
|
237
|
+
"description": "Rental/purchase services (iTunes, Vudu, etc.)"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"type": "string",
|
|
241
|
+
"const": "free",
|
|
242
|
+
"description": "Free ad-supported services (Tubi, Pluto TV, etc.)"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"type": "string",
|
|
246
|
+
"const": "tve",
|
|
247
|
+
"description": "TV Channel App (cable login required)"
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"description": "Streaming source type"
|
|
251
|
+
},
|
|
252
|
+
"StreamingSourcesParametersSchema": {
|
|
253
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
254
|
+
"type": "object",
|
|
255
|
+
"properties": {
|
|
256
|
+
"regions": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"description": "Filter sources by region. Pass one or multiple 2-letter country codes comma-separated (e.g., US,GB,CA)."
|
|
259
|
+
},
|
|
260
|
+
"types": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"description": "Filter sources by type. Pass one or multiple types comma-separated."
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"required": [
|
|
266
|
+
"regions",
|
|
267
|
+
"types"
|
|
268
|
+
]
|
|
269
|
+
},
|
|
270
|
+
"StreamingSourcesSchema": {
|
|
271
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
272
|
+
"type": "array",
|
|
273
|
+
"items": {
|
|
274
|
+
"type": "object",
|
|
275
|
+
"properties": {
|
|
276
|
+
"id": {
|
|
277
|
+
"type": "number",
|
|
278
|
+
"description": "ID"
|
|
279
|
+
},
|
|
280
|
+
"name": {
|
|
281
|
+
"type": "string",
|
|
282
|
+
"description": "Name"
|
|
283
|
+
},
|
|
284
|
+
"type": {
|
|
285
|
+
"anyOf": [
|
|
286
|
+
{
|
|
287
|
+
"type": "string",
|
|
288
|
+
"const": "sub",
|
|
289
|
+
"description": "Subscription services (Netflix, Hulu, etc.)"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"type": "string",
|
|
293
|
+
"const": "purchase",
|
|
294
|
+
"description": "Rental/purchase services (iTunes, Vudu, etc.)"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"type": "string",
|
|
298
|
+
"const": "free",
|
|
299
|
+
"description": "Free ad-supported services (Tubi, Pluto TV, etc.)"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"type": "string",
|
|
303
|
+
"const": "tve",
|
|
304
|
+
"description": "TV Channel App (cable login required)"
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"description": "Streaming source type"
|
|
308
|
+
},
|
|
309
|
+
"logo_100px": {
|
|
310
|
+
"type": "string",
|
|
311
|
+
"description": "Logo 100px"
|
|
312
|
+
},
|
|
313
|
+
"ios_appstore_url": {
|
|
314
|
+
"anyOf": [
|
|
315
|
+
{
|
|
316
|
+
"type": "string"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"type": "null"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"description": "iOS App Store URL"
|
|
323
|
+
},
|
|
324
|
+
"android_playstore_url": {
|
|
325
|
+
"anyOf": [
|
|
326
|
+
{
|
|
327
|
+
"type": "string"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"type": "null"
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
"description": "Android Play Store URL"
|
|
334
|
+
},
|
|
335
|
+
"android_tv_url": {
|
|
336
|
+
"anyOf": [
|
|
337
|
+
{
|
|
338
|
+
"type": "string"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"type": "null"
|
|
342
|
+
}
|
|
343
|
+
],
|
|
344
|
+
"description": "Android TV URL"
|
|
345
|
+
},
|
|
346
|
+
"fire_tv_url": {
|
|
347
|
+
"anyOf": [
|
|
348
|
+
{
|
|
349
|
+
"type": "string"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"type": "null"
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
"description": "Fire TV URL"
|
|
356
|
+
},
|
|
357
|
+
"roku_url": {
|
|
358
|
+
"anyOf": [
|
|
359
|
+
{
|
|
360
|
+
"type": "string"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"type": "null"
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"description": "Roku URL"
|
|
367
|
+
},
|
|
368
|
+
"tvos_url": {
|
|
369
|
+
"anyOf": [
|
|
370
|
+
{
|
|
371
|
+
"type": "string"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"type": "null"
|
|
375
|
+
}
|
|
376
|
+
],
|
|
377
|
+
"description": "tvOS URL"
|
|
378
|
+
},
|
|
379
|
+
"regions": {
|
|
380
|
+
"type": "array",
|
|
381
|
+
"items": {
|
|
382
|
+
"type": "string"
|
|
383
|
+
},
|
|
384
|
+
"description": "Regions"
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"required": [
|
|
388
|
+
"id",
|
|
389
|
+
"name",
|
|
390
|
+
"type",
|
|
391
|
+
"logo_100px",
|
|
392
|
+
"ios_appstore_url",
|
|
393
|
+
"android_playstore_url",
|
|
394
|
+
"android_tv_url",
|
|
395
|
+
"fire_tv_url",
|
|
396
|
+
"roku_url",
|
|
397
|
+
"tvos_url",
|
|
398
|
+
"regions"
|
|
399
|
+
]
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"SubscriptionServiceType": {
|
|
403
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
404
|
+
"type": "string",
|
|
405
|
+
"const": "sub",
|
|
406
|
+
"description": "Subscription services (Netflix, Hulu, etc.)"
|
|
407
|
+
},
|
|
408
|
+
"TVEServiceType": {
|
|
409
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
410
|
+
"type": "string",
|
|
411
|
+
"const": "tve",
|
|
412
|
+
"description": "TV Channel App (cable login required)"
|
|
413
|
+
},
|
|
414
|
+
"TitleStreamingSourceSchema": {
|
|
415
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
416
|
+
"type": "object",
|
|
417
|
+
"properties": {
|
|
418
|
+
"source_id": {
|
|
419
|
+
"type": "number",
|
|
420
|
+
"description": "Source ID"
|
|
421
|
+
},
|
|
422
|
+
"name": {
|
|
423
|
+
"type": "string",
|
|
424
|
+
"description": "Name"
|
|
425
|
+
},
|
|
426
|
+
"type": {
|
|
427
|
+
"anyOf": [
|
|
428
|
+
{
|
|
429
|
+
"type": "string",
|
|
430
|
+
"const": "sub",
|
|
431
|
+
"description": "Subscription services (Netflix, Hulu, etc.)"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"type": "string",
|
|
435
|
+
"const": "purchase",
|
|
436
|
+
"description": "Rental/purchase services (iTunes, Vudu, etc.)"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"type": "string",
|
|
440
|
+
"const": "free",
|
|
441
|
+
"description": "Free ad-supported services (Tubi, Pluto TV, etc.)"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"type": "string",
|
|
445
|
+
"const": "tve",
|
|
446
|
+
"description": "TV Channel App (cable login required)"
|
|
447
|
+
}
|
|
448
|
+
],
|
|
449
|
+
"description": "Streaming source type"
|
|
450
|
+
},
|
|
451
|
+
"region": {
|
|
452
|
+
"type": "string",
|
|
453
|
+
"description": "Region"
|
|
454
|
+
},
|
|
455
|
+
"ios_url": {
|
|
456
|
+
"anyOf": [
|
|
457
|
+
{
|
|
458
|
+
"type": "string"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"type": "null"
|
|
462
|
+
}
|
|
463
|
+
],
|
|
464
|
+
"description": "iOS deep link URL. For free plans, returns \"Deeplinks available for paid plans only.\""
|
|
465
|
+
},
|
|
466
|
+
"android_url": {
|
|
467
|
+
"anyOf": [
|
|
468
|
+
{
|
|
469
|
+
"type": "string"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"type": "null"
|
|
473
|
+
}
|
|
474
|
+
],
|
|
475
|
+
"description": "Android deep link URL. For free plans, returns \"Deeplinks available for paid plans only.\""
|
|
476
|
+
},
|
|
477
|
+
"web_url": {
|
|
478
|
+
"anyOf": [
|
|
479
|
+
{
|
|
480
|
+
"type": "string"
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"type": "null"
|
|
484
|
+
}
|
|
485
|
+
],
|
|
486
|
+
"description": "Web URL to watch the title"
|
|
487
|
+
},
|
|
488
|
+
"tvos_url": {
|
|
489
|
+
"anyOf": [
|
|
490
|
+
{
|
|
491
|
+
"type": "string"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"type": "null"
|
|
495
|
+
}
|
|
496
|
+
],
|
|
497
|
+
"description": "tvOS deep link. Only included if TV links are enabled for your account."
|
|
498
|
+
},
|
|
499
|
+
"android_tv_url": {
|
|
500
|
+
"anyOf": [
|
|
501
|
+
{
|
|
502
|
+
"type": "string"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"type": "null"
|
|
506
|
+
}
|
|
507
|
+
],
|
|
508
|
+
"description": "Android TV deep link. Only included if TV links are enabled for your account."
|
|
509
|
+
},
|
|
510
|
+
"roku_url": {
|
|
511
|
+
"anyOf": [
|
|
512
|
+
{
|
|
513
|
+
"type": "string"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"type": "null"
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"description": "Roku deep link. Only included if TV links are enabled for your account."
|
|
520
|
+
},
|
|
521
|
+
"format": {
|
|
522
|
+
"anyOf": [
|
|
523
|
+
{
|
|
524
|
+
"type": "string"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"type": "null"
|
|
528
|
+
}
|
|
529
|
+
],
|
|
530
|
+
"description": "Video quality (HD, 4K, etc.)"
|
|
531
|
+
},
|
|
532
|
+
"price": {
|
|
533
|
+
"anyOf": [
|
|
534
|
+
{
|
|
535
|
+
"type": "number"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"type": "null"
|
|
539
|
+
}
|
|
540
|
+
],
|
|
541
|
+
"description": "Price for rent/buy sources"
|
|
542
|
+
},
|
|
543
|
+
"seasons": {
|
|
544
|
+
"anyOf": [
|
|
545
|
+
{
|
|
546
|
+
"type": "number"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"type": "null"
|
|
550
|
+
}
|
|
551
|
+
],
|
|
552
|
+
"description": "Number of seasons available (for TV)"
|
|
553
|
+
},
|
|
554
|
+
"episodes": {
|
|
555
|
+
"anyOf": [
|
|
556
|
+
{
|
|
557
|
+
"type": "number"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"type": "null"
|
|
561
|
+
}
|
|
562
|
+
],
|
|
563
|
+
"description": "Number of episodes available (for TV)"
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
"required": [
|
|
567
|
+
"source_id",
|
|
568
|
+
"name",
|
|
569
|
+
"type",
|
|
570
|
+
"region",
|
|
571
|
+
"ios_url",
|
|
572
|
+
"android_url",
|
|
573
|
+
"web_url",
|
|
574
|
+
"tvos_url",
|
|
575
|
+
"android_tv_url",
|
|
576
|
+
"roku_url",
|
|
577
|
+
"format",
|
|
578
|
+
"price",
|
|
579
|
+
"seasons",
|
|
580
|
+
"episodes"
|
|
581
|
+
]
|
|
582
|
+
},
|
|
583
|
+
"TitleStreamingSourcesParametersSchema": {
|
|
584
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
585
|
+
"type": "object",
|
|
586
|
+
"properties": {
|
|
587
|
+
"regions": {
|
|
588
|
+
"type": "string",
|
|
589
|
+
"description": "Filter sources by region. Pass one or multiple 2-letter country codes comma-separated (e.g., US,GB,CA)."
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
"required": [
|
|
593
|
+
"regions"
|
|
594
|
+
]
|
|
595
|
+
},
|
|
596
|
+
"TitleStreamingSourcesSchema": {
|
|
597
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
598
|
+
"type": "array",
|
|
599
|
+
"items": {
|
|
600
|
+
"type": "object",
|
|
601
|
+
"properties": {
|
|
602
|
+
"source_id": {
|
|
603
|
+
"type": "number",
|
|
604
|
+
"description": "Source ID"
|
|
605
|
+
},
|
|
606
|
+
"name": {
|
|
607
|
+
"type": "string",
|
|
608
|
+
"description": "Name"
|
|
609
|
+
},
|
|
610
|
+
"type": {
|
|
611
|
+
"anyOf": [
|
|
612
|
+
{
|
|
613
|
+
"type": "string",
|
|
614
|
+
"const": "sub",
|
|
615
|
+
"description": "Subscription services (Netflix, Hulu, etc.)"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"type": "string",
|
|
619
|
+
"const": "purchase",
|
|
620
|
+
"description": "Rental/purchase services (iTunes, Vudu, etc.)"
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"type": "string",
|
|
624
|
+
"const": "free",
|
|
625
|
+
"description": "Free ad-supported services (Tubi, Pluto TV, etc.)"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"type": "string",
|
|
629
|
+
"const": "tve",
|
|
630
|
+
"description": "TV Channel App (cable login required)"
|
|
631
|
+
}
|
|
632
|
+
],
|
|
633
|
+
"description": "Streaming source type"
|
|
634
|
+
},
|
|
635
|
+
"region": {
|
|
636
|
+
"type": "string",
|
|
637
|
+
"description": "Region"
|
|
638
|
+
},
|
|
639
|
+
"ios_url": {
|
|
640
|
+
"anyOf": [
|
|
641
|
+
{
|
|
642
|
+
"type": "string"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"type": "null"
|
|
646
|
+
}
|
|
647
|
+
],
|
|
648
|
+
"description": "iOS deep link URL. For free plans, returns \"Deeplinks available for paid plans only.\""
|
|
649
|
+
},
|
|
650
|
+
"android_url": {
|
|
651
|
+
"anyOf": [
|
|
652
|
+
{
|
|
653
|
+
"type": "string"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"type": "null"
|
|
657
|
+
}
|
|
658
|
+
],
|
|
659
|
+
"description": "Android deep link URL. For free plans, returns \"Deeplinks available for paid plans only.\""
|
|
660
|
+
},
|
|
661
|
+
"web_url": {
|
|
662
|
+
"anyOf": [
|
|
663
|
+
{
|
|
664
|
+
"type": "string"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"type": "null"
|
|
668
|
+
}
|
|
669
|
+
],
|
|
670
|
+
"description": "Web URL to watch the title"
|
|
671
|
+
},
|
|
672
|
+
"tvos_url": {
|
|
673
|
+
"anyOf": [
|
|
674
|
+
{
|
|
675
|
+
"type": "string"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"type": "null"
|
|
679
|
+
}
|
|
680
|
+
],
|
|
681
|
+
"description": "tvOS deep link. Only included if TV links are enabled for your account."
|
|
682
|
+
},
|
|
683
|
+
"android_tv_url": {
|
|
684
|
+
"anyOf": [
|
|
685
|
+
{
|
|
686
|
+
"type": "string"
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"type": "null"
|
|
690
|
+
}
|
|
691
|
+
],
|
|
692
|
+
"description": "Android TV deep link. Only included if TV links are enabled for your account."
|
|
693
|
+
},
|
|
694
|
+
"roku_url": {
|
|
695
|
+
"anyOf": [
|
|
696
|
+
{
|
|
697
|
+
"type": "string"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"type": "null"
|
|
701
|
+
}
|
|
702
|
+
],
|
|
703
|
+
"description": "Roku deep link. Only included if TV links are enabled for your account."
|
|
704
|
+
},
|
|
705
|
+
"format": {
|
|
706
|
+
"anyOf": [
|
|
707
|
+
{
|
|
708
|
+
"type": "string"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"type": "null"
|
|
712
|
+
}
|
|
713
|
+
],
|
|
714
|
+
"description": "Video quality (HD, 4K, etc.)"
|
|
715
|
+
},
|
|
716
|
+
"price": {
|
|
717
|
+
"anyOf": [
|
|
718
|
+
{
|
|
719
|
+
"type": "number"
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"type": "null"
|
|
723
|
+
}
|
|
724
|
+
],
|
|
725
|
+
"description": "Price for rent/buy sources"
|
|
726
|
+
},
|
|
727
|
+
"seasons": {
|
|
728
|
+
"anyOf": [
|
|
729
|
+
{
|
|
730
|
+
"type": "number"
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"type": "null"
|
|
734
|
+
}
|
|
735
|
+
],
|
|
736
|
+
"description": "Number of seasons available (for TV)"
|
|
737
|
+
},
|
|
738
|
+
"episodes": {
|
|
739
|
+
"anyOf": [
|
|
740
|
+
{
|
|
741
|
+
"type": "number"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"type": "null"
|
|
745
|
+
}
|
|
746
|
+
],
|
|
747
|
+
"description": "Number of episodes available (for TV)"
|
|
748
|
+
}
|
|
749
|
+
},
|
|
750
|
+
"required": [
|
|
751
|
+
"source_id",
|
|
752
|
+
"name",
|
|
753
|
+
"type",
|
|
754
|
+
"region",
|
|
755
|
+
"ios_url",
|
|
756
|
+
"android_url",
|
|
757
|
+
"web_url",
|
|
758
|
+
"tvos_url",
|
|
759
|
+
"android_tv_url",
|
|
760
|
+
"roku_url",
|
|
761
|
+
"format",
|
|
762
|
+
"price",
|
|
763
|
+
"seasons",
|
|
764
|
+
"episodes"
|
|
765
|
+
]
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
}
|