@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
@@ -0,0 +1,45 @@
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 ReadmeAt interface.
16
+ */
17
+ export function instanceOfReadmeAt(value) {
18
+ return true;
19
+ }
20
+ export function ReadmeAtFromJSON(json) {
21
+ return ReadmeAtFromJSONTyped(json, false);
22
+ }
23
+ export function ReadmeAtFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'id': json['id'] == null ? undefined : json['id'],
29
+ 'commit': json['commit'] == null ? undefined : json['commit'],
30
+ 'content': json['content'] == null ? undefined : json['content'],
31
+ };
32
+ }
33
+ export function ReadmeAtToJSON(json) {
34
+ return ReadmeAtToJSONTyped(json, false);
35
+ }
36
+ export function ReadmeAtToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'id': value['id'],
42
+ 'commit': value['commit'],
43
+ 'content': value['content'],
44
+ };
45
+ }
@@ -0,0 +1,46 @@
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
+ * One commit that changed the model's README on HF.
14
+ * @export
15
+ * @interface ReadmeDrift
16
+ */
17
+ export interface ReadmeDrift {
18
+ /**
19
+ *
20
+ */
21
+ commit_sha?: string;
22
+ /**
23
+ * Unix epoch seconds.
24
+ */
25
+ commit_ts?: number;
26
+ /**
27
+ *
28
+ */
29
+ commit_message?: string | null;
30
+ /**
31
+ * README byte size at this commit.
32
+ */
33
+ content_size?: number;
34
+ /**
35
+ * Bytes added (positive) or removed (negative) since the previous commit. First commit gets 0.
36
+ */
37
+ size_delta?: number;
38
+ }
39
+ /**
40
+ * Check if a given object implements the ReadmeDrift interface.
41
+ */
42
+ export declare function instanceOfReadmeDrift(value: object): value is ReadmeDrift;
43
+ export declare function ReadmeDriftFromJSON(json: any): ReadmeDrift;
44
+ export declare function ReadmeDriftFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadmeDrift;
45
+ export declare function ReadmeDriftToJSON(json: any): ReadmeDrift;
46
+ export declare function ReadmeDriftToJSONTyped(value?: ReadmeDrift | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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 ReadmeDrift interface.
16
+ */
17
+ export function instanceOfReadmeDrift(value) {
18
+ return true;
19
+ }
20
+ export function ReadmeDriftFromJSON(json) {
21
+ return ReadmeDriftFromJSONTyped(json, false);
22
+ }
23
+ export function ReadmeDriftFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'commit_sha': json['commit_sha'] == null ? undefined : json['commit_sha'],
29
+ 'commit_ts': json['commit_ts'] == null ? undefined : json['commit_ts'],
30
+ 'commit_message': json['commit_message'] === undefined ? undefined : json['commit_message'] === null ? null : json['commit_message'],
31
+ 'content_size': json['content_size'] == null ? undefined : json['content_size'],
32
+ 'size_delta': json['size_delta'] == null ? undefined : json['size_delta'],
33
+ };
34
+ }
35
+ export function ReadmeDriftToJSON(json) {
36
+ return ReadmeDriftToJSONTyped(json, false);
37
+ }
38
+ export function ReadmeDriftToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'commit_sha': value['commit_sha'],
44
+ 'commit_ts': value['commit_ts'],
45
+ 'commit_message': value['commit_message'],
46
+ 'content_size': value['content_size'],
47
+ 'size_delta': value['size_delta'],
48
+ };
49
+ }
@@ -3,20 +3,28 @@ export * from './AuthorDetail';
3
3
  export * from './DaiPoint';
4
4
  export * from './Dataset';
5
5
  export * from './DatasetDetail';
6
+ export * from './DeletionSummary';
7
+ export * from './DeletionSummaryTimelineInner';
8
+ export * from './DeletionSummaryTopByDownloadsInner';
6
9
  export * from './DelistedModel';
7
10
  export * from './Envelope';
8
11
  export * from './Event';
9
12
  export * from './GetAuthor200Response';
10
13
  export * from './GetDataset200Response';
14
+ export * from './GetHistoricalDeletionSummary200Response';
11
15
  export * from './GetIndex200Response';
12
16
  export * from './GetMethod200Response';
13
17
  export * from './GetModel200Response';
18
+ export * from './GetModelReadmeAt200Response';
19
+ export * from './HistoricalDeletion';
14
20
  export * from './IndexDetail';
15
21
  export * from './ListAuthors200Response';
