@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,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.ListTimeline200ResponseMeteringEnum = void 0;
|
|
17
|
+
exports.instanceOfListTimeline200Response = instanceOfListTimeline200Response;
|
|
18
|
+
exports.ListTimeline200ResponseFromJSON = ListTimeline200ResponseFromJSON;
|
|
19
|
+
exports.ListTimeline200ResponseFromJSONTyped = ListTimeline200ResponseFromJSONTyped;
|
|
20
|
+
exports.ListTimeline200ResponseToJSON = ListTimeline200ResponseToJSON;
|
|
21
|
+
exports.ListTimeline200ResponseToJSONTyped = ListTimeline200ResponseToJSONTyped;
|
|
22
|
+
const Event_1 = require("./Event");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ListTimeline200ResponseMeteringEnum = {
|
|
27
|
+
Preview: 'preview',
|
|
28
|
+
Billed: 'billed',
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ListTimeline200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfListTimeline200Response(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 ListTimeline200ResponseFromJSON(json) {
|
|
53
|
+
return ListTimeline200ResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function ListTimeline200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'data': (json['data'].map(Event_1.EventFromJSON)),
|
|
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 ListTimeline200ResponseToJSON(json) {
|
|
71
|
+
return ListTimeline200ResponseToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function ListTimeline200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'data': (value['data'].map(Event_1.EventToJSON)),
|
|
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,60 @@
|
|
|
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 Method
|
|
16
|
+
*/
|
|
17
|
+
export interface Method {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
label?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
category?: MethodCategoryEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
wiki_slug?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
model_count?: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
total_downloads?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const MethodCategoryEnum: {
|
|
47
|
+
readonly Original: "original";
|
|
48
|
+
readonly Repackage: "repackage";
|
|
49
|
+
readonly Merged: "merged";
|
|
50
|
+
readonly Unclassified: "unclassified";
|
|
51
|
+
};
|
|
52
|
+
export type MethodCategoryEnum = typeof MethodCategoryEnum[keyof typeof MethodCategoryEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the Method interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfMethod(value: object): value is Method;
|
|
57
|
+
export declare function MethodFromJSON(json: any): Method;
|
|
58
|
+
export declare function MethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): Method;
|
|
59
|
+
export declare function MethodToJSON(json: any): Method;
|
|
60
|
+
export declare function MethodToJSONTyped(value?: Method | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.MethodCategoryEnum = void 0;
|
|
17
|
+
exports.instanceOfMethod = instanceOfMethod;
|
|
18
|
+
exports.MethodFromJSON = MethodFromJSON;
|
|
19
|
+
exports.MethodFromJSONTyped = MethodFromJSONTyped;
|
|
20
|
+
exports.MethodToJSON = MethodToJSON;
|
|
21
|
+
exports.MethodToJSONTyped = MethodToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.MethodCategoryEnum = {
|
|
26
|
+
Original: 'original',
|
|
27
|
+
Repackage: 'repackage',
|
|
28
|
+
Merged: 'merged',
|
|
29
|
+
Unclassified: 'unclassified',
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Method interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfMethod(value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function MethodFromJSON(json) {
|
|
38
|
+
return MethodFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function MethodFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
46
|
+
'label': json['label'] == null ? undefined : json['label'],
|
|
47
|
+
'category': json['category'] == null ? undefined : json['category'],
|
|
48
|
+
'wiki_slug': json['wiki_slug'] === undefined ? undefined : json['wiki_slug'] === null ? null : json['wiki_slug'],
|
|
49
|
+
'model_count': json['model_count'] == null ? undefined : json['model_count'],
|
|
50
|
+
'total_downloads': json['total_downloads'] == null ? undefined : json['total_downloads'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function MethodToJSON(json) {
|
|
54
|
+
return MethodToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function MethodToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'label': value['label'],
|
|
63
|
+
'category': value['category'],
|
|
64
|
+
'wiki_slug': value['wiki_slug'],
|
|
65
|
+
'model_count': value['model_count'],
|
|
66
|
+
'total_downloads': value['total_downloads'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 { ModelSummary } from './ModelSummary';
|
|
13
|
+
import type { MethodDetailAllOfTopAuthors } from './MethodDetailAllOfTopAuthors';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface MethodDetail
|
|
18
|
+
*/
|
|
19
|
+
export interface MethodDetail {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
label?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
category?: MethodDetailCategoryEnum;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
wiki_slug?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
model_count?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
total_downloads?: number;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
wiki_url?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
top_authors?: Array<MethodDetailAllOfTopAuthors>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
sample_models?: Array<ModelSummary>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const MethodDetailCategoryEnum: {
|
|
61
|
+
readonly Original: "original";
|
|
62
|
+
readonly Repackage: "repackage";
|
|
63
|
+
readonly Merged: "merged";
|
|
64
|
+
readonly Unclassified: "unclassified";
|
|
65
|
+
};
|
|
66
|
+
export type MethodDetailCategoryEnum = typeof MethodDetailCategoryEnum[keyof typeof MethodDetailCategoryEnum];
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the MethodDetail interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfMethodDetail(value: object): value is MethodDetail;
|
|
71
|
+
export declare function MethodDetailFromJSON(json: any): MethodDetail;
|
|
72
|
+
export declare function MethodDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): MethodDetail;
|
|
73
|
+
export declare function MethodDetailToJSON(json: any): MethodDetail;
|
|
74
|
+
export declare function MethodDetailToJSONTyped(value?: MethodDetail | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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.MethodDetailCategoryEnum = void 0;
|
|
17
|
+
exports.instanceOfMethodDetail = instanceOfMethodDetail;
|
|
18
|
+
exports.MethodDetailFromJSON = MethodDetailFromJSON;
|
|
19
|
+
exports.MethodDetailFromJSONTyped = MethodDetailFromJSONTyped;
|
|
20
|
+
exports.MethodDetailToJSON = MethodDetailToJSON;
|
|
21
|
+
exports.MethodDetailToJSONTyped = MethodDetailToJSONTyped;
|
|
22
|
+
const ModelSummary_1 = require("./ModelSummary");
|
|
23
|
+
const MethodDetailAllOfTopAuthors_1 = require("./MethodDetailAllOfTopAuthors");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.MethodDetailCategoryEnum = {
|
|
28
|
+
Original: 'original',
|
|
29
|
+
Repackage: 'repackage',
|
|
30
|
+
Merged: 'merged',
|
|
31
|
+
Unclassified: 'unclassified',
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the MethodDetail interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfMethodDetail(value) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function MethodDetailFromJSON(json) {
|
|
40
|
+
return MethodDetailFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function MethodDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
48
|
+
'label': json['label'] == null ? undefined : json['label'],
|
|
49
|
+
'category': json['category'] == null ? undefined : json['category'],
|
|
50
|
+
'wiki_slug': json['wiki_slug'] == null ? undefined : json['wiki_slug'],
|
|
51
|
+
'model_count': json['model_count'] == null ? undefined : json['model_count'],
|
|
52
|
+
'total_downloads': json['total_downloads'] == null ? undefined : json['total_downloads'],
|
|
53
|
+
'wiki_url': json['wiki_url'] === undefined ? undefined : json['wiki_url'] === null ? null : json['wiki_url'],
|
|
54
|
+
'top_authors': json['top_authors'] == null ? undefined : (json['top_authors'].map(MethodDetailAllOfTopAuthors_1.MethodDetailAllOfTopAuthorsFromJSON)),
|
|
55
|
+
'sample_models': json['sample_models'] == null ? undefined : (json['sample_models'].map(ModelSummary_1.ModelSummaryFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function MethodDetailToJSON(json) {
|
|
59
|
+
return MethodDetailToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function MethodDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': value['id'],
|
|
67
|
+
'label': value['label'],
|
|
68
|
+
'category': value['category'],
|
|
69
|
+
'wiki_slug': value['wiki_slug'],
|
|
70
|
+
'model_count': value['model_count'],
|
|
71
|
+
'total_downloads': value['total_downloads'],
|
|
72
|
+
'wiki_url': value['wiki_url'],
|
|
73
|
+
'top_authors': value['top_authors'] == null ? undefined : (value['top_authors'].map(MethodDetailAllOfTopAuthors_1.MethodDetailAllOfTopAuthorsToJSON)),
|
|
74
|
+
'sample_models': value['sample_models'] == null ? undefined : (value['sample_models'].map(ModelSummary_1.ModelSummaryToJSON)),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* abliteration.org Public API
|
|
3
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MethodDetailAllOfTopAuthors
|
|
16
|
+
*/
|
|
17
|
+
export interface MethodDetailAllOfTopAuthors {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
author?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
count?: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the MethodDetailAllOfTopAuthors interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfMethodDetailAllOfTopAuthors(value: object): value is MethodDetailAllOfTopAuthors;
|
|
31
|
+
export declare function MethodDetailAllOfTopAuthorsFromJSON(json: any): MethodDetailAllOfTopAuthors;
|
|
32
|
+
export declare function MethodDetailAllOfTopAuthorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MethodDetailAllOfTopAuthors;
|
|
33
|
+
export declare function MethodDetailAllOfTopAuthorsToJSON(json: any): MethodDetailAllOfTopAuthors;
|
|
34
|
+
export declare function MethodDetailAllOfTopAuthorsToJSONTyped(value?: MethodDetailAllOfTopAuthors | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfMethodDetailAllOfTopAuthors = instanceOfMethodDetailAllOfTopAuthors;
|
|
17
|
+
exports.MethodDetailAllOfTopAuthorsFromJSON = MethodDetailAllOfTopAuthorsFromJSON;
|
|
18
|
+
exports.MethodDetailAllOfTopAuthorsFromJSONTyped = MethodDetailAllOfTopAuthorsFromJSONTyped;
|
|
19
|
+
exports.MethodDetailAllOfTopAuthorsToJSON = MethodDetailAllOfTopAuthorsToJSON;
|
|
20
|
+
exports.MethodDetailAllOfTopAuthorsToJSONTyped = MethodDetailAllOfTopAuthorsToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MethodDetailAllOfTopAuthors interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMethodDetailAllOfTopAuthors(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function MethodDetailAllOfTopAuthorsFromJSON(json) {
|
|
28
|
+
return MethodDetailAllOfTopAuthorsFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function MethodDetailAllOfTopAuthorsFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'author': json['author'] == null ? undefined : json['author'],
|
|
36
|
+
'count': json['count'] == null ? undefined : json['count'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function MethodDetailAllOfTopAuthorsToJSON(json) {
|
|
40
|
+
return MethodDetailAllOfTopAuthorsToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function MethodDetailAllOfTopAuthorsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'author': value['author'],
|
|
48
|
+
'count': value['count'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { Author } from './Author';
|
|
13
|
+
/**
|
|
14
|
+
* The full catalog record, plus files, benchmarks and an author summary.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ModelDetail
|
|
17
|
+
*/
|
|
18
|
+
export interface ModelDetail {
|
|
19
|
+
[key: string]: any | any;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
author?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
name?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
files?: Array<object>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
benchmarks?: object;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
author_summary?: Author | null;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the ModelDetail interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfModelDetail(value: object): value is ModelDetail;
|
|
49
|
+
export declare function ModelDetailFromJSON(json: any): ModelDetail;
|
|
50
|
+
export declare function ModelDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelDetail;
|
|
51
|
+
export declare function ModelDetailToJSON(json: any): ModelDetail;
|
|
52
|
+
export declare function ModelDetailToJSONTyped(value?: ModelDetail | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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.instanceOfModelDetail = instanceOfModelDetail;
|
|
17
|
+
exports.ModelDetailFromJSON = ModelDetailFromJSON;
|
|
18
|
+
exports.ModelDetailFromJSONTyped = ModelDetailFromJSONTyped;
|
|
19
|
+
exports.ModelDetailToJSON = ModelDetailToJSON;
|
|
20
|
+
exports.ModelDetailToJSONTyped = ModelDetailToJSONTyped;
|
|
21
|
+
const Author_1 = require("./Author");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ModelDetail interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfModelDetail(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ModelDetailFromJSON(json) {
|
|
29
|
+
return ModelDetailFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ModelDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return Object.assign(Object.assign({}, json), { 'id': json['id'] == null ? undefined : json['id'], 'author': json['author'] == null ? undefined : json['author'], 'name': json['name'] == null ? undefined : json['name'], 'files': json['files'] == null ? undefined : json['files'], 'benchmarks': json['benchmarks'] == null ? undefined : json['benchmarks'], 'author_summary': json['author_summary'] === undefined ? undefined : json['author_summary'] === null ? null : (0, Author_1.AuthorFromJSON)(json['author_summary']) });
|
|
36
|
+
}
|
|
37
|
+
function ModelDetailToJSON(json) {
|
|
38
|
+
return ModelDetailToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function ModelDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return Object.assign(Object.assign({}, value), { 'id': value['id'], 'author': value['author'], 'name': value['name'], 'files': value['files'], 'benchmarks': value['benchmarks'], 'author_summary': (0, Author_1.AuthorToJSON)(value['author_summary']) });
|
|
45
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* abliteration.org Public API
|
|
3
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ModelError
|
|
16
|
+
*/
|
|
17
|
+
export interface ModelError {
|
|
18
|
+
/**
|
|
19
|
+
* Stable machine-readable slug.
|
|
20
|
+
*/
|
|
21
|
+
error: string;
|
|
22
|
+
/**
|
|
23
|
+
* Human-readable detail. May be reworded at any time.
|
|
24
|
+
*/
|
|
25
|
+
message?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Seconds to wait. Present on 429.
|
|
28
|
+
*/
|
|
29
|
+
retry_after?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Present on 402.
|
|
32
|
+
*/
|
|
33
|
+
credits_remaining?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
request_id: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the ModelError interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfModelError(value: object): value is ModelError;
|
|
43
|
+
export declare function ModelErrorFromJSON(json: any): ModelError;
|
|
44
|
+
export declare function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError;
|
|
45
|
+
export declare function ModelErrorToJSON(json: any): ModelError;
|
|
46
|
+
export declare function ModelErrorToJSONTyped(value?: ModelError | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.instanceOfModelError = instanceOfModelError;
|
|
17
|
+
exports.ModelErrorFromJSON = ModelErrorFromJSON;
|
|
18
|
+
exports.ModelErrorFromJSONTyped = ModelErrorFromJSONTyped;
|
|
19
|
+
exports.ModelErrorToJSON = ModelErrorToJSON;
|
|
20
|
+
exports.ModelErrorToJSONTyped = ModelErrorToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ModelError interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfModelError(value) {
|
|
25
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('request_id' in value) || value['request_id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ModelErrorFromJSON(json) {
|
|
32
|
+
return ModelErrorFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ModelErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'error': json['error'],
|
|
40
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
41
|
+
'retry_after': json['retry_after'] == null ? undefined : json['retry_after'],
|
|
42
|
+
'credits_remaining': json['credits_remaining'] == null ? undefined : json['credits_remaining'],
|
|
43
|
+
'request_id': json['request_id'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function ModelErrorToJSON(json) {
|
|
47
|
+
return ModelErrorToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ModelErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'error': value['error'],
|
|
55
|
+
'message': value['message'],
|
|
56
|
+
'retry_after': value['retry_after'],
|
|
57
|
+
'credits_remaining': value['credits_remaining'],
|
|
58
|
+
'request_id': value['request_id'],
|
|
59
|
+
};
|
|
60
|
+
}
|