@abliteration/sdk 0.1.6 → 0.1.8
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 +12 -0
- package/dist/apis/ModelsApi.d.ts +230 -0
- package/dist/apis/ModelsApi.js +231 -1
- package/dist/esm/apis/ModelsApi.d.ts +230 -0
- package/dist/esm/apis/ModelsApi.js +230 -0
- package/dist/esm/models/DownloadAnomaly.d.ts +66 -0
- package/dist/esm/models/DownloadAnomaly.js +62 -0
- package/dist/esm/models/DownloadPoint.d.ts +34 -0
- package/dist/esm/models/DownloadPoint.js +43 -0
- package/dist/esm/models/GetModelDownloadHistory200Response.d.ts +67 -0
- package/dist/esm/models/GetModelDownloadHistory200Response.js +79 -0
- package/dist/esm/models/GetModelReadmeAt200Response.d.ts +67 -0
- package/dist/esm/models/GetModelReadmeAt200Response.js +79 -0
- package/dist/esm/models/ListAnomalies200Response.d.ts +67 -0
- package/dist/esm/models/ListAnomalies200Response.js +79 -0
- package/dist/esm/models/ListModelReadmeDrifts200Response.d.ts +67 -0
- package/dist/esm/models/ListModelReadmeDrifts200Response.js +79 -0
- package/dist/esm/models/ReadmeAt.d.ts +38 -0
- package/dist/esm/models/ReadmeAt.js +45 -0
- package/dist/esm/models/ReadmeDrift.d.ts +46 -0
- package/dist/esm/models/ReadmeDrift.js +49 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/DownloadAnomaly.d.ts +66 -0
- package/dist/models/DownloadAnomaly.js +70 -0
- package/dist/models/DownloadPoint.d.ts +34 -0
- package/dist/models/DownloadPoint.js +50 -0
- package/dist/models/GetModelDownloadHistory200Response.d.ts +67 -0
- package/dist/models/GetModelDownloadHistory200Response.js +87 -0
- package/dist/models/GetModelReadmeAt200Response.d.ts +67 -0
- package/dist/models/GetModelReadmeAt200Response.js +87 -0
- package/dist/models/ListAnomalies200Response.d.ts +67 -0
- package/dist/models/ListAnomalies200Response.js +87 -0
- package/dist/models/ListModelReadmeDrifts200Response.d.ts +67 -0
- package/dist/models/ListModelReadmeDrifts200Response.js +87 -0
- package/dist/models/ReadmeAt.d.ts +38 -0
- package/dist/models/ReadmeAt.js +52 -0
- package/dist/models/ReadmeDrift.d.ts +46 -0
- package/dist/models/ReadmeDrift.js +56 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/DownloadAnomaly.md +49 -0
- package/docs/DownloadPoint.md +37 -0
- package/docs/GetModelDownloadHistory200Response.md +48 -0
- package/docs/GetModelReadmeAt200Response.md +48 -0
- package/docs/ListAnomalies200Response.md +48 -0
- package/docs/ListModelReadmeDrifts200Response.md +48 -0
- package/docs/ModelsApi.md +332 -0
- package/docs/ReadmeAt.md +39 -0
- package/docs/ReadmeDrift.md +43 -0
- package/package.json +1 -1
- package/src/apis/ModelsApi.ts +462 -0
- package/src/models/DownloadAnomaly.ts +116 -0
- package/src/models/DownloadPoint.ts +69 -0
- package/src/models/GetModelDownloadHistory200Response.ts +132 -0
- package/src/models/GetModelReadmeAt200Response.ts +132 -0
- package/src/models/ListAnomalies200Response.ts +132 -0
- package/src/models/ListModelReadmeDrifts200Response.ts +132 -0
- package/src/models/ReadmeAt.ts +75 -0
- package/src/models/ReadmeDrift.ts +87 -0
- package/src/models/index.ts +8 -0
package/dist/esm/models/index.js
CHANGED
|
@@ -9,6 +9,8 @@ export * from './DeletionSummary';
|
|
|
9
9
|
export * from './DeletionSummaryTimelineInner';
|
|
10
10
|
export * from './DeletionSummaryTopByDownloadsInner';
|
|
11
11
|
export * from './DelistedModel';
|
|
12
|
+
export * from './DownloadAnomaly';
|
|
13
|
+
export * from './DownloadPoint';
|
|
12
14
|
export * from './Envelope';
|
|
13
15
|
export * from './Event';
|
|
14
16
|
export * from './GetAuthor200Response';
|
|
@@ -17,14 +19,18 @@ export * from './GetHistoricalDeletionSummary200Response';
|
|
|
17
19
|
export * from './GetIndex200Response';
|
|
18
20
|
export * from './GetMethod200Response';
|
|
19
21
|
export * from './GetModel200Response';
|
|
22
|
+
export * from './GetModelDownloadHistory200Response';
|
|
23
|
+
export * from './GetModelReadmeAt200Response';
|
|
20
24
|
export * from './HistoricalDeletion';
|
|
21
25
|
export * from './IndexDetail';
|
|
26
|
+
export * from './ListAnomalies200Response';
|
|
22
27
|
export * from './ListAuthors200Response';
|
|
23
28
|
export * from './ListDatasets200Response';
|
|
24
29
|
export * from './ListDelistedModels200Response';
|
|
25
30
|
export * from './ListHistoricalDeletions200Response';
|
|
26
31
|
export * from './ListIndices200Response';
|
|
27
32
|
export * from './ListMethods200Response';
|
|
33
|
+
export * from './ListModelReadmeDrifts200Response';
|
|
28
34
|
export * from './ListModels200Response';
|
|
29
35
|
export * from './ListTimeline200Response';
|
|
30
36
|
export * from './Method';
|
|
@@ -35,3 +41,5 @@ export * from './ModelError';
|
|
|
35
41
|
export * from './ModelIndex';
|
|
36
42
|
export * from './ModelSummary';
|
|
37
43
|
export * from './Passport';
|
|
44
|
+
export * from './ReadmeAt';
|
|
45
|
+
export * from './ReadmeDrift';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* abliteration.org Public API
|
|
3
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* One model whose downloads-per-window crossed a threshold.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DownloadAnomaly
|
|
16
|
+
*/
|
|
17
|
+
export interface DownloadAnomaly {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
model_id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* ISO-8601 timestamp of the current snapshot.
|
|
24
|
+
*/
|
|
25
|
+
current_at?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
current_downloads?: number;
|
|
30
|
+
/**
|
|
31
|
+
* ISO-8601 timestamp of the baseline snapshot the delta is computed against.
|
|
32
|
+
*/
|
|
33
|
+
baseline_at?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
baseline_downloads?: number;
|
|
38
|
+
/**
|
|
39
|
+
* current_downloads / baseline_downloads.
|
|
40
|
+
*/
|
|
41
|
+
ratio?: number;
|
|
42
|
+
/**
|
|
43
|
+
* current_downloads - baseline_downloads (signed).
|
|
44
|
+
*/
|
|
45
|
+
delta?: number;
|
|
46
|
+
/**
|
|
47
|
+
* `spike` when ratio >= 2, `drop` when ratio <= 0.5.
|
|
48
|
+
*/
|
|
49
|
+
kind?: DownloadAnomalyKindEnum;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export declare const DownloadAnomalyKindEnum: {
|
|
55
|
+
readonly Spike: "spike";
|
|
56
|
+
readonly Drop: "drop";
|
|
57
|
+
};
|
|
58
|
+
export type DownloadAnomalyKindEnum = typeof DownloadAnomalyKindEnum[keyof typeof DownloadAnomalyKindEnum];
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the DownloadAnomaly interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfDownloadAnomaly(value: object): value is DownloadAnomaly;
|
|
63
|
+
export declare function DownloadAnomalyFromJSON(json: any): DownloadAnomaly;
|
|
64
|
+
export declare function DownloadAnomalyFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadAnomaly;
|
|
65
|
+
export declare function DownloadAnomalyToJSON(json: any): DownloadAnomaly;
|
|
66
|
+
export declare function DownloadAnomalyToJSONTyped(value?: DownloadAnomaly | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.DownloadAnomalyKindEnum = void 0;
|
|
17
|
+
exports.instanceOfDownloadAnomaly = instanceOfDownloadAnomaly;
|
|
18
|
+
exports.DownloadAnomalyFromJSON = DownloadAnomalyFromJSON;
|
|
19
|
+
exports.DownloadAnomalyFromJSONTyped = DownloadAnomalyFromJSONTyped;
|
|
20
|
+
exports.DownloadAnomalyToJSON = DownloadAnomalyToJSON;
|
|
21
|
+
exports.DownloadAnomalyToJSONTyped = DownloadAnomalyToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.DownloadAnomalyKindEnum = {
|
|
26
|
+
Spike: 'spike',
|
|
27
|
+
Drop: 'drop',
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the DownloadAnomaly interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfDownloadAnomaly(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function DownloadAnomalyFromJSON(json) {
|
|
36
|
+
return DownloadAnomalyFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function DownloadAnomalyFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'model_id': json['model_id'] == null ? undefined : json['model_id'],
|
|
44
|
+
'current_at': json['current_at'] == null ? undefined : json['current_at'],
|
|
45
|
+
'current_downloads': json['current_downloads'] == null ? undefined : json['current_downloads'],
|
|
46
|
+
'baseline_at': json['baseline_at'] == null ? undefined : json['baseline_at'],
|
|
47
|
+
'baseline_downloads': json['baseline_downloads'] == null ? undefined : json['baseline_downloads'],
|
|
48
|
+
'ratio': json['ratio'] == null ? undefined : json['ratio'],
|
|
49
|
+
'delta': json['delta'] == null ? undefined : json['delta'],
|
|
50
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function DownloadAnomalyToJSON(json) {
|
|
54
|
+
return DownloadAnomalyToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function DownloadAnomalyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'model_id': value['model_id'],
|
|
62
|
+
'current_at': value['current_at'],
|
|
63
|
+
'current_downloads': value['current_downloads'],
|
|
64
|
+
'baseline_at': value['baseline_at'],
|
|
65
|
+
'baseline_downloads': value['baseline_downloads'],
|
|
66
|
+
'ratio': value['ratio'],
|
|
67
|
+
'delta': value['delta'],
|
|
68
|
+
'kind': value['kind'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -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
|
+
* One snapshot in a per-model download timeline.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DownloadPoint
|
|
16
|
+
*/
|
|
17
|
+
export interface DownloadPoint {
|
|
18
|
+
/**
|
|
19
|
+
* ISO-8601 timestamp of the observation.
|
|
20
|
+
*/
|
|
21
|
+
date?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
downloads?: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the DownloadPoint interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfDownloadPoint(value: object): value is DownloadPoint;
|
|
31
|
+
export declare function DownloadPointFromJSON(json: any): DownloadPoint;
|
|
32
|
+
export declare function DownloadPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadPoint;
|
|
33
|
+
export declare function DownloadPointToJSON(json: any): DownloadPoint;
|
|
34
|
+
export declare function DownloadPointToJSONTyped(value?: DownloadPoint | 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.instanceOfDownloadPoint = instanceOfDownloadPoint;
|
|
17
|
+
exports.DownloadPointFromJSON = DownloadPointFromJSON;
|
|
18
|
+
exports.DownloadPointFromJSONTyped = DownloadPointFromJSONTyped;
|
|
19
|
+
exports.DownloadPointToJSON = DownloadPointToJSON;
|
|
20
|
+
exports.DownloadPointToJSONTyped = DownloadPointToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DownloadPoint interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDownloadPoint(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function DownloadPointFromJSON(json) {
|
|
28
|
+
return DownloadPointFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function DownloadPointFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
36
|
+
'downloads': json['downloads'] == null ? undefined : json['downloads'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function DownloadPointToJSON(json) {
|
|
40
|
+
return DownloadPointToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function DownloadPointToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'date': value['date'],
|
|
48
|
+
'downloads': value['downloads'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 { DownloadPoint } from './DownloadPoint';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetModelDownloadHistory200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface GetModelDownloadHistory200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
data: Array<DownloadPoint>;
|
|
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: GetModelDownloadHistory200ResponseMeteringEnum;
|
|
47
|
+
/**
|
|
48
|
+
* Also returned in the x-request-id header.
|
|
49
|
+
*/
|
|
50
|
+
request_id: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const GetModelDownloadHistory200ResponseMeteringEnum: {
|
|
56
|
+
readonly Preview: "preview";
|
|
57
|
+
readonly Billed: "billed";
|
|
58
|
+
};
|
|
59
|
+
export type GetModelDownloadHistory200ResponseMeteringEnum = typeof GetModelDownloadHistory200ResponseMeteringEnum[keyof typeof GetModelDownloadHistory200ResponseMeteringEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the GetModelDownloadHistory200Response interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfGetModelDownloadHistory200Response(value: object): value is GetModelDownloadHistory200Response;
|
|
64
|
+
export declare function GetModelDownloadHistory200ResponseFromJSON(json: any): GetModelDownloadHistory200Response;
|
|
65
|
+
export declare function GetModelDownloadHistory200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModelDownloadHistory200Response;
|
|
66
|
+
export declare function GetModelDownloadHistory200ResponseToJSON(json: any): GetModelDownloadHistory200Response;
|
|
67
|
+
export declare function GetModelDownloadHistory200ResponseToJSONTyped(value?: GetModelDownloadHistory200Response | 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.GetModelDownloadHistory200ResponseMeteringEnum = void 0;
|
|
17
|
+
exports.instanceOfGetModelDownloadHistory200Response = instanceOfGetModelDownloadHistory200Response;
|
|
18
|
+
exports.GetModelDownloadHistory200ResponseFromJSON = GetModelDownloadHistory200ResponseFromJSON;
|
|
19
|
+
exports.GetModelDownloadHistory200ResponseFromJSONTyped = GetModelDownloadHistory200ResponseFromJSONTyped;
|
|
20
|
+
exports.GetModelDownloadHistory200ResponseToJSON = GetModelDownloadHistory200ResponseToJSON;
|
|
21
|
+
exports.GetModelDownloadHistory200ResponseToJSONTyped = GetModelDownloadHistory200ResponseToJSONTyped;
|
|
22
|
+
const DownloadPoint_1 = require("./DownloadPoint");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.GetModelDownloadHistory200ResponseMeteringEnum = {
|
|
27
|
+
Preview: 'preview',
|
|
28
|
+
Billed: 'billed',
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GetModelDownloadHistory200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfGetModelDownloadHistory200Response(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 GetModelDownloadHistory200ResponseFromJSON(json) {
|
|
53
|
+
return GetModelDownloadHistory200ResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function GetModelDownloadHistory200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'data': (json['data'].map(DownloadPoint_1.DownloadPointFromJSON)),
|
|
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 GetModelDownloadHistory200ResponseToJSON(json) {
|
|
71
|
+
return GetModelDownloadHistory200ResponseToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function GetModelDownloadHistory200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'data': (value['data'].map(DownloadPoint_1.DownloadPointToJSON)),
|
|
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 { ReadmeAt } from './ReadmeAt';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetModelReadmeAt200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface GetModelReadmeAt200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
data: ReadmeAt;
|
|
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: GetModelReadmeAt200ResponseMeteringEnum;
|
|
47
|
+
/**
|
|
48
|
+
* Also returned in the x-request-id header.
|
|
49
|
+
*/
|
|
50
|
+
request_id: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const GetModelReadmeAt200ResponseMeteringEnum: {
|
|
56
|
+
readonly Preview: "preview";
|
|
57
|
+
readonly Billed: "billed";
|
|
58
|
+
};
|
|
59
|
+
export type GetModelReadmeAt200ResponseMeteringEnum = typeof GetModelReadmeAt200ResponseMeteringEnum[keyof typeof GetModelReadmeAt200ResponseMeteringEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the GetModelReadmeAt200Response interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfGetModelReadmeAt200Response(value: object): value is GetModelReadmeAt200Response;
|
|
64
|
+
export declare function GetModelReadmeAt200ResponseFromJSON(json: any): GetModelReadmeAt200Response;
|
|
65
|
+
export declare function GetModelReadmeAt200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModelReadmeAt200Response;
|
|
66
|
+
export declare function GetModelReadmeAt200ResponseToJSON(json: any): GetModelReadmeAt200Response;
|
|
67
|
+
export declare function GetModelReadmeAt200ResponseToJSONTyped(value?: GetModelReadmeAt200Response | 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.GetModelReadmeAt200ResponseMeteringEnum = void 0;
|
|
17
|
+
exports.instanceOfGetModelReadmeAt200Response = instanceOfGetModelReadmeAt200Response;
|
|
18
|
+
exports.GetModelReadmeAt200ResponseFromJSON = GetModelReadmeAt200ResponseFromJSON;
|
|
19
|
+
exports.GetModelReadmeAt200ResponseFromJSONTyped = GetModelReadmeAt200ResponseFromJSONTyped;
|
|
20
|
+
exports.GetModelReadmeAt200ResponseToJSON = GetModelReadmeAt200ResponseToJSON;
|
|
21
|
+
exports.GetModelReadmeAt200ResponseToJSONTyped = GetModelReadmeAt200ResponseToJSONTyped;
|
|
22
|
+
const ReadmeAt_1 = require("./ReadmeAt");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.GetModelReadmeAt200ResponseMeteringEnum = {
|
|
27
|
+
Preview: 'preview',
|
|
28
|
+
Billed: 'billed',
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GetModelReadmeAt200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfGetModelReadmeAt200Response(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 GetModelReadmeAt200ResponseFromJSON(json) {
|
|
53
|
+
return GetModelReadmeAt200ResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function GetModelReadmeAt200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'data': (0, ReadmeAt_1.ReadmeAtFromJSON)(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 GetModelReadmeAt200ResponseToJSON(json) {
|
|
71
|
+
return GetModelReadmeAt200ResponseToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function GetModelReadmeAt200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'data': (0, ReadmeAt_1.ReadmeAtToJSON)(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
|
+
}
|
|
@@ -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 { DownloadAnomaly } from './DownloadAnomaly';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListAnomalies200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ListAnomalies200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
data: Array<DownloadAnomaly>;
|
|
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: ListAnomalies200ResponseMeteringEnum;
|
|
47
|
+
/**
|
|
48
|
+
* Also returned in the x-request-id header.
|
|
49
|
+
*/
|
|
50
|
+
request_id: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const ListAnomalies200ResponseMeteringEnum: {
|
|
56
|
+
readonly Preview: "preview";
|
|
57
|
+
readonly Billed: "billed";
|
|
58
|
+
};
|
|
59
|
+
export type ListAnomalies200ResponseMeteringEnum = typeof ListAnomalies200ResponseMeteringEnum[keyof typeof ListAnomalies200ResponseMeteringEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ListAnomalies200Response interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfListAnomalies200Response(value: object): value is ListAnomalies200Response;
|
|
64
|
+
export declare function ListAnomalies200ResponseFromJSON(json: any): ListAnomalies200Response;
|
|
65
|
+
export declare function ListAnomalies200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAnomalies200Response;
|
|
66
|
+
export declare function ListAnomalies200ResponseToJSON(json: any): ListAnomalies200Response;
|
|
67
|
+
export declare function ListAnomalies200ResponseToJSONTyped(value?: ListAnomalies200Response | null, ignoreDiscriminator?: boolean): any;
|