@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
|
@@ -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/esm/models/index.js
CHANGED
|
@@ -5,16 +5,24 @@ export * from './AuthorDetail';
|
|
|
5
5
|
export * from './DaiPoint';
|
|
6
6
|
export * from './Dataset';
|
|
7
7
|
export * from './DatasetDetail';
|
|
8
|
+
export * from './DeletionSummary';
|
|
9
|
+
export * from './DeletionSummaryTimelineInner';
|
|
10
|
+
export * from './DeletionSummaryTopByDownloadsInner';
|
|
11
|
+
export * from './DelistedModel';
|
|
8
12
|
export * from './Envelope';
|
|
9
13
|
export * from './Event';
|
|
10
14
|
export * from './GetAuthor200Response';
|
|
11
15
|
export * from './GetDataset200Response';
|
|
16
|
+
export * from './GetHistoricalDeletionSummary200Response';
|
|
12
17
|
export * from './GetIndex200Response';
|
|
13
18
|
export * from './GetMethod200Response';
|
|
14
19
|
export * from './GetModel200Response';
|
|
20
|
+
export * from './HistoricalDeletion';
|
|
15
21
|
export * from './IndexDetail';
|
|
16
22
|
export * from './ListAuthors200Response';
|
|
17
23
|
export * from './ListDatasets200Response';
|
|
24
|
+
export * from './ListDelistedModels200Response';
|
|
25
|
+
export * from './ListHistoricalDeletions200Response';
|
|
18
26
|
export * from './ListIndices200Response';
|
|
19
27
|
export * from './ListMethods200Response';
|
|
20
28
|
export * from './ListModels200Response';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* abliteration.org Public API
|
|
3
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { DeletionSummaryTopByDownloadsInner } from './DeletionSummaryTopByDownloadsInner';
|
|
13
|
+
import type { DeletionSummaryTimelineInner } from './DeletionSummaryTimelineInner';
|
|
14
|
+
/**
|
|
15
|
+
* Aggregate rollup of the 24-month HF deletion analysis.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface DeletionSummary
|
|
18
|
+
*/
|
|
19
|
+
export interface DeletionSummary {
|
|
20
|
+
/**
|
|
21
|
+
* Live catalog size plus historical deletions.
|
|
22
|
+
*/
|
|
23
|
+
total_ever_seen?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
total_deleted?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Percentage of ever-seen models that are now gone.
|
|
30
|
+
*/
|
|
31
|
+
deletion_rate_pct?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Average lifespan of deleted models, in months.
|
|
34
|
+
*/
|
|
35
|
+
avg_months_alive?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Deletions grouped by last_seen_month, ascending.
|
|
38
|
+
*/
|
|
39
|
+
timeline?: Array<DeletionSummaryTimelineInner>;
|
|
40
|
+
/**
|
|
41
|
+
* Top-10 biggest casualties by peak downloads.
|
|
42
|
+
*/
|
|
43
|
+
top_by_downloads?: Array<DeletionSummaryTopByDownloadsInner>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the DeletionSummary interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfDeletionSummary(value: object): value is DeletionSummary;
|
|
49
|
+
export declare function DeletionSummaryFromJSON(json: any): DeletionSummary;
|
|
50
|
+
export declare function DeletionSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletionSummary;
|
|
51
|
+
export declare function DeletionSummaryToJSON(json: any): DeletionSummary;
|
|
52
|
+
export declare function DeletionSummaryToJSONTyped(value?: DeletionSummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* abliteration.org Public API
|
|
6
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDeletionSummary = instanceOfDeletionSummary;
|
|
17
|
+
exports.DeletionSummaryFromJSON = DeletionSummaryFromJSON;
|
|
18
|
+
exports.DeletionSummaryFromJSONTyped = DeletionSummaryFromJSONTyped;
|
|
19
|
+
exports.DeletionSummaryToJSON = DeletionSummaryToJSON;
|
|
20
|
+
exports.DeletionSummaryToJSONTyped = DeletionSummaryToJSONTyped;
|
|
21
|
+
const DeletionSummaryTopByDownloadsInner_1 = require("./DeletionSummaryTopByDownloadsInner");
|
|
22
|
+
const DeletionSummaryTimelineInner_1 = require("./DeletionSummaryTimelineInner");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the DeletionSummary interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfDeletionSummary(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DeletionSummaryFromJSON(json) {
|
|
30
|
+
return DeletionSummaryFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DeletionSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'total_ever_seen': json['total_ever_seen'] == null ? undefined : json['total_ever_seen'],
|
|
38
|
+
'total_deleted': json['total_deleted'] == null ? undefined : json['total_deleted'],
|
|
39
|
+
'deletion_rate_pct': json['deletion_rate_pct'] == null ? undefined : json['deletion_rate_pct'],
|
|
40
|
+
'avg_months_alive': json['avg_months_alive'] == null ? undefined : json['avg_months_alive'],
|
|
41
|
+
'timeline': json['timeline'] == null ? undefined : (json['timeline'].map(DeletionSummaryTimelineInner_1.DeletionSummaryTimelineInnerFromJSON)),
|
|
42
|
+
'top_by_downloads': json['top_by_downloads'] == null ? undefined : (json['top_by_downloads'].map(DeletionSummaryTopByDownloadsInner_1.DeletionSummaryTopByDownloadsInnerFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function DeletionSummaryToJSON(json) {
|
|
46
|
+
return DeletionSummaryToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function DeletionSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'total_ever_seen': value['total_ever_seen'],
|
|
54
|
+
'total_deleted': value['total_deleted'],
|
|
55
|
+
'deletion_rate_pct': value['deletion_rate_pct'],
|
|
56
|
+
'avg_months_alive': value['avg_months_alive'],
|
|
57
|
+
'timeline': value['timeline'] == null ? undefined : (value['timeline'].map(DeletionSummaryTimelineInner_1.DeletionSummaryTimelineInnerToJSON)),
|
|
58
|
+
'top_by_downloads': value['top_by_downloads'] == null ? undefined : (value['top_by_downloads'].map(DeletionSummaryTopByDownloadsInner_1.DeletionSummaryTopByDownloadsInnerToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* abliteration.org Public API
|
|
3
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DeletionSummaryTimelineInner
|
|
16
|
+
*/
|
|
17
|
+
export interface DeletionSummaryTimelineInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
month?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
count?: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the DeletionSummaryTimelineInner interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfDeletionSummaryTimelineInner(value: object): value is DeletionSummaryTimelineInner;
|
|
31
|
+
export declare function DeletionSummaryTimelineInnerFromJSON(json: any): DeletionSummaryTimelineInner;
|
|
32
|
+
export declare function DeletionSummaryTimelineInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletionSummaryTimelineInner;
|
|
33
|
+
export declare function DeletionSummaryTimelineInnerToJSON(json: any): DeletionSummaryTimelineInner;
|
|
34
|
+
export declare function DeletionSummaryTimelineInnerToJSONTyped(value?: DeletionSummaryTimelineInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* abliteration.org Public API
|
|
6
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDeletionSummaryTimelineInner = instanceOfDeletionSummaryTimelineInner;
|
|
17
|
+
exports.DeletionSummaryTimelineInnerFromJSON = DeletionSummaryTimelineInnerFromJSON;
|
|
18
|
+
exports.DeletionSummaryTimelineInnerFromJSONTyped = DeletionSummaryTimelineInnerFromJSONTyped;
|
|
19
|
+
exports.DeletionSummaryTimelineInnerToJSON = DeletionSummaryTimelineInnerToJSON;
|
|
20
|
+
exports.DeletionSummaryTimelineInnerToJSONTyped = DeletionSummaryTimelineInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DeletionSummaryTimelineInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDeletionSummaryTimelineInner(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function DeletionSummaryTimelineInnerFromJSON(json) {
|
|
28
|
+
return DeletionSummaryTimelineInnerFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function DeletionSummaryTimelineInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'month': json['month'] == null ? undefined : json['month'],
|
|
36
|
+
'count': json['count'] == null ? undefined : json['count'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function DeletionSummaryTimelineInnerToJSON(json) {
|
|
40
|
+
return DeletionSummaryTimelineInnerToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function DeletionSummaryTimelineInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'month': value['month'],
|
|
48
|
+
'count': value['count'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* abliteration.org Public API
|
|
3
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DeletionSummaryTopByDownloadsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface DeletionSummaryTopByDownloadsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
peak_downloads?: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
last_seen_month?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
months_alive?: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the DeletionSummaryTopByDownloadsInner interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfDeletionSummaryTopByDownloadsInner(value: object): value is DeletionSummaryTopByDownloadsInner;
|
|
39
|
+
export declare function DeletionSummaryTopByDownloadsInnerFromJSON(json: any): DeletionSummaryTopByDownloadsInner;
|
|
40
|
+
export declare function DeletionSummaryTopByDownloadsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletionSummaryTopByDownloadsInner;
|
|
41
|
+
export declare function DeletionSummaryTopByDownloadsInnerToJSON(json: any): DeletionSummaryTopByDownloadsInner;
|
|
42
|
+
export declare function DeletionSummaryTopByDownloadsInnerToJSONTyped(value?: DeletionSummaryTopByDownloadsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* abliteration.org Public API
|
|
6
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDeletionSummaryTopByDownloadsInner = instanceOfDeletionSummaryTopByDownloadsInner;
|
|
17
|
+
exports.DeletionSummaryTopByDownloadsInnerFromJSON = DeletionSummaryTopByDownloadsInnerFromJSON;
|
|
18
|
+
exports.DeletionSummaryTopByDownloadsInnerFromJSONTyped = DeletionSummaryTopByDownloadsInnerFromJSONTyped;
|
|
19
|
+
exports.DeletionSummaryTopByDownloadsInnerToJSON = DeletionSummaryTopByDownloadsInnerToJSON;
|
|
20
|
+
exports.DeletionSummaryTopByDownloadsInnerToJSONTyped = DeletionSummaryTopByDownloadsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DeletionSummaryTopByDownloadsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDeletionSummaryTopByDownloadsInner(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function DeletionSummaryTopByDownloadsInnerFromJSON(json) {
|
|
28
|
+
return DeletionSummaryTopByDownloadsInnerFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function DeletionSummaryTopByDownloadsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'peak_downloads': json['peak_downloads'] == null ? undefined : json['peak_downloads'],
|
|
37
|
+
'last_seen_month': json['last_seen_month'] == null ? undefined : json['last_seen_month'],
|
|
38
|
+
'months_alive': json['months_alive'] == null ? undefined : json['months_alive'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function DeletionSummaryTopByDownloadsInnerToJSON(json) {
|
|
42
|
+
return DeletionSummaryTopByDownloadsInnerToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function DeletionSummaryTopByDownloadsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': value['id'],
|
|
50
|
+
'peak_downloads': value['peak_downloads'],
|
|
51
|
+
'last_seen_month': value['last_seen_month'],
|
|
52
|
+
'months_alive': value['months_alive'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 DelistedModel
|
|
16
|
+
*/
|
|
17
|
+
export interface DelistedModel {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
author?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
family?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
params_b?: number | null;
|
|
34
|
+
/**
|
|
35
|
+
* Downloads at the moment the model was last visible on HF. Not a live counter.
|
|
36
|
+
*/
|
|
37
|
+
downloads?: number;
|
|
38
|
+
/**
|
|
39
|
+
* ISO-8601 timestamp of the last successful Hub observation. Approximately when the model died.
|
|
40
|
+
*/
|
|
41
|
+
last_seen_at?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Whole days between last_seen_at and now, computed server-side for convenience.
|
|
44
|
+
*/
|
|
45
|
+
days_since_gone?: number;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the DelistedModel interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfDelistedModel(value: object): value is DelistedModel;
|
|
51
|
+
export declare function DelistedModelFromJSON(json: any): DelistedModel;
|
|
52
|
+
export declare function DelistedModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): DelistedModel;
|
|
53
|
+
export declare function DelistedModelToJSON(json: any): DelistedModel;
|
|
54
|
+
export declare function DelistedModelToJSONTyped(value?: DelistedModel | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* abliteration.org Public API
|
|
6
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDelistedModel = instanceOfDelistedModel;
|
|
17
|
+
exports.DelistedModelFromJSON = DelistedModelFromJSON;
|
|
18
|
+
exports.DelistedModelFromJSONTyped = DelistedModelFromJSONTyped;
|
|
19
|
+
exports.DelistedModelToJSON = DelistedModelToJSON;
|
|
20
|
+
exports.DelistedModelToJSONTyped = DelistedModelToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DelistedModel interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDelistedModel(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function DelistedModelFromJSON(json) {
|
|
28
|
+
return DelistedModelFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function DelistedModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'author': json['author'] == null ? undefined : json['author'],
|
|
37
|
+
'family': json['family'] === undefined ? undefined : json['family'] === null ? null : json['family'],
|
|
38
|
+
'params_b': json['params_b'] === undefined ? undefined : json['params_b'] === null ? null : json['params_b'],
|
|
39
|
+
'downloads': json['downloads'] == null ? undefined : json['downloads'],
|
|
40
|
+
'last_seen_at': json['last_seen_at'] == null ? undefined : json['last_seen_at'],
|
|
41
|
+
'days_since_gone': json['days_since_gone'] == null ? undefined : json['days_since_gone'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function DelistedModelToJSON(json) {
|
|
45
|
+
return DelistedModelToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function DelistedModelToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': value['id'],
|
|
53
|
+
'author': value['author'],
|
|
54
|
+
'family': value['family'],
|
|
55
|
+
'params_b': value['params_b'],
|
|
56
|
+
'downloads': value['downloads'],
|
|
57
|
+
'last_seen_at': value['last_seen_at'],
|
|
58
|
+
'days_since_gone': value['days_since_gone'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* abliteration.org Public API
|
|
3
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { DeletionSummary } from './DeletionSummary';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetHistoricalDeletionSummary200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface GetHistoricalDeletionSummary200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
data: DeletionSummary;
|
|
23
|
+
/**
|
|
24
|
+
* Credits this call costs.
|
|
25
|
+
*/
|
|
26
|
+
cost: number;
|
|
27
|
+
/**
|
|
28
|
+
* Wallet balance after the call. Unchanged while metering is preview.
|
|
29
|
+
*/
|
|
30
|
+
credits_remaining: number;
|
|
31
|
+
/**
|
|
32
|
+
* Ceiling for the current window. Also returned as X-RateLimit-Limit.
|
|
33
|
+
*/
|
|
34
|
+
rate_limit_limit: number;
|
|
35
|
+
/**
|
|
36
|
+
* Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
|
|
37
|
+
*/
|
|
38
|
+
rate_limit_remaining: number;
|
|
39
|
+
/**
|
|
40
|
+
* Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
|
|
41
|
+
*/
|
|
42
|
+
rate_limit_reset: number;
|
|
43
|
+
/**
|
|
44
|
+
* Whether cost was actually deducted.
|
|
45
|
+
*/
|
|
46
|
+
metering: GetHistoricalDeletionSummary200ResponseMeteringEnum;
|
|
47
|
+
/**
|
|
48
|
+
* Also returned in the x-request-id header.
|
|
49
|
+
*/
|
|
50
|
+
request_id: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const GetHistoricalDeletionSummary200ResponseMeteringEnum: {
|
|
56
|
+
readonly Preview: "preview";
|
|
57
|
+
readonly Billed: "billed";
|
|
58
|
+
};
|
|
59
|
+
export type GetHistoricalDeletionSummary200ResponseMeteringEnum = typeof GetHistoricalDeletionSummary200ResponseMeteringEnum[keyof typeof GetHistoricalDeletionSummary200ResponseMeteringEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the GetHistoricalDeletionSummary200Response interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfGetHistoricalDeletionSummary200Response(value: object): value is GetHistoricalDeletionSummary200Response;
|
|
64
|
+
export declare function GetHistoricalDeletionSummary200ResponseFromJSON(json: any): GetHistoricalDeletionSummary200Response;
|
|
65
|
+
export declare function GetHistoricalDeletionSummary200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHistoricalDeletionSummary200Response;
|
|
66
|
+
export declare function GetHistoricalDeletionSummary200ResponseToJSON(json: any): GetHistoricalDeletionSummary200Response;
|
|
67
|
+
export declare function GetHistoricalDeletionSummary200ResponseToJSONTyped(value?: GetHistoricalDeletionSummary200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.GetHistoricalDeletionSummary200ResponseMeteringEnum = void 0;
|
|
17
|
+
exports.instanceOfGetHistoricalDeletionSummary200Response = instanceOfGetHistoricalDeletionSummary200Response;
|
|
18
|
+
exports.GetHistoricalDeletionSummary200ResponseFromJSON = GetHistoricalDeletionSummary200ResponseFromJSON;
|
|
19
|
+
exports.GetHistoricalDeletionSummary200ResponseFromJSONTyped = GetHistoricalDeletionSummary200ResponseFromJSONTyped;
|
|
20
|
+
exports.GetHistoricalDeletionSummary200ResponseToJSON = GetHistoricalDeletionSummary200ResponseToJSON;
|
|
21
|
+
exports.GetHistoricalDeletionSummary200ResponseToJSONTyped = GetHistoricalDeletionSummary200ResponseToJSONTyped;
|
|
22
|
+
const DeletionSummary_1 = require("./DeletionSummary");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.GetHistoricalDeletionSummary200ResponseMeteringEnum = {
|
|
27
|
+
Preview: 'preview',
|
|
28
|
+
Billed: 'billed',
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GetHistoricalDeletionSummary200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfGetHistoricalDeletionSummary200Response(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 GetHistoricalDeletionSummary200ResponseFromJSON(json) {
|
|
53
|
+
return GetHistoricalDeletionSummary200ResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function GetHistoricalDeletionSummary200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'data': (0, DeletionSummary_1.DeletionSummaryFromJSON)(json['data']),
|
|
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 GetHistoricalDeletionSummary200ResponseToJSON(json) {
|
|
71
|
+
return GetHistoricalDeletionSummary200ResponseToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function GetHistoricalDeletionSummary200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'data': (0, DeletionSummary_1.DeletionSummaryToJSON)(value['data']),
|
|
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
|
+
}
|