-
Notifications
You must be signed in to change notification settings - Fork 60
/
exports.ts
53 lines (39 loc) · 1.24 KB
/
exports.ts
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
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import * as Core from '@mux/mux-node/core';
import { APIResource } from '@mux/mux-node/resource';
import * as ExportsAPI from '@mux/mux-node/resources/data/exports';
export class Exports extends APIResource {
/**
* Lists the available video view exports along with URLs to retrieve them.
*/
listVideoViews(options?: Core.RequestOptions): Core.APIPromise<VideoViewExportsResponse> {
return this._client.get('/data/v1/exports/views', options);
}
}
export interface ExportsResponse {
data: Array<string>;
timeframe: Array<number>;
total_row_count: number | null;
}
export interface VideoViewExportsResponse {
data: Array<VideoViewExportsResponse.Data>;
timeframe: Array<number>;
total_row_count: number | null;
}
export namespace VideoViewExportsResponse {
export interface Data {
export_date: string;
files: Array<Data.File>;
}
export namespace Data {
export interface File {
path: string;
type: string;
version: number;
}
}
}
export namespace Exports {
export import ExportsResponse = ExportsAPI.ExportsResponse;
export import VideoViewExportsResponse = ExportsAPI.VideoViewExportsResponse;
}