@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,69 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * abliteration.org Public API
5
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DeletionSummaryTimelineInner
20
+ */
21
+ export interface DeletionSummaryTimelineInner {
22
+ /**
23
+ *
24
+ */
25
+ month?: string;
26
+ /**
27
+ *
28
+ */
29
+ count?: number;
30
+ }
31
+
32
+ /**
33
+ * Check if a given object implements the DeletionSummaryTimelineInner interface.
34
+ */
35
+ export function instanceOfDeletionSummaryTimelineInner(value: object): value is DeletionSummaryTimelineInner {
36
+ return true;
37
+ }
38
+
39
+ export function DeletionSummaryTimelineInnerFromJSON(json: any): DeletionSummaryTimelineInner {
40
+ return DeletionSummaryTimelineInnerFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function DeletionSummaryTimelineInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletionSummaryTimelineInner {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+
49
+ 'month': json['month'] == null ? undefined : json['month'],
50
+ 'count': json['count'] == null ? undefined : json['count'],
51
+ };
52
+ }
53
+
54
+ export function DeletionSummaryTimelineInnerToJSON(json: any): DeletionSummaryTimelineInner {
55
+ return DeletionSummaryTimelineInnerToJSONTyped(json, false);
56
+ }
57
+
58
+ export function DeletionSummaryTimelineInnerToJSONTyped(value?: DeletionSummaryTimelineInner | null, ignoreDiscriminator: boolean = false): any {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+
63
+ return {
64
+
65
+ 'month': value['month'],
66
+ 'count': value['count'],
67
+ };
68
+ }
69
+
@@ -0,0 +1,81 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * abliteration.org Public API
5
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DeletionSummaryTopByDownloadsInner
20
+ */
21
+ export interface DeletionSummaryTopByDownloadsInner {
22
+ /**
23
+ *
24
+ */
25
+ id?: string;
26
+ /**
27
+ *
28
+ */
29
+ peak_downloads?: number;
30
+ /**
31
+ *
32
+ */
33
+ last_seen_month?: string;
34
+ /**
35
+ *
36
+ */
37
+ months_alive?: number;
38
+ }
39
+
40
+ /**
41
+ * Check if a given object implements the DeletionSummaryTopByDownloadsInner interface.
42
+ */
43
+ export function instanceOfDeletionSummaryTopByDownloadsInner(value: object): value is DeletionSummaryTopByDownloadsInner {
44
+ return true;
45
+ }
46
+
47
+ export function DeletionSummaryTopByDownloadsInnerFromJSON(json: any): DeletionSummaryTopByDownloadsInner {
48
+ return DeletionSummaryTopByDownloadsInnerFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function DeletionSummaryTopByDownloadsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletionSummaryTopByDownloadsInner {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'id': json['id'] == null ? undefined : json['id'],
58
+ 'peak_downloads': json['peak_downloads'] == null ? undefined : json['peak_downloads'],
59
+ 'last_seen_month': json['last_seen_month'] == null ? undefined : json['last_seen_month'],
60
+ 'months_alive': json['months_alive'] == null ? undefined : json['months_alive'],
61
+ };
62
+ }
63
+
64
+ export function DeletionSummaryTopByDownloadsInnerToJSON(json: any): DeletionSummaryTopByDownloadsInner {
65
+ return DeletionSummaryTopByDownloadsInnerToJSONTyped(json, false);
66
+ }
67
+
68
+ export function DeletionSummaryTopByDownloadsInnerToJSONTyped(value?: DeletionSummaryTopByDownloadsInner | null, ignoreDiscriminator: boolean = false): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+
73
+ return {
74
+
75
+ 'id': value['id'],
76
+ 'peak_downloads': value['peak_downloads'],
77
+ 'last_seen_month': value['last_seen_month'],
78
+ 'months_alive': value['months_alive'],
79
+ };
80
+ }
81
+
@@ -0,0 +1,132 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * abliteration.org Public API
5
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { DeletionSummary } from './DeletionSummary';
17
+ import {
18
+ DeletionSummaryFromJSON,
19
+ DeletionSummaryFromJSONTyped,
20
+ DeletionSummaryToJSON,
21
+ DeletionSummaryToJSONTyped,
22
+ } from './DeletionSummary';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GetHistoricalDeletionSummary200Response
28
+ */
29
+ export interface GetHistoricalDeletionSummary200Response {
30
+ /**
31
+ *
32
+ */
33
+ data: DeletionSummary;
34
+ /**
35
+ * Credits this call costs.
36
+ */
37
+ cost: number;
38
+ /**
39
+ * Wallet balance after the call. Unchanged while metering is preview.
40
+ */
41
+ credits_remaining: number;
42
+ /**
43
+ * Ceiling for the current window. Also returned as X-RateLimit-Limit.
44
+ */
45
+ rate_limit_limit: number;
46
+ /**
47
+ * Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
48
+ */
49
+ rate_limit_remaining: number;
50
+ /**
51
+ * Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
52
+ */
53
+ rate_limit_reset: number;
54
+ /**
55
+ * Whether cost was actually deducted.
56
+ */
57
+ metering: GetHistoricalDeletionSummary200ResponseMeteringEnum;
58
+ /**
59
+ * Also returned in the x-request-id header.
60
+ */
61
+ request_id: string;
62
+ }
63
+
64
+
65
+ /**
66
+ * @export
67
+ */
68
+ export const GetHistoricalDeletionSummary200ResponseMeteringEnum = {
69
+ Preview: 'preview',
70
+ Billed: 'billed',
71
+ } as const;
72
+ export type GetHistoricalDeletionSummary200ResponseMeteringEnum = typeof GetHistoricalDeletionSummary200ResponseMeteringEnum[keyof typeof GetHistoricalDeletionSummary200ResponseMeteringEnum];
73
+
74
+
75
+ /**
76
+ * Check if a given object implements the GetHistoricalDeletionSummary200Response interface.
77
+ */
78
+ export function instanceOfGetHistoricalDeletionSummary200Response(value: object): value is GetHistoricalDeletionSummary200Response {
79
+ if (!('data' in value) || value['data'] === undefined) return false;
80
+ if (!('cost' in value) || value['cost'] === undefined) return false;
81
+ if (!('credits_remaining' in value) || value['credits_remaining'] === undefined) return false;
82
+ if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined) return false;
83
+ if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined) return false;
84
+ if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined) return false;
85
+ if (!('metering' in value) || value['metering'] === undefined) return false;
86
+ if (!('request_id' in value) || value['request_id'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function GetHistoricalDeletionSummary200ResponseFromJSON(json: any): GetHistoricalDeletionSummary200Response {
91
+ return GetHistoricalDeletionSummary200ResponseFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function GetHistoricalDeletionSummary200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHistoricalDeletionSummary200Response {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'data': DeletionSummaryFromJSON(json['data']),
101
+ 'cost': json['cost'],
102
+ 'credits_remaining': json['credits_remaining'],
103
+ 'rate_limit_limit': json['rate_limit_limit'],
104
+ 'rate_limit_remaining': json['rate_limit_remaining'],
105
+ 'rate_limit_reset': json['rate_limit_reset'],
106
+ 'metering': json['metering'],
107
+ 'request_id': json['request_id'],
108
+ };
109
+ }
110
+
111
+ export function GetHistoricalDeletionSummary200ResponseToJSON(json: any): GetHistoricalDeletionSummary200Response {
112
+ return GetHistoricalDeletionSummary200ResponseToJSONTyped(json, false);
113
+ }
114
+
115
+ export function GetHistoricalDeletionSummary200ResponseToJSONTyped(value?: GetHistoricalDeletionSummary200Response | null, ignoreDiscriminator: boolean = false): any {
116
+ if (value == null) {
117
+ return value;
118
+ }
119
+
120
+ return {
121
+
122
+ 'data': DeletionSummaryToJSON(value['data']),
123
+ 'cost': value['cost'],
124
+ 'credits_remaining': value['credits_remaining'],
125
+ 'rate_limit_limit': value['rate_limit_limit'],
126
+ 'rate_limit_remaining': value['rate_limit_remaining'],
127
+ 'rate_limit_reset': value['rate_limit_reset'],
128
+ 'metering': value['metering'],
129
+ 'request_id': value['request_id'],
130
+ };
131
+ }
132
+
@@ -0,0 +1,132 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * abliteration.org Public API
5
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ReadmeAt } from './ReadmeAt';
17
+ import {
18
+ ReadmeAtFromJSON,
19
+ ReadmeAtFromJSONTyped,
20
+ ReadmeAtToJSON,
21
+ ReadmeAtToJSONTyped,
22
+ } from './ReadmeAt';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GetModelReadmeAt200Response
28
+ */
29
+ export interface GetModelReadmeAt200Response {
30
+ /**
31
+ *
32
+ */
33
+ data: ReadmeAt;
34
+ /**
35
+ * Credits this call costs.
36
+ */
37
+ cost: number;
38
+ /**
39
+ * Wallet balance after the call. Unchanged while metering is preview.
40
+ */
41
+ credits_remaining: number;
42
+ /**
43
+ * Ceiling for the current window. Also returned as X-RateLimit-Limit.
44
+ */
45
+ rate_limit_limit: number;
46
+ /**
47
+ * Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
48
+ */
49
+ rate_limit_remaining: number;
50
+ /**
51
+ * Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
52
+ */
53
+ rate_limit_reset: number;
54
+ /**
55
+ * Whether cost was actually deducted.
56
+ */
57
+ metering: GetModelReadmeAt200ResponseMeteringEnum;
58
+ /**
59
+ * Also returned in the x-request-id header.
60
+ */
61
+ request_id: string;
62
+ }
63
+
64
+
65
+ /**
66
+ * @export
67
+ */
68
+ export const GetModelReadmeAt200ResponseMeteringEnum = {
69
+ Preview: 'preview',
70
+ Billed: 'billed',
71
+ } as const;
72
+ export type GetModelReadmeAt200ResponseMeteringEnum = typeof GetModelReadmeAt200ResponseMeteringEnum[keyof typeof GetModelReadmeAt200ResponseMeteringEnum];
73
+
74
+
75
+ /**
76
+ * Check if a given object implements the GetModelReadmeAt200Response interface.
77
+ */
78
+ export function instanceOfGetModelReadmeAt200Response(value: object): value is GetModelReadmeAt200Response {
79
+ if (!('data' in value) || value['data'] === undefined) return false;
80
+ if (!('cost' in value) || value['cost'] === undefined) return false;
81
+ if (!('credits_remaining' in value) || value['credits_remaining'] === undefined) return false;
82
+ if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined) return false;
83
+ if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined) return false;
84
+ if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined) return false;
85
+ if (!('metering' in value) || value['metering'] === undefined) return false;
86
+ if (!('request_id' in value) || value['request_id'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function GetModelReadmeAt200ResponseFromJSON(json: any): GetModelReadmeAt200Response {
91
+ return GetModelReadmeAt200ResponseFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function GetModelReadmeAt200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModelReadmeAt200Response {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'data': ReadmeAtFromJSON(json['data']),
101
+ 'cost': json['cost'],
102
+ 'credits_remaining': json['credits_remaining'],
103
+ 'rate_limit_limit': json['rate_limit_limit'],
104
+ 'rate_limit_remaining': json['rate_limit_remaining'],
105
+ 'rate_limit_reset': json['rate_limit_reset'],
106
+ 'metering': json['metering'],
107
+ 'request_id': json['request_id'],
108
+ };
109
+ }
110
+
111
+ export function GetModelReadmeAt200ResponseToJSON(json: any): GetModelReadmeAt200Response {
112
+ return GetModelReadmeAt200ResponseToJSONTyped(json, false);
113
+ }
114
+
115
+ export function GetModelReadmeAt200ResponseToJSONTyped(value?: GetModelReadmeAt200Response | null, ignoreDiscriminator: boolean = false): any {
116
+ if (value == null) {
117
+ return value;
118
+ }
119
+
120
+ return {
121
+
122
+ 'data': ReadmeAtToJSON(value['data']),
123
+ 'cost': value['cost'],
124
+ 'credits_remaining': value['credits_remaining'],
125
+ 'rate_limit_limit': value['rate_limit_limit'],
126
+ 'rate_limit_remaining': value['rate_limit_remaining'],
127
+ 'rate_limit_reset': value['rate_limit_reset'],
128
+ 'metering': value['metering'],
129
+ 'request_id': value['request_id'],
130
+ };
131
+ }
132
+
@@ -0,0 +1,93 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * abliteration.org Public API
5
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface HistoricalDeletion
20
+ */
21
+ export interface HistoricalDeletion {
22
+ /**
23
+ *
24
+ */
25
+ id?: string;
26
+ /**
27
+ * ISO YYYY-MM of the earliest snapshot the model appears in.
28
+ */
29
+ first_seen_month?: string;
30
+ /**
31
+ * ISO YYYY-MM of the final snapshot before deletion.
32
+ */
33
+ last_seen_month?: string;
34
+ /**
35
+ * Whole months between first and last observation.
36
+ */
37
+ total_months_alive?: number;
38
+ /**
39
+ * Highest downloads count observed during the model's lifetime.
40
+ */
41
+ peak_downloads?: number;
42
+ /**
43
+ * ISO-8601 timestamp the model was originally created on HF (from the frozen snapshot).
44
+ */
45
+ created_at?: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the HistoricalDeletion interface.
50
+ */
51
+ export function instanceOfHistoricalDeletion(value: object): value is HistoricalDeletion {
52
+ return true;
53
+ }
54
+
55
+ export function HistoricalDeletionFromJSON(json: any): HistoricalDeletion {
56
+ return HistoricalDeletionFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function HistoricalDeletionFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistoricalDeletion {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'id': json['id'] == null ? undefined : json['id'],
66
+ 'first_seen_month': json['first_seen_month'] == null ? undefined : json['first_seen_month'],
67
+ 'last_seen_month': json['last_seen_month'] == null ? undefined : json['last_seen_month'],
68
+ 'total_months_alive': json['total_months_alive'] == null ? undefined : json['total_months_alive'],
69
+ 'peak_downloads': json['peak_downloads'] == null ? undefined : json['peak_downloads'],
70
+ 'created_at': json['created_at'] == null ? undefined : json['created_at'],
71
+ };
72
+ }
73
+
74
+ export function HistoricalDeletionToJSON(json: any): HistoricalDeletion {
75
+ return HistoricalDeletionToJSONTyped(json, false);
76
+ }
77
+
78
+ export function HistoricalDeletionToJSONTyped(value?: HistoricalDeletion | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'id': value['id'],
86
+ 'first_seen_month': value['first_seen_month'],
87
+ 'last_seen_month': value['last_seen_month'],
88
+ 'total_months_alive': value['total_months_alive'],
89
+ 'peak_downloads': value['peak_downloads'],
90
+ 'created_at': value['created_at'],
91
+ };
92
+ }
93
+
@@ -0,0 +1,132 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * abliteration.org Public API
5
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { HistoricalDeletion } from './HistoricalDeletion';
17
+ import {
18
+ HistoricalDeletionFromJSON,
19
+ HistoricalDeletionFromJSONTyped,
20
+ HistoricalDeletionToJSON,
21
+ HistoricalDeletionToJSONTyped,
22
+ } from './HistoricalDeletion';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ListHistoricalDeletions200Response
28
+ */
29
+ export interface ListHistoricalDeletions200Response {
30
+ /**
31
+ *
32
+ */
33
+ data: Array<HistoricalDeletion>;
34
+ /**
35
+ * Credits this call costs.
36
+ */
37
+ cost: number;
38
+ /**
39
+ * Wallet balance after the call. Unchanged while metering is preview.
40
+ */
41
+ credits_remaining: number;
42
+ /**
43
+ * Ceiling for the current window. Also returned as X-RateLimit-Limit.
44
+ */
45
+ rate_limit_limit: number;
46
+ /**
47
+ * Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
48
+ */
49
+ rate_limit_remaining: number;
50
+ /**
51
+ * Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
52
+ */
53
+ rate_limit_reset: number;
54
+ /**
55
+ * Whether cost was actually deducted.
56
+ */
57
+ metering: ListHistoricalDeletions200ResponseMeteringEnum;
58
+ /**
59
+ * Also returned in the x-request-id header.
60
+ */
61
+ request_id: string;
62
+ }
63
+
64
+
65
+ /**
66
+ * @export
67
+ */
68
+ export const ListHistoricalDeletions200ResponseMeteringEnum = {
69
+ Preview: 'preview',
70
+ Billed: 'billed',
71
+ } as const;
72
+ export type ListHistoricalDeletions200ResponseMeteringEnum = typeof ListHistoricalDeletions200ResponseMeteringEnum[keyof typeof ListHistoricalDeletions200ResponseMeteringEnum];
73
+
74
+
75
+ /**
76
+ * Check if a given object implements the ListHistoricalDeletions200Response interface.
77
+ */
78
+ export function instanceOfListHistoricalDeletions200Response(value: object): value is ListHistoricalDeletions200Response {
79
+ if (!('data' in value) || value['data'] === undefined) return false;
80
+ if (!('cost' in value) || value['cost'] === undefined) return false;
81
+ if (!('credits_remaining' in value) || value['credits_remaining'] === undefined) return false;
82
+ if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined) return false;
83
+ if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined) return false;
84
+ if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined) return false;
85
+ if (!('metering' in value) || value['metering'] === undefined) return false;
86
+ if (!('request_id' in value) || value['request_id'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function ListHistoricalDeletions200ResponseFromJSON(json: any): ListHistoricalDeletions200Response {
91
+ return ListHistoricalDeletions200ResponseFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function ListHistoricalDeletions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListHistoricalDeletions200Response {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'data': ((json['data'] as Array<any>).map(HistoricalDeletionFromJSON)),
101
+ 'cost': json['cost'],
102
+ 'credits_remaining': json['credits_remaining'],
103
+ 'rate_limit_limit': json['rate_limit_limit'],
104
+ 'rate_limit_remaining': json['rate_limit_remaining'],
105
+ 'rate_limit_reset': json['rate_limit_reset'],
106
+ 'metering': json['metering'],
107
+ 'request_id': json['request_id'],
108
+ };
109
+ }
110
+
111
+ export function ListHistoricalDeletions200ResponseToJSON(json: any): ListHistoricalDeletions200Response {
112
+ return ListHistoricalDeletions200ResponseToJSONTyped(json, false);
113
+ }
114
+
115
+ export function ListHistoricalDeletions200ResponseToJSONTyped(value?: ListHistoricalDeletions200Response | null, ignoreDiscriminator: boolean = false): any {
116
+ if (value == null) {
117
+ return value;
118
+ }
119
+
120
+ return {
121
+
122
+ 'data': ((value['data'] as Array<any>).map(HistoricalDeletionToJSON)),
123
+ 'cost': value['cost'],
124
+ 'credits_remaining': value['credits_remaining'],
125
+ 'rate_limit_limit': value['rate_limit_limit'],
126
+ 'rate_limit_remaining': value['rate_limit_remaining'],
127
+ 'rate_limit_reset': value['rate_limit_reset'],
128
+ 'metering': value['metering'],
129
+ 'request_id': value['request_id'],
130
+ };
131
+ }
132
+