File size: 2,387 Bytes
21dd449
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import type { License } from "../public";

export interface ApiDatasetInfo {
	_id: string;
	id: string;
	arxivIds?: string[];
	author?: string;
	cardExists?: true;
	cardError?: unknown;
	cardData?: ApiDatasetMetadata;
	contributors?: Array<{ user: string; _id: string }>;
	disabled: boolean;
	discussionsDisabled: boolean;
	gated: false | "auto" | "manual";
	gitalyUid: string;
	lastAuthor: { email: string; user?: string };
	lastModified: string; // date
	likes: number;
	likesRecent: number;
	private: boolean;
	updatedAt: string; // date
	createdAt: string; // date
	tags: string[];
	paperswithcode_id?: string;
	sha: string;
	files?: string[];
	citation?: string;
	description?: string;
	downloads: number;
	downloadsAllTime: number;
	previewable?: boolean;
	doi?: { id: string; commit: string };
}

export interface ApiDatasetMetadata {
	licenses?: undefined;
	license?: License | License[];
	license_name?: string;
	license_link?: "LICENSE" | "LICENSE.md" | string;
	license_details?: string;
	languages?: undefined;
	language?: string | string[];
	language_bcp47?: string[];
	language_details?: string;
	tags?: string[];
	task_categories?: string[];
	task_ids?: string[];
	config_names?: string[];
	configs?: {
		config_name: string;
		data_files?:
			| string
			| string[]
			| {
					split: string;
					path: string | string[];
			  }[];
		data_dir?: string;
	}[];
	benchmark?: string;
	paperswithcode_id?: string | null;
	pretty_name?: string;
	viewer?: boolean;
	viewer_display_urls?: boolean;
	thumbnail?: string | null;
	description?: string | null;
	annotations_creators?: string[];
	language_creators?: string[];
	multilinguality?: string[];
	size_categories?: string[];
	source_datasets?: string[];
	extra_gated_prompt?: string;
	extra_gated_fields?: {
		/**
		 * "text" | "checkbox" | "date_picker" | "country" | "ip_location" | { type: "text" | "checkbox" | "date_picker" | "country" | "ip_location" } | { type: "select", options: Array<string | { label: string; value: string; }> } Property
		 */
		[x: string]:
			| "text"
			| "checkbox"
			| "date_picker"
			| "country"
			| "ip_location"
			| { type: "text" | "checkbox" | "date_picker" | "country" | "ip_location" }
			| { type: "select"; options: Array<string | { label: string; value: string }> };
	};
	extra_gated_heading?: string;
	extra_gated_description?: string;
	extra_gated_button_content?: string;
}