@abliteration/sdk 0.1.0 → 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.
Files changed (114) hide show
  1. package/.openapi-generator/FILES +76 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +140 -49
  5. package/dist/apis/AuthorsApi.d.ts +11 -3
  6. package/dist/apis/AuthorsApi.js +8 -0
  7. package/dist/apis/DatasetsApi.d.ts +9 -3
  8. package/dist/apis/DatasetsApi.js +6 -0
  9. package/dist/apis/IndicesApi.d.ts +9 -3
  10. package/dist/apis/IndicesApi.js +6 -0
  11. package/dist/apis/ModelsApi.d.ts +9 -3
  12. package/dist/apis/ModelsApi.js +6 -0
  13. package/dist/esm/apis/AuthorsApi.d.ts +11 -3
  14. package/dist/esm/apis/AuthorsApi.js +8 -0
  15. package/dist/esm/apis/DatasetsApi.d.ts +9 -3
  16. package/dist/esm/apis/DatasetsApi.js +6 -0
  17. package/dist/esm/apis/IndicesApi.d.ts +9 -3
  18. package/dist/esm/apis/IndicesApi.js +6 -0
  19. package/dist/esm/apis/ModelsApi.d.ts +9 -3
  20. package/dist/esm/apis/ModelsApi.js +6 -0
  21. package/dist/esm/models/Author.d.ts +4 -0
  22. package/dist/esm/models/Author.js +2 -0
  23. package/dist/esm/models/AuthorDetail.d.ts +4 -0
  24. package/dist/esm/models/AuthorDetail.js +2 -0
  25. package/dist/esm/models/Dataset.d.ts +45 -1
  26. package/dist/esm/models/Dataset.js +22 -0
  27. package/dist/esm/models/DatasetDetail.d.ts +85 -2
  28. package/dist/esm/models/DatasetDetail.js +52 -2
  29. package/dist/esm/models/ModelDetail.d.ts +173 -1
  30. package/dist/esm/models/ModelDetail.js +2 -2
  31. package/dist/models/Author.d.ts +4 -0
  32. package/dist/models/Author.js +2 -0
  33. package/dist/models/AuthorDetail.d.ts +4 -0
  34. package/dist/models/AuthorDetail.js +2 -0
  35. package/dist/models/Dataset.d.ts +45 -1
  36. package/dist/models/Dataset.js +22 -0
  37. package/dist/models/DatasetDetail.d.ts +85 -2
  38. package/dist/models/DatasetDetail.js +52 -2
  39. package/dist/models/ModelDetail.d.ts +173 -1
  40. package/dist/models/ModelDetail.js +2 -2
  41. package/docs/Author.md +44 -0
  42. package/docs/AuthorDetail.md +46 -0
  43. package/docs/AuthorsApi.md +167 -0
  44. package/docs/DaiPoint.md +38 -0
  45. package/docs/Dataset.md +76 -0
  46. package/docs/DatasetDetail.md +80 -0
  47. package/docs/DatasetsApi.md +176 -0
  48. package/docs/Envelope.md +48 -0
  49. package/docs/Event.md +46 -0
  50. package/docs/GetAuthor200Response.md +48 -0
  51. package/docs/GetDataset200Response.md +48 -0
  52. package/docs/GetIndex200Response.md +48 -0
  53. package/docs/GetMethod200Response.md +48 -0
  54. package/docs/GetModel200Response.md +48 -0
  55. package/docs/IndexDetail.md +54 -0
  56. package/docs/IndicesApi.md +153 -0
  57. package/docs/ListAuthors200Response.md +48 -0
  58. package/docs/ListDatasets200Response.md +48 -0
  59. package/docs/ListIndices200Response.md +48 -0
  60. package/docs/ListMethods200Response.md +48 -0
  61. package/docs/ListModels200Response.md +48 -0
  62. package/docs/ListTimeline200Response.md +48 -0
  63. package/docs/Method.md +44 -0
  64. package/docs/MethodDetail.md +50 -0
  65. package/docs/MethodDetailAllOfTopAuthors.md +36 -0
  66. package/docs/MethodsApi.md +153 -0
  67. package/docs/ModelDetail.md +131 -0
  68. package/docs/ModelError.md +42 -0
  69. package/docs/ModelIndex.md +52 -0
  70. package/docs/ModelSummary.md +58 -0
  71. package/docs/ModelsApi.md +191 -0
  72. package/docs/Passport.md +38 -0
  73. package/docs/TimelineApi.md +93 -0
  74. package/openapi-generator-config.json +10 -0
  75. package/package.json +14 -16
  76. package/src/apis/AuthorsApi.ts +248 -0
  77. package/src/apis/DatasetsApi.ts +278 -0
  78. package/src/apis/IndicesApi.ts +213 -0
  79. package/src/apis/MethodsApi.ts +214 -0
  80. package/src/apis/ModelsApi.ts +328 -0
  81. package/src/apis/TimelineApi.ts +148 -0
  82. package/src/apis/index.ts +8 -0
  83. package/src/index.ts +5 -0
  84. package/src/models/Author.ts +93 -0
  85. package/src/models/AuthorDetail.ts +107 -0
  86. package/src/models/DaiPoint.ts +75 -0
  87. package/src/models/Dataset.ts +189 -0
  88. package/src/models/DatasetDetail.ts +209 -0
  89. package/src/models/Envelope.ts +124 -0
  90. package/src/models/Event.ts +99 -0
  91. package/src/models/GetAuthor200Response.ts +132 -0
  92. package/src/models/GetDataset200Response.ts +132 -0
  93. package/src/models/GetIndex200Response.ts +132 -0
  94. package/src/models/GetMethod200Response.ts +132 -0
  95. package/src/models/GetModel200Response.ts +132 -0
  96. package/src/models/IndexDetail.ts +153 -0
  97. package/src/models/ListAuthors200Response.ts +132 -0
  98. package/src/models/ListDatasets200Response.ts +132 -0
  99. package/src/models/ListIndices200Response.ts +132 -0
  100. package/src/models/ListMethods200Response.ts +132 -0
  101. package/src/models/ListModels200Response.ts +132 -0
  102. package/src/models/ListTimeline200Response.ts +132 -0
  103. package/src/models/Method.ts +106 -0
  104. package/src/models/MethodDetail.ts +139 -0
  105. package/src/models/MethodDetailAllOfTopAuthors.ts +69 -0
  106. package/src/models/ModelDetail.ts +362 -0
  107. package/src/models/ModelError.ts +89 -0
  108. package/src/models/ModelIndex.ts +147 -0
  109. package/src/models/ModelSummary.ts +135 -0
  110. package/src/models/Passport.ts +75 -0
  111. package/src/models/index.ts +29 -0
  112. package/src/runtime.ts +505 -0
  113. package/tsconfig.esm.json +7 -0
  114. package/tsconfig.json +16 -0
