@abliteration/sdk 0.1.0 → 0.1.1

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.
Files changed (102) hide show
  1. package/.openapi-generator/FILES +76 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +140 -49
  5. package/dist/apis/AuthorsApi.d.ts +11 -3
  6. package/dist/apis/AuthorsApi.js +8 -0
  7. package/dist/apis/DatasetsApi.d.ts +9 -3
  8. package/dist/apis/DatasetsApi.js +6 -0
  9. package/dist/apis/IndicesApi.d.ts +9 -3
  10. package/dist/apis/IndicesApi.js +6 -0
  11. package/dist/apis/ModelsApi.d.ts +9 -3
  12. package/dist/apis/ModelsApi.js +6 -0
  13. package/dist/esm/apis/AuthorsApi.d.ts +11 -3
  14. package/dist/esm/apis/AuthorsApi.js +8 -0
  15. package/dist/esm/apis/DatasetsApi.d.ts +9 -3
  16. package/dist/esm/apis/DatasetsApi.js +6 -0
  17. package/dist/esm/apis/IndicesApi.d.ts +9 -3
  18. package/dist/esm/apis/IndicesApi.js +6 -0
  19. package/dist/esm/apis/ModelsApi.d.ts +9 -3
  20. package/dist/esm/apis/ModelsApi.js +6 -0
  21. package/dist/esm/models/Author.d.ts +4 -0
  22. package/dist/esm/models/Author.js +2 -0
  23. package/dist/esm/models/AuthorDetail.d.ts +4 -0
  24. package/dist/esm/models/AuthorDetail.js +2 -0
  25. package/dist/models/Author.d.ts +4 -0
  26. package/dist/models/Author.js +2 -0
  27. package/dist/models/AuthorDetail.d.ts +4 -0
  28. package/dist/models/AuthorDetail.js +2 -0
  29. package/docs/Author.md +44 -0
  30. package/docs/AuthorDetail.md +46 -0
  31. package/docs/AuthorsApi.md +167 -0
  32. package/docs/DaiPoint.md +38 -0
  33. package/docs/Dataset.md +54 -0
  34. package/docs/DatasetDetail.md +39 -0
  35. package/docs/DatasetsApi.md +176 -0
  36. package/docs/Envelope.md +48 -0
  37. package/docs/Event.md +46 -0
  38. package/docs/GetAuthor200Response.md +48 -0
  39. package/docs/GetDataset200Response.md +48 -0
  40. package/docs/GetIndex200Response.md +48 -0
  41. package/docs/GetMethod200Response.md +48 -0
  42. package/docs/GetModel200Response.md +48 -0
  43. package/docs/IndexDetail.md +54 -0
  44. package/docs/IndicesApi.md +153 -0
  45. package/docs/ListAuthors200Response.md +48 -0
  46. package/docs/ListDatasets200Response.md +48 -0
  47. package/docs/ListIndices200Response.md +48 -0
  48. package/docs/ListMethods200Response.md +48 -0
  49. package/docs/ListModels200Response.md +48 -0
  50. package/docs/ListTimeline200Response.md +48 -0
  51. package/docs/Method.md +44 -0
  52. package/docs/MethodDetail.md +50 -0
  53. package/docs/MethodDetailAllOfTopAuthors.md +36 -0
  54. package/docs/MethodsApi.md +153 -0
  55. package/docs/ModelDetail.md +45 -0
  56. package/docs/ModelError.md +42 -0
  57. package/docs/ModelIndex.md +52 -0
  58. package/docs/ModelSummary.md +58 -0
  59. package/docs/ModelsApi.md +191 -0
  60. package/docs/Passport.md +38 -0
  61. package/docs/TimelineApi.md +93 -0
  62. package/openapi-generator-config.json +10 -0
  63. package/package.json +14 -16
  64. package/src/apis/AuthorsApi.ts +248 -0
  65. package/src/apis/DatasetsApi.ts +278 -0
  66. package/src/apis/IndicesApi.ts +213 -0
  67. package/src/apis/MethodsApi.ts +214 -0
  68. package/src/apis/ModelsApi.ts +328 -0
  69. package/src/apis/TimelineApi.ts +148 -0
  70. package/src/apis/index.ts +8 -0
  71. package/src/index.ts +5 -0
  72. package/src/models/Author.ts +93 -0
  73. package/src/models/AuthorDetail.ts +107 -0
  74. package/src/models/DaiPoint.ts +75 -0
  75. package/src/models/Dataset.ts +123 -0
  76. package/src/models/DatasetDetail.ts +86 -0
  77. package/src/models/Envelope.ts +124 -0
  78. package/src/models/Event.ts +99 -0
  79. package/src/models/GetAuthor200Response.ts +132 -0
  80. package/src/models/GetDataset200Response.ts +132 -0
  81. package/src/models/GetIndex200Response.ts +132 -0
  82. package/src/models/GetMethod200Response.ts +132 -0
  83. package/src/models/GetModel200Response.ts +132 -0
  84. package/src/models/IndexDetail.ts +153 -0
  85. package/src/models/ListAuthors200Response.ts +132 -0
  86. package/src/models/ListDatasets200Response.ts +132 -0
  87. package/src/models/ListIndices200Response.ts +132 -0
  88. package/src/models/ListMethods200Response.ts +132 -0
  89. package/src/models/ListModels200Response.ts +132 -0
  90. package/src/models/ListTimeline200Response.ts +132 -0
  91. package/src/models/Method.ts +106 -0
  92. package/src/models/MethodDetail.ts +139 -0
  93. package/src/models/MethodDetailAllOfTopAuthors.ts +69 -0
  94. package/src/models/ModelDetail.ts +104 -0
  95. package/src/models/ModelError.ts +89 -0
  96. package/src/models/ModelIndex.ts +147 -0
  97. package/src/models/ModelSummary.ts +135 -0
  98. package/src/models/Passport.ts +75 -0
  99. package/src/models/index.ts +29 -0
  100. package/src/runtime.ts +505 -0
  101. package/tsconfig.esm.json +7 -0
  102. package/tsconfig.json +16 -0