16
22
  export * from './ListDatasets200Response';
17
23
  export * from './ListDelistedModels200Response';
24
+ export * from './ListHistoricalDeletions200Response';
18
25
  export * from './ListIndices200Response';
19
26
  export * from './ListMethods200Response';
27
+ export * from './ListModelReadmeDrifts200Response';
20
28
  export * from './ListModels200Response';
21
29
  export * from './ListTimeline200Response';
22
30
  export * from './Method';
@@ -27,3 +35,5 @@ export * from './ModelError';
27
35
  export * from './ModelIndex';
28
36
  export * from './ModelSummary';
29
37
  export * from './Passport';
38
+ export * from './ReadmeAt';
39
+ export * from './ReadmeDrift';
@@ -5,20 +5,28 @@ export * from './AuthorDetail';
5
5
  export * from './DaiPoint';
6
6
  export * from './Dataset';
7
7
  export * from './DatasetDetail';
8
+ export * from './DeletionSummary';
9
+ export * from './DeletionSummaryTimelineInner';
10
+ export * from './DeletionSummaryTopByDownloadsInner';
8
11
  export * from './DelistedModel';
9
12
  export * from './Envelope';
10
13
  export * from './Event';
11
14
  export * from './GetAuthor200Response';
12
15
  export * from './GetDataset200Response';
16
+ export * from './GetHistoricalDeletionSummary200Response';
13
17
  export * from './GetIndex200Response';
14
18
  export * from './GetMethod200Response';
15
19
  export * from './GetModel200Response';
20
+ export * from './GetModelReadmeAt200Response';
21
+ export * from './HistoricalDeletion';
16
22
  export * from './IndexDetail';
17
23
  export * from './ListAuthors200Response';
18
24
  export * from './ListDatasets200Response';
19
25
  export * from './ListDelistedModels200Response';
26
+ export * from './ListHistoricalDeletions200Response';
20
27
  export * from './ListIndices200Response';
21
28
  export * from './ListMethods200Response';
29
+ export * from './ListModelReadmeDrifts200Response';
22
30
  export * from './ListModels200Response';
23
31
  export * from './ListTimeline200Response';
24
32
  export * from './Method';
@@ -29,3 +37,5 @@ export * from './ModelError';
29
37
  export * from './ModelIndex';
30
38
  export * from './ModelSummary';
31
39
  export * from './Passport';
