@abliteration/sdk 0.1.5 → 0.1.7

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 (74) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +14 -0
  3. package/dist/apis/ModelsApi.d.ts +217 -0
  4. package/dist/apis/ModelsApi.js +225 -1
  5. package/dist/esm/apis/ModelsApi.d.ts +217 -0
  6. package/dist/esm/apis/ModelsApi.js +224 -0
  7. package/dist/esm/models/DeletionSummary.d.ts +52 -0
  8. package/dist/esm/models/DeletionSummary.js +53 -0
  9. package/dist/esm/models/DeletionSummaryTimelineInner.d.ts +34 -0
  10. package/dist/esm/models/DeletionSummaryTimelineInner.js +43 -0
  11. package/dist/esm/models/DeletionSummaryTopByDownloadsInner.d.ts +42 -0
  12. package/dist/esm/models/DeletionSummaryTopByDownloadsInner.js +47 -0
  13. package/dist/esm/models/GetHistoricalDeletionSummary200Response.d.ts +67 -0
  14. package/dist/esm/models/GetHistoricalDeletionSummary200Response.js +79 -0
  15. package/dist/esm/models/GetModelReadmeAt200Response.d.ts +67 -0
  16. package/dist/esm/models/GetModelReadmeAt200Response.js +79 -0
  17. package/dist/esm/models/HistoricalDeletion.d.ts +50 -0
  18. package/dist/esm/models/HistoricalDeletion.js +51 -0
  19. package/dist/esm/models/ListHistoricalDeletions200Response.d.ts +67 -0
  20. package/dist/esm/models/ListHistoricalDeletions200Response.js +79 -0
  21. package/dist/esm/models/ListModelReadmeDrifts200Response.d.ts +67 -0
  22. package/dist/esm/models/ListModelReadmeDrifts200Response.js +79 -0
  23. package/dist/esm/models/ReadmeAt.d.ts +38 -0
  24. package/dist/esm/models/ReadmeAt.js +45 -0
  25. package/dist/esm/models/ReadmeDrift.d.ts +46 -0
  26. package/dist/esm/models/ReadmeDrift.js +49 -0
  27. package/dist/esm/models/index.d.ts +10 -0
  28. package/dist/esm/models/index.js +10 -0
  29. package/dist/models/DeletionSummary.d.ts +52 -0
  30. package/dist/models/DeletionSummary.js +60 -0
  31. package/dist/models/DeletionSummaryTimelineInner.d.ts +34 -0
  32. package/dist/models/DeletionSummaryTimelineInner.js +50 -0
  33. package/dist/models/DeletionSummaryTopByDownloadsInner.d.ts +42 -0
  34. package/dist/models/DeletionSummaryTopByDownloadsInner.js +54 -0
  35. package/dist/models/GetHistoricalDeletionSummary200Response.d.ts +67 -0
  36. package/dist/models/GetHistoricalDeletionSummary200Response.js +87 -0
  37. package/dist/models/GetModelReadmeAt200Response.d.ts +67 -0
  38. package/dist/models/GetModelReadmeAt200Response.js +87 -0
  39. package/dist/models/HistoricalDeletion.d.ts +50 -0
  40. package/dist/models/HistoricalDeletion.js +58 -0
  41. package/dist/models/ListHistoricalDeletions200Response.d.ts +67 -0
  42. package/dist/models/ListHistoricalDeletions200Response.js +87 -0
  43. package/dist/models/ListModelReadmeDrifts200Response.d.ts +67 -0
  44. package/dist/models/ListModelReadmeDrifts200Response.js +87 -0
  45. package/dist/models/ReadmeAt.d.ts +38 -0
  46. package/dist/models/ReadmeAt.js +52 -0
  47. package/dist/models/ReadmeDrift.d.ts +46 -0
  48. package/dist/models/ReadmeDrift.js +56 -0
  49. package/dist/models/index.d.ts +10 -0
  50. package/dist/models/index.js +10 -0
  51. package/docs/DeletionSummary.md +45 -0
  52. package/docs/DeletionSummaryTimelineInner.md +36 -0
  53. package/docs/DeletionSummaryTopByDownloadsInner.md +40 -0
  54. package/docs/GetHistoricalDeletionSummary200Response.md +48 -0
  55. package/docs/GetModelReadmeAt200Response.md +48 -0
  56. package/docs/HistoricalDeletion.md +44 -0
  57. package/docs/ListHistoricalDeletions200Response.md +48 -0
  58. package/docs/ListModelReadmeDrifts200Response.md +48 -0
  59. package/docs/ModelsApi.md +321 -0
  60. package/docs/ReadmeAt.md +39 -0
  61. package/docs/ReadmeDrift.md +43 -0
  62. package/package.json +1 -1
  63. package/src/apis/ModelsApi.ts +436 -0
  64. package/src/models/DeletionSummary.ts +108 -0
  65. package/src/models/DeletionSummaryTimelineInner.ts +69 -0
  66. package/src/models/DeletionSummaryTopByDownloadsInner.ts +81 -0
  67. package/src/models/GetHistoricalDeletionSummary200Response.ts +132 -0
  68. package/src/models/GetModelReadmeAt200Response.ts +132 -0
  69. package/src/models/HistoricalDeletion.ts +93 -0
  70. package/src/models/ListHistoricalDeletions200Response.ts +132 -0
  71. package/src/models/ListModelReadmeDrifts200Response.ts +132 -0
  72. package/src/models/ReadmeAt.ts +75 -0
  73. package/src/models/ReadmeDrift.ts +87 -0
  74. package/src/models/index.ts +10 -0
