@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
package/src/index.ts
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Author
|
|
20
|
+
*/
|
|
21
|
+
export interface Author {
|
|
22
|
+
/**
|
|
23
|
+
* Same value as `author`; added for consistency with the other single-entity payloads.
|
|
24
|
+
*/
|
|
25
|
+
id?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
author?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
total_models?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
total_downloads?: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
total_likes?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
first_seen_at?: string | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the Author interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfAuthor(value: object): value is Author {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function AuthorFromJSON(json: any): Author {
|
|
56
|
+
return AuthorFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AuthorFromJSONTyped(json: any, ignoreDiscriminator: boolean): Author {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
66
|
+
'author': json['author'] == null ? undefined : json['author'],
|
|
67
|
+
'total_models': json['total_models'] == null ? undefined : json['total_models'],
|
|
68
|
+
'total_downloads': json['total_downloads'] == null ? undefined : json['total_downloads'],
|
|
69
|
+
'total_likes': json['total_likes'] == null ? undefined : json['total_likes'],
|
|
70
|
+
'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function AuthorToJSON(json: any): Author {
|
|
75
|
+
return AuthorToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function AuthorToJSONTyped(value?: Author | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'id': value['id'],
|
|
86
|
+
'author': value['author'],
|
|
87
|
+
'total_models': value['total_models'],
|
|
88
|
+
'total_downloads': value['total_downloads'],
|
|
89
|
+
'total_likes': value['total_likes'],
|
|
90
|
+
'first_seen_at': value['first_seen_at'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,107 @@
|
|
|
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 { ModelSummary } from './ModelSummary';
|
|
17
|
+
import {
|
|
18
|
+
ModelSummaryFromJSON,
|
|
19
|
+
ModelSummaryFromJSONTyped,
|
|
20
|
+
ModelSummaryToJSON,
|
|
21
|
+
ModelSummaryToJSONTyped,
|
|
22
|
+
} from './ModelSummary';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AuthorDetail
|
|
28
|
+
*/
|
|
29
|
+
export interface AuthorDetail {
|
|
30
|
+
/**
|
|
31
|
+
* Same value as `author`; added for consistency with the other single-entity payloads.
|
|
32
|
+
*/
|
|
33
|
+
id?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
author?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
total_models?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
total_downloads?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
total_likes?: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
first_seen_at?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
models?: Array<ModelSummary>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the AuthorDetail interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfAuthorDetail(value: object): value is AuthorDetail {
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function AuthorDetailFromJSON(json: any): AuthorDetail {
|
|
68
|
+
return AuthorDetailFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function AuthorDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthorDetail {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
78
|
+
'author': json['author'] == null ? undefined : json['author'],
|
|
79
|
+
'total_models': json['total_models'] == null ? undefined : json['total_models'],
|
|
80
|
+
'total_downloads': json['total_downloads'] == null ? undefined : json['total_downloads'],
|
|
81
|
+
'total_likes': json['total_likes'] == null ? undefined : json['total_likes'],
|
|
82
|
+
'first_seen_at': json['first_seen_at'] == null ? undefined : json['first_seen_at'],
|
|
83
|
+
'models': json['models'] == null ? undefined : ((json['models'] as Array<any>).map(ModelSummaryFromJSON)),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function AuthorDetailToJSON(json: any): AuthorDetail {
|
|
88
|
+
return AuthorDetailToJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function AuthorDetailToJSONTyped(value?: AuthorDetail | null, ignoreDiscriminator: boolean = false): any {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'id': value['id'],
|
|
99
|
+
'author': value['author'],
|
|
100
|
+
'total_models': value['total_models'],
|
|
101
|
+
'total_downloads': value['total_downloads'],
|
|
102
|
+
'total_likes': value['total_likes'],
|
|
103
|
+
'first_seen_at': value['first_seen_at'],
|
|
104
|
+
'models': value['models'] == null ? undefined : ((value['models'] as Array<any>).map(ModelSummaryToJSON)),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DaiPoint
|
|
20
|
+
*/
|
|
21
|
+
export interface DaiPoint {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
month?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
weighted_dai_pct?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
bases_included?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the DaiPoint interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfDaiPoint(value: object): value is DaiPoint {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function DaiPointFromJSON(json: any): DaiPoint {
|
|
44
|
+
return DaiPointFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function DaiPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): DaiPoint {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'month': json['month'] == null ? undefined : json['month'],
|
|
54
|
+
'weighted_dai_pct': json['weighted_dai_pct'] == null ? undefined : json['weighted_dai_pct'],
|
|
55
|
+
'bases_included': json['bases_included'] == null ? undefined : json['bases_included'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function DaiPointToJSON(json: any): DaiPoint {
|
|
60
|
+
return DaiPointToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function DaiPointToJSONTyped(value?: DaiPoint | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'month': value['month'],
|
|
71
|
+
'weighted_dai_pct': value['weighted_dai_pct'],
|
|
72
|
+
'bases_included': value['bases_included'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,189 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Dataset
|
|
20
|
+
*/
|
|
21
|
+
export interface Dataset {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
id?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
author?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
slug?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
category?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
license?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
language?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* Recent-window downloads reported by the Hub.
|
|
48
|
+
*/
|
|
49
|
+
downloads?: number | null;
|
|
50
|
+
/**
|
|
51
|
+
* All-time downloads reported by the Hub.
|
|
52
|
+
*/
|
|
53
|
+
downloads_all?: number | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
likes?: number | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
trending_score?: number | null;
|
|
62
|
+
/**
|
|
63
|
+
* Server returns 0/1 (SQLite bool convention), not a JSON boolean.
|
|
64
|
+
*/
|
|
65
|
+
gated?: number | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
main_size_bytes?: number | null;
|
|
70
|
+
/**
|
|
71
|
+
* Human-formatted size (e.g. "90.4 MB").
|
|
72
|
+
*/
|
|
73
|
+
size_display?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
age_days?: number | null;
|
|
78
|
+
/**
|
|
79
|
+
* Server returns 0/1, not a JSON boolean.
|
|
80
|
+
*/
|
|
81
|
+
is_trending?: number | null;
|
|
82
|
+
/**
|
|
83
|
+
* Server returns 0/1, not a JSON boolean.
|
|
84
|
+
*/
|
|
85
|
+
just_added?: number | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
89
|
+
description?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
tags?: Array<string>;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
97
|
+
hf_url?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
created_at?: string | null;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
last_modified_at?: string | null;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
109
|
+
first_seen_at?: string | null;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Check if a given object implements the Dataset interface.
|
|
114
|
+
*/
|
|
115
|
+
export function instanceOfDataset(value: object): value is Dataset {
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function DatasetFromJSON(json: any): Dataset {
|
|
120
|
+
return DatasetFromJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function DatasetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Dataset {
|
|
124
|
+
if (json == null) {
|
|
125
|
+
return json;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
130
|
+
'author': json['author'] === undefined ? undefined : json['author'] === null ? null : json['author'],
|
|
131
|
+
'slug': json['slug'] === undefined ? undefined : json['slug'] === null ? null : json['slug'],
|
|
132
|
+
'category': json['category'] === undefined ? undefined : json['category'] === null ? null : json['category'],
|
|
133
|
+
'license': json['license'] === undefined ? undefined : json['license'] === null ? null : json['license'],
|
|
134
|
+
'language': json['language'] === undefined ? undefined : json['language'] === null ? null : json['language'],
|
|
135
|
+
'downloads': json['downloads'] === undefined ? undefined : json['downloads'] === null ? null : json['downloads'],
|
|
136
|
+
'downloads_all': json['downloads_all'] === undefined ? undefined : json['downloads_all'] === null ? null : json['downloads_all'],
|
|
137
|
+
'likes': json['likes'] === undefined ? undefined : json['likes'] === null ? null : json['likes'],
|
|
138
|
+
'trending_score': json['trending_score'] === undefined ? undefined : json['trending_score'] === null ? null : json['trending_score'],
|
|
139
|
+
'gated': json['gated'] === undefined ? undefined : json['gated'] === null ? null : json['gated'],
|
|
140
|
+
'main_size_bytes': json['main_size_bytes'] === undefined ? undefined : json['main_size_bytes'] === null ? null : json['main_size_bytes'],
|
|
141
|
+
'size_display': json['size_display'] === undefined ? undefined : json['size_display'] === null ? null : json['size_display'],
|
|
142
|
+
'age_days': json['age_days'] === undefined ? undefined : json['age_days'] === null ? null : json['age_days'],
|
|
143
|
+
'is_trending': json['is_trending'] === undefined ? undefined : json['is_trending'] === null ? null : json['is_trending'],
|
|
144
|
+
'just_added': json['just_added'] === undefined ? undefined : json['just_added'] === null ? null : json['just_added'],
|
|
145
|
+
'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
|
|
146
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
147
|
+
'hf_url': json['hf_url'] === undefined ? undefined : json['hf_url'] === null ? null : json['hf_url'],
|
|
148
|
+
'created_at': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : json['created_at'],
|
|
149
|
+
'last_modified_at': json['last_modified_at'] === undefined ? undefined : json['last_modified_at'] === null ? null : json['last_modified_at'],
|
|
150
|
+
'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'],
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function DatasetToJSON(json: any): Dataset {
|
|
155
|
+
return DatasetToJSONTyped(json, false);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function DatasetToJSONTyped(value?: Dataset | null, ignoreDiscriminator: boolean = false): any {
|
|
159
|
+
if (value == null) {
|
|
160
|
+
return value;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return {
|
|
164
|
+
|
|
165
|
+
'id': value['id'],
|
|
166
|
+
'author': value['author'],
|
|
167
|
+
'slug': value['slug'],
|
|
168
|
+
'category': value['category'],
|
|
169
|
+
'license': value['license'],
|
|
170
|
+
'language': value['language'],
|
|
171
|
+
'downloads': value['downloads'],
|
|
172
|
+
'downloads_all': value['downloads_all'],
|
|
173
|
+
'likes': value['likes'],
|
|
174
|
+
'trending_score': value['trending_score'],
|
|
175
|
+
'gated': value['gated'],
|
|
176
|
+
'main_size_bytes': value['main_size_bytes'],
|
|
177
|
+
'size_display': value['size_display'],
|
|
178
|
+
'age_days': value['age_days'],
|
|
179
|
+
'is_trending': value['is_trending'],
|
|
180
|
+
'just_added': value['just_added'],
|
|
181
|
+
'description': value['description'],
|
|
182
|
+
'tags': value['tags'],
|
|
183
|
+
'hf_url': value['hf_url'],
|
|
184
|
+
'created_at': value['created_at'],
|
|
185
|
+
'last_modified_at': value['last_modified_at'],
|
|
186
|
+
'first_seen_at': value['first_seen_at'],
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
|
|
@@ -0,0 +1,209 @@
|
|
|
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 { Passport } from './Passport';
|
|
17
|
+
import {
|
|
18
|
+
PassportFromJSON,
|
|
19
|
+
PassportFromJSONTyped,
|
|
20
|
+
PassportToJSON,
|
|
21
|
+
PassportToJSONTyped,
|
|
22
|
+
} from './Passport';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DatasetDetail
|
|
28
|
+
*/
|
|
29
|
+
export interface DatasetDetail {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
id?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
author?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
slug?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
category?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
license?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
language?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Recent-window downloads reported by the Hub.
|
|
56
|
+
*/
|
|
57
|
+
downloads?: number;
|
|
58
|
+
/**
|
|
59
|
+
* All-time downloads reported by the Hub.
|
|
60
|
+
*/
|
|
61
|
+
downloads_all?: number;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
likes?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
trending_score?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Server returns 0/1 (SQLite bool convention), not a JSON boolean.
|
|
72
|
+
*/
|
|
73
|
+
gated?: number;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
main_size_bytes?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Human-formatted size (e.g. "90.4 MB").
|
|
80
|
+
*/
|
|
81
|
+
size_display?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
age_days?: number;
|
|
86
|
+
/**
|
|
87
|
+
* Server returns 0/1, not a JSON boolean.
|
|
88
|
+
*/
|
|
89
|
+
is_trending?: number;
|
|
90
|
+
/**
|
|
91
|
+
* Server returns 0/1, not a JSON boolean.
|
|
92
|
+
*/
|
|
93
|
+
just_added?: number;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
97
|
+
description?: string;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
tags?: Array<string>;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
hf_url?: string;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
109
|
+
created_at?: string;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
*/
|
|
113
|
+
last_modified_at?: string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
first_seen_at?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Per-file entries: path, type, size_bytes, is_lfs.
|
|
120
|
+
*/
|
|
121
|
+
files?: Array<object>;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
passport?: Passport | null;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Check if a given object implements the DatasetDetail interface.
|
|
130
|
+
*/
|
|
131
|
+
export function instanceOfDatasetDetail(value: object): value is DatasetDetail {
|
|
132
|
+
return true;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function DatasetDetailFromJSON(json: any): DatasetDetail {
|
|
136
|
+
return DatasetDetailFromJSONTyped(json, false);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function DatasetDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetDetail {
|
|
140
|
+
if (json == null) {
|
|
141
|
+
return json;
|
|
142
|
+
}
|
|
143
|
+
return {
|
|
144
|
+
|
|
145
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
146
|
+
'author': json['author'] == null ? undefined : json['author'],
|
|
147
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
148
|
+
'category': json['category'] == null ? undefined : json['category'],
|
|
149
|
+
'license': json['license'] == null ? undefined : json['license'],
|
|
150
|
+
'language': json['language'] == null ? undefined : json['language'],
|
|
151
|
+
'downloads': json['downloads'] == null ? undefined : json['downloads'],
|
|
152
|
+
'downloads_all': json['downloads_all'] == null ? undefined : json['downloads_all'],
|
|
153
|
+
'likes': json['likes'] == null ? undefined : json['likes'],
|
|
154
|
+
'trending_score': json['trending_score'] == null ? undefined : json['trending_score'],
|
|
155
|
+
'gated': json['gated'] == null ? undefined : json['gated'],
|
|
156
|
+
'main_size_bytes': json['main_size_bytes'] == null ? undefined : json['main_size_bytes'],
|
|
157
|
+
'size_display': json['size_display'] == null ? undefined : json['size_display'],
|
|
158
|
+
'age_days': json['age_days'] == null ? undefined : json['age_days'],
|
|
159
|
+
'is_trending': json['is_trending'] == null ? undefined : json['is_trending'],
|
|
160
|
+
'just_added': json['just_added'] == null ? undefined : json['just_added'],
|
|
161
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
162
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
163
|
+
'hf_url': json['hf_url'] == null ? undefined : json['hf_url'],
|
|
164
|
+
'created_at': json['created_at'] == null ? undefined : json['created_at'],
|
|
165
|
+
'last_modified_at': json['last_modified_at'] == null ? undefined : json['last_modified_at'],
|
|
166
|
+
'first_seen_at': json['first_seen_at'] == null ? undefined : json['first_seen_at'],
|
|
167
|
+
'files': json['files'] == null ? undefined : json['files'],
|
|
168
|
+
'passport': json['passport'] === undefined ? undefined : json['passport'] === null ? null : PassportFromJSON(json['passport']),
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export function DatasetDetailToJSON(json: any): DatasetDetail {
|
|
173
|
+
return DatasetDetailToJSONTyped(json, false);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export function DatasetDetailToJSONTyped(value?: DatasetDetail | null, ignoreDiscriminator: boolean = false): any {
|
|
177
|
+
if (value == null) {
|
|
178
|
+
return value;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
return {
|
|
182
|
+
|
|
183
|
+
'id': value['id'],
|
|
184
|
+
'author': value['author'],
|
|
185
|
+
'slug': value['slug'],
|
|
186
|
+
'category': value['category'],
|
|
187
|
+
'license': value['license'],
|
|
188
|
+
'language': value['language'],
|
|
189
|
+
'downloads': value['downloads'],
|
|
190
|
+
'downloads_all': value['downloads_all'],
|
|
191
|
+
'likes': value['likes'],
|
|
192
|
+
'trending_score': value['trending_score'],
|
|
193
|
+
'gated': value['gated'],
|
|
194
|
+
'main_size_bytes': value['main_size_bytes'],
|
|
195
|
+
'size_display': value['size_display'],
|
|
196
|
+
'age_days': value['age_days'],
|
|
197
|
+
'is_trending': value['is_trending'],
|
|
198
|
+
'just_added': value['just_added'],
|
|
199
|
+
'description': value['description'],
|
|
200
|
+
'tags': value['tags'],
|
|
201
|
+
'hf_url': value['hf_url'],
|
|
202
|
+
'created_at': value['created_at'],
|
|
203
|
+
'last_modified_at': value['last_modified_at'],
|
|
204
|
+
'first_seen_at': value['first_seen_at'],
|
|
205
|
+
'files': value['files'],
|
|
206
|
+
'passport': PassportToJSON(value['passport']),
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
|