@abliteration/sdk 0.1.6 → 0.1.7
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 +108 -0
- package/dist/apis/ModelsApi.js +111 -0
- package/dist/esm/apis/ModelsApi.d.ts +108 -0
- package/dist/esm/apis/ModelsApi.js +111 -0
- package/dist/esm/models/GetModelReadmeAt200Response.d.ts +67 -0
- package/dist/esm/models/GetModelReadmeAt200Response.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 +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/GetModelReadmeAt200Response.d.ts +67 -0
- package/dist/models/GetModelReadmeAt200Response.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 +4 -0
- package/dist/models/index.js +4 -0
- package/docs/GetModelReadmeAt200Response.md +48 -0
- package/docs/ListModelReadmeDrifts200Response.md +48 -0
- package/docs/ModelsApi.md +165 -0
- package/docs/ReadmeAt.md +39 -0
- package/docs/ReadmeDrift.md +43 -0
- package/package.json +1 -1
- package/src/apis/ModelsApi.ts +226 -0
- package/src/models/GetModelReadmeAt200Response.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 +4 -0
|
@@ -23,8 +23,10 @@ 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 { GetModelReadmeAt200ResponseFromJSON, } from '../models/GetModelReadmeAt200Response';
|
|
26
27
|
import { ListDelistedModels200ResponseFromJSON, } from '../models/ListDelistedModels200Response';
|
|
27
28
|
import { ListHistoricalDeletions200ResponseFromJSON, } from '../models/ListHistoricalDeletions200Response';
|
|
29
|
+
import { ListModelReadmeDrifts200ResponseFromJSON, } from '../models/ListModelReadmeDrifts200Response';
|
|
28
30
|
import { ListModels200ResponseFromJSON, } from '../models/ListModels200Response';
|
|
29
31
|
/**
|
|
30
32
|
*
|
|
@@ -122,6 +124,58 @@ export class ModelsApi extends runtime.BaseAPI {
|
|
|
122
124
|
return yield response.value();
|
|
123
125
|
});
|
|
124
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* Creates request options for getModelReadmeAt without sending the request
|
|
129
|
+
*/
|
|
130
|
+
getModelReadmeAtRequestOpts(requestParameters) {
|
|
131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
132
|
+
if (requestParameters['id'] == null) {
|
|
133
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getModelReadmeAt().');
|
|
134
|
+
}
|
|
135
|
+
if (requestParameters['commit'] == null) {
|
|
136
|
+
throw new runtime.RequiredError('commit', 'Required parameter "commit" was null or undefined when calling getModelReadmeAt().');
|
|
137
|
+
}
|
|
138
|
+
const queryParameters = {};
|
|
139
|
+
const headerParameters = {};
|
|
140
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
141
|
+
const token = this.configuration.accessToken;
|
|
142
|
+
const tokenString = yield token("bearerAuth", []);
|
|
143
|
+
if (tokenString) {
|
|
144
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
let urlPath = `/api/v1/models/{id}/readme-at/{commit}`;
|
|
148
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
149
|
+
urlPath = urlPath.replace('{commit}', encodeURIComponent(String(requestParameters['commit'])));
|
|
150
|
+
return {
|
|
151
|
+
path: urlPath,
|
|
152
|
+
method: 'GET',
|
|
153
|
+
headers: headerParameters,
|
|
154
|
+
query: queryParameters,
|
|
155
|
+
};
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Cost: 10 credits, flat. The wayback-machine leg of the change-stream. Returns the exact README content for one model at one commit sha — used after spotting a suspicious drift on GET /api/v1/models/{id}/drifts.
|
|
160
|
+
* README content at one commit (wayback)
|
|
161
|
+
*/
|
|
162
|
+
getModelReadmeAtRaw(requestParameters, initOverrides) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
const requestOptions = yield this.getModelReadmeAtRequestOpts(requestParameters);
|
|
165
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
166
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetModelReadmeAt200ResponseFromJSON(jsonValue));
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Cost: 10 credits, flat. The wayback-machine leg of the change-stream. Returns the exact README content for one model at one commit sha — used after spotting a suspicious drift on GET /api/v1/models/{id}/drifts.
|
|
171
|
+
* README content at one commit (wayback)
|
|
172
|
+
*/
|
|
173
|
+
getModelReadmeAt(requestParameters, initOverrides) {
|
|
174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
+
const response = yield this.getModelReadmeAtRaw(requestParameters, initOverrides);
|
|
176
|
+
return yield response.value();
|
|
177
|
+
});
|
|
178
|
+
}
|
|
125
179
|
/**
|
|
126
180
|
* Creates request options for listDelistedModels without sending the request
|
|
127
181
|
*/
|
|
@@ -237,6 +291,63 @@ export class ModelsApi extends runtime.BaseAPI {
|
|
|
237
291
|
return yield response.value();
|
|
238
292
|
});
|
|
239
293
|
}
|
|
294
|
+
/**
|
|
295
|
+
* Creates request options for listModelReadmeDrifts without sending the request
|
|
296
|
+
*/
|
|
297
|
+
listModelReadmeDriftsRequestOpts(requestParameters) {
|
|
298
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
299
|
+
if (requestParameters['id'] == null) {
|
|
300
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling listModelReadmeDrifts().');
|
|
301
|
+
}
|
|
302
|
+
const queryParameters = {};
|
|
303
|
+
if (requestParameters['sinceTs'] != null) {
|
|
304
|
+
queryParameters['since_ts'] = requestParameters['sinceTs'];
|
|
305
|
+
}
|
|
306
|
+
if (requestParameters['limit'] != null) {
|
|
307
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
308
|
+
}
|
|
309
|
+
if (requestParameters['offset'] != null) {
|
|
310
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
311
|
+
}
|
|
312
|
+
const headerParameters = {};
|
|
313
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
314
|
+
const token = this.configuration.accessToken;
|
|
315
|
+
const tokenString = yield token("bearerAuth", []);
|
|
316
|
+
if (tokenString) {
|
|
317
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
let urlPath = `/api/v1/models/{id}/drifts`;
|
|
321
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
322
|
+
return {
|
|
323
|
+
path: urlPath,
|
|
324
|
+
method: 'GET',
|
|
325
|
+
headers: headerParameters,
|
|
326
|
+
query: queryParameters,
|
|
327
|
+
};
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Cost: 5 credits, flat. Every commit that changed the model\'s README on HF, with `size_delta` between commits so a consumer spots growth spurts and hard prunes without fetching each version. Poll with `since_ts=<max commit_ts of your previous run>` for an incremental drift feed.
|
|
332
|
+
* README drift stream for one model
|
|
333
|
+
*/
|
|
334
|
+
listModelReadmeDriftsRaw(requestParameters, initOverrides) {
|
|
335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
336
|
+
const requestOptions = yield this.listModelReadmeDriftsRequestOpts(requestParameters);
|
|
337
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
338
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListModelReadmeDrifts200ResponseFromJSON(jsonValue));
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Cost: 5 credits, flat. Every commit that changed the model\'s README on HF, with `size_delta` between commits so a consumer spots growth spurts and hard prunes without fetching each version. Poll with `since_ts=<max commit_ts of your previous run>` for an incremental drift feed.
|
|
343
|
+
* README drift stream for one model
|
|
344
|
+
*/
|
|
345
|
+
listModelReadmeDrifts(requestParameters, initOverrides) {
|
|
346
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
347
|
+
const response = yield this.listModelReadmeDriftsRaw(requestParameters, initOverrides);
|
|
348
|
+
return yield response.value();
|
|
349
|
+
});
|
|
350
|
+
}
|
|
240
351
|
/**
|
|
241
352
|
* Creates request options for listModels without sending the request
|
|
242
353
|
*/
|
|
@@ -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,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 { ReadmeAtFromJSON, ReadmeAtToJSON, } from './ReadmeAt';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const GetModelReadmeAt200ResponseMeteringEnum = {
|
|
19
|
+
Preview: 'preview',
|
|
20
|
+
Billed: 'billed',
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetModelReadmeAt200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfGetModelReadmeAt200Response(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 GetModelReadmeAt200ResponseFromJSON(json) {
|
|
45
|
+
return GetModelReadmeAt200ResponseFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function GetModelReadmeAt200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'data': ReadmeAtFromJSON(json['data']),
|
|
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 GetModelReadmeAt200ResponseToJSON(json) {
|
|
63
|
+
return GetModelReadmeAt200ResponseToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
export function GetModelReadmeAt200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'data': ReadmeAtToJSON(value['data']),
|
|
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 { ReadmeDrift } from './ReadmeDrift';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListModelReadmeDrifts200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ListModelReadmeDrifts200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
data: Array<ReadmeDrift>;
|
|
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: ListModelReadmeDrifts200ResponseMeteringEnum;
|
|
47
|
+
/**
|
|
48
|
+
* Also returned in the x-request-id header.
|
|
49
|
+
*/
|
|
50
|
+
request_id: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const ListModelReadmeDrifts200ResponseMeteringEnum: {
|
|
56
|
+
readonly Preview: "preview";
|
|
57
|
+
readonly Billed: "billed";
|
|
58
|
+
};
|
|
59
|
+
export type ListModelReadmeDrifts200ResponseMeteringEnum = typeof ListModelReadmeDrifts200ResponseMeteringEnum[keyof typeof ListModelReadmeDrifts200ResponseMeteringEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ListModelReadmeDrifts200Response interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfListModelReadmeDrifts200Response(value: object): value is ListModelReadmeDrifts200Response;
|
|
64
|
+
export declare function ListModelReadmeDrifts200ResponseFromJSON(json: any): ListModelReadmeDrifts200Response;
|
|
65
|
+
export declare function ListModelReadmeDrifts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListModelReadmeDrifts200Response;
|
|
66
|
+
export declare function ListModelReadmeDrifts200ResponseToJSON(json: any): ListModelReadmeDrifts200Response;
|
|
67
|
+
export declare function ListModelReadmeDrifts200ResponseToJSONTyped(value?: ListModelReadmeDrifts200Response | 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 { ReadmeDriftFromJSON, ReadmeDriftToJSON, } from './ReadmeDrift';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ListModelReadmeDrifts200ResponseMeteringEnum = {
|
|
19
|
+
Preview: 'preview',
|
|
20
|
+
Billed: 'billed',
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ListModelReadmeDrifts200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfListModelReadmeDrifts200Response(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 ListModelReadmeDrifts200ResponseFromJSON(json) {
|
|
45
|
+
return ListModelReadmeDrifts200ResponseFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function ListModelReadmeDrifts200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'data': (json['data'].map(ReadmeDriftFromJSON)),
|
|
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 ListModelReadmeDrifts200ResponseToJSON(json) {
|
|
63
|
+
return ListModelReadmeDrifts200ResponseToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
export function ListModelReadmeDrifts200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'data': (value['data'].map(ReadmeDriftToJSON)),
|
|
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,38 @@
|
|
|
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
|
+
* Wayback-machine view: full README content at one commit.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ReadmeAt
|
|
16
|
+
*/
|
|
17
|
+
export interface ReadmeAt {
|
|
18
|
+
/**
|
|
19
|
+
* Model id (author/name).
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Commit sha (echoes the path param).
|
|
24
|
+
*/
|
|
25
|
+
commit?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Full README markdown at that commit. Up to ~100KB.
|
|
28
|
+
*/
|
|
29
|
+
content?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ReadmeAt interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfReadmeAt(value: object): value is ReadmeAt;
|
|
35
|
+
export declare function ReadmeAtFromJSON(json: any): ReadmeAt;
|
|
36
|
+
export declare function ReadmeAtFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadmeAt;
|
|
37
|
+
export declare function ReadmeAtToJSON(json: any): ReadmeAt;
|
|
38
|
+
export declare function ReadmeAtToJSONTyped(value?: ReadmeAt | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 ReadmeAt interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfReadmeAt(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ReadmeAtFromJSON(json) {
|
|
21
|
+
return ReadmeAtFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ReadmeAtFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'commit': json['commit'] == null ? undefined : json['commit'],
|
|
30
|
+
'content': json['content'] == null ? undefined : json['content'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function ReadmeAtToJSON(json) {
|
|
34
|
+
return ReadmeAtToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ReadmeAtToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': value['id'],
|
|
42
|
+
'commit': value['commit'],
|
|
43
|
+
'content': value['content'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 commit that changed the model's README on HF.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ReadmeDrift
|
|
16
|
+
*/
|
|
17
|
+
export interface ReadmeDrift {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
commit_sha?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Unix epoch seconds.
|
|
24
|
+
*/
|
|
25
|
+
commit_ts?: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
commit_message?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* README byte size at this commit.
|
|
32
|
+
*/
|
|
33
|
+
content_size?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Bytes added (positive) or removed (negative) since the previous commit. First commit gets 0.
|
|
36
|
+
*/
|
|
37
|
+
size_delta?: number;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the ReadmeDrift interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfReadmeDrift(value: object): value is ReadmeDrift;
|
|
43
|
+
export declare function ReadmeDriftFromJSON(json: any): ReadmeDrift;
|
|
44
|
+
export declare function ReadmeDriftFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadmeDrift;
|
|
45
|
+
export declare function ReadmeDriftToJSON(json: any): ReadmeDrift;
|
|
46
|
+
export declare function ReadmeDriftToJSONTyped(value?: ReadmeDrift | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 ReadmeDrift interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfReadmeDrift(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ReadmeDriftFromJSON(json) {
|
|
21
|
+
return ReadmeDriftFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ReadmeDriftFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'commit_sha': json['commit_sha'] == null ? undefined : json['commit_sha'],
|
|
29
|
+
'commit_ts': json['commit_ts'] == null ? undefined : json['commit_ts'],
|
|
30
|
+
'commit_message': json['commit_message'] === undefined ? undefined : json['commit_message'] === null ? null : json['commit_message'],
|
|
31
|
+
'content_size': json['content_size'] == null ? undefined : json['content_size'],
|
|
32
|
+
'size_delta': json['size_delta'] == null ? undefined : json['size_delta'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function ReadmeDriftToJSON(json) {
|
|
36
|
+
return ReadmeDriftToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function ReadmeDriftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'commit_sha': value['commit_sha'],
|
|
44
|
+
'commit_ts': value['commit_ts'],
|
|
45
|
+
'commit_message': value['commit_message'],
|
|
46
|
+
'content_size': value['content_size'],
|
|
47
|
+
'size_delta': value['size_delta'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -15,6 +15,7 @@ export * from './GetHistoricalDeletionSummary200Response';
|
|
|
15
15
|
export * from './GetIndex200Response';
|
|
16
16
|
export * from './GetMethod200Response';
|
|
17
17
|
export * from './GetModel200Response';
|
|
18
|
+
export * from './GetModelReadmeAt200Response';
|
|
18
19
|
export * from './HistoricalDeletion';
|
|
19
20
|
export * from './IndexDetail';
|
|
20
21
|
export * from './ListAuthors200Response';
|
|
@@ -23,6 +24,7 @@ export * from './ListDelistedModels200Response';
|
|
|
23
24
|
export * from './ListHistoricalDeletions200Response';
|
|
24
25
|
export * from './ListIndices200Response';
|
|
25
26
|
export * from './ListMethods200Response';
|
|
27
|
+
export * from './ListModelReadmeDrifts200Response';
|
|
26
28
|
export * from './ListModels200Response';
|
|
27
29
|
export * from './ListTimeline200Response';
|
|
28
30
|
export * from './Method';
|
|
@@ -33,3 +35,5 @@ export * from './ModelError';
|
|
|
33
35
|
export * from './ModelIndex';
|
|
34
36
|
export * from './ModelSummary';
|
|
35
37
|
export * from './Passport';
|
|
38
|
+
export * from './ReadmeAt';
|
|
39
|
+
export * from './ReadmeDrift';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -17,6 +17,7 @@ export * from './GetHistoricalDeletionSummary200Response';
|
|
|
17
17
|
export * from './GetIndex200Response';
|
|
18
18
|
export * from './GetMethod200Response';
|
|
19
19
|
export * from './GetModel200Response';
|
|
20
|
+
export * from './GetModelReadmeAt200Response';
|
|
20
21
|
export * from './HistoricalDeletion';
|
|
21
22
|
export * from './IndexDetail';
|
|
22
23
|
export * from './ListAuthors200Response';
|
|
@@ -25,6 +26,7 @@ export * from './ListDelistedModels200Response';
|
|
|
25
26
|
export * from './ListHistoricalDeletions200Response';
|
|
26
27
|
export * from './ListIndices200Response';
|
|
27
28
|
export * from './ListMethods200Response';
|
|
29
|
+
export * from './ListModelReadmeDrifts200Response';
|
|
28
30
|
export * from './ListModels200Response';
|
|
29
31
|
export * from './ListTimeline200Response';
|
|
30
32
|
export * from './Method';
|
|
@@ -35,3 +37,5 @@ export * from './ModelError';
|
|
|
35
37
|
export * from './ModelIndex';
|
|
36
38
|
export * from './ModelSummary';
|
|
37
39
|
export * from './Passport';
|
|
40
|
+
export * from './ReadmeAt';
|
|
41
|
+
export * from './ReadmeDrift';
|