@@ -21,13 +21,61 @@ 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 { GetModelReadmeAt200ResponseFromJSON, } from '../models/GetModelReadmeAt200Response';
25
27
  import { ListDelistedModels200ResponseFromJSON, } from '../models/ListDelistedModels200Response';
28
+ import { ListHistoricalDeletions200ResponseFromJSON, } from '../models/ListHistoricalDeletions200Response';
29
+ import { ListModelReadmeDrifts200ResponseFromJSON, } from '../models/ListModelReadmeDrifts200Response';
26
30
  import { ListModels200ResponseFromJSON, } from '../models/ListModels200Response';
27
31
  /**
28
32
  *
29
33
  */
30
34
  export class ModelsApi extends runtime.BaseAPI {
35
+ /**
36
+ * Creates request options for getHistoricalDeletionSummary without sending the request
37
+ */
38
+ getHistoricalDeletionSummaryRequestOpts() {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const queryParameters = {};
41
+ const headerParameters = {};
42
+ if (this.configuration && this.configuration.accessToken) {
43
+ const token = this.configuration.accessToken;
44
+ const tokenString = yield token("bearerAuth", []);
45
+ if (tokenString) {
46
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
47
+ }
48
+ }
49
+ let urlPath = `/api/v1/models/historical-deletions/summary`;
50
+ return {
51
+ path: urlPath,
52
+ method: 'GET',
53
+ headers: headerParameters,
54
+ query: queryParameters,
55
+ };
56
+ });
57
+ }
58
+ /**
59
+ * 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.
60
+ * Historical deletions — aggregate summary
61
+ */
62
+ getHistoricalDeletionSummaryRaw(initOverrides) {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ const requestOptions = yield this.getHistoricalDeletionSummaryRequestOpts();
65
+ const response = yield this.request(requestOptions, initOverrides);
66
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetHistoricalDeletionSummary200ResponseFromJSON(jsonValue));
67
+ });
68
+ }
69
+ /**
70
+ * 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.
71
+ * Historical deletions — aggregate summary
72
+ */
73
+ getHistoricalDeletionSummary(initOverrides) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ const response = yield this.getHistoricalDeletionSummaryRaw(initOverrides);
76
+ return yield response.value();
77
+ });
78
+ }
31
79
  /**
32
80
  * Creates request options for getModel without sending the request
33
81
  */
@@ -76,6 +124,58 @@ export class ModelsApi extends runtime.BaseAPI {
76
124
  return yield response.value();
77
125
  });
78
126
  }
127
+ /**
128
+ * Creates request options for getModelReadmeAt without sending the request
129
+ */
130
+ getModelReadmeAtRequestOpts(requestParameters) {
131
+ return __awaiter(this, void 0, void 0, function* () {
132
+ if (requestParameters['id'] == null) {
133
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getModelReadmeAt().');
134
+ }
135
+ if (requestParameters['commit'] == null) {
136
+ throw new runtime.RequiredError('commit', 'Required parameter "commit" was null or undefined when calling getModelReadmeAt().');
137
+ }
138
+ const queryParameters = {};
139
+ const headerParameters = {};
140
+ if (this.configuration && this.configuration.accessToken) {
141
+ const token = this.configuration.accessToken;
142
+ const tokenString = yield token("bearerAuth", []);
143
+ if (tokenString) {
144
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
145
+ }
146
+ }
147
+ let urlPath = `/api/v1/models/{id}/readme-at/{commit}`;
148
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
149
+ urlPath = urlPath.replace('{commit}', encodeURIComponent(String(requestParameters['commit'])));
150
+ return {
151
+ path: urlPath,
152
+ method: 'GET',
153
+ headers: headerParameters,
154
+ query: queryParameters,
155
+ };
156
+ });
157
+ }
158
+ /**
159
+ * Cost: 10 credits, flat. The wayback-machine leg of the change-stream. Returns the exact README content for one model at one commit sha — used after spotting a suspicious drift on GET /api/v1/models/{id}/drifts.
160
+ * README content at one commit (wayback)
161
+ */
162
+ getModelReadmeAtRaw(requestParameters, initOverrides) {
163
+ return __awaiter(this, void 0, void 0, function* () {
164
+ const requestOptions = yield this.getModelReadmeAtRequestOpts(requestParameters);
165
+ const response = yield this.request(requestOptions, initOverrides);
166
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetModelReadmeAt200ResponseFromJSON(jsonValue));
167
+ });
168
+ }
169
+ /**
170
+ * Cost: 10 credits, flat. The wayback-machine leg of the change-stream. Returns the exact README content for one model at one commit sha — used after spotting a suspicious drift on GET /api/v1/models/{id}/drifts.
171
+ * README content at one commit (wayback)
172
+ */
173
+ getModelReadmeAt(requestParameters, initOverrides) {
174
+ return __awaiter(this, void 0, void 0, function* () {
175
+ const response = yield this.getModelReadmeAtRaw(requestParameters, initOverrides);
176
+ return yield response.value();
177
+ });
178
+ }
79
179
  /**
80
180
  * Creates request options for listDelistedModels without sending the request
81
181
  */
