@abliteration/sdk 0.1.1 → 0.1.2

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.
@@ -38,9 +38,13 @@ export interface Dataset {
38
38
  /**
39
39
  *
40
40
  */
41
+ language?: string | null;
42
+ /**
43
+ * Recent-window downloads reported by the Hub.
44
+ */
41
45
  downloads?: number | null;
42
46
  /**
43
- *
47
+ * All-time downloads reported by the Hub.
44
48
  */
45
49
  downloads_all?: number | null;
46
50
  /**
@@ -50,11 +54,51 @@ export interface Dataset {
50
54
  /**
51
55
  *
52
56
  */
57
+ trending_score?: number | null;
58
+ /**
59
+ * Server returns 0/1 (SQLite bool convention), not a JSON boolean.
60
+ */
53
61
  gated?: number | null;
62
+ /**
63
+ *
64
+ */
65
+ main_size_bytes?: number | null;
66
+ /**
67
+ * Human-formatted size (e.g. "90.4 MB").
68
+ */
69
+ size_display?: string | null;
70
+ /**
71
+ *
72
+ */
73
+ age_days?: number | null;
74
+ /**
75
+ * Server returns 0/1, not a JSON boolean.
76
+ */
77
+ is_trending?: number | null;
78
+ /**
79
+ * Server returns 0/1, not a JSON boolean.
80
+ */
81
+ just_added?: number | null;
82
+ /**
83
+ *
84
+ */
85
+ description?: string | null;
86
+ /**
87
+ *
88
+ */
89
+ tags?: Array<string>;
90
+ /**
91
+ *
92
+ */
93
+ hf_url?: string | null;
54
94
  /**
55
95
  *
56
96
  */
57
97
  created_at?: string | null;
98
+ /**
99
+ *
100
+ */
101
+ last_modified_at?: string | null;
58
102
  /**
59
103
  *
60
104
  */
@@ -30,11 +30,22 @@ export function DatasetFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'slug': json['slug'] === undefined ? undefined : json['slug'] === null ? null : json['slug'],
31
31
  'category': json['category'] === undefined ? undefined : json['category'] === null ? null : json['category'],
32
32
  'license': json['license'] === undefined ? undefined : json['license'] === null ? null : json['license'],
33
+ 'language': json['language'] === undefined ? undefined : json['language'] === null ? null : json['language'],
33
34
  'downloads': json['downloads'] === undefined ? undefined : json['downloads'] === null ? null : json['downloads'],
34
35
  'downloads_all': json['downloads_all'] === undefined ? undefined : json['downloads_all'] === null ? null : json['downloads_all'],
35
36
  'likes': json['likes'] === undefined ? undefined : json['likes'] === null ? null : json['likes'],
37
+ 'trending_score': json['trending_score'] === undefined ? undefined : json['trending_score'] === null ? null : json['trending_score'],
36
38
  'gated': json['gated'] === undefined ? undefined : json['gated'] === null ? null : json['gated'],
39
+ 'main_size_bytes': json['main_size_bytes'] === undefined ? undefined : json['main_size_bytes'] === null ? null : json['main_size_bytes'],
40
+ 'size_display': json['size_display'] === undefined ? undefined : json['size_display'] === null ? null : json['size_display'],
41
+ 'age_days': json['age_days'] === undefined ? undefined : json['age_days'] === null ? null : json['age_days'],
42
+ 'is_trending': json['is_trending'] === undefined ? undefined : json['is_trending'] === null ? null : json['is_trending'],
43
+ 'just_added': json['just_added'] === undefined ? undefined : json['just_added'] === null ? null : json['just_added'],
44
+ 'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
45
+ 'tags': json['tags'] == null ? undefined : json['tags'],
46
+ 'hf_url': json['hf_url'] === undefined ? undefined : json['hf_url'] === null ? null : json['hf_url'],
37
47
  'created_at': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : json['created_at'],
48
+ 'last_modified_at': json['last_modified_at'] === undefined ? undefined : json['last_modified_at'] === null ? null : json['last_modified_at'],
38
49
  'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'],
