@abliteration/sdk 0.1.7 → 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 +8 -0
- package/README.md +6 -0
- package/dist/apis/ModelsApi.d.ts +122 -0
- package/dist/apis/ModelsApi.js +120 -1
- package/dist/esm/apis/ModelsApi.d.ts +122 -0
- package/dist/esm/apis/ModelsApi.js +119 -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/ListAnomalies200Response.d.ts +67 -0
- package/dist/esm/models/ListAnomalies200Response.js +79 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -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/ListAnomalies200Response.d.ts +67 -0
- package/dist/models/ListAnomalies200Response.js +87 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/DownloadAnomaly.md +49 -0
- package/docs/DownloadPoint.md +37 -0
- package/docs/GetModelDownloadHistory200Response.md +48 -0
- package/docs/ListAnomalies200Response.md +48 -0
- package/docs/ModelsApi.md +167 -0
- package/package.json +1 -1
- package/src/apis/ModelsApi.ts +236 -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/ListAnomalies200Response.ts +132 -0
- package/src/models/index.ts +4 -0
|
@@ -23,7 +23,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
24
|
import { GetHistoricalDeletionSummary200ResponseFromJSON, } from '../models/GetHistoricalDeletionSummary200Response';
|
|
25
25
|
import { GetModel200ResponseFromJSON, } from '../models/GetModel200Response';
|
|
26
|
+
import { GetModelDownloadHistory200ResponseFromJSON, } from '../models/GetModelDownloadHistory200Response';
|
|
26
27
|
import { GetModelReadmeAt200ResponseFromJSON, } from '../models/GetModelReadmeAt200Response';
|
|
28
|
+
import { ListAnomalies200ResponseFromJSON, } from '../models/ListAnomalies200Response';
|
|
27
29
|
import { ListDelistedModels200ResponseFromJSON, } from '../models/ListDelistedModels200Response';
|
|
28
30
|
import { ListHistoricalDeletions200ResponseFromJSON, } from '../models/ListHistoricalDeletions200Response';
|
|
29
31
|
import { ListModelReadmeDrifts200ResponseFromJSON, } from '../models/ListModelReadmeDrifts200Response';
|
|
@@ -124,6 +126,57 @@ export class ModelsApi extends runtime.BaseAPI {
|
|
|
124
126
|
return yield response.value();
|
|
125
127
|
});
|
|
126
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* Creates request options for getModelDownloadHistory without sending the request
|
|
131
|
+
*/
|
|
132
|
+
getModelDownloadHistoryRequestOpts(requestParameters) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
if (requestParameters['id'] == null) {
|
|
135
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getModelDownloadHistory().');
|
|
136
|
+
}
|
|
137
|
+
const queryParameters = {};
|
|
138
|
+
if (requestParameters['days'] != null) {
|
|
139
|
+
queryParameters['days'] = requestParameters['days'];
|
|
140
|
+
}
|
|
141
|
+
const headerParameters = {};
|
|
142
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
143
|
+
const token = this.configuration.accessToken;
|
|
144
|
+
const tokenString = yield token("bearerAuth", []);
|
|
145
|
+
if (tokenString) {
|
|
146
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
let urlPath = `/api/v1/models/{id}/download-history`;
|
|
150
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
151
|
+
return {
|
|
152
|
+
path: urlPath,
|
|
153
|
+
method: 'GET',
|
|
154
|
+
headers: headerParameters,
|
|
155
|
+
query: queryParameters,
|
|
156
|
+
};
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Cost: 5 credits, flat. Raw signal that /market/anomalies scans over. Callers with a chart or their own anomaly detector pull it once per model.
|
|
161
|
+
* Per-model download timeline
|
|
162
|
+
*/
|
|
163
|
+
getModelDownloadHistoryRaw(requestParameters, initOverrides) {
|
|
164
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
+
const requestOptions = yield this.getModelDownloadHistoryRequestOpts(requestParameters);
|
|
166
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
167
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetModelDownloadHistory200ResponseFromJSON(jsonValue));
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Cost: 5 credits, flat. Raw signal that /market/anomalies scans over. Callers with a chart or their own anomaly detector pull it once per model.
|
|
172
|
+
* Per-model download timeline
|
|
173
|
+
*/
|
|
174
|
+
getModelDownloadHistory(requestParameters, initOverrides) {
|
|
175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
+
const response = yield this.getModelDownloadHistoryRaw(requestParameters, initOverrides);
|
|
177
|
+
return yield response.value();
|
|
178
|
+
});
|
|
179
|
+
}
|
|
127
180
|
/**
|
|
128
181
|
* Creates request options for getModelReadmeAt without sending the request
|
|
129
182
|
*/
|
|
@@ -176,6 +229,65 @@ export class ModelsApi extends runtime.BaseAPI {
|
|
|
176
229
|
return yield response.value();
|
|
177
230
|
});
|
|
178
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* Creates request options for listAnomalies without sending the request
|
|
234
|
+
*/
|
|
235
|
+
listAnomaliesRequestOpts(requestParameters) {
|
|
236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
237
|
+
const queryParameters = {};
|
|
238
|
+
if (requestParameters['windowDays'] != null) {
|
|
239
|
+
queryParameters['window_days'] = requestParameters['windowDays'];
|
|
240
|
+
}
|
|
241
|
+
if (requestParameters['minBaseline'] != null) {
|
|
242
|
+
queryParameters['min_baseline'] = requestParameters['minBaseline'];
|
|
243
|
+
}
|
|
244
|
+
if (requestParameters['kind'] != null) {
|
|
245
|
+
queryParameters['kind'] = requestParameters['kind'];
|
|
246
|
+
}
|
|
247
|
+
if (requestParameters['limit'] != null) {
|
|
248
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
249
|
+
}
|
|
250
|
+
if (requestParameters['offset'] != null) {
|
|
251
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
252
|
+
}
|
|
253
|
+
const headerParameters = {};
|
|
254
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
255
|
+
const token = this.configuration.accessToken;
|
|
256
|
+
const tokenString = yield token("bearerAuth", []);
|
|
257
|
+
if (tokenString) {
|
|
258
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
let urlPath = `/api/v1/market/anomalies`;
|
|
262
|
+
return {
|
|
263
|
+
path: urlPath,
|
|
264
|
+
method: 'GET',
|
|
265
|
+
headers: headerParameters,
|
|
266
|
+
query: queryParameters,
|
|
267
|
+
};
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Cost: 15 credits, flat. Every row is a model whose downloads-per-window has crossed a threshold: 2× jump = `spike`, 0.5× fall = `drop`. Sorted by absolute delta so biggest movers surface first. Consumers get \"what is happening in the field right now\" without re-implementing the ETL over `download_history`.
|
|
272
|
+
* Anomalies in the download counter (change stream)
|
|
273
|
+
*/
|
|
274
|
+
listAnomaliesRaw(requestParameters, initOverrides) {
|
|
275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
276
|
+
const requestOptions = yield this.listAnomaliesRequestOpts(requestParameters);
|
|
277
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
278
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListAnomalies200ResponseFromJSON(jsonValue));
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Cost: 15 credits, flat. Every row is a model whose downloads-per-window has crossed a threshold: 2× jump = `spike`, 0.5× fall = `drop`. Sorted by absolute delta so biggest movers surface first. Consumers get \"what is happening in the field right now\" without re-implementing the ETL over `download_history`.
|
|
283
|
+
* Anomalies in the download counter (change stream)
|
|
284
|
+
*/
|
|
285
|
+
listAnomalies() {
|
|
286
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
287
|
+
const response = yield this.listAnomaliesRaw(requestParameters, initOverrides);
|
|
288
|
+
return yield response.value();
|
|
289
|
+
});
|
|
290
|
+
}
|
|
179
291
|
/**
|
|
180
292
|
* Creates request options for listDelistedModels without sending the request
|
|
181
293
|
*/
|
|
@@ -429,6 +541,13 @@ export class ModelsApi extends runtime.BaseAPI {
|
|
|
429
541
|
});
|
|
430
542
|
}
|
|
431
543
|
}
|
|
544
|
+
/**
|
|
545
|
+
* @export
|
|
546
|
+
*/
|
|
547
|
+
export const ListAnomaliesKindEnum = {
|
|
548
|
+
Spike: 'spike',
|
|
549
|
+
Drop: 'drop',
|
|
550
|
+
};
|
|
432
551
|
/**
|
|
433
552
|
* @export
|
|
434
553
|
*/
|
|
@@ -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,62 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* abliteration.org Public API
|
|
5
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const DownloadAnomalyKindEnum = {
|
|
18
|
+
Spike: 'spike',
|
|
19
|
+
Drop: 'drop',
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DownloadAnomaly interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfDownloadAnomaly(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function DownloadAnomalyFromJSON(json) {
|
|
28
|
+
return DownloadAnomalyFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function DownloadAnomalyFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'model_id': json['model_id'] == null ? undefined : json['model_id'],
|
|
36
|
+
'current_at': json['current_at'] == null ? undefined : json['current_at'],
|
|
37
|
+
'current_downloads': json['current_downloads'] == null ? undefined : json['current_downloads'],
|
|
38
|
+
'baseline_at': json['baseline_at'] == null ? undefined : json['baseline_at'],
|
|
39
|
+
'baseline_downloads': json['baseline_downloads'] == null ? undefined : json['baseline_downloads'],
|
|
40
|
+
'ratio': json['ratio'] == null ? undefined : json['ratio'],
|
|
41
|
+
'delta': json['delta'] == null ? undefined : json['delta'],
|
|
42
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function DownloadAnomalyToJSON(json) {
|
|
46
|
+
return DownloadAnomalyToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function DownloadAnomalyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'model_id': value['model_id'],
|
|
54
|
+
'current_at': value['current_at'],
|
|
55
|
+
'current_downloads': value['current_downloads'],
|
|
56
|
+
'baseline_at': value['baseline_at'],
|
|
57
|
+
'baseline_downloads': value['baseline_downloads'],
|
|
58
|
+
'ratio': value['ratio'],
|
|
59
|
+
'delta': value['delta'],
|
|
60
|
+
'kind': value['kind'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* abliteration.org Public API
|
|
5
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the DownloadPoint interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDownloadPoint(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function DownloadPointFromJSON(json) {
|
|
21
|
+
return DownloadPointFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function DownloadPointFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
29
|
+
'downloads': json['downloads'] == null ? undefined : json['downloads'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function DownloadPointToJSON(json) {
|
|
33
|
+
return DownloadPointToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function DownloadPointToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'date': value['date'],
|
|
41
|
+
'downloads': value['downloads'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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,79 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* abliteration.org Public API
|
|
5
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { DownloadPointFromJSON, DownloadPointToJSON, } from './DownloadPoint';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const GetModelDownloadHistory200ResponseMeteringEnum = {
|
|
19
|
+
Preview: 'preview',
|
|
20
|
+
Billed: 'billed',
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetModelDownloadHistory200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfGetModelDownloadHistory200Response(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('cost' in value) || value['cost'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('credits_remaining' in value) || value['credits_remaining'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('metering' in value) || value['metering'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('request_id' in value) || value['request_id'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
export function GetModelDownloadHistory200ResponseFromJSON(json) {
|
|
45
|
+
return GetModelDownloadHistory200ResponseFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function GetModelDownloadHistory200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'data': (json['data'].map(DownloadPointFromJSON)),
|
|
53
|
+
'cost': json['cost'],
|
|
54
|
+
'credits_remaining': json['credits_remaining'],
|
|
55
|
+
'rate_limit_limit': json['rate_limit_limit'],
|
|
56
|
+
'rate_limit_remaining': json['rate_limit_remaining'],
|
|
57
|
+
'rate_limit_reset': json['rate_limit_reset'],
|
|
58
|
+
'metering': json['metering'],
|
|
59
|
+
'request_id': json['request_id'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export function GetModelDownloadHistory200ResponseToJSON(json) {
|
|
63
|
+
return GetModelDownloadHistory200ResponseToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
export function GetModelDownloadHistory200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'data': (value['data'].map(DownloadPointToJSON)),
|
|
71
|
+
'cost': value['cost'],
|
|
72
|
+
'credits_remaining': value['credits_remaining'],
|
|
73
|
+
'rate_limit_limit': value['rate_limit_limit'],
|
|
74
|
+
'rate_limit_remaining': value['rate_limit_remaining'],
|
|
75
|
+
'rate_limit_reset': value['rate_limit_reset'],
|
|
76
|
+
'metering': value['metering'],
|
|
77
|
+
'request_id': value['request_id'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* abliteration.org Public API
|
|
5
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { DownloadAnomalyFromJSON, DownloadAnomalyToJSON, } from './DownloadAnomaly';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ListAnomalies200ResponseMeteringEnum = {
|
|
19
|
+
Preview: 'preview',
|
|
20
|
+
Billed: 'billed',
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ListAnomalies200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfListAnomalies200Response(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('cost' in value) || value['cost'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('credits_remaining' in value) || value['credits_remaining'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('metering' in value) || value['metering'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('request_id' in value) || value['request_id'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
export function ListAnomalies200ResponseFromJSON(json) {
|
|
45
|
+
return ListAnomalies200ResponseFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function ListAnomalies200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'data': (json['data'].map(DownloadAnomalyFromJSON)),
|
|
53
|
+
'cost': json['cost'],
|
|
54
|
+
'credits_remaining': json['credits_remaining'],
|
|
55
|
+
'rate_limit_limit': json['rate_limit_limit'],
|
|
56
|
+
'rate_limit_remaining': json['rate_limit_remaining'],
|
|
57
|
+
'rate_limit_reset': json['rate_limit_reset'],
|
|
58
|
+
'metering': json['metering'],
|
|
59
|
+
'request_id': json['request_id'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export function ListAnomalies200ResponseToJSON(json) {
|
|
63
|
+
return ListAnomalies200ResponseToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
export function ListAnomalies200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'data': (value['data'].map(DownloadAnomalyToJSON)),
|
|
71
|
+
'cost': value['cost'],
|
|
72
|
+
'credits_remaining': value['credits_remaining'],
|
|
73
|
+
'rate_limit_limit': value['rate_limit_limit'],
|
|
74
|
+
'rate_limit_remaining': value['rate_limit_remaining'],
|
|
75
|
+
'rate_limit_reset': value['rate_limit_reset'],
|
|
76
|
+
'metering': value['metering'],
|
|
77
|
+
'request_id': value['request_id'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -7,6 +7,8 @@ export * from './DeletionSummary';
|
|
|
7
7
|
export * from './DeletionSummaryTimelineInner';
|
|
8
8
|
export * from './DeletionSummaryTopByDownloadsInner';
|
|
9
9
|
export * from './DelistedModel';
|
|
10
|
+
export * from './DownloadAnomaly';
|
|
11
|
+
export * from './DownloadPoint';
|
|
10
12
|
export * from './Envelope';
|
|
11
13
|
export * from './Event';
|
|
12
14
|
export * from './GetAuthor200Response';
|
|
@@ -15,9 +17,11 @@ export * from './GetHistoricalDeletionSummary200Response';
|
|
|
15
17
|
export * from './GetIndex200Response';
|
|
16
18
|
export * from './GetMethod200Response';
|
|
17
19
|
export * from './GetModel200Response';
|
|
20
|
+
export * from './GetModelDownloadHistory200Response';
|
|
18
21
|
export * from './GetModelReadmeAt200Response';
|
|
19
22
|
export * from './HistoricalDeletion';
|
|
20
23
|
export * from './IndexDetail';
|
|
24
|
+
export * from './ListAnomalies200Response';
|
|
21
25
|
export * from './ListAuthors200Response';
|
|
22
26
|
export * from './ListDatasets200Response';
|
|
23
27
|
export * from './ListDelistedModels200Response';
|