@@ -132,6 +232,122 @@ export class ModelsApi extends runtime.BaseAPI {
132
232
  return yield response.value();
133
233
  });
134
234
  }
235
+ /**
236
+ * Creates request options for listHistoricalDeletions without sending the request
237
+ */
238
+ listHistoricalDeletionsRequestOpts(requestParameters) {
239
+ return __awaiter(this, void 0, void 0, function* () {
240
+ const queryParameters = {};
241
+ if (requestParameters['sinceMonth'] != null) {
242
+ queryParameters['since_month'] = requestParameters['sinceMonth'];
243
+ }
244
+ if (requestParameters['minPeakDownloads'] != null) {
245
+ queryParameters['min_peak_downloads'] = requestParameters['minPeakDownloads'];
246
+ }
247
+ if (requestParameters['sort'] != null) {
248
+ queryParameters['sort'] = requestParameters['sort'];
249
+ }
250
+ if (requestParameters['limit'] != null) {
251
+ queryParameters['limit'] = requestParameters['limit'];
252
+ }
253
+ if (requestParameters['offset'] != null) {
254
+ queryParameters['offset'] = requestParameters['offset'];
255
+ }
256
+ const headerParameters = {};
257
+ if (this.configuration && this.configuration.accessToken) {
258
+ const token = this.configuration.accessToken;
259
+ const tokenString = yield token("bearerAuth", []);
260
+ if (tokenString) {
261
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
262
+ }
263
+ }
264
+ let urlPath = `/api/v1/models/historical-deletions/list`;
265
+ return {
266
+ path: urlPath,
267
+ method: 'GET',
268
+ headers: headerParameters,
269
+ query: queryParameters,
270
+ };
271
+ });
272
+ }
273
+ /**
274
+ * 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).
275
+ * Historical deletions — paged list
276
+ */
277
+ listHistoricalDeletionsRaw(requestParameters, initOverrides) {
278
+ return __awaiter(this, void 0, void 0, function* () {
279
+ const requestOptions = yield this.listHistoricalDeletionsRequestOpts(requestParameters);
280
+ const response = yield this.request(requestOptions, initOverrides);
281
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListHistoricalDeletions200ResponseFromJSON(jsonValue));
282
+ });
283
+ }
284
+ /**
285
+ * 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).
286
+ * Historical deletions — paged list
287
+ */
288
+ listHistoricalDeletions() {
289
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
290
+ const response = yield this.listHistoricalDeletionsRaw(requestParameters, initOverrides);
291
+ return yield response.value();
292
+ });
293
+ }
294
+ /**
295
+ * Creates request options for listModelReadmeDrifts without sending the request
296
+ */
297
+ listModelReadmeDriftsRequestOpts(requestParameters) {
298
+ return __awaiter(this, void 0, void 0, function* () {
299
+ if (requestParameters['id'] == null) {
300
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling listModelReadmeDrifts().');
301
+ }
302
+ const queryParameters = {};
303
+ if (requestParameters['sinceTs'] != null) {
304
+ queryParameters['since_ts'] = requestParameters['sinceTs'];
305
+ }
306
+ if (requestParameters['limit'] != null) {
307
+ queryParameters['limit'] = requestParameters['limit'];
308
+ }
309
+ if (requestParameters['offset'] != null) {
310
+ queryParameters['offset'] = requestParameters['offset'];
311
+ }
312
+ const headerParameters = {};
313
+ if (this.configuration && this.configuration.accessToken) {
314
+ const token = this.configuration.accessToken;
315
+ const tokenString = yield token("bearerAuth", []);
316
+ if (tokenString) {
317
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
318
+ }
319
+ }
320
+ let urlPath = `/api/v1/models/{id}/drifts`;
321
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
322
+ return {
323
+ path: urlPath,
324
+ method: 'GET',
325
+ headers: headerParameters,
326
+ query: queryParameters,
327
+ };
328
+ });
329
+ }
330
+ /**
331
+ * Cost: 5 credits, flat. Every commit that changed the model\'s README on HF, with `size_delta` between commits so a consumer spots growth spurts and hard prunes without fetching each version. Poll with `since_ts=<max commit_ts of your previous run>` for an incremental drift feed.
332
+ * README drift stream for one model
333
+ */
334
+ listModelReadmeDriftsRaw(requestParameters, initOverrides) {
335
+ return __awaiter(this, void 0, void 0, function* () {
336
+ const requestOptions = yield this.listModelReadmeDriftsRequestOpts(requestParameters);
337
+ const response = yield this.request(requestOptions, initOverrides);
338
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListModelReadmeDrifts200ResponseFromJSON(jsonValue));
339
+ });
340
+ }
341
+ /**
342
+ * Cost: 5 credits, flat. Every commit that changed the model\'s README on HF, with `size_delta` between commits so a consumer spots growth spurts and hard prunes without fetching each version. Poll with `since_ts=<max commit_ts of your previous run>` for an incremental drift feed.
343
+ * README drift stream for one model
344
+ */
345
+ listModelReadmeDrifts(requestParameters, initOverrides) {
346
+ return __awaiter(this, void 0, void 0, function* () {
347
+ const response = yield this.listModelReadmeDriftsRaw(requestParameters, initOverrides);
348
+ return yield response.value();
349
+ });
350
+ }
135
351
  /**
136
352
  * Creates request options for listModels without sending the request
137
353
  */
