@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
|
@@ -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 { 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,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.ListModelReadmeDrifts200ResponseMeteringEnum = void 0;
|
|
17
|
+
exports.instanceOfListModelReadmeDrifts200Response = instanceOfListModelReadmeDrifts200Response;
|
|
18
|
+
exports.ListModelReadmeDrifts200ResponseFromJSON = ListModelReadmeDrifts200ResponseFromJSON;
|
|
19
|
+
exports.ListModelReadmeDrifts200ResponseFromJSONTyped = ListModelReadmeDrifts200ResponseFromJSONTyped;
|
|
20
|
+
exports.ListModelReadmeDrifts200ResponseToJSON = ListModelReadmeDrifts200ResponseToJSON;
|
|
21
|
+
exports.ListModelReadmeDrifts200ResponseToJSONTyped = ListModelReadmeDrifts200ResponseToJSONTyped;
|
|
22
|
+
const ReadmeDrift_1 = require("./ReadmeDrift");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ListModelReadmeDrifts200ResponseMeteringEnum = {
|
|
27
|
+
Preview: 'preview',
|
|
28
|
+
Billed: 'billed',
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ListModelReadmeDrifts200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfListModelReadmeDrifts200Response(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 ListModelReadmeDrifts200ResponseFromJSON(json) {
|
|
53
|
+
return ListModelReadmeDrifts200ResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function ListModelReadmeDrifts200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'data': (json['data'].map(ReadmeDrift_1.ReadmeDriftFromJSON)),
|
|
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 ListModelReadmeDrifts200ResponseToJSON(json) {
|
|
71
|
+
return ListModelReadmeDrifts200ResponseToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function ListModelReadmeDrifts200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'data': (value['data'].map(ReadmeDrift_1.ReadmeDriftToJSON)),
|
|
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,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,52 @@
|
|
|
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.instanceOfReadmeAt = instanceOfReadmeAt;
|
|
17
|
+
exports.ReadmeAtFromJSON = ReadmeAtFromJSON;
|
|
18
|
+
exports.ReadmeAtFromJSONTyped = ReadmeAtFromJSONTyped;
|
|
19
|
+
exports.ReadmeAtToJSON = ReadmeAtToJSON;
|
|
20
|
+
exports.ReadmeAtToJSONTyped = ReadmeAtToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ReadmeAt interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfReadmeAt(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ReadmeAtFromJSON(json) {
|
|
28
|
+
return ReadmeAtFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ReadmeAtFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'commit': json['commit'] == null ? undefined : json['commit'],
|
|
37
|
+
'content': json['content'] == null ? undefined : json['content'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ReadmeAtToJSON(json) {
|
|
41
|
+
return ReadmeAtToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ReadmeAtToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': value['id'],
|
|
49
|
+
'commit': value['commit'],
|
|
50
|
+
'content': value['content'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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,56 @@
|
|
|
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.instanceOfReadmeDrift = instanceOfReadmeDrift;
|
|
17
|
+
exports.ReadmeDriftFromJSON = ReadmeDriftFromJSON;
|
|
18
|
+
exports.ReadmeDriftFromJSONTyped = ReadmeDriftFromJSONTyped;
|
|
19
|
+
exports.ReadmeDriftToJSON = ReadmeDriftToJSON;
|
|
20
|
+
exports.ReadmeDriftToJSONTyped = ReadmeDriftToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ReadmeDrift interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfReadmeDrift(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ReadmeDriftFromJSON(json) {
|
|
28
|
+
return ReadmeDriftFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ReadmeDriftFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'commit_sha': json['commit_sha'] == null ? undefined : json['commit_sha'],
|
|
36
|
+
'commit_ts': json['commit_ts'] == null ? undefined : json['commit_ts'],
|
|
37
|
+
'commit_message': json['commit_message'] === undefined ? undefined : json['commit_message'] === null ? null : json['commit_message'],
|
|
38
|
+
'content_size': json['content_size'] == null ? undefined : json['content_size'],
|
|
39
|
+
'size_delta': json['size_delta'] == null ? undefined : json['size_delta'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function ReadmeDriftToJSON(json) {
|
|
43
|
+
return ReadmeDriftToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ReadmeDriftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'commit_sha': value['commit_sha'],
|
|
51
|
+
'commit_ts': value['commit_ts'],
|
|
52
|
+
'commit_message': value['commit_message'],
|
|
53
|
+
'content_size': value['content_size'],
|
|
54
|
+
'size_delta': value['size_delta'],
|
|
55
|
+
};
|
|
56
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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/models/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __exportStar(require("./GetHistoricalDeletionSummary200Response"), exports);
|
|
|
33
33
|
__exportStar(require("./GetIndex200Response"), exports);
|
|
34
34
|
__exportStar(require("./GetMethod200Response"), exports);
|
|
35
35
|
__exportStar(require("./GetModel200Response"), exports);
|
|
36
|
+
__exportStar(require("./GetModelReadmeAt200Response"), exports);
|
|
36
37
|
__exportStar(require("./HistoricalDeletion"), exports);
|
|
37
38
|
__exportStar(require("./IndexDetail"), exports);
|
|
38
39
|
__exportStar(require("./ListAuthors200Response"), exports);
|
|
@@ -41,6 +42,7 @@ __exportStar(require("./ListDelistedModels200Response"), exports);
|
|
|
41
42
|
__exportStar(require("./ListHistoricalDeletions200Response"), exports);
|
|
42
43
|
__exportStar(require("./ListIndices200Response"), exports);
|
|
43
44
|
__exportStar(require("./ListMethods200Response"), exports);
|
|
45
|
+
__exportStar(require("./ListModelReadmeDrifts200Response"), exports);
|
|
44
46
|
__exportStar(require("./ListModels200Response"), exports);
|
|
45
47
|
__exportStar(require("./ListTimeline200Response"), exports);
|
|
46
48
|
__exportStar(require("./Method"), exports);
|
|
@@ -51,3 +53,5 @@ __exportStar(require("./ModelError"), exports);
|
|
|
51
53
|
__exportStar(require("./ModelIndex"), exports);
|
|
52
54
|
__exportStar(require("./ModelSummary"), exports);
|
|
53
55
|
__exportStar(require("./Passport"), exports);
|
|
56
|
+
__exportStar(require("./ReadmeAt"), exports);
|
|
57
|
+
__exportStar(require("./ReadmeDrift"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# GetModelReadmeAt200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [ReadmeAt](ReadmeAt.md)
|
|
10
|
+
`cost` | number
|
|
11
|
+
`credits_remaining` | number
|
|
12
|
+
`rate_limit_limit` | number
|
|
13
|
+
`rate_limit_remaining` | number
|
|
14
|
+
`rate_limit_reset` | number
|
|
15
|
+
`metering` | string
|
|
16
|
+
`request_id` | string
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { GetModelReadmeAt200Response } from '@abliteration/sdk'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"data": null,
|
|
26
|
+
"cost": null,
|
|
27
|
+
"credits_remaining": null,
|
|
28
|
+
"rate_limit_limit": null,
|
|
29
|
+
"rate_limit_remaining": null,
|
|
30
|
+
"rate_limit_reset": null,
|
|
31
|
+
"metering": null,
|
|
32
|
+
"request_id": null,
|
|
33
|
+
} satisfies GetModelReadmeAt200Response
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetModelReadmeAt200Response
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
+
|
|
48
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# ListModelReadmeDrifts200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ReadmeDrift>](ReadmeDrift.md)
|
|
10
|
+
`cost` | number
|
|
11
|
+
`credits_remaining` | number
|
|
12
|
+
`rate_limit_limit` | number
|
|
13
|
+
`rate_limit_remaining` | number
|
|
14
|
+
`rate_limit_reset` | number
|
|
15
|
+
`metering` | string
|
|
16
|
+
`request_id` | string
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { ListModelReadmeDrifts200Response } from '@abliteration/sdk'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"data": null,
|
|
26
|
+
"cost": null,
|
|
27
|
+
"credits_remaining": null,
|
|
28
|
+
"rate_limit_limit": null,
|
|
29
|
+
"rate_limit_remaining": null,
|
|
30
|
+
"rate_limit_reset": null,
|
|
31
|
+
"metering": null,
|
|
32
|
+
"request_id": null,
|
|
33
|
+
} satisfies ListModelReadmeDrifts200Response
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as ListModelReadmeDrifts200Response
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
+
|
|
48
|
+
|