40
+ export * from './ReadmeAt';
41
+ export * from './ReadmeDrift';
@@ -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,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * abliteration.org Public API
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfDeletionSummary = instanceOfDeletionSummary;
17
+ exports.DeletionSummaryFromJSON = DeletionSummaryFromJSON;
18
+ exports.DeletionSummaryFromJSONTyped = DeletionSummaryFromJSONTyped;
19
+ exports.DeletionSummaryToJSON = DeletionSummaryToJSON;
20
+ exports.DeletionSummaryToJSONTyped = DeletionSummaryToJSONTyped;
21
+ const DeletionSummaryTopByDownloadsInner_1 = require("./DeletionSummaryTopByDownloadsInner");
22
+ const DeletionSummaryTimelineInner_1 = require("./DeletionSummaryTimelineInner");
23
+ /**
24
+ * Check if a given object implements the DeletionSummary interface.
25
+ */
26
+ function instanceOfDeletionSummary(value) {
27
+ return true;
28
+ }
29
+ function DeletionSummaryFromJSON(json) {
30
+ return DeletionSummaryFromJSONTyped(json, false);
31
+ }
32
+ function DeletionSummaryFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'total_ever_seen': json['total_ever_seen'] == null ? undefined : json['total_ever_seen'],
38
+ 'total_deleted': json['total_deleted'] == null ? undefined : json['total_deleted'],
39
+ 'deletion_rate_pct': json['deletion_rate_pct'] == null ? undefined : json['deletion_rate_pct'],
40
+ 'avg_months_alive': json['avg_months_alive'] == null ? undefined : json['avg_months_alive'],
41
+ 'timeline': json['timeline'] == null ? undefined : (json['timeline'].map(DeletionSummaryTimelineInner_1.DeletionSummaryTimelineInnerFromJSON)),
42
+ 'top_by_downloads': json['top_by_downloads'] == null ? undefined : (json['top_by_downloads'].map(DeletionSummaryTopByDownloadsInner_1.DeletionSummaryTopByDownloadsInnerFromJSON)),
43
+ };
44
+ }
45
+ function DeletionSummaryToJSON(json) {
46
+ return DeletionSummaryToJSONTyped(json, false);
47
+ }
48
+ function DeletionSummaryToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'total_ever_seen': value['total_ever_seen'],
54
+ 'total_deleted': value['total_deleted'],
55
+ 'deletion_rate_pct': value['deletion_rate_pct'],
56
+ 'avg_months_alive': value['avg_months_alive'],
57
+ 'timeline': value['timeline'] == null ? undefined : (value['timeline'].map(DeletionSummaryTimelineInner_1.DeletionSummaryTimelineInnerToJSON)),
58
+ 'top_by_downloads': value['top_by_downloads'] == null ? undefined : (value['top_by_downloads'].map(DeletionSummaryTopByDownloadsInner_1.DeletionSummaryTopByDownloadsInnerToJSON)),
59
+ };
60
+ }
@@ -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,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * abliteration.org Public API
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfDeletionSummaryTimelineInner = instanceOfDeletionSummaryTimelineInner;
17
+ exports.DeletionSummaryTimelineInnerFromJSON = DeletionSummaryTimelineInnerFromJSON;
18
+ exports.DeletionSummaryTimelineInnerFromJSONTyped = DeletionSummaryTimelineInnerFromJSONTyped;
19
+ exports.DeletionSummaryTimelineInnerToJSON = DeletionSummaryTimelineInnerToJSON;
20
+ exports.DeletionSummaryTimelineInnerToJSONTyped = DeletionSummaryTimelineInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DeletionSummaryTimelineInner interface.
23
+ */
24
+ function instanceOfDeletionSummaryTimelineInner(value) {
25
+ return true;
26
+ }
27
+ function DeletionSummaryTimelineInnerFromJSON(json) {
28
+ return DeletionSummaryTimelineInnerFromJSONTyped(json, false);
29
+ }
30
+ function DeletionSummaryTimelineInnerFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'month': json['month'] == null ? undefined : json['month'],
36
+ 'count': json['count'] == null ? undefined : json['count'],
37
+ };
38
+ }
39
+ function DeletionSummaryTimelineInnerToJSON(json) {
40
+ return DeletionSummaryTimelineInnerToJSONTyped(json, false);
41
+ }
42
+ function DeletionSummaryTimelineInnerToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'month': value['month'],
48
+ 'count': value['count'],
49
+ };
50
+ }
@@ -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,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * abliteration.org Public API
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfDeletionSummaryTopByDownloadsInner = instanceOfDeletionSummaryTopByDownloadsInner;
17
+ exports.DeletionSummaryTopByDownloadsInnerFromJSON = DeletionSummaryTopByDownloadsInnerFromJSON;
18
+ exports.DeletionSummaryTopByDownloadsInnerFromJSONTyped = DeletionSummaryTopByDownloadsInnerFromJSONTyped;
19
+ exports.DeletionSummaryTopByDownloadsInnerToJSON = DeletionSummaryTopByDownloadsInnerToJSON;
20
+ exports.DeletionSummaryTopByDownloadsInnerToJSONTyped = DeletionSummaryTopByDownloadsInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DeletionSummaryTopByDownloadsInner interface.
23
+ */
24
+ function instanceOfDeletionSummaryTopByDownloadsInner(value) {
25
+ return true;
26
+ }
27
+ function DeletionSummaryTopByDownloadsInnerFromJSON(json) {
28
+ return DeletionSummaryTopByDownloadsInnerFromJSONTyped(json, false);
29
+ }
30
+ function DeletionSummaryTopByDownloadsInnerFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': json['id'] == null ? undefined : json['id'],
36
+ 'peak_downloads': json['peak_downloads'] == null ? undefined : json['peak_downloads'],
37
+ 'last_seen_month': json['last_seen_month'] == null ? undefined : json['last_seen_month'],
38
+ 'months_alive': json['months_alive'] == null ? undefined : json['months_alive'],
39
+ };
40
+ }
41
+ function DeletionSummaryTopByDownloadsInnerToJSON(json) {
42
+ return DeletionSummaryTopByDownloadsInnerToJSONTyped(json, false);
43
+ }
44
+ function DeletionSummaryTopByDownloadsInnerToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'id': value['id'],
50
+ 'peak_downloads': value['peak_downloads'],
51
+ 'last_seen_month': value['last_seen_month'],
52
+ 'months_alive': value['months_alive'],
53
+ };
54
+ }
@@ -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;