@@ -220,6 +436,14 @@ export const ListDelistedModelsSortEnum = {
220
436
  Recent: 'recent',
221
437
  Downloads: 'downloads',
222
438
  };
439
+ /**
440
+ * @export
441
+ */
442
+ export const ListHistoricalDeletionsSortEnum = {
443
+ Downloads: 'downloads',
444
+ Recent: 'recent',
445
+ Lifespan: 'lifespan',
446
+ };
223
447
  /**
224
448
  * @export
225
449
  */
@@ -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,67 @@
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 { DeletionSummary } from './DeletionSummary';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetHistoricalDeletionSummary200Response
17
+ */
18
+ export interface GetHistoricalDeletionSummary200Response {
19
+ /**
20
+ *
21
+ */
22
+ data: DeletionSummary;
23
+ /**
24
+ * Credits this call costs.
25
+ */
26
+ cost: number;
27
+ /**
28
+ * Wallet balance after the call. Unchanged while metering is preview.
29
+ */
30
+ credits_remaining: number;
31
+ /**
32
+ * Ceiling for the current window. Also returned as X-RateLimit-Limit.
33
+ */
34
+ rate_limit_limit: number;
35
+ /**
36
+ * Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
37
+ */
38
+ rate_limit_remaining: number;
39
+ /**
40
+ * Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
41
+ */
42
+ rate_limit_reset: number;
43
+ /**
44
+ * Whether cost was actually deducted.
45
+ */
46
+ metering: GetHistoricalDeletionSummary200ResponseMeteringEnum;
47
+ /**
48
+ * Also returned in the x-request-id header.
49
+ */
50
+ request_id: string;
51
+ }
52
+ /**
53
+ * @export
54
+ */
55
+ export declare const GetHistoricalDeletionSummary200ResponseMeteringEnum: {
56
+ readonly Preview: "preview";
57
+ readonly Billed: "billed";
58
+ };
59
+ export type GetHistoricalDeletionSummary200ResponseMeteringEnum = typeof GetHistoricalDeletionSummary200ResponseMeteringEnum[keyof typeof GetHistoricalDeletionSummary200ResponseMeteringEnum];
60
+ /**
61
+ * Check if a given object implements the GetHistoricalDeletionSummary200Response interface.
62
+ */
63
+ export declare function instanceOfGetHistoricalDeletionSummary200Response(value: object): value is GetHistoricalDeletionSummary200Response;
64
+ export declare function GetHistoricalDeletionSummary200ResponseFromJSON(json: any): GetHistoricalDeletionSummary200Response;
65
+ export declare function GetHistoricalDeletionSummary200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHistoricalDeletionSummary200Response;
66
+ export declare function GetHistoricalDeletionSummary200ResponseToJSON(json: any): GetHistoricalDeletionSummary200Response;
67
+ export declare function GetHistoricalDeletionSummary200ResponseToJSONTyped(value?: GetHistoricalDeletionSummary200Response | null, ignoreDiscriminator?: boolean): any;