@abliteration/sdk 0.1.4 → 0.1.6
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.
- package/.openapi-generator/FILES +16 -0
- package/README.md +11 -0
- package/dist/apis/ModelsApi.d.ts +200 -8
- package/dist/apis/ModelsApi.js +193 -5
- package/dist/esm/apis/ModelsApi.d.ts +200 -8
- package/dist/esm/apis/ModelsApi.js +192 -4
- package/dist/esm/models/DeletionSummary.d.ts +52 -0
- package/dist/esm/models/DeletionSummary.js +53 -0
- package/dist/esm/models/DeletionSummaryTimelineInner.d.ts +34 -0
- package/dist/esm/models/DeletionSummaryTimelineInner.js +43 -0
- package/dist/esm/models/DeletionSummaryTopByDownloadsInner.d.ts +42 -0
- package/dist/esm/models/DeletionSummaryTopByDownloadsInner.js +47 -0
- package/dist/esm/models/DelistedModel.d.ts +54 -0
- package/dist/esm/models/DelistedModel.js +53 -0
- package/dist/esm/models/GetHistoricalDeletionSummary200Response.d.ts +67 -0
- package/dist/esm/models/GetHistoricalDeletionSummary200Response.js +79 -0
- package/dist/esm/models/HistoricalDeletion.d.ts +50 -0
- package/dist/esm/models/HistoricalDeletion.js +51 -0
- package/dist/esm/models/ListDelistedModels200Response.d.ts +67 -0
- package/dist/esm/models/ListDelistedModels200Response.js +79 -0
- package/dist/esm/models/ListHistoricalDeletions200Response.d.ts +67 -0
- package/dist/esm/models/ListHistoricalDeletions200Response.js +79 -0
- package/dist/esm/models/ModelDetail.d.ts +8 -0
- package/dist/esm/models/ModelDetail.js +2 -2
- package/dist/esm/models/ModelSummary.d.ts +8 -0
- package/dist/esm/models/ModelSummary.js +4 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/DeletionSummary.d.ts +52 -0
- package/dist/models/DeletionSummary.js +60 -0
- package/dist/models/DeletionSummaryTimelineInner.d.ts +34 -0
- package/dist/models/DeletionSummaryTimelineInner.js +50 -0
- package/dist/models/DeletionSummaryTopByDownloadsInner.d.ts +42 -0
- package/dist/models/DeletionSummaryTopByDownloadsInner.js +54 -0
- package/dist/models/DelistedModel.d.ts +54 -0
- package/dist/models/DelistedModel.js +60 -0
- package/dist/models/GetHistoricalDeletionSummary200Response.d.ts +67 -0
- package/dist/models/GetHistoricalDeletionSummary200Response.js +87 -0
- package/dist/models/HistoricalDeletion.d.ts +50 -0
- package/dist/models/HistoricalDeletion.js +58 -0
- package/dist/models/ListDelistedModels200Response.d.ts +67 -0
- package/dist/models/ListDelistedModels200Response.js +87 -0
- package/dist/models/ListHistoricalDeletions200Response.d.ts +67 -0
- package/dist/models/ListHistoricalDeletions200Response.js +87 -0
- package/dist/models/ModelDetail.d.ts +8 -0
- package/dist/models/ModelDetail.js +2 -2
- package/dist/models/ModelSummary.d.ts +8 -0
- package/dist/models/ModelSummary.js +4 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/DeletionSummary.md +45 -0
- package/docs/DeletionSummaryTimelineInner.md +36 -0
- package/docs/DeletionSummaryTopByDownloadsInner.md +40 -0
- package/docs/DelistedModel.md +46 -0
- package/docs/GetHistoricalDeletionSummary200Response.md +48 -0
- package/docs/HistoricalDeletion.md +44 -0
- package/docs/ListDelistedModels200Response.md +48 -0
- package/docs/ListHistoricalDeletions200Response.md +48 -0
- package/docs/ModelDetail.md +4 -0
- package/docs/ModelSummary.md +4 -0
- package/docs/ModelsApi.md +247 -3
- package/package.json +1 -1
- package/src/apis/ModelsApi.ts +362 -8
- package/src/models/DeletionSummary.ts +108 -0
- package/src/models/DeletionSummaryTimelineInner.ts +69 -0
- package/src/models/DeletionSummaryTopByDownloadsInner.ts +81 -0
- package/src/models/DelistedModel.ts +99 -0
- package/src/models/GetHistoricalDeletionSummary200Response.ts +132 -0
- package/src/models/HistoricalDeletion.ts +93 -0
- package/src/models/ListDelistedModels200Response.ts +132 -0
- package/src/models/ListHistoricalDeletions200Response.ts +132 -0
- package/src/models/ModelDetail.ts +12 -0
- package/src/models/ModelSummary.ts +12 -0
- package/src/models/index.ts +8 -0
|
@@ -21,12 +21,59 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
+
import { GetHistoricalDeletionSummary200ResponseFromJSON, } from '../models/GetHistoricalDeletionSummary200Response';
|
|
24
25
|
import { GetModel200ResponseFromJSON, } from '../models/GetModel200Response';
|
|
26
|
+
import { ListDelistedModels200ResponseFromJSON, } from '../models/ListDelistedModels200Response';
|
|
27
|
+
import { ListHistoricalDeletions200ResponseFromJSON, } from '../models/ListHistoricalDeletions200Response';
|
|
25
28
|
import { ListModels200ResponseFromJSON, } from '../models/ListModels200Response';
|
|
26
29
|
/**
|
|
27
30
|
*
|
|
28
31
|
*/
|
|
29
32
|
export class ModelsApi extends runtime.BaseAPI {
|
|
33
|
+
/**
|
|
34
|
+
* Creates request options for getHistoricalDeletionSummary without sending the request
|
|
35
|
+
*/
|
|
36
|
+
getHistoricalDeletionSummaryRequestOpts() {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
const queryParameters = {};
|
|
39
|
+
const headerParameters = {};
|
|
40
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
41
|
+
const token = this.configuration.accessToken;
|
|
42
|
+
const tokenString = yield token("bearerAuth", []);
|
|
43
|
+
if (tokenString) {
|
|
44
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
let urlPath = `/api/v1/models/historical-deletions/summary`;
|
|
48
|
+
return {
|
|
49
|
+
path: urlPath,
|
|
50
|
+
method: 'GET',
|
|
51
|
+
headers: headerParameters,
|
|
52
|
+
query: queryParameters,
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Cost: 20 credits, flat. Aggregates from the 24-month HF snapshot analysis: total ever seen, total deleted, deletion rate, average months alive, monthly timeline of losses, top-10 by peak downloads. One call replaces half a dozen separate queries.
|
|
58
|
+
* Historical deletions — aggregate summary
|
|
59
|
+
*/
|
|
60
|
+
getHistoricalDeletionSummaryRaw(initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const requestOptions = yield this.getHistoricalDeletionSummaryRequestOpts();
|
|
63
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
64
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetHistoricalDeletionSummary200ResponseFromJSON(jsonValue));
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Cost: 20 credits, flat. Aggregates from the 24-month HF snapshot analysis: total ever seen, total deleted, deletion rate, average months alive, monthly timeline of losses, top-10 by peak downloads. One call replaces half a dozen separate queries.
|
|
69
|
+
* Historical deletions — aggregate summary
|
|
70
|
+
*/
|
|
71
|
+
getHistoricalDeletionSummary(initOverrides) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const response = yield this.getHistoricalDeletionSummaryRaw(initOverrides);
|
|
74
|
+
return yield response.value();
|
|
75
|
+
});
|
|
76
|
+
}
|
|
30
77
|
/**
|
|
31
78
|
* Creates request options for getModel without sending the request
|
|
32
79
|
*/
|
|
@@ -55,7 +102,7 @@ export class ModelsApi extends runtime.BaseAPI {
|
|
|
55
102
|
});
|
|
56
103
|
}
|
|
57
104
|
/**
|
|
58
|
-
* Cost: 10 credits. Priced above /authors/[id], /methods/[id] and /datasets/[id] because iterating over model ids is functionally a slow dump. The id is author/name and must be percent-encoded.
|
|
105
|
+
* Cost: 10 credits. Priced above /authors/[id], /methods/[id] and /datasets/[id] because iterating over model ids is functionally a slow dump. The id is author/name and must be percent-encoded. Delisted models are served here even though they are hidden from the default catalog list; the response then carries `is_delisted=1` and `days_since_gone`.
|
|
59
106
|
* Get one model
|
|
60
107
|
*/
|
|
61
108
|
getModelRaw(requestParameters, initOverrides) {
|
|
@@ -66,7 +113,7 @@ export class ModelsApi extends runtime.BaseAPI {
|
|
|
66
113
|
});
|
|
67
114
|
}
|
|
68
115
|
/**
|
|
69
|
-
* Cost: 10 credits. Priced above /authors/[id], /methods/[id] and /datasets/[id] because iterating over model ids is functionally a slow dump. The id is author/name and must be percent-encoded.
|
|
116
|
+
* Cost: 10 credits. Priced above /authors/[id], /methods/[id] and /datasets/[id] because iterating over model ids is functionally a slow dump. The id is author/name and must be percent-encoded. Delisted models are served here even though they are hidden from the default catalog list; the response then carries `is_delisted=1` and `days_since_gone`.
|
|
70
117
|
* Get one model
|
|
71
118
|
*/
|
|
72
119
|
getModel(requestParameters, initOverrides) {
|
|
@@ -75,6 +122,121 @@ export class ModelsApi extends runtime.BaseAPI {
|
|
|
75
122
|
return yield response.value();
|
|
76
123
|
});
|
|
77
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Creates request options for listDelistedModels without sending the request
|
|
127
|
+
*/
|
|
128
|
+
listDelistedModelsRequestOpts(requestParameters) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
const queryParameters = {};
|
|
131
|
+
if (requestParameters['since'] != null) {
|
|
132
|
+
queryParameters['since'] = requestParameters['since'];
|
|
133
|
+
}
|
|
134
|
+
if (requestParameters['sort'] != null) {
|
|
135
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
136
|
+
}
|
|
137
|
+
if (requestParameters['limit'] != null) {
|
|
138
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
139
|
+
}
|
|
140
|
+
if (requestParameters['offset'] != null) {
|
|
141
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
142
|
+
}
|
|
143
|
+
const headerParameters = {};
|
|
144
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
145
|
+
const token = this.configuration.accessToken;
|
|
146
|
+
const tokenString = yield token("bearerAuth", []);
|
|
147
|
+
if (tokenString) {
|
|
148
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
let urlPath = `/api/v1/models/delisted`;
|
|
152
|
+
return {
|
|
153
|
+
path: urlPath,
|
|
154
|
+
method: 'GET',
|
|
155
|
+
headers: headerParameters,
|
|
156
|
+
query: queryParameters,
|
|
157
|
+
};
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Cost: 5 credits, flat. Change-stream companion to /models: every row is a tombstone — a model that HF no longer serves, preserved here at its final state. Poll with `since=<last_seen_at of your previous run>` to fetch only new casualties; callers building compliance dashboards, safety-research corpora, or \"wayback\" tools live on this endpoint. See /api#change-stream.
|
|
162
|
+
* List delisted models (change stream)
|
|
163
|
+
*/
|
|
164
|
+
listDelistedModelsRaw(requestParameters, initOverrides) {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
+
const requestOptions = yield this.listDelistedModelsRequestOpts(requestParameters);
|
|
167
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
168
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListDelistedModels200ResponseFromJSON(jsonValue));
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Cost: 5 credits, flat. Change-stream companion to /models: every row is a tombstone — a model that HF no longer serves, preserved here at its final state. Poll with `since=<last_seen_at of your previous run>` to fetch only new casualties; callers building compliance dashboards, safety-research corpora, or \"wayback\" tools live on this endpoint. See /api#change-stream.
|
|
173
|
+
* List delisted models (change stream)
|
|
174
|
+
*/
|
|
175
|
+
listDelistedModels() {
|
|
176
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
177
|
+
const response = yield this.listDelistedModelsRaw(requestParameters, initOverrides);
|
|
178
|
+
return yield response.value();
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Creates request options for listHistoricalDeletions without sending the request
|
|
183
|
+
*/
|
|
184
|
+
listHistoricalDeletionsRequestOpts(requestParameters) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
const queryParameters = {};
|
|
187
|
+
if (requestParameters['sinceMonth'] != null) {
|
|
188
|
+
queryParameters['since_month'] = requestParameters['sinceMonth'];
|
|
189
|
+
}
|
|
190
|
+
if (requestParameters['minPeakDownloads'] != null) {
|
|
191
|
+
queryParameters['min_peak_downloads'] = requestParameters['minPeakDownloads'];
|
|
192
|
+
}
|
|
193
|
+
if (requestParameters['sort'] != null) {
|
|
194
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
195
|
+
}
|
|
196
|
+
if (requestParameters['limit'] != null) {
|
|
197
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
198
|
+
}
|
|
199
|
+
if (requestParameters['offset'] != null) {
|
|
200
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
201
|
+
}
|
|
202
|
+
const headerParameters = {};
|
|
203
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
204
|
+
const token = this.configuration.accessToken;
|
|
205
|
+
const tokenString = yield token("bearerAuth", []);
|
|
206
|
+
if (tokenString) {
|
|
207
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
let urlPath = `/api/v1/models/historical-deletions/list`;
|
|
211
|
+
return {
|
|
212
|
+
path: urlPath,
|
|
213
|
+
method: 'GET',
|
|
214
|
+
headers: headerParameters,
|
|
215
|
+
query: queryParameters,
|
|
216
|
+
};
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Cost: 5 credits, flat. Paged/filterable window on the 24-month deletion backlog. Rows are frozen at the moment the model was last seen on the Hub — peak_downloads and total_months_alive never change after death. Sort by size (`downloads`, default), recency (`recent`, newest deaths first) or lifespan (`lifespan`, longest-lived first — surprising deaths).
|
|
221
|
+
* Historical deletions — paged list
|
|
222
|
+
*/
|
|
223
|
+
listHistoricalDeletionsRaw(requestParameters, initOverrides) {
|
|
224
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
225
|
+
const requestOptions = yield this.listHistoricalDeletionsRequestOpts(requestParameters);
|
|
226
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
227
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListHistoricalDeletions200ResponseFromJSON(jsonValue));
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Cost: 5 credits, flat. Paged/filterable window on the 24-month deletion backlog. Rows are frozen at the moment the model was last seen on the Hub — peak_downloads and total_months_alive never change after death. Sort by size (`downloads`, default), recency (`recent`, newest deaths first) or lifespan (`lifespan`, longest-lived first — surprising deaths).
|
|
232
|
+
* Historical deletions — paged list
|
|
233
|
+
*/
|
|
234
|
+
listHistoricalDeletions() {
|
|
235
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
236
|
+
const response = yield this.listHistoricalDeletionsRaw(requestParameters, initOverrides);
|
|
237
|
+
return yield response.value();
|
|
238
|
+
});
|
|
239
|
+
}
|
|
78
240
|
/**
|
|
79
241
|
* Creates request options for listModels without sending the request
|
|
80
242
|
*/
|
|
@@ -105,6 +267,9 @@ export class ModelsApi extends runtime.BaseAPI {
|
|
|
105
267
|
if (requestParameters['createdBefore'] != null) {
|
|
106
268
|
queryParameters['created_before'] = requestParameters['createdBefore'];
|
|
107
269
|
}
|
|
270
|
+
if (requestParameters['delisted'] != null) {
|
|
271
|
+
queryParameters['delisted'] = requestParameters['delisted'];
|
|
272
|
+
}
|
|
108
273
|
if (requestParameters['sort'] != null) {
|
|
109
274
|
queryParameters['sort'] = requestParameters['sort'];
|
|
110
275
|
}
|
|
@@ -132,7 +297,7 @@ export class ModelsApi extends runtime.BaseAPI {
|
|
|
132
297
|
});
|
|
133
298
|
}
|
|
134
299
|
/**
|
|
135
|
-
* Cost: 5-300+ credits, stepped by returned rows and multiplied by `1 + (offset/2500)²`. A filtered lookup up to 200 rows costs 5; a 1000-row page on the first page costs 300; on offset=10000, 5100. Filter cheap, dump expensive. See /api#pricing. Delisted models are excluded
|
|
300
|
+
* Cost: 5-300+ credits, stepped by returned rows and multiplied by `1 + (offset/2500)²`. A filtered lookup up to 200 rows costs 5; a 1000-row page on the first page costs 300; on offset=10000, 5100. Filter cheap, dump expensive. See /api#pricing. Delisted models are excluded by default (`delisted=live`); pass `delisted=dead|all` to include tombstoned records. A dedicated change-stream endpoint is at GET /api/v1/models/delisted.
|
|
136
301
|
* List models
|
|
137
302
|
*/
|
|
138
303
|
listModelsRaw(requestParameters, initOverrides) {
|
|
@@ -143,7 +308,7 @@ export class ModelsApi extends runtime.BaseAPI {
|
|
|
143
308
|
});
|
|
144
309
|
}
|
|
145
310
|
/**
|
|
146
|
-
* Cost: 5-300+ credits, stepped by returned rows and multiplied by `1 + (offset/2500)²`. A filtered lookup up to 200 rows costs 5; a 1000-row page on the first page costs 300; on offset=10000, 5100. Filter cheap, dump expensive. See /api#pricing. Delisted models are excluded
|
|
311
|
+
* Cost: 5-300+ credits, stepped by returned rows and multiplied by `1 + (offset/2500)²`. A filtered lookup up to 200 rows costs 5; a 1000-row page on the first page costs 300; on offset=10000, 5100. Filter cheap, dump expensive. See /api#pricing. Delisted models are excluded by default (`delisted=live`); pass `delisted=dead|all` to include tombstoned records. A dedicated change-stream endpoint is at GET /api/v1/models/delisted.
|
|
147
312
|
* List models
|
|
148
313
|
*/
|
|
149
314
|
listModels() {
|
|
@@ -153,6 +318,29 @@ export class ModelsApi extends runtime.BaseAPI {
|
|
|
153
318
|
});
|
|
154
319
|
}
|
|
155
320
|
}
|
|
321
|
+
/**
|
|
322
|
+
* @export
|
|
323
|
+
*/
|
|
324
|
+
export const ListDelistedModelsSortEnum = {
|
|
325
|
+
Recent: 'recent',
|
|
326
|
+
Downloads: 'downloads',
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* @export
|
|
330
|
+
*/
|
|
331
|
+
export const ListHistoricalDeletionsSortEnum = {
|
|
332
|
+
Downloads: 'downloads',
|
|
333
|
+
Recent: 'recent',
|
|
334
|
+
Lifespan: 'lifespan',
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* @export
|
|
338
|
+
*/
|
|
339
|
+
export const ListModelsDelistedEnum = {
|
|
340
|
+
Live: 'live',
|
|
341
|
+
Dead: 'dead',
|
|
342
|
+
All: 'all',
|
|
343
|
+
};
|
|
156
344
|
/**
|
|
157
345
|
* @export
|
|
158
346
|
*/
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* abliteration.org Public API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { DeletionSummaryTopByDownloadsInner } from './DeletionSummaryTopByDownloadsInner';
|
|
13
|
+
import type { DeletionSummaryTimelineInner } from './DeletionSummaryTimelineInner';
|
|
14
|
+
/**
|
|
15
|
+
* Aggregate rollup of the 24-month HF deletion analysis.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface DeletionSummary
|
|
18
|
+
*/
|
|
19
|
+
export interface DeletionSummary {
|
|
20
|
+
/**
|
|
21
|
+
* Live catalog size plus historical deletions.
|
|
22
|
+
*/
|
|
23
|
+
total_ever_seen?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
total_deleted?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Percentage of ever-seen models that are now gone.
|
|
30
|
+
*/
|
|
31
|
+
deletion_rate_pct?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Average lifespan of deleted models, in months.
|
|
34
|
+
*/
|
|
35
|
+
avg_months_alive?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Deletions grouped by last_seen_month, ascending.
|
|
38
|
+
*/
|
|
39
|
+
timeline?: Array<DeletionSummaryTimelineInner>;
|
|
40
|
+
/**
|
|
41
|
+
* Top-10 biggest casualties by peak downloads.
|
|
42
|
+
*/
|
|
43
|
+
top_by_downloads?: Array<DeletionSummaryTopByDownloadsInner>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the DeletionSummary interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfDeletionSummary(value: object): value is DeletionSummary;
|
|
49
|
+
export declare function DeletionSummaryFromJSON(json: any): DeletionSummary;
|
|
50
|
+
export declare function DeletionSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletionSummary;
|
|
51
|
+
export declare function DeletionSummaryToJSON(json: any): DeletionSummary;
|
|
52
|
+
export declare function DeletionSummaryToJSONTyped(value?: DeletionSummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
import { DeletionSummaryTopByDownloadsInnerFromJSON, DeletionSummaryTopByDownloadsInnerToJSON, } from './DeletionSummaryTopByDownloadsInner';
|
|
15
|
+
import { DeletionSummaryTimelineInnerFromJSON, DeletionSummaryTimelineInnerToJSON, } from './DeletionSummaryTimelineInner';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the DeletionSummary interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfDeletionSummary(value) {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function DeletionSummaryFromJSON(json) {
|
|
23
|
+
return DeletionSummaryFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function DeletionSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'total_ever_seen': json['total_ever_seen'] == null ? undefined : json['total_ever_seen'],
|
|
31
|
+
'total_deleted': json['total_deleted'] == null ? undefined : json['total_deleted'],
|
|
32
|
+
'deletion_rate_pct': json['deletion_rate_pct'] == null ? undefined : json['deletion_rate_pct'],
|
|
33
|
+
'avg_months_alive': json['avg_months_alive'] == null ? undefined : json['avg_months_alive'],
|
|
34
|
+
'timeline': json['timeline'] == null ? undefined : (json['timeline'].map(DeletionSummaryTimelineInnerFromJSON)),
|
|
35
|
+
'top_by_downloads': json['top_by_downloads'] == null ? undefined : (json['top_by_downloads'].map(DeletionSummaryTopByDownloadsInnerFromJSON)),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function DeletionSummaryToJSON(json) {
|
|
39
|
+
return DeletionSummaryToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function DeletionSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'total_ever_seen': value['total_ever_seen'],
|
|
47
|
+
'total_deleted': value['total_deleted'],
|
|
48
|
+
'deletion_rate_pct': value['deletion_rate_pct'],
|
|
49
|
+
'avg_months_alive': value['avg_months_alive'],
|
|
50
|
+
'timeline': value['timeline'] == null ? undefined : (value['timeline'].map(DeletionSummaryTimelineInnerToJSON)),
|
|
51
|
+
'top_by_downloads': value['top_by_downloads'] == null ? undefined : (value['top_by_downloads'].map(DeletionSummaryTopByDownloadsInnerToJSON)),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* abliteration.org Public API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DeletionSummaryTimelineInner
|
|
16
|
+
*/
|
|
17
|
+
export interface DeletionSummaryTimelineInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
month?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
count?: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the DeletionSummaryTimelineInner interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfDeletionSummaryTimelineInner(value: object): value is DeletionSummaryTimelineInner;
|
|
31
|
+
export declare function DeletionSummaryTimelineInnerFromJSON(json: any): DeletionSummaryTimelineInner;
|
|
32
|
+
export declare function DeletionSummaryTimelineInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletionSummaryTimelineInner;
|
|
33
|
+
export declare function DeletionSummaryTimelineInnerToJSON(json: any): DeletionSummaryTimelineInner;
|
|
34
|
+
export declare function DeletionSummaryTimelineInnerToJSONTyped(value?: DeletionSummaryTimelineInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Check if a given object implements the DeletionSummaryTimelineInner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDeletionSummaryTimelineInner(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function DeletionSummaryTimelineInnerFromJSON(json) {
|
|
21
|
+
return DeletionSummaryTimelineInnerFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function DeletionSummaryTimelineInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'month': json['month'] == null ? undefined : json['month'],
|
|
29
|
+
'count': json['count'] == null ? undefined : json['count'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function DeletionSummaryTimelineInnerToJSON(json) {
|
|
33
|
+
return DeletionSummaryTimelineInnerToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function DeletionSummaryTimelineInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'month': value['month'],
|
|
41
|
+
'count': value['count'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* abliteration.org Public API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DeletionSummaryTopByDownloadsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface DeletionSummaryTopByDownloadsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
peak_downloads?: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
last_seen_month?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
months_alive?: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the DeletionSummaryTopByDownloadsInner interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfDeletionSummaryTopByDownloadsInner(value: object): value is DeletionSummaryTopByDownloadsInner;
|
|
39
|
+
export declare function DeletionSummaryTopByDownloadsInnerFromJSON(json: any): DeletionSummaryTopByDownloadsInner;
|
|
40
|
+
export declare function DeletionSummaryTopByDownloadsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletionSummaryTopByDownloadsInner;
|
|
41
|
+
export declare function DeletionSummaryTopByDownloadsInnerToJSON(json: any): DeletionSummaryTopByDownloadsInner;
|
|
42
|
+
export declare function DeletionSummaryTopByDownloadsInnerToJSONTyped(value?: DeletionSummaryTopByDownloadsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
* Check if a given object implements the DeletionSummaryTopByDownloadsInner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDeletionSummaryTopByDownloadsInner(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function DeletionSummaryTopByDownloadsInnerFromJSON(json) {
|
|
21
|
+
return DeletionSummaryTopByDownloadsInnerFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function DeletionSummaryTopByDownloadsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'peak_downloads': json['peak_downloads'] == null ? undefined : json['peak_downloads'],
|
|
30
|
+
'last_seen_month': json['last_seen_month'] == null ? undefined : json['last_seen_month'],
|
|
31
|
+
'months_alive': json['months_alive'] == null ? undefined : json['months_alive'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function DeletionSummaryTopByDownloadsInnerToJSON(json) {
|
|
35
|
+
return DeletionSummaryTopByDownloadsInnerToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function DeletionSummaryTopByDownloadsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': value['id'],
|
|
43
|
+
'peak_downloads': value['peak_downloads'],
|
|
44
|
+
'last_seen_month': value['last_seen_month'],
|
|
45
|
+
'months_alive': value['months_alive'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* abliteration.org Public API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DelistedModel
|
|
16
|
+
*/
|
|
17
|
+
export interface DelistedModel {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
author?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
family?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
params_b?: number | null;
|
|
34
|
+
/**
|
|
35
|
+
* Downloads at the moment the model was last visible on HF. Not a live counter.
|
|
36
|
+
*/
|
|
37
|
+
downloads?: number;
|
|
38
|
+
/**
|
|
39
|
+
* ISO-8601 timestamp of the last successful Hub observation. Approximately when the model died.
|
|
40
|
+
*/
|
|
41
|
+
last_seen_at?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Whole days between last_seen_at and now, computed server-side for convenience.
|
|
44
|
+
*/
|
|
45
|
+
days_since_gone?: number;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the DelistedModel interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfDelistedModel(value: object): value is DelistedModel;
|
|
51
|
+
export declare function DelistedModelFromJSON(json: any): DelistedModel;
|
|
52
|
+
export declare function DelistedModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): DelistedModel;
|
|
53
|
+
export declare function DelistedModelToJSON(json: any): DelistedModel;
|
|
54
|
+
export declare function DelistedModelToJSONTyped(value?: DelistedModel | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
* Check if a given object implements the DelistedModel interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDelistedModel(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function DelistedModelFromJSON(json) {
|
|
21
|
+
return DelistedModelFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function DelistedModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'author': json['author'] == null ? undefined : json['author'],
|
|
30
|
+
'family': json['family'] === undefined ? undefined : json['family'] === null ? null : json['family'],
|
|
31
|
+
'params_b': json['params_b'] === undefined ? undefined : json['params_b'] === null ? null : json['params_b'],
|
|
32
|
+
'downloads': json['downloads'] == null ? undefined : json['downloads'],
|
|
33
|
+
'last_seen_at': json['last_seen_at'] == null ? undefined : json['last_seen_at'],
|
|
34
|
+
'days_since_gone': json['days_since_gone'] == null ? undefined : json['days_since_gone'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function DelistedModelToJSON(json) {
|
|
38
|
+
return DelistedModelToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function DelistedModelToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': value['id'],
|
|
46
|
+
'author': value['author'],
|
|
47
|
+
'family': value['family'],
|
|
48
|
+
'params_b': value['params_b'],
|
|
49
|
+
'downloads': value['downloads'],
|
|
50
|
+
'last_seen_at': value['last_seen_at'],
|
|
51
|
+
'days_since_gone': value['days_since_gone'],
|
|
52
|
+
};
|
|
53
|
+
}
|