@abliteration/sdk 0.1.0
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/README.md +67 -0
- package/dist/apis/AuthorsApi.d.ts +131 -0
- package/dist/apis/AuthorsApi.js +144 -0
- package/dist/apis/DatasetsApi.d.ts +151 -0
- package/dist/apis/DatasetsApi.js +155 -0
- package/dist/apis/IndicesApi.d.ts +111 -0
- package/dist/apis/IndicesApi.js +135 -0
- package/dist/apis/MethodsApi.d.ts +118 -0
- package/dist/apis/MethodsApi.js +142 -0
- package/dist/apis/ModelsApi.d.ts +181 -0
- package/dist/apis/ModelsApi.js +170 -0
- package/dist/apis/TimelineApi.d.ts +85 -0
- package/dist/apis/TimelineApi.js +89 -0
- package/dist/apis/index.d.ts +6 -0
- package/dist/apis/index.js +24 -0
- package/dist/esm/apis/AuthorsApi.d.ts +131 -0
- package/dist/esm/apis/AuthorsApi.js +140 -0
- package/dist/esm/apis/DatasetsApi.d.ts +151 -0
- package/dist/esm/apis/DatasetsApi.js +151 -0
- package/dist/esm/apis/IndicesApi.d.ts +111 -0
- package/dist/esm/apis/IndicesApi.js +131 -0
- package/dist/esm/apis/MethodsApi.d.ts +118 -0
- package/dist/esm/apis/MethodsApi.js +138 -0
- package/dist/esm/apis/ModelsApi.d.ts +181 -0
- package/dist/esm/apis/ModelsApi.js +166 -0
- package/dist/esm/apis/TimelineApi.d.ts +85 -0
- package/dist/esm/apis/TimelineApi.js +85 -0
- package/dist/esm/apis/index.d.ts +6 -0
- package/dist/esm/apis/index.js +8 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/Author.d.ts +46 -0
- package/dist/esm/models/Author.js +49 -0
- package/dist/esm/models/AuthorDetail.d.ts +51 -0
- package/dist/esm/models/AuthorDetail.js +52 -0
- package/dist/esm/models/DaiPoint.d.ts +38 -0
- package/dist/esm/models/DaiPoint.js +45 -0
- package/dist/esm/models/Dataset.d.ts +70 -0
- package/dist/esm/models/Dataset.js +61 -0
- package/dist/esm/models/DatasetDetail.d.ts +40 -0
- package/dist/esm/models/DatasetDetail.js +38 -0
- package/dist/esm/models/Envelope.d.ts +66 -0
- package/dist/esm/models/Envelope.js +78 -0
- package/dist/esm/models/Event.d.ts +54 -0
- package/dist/esm/models/Event.js +53 -0
- package/dist/esm/models/GetAuthor200Response.d.ts +67 -0
- package/dist/esm/models/GetAuthor200Response.js +79 -0
- package/dist/esm/models/GetDataset200Response.d.ts +67 -0
- package/dist/esm/models/GetDataset200Response.js +79 -0
- package/dist/esm/models/GetIndex200Response.d.ts +67 -0
- package/dist/esm/models/GetIndex200Response.js +79 -0
- package/dist/esm/models/GetMethod200Response.d.ts +67 -0
- package/dist/esm/models/GetMethod200Response.js +79 -0
- package/dist/esm/models/GetModel200Response.d.ts +67 -0
- package/dist/esm/models/GetModel200Response.js +79 -0
- package/dist/esm/models/IndexDetail.d.ts +89 -0
- package/dist/esm/models/IndexDetail.js +78 -0
- package/dist/esm/models/ListAuthors200Response.d.ts +67 -0
- package/dist/esm/models/ListAuthors200Response.js +79 -0
- package/dist/esm/models/ListDatasets200Response.d.ts +67 -0
- package/dist/esm/models/ListDatasets200Response.js +79 -0
- package/dist/esm/models/ListIndices200Response.d.ts +67 -0
- package/dist/esm/models/ListIndices200Response.js +79 -0
- package/dist/esm/models/ListMethods200Response.d.ts +67 -0
- package/dist/esm/models/ListMethods200Response.js +79 -0
- package/dist/esm/models/ListModels200Response.d.ts +67 -0
- package/dist/esm/models/ListModels200Response.js +79 -0
- package/dist/esm/models/ListTimeline200Response.d.ts +67 -0
- package/dist/esm/models/ListTimeline200Response.js +79 -0
- package/dist/esm/models/Method.d.ts +60 -0
- package/dist/esm/models/Method.js +60 -0
- package/dist/esm/models/MethodDetail.d.ts +74 -0
- package/dist/esm/models/MethodDetail.js +68 -0
- package/dist/esm/models/MethodDetailAllOfTopAuthors.d.ts +34 -0
- package/dist/esm/models/MethodDetailAllOfTopAuthors.js +43 -0
- package/dist/esm/models/ModelDetail.d.ts +52 -0
- package/dist/esm/models/ModelDetail.js +38 -0
- package/dist/esm/models/ModelError.d.ts +46 -0
- package/dist/esm/models/ModelError.js +53 -0
- package/dist/esm/models/ModelIndex.d.ts +85 -0
- package/dist/esm/models/ModelIndex.js +76 -0
- package/dist/esm/models/ModelSummary.d.ts +78 -0
- package/dist/esm/models/ModelSummary.js +65 -0
- package/dist/esm/models/Passport.d.ts +38 -0
- package/dist/esm/models/Passport.js +45 -0
- package/dist/esm/models/index.d.ts +27 -0
- package/dist/esm/models/index.js +29 -0
- package/dist/esm/runtime.d.ts +196 -0
- package/dist/esm/runtime.js +400 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/Author.d.ts +46 -0
- package/dist/models/Author.js +56 -0
- package/dist/models/AuthorDetail.d.ts +51 -0
- package/dist/models/AuthorDetail.js +59 -0
- package/dist/models/DaiPoint.d.ts +38 -0
- package/dist/models/DaiPoint.js +52 -0
- package/dist/models/Dataset.d.ts +70 -0
- package/dist/models/Dataset.js +68 -0
- package/dist/models/DatasetDetail.d.ts +40 -0
- package/dist/models/DatasetDetail.js +45 -0
- package/dist/models/Envelope.d.ts +66 -0
- package/dist/models/Envelope.js +86 -0
- package/dist/models/Event.d.ts +54 -0
- package/dist/models/Event.js +60 -0
- package/dist/models/GetAuthor200Response.d.ts +67 -0
- package/dist/models/GetAuthor200Response.js +87 -0
- package/dist/models/GetDataset200Response.d.ts +67 -0
- package/dist/models/GetDataset200Response.js +87 -0
- package/dist/models/GetIndex200Response.d.ts +67 -0
- package/dist/models/GetIndex200Response.js +87 -0
- package/dist/models/GetMethod200Response.d.ts +67 -0
- package/dist/models/GetMethod200Response.js +87 -0
- package/dist/models/GetModel200Response.d.ts +67 -0
- package/dist/models/GetModel200Response.js +87 -0
- package/dist/models/IndexDetail.d.ts +89 -0
- package/dist/models/IndexDetail.js +86 -0
- package/dist/models/ListAuthors200Response.d.ts +67 -0
- package/dist/models/ListAuthors200Response.js +87 -0
- package/dist/models/ListDatasets200Response.d.ts +67 -0
- package/dist/models/ListDatasets200Response.js +87 -0
- package/dist/models/ListIndices200Response.d.ts +67 -0
- package/dist/models/ListIndices200Response.js +87 -0
- package/dist/models/ListMethods200Response.d.ts +67 -0
- package/dist/models/ListMethods200Response.js +87 -0
- package/dist/models/ListModels200Response.d.ts +67 -0
- package/dist/models/ListModels200Response.js +87 -0
- package/dist/models/ListTimeline200Response.d.ts +67 -0
- package/dist/models/ListTimeline200Response.js +87 -0
- package/dist/models/Method.d.ts +60 -0
- package/dist/models/Method.js +68 -0
- package/dist/models/MethodDetail.d.ts +74 -0
- package/dist/models/MethodDetail.js +76 -0
- package/dist/models/MethodDetailAllOfTopAuthors.d.ts +34 -0
- package/dist/models/MethodDetailAllOfTopAuthors.js +50 -0
- package/dist/models/ModelDetail.d.ts +52 -0
- package/dist/models/ModelDetail.js +45 -0
- package/dist/models/ModelError.d.ts +46 -0
- package/dist/models/ModelError.js +60 -0
- package/dist/models/ModelIndex.d.ts +85 -0
- package/dist/models/ModelIndex.js +84 -0
- package/dist/models/ModelSummary.d.ts +78 -0
- package/dist/models/ModelSummary.js +72 -0
- package/dist/models/Passport.d.ts +38 -0
- package/dist/models/Passport.js +52 -0
- package/dist/models/index.d.ts +27 -0
- package/dist/models/index.js +45 -0
- package/dist/runtime.d.ts +196 -0
- package/dist/runtime.js +421 -0
- package/package.json +31 -0
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Dataset
|
|
16
|
+
*/
|
|
17
|
+
export interface Dataset {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
author?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
slug?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
category?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
license?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
downloads?: number | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
downloads_all?: number | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
likes?: number | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
gated?: number | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
created_at?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
first_seen_at?: string | null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the Dataset interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfDataset(value: object): value is Dataset;
|
|
67
|
+
export declare function DatasetFromJSON(json: any): Dataset;
|
|
68
|
+
export declare function DatasetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Dataset;
|
|
69
|
+
export declare function DatasetToJSON(json: any): Dataset;
|
|
70
|
+
export declare function DatasetToJSONTyped(value?: Dataset | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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 Dataset interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDataset(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function DatasetFromJSON(json) {
|
|
21
|
+
return DatasetFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function DatasetFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'author': json['author'] === undefined ? undefined : json['author'] === null ? null : json['author'],
|
|
30
|
+
'slug': json['slug'] === undefined ? undefined : json['slug'] === null ? null : json['slug'],
|
|
31
|
+
'category': json['category'] === undefined ? undefined : json['category'] === null ? null : json['category'],
|
|
32
|
+
'license': json['license'] === undefined ? undefined : json['license'] === null ? null : json['license'],
|
|
33
|
+
'downloads': json['downloads'] === undefined ? undefined : json['downloads'] === null ? null : json['downloads'],
|
|
34
|
+
'downloads_all': json['downloads_all'] === undefined ? undefined : json['downloads_all'] === null ? null : json['downloads_all'],
|
|
35
|
+
'likes': json['likes'] === undefined ? undefined : json['likes'] === null ? null : json['likes'],
|
|
36
|
+
'gated': json['gated'] === undefined ? undefined : json['gated'] === null ? null : json['gated'],
|
|
37
|
+
'created_at': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : json['created_at'],
|
|
38
|
+
'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function DatasetToJSON(json) {
|
|
42
|
+
return DatasetToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function DatasetToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': value['id'],
|
|
50
|
+
'author': value['author'],
|
|
51
|
+
'slug': value['slug'],
|
|
52
|
+
'category': value['category'],
|
|
53
|
+
'license': value['license'],
|
|
54
|
+
'downloads': value['downloads'],
|
|
55
|
+
'downloads_all': value['downloads_all'],
|
|
56
|
+
'likes': value['likes'],
|
|
57
|
+
'gated': value['gated'],
|
|
58
|
+
'created_at': value['created_at'],
|
|
59
|
+
'first_seen_at': value['first_seen_at'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { Passport } from './Passport';
|
|
13
|
+
/**
|
|
14
|
+
* The full dataset record, plus files and the passport when one exists.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DatasetDetail
|
|
17
|
+
*/
|
|
18
|
+
export interface DatasetDetail {
|
|
19
|
+
[key: string]: any | any;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
files?: Array<object>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
passport?: Passport | null;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the DatasetDetail interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfDatasetDetail(value: object): value is DatasetDetail;
|
|
37
|
+
export declare function DatasetDetailFromJSON(json: any): DatasetDetail;
|
|
38
|
+
export declare function DatasetDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetDetail;
|
|
39
|
+
export declare function DatasetDetailToJSON(json: any): DatasetDetail;
|
|
40
|
+
export declare function DatasetDetailToJSONTyped(value?: DatasetDetail | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { PassportFromJSON, PassportToJSON, } from './Passport';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the DatasetDetail interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfDatasetDetail(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function DatasetDetailFromJSON(json) {
|
|
22
|
+
return DatasetDetailFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function DatasetDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return Object.assign(Object.assign({}, json), { 'id': json['id'] == null ? undefined : json['id'], 'files': json['files'] == null ? undefined : json['files'], 'passport': json['passport'] === undefined ? undefined : json['passport'] === null ? null : PassportFromJSON(json['passport']) });
|
|
29
|
+
}
|
|
30
|
+
export function DatasetDetailToJSON(json) {
|
|
31
|
+
return DatasetDetailToJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function DatasetDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
34
|
+
if (value == null) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
return Object.assign(Object.assign({}, value), { 'id': value['id'], 'files': value['files'], 'passport': PassportToJSON(value['passport']) });
|
|
38
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* abliteration.org Public API
|
|
3
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Envelope
|
|
16
|
+
*/
|
|
17
|
+
export interface Envelope {
|
|
18
|
+
/**
|
|
19
|
+
* The payload. An array on list routes, an object on single-entity routes.
|
|
20
|
+
*/
|
|
21
|
+
data: any | null;
|
|
22
|
+
/**
|
|
23
|
+
* Credits this call costs.
|
|
24
|
+
*/
|
|
25
|
+
cost: number;
|
|
26
|
+
/**
|
|
27
|
+
* Wallet balance after the call. Unchanged while metering is preview.
|
|
28
|
+
*/
|
|
29
|
+
credits_remaining: number;
|
|
30
|
+
/**
|
|
31
|
+
* Ceiling for the current window. Also returned as X-RateLimit-Limit.
|
|
32
|
+
*/
|
|
33
|
+
rate_limit_limit: number;
|
|
34
|
+
/**
|
|
35
|
+
* Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
|
|
36
|
+
*/
|
|
37
|
+
rate_limit_remaining: number;
|
|
38
|
+
/**
|
|
39
|
+
* Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
|
|
40
|
+
*/
|
|
41
|
+
rate_limit_reset: number;
|
|
42
|
+
/**
|
|
43
|
+
* Whether cost was actually deducted.
|
|
44
|
+
*/
|
|
45
|
+
metering: EnvelopeMeteringEnum;
|
|
46
|
+
/**
|
|
47
|
+
* Also returned in the x-request-id header.
|
|
48
|
+
*/
|
|
49
|
+
request_id: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export declare const EnvelopeMeteringEnum: {
|
|
55
|
+
readonly Preview: "preview";
|
|
56
|
+
readonly Billed: "billed";
|
|
57
|
+
};
|
|
58
|
+
export type EnvelopeMeteringEnum = typeof EnvelopeMeteringEnum[keyof typeof EnvelopeMeteringEnum];
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the Envelope interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfEnvelope(value: object): value is Envelope;
|
|
63
|
+
export declare function EnvelopeFromJSON(json: any): Envelope;
|
|
64
|
+
export declare function EnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Envelope;
|
|
65
|
+
export declare function EnvelopeToJSON(json: any): Envelope;
|
|
66
|
+
export declare function EnvelopeToJSONTyped(value?: Envelope | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* abliteration.org Public API
|
|
5
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const EnvelopeMeteringEnum = {
|
|
18
|
+
Preview: 'preview',
|
|
19
|
+
Billed: 'billed',
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Envelope interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfEnvelope(value) {
|
|
25
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('cost' in value) || value['cost'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('credits_remaining' in value) || value['credits_remaining'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('metering' in value) || value['metering'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('request_id' in value) || value['request_id'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
export function EnvelopeFromJSON(json) {
|
|
44
|
+
return EnvelopeFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function EnvelopeFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'data': json['data'],
|
|
52
|
+
'cost': json['cost'],
|
|
53
|
+
'credits_remaining': json['credits_remaining'],
|
|
54
|
+
'rate_limit_limit': json['rate_limit_limit'],
|
|
55
|
+
'rate_limit_remaining': json['rate_limit_remaining'],
|
|
56
|
+
'rate_limit_reset': json['rate_limit_reset'],
|
|
57
|
+
'metering': json['metering'],
|
|
58
|
+
'request_id': json['request_id'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export function EnvelopeToJSON(json) {
|
|
62
|
+
return EnvelopeToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
export function EnvelopeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'data': value['data'],
|
|
70
|
+
'cost': value['cost'],
|
|
71
|
+
'credits_remaining': value['credits_remaining'],
|
|
72
|
+
'rate_limit_limit': value['rate_limit_limit'],
|
|
73
|
+
'rate_limit_remaining': value['rate_limit_remaining'],
|
|
74
|
+
'rate_limit_reset': value['rate_limit_reset'],
|
|
75
|
+
'metering': value['metering'],
|
|
76
|
+
'request_id': value['request_id'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Event
|
|
16
|
+
*/
|
|
17
|
+
export interface Event {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
date?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
date_precision?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
type?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
title?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
description?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
primary_source_url?: string | null;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the Event interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfEvent(value: object): value is Event;
|
|
51
|
+
export declare function EventFromJSON(json: any): Event;
|
|
52
|
+
export declare function EventFromJSONTyped(json: any, ignoreDiscriminator: boolean): Event;
|
|
53
|
+
export declare function EventToJSON(json: any): Event;
|
|
54
|
+
export declare function EventToJSONTyped(value?: Event | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 Event interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfEvent(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function EventFromJSON(json) {
|
|
21
|
+
return EventFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function EventFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'date': json['date'] === undefined ? undefined : json['date'] === null ? null : json['date'],
|
|
30
|
+
'date_precision': json['date_precision'] === undefined ? undefined : json['date_precision'] === null ? null : json['date_precision'],
|
|
31
|
+
'type': json['type'] === undefined ? undefined : json['type'] === null ? null : json['type'],
|
|
32
|
+
'title': json['title'] === undefined ? undefined : json['title'] === null ? null : json['title'],
|
|
33
|
+
'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
|
|
34
|
+
'primary_source_url': json['primary_source_url'] === undefined ? undefined : json['primary_source_url'] === null ? null : json['primary_source_url'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function EventToJSON(json) {
|
|
38
|
+
return EventToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function EventToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': value['id'],
|
|
46
|
+
'date': value['date'],
|
|
47
|
+
'date_precision': value['date_precision'],
|
|
48
|
+
'type': value['type'],
|
|
49
|
+
'title': value['title'],
|
|
50
|
+
'description': value['description'],
|
|
51
|
+
'primary_source_url': value['primary_source_url'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -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 { AuthorDetail } from './AuthorDetail';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetAuthor200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface GetAuthor200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
data: AuthorDetail;
|
|
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: GetAuthor200ResponseMeteringEnum;
|
|
47
|
+
/**
|
|
48
|
+
* Also returned in the x-request-id header.
|
|
49
|
+
*/
|
|
50
|
+
request_id: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const GetAuthor200ResponseMeteringEnum: {
|
|
56
|
+
readonly Preview: "preview";
|
|
57
|
+
readonly Billed: "billed";
|
|
58
|
+
};
|
|
59
|
+
export type GetAuthor200ResponseMeteringEnum = typeof GetAuthor200ResponseMeteringEnum[keyof typeof GetAuthor200ResponseMeteringEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the GetAuthor200Response interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfGetAuthor200Response(value: object): value is GetAuthor200Response;
|
|
64
|
+
export declare function GetAuthor200ResponseFromJSON(json: any): GetAuthor200Response;
|
|
65
|
+
export declare function GetAuthor200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAuthor200Response;
|
|
66
|
+
export declare function GetAuthor200ResponseToJSON(json: any): GetAuthor200Response;
|
|
67
|
+
export declare function GetAuthor200ResponseToJSONTyped(value?: GetAuthor200Response | 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 { AuthorDetailFromJSON, AuthorDetailToJSON, } from './AuthorDetail';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const GetAuthor200ResponseMeteringEnum = {
|
|
19
|
+
Preview: 'preview',
|
|
20
|
+
Billed: 'billed',
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetAuthor200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfGetAuthor200Response(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 GetAuthor200ResponseFromJSON(json) {
|
|
45
|
+
return GetAuthor200ResponseFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function GetAuthor200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'data': AuthorDetailFromJSON(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 GetAuthor200ResponseToJSON(json) {
|
|
63
|
+
return GetAuthor200ResponseToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
export function GetAuthor200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'data': AuthorDetailToJSON(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
|
+
}
|