@abliteration/sdk 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +16 -0
- package/README.md +11 -0
- package/dist/apis/ModelsApi.d.ts +200 -8
- package/dist/apis/ModelsApi.js +193 -5
- package/dist/esm/apis/ModelsApi.d.ts +200 -8
- package/dist/esm/apis/ModelsApi.js +192 -4
- package/dist/esm/models/DeletionSummary.d.ts +52 -0
- package/dist/esm/models/DeletionSummary.js +53 -0
- package/dist/esm/models/DeletionSummaryTimelineInner.d.ts +34 -0
- package/dist/esm/models/DeletionSummaryTimelineInner.js +43 -0
- package/dist/esm/models/DeletionSummaryTopByDownloadsInner.d.ts +42 -0
- package/dist/esm/models/DeletionSummaryTopByDownloadsInner.js +47 -0
- package/dist/esm/models/DelistedModel.d.ts +54 -0
- package/dist/esm/models/DelistedModel.js +53 -0
- package/dist/esm/models/GetHistoricalDeletionSummary200Response.d.ts +67 -0
- package/dist/esm/models/GetHistoricalDeletionSummary200Response.js +79 -0
- package/dist/esm/models/HistoricalDeletion.d.ts +50 -0
- package/dist/esm/models/HistoricalDeletion.js +51 -0
- package/dist/esm/models/ListDelistedModels200Response.d.ts +67 -0
- package/dist/esm/models/ListDelistedModels200Response.js +79 -0
- package/dist/esm/models/ListHistoricalDeletions200Response.d.ts +67 -0
- package/dist/esm/models/ListHistoricalDeletions200Response.js +79 -0
- package/dist/esm/models/ModelDetail.d.ts +8 -0
- package/dist/esm/models/ModelDetail.js +2 -2
- package/dist/esm/models/ModelSummary.d.ts +8 -0
- package/dist/esm/models/ModelSummary.js +4 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/DeletionSummary.d.ts +52 -0
- package/dist/models/DeletionSummary.js +60 -0
- package/dist/models/DeletionSummaryTimelineInner.d.ts +34 -0
- package/dist/models/DeletionSummaryTimelineInner.js +50 -0
- package/dist/models/DeletionSummaryTopByDownloadsInner.d.ts +42 -0
- package/dist/models/DeletionSummaryTopByDownloadsInner.js +54 -0
- package/dist/models/DelistedModel.d.ts +54 -0
- package/dist/models/DelistedModel.js +60 -0
- package/dist/models/GetHistoricalDeletionSummary200Response.d.ts +67 -0
- package/dist/models/GetHistoricalDeletionSummary200Response.js +87 -0
- package/dist/models/HistoricalDeletion.d.ts +50 -0
- package/dist/models/HistoricalDeletion.js +58 -0
- package/dist/models/ListDelistedModels200Response.d.ts +67 -0
- package/dist/models/ListDelistedModels200Response.js +87 -0
- package/dist/models/ListHistoricalDeletions200Response.d.ts +67 -0
- package/dist/models/ListHistoricalDeletions200Response.js +87 -0
- package/dist/models/ModelDetail.d.ts +8 -0
- package/dist/models/ModelDetail.js +2 -2
- package/dist/models/ModelSummary.d.ts +8 -0
- package/dist/models/ModelSummary.js +4 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/DeletionSummary.md +45 -0
- package/docs/DeletionSummaryTimelineInner.md +36 -0
- package/docs/DeletionSummaryTopByDownloadsInner.md +40 -0
- package/docs/DelistedModel.md +46 -0
- package/docs/GetHistoricalDeletionSummary200Response.md +48 -0
- package/docs/HistoricalDeletion.md +44 -0
- package/docs/ListDelistedModels200Response.md +48 -0
- package/docs/ListHistoricalDeletions200Response.md +48 -0
- package/docs/ModelDetail.md +4 -0
- package/docs/ModelSummary.md +4 -0
- package/docs/ModelsApi.md +247 -3
- package/package.json +1 -1
- package/src/apis/ModelsApi.ts +362 -8
- package/src/models/DeletionSummary.ts +108 -0
- package/src/models/DeletionSummaryTimelineInner.ts +69 -0
- package/src/models/DeletionSummaryTopByDownloadsInner.ts +81 -0
- package/src/models/DelistedModel.ts +99 -0
- package/src/models/GetHistoricalDeletionSummary200Response.ts +132 -0
- package/src/models/HistoricalDeletion.ts +93 -0
- package/src/models/ListDelistedModels200Response.ts +132 -0
- package/src/models/ListHistoricalDeletions200Response.ts +132 -0
- package/src/models/ModelDetail.ts +12 -0
- package/src/models/ModelSummary.ts +12 -0
- package/src/models/index.ts +8 -0
|
@@ -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,99 @@
|
|
|
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 DelistedModel
|
|
20
|
+
*/
|
|
21
|
+
export interface DelistedModel {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
id?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
author?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
family?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
params_b?: number | null;
|
|
38
|
+
/**
|
|
39
|
+
* Downloads at the moment the model was last visible on HF. Not a live counter.
|
|
40
|
+
*/
|
|
41
|
+
downloads?: number;
|
|
42
|
+
/**
|
|
43
|
+
* ISO-8601 timestamp of the last successful Hub observation. Approximately when the model died.
|
|
44
|
+
*/
|
|
45
|
+
last_seen_at?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Whole days between last_seen_at and now, computed server-side for convenience.
|
|
48
|
+
*/
|
|
49
|
+
days_since_gone?: number;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the DelistedModel interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfDelistedModel(value: object): value is DelistedModel {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function DelistedModelFromJSON(json: any): DelistedModel {
|
|
60
|
+
return DelistedModelFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function DelistedModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): DelistedModel {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
70
|
+
'author': json['author'] == null ? undefined : json['author'],
|
|
71
|
+
'family': json['family'] === undefined ? undefined : json['family'] === null ? null : json['family'],
|
|
72
|
+
'params_b': json['params_b'] === undefined ? undefined : json['params_b'] === null ? null : json['params_b'],
|
|
73
|
+
'downloads': json['downloads'] == null ? undefined : json['downloads'],
|
|
74
|
+
'last_seen_at': json['last_seen_at'] == null ? undefined : json['last_seen_at'],
|
|
75
|
+
'days_since_gone': json['days_since_gone'] == null ? undefined : json['days_since_gone'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function DelistedModelToJSON(json: any): DelistedModel {
|
|
80
|
+
return DelistedModelToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function DelistedModelToJSONTyped(value?: DelistedModel | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'id': value['id'],
|
|
91
|
+
'author': value['author'],
|
|
92
|
+
'family': value['family'],
|
|
93
|
+
'params_b': value['params_b'],
|
|
94
|
+
'downloads': value['downloads'],
|
|
95
|
+
'last_seen_at': value['last_seen_at'],
|
|
96
|
+
'days_since_gone': value['days_since_gone'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -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,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 { DelistedModel } from './DelistedModel';
|
|
17
|
+
import {
|
|
18
|
+
DelistedModelFromJSON,
|
|
19
|
+
DelistedModelFromJSONTyped,
|
|
20
|
+
DelistedModelToJSON,
|
|
21
|
+
DelistedModelToJSONTyped,
|
|
22
|
+
} from './DelistedModel';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ListDelistedModels200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ListDelistedModels200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
data: Array<DelistedModel>;
|
|
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: ListDelistedModels200ResponseMeteringEnum;
|
|
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 ListDelistedModels200ResponseMeteringEnum = {
|
|
69
|
+
Preview: 'preview',
|
|
70
|
+
Billed: 'billed',
|
|
71
|
+
} as const;
|
|
72
|
+
export type ListDelistedModels200ResponseMeteringEnum = typeof ListDelistedModels200ResponseMeteringEnum[keyof typeof ListDelistedModels200ResponseMeteringEnum];
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the ListDelistedModels200Response interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfListDelistedModels200Response(value: object): value is ListDelistedModels200Response {
|
|
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 ListDelistedModels200ResponseFromJSON(json: any): ListDelistedModels200Response {
|
|
91
|
+
return ListDelistedModels200ResponseFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ListDelistedModels200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDelistedModels200Response {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'data': ((json['data'] as Array<any>).map(DelistedModelFromJSON)),
|
|
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 ListDelistedModels200ResponseToJSON(json: any): ListDelistedModels200Response {
|
|
112
|
+
return ListDelistedModels200ResponseToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function ListDelistedModels200ResponseToJSONTyped(value?: ListDelistedModels200Response | 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(DelistedModelToJSON)),
|
|
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
|
+
|