@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
@@ -0,0 +1,139 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * abliteration.org Public API
5
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ModelSummary } from './ModelSummary';
17
+ import {
18
+ ModelSummaryFromJSON,
19
+ ModelSummaryFromJSONTyped,
20
+ ModelSummaryToJSON,
21
+ ModelSummaryToJSONTyped,
22
+ } from './ModelSummary';
23
+ import type { MethodDetailAllOfTopAuthors } from './MethodDetailAllOfTopAuthors';
24
+ import {
25
+ MethodDetailAllOfTopAuthorsFromJSON,
26
+ MethodDetailAllOfTopAuthorsFromJSONTyped,
27
+ MethodDetailAllOfTopAuthorsToJSON,
28
+ MethodDetailAllOfTopAuthorsToJSONTyped,
29
+ } from './MethodDetailAllOfTopAuthors';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface MethodDetail
35
+ */
36
+ export interface MethodDetail {
37
+ /**
38
+ *
39
+ */
40
+ id?: string;
41
+ /**
42
+ *
43
+ */
44
+ label?: string;
45
+ /**
46
+ *
47
+ */
48
+ category?: MethodDetailCategoryEnum;
49
+ /**
50
+ *
51
+ */
52
+ wiki_slug?: string;
53
+ /**
54
+ *
55
+ */
56
+ model_count?: number;
57
+ /**
58
+ *
59
+ */
60
+ total_downloads?: number;
61
+ /**
62
+ *
63
+ */
64
+ wiki_url?: string | null;
65
+ /**
66
+ *
67
+ */
68
+ top_authors?: Array<MethodDetailAllOfTopAuthors>;
69
+ /**
70
+ *
71
+ */
72
+ sample_models?: Array<ModelSummary>;
73
+ }
74
+
75
+
76
+ /**
77
+ * @export
78
+ */
79
+ export const MethodDetailCategoryEnum = {
80
+ Original: 'original',
81
+ Repackage: 'repackage',
82
+ Merged: 'merged',
83
+ Unclassified: 'unclassified',
84
+ } as const;
85
+ export type MethodDetailCategoryEnum = typeof MethodDetailCategoryEnum[keyof typeof MethodDetailCategoryEnum];
86
+
87
+
88
+ /**
89
+ * Check if a given object implements the MethodDetail interface.
90
+ */
91
+ export function instanceOfMethodDetail(value: object): value is MethodDetail {
92
+ return true;
93
+ }
94
+
95
+ export function MethodDetailFromJSON(json: any): MethodDetail {
96
+ return MethodDetailFromJSONTyped(json, false);
97
+ }
98
+
99
+ export function MethodDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): MethodDetail {
100
+ if (json == null) {
101
+ return json;
102
+ }
103
+ return {
104
+
105
+ 'id': json['id'] == null ? undefined : json['id'],
106
+ 'label': json['label'] == null ? undefined : json['label'],
107
+ 'category': json['category'] == null ? undefined : json['category'],
108
+ 'wiki_slug': json['wiki_slug'] == null ? undefined : json['wiki_slug'],
109
+ 'model_count': json['model_count'] == null ? undefined : json['model_count'],
110
+ 'total_downloads': json['total_downloads'] == null ? undefined : json['total_downloads'],
111
+ 'wiki_url': json['wiki_url'] === undefined ? undefined : json['wiki_url'] === null ? null : json['wiki_url'],
112
+ 'top_authors': json['top_authors'] == null ? undefined : ((json['top_authors'] as Array<any>).map(MethodDetailAllOfTopAuthorsFromJSON)),
113
+ 'sample_models': json['sample_models'] == null ? undefined : ((json['sample_models'] as Array<any>).map(ModelSummaryFromJSON)),
114
+ };
115
+ }
116
+
117
+ export function MethodDetailToJSON(json: any): MethodDetail {
118
+ return MethodDetailToJSONTyped(json, false);
119
+ }
120
+
121
+ export function MethodDetailToJSONTyped(value?: MethodDetail | null, ignoreDiscriminator: boolean = false): any {
122
+ if (value == null) {
123
+ return value;
124
+ }
125
+
126
+ return {
127
+
128
+ 'id': value['id'],
129
+ 'label': value['label'],
130
+ 'category': value['category'],
131
+ 'wiki_slug': value['wiki_slug'],
132
+ 'model_count': value['model_count'],
133
+ 'total_downloads': value['total_downloads'],
134
+ 'wiki_url': value['wiki_url'],
135
+ 'top_authors': value['top_authors'] == null ? undefined : ((value['top_authors'] as Array<any>).map(MethodDetailAllOfTopAuthorsToJSON)),
136
+ 'sample_models': value['sample_models'] == null ? undefined : ((value['sample_models'] as Array<any>).map(ModelSummaryToJSON)),
137
+ };
138
+ }
139
+
@@ -0,0 +1,69 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * abliteration.org Public API
5
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface MethodDetailAllOfTopAuthors
20
+ */
21
+ export interface MethodDetailAllOfTopAuthors {
22
+ /**
23
+ *
24
+ */
25
+ author?: string;
26
+ /**
27
+ *
28
+ */
29
+ count?: number;
30
+ }
31
+
32
+ /**
33
+ * Check if a given object implements the MethodDetailAllOfTopAuthors interface.
34
+ */
35
+ export function instanceOfMethodDetailAllOfTopAuthors(value: object): value is MethodDetailAllOfTopAuthors {
36
+ return true;
37
+ }
38
+
39
+ export function MethodDetailAllOfTopAuthorsFromJSON(json: any): MethodDetailAllOfTopAuthors {
40
+ return MethodDetailAllOfTopAuthorsFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function MethodDetailAllOfTopAuthorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MethodDetailAllOfTopAuthors {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+
49
+ 'author': json['author'] == null ? undefined : json['author'],
50
+ 'count': json['count'] == null ? undefined : json['count'],
51
+ };
52
+ }
53
+
54
+ export function MethodDetailAllOfTopAuthorsToJSON(json: any): MethodDetailAllOfTopAuthors {
55
+ return MethodDetailAllOfTopAuthorsToJSONTyped(json, false);
56
+ }
57
+
58
+ export function MethodDetailAllOfTopAuthorsToJSONTyped(value?: MethodDetailAllOfTopAuthors | null, ignoreDiscriminator: boolean = false): any {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+
63
+ return {
64
+
65
+ 'author': value['author'],
66
+ 'count': value['count'],
67
+ };
68
+ }
69
+
@@ -0,0 +1,362 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * abliteration.org Public API
5
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { Author } from './Author';
17
+ import {
18
+ AuthorFromJSON,
19
+ AuthorFromJSONTyped,
20
+ AuthorToJSON,
21
+ AuthorToJSONTyped,
22
+ } from './Author';
23
+
24
+ /**
25
+ * The full catalog record, plus files, benchmarks and an author summary.
26
+ * @export
27
+ * @interface ModelDetail
28
+ */
29
+ export interface ModelDetail {
30
+ [key: string]: any | any;
31
+ /**
32
+ *
33
+ */
34
+ id?: string;
35
+ /**
36
+ *
37
+ */
38
+ author?: string;
39
+ /**
40
+ *
41
+ */
42
+ name?: string;
43
+ /**
44
+ *
45
+ */
46
+ primary_method?: string | null;
47
+ /**
48
+ * JSON-encoded array of extra method codes.
49
+ */
50
+ secondary_methods?: string | null;
51
+ /**
52
+ *
53
+ */
54
+ confidence?: string | null;
55
+ /**
56
+ * JSON-encoded array of evidence strings.
57
+ */
58
+ classification_evidence?: string | null;
59
+ /**
60
+ *
61
+ */
62
+ classifier_version?: string | null;
63
+ /**
64
+ *
65
+ */
66
+ classified_at?: string | null;
67
+ /**
68
+ *
69
+ */
70
+ family?: string | null;
71
+ /**
72
+ *
73
+ */
74
+ params_b?: number | null;
75
+ /**
76
+ *
77
+ */
78
+ is_gguf?: number | null;
79
+ /**
80
+ *
81
+ */
82
+ is_moe?: number | null;
83
+ /**
84
+ *
85
+ */
86
+ is_multimodal?: number | null;
87
+ /**
88
+ *
89
+ */
90
+ is_image_gen?: number | null;
91
+ /**
92
+ *
93
+ */
94
+ is_second_order?: number | null;
95
+ /**
96
+ *
97
+ */
98
+ downloads?: number | null;
99
+ /**
100
+ *
101
+ */
102
+ likes?: number | null;
103
+ /**
104
+ *
105
+ */
106
+ created_at?: string | null;
107
+ /**
108
+ *
109
+ */
110
+ last_modified?: string | null;
111
+ /**
112
+ *
113
+ */
114
+ first_seen_at?: string | null;
115
+ /**
116
+ *
117
+ */
118
+ last_seen_at?: string | null;
119
+ /**
120
+ *
121
+ */
122
+ readme_text?: string | null;
123
+ /**
124
+ *
125
+ */
126
+ readme_status?: string | null;
127
+ /**
128
+ * JSON-encoded array of Hub tags.
129
+ */
130
+ tags?: string | null;
131
+ /**
132
+ *
133
+ */
134
+ pipeline_tag?: string | null;
135
+ /**
136
+ *
137
+ */
138
+ library_name?: string | null;
139
+ /**
140
+ *
141
+ */
142
+ yaml_base_model?: string | null;
143
+ /**
144
+ *
145
+ */
146
+ yaml_language?: string | null;
147
+ /**
148
+ *
149
+ */
150
+ yaml_datasets?: string | null;
151
+ /**
152
+ *
153
+ */
154
+ yaml_license?: string | null;
155
+ /**
156
+ *
157
+ */
158
+ yaml_tags?: string | null;
159
+ /**
160
+ *
161
+ */
162
+ files_count?: number | null;
163
+ /**
164
+ *
165
+ */
166
+ total_size_bytes?: number | null;
167
+ /**
168
+ *
169
+ */
170
+ largest_file_bytes?: number | null;
171
+ /**
172
+ *
173
+ */
174
+ smallest_model_bytes?: number | null;
175
+ /**
176
+ * JSON-encoded array of quantisation labels.
177
+ */
178
+ quantizations?: string | null;
179
+ /**
180
+ *
181
+ */
182
+ has_mmproj?: number | null;
183
+ /**
184
+ *
185
+ */
186
+ hub_downloads_all_time?: number | null;
187
+ /**
188
+ *
189
+ */
190
+ hub_trending_score?: number | null;
191
+ /**
192
+ *
193
+ */
194
+ hub_real_params_m?: number | null;
195
+ /**
196
+ *
197
+ */
198
+ hub_context_length?: number | null;
199
+ /**
200
+ *
201
+ */
202
+ hub_siblings_count?: number | null;
203
+ /**
204
+ *
205
+ */
206
+ hub_provider_count?: number | null;
207
+ /**
208
+ *
209
+ */
210
+ hub_provider_names?: string | null;
211
+ /**
212
+ *
213
+ */
214
+ hub_enriched_at?: string | null;
215
+ /**
216
+ * Per-file manifest: filename, size_bytes, sha256, quantization, is_model_file, is_mmproj.
217
+ */
218
+ files?: Array<object>;
219
+ /**
220
+ * Two arrays under `own` and `base` — each item has benchmark_name, score, source, pertains_to.
221
+ */
222
+ benchmarks?: object;
223
+ /**
224
+ *
225
+ */
226
+ author_summary?: Author | null;
227
+ }
228
+
229
+ /**
230
+ * Check if a given object implements the ModelDetail interface.
231
+ */
232
+ export function instanceOfModelDetail(value: object): value is ModelDetail {
233
+ return true;
234
+ }
235
+
236
+ export function ModelDetailFromJSON(json: any): ModelDetail {
237
+ return ModelDetailFromJSONTyped(json, false);
238
+ }
239
+
240
+ export function ModelDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelDetail {
241
+ if (json == null) {
242
+ return json;
243
+ }
244
+ return {
245
+
246
+ ...json,
247
+ 'id': json['id'] == null ? undefined : json['id'],
248
+ 'author': json['author'] == null ? undefined : json['author'],
249
+ 'name': json['name'] == null ? undefined : json['name'],
250
+ 'primary_method': json['primary_method'] === undefined ? undefined : json['primary_method'] === null ? null : json['primary_method'],
251
+ 'secondary_methods': json['secondary_methods'] === undefined ? undefined : json['secondary_methods'] === null ? null : json['secondary_methods'],
252
+ 'confidence': json['confidence'] === undefined ? undefined : json['confidence'] === null ? null : json['confidence'],
253
+ 'classification_evidence': json['classification_evidence'] === undefined ? undefined : json['classification_evidence'] === null ? null : json['classification_evidence'],
254
+ 'classifier_version': json['classifier_version'] === undefined ? undefined : json['classifier_version'] === null ? null : json['classifier_version'],
255
+ 'classified_at': json['classified_at'] === undefined ? undefined : json['classified_at'] === null ? null : json['classified_at'],
256
+ 'family': json['family'] === undefined ? undefined : json['family'] === null ? null : json['family'],
257
+ 'params_b': json['params_b'] === undefined ? undefined : json['params_b'] === null ? null : json['params_b'],
258
+ 'is_gguf': json['is_gguf'] === undefined ? undefined : json['is_gguf'] === null ? null : json['is_gguf'],
259
+ 'is_moe': json['is_moe'] === undefined ? undefined : json['is_moe'] === null ? null : json['is_moe'],
260
+ 'is_multimodal': json['is_multimodal'] === undefined ? undefined : json['is_multimodal'] === null ? null : json['is_multimodal'],
261
+ 'is_image_gen': json['is_image_gen'] === undefined ? undefined : json['is_image_gen'] === null ? null : json['is_image_gen'],
262
+ 'is_second_order': json['is_second_order'] === undefined ? undefined : json['is_second_order'] === null ? null : json['is_second_order'],
263
+ 'downloads': json['downloads'] === undefined ? undefined : json['downloads'] === null ? null : json['downloads'],
264
+ 'likes': json['likes'] === undefined ? undefined : json['likes'] === null ? null : json['likes'],
265
+ 'created_at': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : json['created_at'],
266
+ 'last_modified': json['last_modified'] === undefined ? undefined : json['last_modified'] === null ? null : json['last_modified'],
267
+ 'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'],
268
+ 'last_seen_at': json['last_seen_at'] === undefined ? undefined : json['last_seen_at'] === null ? null : json['last_seen_at'],
269
+ 'readme_text': json['readme_text'] === undefined ? undefined : json['readme_text'] === null ? null : json['readme_text'],
270
+ 'readme_status': json['readme_status'] === undefined ? undefined : json['readme_status'] === null ? null : json['readme_status'],
271
+ 'tags': json['tags'] === undefined ? undefined : json['tags'] === null ? null : json['tags'],
272
+ 'pipeline_tag': json['pipeline_tag'] === undefined ? undefined : json['pipeline_tag'] === null ? null : json['pipeline_tag'],
273
+ 'library_name': json['library_name'] === undefined ? undefined : json['library_name'] === null ? null : json['library_name'],
274
+ 'yaml_base_model': json['yaml_base_model'] === undefined ? undefined : json['yaml_base_model'] === null ? null : json['yaml_base_model'],
275
+ 'yaml_language': json['yaml_language'] === undefined ? undefined : json['yaml_language'] === null ? null : json['yaml_language'],
276
+ 'yaml_datasets': json['yaml_datasets'] === undefined ? undefined : json['yaml_datasets'] === null ? null : json['yaml_datasets'],
277
+ 'yaml_license': json['yaml_license'] === undefined ? undefined : json['yaml_license'] === null ? null : json['yaml_license'],
278
+ 'yaml_tags': json['yaml_tags'] === undefined ? undefined : json['yaml_tags'] === null ? null : json['yaml_tags'],
279
+ 'files_count': json['files_count'] === undefined ? undefined : json['files_count'] === null ? null : json['files_count'],
280
+ 'total_size_bytes': json['total_size_bytes'] === undefined ? undefined : json['total_size_bytes'] === null ? null : json['total_size_bytes'],
281
+ 'largest_file_bytes': json['largest_file_bytes'] === undefined ? undefined : json['largest_file_bytes'] === null ? null : json['largest_file_bytes'],
282
+ 'smallest_model_bytes': json['smallest_model_bytes'] === undefined ? undefined : json['smallest_model_bytes'] === null ? null : json['smallest_model_bytes'],
283
+ 'quantizations': json['quantizations'] === undefined ? undefined : json['quantizations'] === null ? null : json['quantizations'],
284
+ 'has_mmproj': json['has_mmproj'] === undefined ? undefined : json['has_mmproj'] === null ? null : json['has_mmproj'],
285
+ 'hub_downloads_all_time': json['hub_downloads_all_time'] === undefined ? undefined : json['hub_downloads_all_time'] === null ? null : json['hub_downloads_all_time'],
286
+ 'hub_trending_score': json['hub_trending_score'] === undefined ? undefined : json['hub_trending_score'] === null ? null : json['hub_trending_score'],
287
+ 'hub_real_params_m': json['hub_real_params_m'] === undefined ? undefined : json['hub_real_params_m'] === null ? null : json['hub_real_params_m'],
288
+ 'hub_context_length': json['hub_context_length'] === undefined ? undefined : json['hub_context_length'] === null ? null : json['hub_context_length'],
289
+ 'hub_siblings_count': json['hub_siblings_count'] === undefined ? undefined : json['hub_siblings_count'] === null ? null : json['hub_siblings_count'],
290
+ 'hub_provider_count': json['hub_provider_count'] === undefined ? undefined : json['hub_provider_count'] === null ? null : json['hub_provider_count'],
291
+ 'hub_provider_names': json['hub_provider_names'] === undefined ? undefined : json['hub_provider_names'] === null ? null : json['hub_provider_names'],
292
+ 'hub_enriched_at': json['hub_enriched_at'] === undefined ? undefined : json['hub_enriched_at'] === null ? null : json['hub_enriched_at'],
293
+ 'files': json['files'] == null ? undefined : json['files'],
294
+ 'benchmarks': json['benchmarks'] == null ? undefined : json['benchmarks'],
295
+ 'author_summary': json['author_summary'] === undefined ? undefined : json['author_summary'] === null ? null : AuthorFromJSON(json['author_summary']),
296
+ };
297
+ }
298
+
299
+ export function ModelDetailToJSON(json: any): ModelDetail {
300
+ return ModelDetailToJSONTyped(json, false);
301
+ }
302
+
303
+ export function ModelDetailToJSONTyped(value?: ModelDetail | null, ignoreDiscriminator: boolean = false): any {
304
+ if (value == null) {
305
+ return value;
306
+ }
307
+
308
+ return {
309
+
310
+ ...value,
311
+ 'id': value['id'],
312
+ 'author': value['author'],
313
+ 'name': value['name'],
314
+ 'primary_method': value['primary_method'],
315
+ 'secondary_methods': value['secondary_methods'],
316
+ 'confidence': value['confidence'],
317
+ 'classification_evidence': value['classification_evidence'],
318
+ 'classifier_version': value['classifier_version'],
319
+ 'classified_at': value['classified_at'],
320
+ 'family': value['family'],
321
+ 'params_b': value['params_b'],
322
+ 'is_gguf': value['is_gguf'],
323
+ 'is_moe': value['is_moe'],
324
+ 'is_multimodal': value['is_multimodal'],
325
+ 'is_image_gen': value['is_image_gen'],
326
+ 'is_second_order': value['is_second_order'],
327
+ 'downloads': value['downloads'],
328
+ 'likes': value['likes'],
329
+ 'created_at': value['created_at'],
330
+ 'last_modified': value['last_modified'],
331
+ 'first_seen_at': value['first_seen_at'],
332
+ 'last_seen_at': value['last_seen_at'],
333
+ 'readme_text': value['readme_text'],
334
+ 'readme_status': value['readme_status'],
335
+ 'tags': value['tags'],
336
+ 'pipeline_tag': value['pipeline_tag'],
337
+ 'library_name': value['library_name'],
338
+ 'yaml_base_model': value['yaml_base_model'],
339
+ 'yaml_language': value['yaml_language'],
340
+ 'yaml_datasets': value['yaml_datasets'],
341
+ 'yaml_license': value['yaml_license'],
342
+ 'yaml_tags': value['yaml_tags'],
343
+ 'files_count': value['files_count'],
344
+ 'total_size_bytes': value['total_size_bytes'],
345
+ 'largest_file_bytes': value['largest_file_bytes'],
346
+ 'smallest_model_bytes': value['smallest_model_bytes'],
347
+ 'quantizations': value['quantizations'],
348
+ 'has_mmproj': value['has_mmproj'],
349
+ 'hub_downloads_all_time': value['hub_downloads_all_time'],
350
+ 'hub_trending_score': value['hub_trending_score'],
351
+ 'hub_real_params_m': value['hub_real_params_m'],
352
+ 'hub_context_length': value['hub_context_length'],
353
+ 'hub_siblings_count': value['hub_siblings_count'],
354
+ 'hub_provider_count': value['hub_provider_count'],
355
+ 'hub_provider_names': value['hub_provider_names'],
356
+ 'hub_enriched_at': value['hub_enriched_at'],
357
+ 'files': value['files'],
358
+ 'benchmarks': value['benchmarks'],
359
+ 'author_summary': AuthorToJSON(value['author_summary']),
360
+ };
361
+ }
362
+
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * abliteration.org Public API
5
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ModelError
20
+ */
21
+ export interface ModelError {
22
+ /**
23
+ * Stable machine-readable slug.
24
+ */
25
+ error: string;
26
+ /**
27
+ * Human-readable detail. May be reworded at any time.
28
+ */
29
+ message?: string;
30
+ /**
31
+ * Seconds to wait. Present on 429.
32
+ */
33
+ retry_after?: number;
34
+ /**
35
+ * Present on 402.
36
+ */
37
+ credits_remaining?: number;
38
+ /**
39
+ *
40
+ */
41
+ request_id: string;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the ModelError interface.
46
+ */
47
+ export function instanceOfModelError(value: object): value is ModelError {
48
+ if (!('error' in value) || value['error'] === undefined) return false;
49
+ if (!('request_id' in value) || value['request_id'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function ModelErrorFromJSON(json: any): ModelError {
54
+ return ModelErrorFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'error': json['error'],
64
+ 'message': json['message'] == null ? undefined : json['message'],
65
+ 'retry_after': json['retry_after'] == null ? undefined : json['retry_after'],
66
+ 'credits_remaining': json['credits_remaining'] == null ? undefined : json['credits_remaining'],
67
+ 'request_id': json['request_id'],
68
+ };
69
+ }
70
+
71
+ export function ModelErrorToJSON(json: any): ModelError {
72
+ return ModelErrorToJSONTyped(json, false);
73
+ }
74
+
75
+ export function ModelErrorToJSONTyped(value?: ModelError | null, ignoreDiscriminator: boolean = false): any {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+
80
+ return {
81
+
82
+ 'error': value['error'],
83
+ 'message': value['message'],
84
+ 'retry_after': value['retry_after'],
85
+ 'credits_remaining': value['credits_remaining'],
86
+ 'request_id': value['request_id'],
87
+ };
88
+ }
89
+