@@ -144,8 +144,14 @@ export class DatasetsApi extends runtime.BaseAPI {
144
144
  export const ListDatasetsSortEnum = {
145
145
  Downloads: 'downloads',
146
146
  Downloads2: '-downloads',
147
+ Likes: 'likes',
148
+ Likes2: '-likes',
149
+ Created: 'created',
150
+ Created2: '-created',
147
151
  CreatedAt: 'created_at',
148
152
  CreatedAt2: '-created_at',
153
+ FirstSeen: 'first_seen',
154
+ FirstSeen2: '-first_seen',
149
155
  FirstSeenAt: 'first_seen_at',
150
156
  FirstSeenAt2: '-first_seen_at',
151
157
  };
@@ -14,7 +14,7 @@ import { type GetIndex200Response } from '../models/GetIndex200Response';
14
14
  import { type ListIndices200Response } from '../models/ListIndices200Response';
15
15
  export interface GetIndexRequest {
16
16
  /**
17
- *
17
+ * Canonical id or one of the short aliases (DAI, FV, WEAP, F2W). Case-insensitive.
18
18
  */
19
19
  id: GetIndexIdEnum;
20
20
  }
@@ -27,7 +27,7 @@ export interface GetIndexRequest {
27
27
  export interface IndicesApiInterface {
28
28
  /**
29
29
  * Creates request options for getIndex without sending the request
30
- * @param {'dai' | 'freedom-velocity' | 'weaponization' | 'f2w-latency'} id
30
+ * @param {'dai' | 'DAI' | 'freedom-velocity' | 'FV' | 'freedom_velocity' | 'weaponization' | 'WEAP' | 'f2w-latency' | 'F2W' | 'f2w_latency'} id Canonical id or one of the short aliases (DAI, FV, WEAP, F2W). Case-insensitive.
31
31
  * @throws {RequiredError}
32
32
  * @memberof IndicesApiInterface
33
33
  */
@@ -35,7 +35,7 @@ export interface IndicesApiInterface {
35
35
  /**
36
36
  * Cost: 10 credits. Only dai has a history series; the others return an empty array with history_available false.
37
37
  * @summary One index with history
38
- * @param {'dai' | 'freedom-velocity' | 'weaponization' | 'f2w-latency'} id
38
+ * @param {'dai' | 'DAI' | 'freedom-velocity' | 'FV' | 'freedom_velocity' | 'weaponization' | 'WEAP' | 'f2w-latency' | 'F2W' | 'f2w_latency'} id Canonical id or one of the short aliases (DAI, FV, WEAP, F2W). Case-insensitive.
39
39
  * @param {*} [options] Override http request option.
40
40
  * @throws {RequiredError}
41
41
  * @memberof IndicesApiInterface
@@ -104,8 +104,14 @@ export declare class IndicesApi extends runtime.BaseAPI implements IndicesApiInt
104
104
  */
105
105
  export declare const GetIndexIdEnum: {
106
106
  readonly Dai: "dai";
107
+ readonly Dai2: "DAI";
107
108
  readonly FreedomVelocity: "freedom-velocity";
109
+ readonly Fv: "FV";
110
+ readonly FreedomVelocity2: "freedom_velocity";
108
111
  readonly Weaponization: "weaponization";
112
+ readonly Weap: "WEAP";
109
113
  readonly F2wLatency: "f2w-latency";
114
+ readonly F2W: "F2W";
115
+ readonly F2wLatency2: "f2w_latency";
110
116
  };
111
117
  export type GetIndexIdEnum = typeof GetIndexIdEnum[keyof typeof GetIndexIdEnum];
@@ -125,7 +125,13 @@ export class IndicesApi extends runtime.BaseAPI {
125
125
  */
126
126
  export const GetIndexIdEnum = {
127
127
  Dai: 'dai',
128
+ Dai2: 'DAI',
128
129
  FreedomVelocity: 'freedom-velocity',
130
+ Fv: 'FV',
131
+ FreedomVelocity2: 'freedom_velocity',
129
132
  Weaponization: 'weaponization',
133
+ Weap: 'WEAP',
130
134
  F2wLatency: 'f2w-latency',
135
+ F2W: 'F2W',
136
+ F2wLatency2: 'f2w_latency',
131
137
  };
@@ -52,7 +52,7 @@ export interface ListModelsRequest {
52
52
  */
53
53
  createdBefore?: string;
54
54
  /**
55
- *
55
+ * Bare key is the natural direction (downloads/likes = most first, dates = newest first). A leading `-` flips it. `created` and `first_seen` are aliases for the full column names.
56
56
  */
57
57
  sort?: ListModelsSortEnum;
58
58
  /**
@@ -102,7 +102,7 @@ export interface ModelsApiInterface {
102
102
  * @param {number} [downloadsLte]
103
103
  * @param {string} [createdAfter] ISO-8601 date or timestamp, inclusive.
104
104
  * @param {string} [createdBefore] ISO-8601 date or timestamp, inclusive.
105
- * @param {'downloads' | '-downloads' | 'created_at' | '-created_at' | 'first_seen_at' | '-first_seen_at'} [sort]
105
+ * @param {'downloads' | '-downloads' | 'likes' | '-likes' | 'created' | '-created' | 'created_at' | '-created_at' | 'first_seen' | '-first_seen' | 'first_seen_at' | '-first_seen_at'} [sort] Bare key is the natural direction (downloads/likes = most first, dates = newest first). A leading `-` flips it. `created` and `first_seen` are aliases for the full column names.
106
106
  * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
107
107
  * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
108
108
  * @throws {RequiredError}
@@ -120,7 +120,7 @@ export interface ModelsApiInterface {
120
120
  * @param {number} [downloadsLte]
121
121
  * @param {string} [createdAfter] ISO-8601 date or timestamp, inclusive.
122
122
  * @param {string} [createdBefore] ISO-8601 date or timestamp, inclusive.
123
- * @param {'downloads' | '-downloads' | 'created_at' | '-created_at' | 'first_seen_at' | '-first_seen_at'} [sort]
123
+ * @param {'downloads' | '-downloads' | 'likes' | '-likes' | 'created' | '-created' | 'created_at' | '-created_at' | 'first_seen' | '-first_seen' | 'first_seen_at' | '-first_seen_at'} [sort] Bare key is the natural direction (downloads/likes = most first, dates = newest first). A leading `-` flips it. `created` and `first_seen` are aliases for the full column names.
124
124
  * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
125
125
  * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
126
126
  * @param {*} [options] Override http request option.
@@ -173,8 +173,14 @@ export declare class ModelsApi extends runtime.BaseAPI implements ModelsApiInter
173
173
  export declare const ListModelsSortEnum: {
174
174
  readonly Downloads: "downloads";
175
175
  readonly Downloads2: "-downloads";
176
+ readonly Likes: "likes";
177
+ readonly Likes2: "-likes";
178
+ readonly Created: "created";
179
+ readonly Created2: "-created";
176
180
  readonly CreatedAt: "created_at";
177
181
  readonly CreatedAt2: "-created_at";
182
+ readonly FirstSeen: "first_seen";
183
+ readonly FirstSeen2: "-first_seen";
178
184
  readonly FirstSeenAt: "first_seen_at";
179
185
  readonly FirstSeenAt2: "-first_seen_at";
180
186
  };
@@ -159,8 +159,14 @@ export class ModelsApi extends runtime.BaseAPI {
159
159
  export const ListModelsSortEnum = {
160
160
  Downloads: 'downloads',
161
161
  Downloads2: '-downloads',
162
+ Likes: 'likes',
163
+ Likes2: '-likes',
164
+ Created: 'created',
165
+ Created2: '-created',
162
166
  CreatedAt: 'created_at',
163
167
  CreatedAt2: '-created_at',
168
+ FirstSeen: 'first_seen',
169
+ FirstSeen2: '-first_seen',
164
170
  FirstSeenAt: 'first_seen_at',
165
171
  FirstSeenAt2: '-first_seen_at',
166
172
  };
@@ -15,6 +15,10 @@
15
15
  * @interface Author
16
16
  */
17
17
  export interface Author {
18
+ /**
19
+ * Same value as `author`; added for consistency with the other single-entity payloads.
20
+ */
21
+ id?: string;
18
22
  /**
19
23
  *
20
24
  */
@@ -25,6 +25,7 @@ export function AuthorFromJSONTyped(json, ignoreDiscriminator) {
25
25
  return json;
26
26
  }
27
27
  return {
28
+ 'id': json['id'] == null ? undefined : json['id'],
28
29
  'author': json['author'] == null ? undefined : json['author'],
29
30
  'total_models': json['total_models'] == null ? undefined : json['total_models'],
30
31
  'total_downloads': json['total_downloads'] == null ? undefined : json['total_downloads'],
@@ -40,6 +41,7 @@ export function AuthorToJSONTyped(value, ignoreDiscriminator = false) {
40
41
  return value;
41
42
  }
42
43
  return {
44
+ 'id': value['id'],
43
45
  'author': value['author'],
44
46
  'total_models': value['total_models'],
45
47
  'total_downloads': value['total_downloads'],
@@ -16,6 +16,10 @@ import type { ModelSummary } from './ModelSummary';
16
16
  * @interface AuthorDetail
17
17
  */
18
18
  export interface AuthorDetail {
19
+ /**
20
+ * Same value as `author`; added for consistency with the other single-entity payloads.
21
+ */
22
+ id?: string;
19
23
  /**
20
24
  *
21
25
  */
@@ -26,6 +26,7 @@ export function AuthorDetailFromJSONTyped(json, ignoreDiscriminator) {
26
26
  return json;
27
27
  }
28
28
  return {
29
+ 'id': json['id'] == null ? undefined : json['id'],
29
30
  'author': json['author'] == null ? undefined : json['author'],
30
31
  'total_models': json['total_models'] == null ? undefined : json['total_models'],
31
32
  'total_downloads': json['total_downloads'] == null ? undefined : json['total_downloads'],
@@ -42,6 +43,7 @@ export function AuthorDetailToJSONTyped(value, ignoreDiscriminator = false) {
42
43
  return value;
43
44
  }
44
45
  return {
46
+ 'id': value['id'],
45
47
  'author': value['author'],
46
48
  'total_models': value['total_models'],
47
49
  'total_downloads': value['total_downloads'],
@@ -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
  *