39
50
  };
40
51
  }
@@ -51,11 +62,22 @@ export function DatasetToJSONTyped(value, ignoreDiscriminator = false) {
51
62
  'slug': value['slug'],
52
63
  'category': value['category'],
53
64
  'license': value['license'],
65
+ 'language': value['language'],
54
66
  'downloads': value['downloads'],
55
67
  'downloads_all': value['downloads_all'],
56
68
  'likes': value['likes'],
69
+ 'trending_score': value['trending_score'],
57
70
  'gated': value['gated'],
71
+ 'main_size_bytes': value['main_size_bytes'],
72
+ 'size_display': value['size_display'],
73
+ 'age_days': value['age_days'],
74
+ 'is_trending': value['is_trending'],
75
+ 'just_added': value['just_added'],
76
+ 'description': value['description'],
77
+ 'tags': value['tags'],
78
+ 'hf_url': value['hf_url'],
58
79
  'created_at': value['created_at'],
80
+ 'last_modified_at': value['last_modified_at'],
59
81
  'first_seen_at': value['first_seen_at'],
60
82
  };
61
83
  }
@@ -11,12 +11,11 @@
11
11
  */
12
12
  import type { Passport } from './Passport';
13
13
  /**
14
- * The full dataset record, plus files and the passport when one exists.
14
+ *
15
15
  * @export
16
16
  * @interface DatasetDetail
17
17
  */
