@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,50 @@
|
|
|
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 HistoricalDeletion
|
|
16
|
+
*/
|
|
17
|
+
export interface HistoricalDeletion {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* ISO YYYY-MM of the earliest snapshot the model appears in.
|
|
24
|
+
*/
|
|
25
|
+
first_seen_month?: string;
|
|
26
|
+
/**
|
|
27
|
+
* ISO YYYY-MM of the final snapshot before deletion.
|
|
28
|
+
*/
|
|
29
|
+
last_seen_month?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Whole months between first and last observation.
|
|
32
|
+
*/
|
|
33
|
+
total_months_alive?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Highest downloads count observed during the model's lifetime.
|
|
36
|
+
*/
|
|
37
|
+
peak_downloads?: number;
|
|
38
|
+
/**
|
|
39
|
+
* ISO-8601 timestamp the model was originally created on HF (from the frozen snapshot).
|
|
40
|
+
*/
|
|
41
|
+
created_at?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the HistoricalDeletion interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfHistoricalDeletion(value: object): value is HistoricalDeletion;
|
|
47
|
+
export declare function HistoricalDeletionFromJSON(json: any): HistoricalDeletion;
|
|
48
|
+
export declare function HistoricalDeletionFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistoricalDeletion;
|
|
49
|
+
export declare function HistoricalDeletionToJSON(json: any): HistoricalDeletion;
|
|
50
|
+
export declare function HistoricalDeletionToJSONTyped(value?: HistoricalDeletion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfHistoricalDeletion = instanceOfHistoricalDeletion;
|
|
17
|
+
exports.HistoricalDeletionFromJSON = HistoricalDeletionFromJSON;
|
|
18
|
+
exports.HistoricalDeletionFromJSONTyped = HistoricalDeletionFromJSONTyped;
|
|
19
|
+
exports.HistoricalDeletionToJSON = HistoricalDeletionToJSON;
|
|
20
|
+
exports.HistoricalDeletionToJSONTyped = HistoricalDeletionToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the HistoricalDeletion interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfHistoricalDeletion(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function HistoricalDeletionFromJSON(json) {
|
|
28
|
+
return HistoricalDeletionFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function HistoricalDeletionFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'first_seen_month': json['first_seen_month'] == null ? undefined : json['first_seen_month'],
|
|
37
|
+
'last_seen_month': json['last_seen_month'] == null ? undefined : json['last_seen_month'],
|
|
38
|
+
'total_months_alive': json['total_months_alive'] == null ? undefined : json['total_months_alive'],
|
|
39
|
+
'peak_downloads': json['peak_downloads'] == null ? undefined : json['peak_downloads'],
|
|
40
|
+
'created_at': json['created_at'] == null ? undefined : json['created_at'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function HistoricalDeletionToJSON(json) {
|
|
44
|
+
return HistoricalDeletionToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function HistoricalDeletionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'first_seen_month': value['first_seen_month'],
|
|
53
|
+
'last_seen_month': value['last_seen_month'],
|
|
54
|
+
'total_months_alive': value['total_months_alive'],
|
|
55
|
+
'peak_downloads': value['peak_downloads'],
|
|
56
|
+
'created_at': value['created_at'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -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 { DelistedModel } from './DelistedModel';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListDelistedModels200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ListDelistedModels200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
data: Array<DelistedModel>;
|
|
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: ListDelistedModels200ResponseMeteringEnum;
|
|
47
|
+
/**
|
|
48
|
+
* Also returned in the x-request-id header.
|
|
49
|
+
*/
|
|
50
|
+
request_id: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const ListDelistedModels200ResponseMeteringEnum: {
|
|
56
|
+
readonly Preview: "preview";
|
|
57
|
+
readonly Billed: "billed";
|
|
58
|
+
};
|
|
59
|
+
export type ListDelistedModels200ResponseMeteringEnum = typeof ListDelistedModels200ResponseMeteringEnum[keyof typeof ListDelistedModels200ResponseMeteringEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ListDelistedModels200Response interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfListDelistedModels200Response(value: object): value is ListDelistedModels200Response;
|
|
64
|
+
export declare function ListDelistedModels200ResponseFromJSON(json: any): ListDelistedModels200Response;
|
|
65
|
+
export declare function ListDelistedModels200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDelistedModels200Response;
|
|
66
|
+
export declare function ListDelistedModels200ResponseToJSON(json: any): ListDelistedModels200Response;
|
|
67
|
+
export declare function ListDelistedModels200ResponseToJSONTyped(value?: ListDelistedModels200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,87 @@
|
|
|
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.ListDelistedModels200ResponseMeteringEnum = void 0;
|
|
17
|
+
exports.instanceOfListDelistedModels200Response = instanceOfListDelistedModels200Response;
|
|
18
|
+
exports.ListDelistedModels200ResponseFromJSON = ListDelistedModels200ResponseFromJSON;
|
|
19
|
+
exports.ListDelistedModels200ResponseFromJSONTyped = ListDelistedModels200ResponseFromJSONTyped;
|
|
20
|
+
exports.ListDelistedModels200ResponseToJSON = ListDelistedModels200ResponseToJSON;
|
|
21
|
+
exports.ListDelistedModels200ResponseToJSONTyped = ListDelistedModels200ResponseToJSONTyped;
|
|
22
|
+
const DelistedModel_1 = require("./DelistedModel");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ListDelistedModels200ResponseMeteringEnum = {
|
|
27
|
+
Preview: 'preview',
|
|
28
|
+
Billed: 'billed',
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ListDelistedModels200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfListDelistedModels200Response(value) {
|
|
34
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('cost' in value) || value['cost'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('credits_remaining' in value) || value['credits_remaining'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('metering' in value) || value['metering'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('request_id' in value) || value['request_id'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function ListDelistedModels200ResponseFromJSON(json) {
|
|
53
|
+
return ListDelistedModels200ResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function ListDelistedModels200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'data': (json['data'].map(DelistedModel_1.DelistedModelFromJSON)),
|
|
61
|
+
'cost': json['cost'],
|
|
62
|
+
'credits_remaining': json['credits_remaining'],
|
|
63
|
+
'rate_limit_limit': json['rate_limit_limit'],
|
|
64
|
+
'rate_limit_remaining': json['rate_limit_remaining'],
|
|
65
|
+
'rate_limit_reset': json['rate_limit_reset'],
|
|
66
|
+
'metering': json['metering'],
|
|
67
|
+
'request_id': json['request_id'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function ListDelistedModels200ResponseToJSON(json) {
|
|
71
|
+
return ListDelistedModels200ResponseToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function ListDelistedModels200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'data': (value['data'].map(DelistedModel_1.DelistedModelToJSON)),
|
|
79
|
+
'cost': value['cost'],
|
|
80
|
+
'credits_remaining': value['credits_remaining'],
|
|
81
|
+
'rate_limit_limit': value['rate_limit_limit'],
|
|
82
|
+
'rate_limit_remaining': value['rate_limit_remaining'],
|
|
83
|
+
'rate_limit_reset': value['rate_limit_reset'],
|
|
84
|
+
'metering': value['metering'],
|
|
85
|
+
'request_id': value['request_id'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -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 { HistoricalDeletion } from './HistoricalDeletion';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListHistoricalDeletions200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ListHistoricalDeletions200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
data: Array<HistoricalDeletion>;
|
|
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: ListHistoricalDeletions200ResponseMeteringEnum;
|
|
47
|
+
/**
|
|
48
|
+
* Also returned in the x-request-id header.
|
|
49
|
+
*/
|
|
50
|
+
request_id: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const ListHistoricalDeletions200ResponseMeteringEnum: {
|
|
56
|
+
readonly Preview: "preview";
|
|
57
|
+
readonly Billed: "billed";
|
|
58
|
+
};
|
|
59
|
+
export type ListHistoricalDeletions200ResponseMeteringEnum = typeof ListHistoricalDeletions200ResponseMeteringEnum[keyof typeof ListHistoricalDeletions200ResponseMeteringEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ListHistoricalDeletions200Response interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfListHistoricalDeletions200Response(value: object): value is ListHistoricalDeletions200Response;
|
|
64
|
+
export declare function ListHistoricalDeletions200ResponseFromJSON(json: any): ListHistoricalDeletions200Response;
|
|
65
|
+
export declare function ListHistoricalDeletions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListHistoricalDeletions200Response;
|
|
66
|
+
export declare function ListHistoricalDeletions200ResponseToJSON(json: any): ListHistoricalDeletions200Response;
|
|
67
|
+
export declare function ListHistoricalDeletions200ResponseToJSONTyped(value?: ListHistoricalDeletions200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,87 @@
|
|
|
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.ListHistoricalDeletions200ResponseMeteringEnum = void 0;
|
|
17
|
+
exports.instanceOfListHistoricalDeletions200Response = instanceOfListHistoricalDeletions200Response;
|
|
18
|
+
exports.ListHistoricalDeletions200ResponseFromJSON = ListHistoricalDeletions200ResponseFromJSON;
|
|
19
|
+
exports.ListHistoricalDeletions200ResponseFromJSONTyped = ListHistoricalDeletions200ResponseFromJSONTyped;
|
|
20
|
+
exports.ListHistoricalDeletions200ResponseToJSON = ListHistoricalDeletions200ResponseToJSON;
|
|
21
|
+
exports.ListHistoricalDeletions200ResponseToJSONTyped = ListHistoricalDeletions200ResponseToJSONTyped;
|
|
22
|
+
const HistoricalDeletion_1 = require("./HistoricalDeletion");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ListHistoricalDeletions200ResponseMeteringEnum = {
|
|
27
|
+
Preview: 'preview',
|
|
28
|
+
Billed: 'billed',
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ListHistoricalDeletions200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfListHistoricalDeletions200Response(value) {
|
|
34
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('cost' in value) || value['cost'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('credits_remaining' in value) || value['credits_remaining'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('metering' in value) || value['metering'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('request_id' in value) || value['request_id'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function ListHistoricalDeletions200ResponseFromJSON(json) {
|
|
53
|
+
return ListHistoricalDeletions200ResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function ListHistoricalDeletions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'data': (json['data'].map(HistoricalDeletion_1.HistoricalDeletionFromJSON)),
|
|
61
|
+
'cost': json['cost'],
|
|
62
|
+
'credits_remaining': json['credits_remaining'],
|
|
63
|
+
'rate_limit_limit': json['rate_limit_limit'],
|
|
64
|
+
'rate_limit_remaining': json['rate_limit_remaining'],
|
|
65
|
+
'rate_limit_reset': json['rate_limit_reset'],
|
|
66
|
+
'metering': json['metering'],
|
|
67
|
+
'request_id': json['request_id'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function ListHistoricalDeletions200ResponseToJSON(json) {
|
|
71
|
+
return ListHistoricalDeletions200ResponseToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function ListHistoricalDeletions200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'data': (value['data'].map(HistoricalDeletion_1.HistoricalDeletionToJSON)),
|
|
79
|
+
'cost': value['cost'],
|
|
80
|
+
'credits_remaining': value['credits_remaining'],
|
|
81
|
+
'rate_limit_limit': value['rate_limit_limit'],
|
|
82
|
+
'rate_limit_remaining': value['rate_limit_remaining'],
|
|
83
|
+
'rate_limit_reset': value['rate_limit_reset'],
|
|
84
|
+
'metering': value['metering'],
|
|
85
|
+
'request_id': value['request_id'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -105,6 +105,14 @@ export interface ModelDetail {
|
|
|
105
105
|
*
|
|
106
106
|
*/
|
|
107
107
|
last_seen_at?: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* 0/1 flag. `1` means HF no longer serves this model — the response is the last state we recorded.
|
|
110
|
+
*/
|
|
111
|
+
is_delisted?: number | null;
|
|
112
|
+
/**
|
|
113
|
+
* Whole days between last_seen_at and now. `null` unless is_delisted=1.
|
|
114
|
+
*/
|
|
115
|
+
days_since_gone?: number | null;
|
|
108
116
|
/**
|
|
109
117
|
*
|
|
110
118
|
*/
|
|
@@ -32,7 +32,7 @@ function ModelDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
|
-
return Object.assign(Object.assign({}, json), { 'id': json['id'] == null ? undefined : json['id'], 'author': json['author'] == null ? undefined : json['author'], 'name': json['name'] == null ? undefined : json['name'], 'primary_method': json['primary_method'] === undefined ? undefined : json['primary_method'] === null ? null : json['primary_method'], 'secondary_methods': json['secondary_methods'] === undefined ? undefined : json['secondary_methods'] === null ? null : json['secondary_methods'], 'confidence': json['confidence'] === undefined ? undefined : json['confidence'] === null ? null : json['confidence'], 'classification_evidence': json['classification_evidence'] === undefined ? undefined : json['classification_evidence'] === null ? null : json['classification_evidence'], 'classifier_version': json['classifier_version'] === undefined ? undefined : json['classifier_version'] === null ? null : json['classifier_version'], 'classified_at': json['classified_at'] === undefined ? undefined : json['classified_at'] === null ? null : json['classified_at'], 'family': json['family'] === undefined ? undefined : json['family'] === null ? null : json['family'], 'params_b': json['params_b'] === undefined ? undefined : json['params_b'] === null ? null : json['params_b'], 'is_gguf': json['is_gguf'] === undefined ? undefined : json['is_gguf'] === null ? null : json['is_gguf'], 'is_moe': json['is_moe'] === undefined ? undefined : json['is_moe'] === null ? null : json['is_moe'], 'is_multimodal': json['is_multimodal'] === undefined ? undefined : json['is_multimodal'] === null ? null : json['is_multimodal'], 'is_image_gen': json['is_image_gen'] === undefined ? undefined : json['is_image_gen'] === null ? null : json['is_image_gen'], 'is_second_order': json['is_second_order'] === undefined ? undefined : json['is_second_order'] === null ? null : json['is_second_order'], 'downloads': json['downloads'] === undefined ? undefined : json['downloads'] === null ? null : json['downloads'], 'likes': json['likes'] === undefined ? undefined : json['likes'] === null ? null : json['likes'], 'created_at': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : json['created_at'], 'last_modified': json['last_modified'] === undefined ? undefined : json['last_modified'] === null ? null : json['last_modified'], 'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'], 'last_seen_at': json['last_seen_at'] === undefined ? undefined : json['last_seen_at'] === null ? null : json['last_seen_at'], 'readme_text': json['readme_text'] === undefined ? undefined : json['readme_text'] === null ? null : json['readme_text'], 'readme_status': json['readme_status'] === undefined ? undefined : json['readme_status'] === null ? null : json['readme_status'], 'tags': json['tags'] === undefined ? undefined : json['tags'] === null ? null : json['tags'], 'pipeline_tag': json['pipeline_tag'] === undefined ? undefined : json['pipeline_tag'] === null ? null : json['pipeline_tag'], 'library_name': json['library_name'] === undefined ? undefined : json['library_name'] === null ? null : json['library_name'], 'yaml_base_model': json['yaml_base_model'] === undefined ? undefined : json['yaml_base_model'] === null ? null : json['yaml_base_model'], 'yaml_language': json['yaml_language'] === undefined ? undefined : json['yaml_language'] === null ? null : json['yaml_language'], 'yaml_datasets': json['yaml_datasets'] === undefined ? undefined : json['yaml_datasets'] === null ? null : json['yaml_datasets'], 'yaml_license': json['yaml_license'] === undefined ? undefined : json['yaml_license'] === null ? null : json['yaml_license'], 'yaml_tags': json['yaml_tags'] === undefined ? undefined : json['yaml_tags'] === null ? null : json['yaml_tags'], 'files_count': json['files_count'] === undefined ? undefined : json['files_count'] === null ? null : json['files_count'], 'total_size_bytes': json['total_size_bytes'] === undefined ? undefined : json['total_size_bytes'] === null ? null : json['total_size_bytes'], 'largest_file_bytes': json['largest_file_bytes'] === undefined ? undefined : json['largest_file_bytes'] === null ? null : json['largest_file_bytes'], 'smallest_model_bytes': json['smallest_model_bytes'] === undefined ? undefined : json['smallest_model_bytes'] === null ? null : json['smallest_model_bytes'], 'quantizations': json['quantizations'] === undefined ? undefined : json['quantizations'] === null ? null : json['quantizations'], 'has_mmproj': json['has_mmproj'] === undefined ? undefined : json['has_mmproj'] === null ? null : json['has_mmproj'], 'hub_downloads_all_time': json['hub_downloads_all_time'] === undefined ? undefined : json['hub_downloads_all_time'] === null ? null : json['hub_downloads_all_time'], 'hub_trending_score': json['hub_trending_score'] === undefined ? undefined : json['hub_trending_score'] === null ? null : json['hub_trending_score'], 'hub_real_params_m': json['hub_real_params_m'] === undefined ? undefined : json['hub_real_params_m'] === null ? null : json['hub_real_params_m'], 'hub_context_length': json['hub_context_length'] === undefined ? undefined : json['hub_context_length'] === null ? null : json['hub_context_length'], 'hub_siblings_count': json['hub_siblings_count'] === undefined ? undefined : json['hub_siblings_count'] === null ? null : json['hub_siblings_count'], 'hub_provider_count': json['hub_provider_count'] === undefined ? undefined : json['hub_provider_count'] === null ? null : json['hub_provider_count'], 'hub_provider_names': json['hub_provider_names'] === undefined ? undefined : json['hub_provider_names'] === null ? null : json['hub_provider_names'], 'hub_enriched_at': json['hub_enriched_at'] === undefined ? undefined : json['hub_enriched_at'] === null ? null : json['hub_enriched_at'], 'files': json['files'] == null ? undefined : json['files'], 'benchmarks': json['benchmarks'] == null ? undefined : json['benchmarks'], 'author_summary': json['author_summary'] === undefined ? undefined : json['author_summary'] === null ? null : (0, Author_1.AuthorFromJSON)(json['author_summary']) });
|
|
35
|
+
return Object.assign(Object.assign({}, json), { 'id': json['id'] == null ? undefined : json['id'], 'author': json['author'] == null ? undefined : json['author'], 'name': json['name'] == null ? undefined : json['name'], 'primary_method': json['primary_method'] === undefined ? undefined : json['primary_method'] === null ? null : json['primary_method'], 'secondary_methods': json['secondary_methods'] === undefined ? undefined : json['secondary_methods'] === null ? null : json['secondary_methods'], 'confidence': json['confidence'] === undefined ? undefined : json['confidence'] === null ? null : json['confidence'], 'classification_evidence': json['classification_evidence'] === undefined ? undefined : json['classification_evidence'] === null ? null : json['classification_evidence'], 'classifier_version': json['classifier_version'] === undefined ? undefined : json['classifier_version'] === null ? null : json['classifier_version'], 'classified_at': json['classified_at'] === undefined ? undefined : json['classified_at'] === null ? null : json['classified_at'], 'family': json['family'] === undefined ? undefined : json['family'] === null ? null : json['family'], 'params_b': json['params_b'] === undefined ? undefined : json['params_b'] === null ? null : json['params_b'], 'is_gguf': json['is_gguf'] === undefined ? undefined : json['is_gguf'] === null ? null : json['is_gguf'], 'is_moe': json['is_moe'] === undefined ? undefined : json['is_moe'] === null ? null : json['is_moe'], 'is_multimodal': json['is_multimodal'] === undefined ? undefined : json['is_multimodal'] === null ? null : json['is_multimodal'], 'is_image_gen': json['is_image_gen'] === undefined ? undefined : json['is_image_gen'] === null ? null : json['is_image_gen'], 'is_second_order': json['is_second_order'] === undefined ? undefined : json['is_second_order'] === null ? null : json['is_second_order'], 'downloads': json['downloads'] === undefined ? undefined : json['downloads'] === null ? null : json['downloads'], 'likes': json['likes'] === undefined ? undefined : json['likes'] === null ? null : json['likes'], 'created_at': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : json['created_at'], 'last_modified': json['last_modified'] === undefined ? undefined : json['last_modified'] === null ? null : json['last_modified'], 'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'], 'last_seen_at': json['last_seen_at'] === undefined ? undefined : json['last_seen_at'] === null ? null : json['last_seen_at'], 'is_delisted': json['is_delisted'] === undefined ? undefined : json['is_delisted'] === null ? null : json['is_delisted'], 'days_since_gone': json['days_since_gone'] === undefined ? undefined : json['days_since_gone'] === null ? null : json['days_since_gone'], 'readme_text': json['readme_text'] === undefined ? undefined : json['readme_text'] === null ? null : json['readme_text'], 'readme_status': json['readme_status'] === undefined ? undefined : json['readme_status'] === null ? null : json['readme_status'], 'tags': json['tags'] === undefined ? undefined : json['tags'] === null ? null : json['tags'], 'pipeline_tag': json['pipeline_tag'] === undefined ? undefined : json['pipeline_tag'] === null ? null : json['pipeline_tag'], 'library_name': json['library_name'] === undefined ? undefined : json['library_name'] === null ? null : json['library_name'], 'yaml_base_model': json['yaml_base_model'] === undefined ? undefined : json['yaml_base_model'] === null ? null : json['yaml_base_model'], 'yaml_language': json['yaml_language'] === undefined ? undefined : json['yaml_language'] === null ? null : json['yaml_language'], 'yaml_datasets': json['yaml_datasets'] === undefined ? undefined : json['yaml_datasets'] === null ? null : json['yaml_datasets'], 'yaml_license': json['yaml_license'] === undefined ? undefined : json['yaml_license'] === null ? null : json['yaml_license'], 'yaml_tags': json['yaml_tags'] === undefined ? undefined : json['yaml_tags'] === null ? null : json['yaml_tags'], 'files_count': json['files_count'] === undefined ? undefined : json['files_count'] === null ? null : json['files_count'], 'total_size_bytes': json['total_size_bytes'] === undefined ? undefined : json['total_size_bytes'] === null ? null : json['total_size_bytes'], 'largest_file_bytes': json['largest_file_bytes'] === undefined ? undefined : json['largest_file_bytes'] === null ? null : json['largest_file_bytes'], 'smallest_model_bytes': json['smallest_model_bytes'] === undefined ? undefined : json['smallest_model_bytes'] === null ? null : json['smallest_model_bytes'], 'quantizations': json['quantizations'] === undefined ? undefined : json['quantizations'] === null ? null : json['quantizations'], 'has_mmproj': json['has_mmproj'] === undefined ? undefined : json['has_mmproj'] === null ? null : json['has_mmproj'], 'hub_downloads_all_time': json['hub_downloads_all_time'] === undefined ? undefined : json['hub_downloads_all_time'] === null ? null : json['hub_downloads_all_time'], 'hub_trending_score': json['hub_trending_score'] === undefined ? undefined : json['hub_trending_score'] === null ? null : json['hub_trending_score'], 'hub_real_params_m': json['hub_real_params_m'] === undefined ? undefined : json['hub_real_params_m'] === null ? null : json['hub_real_params_m'], 'hub_context_length': json['hub_context_length'] === undefined ? undefined : json['hub_context_length'] === null ? null : json['hub_context_length'], 'hub_siblings_count': json['hub_siblings_count'] === undefined ? undefined : json['hub_siblings_count'] === null ? null : json['hub_siblings_count'], 'hub_provider_count': json['hub_provider_count'] === undefined ? undefined : json['hub_provider_count'] === null ? null : json['hub_provider_count'], 'hub_provider_names': json['hub_provider_names'] === undefined ? undefined : json['hub_provider_names'] === null ? null : json['hub_provider_names'], 'hub_enriched_at': json['hub_enriched_at'] === undefined ? undefined : json['hub_enriched_at'] === null ? null : json['hub_enriched_at'], 'files': json['files'] == null ? undefined : json['files'], 'benchmarks': json['benchmarks'] == null ? undefined : json['benchmarks'], 'author_summary': json['author_summary'] === undefined ? undefined : json['author_summary'] === null ? null : (0, Author_1.AuthorFromJSON)(json['author_summary']) });
|
|
36
36
|
}
|
|
37
37
|
function ModelDetailToJSON(json) {
|
|
38
38
|
return ModelDetailToJSONTyped(json, false);
|
|
@@ -41,5 +41,5 @@ function ModelDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
41
41
|
if (value == null) {
|
|
42
42
|
return value;
|
|
43
43
|
}
|
|
44
|
-
return Object.assign(Object.assign({}, value), { 'id': value['id'], 'author': value['author'], 'name': value['name'], 'primary_method': value['primary_method'], 'secondary_methods': value['secondary_methods'], 'confidence': value['confidence'], 'classification_evidence': value['classification_evidence'], 'classifier_version': value['classifier_version'], 'classified_at': value['classified_at'], 'family': value['family'], 'params_b': value['params_b'], 'is_gguf': value['is_gguf'], 'is_moe': value['is_moe'], 'is_multimodal': value['is_multimodal'], 'is_image_gen': value['is_image_gen'], 'is_second_order': value['is_second_order'], 'downloads': value['downloads'], 'likes': value['likes'], 'created_at': value['created_at'], 'last_modified': value['last_modified'], 'first_seen_at': value['first_seen_at'], 'last_seen_at': value['last_seen_at'], 'readme_text': value['readme_text'], 'readme_status': value['readme_status'], 'tags': value['tags'], 'pipeline_tag': value['pipeline_tag'], 'library_name': value['library_name'], 'yaml_base_model': value['yaml_base_model'], 'yaml_language': value['yaml_language'], 'yaml_datasets': value['yaml_datasets'], 'yaml_license': value['yaml_license'], 'yaml_tags': value['yaml_tags'], 'files_count': value['files_count'], 'total_size_bytes': value['total_size_bytes'], 'largest_file_bytes': value['largest_file_bytes'], 'smallest_model_bytes': value['smallest_model_bytes'], 'quantizations': value['quantizations'], 'has_mmproj': value['has_mmproj'], 'hub_downloads_all_time': value['hub_downloads_all_time'], 'hub_trending_score': value['hub_trending_score'], 'hub_real_params_m': value['hub_real_params_m'], 'hub_context_length': value['hub_context_length'], 'hub_siblings_count': value['hub_siblings_count'], 'hub_provider_count': value['hub_provider_count'], 'hub_provider_names': value['hub_provider_names'], 'hub_enriched_at': value['hub_enriched_at'], 'files': value['files'], 'benchmarks': value['benchmarks'], 'author_summary': (0, Author_1.AuthorToJSON)(value['author_summary']) });
|
|
44
|
+
return Object.assign(Object.assign({}, value), { 'id': value['id'], 'author': value['author'], 'name': value['name'], 'primary_method': value['primary_method'], 'secondary_methods': value['secondary_methods'], 'confidence': value['confidence'], 'classification_evidence': value['classification_evidence'], 'classifier_version': value['classifier_version'], 'classified_at': value['classified_at'], 'family': value['family'], 'params_b': value['params_b'], 'is_gguf': value['is_gguf'], 'is_moe': value['is_moe'], 'is_multimodal': value['is_multimodal'], 'is_image_gen': value['is_image_gen'], 'is_second_order': value['is_second_order'], 'downloads': value['downloads'], 'likes': value['likes'], 'created_at': value['created_at'], 'last_modified': value['last_modified'], 'first_seen_at': value['first_seen_at'], 'last_seen_at': value['last_seen_at'], 'is_delisted': value['is_delisted'], 'days_since_gone': value['days_since_gone'], 'readme_text': value['readme_text'], 'readme_status': value['readme_status'], 'tags': value['tags'], 'pipeline_tag': value['pipeline_tag'], 'library_name': value['library_name'], 'yaml_base_model': value['yaml_base_model'], 'yaml_language': value['yaml_language'], 'yaml_datasets': value['yaml_datasets'], 'yaml_license': value['yaml_license'], 'yaml_tags': value['yaml_tags'], 'files_count': value['files_count'], 'total_size_bytes': value['total_size_bytes'], 'largest_file_bytes': value['largest_file_bytes'], 'smallest_model_bytes': value['smallest_model_bytes'], 'quantizations': value['quantizations'], 'has_mmproj': value['has_mmproj'], 'hub_downloads_all_time': value['hub_downloads_all_time'], 'hub_trending_score': value['hub_trending_score'], 'hub_real_params_m': value['hub_real_params_m'], 'hub_context_length': value['hub_context_length'], 'hub_siblings_count': value['hub_siblings_count'], 'hub_provider_count': value['hub_provider_count'], 'hub_provider_names': value['hub_provider_names'], 'hub_enriched_at': value['hub_enriched_at'], 'files': value['files'], 'benchmarks': value['benchmarks'], 'author_summary': (0, Author_1.AuthorToJSON)(value['author_summary']) });
|
|
45
45
|
}
|
|
@@ -67,6 +67,14 @@ export interface ModelSummary {
|
|
|
67
67
|
*
|
|
68
68
|
*/
|
|
69
69
|
first_seen_at?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* 0/1 flag, present in every response row. `1` means the model is no longer on the Hub.
|
|
72
|
+
*/
|
|
73
|
+
is_delisted?: number | null;
|
|
74
|
+
/**
|
|
75
|
+
* ISO-8601 timestamp of the last successful Hub observation. Non-null on delisted rows.
|
|
76
|
+
*/
|
|
77
|
+
last_seen_at?: string | null;
|
|
70
78
|
}
|
|
71
79
|
/**
|
|
72
80
|
* Check if a given object implements the ModelSummary interface.
|
|
@@ -45,6 +45,8 @@ function ModelSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'is_gguf': json['is_gguf'] === undefined ? undefined : json['is_gguf'] === null ? null : json['is_gguf'],
|
|
46
46
|
'created_at': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : json['created_at'],
|
|
47
47
|
'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'],
|
|
48
|
+
'is_delisted': json['is_delisted'] === undefined ? undefined : json['is_delisted'] === null ? null : json['is_delisted'],
|
|
49
|
+
'last_seen_at': json['last_seen_at'] === undefined ? undefined : json['last_seen_at'] === null ? null : json['last_seen_at'],
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
52
|
function ModelSummaryToJSON(json) {
|
|
@@ -68,5 +70,7 @@ function ModelSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
68
70
|
'is_gguf': value['is_gguf'],
|
|
69
71
|
'created_at': value['created_at'],
|
|
70
72
|
'first_seen_at': value['first_seen_at'],
|
|
73
|
+
'is_delisted': value['is_delisted'],
|
|
74
|
+
'last_seen_at': value['last_seen_at'],
|
|
71
75
|
};
|
|
72
76
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -3,16 +3,24 @@ 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';
|
|
9
|
+
export * from './DelistedModel';
|
|
6
10
|
export * from './Envelope';
|
|
7
11
|
export * from './Event';
|
|
8
12
|
export * from './GetAuthor200Response';
|
|
9
13
|
export * from './GetDataset200Response';
|
|
14
|
+
export * from './GetHistoricalDeletionSummary200Response';
|
|
10
15
|
export * from './GetIndex200Response';
|
|
11
16
|
export * from './GetMethod200Response';
|
|
12
17
|
export * from './GetModel200Response';
|
|
18
|
+
export * from './HistoricalDeletion';
|
|
13
19
|
export * from './IndexDetail';
|
|
14
20
|
export * from './ListAuthors200Response';
|
|
15
21
|
export * from './ListDatasets200Response';
|
|
22
|
+
export * from './ListDelistedModels200Response';
|
|
23
|
+
export * from './ListHistoricalDeletions200Response';
|
|
16
24
|
export * from './ListIndices200Response';
|
|
17
25
|
export * from './ListMethods200Response';
|
|
18
26
|
export * from './ListModels200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -21,16 +21,24 @@ __exportStar(require("./AuthorDetail"), exports);
|
|
|
21
21
|
__exportStar(require("./DaiPoint"), exports);
|
|
22
22
|
__exportStar(require("./Dataset"), exports);
|
|
23
23
|
__exportStar(require("./DatasetDetail"), exports);
|
|
24
|
+
__exportStar(require("./DeletionSummary"), exports);
|
|
25
|
+
__exportStar(require("./DeletionSummaryTimelineInner"), exports);
|
|
26
|
+
__exportStar(require("./DeletionSummaryTopByDownloadsInner"), exports);
|
|
27
|
+
__exportStar(require("./DelistedModel"), exports);
|
|
24
28
|
__exportStar(require("./Envelope"), exports);
|
|
25
29
|
__exportStar(require("./Event"), exports);
|
|
26
30
|
__exportStar(require("./GetAuthor200Response"), exports);
|
|
27
31
|
__exportStar(require("./GetDataset200Response"), exports);
|
|
32
|
+
__exportStar(require("./GetHistoricalDeletionSummary200Response"), exports);
|
|
28
33
|
__exportStar(require("./GetIndex200Response"), exports);
|
|
29
34
|
__exportStar(require("./GetMethod200Response"), exports);
|
|
30
35
|
__exportStar(require("./GetModel200Response"), exports);
|
|
36
|
+
__exportStar(require("./HistoricalDeletion"), exports);
|
|
31
37
|
__exportStar(require("./IndexDetail"), exports);
|
|
32
38
|
__exportStar(require("./ListAuthors200Response"), exports);
|
|
33
39
|
__exportStar(require("./ListDatasets200Response"), exports);
|
|
40
|
+
__exportStar(require("./ListDelistedModels200Response"), exports);
|
|
41
|
+
__exportStar(require("./ListHistoricalDeletions200Response"), exports);
|
|
34
42
|
__exportStar(require("./ListIndices200Response"), exports);
|
|
35
43
|
__exportStar(require("./ListMethods200Response"), exports);
|
|
36
44
|
__exportStar(require("./ListModels200Response"), exports);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
# DeletionSummary
|
|
3
|
+
|
|
4
|
+
Aggregate rollup of the 24-month HF deletion analysis.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`total_ever_seen` | number
|
|
11
|
+
`total_deleted` | number
|
|
12
|
+
`deletion_rate_pct` | number
|
|
13
|
+
`avg_months_alive` | number
|
|
14
|
+
`timeline` | [Array<DeletionSummaryTimelineInner>](DeletionSummaryTimelineInner.md)
|
|
15
|
+
`top_by_downloads` | [Array<DeletionSummaryTopByDownloadsInner>](DeletionSummaryTopByDownloadsInner.md)
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { DeletionSummary } from '@abliteration/sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"total_ever_seen": null,
|
|
25
|
+
"total_deleted": null,
|
|
26
|
+
"deletion_rate_pct": null,
|
|
27
|
+
"avg_months_alive": null,
|
|
28
|
+
"timeline": null,
|
|
29
|
+
"top_by_downloads": null,
|
|
30
|
+
} satisfies DeletionSummary
|
|
31
|
+
|
|
32
|
+
console.log(example)
|
|
33
|
+
|
|
34
|
+
// Convert the instance to a JSON string
|
|
35
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
36
|
+
console.log(exampleJSON)
|
|
37
|
+
|
|
38
|
+
// Parse the JSON string back to an object
|
|
39
|
+
const exampleParsed = JSON.parse(exampleJSON) as DeletionSummary
|
|
40
|
+
console.log(exampleParsed)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
44
|
+
|
|
45
|
+
|