@abliteration/sdk 0.1.0 → 0.1.2
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 +76 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +140 -49
- package/dist/apis/AuthorsApi.d.ts +11 -3
- package/dist/apis/AuthorsApi.js +8 -0
- package/dist/apis/DatasetsApi.d.ts +9 -3
- package/dist/apis/DatasetsApi.js +6 -0
- package/dist/apis/IndicesApi.d.ts +9 -3
- package/dist/apis/IndicesApi.js +6 -0
- package/dist/apis/ModelsApi.d.ts +9 -3
- package/dist/apis/ModelsApi.js +6 -0
- package/dist/esm/apis/AuthorsApi.d.ts +11 -3
- package/dist/esm/apis/AuthorsApi.js +8 -0
- package/dist/esm/apis/DatasetsApi.d.ts +9 -3
- package/dist/esm/apis/DatasetsApi.js +6 -0
- package/dist/esm/apis/IndicesApi.d.ts +9 -3
- package/dist/esm/apis/IndicesApi.js +6 -0
- package/dist/esm/apis/ModelsApi.d.ts +9 -3
- package/dist/esm/apis/ModelsApi.js +6 -0
- package/dist/esm/models/Author.d.ts +4 -0
- package/dist/esm/models/Author.js +2 -0
- package/dist/esm/models/AuthorDetail.d.ts +4 -0
- package/dist/esm/models/AuthorDetail.js +2 -0
- package/dist/esm/models/Dataset.d.ts +45 -1
- package/dist/esm/models/Dataset.js +22 -0
- package/dist/esm/models/DatasetDetail.d.ts +85 -2
- package/dist/esm/models/DatasetDetail.js +52 -2
- package/dist/esm/models/ModelDetail.d.ts +173 -1
- package/dist/esm/models/ModelDetail.js +2 -2
- package/dist/models/Author.d.ts +4 -0
- package/dist/models/Author.js +2 -0
- package/dist/models/AuthorDetail.d.ts +4 -0
- package/dist/models/AuthorDetail.js +2 -0
- package/dist/models/Dataset.d.ts +45 -1
- package/dist/models/Dataset.js +22 -0
- package/dist/models/DatasetDetail.d.ts +85 -2
- package/dist/models/DatasetDetail.js +52 -2
- package/dist/models/ModelDetail.d.ts +173 -1
- package/dist/models/ModelDetail.js +2 -2
- package/docs/Author.md +44 -0
- package/docs/AuthorDetail.md +46 -0
- package/docs/AuthorsApi.md +167 -0
- package/docs/DaiPoint.md +38 -0
- package/docs/Dataset.md +76 -0
- package/docs/DatasetDetail.md +80 -0
- package/docs/DatasetsApi.md +176 -0
- package/docs/Envelope.md +48 -0
- package/docs/Event.md +46 -0
- package/docs/GetAuthor200Response.md +48 -0
- package/docs/GetDataset200Response.md +48 -0
- package/docs/GetIndex200Response.md +48 -0
- package/docs/GetMethod200Response.md +48 -0
- package/docs/GetModel200Response.md +48 -0
- package/docs/IndexDetail.md +54 -0
- package/docs/IndicesApi.md +153 -0
- package/docs/ListAuthors200Response.md +48 -0
- package/docs/ListDatasets200Response.md +48 -0
- package/docs/ListIndices200Response.md +48 -0
- package/docs/ListMethods200Response.md +48 -0
- package/docs/ListModels200Response.md +48 -0
- package/docs/ListTimeline200Response.md +48 -0
- package/docs/Method.md +44 -0
- package/docs/MethodDetail.md +50 -0
- package/docs/MethodDetailAllOfTopAuthors.md +36 -0
- package/docs/MethodsApi.md +153 -0
- package/docs/ModelDetail.md +131 -0
- package/docs/ModelError.md +42 -0
- package/docs/ModelIndex.md +52 -0
- package/docs/ModelSummary.md +58 -0
- package/docs/ModelsApi.md +191 -0
- package/docs/Passport.md +38 -0
- package/docs/TimelineApi.md +93 -0
- package/openapi-generator-config.json +10 -0
- package/package.json +14 -16
- package/src/apis/AuthorsApi.ts +248 -0
- package/src/apis/DatasetsApi.ts +278 -0
- package/src/apis/IndicesApi.ts +213 -0
- package/src/apis/MethodsApi.ts +214 -0
- package/src/apis/ModelsApi.ts +328 -0
- package/src/apis/TimelineApi.ts +148 -0
- package/src/apis/index.ts +8 -0
- package/src/index.ts +5 -0
- package/src/models/Author.ts +93 -0
- package/src/models/AuthorDetail.ts +107 -0
- package/src/models/DaiPoint.ts +75 -0
- package/src/models/Dataset.ts +189 -0
- package/src/models/DatasetDetail.ts +209 -0
- package/src/models/Envelope.ts +124 -0
- package/src/models/Event.ts +99 -0
- package/src/models/GetAuthor200Response.ts +132 -0
- package/src/models/GetDataset200Response.ts +132 -0
- package/src/models/GetIndex200Response.ts +132 -0
- package/src/models/GetMethod200Response.ts +132 -0
- package/src/models/GetModel200Response.ts +132 -0
- package/src/models/IndexDetail.ts +153 -0
- package/src/models/ListAuthors200Response.ts +132 -0
- package/src/models/ListDatasets200Response.ts +132 -0
- package/src/models/ListIndices200Response.ts +132 -0
- package/src/models/ListMethods200Response.ts +132 -0
- package/src/models/ListModels200Response.ts +132 -0
- package/src/models/ListTimeline200Response.ts +132 -0
- package/src/models/Method.ts +106 -0
- package/src/models/MethodDetail.ts +139 -0
- package/src/models/MethodDetailAllOfTopAuthors.ts +69 -0
- package/src/models/ModelDetail.ts +362 -0
- package/src/models/ModelError.ts +89 -0
- package/src/models/ModelIndex.ts +147 -0
- package/src/models/ModelSummary.ts +135 -0
- package/src/models/Passport.ts +75 -0
- package/src/models/index.ts +29 -0
- package/src/runtime.ts +505 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { MethodDetail } from './MethodDetail';
|
|
17
|
+
import {
|
|
18
|
+
MethodDetailFromJSON,
|
|
19
|
+
MethodDetailFromJSONTyped,
|
|
20
|
+
MethodDetailToJSON,
|
|
21
|
+
MethodDetailToJSONTyped,
|
|
22
|
+
} from './MethodDetail';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetMethod200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface GetMethod200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
data: MethodDetail;
|
|
34
|
+
/**
|
|
35
|
+
* Credits this call costs.
|
|
36
|
+
*/
|
|
37
|
+
cost: number;
|
|
38
|
+
/**
|
|
39
|
+
* Wallet balance after the call. Unchanged while metering is preview.
|
|
40
|
+
*/
|
|
41
|
+
credits_remaining: number;
|
|
42
|
+
/**
|
|
43
|
+
* Ceiling for the current window. Also returned as X-RateLimit-Limit.
|
|
44
|
+
*/
|
|
45
|
+
rate_limit_limit: number;
|
|
46
|
+
/**
|
|
47
|
+
* Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
|
|
48
|
+
*/
|
|
49
|
+
rate_limit_remaining: number;
|
|
50
|
+
/**
|
|
51
|
+
* Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
|
|
52
|
+
*/
|
|
53
|
+
rate_limit_reset: number;
|
|
54
|
+
/**
|
|
55
|
+
* Whether cost was actually deducted.
|
|
56
|
+
*/
|
|
57
|
+
metering: GetMethod200ResponseMeteringEnum;
|
|
58
|
+
/**
|
|
59
|
+
* Also returned in the x-request-id header.
|
|
60
|
+
*/
|
|
61
|
+
request_id: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @export
|
|
67
|
+
*/
|
|
68
|
+
export const GetMethod200ResponseMeteringEnum = {
|
|
69
|
+
Preview: 'preview',
|
|
70
|
+
Billed: 'billed',
|
|
71
|
+
} as const;
|
|
72
|
+
export type GetMethod200ResponseMeteringEnum = typeof GetMethod200ResponseMeteringEnum[keyof typeof GetMethod200ResponseMeteringEnum];
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the GetMethod200Response interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfGetMethod200Response(value: object): value is GetMethod200Response {
|
|
79
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
80
|
+
if (!('cost' in value) || value['cost'] === undefined) return false;
|
|
81
|
+
if (!('credits_remaining' in value) || value['credits_remaining'] === undefined) return false;
|
|
82
|
+
if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined) return false;
|
|
83
|
+
if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined) return false;
|
|
84
|
+
if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined) return false;
|
|
85
|
+
if (!('metering' in value) || value['metering'] === undefined) return false;
|
|
86
|
+
if (!('request_id' in value) || value['request_id'] === undefined) return false;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function GetMethod200ResponseFromJSON(json: any): GetMethod200Response {
|
|
91
|
+
return GetMethod200ResponseFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function GetMethod200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMethod200Response {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'data': MethodDetailFromJSON(json['data']),
|
|
101
|
+
'cost': json['cost'],
|
|
102
|
+
'credits_remaining': json['credits_remaining'],
|
|
103
|
+
'rate_limit_limit': json['rate_limit_limit'],
|
|
104
|
+
'rate_limit_remaining': json['rate_limit_remaining'],
|
|
105
|
+
'rate_limit_reset': json['rate_limit_reset'],
|
|
106
|
+
'metering': json['metering'],
|
|
107
|
+
'request_id': json['request_id'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function GetMethod200ResponseToJSON(json: any): GetMethod200Response {
|
|
112
|
+
return GetMethod200ResponseToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function GetMethod200ResponseToJSONTyped(value?: GetMethod200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
116
|
+
if (value == null) {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'data': MethodDetailToJSON(value['data']),
|
|
123
|
+
'cost': value['cost'],
|
|
124
|
+
'credits_remaining': value['credits_remaining'],
|
|
125
|
+
'rate_limit_limit': value['rate_limit_limit'],
|
|
126
|
+
'rate_limit_remaining': value['rate_limit_remaining'],
|
|
127
|
+
'rate_limit_reset': value['rate_limit_reset'],
|
|
128
|
+
'metering': value['metering'],
|
|
129
|
+
'request_id': value['request_id'],
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ModelDetail } from './ModelDetail';
|
|
17
|
+
import {
|
|
18
|
+
ModelDetailFromJSON,
|
|
19
|
+
ModelDetailFromJSONTyped,
|
|
20
|
+
ModelDetailToJSON,
|
|
21
|
+
ModelDetailToJSONTyped,
|
|
22
|
+
} from './ModelDetail';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetModel200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface GetModel200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
data: ModelDetail;
|
|
34
|
+
/**
|
|
35
|
+
* Credits this call costs.
|
|
36
|
+
*/
|
|
37
|
+
cost: number;
|
|
38
|
+
/**
|
|
39
|
+
* Wallet balance after the call. Unchanged while metering is preview.
|
|
40
|
+
*/
|
|
41
|
+
credits_remaining: number;
|
|
42
|
+
/**
|
|
43
|
+
* Ceiling for the current window. Also returned as X-RateLimit-Limit.
|
|
44
|
+
*/
|
|
45
|
+
rate_limit_limit: number;
|
|
46
|
+
/**
|
|
47
|
+
* Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
|
|
48
|
+
*/
|
|
49
|
+
rate_limit_remaining: number;
|
|
50
|
+
/**
|
|
51
|
+
* Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
|
|
52
|
+
*/
|
|
53
|
+
rate_limit_reset: number;
|
|
54
|
+
/**
|
|
55
|
+
* Whether cost was actually deducted.
|
|
56
|
+
*/
|
|
57
|
+
metering: GetModel200ResponseMeteringEnum;
|
|
58
|
+
/**
|
|
59
|
+
* Also returned in the x-request-id header.
|
|
60
|
+
*/
|
|
61
|
+
request_id: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @export
|
|
67
|
+
*/
|
|
68
|
+
export const GetModel200ResponseMeteringEnum = {
|
|
69
|
+
Preview: 'preview',
|
|
70
|
+
Billed: 'billed',
|
|
71
|
+
} as const;
|
|
72
|
+
export type GetModel200ResponseMeteringEnum = typeof GetModel200ResponseMeteringEnum[keyof typeof GetModel200ResponseMeteringEnum];
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the GetModel200Response interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfGetModel200Response(value: object): value is GetModel200Response {
|
|
79
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
80
|
+
if (!('cost' in value) || value['cost'] === undefined) return false;
|
|
81
|
+
if (!('credits_remaining' in value) || value['credits_remaining'] === undefined) return false;
|
|
82
|
+
if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined) return false;
|
|
83
|
+
if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined) return false;
|
|
84
|
+
if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined) return false;
|
|
85
|
+
if (!('metering' in value) || value['metering'] === undefined) return false;
|
|
86
|
+
if (!('request_id' in value) || value['request_id'] === undefined) return false;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function GetModel200ResponseFromJSON(json: any): GetModel200Response {
|
|
91
|
+
return GetModel200ResponseFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function GetModel200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModel200Response {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'data': ModelDetailFromJSON(json['data']),
|
|
101
|
+
'cost': json['cost'],
|
|
102
|
+
'credits_remaining': json['credits_remaining'],
|
|
103
|
+
'rate_limit_limit': json['rate_limit_limit'],
|
|
104
|
+
'rate_limit_remaining': json['rate_limit_remaining'],
|
|
105
|
+
'rate_limit_reset': json['rate_limit_reset'],
|
|
106
|
+
'metering': json['metering'],
|
|
107
|
+
'request_id': json['request_id'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function GetModel200ResponseToJSON(json: any): GetModel200Response {
|
|
112
|
+
return GetModel200ResponseToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function GetModel200ResponseToJSONTyped(value?: GetModel200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
116
|
+
if (value == null) {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'data': ModelDetailToJSON(value['data']),
|
|
123
|
+
'cost': value['cost'],
|
|
124
|
+
'credits_remaining': value['credits_remaining'],
|
|
125
|
+
'rate_limit_limit': value['rate_limit_limit'],
|
|
126
|
+
'rate_limit_remaining': value['rate_limit_remaining'],
|
|
127
|
+
'rate_limit_reset': value['rate_limit_reset'],
|
|
128
|
+
'metering': value['metering'],
|
|
129
|
+
'request_id': value['request_id'],
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
@@ -0,0 +1,153 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { DaiPoint } from './DaiPoint';
|
|
17
|
+
import {
|
|
18
|
+
DaiPointFromJSON,
|
|
19
|
+
DaiPointFromJSONTyped,
|
|
20
|
+
DaiPointToJSON,
|
|
21
|
+
DaiPointToJSONTyped,
|
|
22
|
+
} from './DaiPoint';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface IndexDetail
|
|
28
|
+
*/
|
|
29
|
+
export interface IndexDetail {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
id?: IndexDetailIdEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
name?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
value?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
unit?: IndexDetailUnitEnum;
|
|
46
|
+
/**
|
|
47
|
+
* False when the value is a placeholder constant rather than a measurement.
|
|
48
|
+
*/
|
|
49
|
+
measured?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Where the number is produced.
|
|
52
|
+
*/
|
|
53
|
+
source?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
history_available?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
as_of?: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
note?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
recent_history?: Array<DaiPoint>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
history?: Array<DaiPoint>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @export
|
|
79
|
+
*/
|
|
80
|
+
export const IndexDetailIdEnum = {
|
|
81
|
+
Dai: 'dai',
|
|
82
|
+
FreedomVelocity: 'freedom-velocity',
|
|
83
|
+
Weaponization: 'weaponization',
|
|
84
|
+
F2wLatency: 'f2w-latency',
|
|
85
|
+
} as const;
|
|
86
|
+
export type IndexDetailIdEnum = typeof IndexDetailIdEnum[keyof typeof IndexDetailIdEnum];
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export const IndexDetailUnitEnum = {
|
|
92
|
+
Percent: 'percent',
|
|
93
|
+
Days: 'days',
|
|
94
|
+
} as const;
|
|
95
|
+
export type IndexDetailUnitEnum = typeof IndexDetailUnitEnum[keyof typeof IndexDetailUnitEnum];
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the IndexDetail interface.
|
|
100
|
+
*/
|
|
101
|
+
export function instanceOfIndexDetail(value: object): value is IndexDetail {
|
|
102
|
+
return true;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function IndexDetailFromJSON(json: any): IndexDetail {
|
|
106
|
+
return IndexDetailFromJSONTyped(json, false);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function IndexDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexDetail {
|
|
110
|
+
if (json == null) {
|
|
111
|
+
return json;
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
|
|
115
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
116
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
117
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
118
|
+
'unit': json['unit'] == null ? undefined : json['unit'],
|
|
119
|
+
'measured': json['measured'] == null ? undefined : json['measured'],
|
|
120
|
+
'source': json['source'] == null ? undefined : json['source'],
|
|
121
|
+
'history_available': json['history_available'] == null ? undefined : json['history_available'],
|
|
122
|
+
'as_of': json['as_of'] == null ? undefined : json['as_of'],
|
|
123
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
124
|
+
'recent_history': json['recent_history'] == null ? undefined : ((json['recent_history'] as Array<any>).map(DaiPointFromJSON)),
|
|
125
|
+
'history': json['history'] == null ? undefined : ((json['history'] as Array<any>).map(DaiPointFromJSON)),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function IndexDetailToJSON(json: any): IndexDetail {
|
|
130
|
+
return IndexDetailToJSONTyped(json, false);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function IndexDetailToJSONTyped(value?: IndexDetail | null, ignoreDiscriminator: boolean = false): any {
|
|
134
|
+
if (value == null) {
|
|
135
|
+
return value;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
return {
|
|
139
|
+
|
|
140
|
+
'id': value['id'],
|
|
141
|
+
'name': value['name'],
|
|
142
|
+
'value': value['value'],
|
|
143
|
+
'unit': value['unit'],
|
|
144
|
+
'measured': value['measured'],
|
|
145
|
+
'source': value['source'],
|
|
146
|
+
'history_available': value['history_available'],
|
|
147
|
+
'as_of': value['as_of'],
|
|
148
|
+
'note': value['note'],
|
|
149
|
+
'recent_history': value['recent_history'] == null ? undefined : ((value['recent_history'] as Array<any>).map(DaiPointToJSON)),
|
|
150
|
+
'history': value['history'] == null ? undefined : ((value['history'] as Array<any>).map(DaiPointToJSON)),
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Author } from './Author';
|
|
17
|
+
import {
|
|
18
|
+
AuthorFromJSON,
|
|
19
|
+
AuthorFromJSONTyped,
|
|
20
|
+
AuthorToJSON,
|
|
21
|
+
AuthorToJSONTyped,
|
|
22
|
+
} from './Author';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ListAuthors200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ListAuthors200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
data: Array<Author>;
|
|
34
|
+
/**
|
|
35
|
+
* Credits this call costs.
|
|
36
|
+
*/
|
|
37
|
+
cost: number;
|
|
38
|
+
/**
|
|
39
|
+
* Wallet balance after the call. Unchanged while metering is preview.
|
|
40
|
+
*/
|
|
41
|
+
credits_remaining: number;
|
|
42
|
+
/**
|
|
43
|
+
* Ceiling for the current window. Also returned as X-RateLimit-Limit.
|
|
44
|
+
*/
|
|
45
|
+
rate_limit_limit: number;
|
|
46
|
+
/**
|
|
47
|
+
* Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
|
|
48
|
+
*/
|
|
49
|
+
rate_limit_remaining: number;
|
|
50
|
+
/**
|
|
51
|
+
* Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
|
|
52
|
+
*/
|
|
53
|
+
rate_limit_reset: number;
|
|
54
|
+
/**
|
|
55
|
+
* Whether cost was actually deducted.
|
|
56
|
+
*/
|
|
57
|
+
metering: ListAuthors200ResponseMeteringEnum;
|
|
58
|
+
/**
|
|
59
|
+
* Also returned in the x-request-id header.
|
|
60
|
+
*/
|
|
61
|
+
request_id: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @export
|
|
67
|
+
*/
|
|
68
|
+
export const ListAuthors200ResponseMeteringEnum = {
|
|
69
|
+
Preview: 'preview',
|
|
70
|
+
Billed: 'billed',
|
|
71
|
+
} as const;
|
|
72
|
+
export type ListAuthors200ResponseMeteringEnum = typeof ListAuthors200ResponseMeteringEnum[keyof typeof ListAuthors200ResponseMeteringEnum];
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the ListAuthors200Response interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfListAuthors200Response(value: object): value is ListAuthors200Response {
|
|
79
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
80
|
+
if (!('cost' in value) || value['cost'] === undefined) return false;
|
|
81
|
+
if (!('credits_remaining' in value) || value['credits_remaining'] === undefined) return false;
|
|
82
|
+
if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined) return false;
|
|
83
|
+
if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined) return false;
|
|
84
|
+
if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined) return false;
|
|
85
|
+
if (!('metering' in value) || value['metering'] === undefined) return false;
|
|
86
|
+
if (!('request_id' in value) || value['request_id'] === undefined) return false;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ListAuthors200ResponseFromJSON(json: any): ListAuthors200Response {
|
|
91
|
+
return ListAuthors200ResponseFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ListAuthors200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAuthors200Response {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'data': ((json['data'] as Array<any>).map(AuthorFromJSON)),
|
|
101
|
+
'cost': json['cost'],
|
|
102
|
+
'credits_remaining': json['credits_remaining'],
|
|
103
|
+
'rate_limit_limit': json['rate_limit_limit'],
|
|
104
|
+
'rate_limit_remaining': json['rate_limit_remaining'],
|
|
105
|
+
'rate_limit_reset': json['rate_limit_reset'],
|
|
106
|
+
'metering': json['metering'],
|
|
107
|
+
'request_id': json['request_id'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function ListAuthors200ResponseToJSON(json: any): ListAuthors200Response {
|
|
112
|
+
return ListAuthors200ResponseToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function ListAuthors200ResponseToJSONTyped(value?: ListAuthors200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
116
|
+
if (value == null) {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'data': ((value['data'] as Array<any>).map(AuthorToJSON)),
|
|
123
|
+
'cost': value['cost'],
|
|
124
|
+
'credits_remaining': value['credits_remaining'],
|
|
125
|
+
'rate_limit_limit': value['rate_limit_limit'],
|
|
126
|
+
'rate_limit_remaining': value['rate_limit_remaining'],
|
|
127
|
+
'rate_limit_reset': value['rate_limit_reset'],
|
|
128
|
+
'metering': value['metering'],
|
|
129
|
+
'request_id': value['request_id'],
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Dataset } from './Dataset';
|
|
17
|
+
import {
|
|
18
|
+
DatasetFromJSON,
|
|
19
|
+
DatasetFromJSONTyped,
|
|
20
|
+
DatasetToJSON,
|
|
21
|
+
DatasetToJSONTyped,
|
|
22
|
+
} from './Dataset';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ListDatasets200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ListDatasets200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
data: Array<Dataset>;
|
|
34
|
+
/**
|
|
35
|
+
* Credits this call costs.
|
|
36
|
+
*/
|
|
37
|
+
cost: number;
|
|
38
|
+
/**
|
|
39
|
+
* Wallet balance after the call. Unchanged while metering is preview.
|
|
40
|
+
*/
|
|
41
|
+
credits_remaining: number;
|
|
42
|
+
/**
|
|
43
|
+
* Ceiling for the current window. Also returned as X-RateLimit-Limit.
|
|
44
|
+
*/
|
|
45
|
+
rate_limit_limit: number;
|
|
46
|
+
/**
|
|
47
|
+
* Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
|
|
48
|
+
*/
|
|
49
|
+
rate_limit_remaining: number;
|
|
50
|
+
/**
|
|
51
|
+
* Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
|
|
52
|
+
*/
|
|
53
|
+
rate_limit_reset: number;
|
|
54
|
+
/**
|
|
55
|
+
* Whether cost was actually deducted.
|
|
56
|
+
*/
|
|
57
|
+
metering: ListDatasets200ResponseMeteringEnum;
|
|
58
|
+
/**
|
|
59
|
+
* Also returned in the x-request-id header.
|
|
60
|
+
*/
|
|
61
|
+
request_id: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @export
|
|
67
|
+
*/
|
|
68
|
+
export const ListDatasets200ResponseMeteringEnum = {
|
|
69
|
+
Preview: 'preview',
|
|
70
|
+
Billed: 'billed',
|
|
71
|
+
} as const;
|
|
72
|
+
export type ListDatasets200ResponseMeteringEnum = typeof ListDatasets200ResponseMeteringEnum[keyof typeof ListDatasets200ResponseMeteringEnum];
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the ListDatasets200Response interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfListDatasets200Response(value: object): value is ListDatasets200Response {
|
|
79
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
80
|
+
if (!('cost' in value) || value['cost'] === undefined) return false;
|
|
81
|
+
if (!('credits_remaining' in value) || value['credits_remaining'] === undefined) return false;
|
|
82
|
+
if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined) return false;
|
|
83
|
+
if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined) return false;
|
|
84
|
+
if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined) return false;
|
|
85
|
+
if (!('metering' in value) || value['metering'] === undefined) return false;
|
|
86
|
+
if (!('request_id' in value) || value['request_id'] === undefined) return false;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ListDatasets200ResponseFromJSON(json: any): ListDatasets200Response {
|
|
91
|
+
return ListDatasets200ResponseFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ListDatasets200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDatasets200Response {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'data': ((json['data'] as Array<any>).map(DatasetFromJSON)),
|
|
101
|
+
'cost': json['cost'],
|
|
102
|
+
'credits_remaining': json['credits_remaining'],
|
|
103
|
+
'rate_limit_limit': json['rate_limit_limit'],
|
|
104
|
+
'rate_limit_remaining': json['rate_limit_remaining'],
|
|
105
|
+
'rate_limit_reset': json['rate_limit_reset'],
|
|
106
|
+
'metering': json['metering'],
|
|
107
|
+
'request_id': json['request_id'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function ListDatasets200ResponseToJSON(json: any): ListDatasets200Response {
|
|
112
|
+
return ListDatasets200ResponseToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function ListDatasets200ResponseToJSONTyped(value?: ListDatasets200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
116
|
+
if (value == null) {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'data': ((value['data'] as Array<any>).map(DatasetToJSON)),
|
|
123
|
+
'cost': value['cost'],
|
|
124
|
+
'credits_remaining': value['credits_remaining'],
|
|
125
|
+
'rate_limit_limit': value['rate_limit_limit'],
|
|
126
|
+
'rate_limit_remaining': value['rate_limit_remaining'],
|
|
127
|
+
'rate_limit_reset': value['rate_limit_reset'],
|
|
128
|
+
'metering': value['metering'],
|
|
129
|
+
'request_id': value['request_id'],
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|