@@ -144,8 +144,14 @@ export class DatasetsApi extends runtime.BaseAPI {
144
144
  export const ListDatasetsSortEnum = {
145
145
  Downloads: 'downloads',
146
146
  Downloads2: '-downloads',
147
+ Likes: 'likes',
148
+ Likes2: '-likes',
149
+ Created: 'created',
150
+ Created2: '-created',
147
151
  CreatedAt: 'created_at',
148
152
  CreatedAt2: '-created_at',
153
+ FirstSeen: 'first_seen',
154
+ FirstSeen2: '-first_seen',
149
155
  FirstSeenAt: 'first_seen_at',
150
156
  FirstSeenAt2: '-first_seen_at',
151
157
  };
@@ -14,7 +14,7 @@ import { type GetIndex200Response } from '../models/GetIndex200Response';
14
14
  import { type ListIndices200Response } from '../models/ListIndices200Response';
15
15
  export interface GetIndexRequest {
16
16
  /**
17
- *
17
+ * Canonical id or one of the short aliases (DAI, FV, WEAP, F2W). Case-insensitive.
18
18
  */
19
19
  id: GetIndexIdEnum;
20
20
  }
@@ -27,7 +27,7 @@ export interface GetIndexRequest {
27
27
  export interface IndicesApiInterface {
28
28
  /**
29
29
  * Creates request options for getIndex without sending the request
30
- * @param {'dai' | 'freedom-velocity' | 'weaponization' | 'f2w-latency'} id
30
+ * @param {'dai' | 'DAI' | 'freedom-velocity' | 'FV' | 'freedom_velocity' | 'weaponization' | 'WEAP' | 'f2w-latency' | 'F2W' | 'f2w_latency'} id Canonical id or one of the short aliases (DAI, FV, WEAP, F2W). Case-insensitive.
31
31
  * @throws {RequiredError}
32
32
  * @memberof IndicesApiInterface
33
33
  */
@@ -35,7 +35,7 @@ export interface IndicesApiInterface {
35
35
  /**
36
36
  * Cost: 10 credits. Only dai has a history series; the others return an empty array with history_available false.
37
37
  * @summary One index with history
38
- * @param {'dai' | 'freedom-velocity' | 'weaponization' | 'f2w-latency'} id
38
+ * @param {'dai' | 'DAI' | 'freedom-velocity' | 'FV' | 'freedom_velocity' | 'weaponization' | 'WEAP' | 'f2w-latency' | 'F2W' | 'f2w_latency'} id Canonical id or one of the short aliases (DAI, FV, WEAP, F2W). Case-insensitive.
39
39
  * @param {*} [options] Override http request option.
40
40
  * @throws {RequiredError}
41
41
  * @memberof IndicesApiInterface
@@ -104,8 +104,14 @@ export declare class IndicesApi extends runtime.BaseAPI implements IndicesApiInt
104
104
  */
105
105
  export declare const GetIndexIdEnum: {
106
106
  readonly Dai: "dai";
107
+ readonly Dai2: "DAI";
107
108
  readonly FreedomVelocity: "freedom-velocity";
109
+ readonly Fv: "FV";
110
+ readonly FreedomVelocity2: "freedom_velocity";
108
111
  readonly Weaponization: "weaponization";
112
+ readonly Weap: "WEAP";
109
113
  readonly F2wLatency: "f2w-latency";
114
+ readonly F2W: "F2W";
115
+ readonly F2wLatency2: "f2w_latency";
110
116
  };
111
117
  export type GetIndexIdEnum = typeof GetIndexIdEnum[keyof typeof GetIndexIdEnum];
@@ -125,7 +125,13 @@ export class IndicesApi extends runtime.BaseAPI {
125
125
  */
126
126
  export const GetIndexIdEnum = {
127
127
  Dai: 'dai',
128
+ Dai2: 'DAI',
128
129
  FreedomVelocity: 'freedom-velocity',
130
+ Fv: 'FV',
131
+ FreedomVelocity2: 'freedom_velocity',
129
132
  Weaponization: 'weaponization',
133
+ Weap: 'WEAP',
130
134
  F2wLatency: 'f2w-latency',
135
+ F2W: 'F2W',
136
+ F2wLatency2: 'f2w_latency',
131
137
  };
@@ -52,7 +52,7 @@ export interface ListModelsRequest {
52
52
  */
53
53
  createdBefore?: string;
54
54
  /**
55
- *
55
+ * Bare key is the natural direction (downloads/likes = most first, dates = newest first). A leading `-` flips it. `created` and `first_seen` are aliases for the full column names.
56
56
  */
57
57
  sort?: ListModelsSortEnum;
58
58
  /**
@@ -102,7 +102,7 @@ export interface ModelsApiInterface {
102
102
  * @param {number} [downloadsLte]
103
103
  * @param {string} [createdAfter] ISO-8601 date or timestamp, inclusive.
104
104
  * @param {string} [createdBefore] ISO-8601 date or timestamp, inclusive.
105
- * @param {'downloads' | '-downloads' | 'created_at' | '-created_at' | 'first_seen_at' | '-first_seen_at'} [sort]
105
+ * @param {'downloads' | '-downloads' | 'likes' | '-likes' | 'created' | '-created' | 'created_at' | '-created_at' | 'first_seen' | '-first_seen' | 'first_seen_at' | '-first_seen_at'} [sort] Bare key is the natural direction (downloads/likes = most first, dates = newest first). A leading `-` flips it. `created` and `first_seen` are aliases for the full column names.
106
106
  * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
107
107
  * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
108
108
  * @throws {RequiredError}
@@ -120,7 +120,7 @@ export interface ModelsApiInterface {
120
120
  * @param {number} [downloadsLte]
121
121
  * @param {string} [createdAfter] ISO-8601 date or timestamp, inclusive.
122
122
  * @param {string} [createdBefore] ISO-8601 date or timestamp, inclusive.
123
- * @param {'downloads' | '-downloads' | 'created_at' | '-created_at' | 'first_seen_at' | '-first_seen_at'} [sort]
123
+ * @param {'downloads' | '-downloads' | 'likes' | '-likes' | 'created' | '-created' | 'created_at' | '-created_at' | 'first_seen' | '-first_seen' | 'first_seen_at' | '-first_seen_at'} [sort] Bare key is the natural direction (downloads/likes = most first, dates = newest first). A leading `-` flips it. `created` and `first_seen` are aliases for the full column names.
124
124
  * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
125
125
  * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
126
126
  * @param {*} [options] Override http request option.
@@ -173,8 +173,14 @@ export declare class ModelsApi extends runtime.BaseAPI implements ModelsApiInter
173
173
  export declare const ListModelsSortEnum: {
174
174
  readonly Downloads: "downloads";
175
175
  readonly Downloads2: "-downloads";
176
+ readonly Likes: "likes";
177
+ readonly Likes2: "-likes";
178
+ readonly Created: "created";
179
+ readonly Created2: "-created";
176
180
  readonly CreatedAt: "created_at";
177
181
  readonly CreatedAt2: "-created_at";
182
+ readonly FirstSeen: "first_seen";
183
+ readonly FirstSeen2: "-first_seen";
178
184
  readonly FirstSeenAt: "first_seen_at";
179
185
  readonly FirstSeenAt2: "-first_seen_at";
180
186
  };
@@ -159,8 +159,14 @@ export class ModelsApi extends runtime.BaseAPI {
159
159
  export const ListModelsSortEnum = {
160
160
  Downloads: 'downloads',
161
161
  Downloads2: '-downloads',
162
+ Likes: 'likes',
163
+ Likes2: '-likes',
164
+ Created: 'created',
165
+ Created2: '-created',
162
166
  CreatedAt: 'created_at',
163
167
  CreatedAt2: '-created_at',
168
+ FirstSeen: 'first_seen',
169
+ FirstSeen2: '-first_seen',
164
170
  FirstSeenAt: 'first_seen_at',
165
171
  FirstSeenAt2: '-first_seen_at',
166
172
  };
@@ -15,6 +15,10 @@
15
15
  * @interface Author
16
16
  */
17
17
  export interface Author {
18
+ /**
19
+ * Same value as `author`; added for consistency with the other single-entity payloads.
20
+ */
21
+ id?: string;
18
22
  /**
19
23
  *
20
24
  */
@@ -25,6 +25,7 @@ export function AuthorFromJSONTyped(json, ignoreDiscriminator) {
25
25
  return json;
26
26
  }
27
27
  return {
28
+ 'id': json['id'] == null ? undefined : json['id'],
28
29
  'author': json['author'] == null ? undefined : json['author'],
29
30
  'total_models': json['total_models'] == null ? undefined : json['total_models'],
30
31
  'total_downloads': json['total_downloads'] == null ? undefined : json['total_downloads'],
@@ -40,6 +41,7 @@ export function AuthorToJSONTyped(value, ignoreDiscriminator = false) {
40
41
  return value;
41
42
  }
42
43
  return {
44
+ 'id': value['id'],
43
45
  'author': value['author'],
44
46
  'total_models': value['total_models'],
45
47
  'total_downloads': value['total_downloads'],
@@ -16,6 +16,10 @@ import type { ModelSummary } from './ModelSummary';
16
16
  * @interface AuthorDetail
17
17
  */
18
18
  export interface AuthorDetail {
19
+ /**
20
+ * Same value as `author`; added for consistency with the other single-entity payloads.
21
+ */
22
+ id?: string;
19
23
  /**
20
24
  *
21
25
  */
@@ -26,6 +26,7 @@ export function AuthorDetailFromJSONTyped(json, ignoreDiscriminator) {
26
26
  return json;
27
27
  }
28
28
  return {
29
+ 'id': json['id'] == null ? undefined : json['id'],
29
30
  'author': json['author'] == null ? undefined : json['author'],
30
31
  'total_models': json['total_models'] == null ? undefined : json['total_models'],
31
32
  'total_downloads': json['total_downloads'] == null ? undefined : json['total_downloads'],
@@ -42,6 +43,7 @@ export function AuthorDetailToJSONTyped(value, ignoreDiscriminator = false) {
42
43
  return value;
43
44
  }
44
45
  return {
46
+ 'id': value['id'],
45
47
  'author': value['author'],
46
48
  'total_models': value['total_models'],
47
49
  'total_downloads': value['total_downloads'],
@@ -15,6 +15,10 @@
15
15
  * @interface Author
16
16
  */
17
17
  export interface Author {
18
+ /**
19
+ * Same value as `author`; added for consistency with the other single-entity payloads.
20
+ */
21
+ id?: string;
18
22
  /**
19
23
  *
20
24
  */
@@ -32,6 +32,7 @@ function AuthorFromJSONTyped(json, ignoreDiscriminator) {
32
32
  return json;
33
33
  }
34
34
  return {
35
+ 'id': json['id'] == null ? undefined : json['id'],
35
36
  'author': json['author'] == null ? undefined : json['author'],
36
37
  'total_models': json['total_models'] == null ? undefined : json['total_models'],
37
38
  'total_downloads': json['total_downloads'] == null ? undefined : json['total_downloads'],
@@ -47,6 +48,7 @@ function AuthorToJSONTyped(value, ignoreDiscriminator = false) {
47
48
  return value;
48
49
  }
49
50
  return {
51
+ 'id': value['id'],
50
52
  'author': value['author'],
51
53
  'total_models': value['total_models'],
52
54
  'total_downloads': value['total_downloads'],
@@ -16,6 +16,10 @@ import type { ModelSummary } from './ModelSummary';
16
16
  * @interface AuthorDetail
17
17
  */
18
18
  export interface AuthorDetail {
19
+ /**
20
+ * Same value as `author`; added for consistency with the other single-entity payloads.
21
+ */
22
+ id?: string;
19
23
  /**
20
24
  *
21
25
  */
@@ -33,6 +33,7 @@ function AuthorDetailFromJSONTyped(json, ignoreDiscriminator) {
33
33
  return json;
34
34
  }
35
35
  return {
36
+ 'id': json['id'] == null ? undefined : json['id'],
36
37
  'author': json['author'] == null ? undefined : json['author'],
37
38
  'total_models': json['total_models'] == null ? undefined : json['total_models'],
38
39
  'total_downloads': json['total_downloads'] == null ? undefined : json['total_downloads'],
@@ -49,6 +50,7 @@ function AuthorDetailToJSONTyped(value, ignoreDiscriminator = false) {
49
50
  return value;
50
51
  }
51
52
  return {
53
+ 'id': value['id'],
52
54
  'author': value['author'],
53
55
  'total_models': value['total_models'],
54
56
  'total_downloads': value['total_downloads'],
package/docs/Author.md ADDED
@@ -0,0 +1,44 @@
1
+
2
+ # Author
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `author` | string
11
+ `total_models` | number
12
+ `total_downloads` | number
13
+ `total_likes` | number
14
+ `first_seen_at` | string
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { Author } from '@abliteration/sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "id": null,
24
+ "author": null,
25
+ "total_models": null,
26
+ "total_downloads": null,
27
+ "total_likes": null,
28
+ "first_seen_at": null,
29
+ } satisfies Author
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as Author
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -0,0 +1,46 @@
1
+
2
+ # AuthorDetail
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `author` | string
11
+ `total_models` | number
12
+ `total_downloads` | number
13
+ `total_likes` | number
14
+ `first_seen_at` | string
15
+ `models` | [Array<ModelSummary>](ModelSummary.md)
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { AuthorDetail } from '@abliteration/sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "id": null,
25
+ "author": null,
26
+ "total_models": null,
27
+ "total_downloads": null,
28
+ "total_likes": null,
29
+ "first_seen_at": null,
30
+ "models": null,
31
+ } satisfies AuthorDetail
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as AuthorDetail
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+
@@ -0,0 +1,167 @@
1
+ # AuthorsApi
2
+
3
+ All URIs are relative to *https://abliteration.org*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**getAuthor**](AuthorsApi.md#getauthor) | **GET** /api/v1/authors/{id} | Get one author |
8
+ | [**listAuthors**](AuthorsApi.md#listauthors) | **GET** /api/v1/authors | List authors |
9
+
10
+
11
+
12
+ ## getAuthor
13
+
14
+ > GetAuthor200Response getAuthor(id)
15
+
16
+ Get one author
17
+
18
+ Cost: 1 credit.
19
+
20
+ ### Example
21
+
22
+ ```ts
23
+ import {
24
+ Configuration,
25
+ AuthorsApi,
26
+ } from '@abliteration/sdk';
27
+ import type { GetAuthorRequest } from '@abliteration/sdk';
28
+
29
+ async function example() {
30
+ console.log("🚀 Testing @abliteration/sdk SDK...");
31
+ const config = new Configuration({
32
+ // Configure HTTP bearer authorization: bearerAuth
33
+ accessToken: "YOUR BEARER TOKEN",
34
+ });
35
+ const api = new AuthorsApi(config);
36
+
37
+ const body = {
38
+ // string
39
+ id: mlabonne,
40
+ } satisfies GetAuthorRequest;
41
+
42
+ try {
43
+ const data = await api.getAuthor(body);
44
+ console.log(data);
45
+ } catch (error) {
46
+ console.error(error);
47
+ }
48
+ }
49
+
50
+ // Run the test
51
+ example().catch(console.error);
52
+ ```
53
+
54
+ ### Parameters
55
+
56
+
57
+ | Name | Type | Description | Notes |
58
+ |------------- | ------------- | ------------- | -------------|
59
+ | **id** | `string` | | [Defaults to `undefined`] |
60
+
61
+ ### Return type
62
+
63
+ [**GetAuthor200Response**](GetAuthor200Response.md)
64
+
65
+ ### Authorization
66
+
67
+ [bearerAuth](../README.md#bearerAuth)
68
+
69
+ ### HTTP request headers
70
+
71
+ - **Content-Type**: Not defined
72
+ - **Accept**: `application/json`
73
+
74
+
75
+ ### HTTP response details
76
+ | Status code | Description | Response headers |
77
+ |-------------|-------------|------------------|
78
+ | **200** | Author totals plus their top models. | - |
79
+ | **401** | Missing, unknown or revoked key. | - |
80
+ | **402** | Not enough credits. Only possible while metering is enabled. | - |
81
+ | **404** | No such entity. | - |
82
+ | **429** | Per-key rate limit exceeded. Retry-After header is set. | - |
83
+ | **503** | Catalog temporarily unreadable. Nothing was charged. | - |
84
+
85
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
86
+
87
+
88
+ ## listAuthors
89
+
90
+ > ListAuthors200Response listAuthors(sort, limit, offset)
91
+
92
+ List authors
93
+
94
+ Cost: 5-15 credits, by rows returned.
95
+
96
+ ### Example
97
+
98
+ ```ts
99
+ import {
100
+ Configuration,
101
+ AuthorsApi,
102
+ } from '@abliteration/sdk';
103
+ import type { ListAuthorsRequest } from '@abliteration/sdk';
104
+
105
+ async function example() {
106
+ console.log("🚀 Testing @abliteration/sdk SDK...");
107
+ const config = new Configuration({
108
+ // Configure HTTP bearer authorization: bearerAuth
109
+ accessToken: "YOUR BEARER TOKEN",
110
+ });
111
+ const api = new AuthorsApi(config);
112
+
113
+ const body = {
114
+ // 'total_downloads' | '-total_downloads' | 'downloads' | '-downloads' | 'total_models' | '-total_models' | 'models' | '-models' | 'total_likes' | '-total_likes' | 'likes' | '-likes' | Bare key is DESC (largest first); a leading `-` flips to ASC. Aliases: `downloads` == `total_downloads`, `models` == `total_models`, `likes` == `total_likes`. (optional)
115
+ sort: sort_example,
116
+ // number | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected. (optional)
117
+ limit: 56,
118
+ // number | Rows to skip. Negative and non-numeric values are treated as 0. (optional)
119
+ offset: 56,
120
+ } satisfies ListAuthorsRequest;
121
+
122
+ try {
123
+ const data = await api.listAuthors(body);
124
+ console.log(data);
125
+ } catch (error) {
126
+ console.error(error);
127
+ }
128
+ }
129
+
130
+ // Run the test
131
+ example().catch(console.error);
132
+ ```
133
+
134
+ ### Parameters
135
+
136
+
137
+ | Name | Type | Description | Notes |
138
+ |------------- | ------------- | ------------- | -------------|
139
+ | **sort** | `total_downloads`, `-total_downloads`, `downloads`, `-downloads`, `total_models`, `-total_models`, `models`, `-models`, `total_likes`, `-total_likes`, `likes`, `-likes` | Bare key is DESC (largest first); a leading `-` flips to ASC. Aliases: `downloads` == `total_downloads`, `models` == `total_models`, `likes` == `total_likes`. | [Optional] [Defaults to `'total_downloads'`] [Enum: total_downloads, -total_downloads, downloads, -downloads, total_models, -total_models, models, -models, total_likes, -total_likes, likes, -likes] |
140
+ | **limit** | `number` | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected. | [Optional] [Defaults to `50`] |
141
+ | **offset** | `number` | Rows to skip. Negative and non-numeric values are treated as 0. | [Optional] [Defaults to `0`] |
142
+
143
+ ### Return type
144
+
145
+ [**ListAuthors200Response**](ListAuthors200Response.md)
146
+
147
+ ### Authorization
148
+
149
+ [bearerAuth](../README.md#bearerAuth)
150
+
151
+ ### HTTP request headers
152
+
153
+ - **Content-Type**: Not defined
154
+ - **Accept**: `application/json`
155
+
156
+
157
+ ### HTTP response details
158
+ | Status code | Description | Response headers |
159
+ |-------------|-------------|------------------|
160
+ | **200** | Authors with aggregate totals. | - |
161
+ | **401** | Missing, unknown or revoked key. | - |
162
+ | **402** | Not enough credits. Only possible while metering is enabled. | - |
163
+ | **429** | Per-key rate limit exceeded. Retry-After header is set. | - |
164
+ | **503** | Catalog temporarily unreadable. Nothing was charged. | - |
165
+
166
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
167
+
@@ -0,0 +1,38 @@
1
+
2
+ # DaiPoint
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `month` | string
10
+ `weighted_dai_pct` | number
11
+ `bases_included` | number
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { DaiPoint } from '@abliteration/sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "month": 2026-09,
21
+ "weighted_dai_pct": null,
22
+ "bases_included": null,
23
+ } satisfies DaiPoint
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as DaiPoint
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,54 @@
1
+
2
+ # Dataset
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `author` | string
11
+ `slug` | string
12
+ `category` | string
13
+ `license` | string
14
+ `downloads` | number
15
+ `downloads_all` | number
16
+ `likes` | number
17
+ `gated` | number
18
+ `created_at` | string
19
+ `first_seen_at` | string
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import type { Dataset } from '@abliteration/sdk'
25
+
26
+ // TODO: Update the object below with actual values
27
+ const example = {
28
+ "id": null,
29
+ "author": null,
30
+ "slug": null,
31
+ "category": null,
32
+ "license": null,
33
+ "downloads": null,
34
+ "downloads_all": null,
35
+ "likes": null,
36
+ "gated": null,
37
+ "created_at": null,
38
+ "first_seen_at": null,
39
+ } satisfies Dataset
40
+
41
+ console.log(example)
42
+
43
+ // Convert the instance to a JSON string
44
+ const exampleJSON: string = JSON.stringify(example)
45
+ console.log(exampleJSON)
46
+
47
+ // Parse the JSON string back to an object
48
+ const exampleParsed = JSON.parse(exampleJSON) as Dataset
49
+ console.log(exampleParsed)
50
+ ```
51
+
52
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
53
+
54
+
@@ -0,0 +1,39 @@
1
+
2
+ # DatasetDetail
3
+
4
+ The full dataset record, plus files and the passport when one exists.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `id` | string
11
+ `files` | Array<object>
12
+ `passport` | [Passport](Passport.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { DatasetDetail } from '@abliteration/sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "id": null,
22
+ "files": null,
23
+ "passport": null,
24
+ } satisfies DatasetDetail
25
+
26
+ console.log(example)
27
+
28
+ // Convert the instance to a JSON string
29
+ const exampleJSON: string = JSON.stringify(example)
30
+ console.log(exampleJSON)
31
+
32
+ // Parse the JSON string back to an object
33
+ const exampleParsed = JSON.parse(exampleJSON) as DatasetDetail
34
+ console.log(exampleParsed)
35
+ ```
36
+
37
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
+
39
+