18
18
  export interface DatasetDetail {
19
- [key: string]: any | any;
20
19
  /**
21
20
  *
22
21
  */
@@ -24,6 +23,90 @@ export interface DatasetDetail {
24
23
  /**
25
24
  *
26
25
  */
26
+ author?: string;
27
+ /**
28
+ *
29
+ */
30
+ slug?: string;
31
+ /**
32
+ *
33
+ */
34
+ category?: string;
35
+ /**
36
+ *
37
+ */
38
+ license?: string;
39
+ /**
40
+ *
41
+ */
42
+ language?: string;
43
+ /**
44
+ * Recent-window downloads reported by the Hub.
45
+ */
46
+ downloads?: number;
47
+ /**
48
+ * All-time downloads reported by the Hub.
49
+ */
50
+ downloads_all?: number;
51
+ /**
52
+ *
53
+ */
54
+ likes?: number;
55
+ /**
56
+ *
57
+ */
58
+ trending_score?: number;
59
+ /**
60
+ * Server returns 0/1 (SQLite bool convention), not a JSON boolean.
61
+ */
62
+ gated?: number;
63
+ /**
64
+ *
65
+ */
66
+ main_size_bytes?: number;
67
+ /**
68
+ * Human-formatted size (e.g. "90.4 MB").
69
+ */
70
+ size_display?: string;
71
+ /**
72
+ *
73
+ */
74
+ age_days?: number;
75
+ /**
76
+ * Server returns 0/1, not a JSON boolean.
77
+ */
78
+ is_trending?: number;
79
+ /**
80
+ * Server returns 0/1, not a JSON boolean.
81
+ */
82
+ just_added?: number;
83
+ /**
84
+ *
85
+ */
86
+ description?: string;
87
+ /**
88
+ *
89
+ */
90
+ tags?: Array<string>;
91
+ /**
92
+ *
93
+ */
94
+ hf_url?: string;
95
+ /**
96
+ *
97
+ */
98
+ created_at?: string;
99
+ /**
100
+ *
101
+ */
102
+ last_modified_at?: string;
103
+ /**
104
+ *
105
+ */
106
+ first_seen_at?: string;
107
+ /**
108
+ * Per-file entries: path, type, size_bytes, is_lfs.
109
+ */
27
110
  files?: Array<object>;
28
111
  /**
29
112
  *
@@ -25,7 +25,32 @@ export function DatasetDetailFromJSONTyped(json, ignoreDiscriminator) {
25
25
  if (json == null) {
26
26
  return json;
27
27
  }
28
- return Object.assign(Object.assign({}, json), { 'id': json['id'] == null ? undefined : json['id'], 'files': json['files'] == null ? undefined : json['files'], 'passport': json['passport'] === undefined ? undefined : json['passport'] === null ? null : PassportFromJSON(json['passport']) });
28
+ return {
29
+ 'id': json['id'] == null ? undefined : json['id'],
30
+ 'author': json['author'] == null ? undefined : json['author'],
31
+ 'slug': json['slug'] == null ? undefined : json['slug'],
32
+ 'category': json['category'] == null ? undefined : json['category'],
33
+ 'license': json['license'] == null ? undefined : json['license'],
34
+ 'language': json['language'] == null ? undefined : json['language'],
35
+ 'downloads': json['downloads'] == null ? undefined : json['downloads'],
36
+ 'downloads_all': json['downloads_all'] == null ? undefined : json['downloads_all'],
37
+ 'likes': json['likes'] == null ? undefined : json['likes'],
38
+ 'trending_score': json['trending_score'] == null ? undefined : json['trending_score'],
39
+ 'gated': json['gated'] == null ? undefined : json['gated'],
40
+ 'main_size_bytes': json['main_size_bytes'] == null ? undefined : json['main_size_bytes'],
41
+ 'size_display': json['size_display'] == null ? undefined : json['size_display'],
42
+ 'age_days': json['age_days'] == null ? undefined : json['age_days'],
43
+ 'is_trending': json['is_trending'] == null ? undefined : json['is_trending'],
44
+ 'just_added': json['just_added'] == null ? undefined : json['just_added'],
45
+ 'description': json['description'] == null ? undefined : json['description'],
46
+ 'tags': json['tags'] == null ? undefined : json['tags'],
47
+ 'hf_url': json['hf_url'] == null ? undefined : json['hf_url'],
48
+ 'created_at': json['created_at'] == null ? undefined : json['created_at'],
49
+ 'last_modified_at': json['last_modified_at'] == null ? undefined : json['last_modified_at'],
50
+ 'first_seen_at': json['first_seen_at'] == null ? undefined : json['first_seen_at'],
51
+ 'files': json['files'] == null ? undefined : json['files'],
52
+ 'passport': json['passport'] === undefined ? undefined : json['passport'] === null ? null : PassportFromJSON(json['passport']),
53
+ };
29
54
  }
30
55
  export function DatasetDetailToJSON(json) {
31
56
  return DatasetDetailToJSONTyped(json, false);
@@ -34,5 +59,30 @@ export function DatasetDetailToJSONTyped(value, ignoreDiscriminator = false) {
34
59
  if (value == null) {
35
60
  return value;
36
61
  }
37
- return Object.assign(Object.assign({}, value), { 'id': value['id'], 'files': value['files'], 'passport': PassportToJSON(value['passport']) });
62
+ return {
63
+ 'id': value['id'],
64
+ 'author': value['author'],
65
+ 'slug': value['slug'],
66
+ 'category': value['category'],
67
+ 'license': value['license'],
68
+ 'language': value['language'],
69
+ 'downloads': value['downloads'],
70
+ 'downloads_all': value['downloads_all'],
71
+ 'likes': value['likes'],
72
+ 'trending_score': value['trending_score'],
73
+ 'gated': value['gated'],
74
+ 'main_size_bytes': value['main_size_bytes'],
75
+ 'size_display': value['size_display'],
76
+ 'age_days': value['age_days'],
77
+ 'is_trending': value['is_trending'],
78
+ 'just_added': value['just_added'],
79
+ 'description': value['description'],
80
+ 'tags': value['tags'],
81
+ 'hf_url': value['hf_url'],
82
+ 'created_at': value['created_at'],
83
+ 'last_modified_at': value['last_modified_at'],
84
+ 'first_seen_at': value['first_seen_at'],
85
+ 'files': value['files'],
86
+ 'passport': PassportToJSON(value['passport']),
87
+ };
38
88
  }
@@ -32,10 +32,182 @@ export interface ModelDetail {
32
32
  /**
33
33
  *
34
34
  */
35
- files?: Array<object>;
35
+ primary_method?: string | null;
36
+ /**
37
+ * JSON-encoded array of extra method codes.
38
+ */
39
+ secondary_methods?: string | null;
40
+ /**
41
+ *
42
+ */
43
+ confidence?: string | null;
44
+ /**
45
+ * JSON-encoded array of evidence strings.
46
+ */
47
+ classification_evidence?: string | null;
48
+ /**
49
+ *
50
+ */
51
+ classifier_version?: string | null;
52
+ /**
53
+ *
54
+ */
55
+ classified_at?: string | null;
56
+ /**
57
+ *
58
+ */
59
+ family?: string | null;
60
+ /**
61
+ *
62
+ */
63
+ params_b?: number | null;
64
+ /**
65
+ *
66
+ */
67
+ is_gguf?: number | null;
68
+ /**
69
+ *
70
+ */
71
+ is_moe?: number | null;
72
+ /**
73
+ *
74
+ */
75
+ is_multimodal?: number | null;
76
+ /**
77
+ *
78
+ */
79
+ is_image_gen?: number | null;
36
80
  /**
37
81
  *
38
82
  */
83
+ is_second_order?: number | null;
84
+ /**
85
+ *
86
+ */
87
+ downloads?: number | null;
88
+ /**
89
+ *
90
+ */
91
+ likes?: number | null;
92
+ /**
93
+ *
94
+ */
95
+ created_at?: string | null;
96
+ /**
97
+ *
98
+ */
99
+ last_modified?: string | null;
100
+ /**
101
+ *
102
+ */
103
+ first_seen_at?: string | null;
104
+ /**
105
+ *
106
+ */
107
+ last_seen_at?: string | null;
108
+ /**
109
+ *
110
+ */
111
+ readme_text?: string | null;
112
+ /**
113
+ *
114
+ */
115
+ readme_status?: string | null;
116
+ /**
117
+ * JSON-encoded array of Hub tags.
118
+ */
119
+ tags?: string | null;
120
+ /**
121
+ *
122
+ */
123
+ pipeline_tag?: string | null;
124
+ /**
125
+ *
126
+ */
127
+ library_name?: string | null;
128
+ /**
129
+ *
130
+ */
131
+ yaml_base_model?: string | null;
132
+ /**
133
+ *
134
+ */
135
+ yaml_language?: string | null;
136
+ /**
137
+ *
138
+ */
139
+ yaml_datasets?: string | null;
140
+ /**
141
+ *
142
+ */
143
+ yaml_license?: string | null;
144
+ /**
145
+ *
146
+ */
147
+ yaml_tags?: string | null;
148
+ /**
149
+ *
150
+ */
151
+ files_count?: number | null;
152
+ /**
153
+ *
154
+ */
155
+ total_size_bytes?: number | null;
156
+ /**
157
+ *
158
+ */
159
+ largest_file_bytes?: number | null;
160
+ /**
161
+ *
162
+ */
163
+ smallest_model_bytes?: number | null;
164
+ /**
165
+ * JSON-encoded array of quantisation labels.
166
+ */
167
+ quantizations?: string | null;
168
+ /**
169
+ *
170
+ */
171
+ has_mmproj?: number | null;
172
+ /**
173
+ *
174
+ */
175
+ hub_downloads_all_time?: number | null;
176
+ /**
177
+ *
178
+ */
179
+ hub_trending_score?: number | null;
180
+ /**
181
+ *
182
+ */
183
+ hub_real_params_m?: number | null;
184
+ /**
185
+ *
186
+ */
187
+ hub_context_length?: number | null;
188
+ /**
189
+ *
190
+ */
191
+ hub_siblings_count?: number | null;
192
+ /**
193
+ *
194
+ */
195
+ hub_provider_count?: number | null;
196
+ /**
197
+ *
198
+ */
199
+ hub_provider_names?: string | null;
200
+ /**
201
+ *
202
+ */
203
+ hub_enriched_at?: string | null;
204
+ /**
205
+ * Per-file manifest: filename, size_bytes, sha256, quantization, is_model_file, is_mmproj.
206
+ */
207
+ files?: Array<object>;
208
+ /**
209
+ * Two arrays under `own` and `base` — each item has benchmark_name, score, source, pertains_to.
210
+ */
39
211
  benchmarks?: object;
40
212
  /**
41
213
  *
@@ -25,7 +25,7 @@ export function ModelDetailFromJSONTyped(json, ignoreDiscriminator) {
25
25
  if (json == null) {
26
26
  return json;
27
27
  }
28
- return Object.assign(Object.assign({}, json), { 'id': json['id'] == null ? undefined : json['id'], 'author': json['author'] == null ? undefined : json['author'], 'name': json['name'] == null ? undefined : json['name'], 'files': json['files'] == null ? undefined : json['files'], 'benchmarks': json['benchmarks'] == null ? undefined : json['benchmarks'], 'author_summary': json['author_summary'] === undefined ? undefined : json['author_summary'] === null ? null : AuthorFromJSON(json['author_summary']) });
28
+ return Object.assign(Object.assign({}, json), { 'id': json['id'] == null ? undefined : json['id'], 'author': json['author'] == null ? undefined : json['author'], 'name': json['name'] == null ? undefined : json['name'], 'primary_method': json['primary_method'] === undefined ? undefined : json['primary_method'] === null ? null : json['primary_method'], 'secondary_methods': json['secondary_methods'] === undefined ? undefined : json['secondary_methods'] === null ? null : json['secondary_methods'], 'confidence': json['confidence'] === undefined ? undefined : json['confidence'] === null ? null : json['confidence'], 'classification_evidence': json['classification_evidence'] === undefined ? undefined : json['classification_evidence'] === null ? null : json['classification_evidence'], 'classifier_version': json['classifier_version'] === undefined ? undefined : json['classifier_version'] === null ? null : json['classifier_version'], 'classified_at': json['classified_at'] === undefined ? undefined : json['classified_at'] === null ? null : json['classified_at'], 'family': json['family'] === undefined ? undefined : json['family'] === null ? null : json['family'], 'params_b': json['params_b'] === undefined ? undefined : json['params_b'] === null ? null : json['params_b'], 'is_gguf': json['is_gguf'] === undefined ? undefined : json['is_gguf'] === null ? null : json['is_gguf'], 'is_moe': json['is_moe'] === undefined ? undefined : json['is_moe'] === null ? null : json['is_moe'], 'is_multimodal': json['is_multimodal'] === undefined ? undefined : json['is_multimodal'] === null ? null : json['is_multimodal'], 'is_image_gen': json['is_image_gen'] === undefined ? undefined : json['is_image_gen'] === null ? null : json['is_image_gen'], 'is_second_order': json['is_second_order'] === undefined ? undefined : json['is_second_order'] === null ? null : json['is_second_order'], 'downloads': json['downloads'] === undefined ? undefined : json['downloads'] === null ? null : json['downloads'], 'likes': json['likes'] === undefined ? undefined : json['likes'] === null ? null : json['likes'], 'created_at': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : json['created_at'], 'last_modified': json['last_modified'] === undefined ? undefined : json['last_modified'] === null ? null : json['last_modified'], 'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'], 'last_seen_at': json['last_seen_at'] === undefined ? undefined : json['last_seen_at'] === null ? null : json['last_seen_at'], 'readme_text': json['readme_text'] === undefined ? undefined : json['readme_text'] === null ? null : json['readme_text'], 'readme_status': json['readme_status'] === undefined ? undefined : json['readme_status'] === null ? null : json['readme_status'], 'tags': json['tags'] === undefined ? undefined : json['tags'] === null ? null : json['tags'], 'pipeline_tag': json['pipeline_tag'] === undefined ? undefined : json['pipeline_tag'] === null ? null : json['pipeline_tag'], 'library_name': json['library_name'] === undefined ? undefined : json['library_name'] === null ? null : json['library_name'], 'yaml_base_model': json['yaml_base_model'] === undefined ? undefined : json['yaml_base_model'] === null ? null : json['yaml_base_model'], 'yaml_language': json['yaml_language'] === undefined ? undefined : json['yaml_language'] === null ? null : json['yaml_language'], 'yaml_datasets': json['yaml_datasets'] === undefined ? undefined : json['yaml_datasets'] === null ? null : json['yaml_datasets'], 'yaml_license': json['yaml_license'] === undefined ? undefined : json['yaml_license'] === null ? null : json['yaml_license'], 'yaml_tags': json['yaml_tags'] === undefined ? undefined : json['yaml_tags'] === null ? null : json['yaml_tags'], 'files_count': json['files_count'] === undefined ? undefined : json['files_count'] === null ? null : json['files_count'], 'total_size_bytes': json['total_size_bytes'] === undefined ? undefined : json['total_size_bytes'] === null ? null : json['total_size_bytes'], 'largest_file_bytes': json['largest_file_bytes'] === undefined ? undefined : json['largest_file_bytes'] === null ? null : json['largest_file_bytes'], 'smallest_model_bytes': json['smallest_model_bytes'] === undefined ? undefined : json['smallest_model_bytes'] === null ? null : json['smallest_model_bytes'], 'quantizations': json['quantizations'] === undefined ? undefined : json['quantizations'] === null ? null : json['quantizations'], 'has_mmproj': json['has_mmproj'] === undefined ? undefined : json['has_mmproj'] === null ? null : json['has_mmproj'], 'hub_downloads_all_time': json['hub_downloads_all_time'] === undefined ? undefined : json['hub_downloads_all_time'] === null ? null : json['hub_downloads_all_time'], 'hub_trending_score': json['hub_trending_score'] === undefined ? undefined : json['hub_trending_score'] === null ? null : json['hub_trending_score'], 'hub_real_params_m': json['hub_real_params_m'] === undefined ? undefined : json['hub_real_params_m'] === null ? null : json['hub_real_params_m'], 'hub_context_length': json['hub_context_length'] === undefined ? undefined : json['hub_context_length'] === null ? null : json['hub_context_length'], 'hub_siblings_count': json['hub_siblings_count'] === undefined ? undefined : json['hub_siblings_count'] === null ? null : json['hub_siblings_count'], 'hub_provider_count': json['hub_provider_count'] === undefined ? undefined : json['hub_provider_count'] === null ? null : json['hub_provider_count'], 'hub_provider_names': json['hub_provider_names'] === undefined ? undefined : json['hub_provider_names'] === null ? null : json['hub_provider_names'], 'hub_enriched_at': json['hub_enriched_at'] === undefined ? undefined : json['hub_enriched_at'] === null ? null : json['hub_enriched_at'], 'files': json['files'] == null ? undefined : json['files'], 'benchmarks': json['benchmarks'] == null ? undefined : json['benchmarks'], 'author_summary': json['author_summary'] === undefined ? undefined : json['author_summary'] === null ? null : AuthorFromJSON(json['author_summary']) });
29
29
  }
30
30
  export function ModelDetailToJSON(json) {
31
31
  return ModelDetailToJSONTyped(json, false);
@@ -34,5 +34,5 @@ export function ModelDetailToJSONTyped(value, ignoreDiscriminator = false) {
34
34
  if (value == null) {
35
35
  return value;
36
36
  }
37
- return Object.assign(Object.assign({}, value), { 'id': value['id'], 'author': value['author'], 'name': value['name'], 'files': value['files'], 'benchmarks': value['benchmarks'], 'author_summary': AuthorToJSON(value['author_summary']) });
37
+ return Object.assign(Object.assign({}, value), { 'id': value['id'], 'author': value['author'], 'name': value['name'], 'primary_method': value['primary_method'], 'secondary_methods': value['secondary_methods'], 'confidence': value['confidence'], 'classification_evidence': value['classification_evidence'], 'classifier_version': value['classifier_version'], 'classified_at': value['classified_at'], 'family': value['family'], 'params_b': value['params_b'], 'is_gguf': value['is_gguf'], 'is_moe': value['is_moe'], 'is_multimodal': value['is_multimodal'], 'is_image_gen': value['is_image_gen'], 'is_second_order': value['is_second_order'], 'downloads': value['downloads'], 'likes': value['likes'], 'created_at': value['created_at'], 'last_modified': value['last_modified'], 'first_seen_at': value['first_seen_at'], 'last_seen_at': value['last_seen_at'], 'readme_text': value['readme_text'], 'readme_status': value['readme_status'], 'tags': value['tags'], 'pipeline_tag': value['pipeline_tag'], 'library_name': value['library_name'], 'yaml_base_model': value['yaml_base_model'], 'yaml_language': value['yaml_language'], 'yaml_datasets': value['yaml_datasets'], 'yaml_license': value['yaml_license'], 'yaml_tags': value['yaml_tags'], 'files_count': value['files_count'], 'total_size_bytes': value['total_size_bytes'], 'largest_file_bytes': value['largest_file_bytes'], 'smallest_model_bytes': value['smallest_model_bytes'], 'quantizations': value['quantizations'], 'has_mmproj': value['has_mmproj'], 'hub_downloads_all_time': value['hub_downloads_all_time'], 'hub_trending_score': value['hub_trending_score'], 'hub_real_params_m': value['hub_real_params_m'], 'hub_context_length': value['hub_context_length'], 'hub_siblings_count': value['hub_siblings_count'], 'hub_provider_count': value['hub_provider_count'], 'hub_provider_names': value['hub_provider_names'], 'hub_enriched_at': value['hub_enriched_at'], 'files': value['files'], 'benchmarks': value['benchmarks'], 'author_summary': AuthorToJSON(value['author_summary']) });
38
38
  }
@@ -38,9 +38,13 @@ export interface Dataset {
38
38
  /**
39
39
  *
40
40
  */
41
+ language?: string | null;
42
+ /**
43
+ * Recent-window downloads reported by the Hub.
44
+ */
41
45
  downloads?: number | null;
42
46
  /**
43
- *
47
+ * All-time downloads reported by the Hub.
44
48
  */
45
49
  downloads_all?: number | null;
46
50
  /**
@@ -50,11 +54,51 @@ export interface Dataset {
50
54
  /**
51
55
  *
52
56
  */
57
+ trending_score?: number | null;
58
+ /**
59
+ * Server returns 0/1 (SQLite bool convention), not a JSON boolean.
60
+ */
53
61
  gated?: number | null;
62
+ /**
63
+ *
64
+ */
65
+ main_size_bytes?: number | null;
66
+ /**
67
+ * Human-formatted size (e.g. "90.4 MB").
68
+ */
69
+ size_display?: string | null;
70
+ /**
71
+ *
72
+ */
73
+ age_days?: number | null;
74
+ /**
75
+ * Server returns 0/1, not a JSON boolean.
76
+ */
77
+ is_trending?: number | null;
78
+ /**
79
+ * Server returns 0/1, not a JSON boolean.
80
+ */
81
+ just_added?: number | null;
82
+ /**
83
+ *
84
+ */
85
+ description?: string | null;
86
+ /**
87
+ *
88
+ */
89
+ tags?: Array<string>;
90
+ /**
91
+ *
92
+ */
93
+ hf_url?: string | null;
54
94
  /**
55
95
  *
56
96
  */
57
97
  created_at?: string | null;
98
+ /**
99
+ *
100
+ */
101
+ last_modified_at?: string | null;
58
102
  /**
59
103
  *
60
104
  */
@@ -37,11 +37,22 @@ function DatasetFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'slug': json['slug'] === undefined ? undefined : json['slug'] === null ? null : json['slug'],
38
38
  'category': json['category'] === undefined ? undefined : json['category'] === null ? null : json['category'],
39
39
  'license': json['license'] === undefined ? undefined : json['license'] === null ? null : json['license'],
40
+ 'language': json['language'] === undefined ? undefined : json['language'] === null ? null : json['language'],
40
41
  'downloads': json['downloads'] === undefined ? undefined : json['downloads'] === null ? null : json['downloads'],
41
42
  'downloads_all': json['downloads_all'] === undefined ? undefined : json['downloads_all'] === null ? null : json['downloads_all'],
42
43
  'likes': json['likes'] === undefined ? undefined : json['likes'] === null ? null : json['likes'],
44
+ 'trending_score': json['trending_score'] === undefined ? undefined : json['trending_score'] === null ? null : json['trending_score'],
43
45
  'gated': json['gated'] === undefined ? undefined : json['gated'] === null ? null : json['gated'],
46
+ 'main_size_bytes': json['main_size_bytes'] === undefined ? undefined : json['main_size_bytes'] === null ? null : json['main_size_bytes'],
47
+ 'size_display': json['size_display'] === undefined ? undefined : json['size_display'] === null ? null : json['size_display'],
48
+ 'age_days': json['age_days'] === undefined ? undefined : json['age_days'] === null ? null : json['age_days'],
49
+ 'is_trending': json['is_trending'] === undefined ? undefined : json['is_trending'] === null ? null : json['is_trending'],
50
+ 'just_added': json['just_added'] === undefined ? undefined : json['just_added'] === null ? null : json['just_added'],
51
+ 'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
52
+ 'tags': json['tags'] == null ? undefined : json['tags'],
53
+ 'hf_url': json['hf_url'] === undefined ? undefined : json['hf_url'] === null ? null : json['hf_url'],
44
54
  'created_at': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : json['created_at'],
55
+ 'last_modified_at': json['last_modified_at'] === undefined ? undefined : json['last_modified_at'] === null ? null : json['last_modified_at'],
45
56
  'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'],
46
57
  };
47
58
  }
@@ -58,11 +69,22 @@ function DatasetToJSONTyped(value, ignoreDiscriminator = false) {
58
69
  'slug': value['slug'],
59
70
  'category': value['category'],
60
71
  'license': value['license'],
72
+ 'language': value['language'],
61
73
  'downloads': value['downloads'],
62
74
  'downloads_all': value['downloads_all'],
63
75
  'likes': value['likes'],
76
+ 'trending_score': value['trending_score'],
64
77
  'gated': value['gated'],
78
+ 'main_size_bytes': value['main_size_bytes'],
79
+ 'size_display': value['size_display'],
80
+ 'age_days': value['age_days'],
81
+ 'is_trending': value['is_trending'],
82
+ 'just_added': value['just_added'],
83
+ 'description': value['description'],
84
+ 'tags': value['tags'],
85
+ 'hf_url': value['hf_url'],
65
86
  'created_at': value['created_at'],
87
+ 'last_modified_at': value['last_modified_at'],
66
88
  'first_seen_at': value['first_seen_at'],
67
89
  };
68
90
  }