@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
@@ -0,0 +1,76 @@
1
+ .gitignore
2
+ .npmignore
3
+ README.md
4
+ docs/Author.md
5
+ docs/AuthorDetail.md
6
+ docs/AuthorsApi.md
7
+ docs/DaiPoint.md
8
+ docs/Dataset.md
9
+ docs/DatasetDetail.md
10
+ docs/DatasetsApi.md
11
+ docs/Envelope.md
12
+ docs/Event.md
13
+ docs/GetAuthor200Response.md
14
+ docs/GetDataset200Response.md
15
+ docs/GetIndex200Response.md
16
+ docs/GetMethod200Response.md
17
+ docs/GetModel200Response.md
18
+ docs/IndexDetail.md
19
+ docs/IndicesApi.md
20
+ docs/ListAuthors200Response.md
21
+ docs/ListDatasets200Response.md
22
+ docs/ListIndices200Response.md
23
+ docs/ListMethods200Response.md
24
+ docs/ListModels200Response.md
25
+ docs/ListTimeline200Response.md
26
+ docs/Method.md
27
+ docs/MethodDetail.md
28
+ docs/MethodDetailAllOfTopAuthors.md
29
+ docs/MethodsApi.md
30
+ docs/ModelDetail.md
31
+ docs/ModelError.md
32
+ docs/ModelIndex.md
33
+ docs/ModelSummary.md
34
+ docs/ModelsApi.md
35
+ docs/Passport.md
36
+ docs/TimelineApi.md
37
+ package.json
38
+ src/apis/AuthorsApi.ts
39
+ src/apis/DatasetsApi.ts
40
+ src/apis/IndicesApi.ts
41
+ src/apis/MethodsApi.ts
42
+ src/apis/ModelsApi.ts
43
+ src/apis/TimelineApi.ts
44
+ src/apis/index.ts
45
+ src/index.ts
46
+ src/models/Author.ts
47
+ src/models/AuthorDetail.ts
48
+ src/models/DaiPoint.ts
49
+ src/models/Dataset.ts
50
+ src/models/DatasetDetail.ts
51
+ src/models/Envelope.ts
52
+ src/models/Event.ts
53
+ src/models/GetAuthor200Response.ts
54
+ src/models/GetDataset200Response.ts
55
+ src/models/GetIndex200Response.ts
56
+ src/models/GetMethod200Response.ts
57
+ src/models/GetModel200Response.ts
58
+ src/models/IndexDetail.ts
59
+ src/models/ListAuthors200Response.ts
60
+ src/models/ListDatasets200Response.ts
61
+ src/models/ListIndices200Response.ts
62
+ src/models/ListMethods200Response.ts
63
+ src/models/ListModels200Response.ts
64
+ src/models/ListTimeline200Response.ts
65
+ src/models/Method.ts
66
+ src/models/MethodDetail.ts
67
+ src/models/MethodDetailAllOfTopAuthors.ts
68
+ src/models/ModelDetail.ts
69
+ src/models/ModelError.ts
70
+ src/models/ModelIndex.ts
71
+ src/models/ModelSummary.ts
72
+ src/models/Passport.ts
73
+ src/models/index.ts
74
+ src/runtime.ts
75
+ tsconfig.esm.json
76
+ tsconfig.json
@@ -0,0 +1 @@
1
+ 7.25.0
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
package/README.md CHANGED
@@ -1,67 +1,158 @@
1
- # @abliteration/sdk
1
+ # @abliteration/sdk@0.1.0
2
2
 
3
- Auto-generated TypeScript SDK for the [abliteration.org](https://abliteration.org) catalog API. Covers every route on `/api/v1` with typed models.
3
+ A TypeScript SDK client for the abliteration.org API.
4
4
 
5
- Works in Node.js 18+ and modern browsers. Uses the standard `fetch` API — no runtime dependencies.
5
+ ## Usage
6
6
 
7
- ## Install
7
+ First, install the SDK from npm.
8
8
 
9
9
  ```bash
10
- npm install @abliteration/sdk
11
- # or
12
- pnpm add @abliteration/sdk
13
- # or
14
- yarn add @abliteration/sdk
10
+ npm install @abliteration/sdk --save
15
11
  ```
16
12
 
17
- ## Get a key
18
-
19
- Generate a Bearer token at <https://abliteration.org/shop/account#api-keys>.
20
-
21
- ## Quick start
22
-
23
- ```typescript
24
- import { Configuration, ModelsApi } from '@abliteration/sdk';
25
-
26
- const cfg = new Configuration({
27
- accessToken: process.env.ABLITERATION_API_KEY,
28
- });
29
-
30
- const models = new ModelsApi(cfg);
31
- const { data, cost, creditsRemaining } = await models.listModels({
32
- method: 'M4',
33
- limit: 5,
34
- });
35
-
36
- for (const m of data) {
37
- console.log(`${m.id} - ${m.downloads}`);
13
+ Next, try it out.
14
+
15
+
16
+ ```ts
17
+ import {
18
+ Configuration,
19
+ AuthorsApi,
20
+ } from '@abliteration/sdk';
21
+ import type { GetAuthorRequest } from '@abliteration/sdk';
22
+
23
+ async function example() {
24
+ console.log("🚀 Testing @abliteration/sdk SDK...");
25
+ const config = new Configuration({
26
+ // Configure HTTP bearer authorization: bearerAuth
27
+ accessToken: "YOUR BEARER TOKEN",
28
+ });
29
+ const api = new AuthorsApi(config);
30
+
31
+ const body = {
32
+ // string
33
+ id: mlabonne,
34
+ } satisfies GetAuthorRequest;
35
+
36
+ try {
37
+ const data = await api.getAuthor(body);
38
+ console.log(data);
39
+ } catch (error) {
40
+ console.error(error);
41
+ }
38
42
  }
39
- console.log(`spent: ${cost}, wallet: ${creditsRemaining}`);
43
+
44
+ // Run the test
45
+ example().catch(console.error);
40
46
  ```
41
47
 
42
- Full API docs: <https://abliteration.org/api>
43
48
 
44
- ## Available APIs
49
+ ## Documentation
50
+
51
+ ### API Endpoints
52
+
53
+ All URIs are relative to *https://abliteration.org*
54
+
55
+ | Class | Method | HTTP request | Description
56
+ | ----- | ------ | ------------ | -------------
57
+ *AuthorsApi* | [**getAuthor**](docs/AuthorsApi.md#getauthor) | **GET** /api/v1/authors/{id} | Get one author
58
+ *AuthorsApi* | [**listAuthors**](docs/AuthorsApi.md#listauthors) | **GET** /api/v1/authors | List authors
59
+ *DatasetsApi* | [**getDataset**](docs/DatasetsApi.md#getdataset) | **GET** /api/v1/datasets/{id} | Get one dataset
60
+ *DatasetsApi* | [**listDatasets**](docs/DatasetsApi.md#listdatasets) | **GET** /api/v1/datasets | List datasets
61
+ *IndicesApi* | [**getIndex**](docs/IndicesApi.md#getindex) | **GET** /api/v1/indices/{id} | One index with history
62
+ *IndicesApi* | [**listIndices**](docs/IndicesApi.md#listindices) | **GET** /api/v1/indices | All four indices
63
+ *MethodsApi* | [**getMethod**](docs/MethodsApi.md#getmethod) | **GET** /api/v1/methods/{id} | Get one method
64
+ *MethodsApi* | [**listMethods**](docs/MethodsApi.md#listmethods) | **GET** /api/v1/methods | List the method taxonomy
65
+ *ModelsApi* | [**getModel**](docs/ModelsApi.md#getmodel) | **GET** /api/v1/models/{id} | Get one model
66
+ *ModelsApi* | [**listModels**](docs/ModelsApi.md#listmodels) | **GET** /api/v1/models | List models
67
+ *TimelineApi* | [**listTimeline**](docs/TimelineApi.md#listtimeline) | **GET** /api/v1/timeline | Curated field events
68
+
69
+
70
+ ### Models
71
+
72
+ - [Author](docs/Author.md)
73
+ - [AuthorDetail](docs/AuthorDetail.md)
74
+ - [DaiPoint](docs/DaiPoint.md)
75
+ - [Dataset](docs/Dataset.md)
76
+ - [DatasetDetail](docs/DatasetDetail.md)
77
+ - [Envelope](docs/Envelope.md)
78
+ - [Event](docs/Event.md)
79
+ - [GetAuthor200Response](docs/GetAuthor200Response.md)
80
+ - [GetDataset200Response](docs/GetDataset200Response.md)
81
+ - [GetIndex200Response](docs/GetIndex200Response.md)
82
+ - [GetMethod200Response](docs/GetMethod200Response.md)
83
+ - [GetModel200Response](docs/GetModel200Response.md)
84
+ - [IndexDetail](docs/IndexDetail.md)
85
+ - [ListAuthors200Response](docs/ListAuthors200Response.md)
86
+ - [ListDatasets200Response](docs/ListDatasets200Response.md)
87
+ - [ListIndices200Response](docs/ListIndices200Response.md)
88
+ - [ListMethods200Response](docs/ListMethods200Response.md)
89
+ - [ListModels200Response](docs/ListModels200Response.md)
90
+ - [ListTimeline200Response](docs/ListTimeline200Response.md)
91
+ - [Method](docs/Method.md)
92
+ - [MethodDetail](docs/MethodDetail.md)
93
+ - [MethodDetailAllOfTopAuthors](docs/MethodDetailAllOfTopAuthors.md)
94
+ - [ModelDetail](docs/ModelDetail.md)
95
+ - [ModelError](docs/ModelError.md)
96
+ - [ModelIndex](docs/ModelIndex.md)
97
+ - [ModelSummary](docs/ModelSummary.md)
98
+ - [Passport](docs/Passport.md)
99
+
100
+ ### Authorization
101
+
102
+
103
+ Authentication schemes defined for the API:
104
+ <a id="bearerAuth"></a>
105
+ #### bearerAuth
106
+
107
+
108
+ - **Type**: HTTP Bearer Token authentication
109
+
110
+ ## About
111
+
112
+ This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.org/)
113
+ and is automatically generated by the
114
+ [OpenAPI Generator](https://openapi-generator.tech) project:
115
+
116
+ - API version: `1.0.0`
117
+ - Package version: `0.1.0`
118
+ - Generator version: `7.25.0`
119
+ - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
120
+
121
+ The generated npm module supports the following:
122
+
123
+ - Environments
124
+ * Node.js
125
+ * Webpack
126
+ * Browserify
127
+ - Language levels
128
+ * ES5 - you must have a Promises/A+ library installed
129
+ * ES6
130
+ - Module systems
131
+ * CommonJS
132
+ * ES6 module system
133
+
134
+ For more information, please visit [https://abliteration.org/api](https://abliteration.org/api)
135
+
136
+ ## Development
137
+
138
+ ### Building
139
+
140
+ To build the TypeScript source code, you need to have Node.js and npm installed.
141
+ After cloning the repository, navigate to the project directory and run:
45
142
 
46
- - `ModelsApi` - list and detail
47
- - `MethodsApi` - M1-M9 taxonomy
48
- - `IndicesApi` - DAI, Freedom Velocity, Weaponization, F2W Latency
49
- - `AuthorsApi`, `DatasetsApi`, `TimelineApi`
143
+ ```bash
144
+ npm install
145
+ npm run build
146
+ ```
50
147
 
51
- Every response carries the envelope fields (`cost`, `creditsRemaining`, `rateLimitLimit`, `rateLimitRemaining`, `rateLimitReset`, `metering`, `requestId`) alongside the typed `data` payload.
148
+ ### Publishing
52
149
 
53
- ## Alternatives
150
+ Once you've built the package, you can publish it to npm:
54
151
 
55
- - CLI: `npm install -g @abliteration/cli` (this SDK is the library, the CLI is the terminal tool)
56
- - Python: `pip install abliteration`
57
- - Ruby: `gem install abliteration`
58
- - Rust: `cargo add abliteration`
59
- - HTTP directly: `fetch` with `Authorization: Bearer` header
152
+ ```bash
153
+ npm publish
154
+ ```
60
155
 
61
156
  ## License
62
157
 
63
- MIT.
64
-
65
- ---
66
-
67
- *This SDK is auto-generated from the OpenAPI spec at [/api/v1/openapi.json](https://abliteration.org/api/v1/openapi.json) using [openapi-generator](https://openapi-generator.tech).*
158
+ []()
@@ -20,7 +20,7 @@ export interface GetAuthorRequest {
20
20
  }
21
21
  export interface ListAuthorsRequest {
22
22
  /**
23
- *
23
+ * Bare key is DESC (largest first); a leading `-` flips to ASC. Aliases: `downloads` == `total_downloads`, `models` == `total_models`, `likes` == `total_likes`.
24
24
  */
25
25
  sort?: ListAuthorsSortEnum;
26
26
  /**
@@ -62,7 +62,7 @@ export interface AuthorsApiInterface {
62
62
  getAuthor(requestParameters: GetAuthorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAuthor200Response>;
63
63
  /**
64
64
  * Creates request options for listAuthors without sending the request
65
- * @param {'total_downloads' | '-total_downloads' | 'total_models' | '-total_models'} [sort]
65
+ * @param {'total_downloads' | '-total_downloads' | 'downloads' | '-downloads' | 'total_models' | '-total_models' | 'models' | '-models' | 'total_likes' | '-total_likes' | 'likes' | '-likes'} [sort] Bare key is DESC (largest first); a leading &#x60;-&#x60; flips to ASC. Aliases: &#x60;downloads&#x60; &#x3D;&#x3D; &#x60;total_downloads&#x60;, &#x60;models&#x60; &#x3D;&#x3D; &#x60;total_models&#x60;, &#x60;likes&#x60; &#x3D;&#x3D; &#x60;total_likes&#x60;.
66
66
  * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
67
67
  * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
68
68
  * @throws {RequiredError}
@@ -72,7 +72,7 @@ export interface AuthorsApiInterface {
72
72
  /**
73
73
  * Cost: 5-15 credits, by rows returned.
74
74
  * @summary List authors
75
- * @param {'total_downloads' | '-total_downloads' | 'total_models' | '-total_models'} [sort]
75
+ * @param {'total_downloads' | '-total_downloads' | 'downloads' | '-downloads' | 'total_models' | '-total_models' | 'models' | '-models' | 'total_likes' | '-total_likes' | 'likes' | '-likes'} [sort] Bare key is DESC (largest first); a leading &#x60;-&#x60; flips to ASC. Aliases: &#x60;downloads&#x60; &#x3D;&#x3D; &#x60;total_downloads&#x60;, &#x60;models&#x60; &#x3D;&#x3D; &#x60;total_models&#x60;, &#x60;likes&#x60; &#x3D;&#x3D; &#x60;total_likes&#x60;.
76
76
  * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
77
77
  * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
78
78
  * @param {*} [options] Override http request option.
@@ -125,7 +125,15 @@ export declare class AuthorsApi extends runtime.BaseAPI implements AuthorsApiInt
125
125
  export declare const ListAuthorsSortEnum: {
126
126
  readonly TotalDownloads: "total_downloads";
127
127
  readonly TotalDownloads2: "-total_downloads";
128
+ readonly Downloads: "downloads";
129
+ readonly Downloads2: "-downloads";
128
130
  readonly TotalModels: "total_models";
129
131
  readonly TotalModels2: "-total_models";
132
+ readonly Models: "models";
133
+ readonly Models2: "-models";
134
+ readonly TotalLikes: "total_likes";
135
+ readonly TotalLikes2: "-total_likes";
136
+ readonly Likes: "likes";
137
+ readonly Likes2: "-likes";
130
138
  };
131
139
  export type ListAuthorsSortEnum = typeof ListAuthorsSortEnum[keyof typeof ListAuthorsSortEnum];
@@ -139,6 +139,14 @@ exports.AuthorsApi = AuthorsApi;
139
139
  exports.ListAuthorsSortEnum = {
140
140
  TotalDownloads: 'total_downloads',
141
141
  TotalDownloads2: '-total_downloads',
142
+ Downloads: 'downloads',
143
+ Downloads2: '-downloads',
142
144
  TotalModels: 'total_models',
143
145
  TotalModels2: '-total_models',
146
+ Models: 'models',
147
+ Models2: '-models',
148
+ TotalLikes: 'total_likes',
149
+ TotalLikes2: '-total_likes',
150
+ Likes: 'likes',
151
+ Likes2: '-likes',
144
152
  };
@@ -32,7 +32,7 @@ export interface ListDatasetsRequest {
32
32
  */
33
33
  license?: string;
34
34
  /**
35
- *
35
+ * 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.
36
36
  */
37
37
  sort?: ListDatasetsSortEnum;
38
38
  /**
@@ -77,7 +77,7 @@ export interface DatasetsApiInterface {
77
77
  * @param {string} [category] Workflow stage, for example heal or extract.
78
78
  * @param {string} [author] Publisher handle, case-insensitive.
79
79
  * @param {string} [license] License string as published.
80
- * @param {'downloads' | '-downloads' | 'created_at' | '-created_at' | 'first_seen_at' | '-first_seen_at'} [sort]
80
+ * @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 &#x3D; most first, dates &#x3D; newest first). A leading &#x60;-&#x60; flips it. &#x60;created&#x60; and &#x60;first_seen&#x60; are aliases for the full column names.
81
81
  * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
82
82
  * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
83
83
  * @throws {RequiredError}
@@ -90,7 +90,7 @@ export interface DatasetsApiInterface {
90
90
  * @param {string} [category] Workflow stage, for example heal or extract.
91
91
  * @param {string} [author] Publisher handle, case-insensitive.
92
92
  * @param {string} [license] License string as published.
93
- * @param {'downloads' | '-downloads' | 'created_at' | '-created_at' | 'first_seen_at' | '-first_seen_at'} [sort]
93
+ * @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 &#x3D; most first, dates &#x3D; newest first). A leading &#x60;-&#x60; flips it. &#x60;created&#x60; and &#x60;first_seen&#x60; are aliases for the full column names.
94
94
  * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
95
95
  * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
96
96
  * @param {*} [options] Override http request option.
@@ -143,8 +143,14 @@ export declare class DatasetsApi extends runtime.BaseAPI implements DatasetsApiI
143
143
  export declare const ListDatasetsSortEnum: {
144
144
  readonly Downloads: "downloads";
145
145
  readonly Downloads2: "-downloads";
146
+ readonly Likes: "likes";
147
+ readonly Likes2: "-likes";
148
+ readonly Created: "created";
149
+ readonly Created2: "-created";
146
150
  readonly CreatedAt: "created_at";
147
151
  readonly CreatedAt2: "-created_at";
152
+ readonly FirstSeen: "first_seen";
153
+ readonly FirstSeen2: "-first_seen";
148
154
  readonly FirstSeenAt: "first_seen_at";
149
155
  readonly FirstSeenAt2: "-first_seen_at";
150
156
  };
@@ -148,8 +148,14 @@ exports.DatasetsApi = DatasetsApi;
148
148
  exports.ListDatasetsSortEnum = {
149
149
  Downloads: 'downloads',
150
150
  Downloads2: '-downloads',
151
+ Likes: 'likes',
152
+ Likes2: '-likes',
153
+ Created: 'created',
154
+ Created2: '-created',
151
155
  CreatedAt: 'created_at',
152
156
  CreatedAt2: '-created_at',
157
+ FirstSeen: 'first_seen',
158
+ FirstSeen2: '-first_seen',
153
159
  FirstSeenAt: 'first_seen_at',
154
160
  FirstSeenAt2: '-first_seen_at',
155
161
  };
@@ -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];
@@ -129,7 +129,13 @@ exports.IndicesApi = IndicesApi;
129
129
  */
130
130
  exports.GetIndexIdEnum = {
131
131
  Dai: 'dai',
132
+ Dai2: 'DAI',
132
133
  FreedomVelocity: 'freedom-velocity',
134
+ Fv: 'FV',
135
+ FreedomVelocity2: 'freedom_velocity',
133
136
  Weaponization: 'weaponization',
137
+ Weap: 'WEAP',
134
138
  F2wLatency: 'f2w-latency',
139
+ F2W: 'F2W',
140
+ F2wLatency2: 'f2w_latency',
135
141
  };
@@ -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 &#x3D; most first, dates &#x3D; newest first). A leading &#x60;-&#x60; flips it. &#x60;created&#x60; and &#x60;first_seen&#x60; 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 &#x3D; most first, dates &#x3D; newest first). A leading &#x60;-&#x60; flips it. &#x60;created&#x60; and &#x60;first_seen&#x60; 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
  };
@@ -163,8 +163,14 @@ exports.ModelsApi = ModelsApi;
163
163
  exports.ListModelsSortEnum = {
164
164
  Downloads: 'downloads',
165
165
  Downloads2: '-downloads',
166
+ Likes: 'likes',
167
+ Likes2: '-likes',
168
+ Created: 'created',
169
+ Created2: '-created',
166
170
  CreatedAt: 'created_at',
167
171
  CreatedAt2: '-created_at',
172
+ FirstSeen: 'first_seen',
173
+ FirstSeen2: '-first_seen',
168
174
  FirstSeenAt: 'first_seen_at',
169
175
  FirstSeenAt2: '-first_seen_at',
170
176
  };
@@ -20,7 +20,7 @@ export interface GetAuthorRequest {
20
20
  }
21
21
  export interface ListAuthorsRequest {
22
22
  /**
23
- *
23
+ * Bare key is DESC (largest first); a leading `-` flips to ASC. Aliases: `downloads` == `total_downloads`, `models` == `total_models`, `likes` == `total_likes`.
24
24
  */
25
25
  sort?: ListAuthorsSortEnum;
26
26
  /**
@@ -62,7 +62,7 @@ export interface AuthorsApiInterface {
62
62
  getAuthor(requestParameters: GetAuthorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAuthor200Response>;
63
63
  /**
64
64
  * Creates request options for listAuthors without sending the request
65
- * @param {'total_downloads' | '-total_downloads' | 'total_models' | '-total_models'} [sort]
65
+ * @param {'total_downloads' | '-total_downloads' | 'downloads' | '-downloads' | 'total_models' | '-total_models' | 'models' | '-models' | 'total_likes' | '-total_likes' | 'likes' | '-likes'} [sort] Bare key is DESC (largest first); a leading &#x60;-&#x60; flips to ASC. Aliases: &#x60;downloads&#x60; &#x3D;&#x3D; &#x60;total_downloads&#x60;, &#x60;models&#x60; &#x3D;&#x3D; &#x60;total_models&#x60;, &#x60;likes&#x60; &#x3D;&#x3D; &#x60;total_likes&#x60;.
66
66
  * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
67
67
  * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
68
68
  * @throws {RequiredError}
@@ -72,7 +72,7 @@ export interface AuthorsApiInterface {
72
72
  /**
73
73
  * Cost: 5-15 credits, by rows returned.
74
74
  * @summary List authors
75
- * @param {'total_downloads' | '-total_downloads' | 'total_models' | '-total_models'} [sort]
75
+ * @param {'total_downloads' | '-total_downloads' | 'downloads' | '-downloads' | 'total_models' | '-total_models' | 'models' | '-models' | 'total_likes' | '-total_likes' | 'likes' | '-likes'} [sort] Bare key is DESC (largest first); a leading &#x60;-&#x60; flips to ASC. Aliases: &#x60;downloads&#x60; &#x3D;&#x3D; &#x60;total_downloads&#x60;, &#x60;models&#x60; &#x3D;&#x3D; &#x60;total_models&#x60;, &#x60;likes&#x60; &#x3D;&#x3D; &#x60;total_likes&#x60;.
76
76
  * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
77
77
  * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
78
78
  * @param {*} [options] Override http request option.
@@ -125,7 +125,15 @@ export declare class AuthorsApi extends runtime.BaseAPI implements AuthorsApiInt
125
125
  export declare const ListAuthorsSortEnum: {
126
126
  readonly TotalDownloads: "total_downloads";
127
127
  readonly TotalDownloads2: "-total_downloads";
128
+ readonly Downloads: "downloads";
129
+ readonly Downloads2: "-downloads";
128
130
  readonly TotalModels: "total_models";
129
131
  readonly TotalModels2: "-total_models";
132
+ readonly Models: "models";
133
+ readonly Models2: "-models";
134
+ readonly TotalLikes: "total_likes";
135
+ readonly TotalLikes2: "-total_likes";
136
+ readonly Likes: "likes";
137
+ readonly Likes2: "-likes";
130
138
  };
131
139
  export type ListAuthorsSortEnum = typeof ListAuthorsSortEnum[keyof typeof ListAuthorsSortEnum];
@@ -135,6 +135,14 @@ export class AuthorsApi extends runtime.BaseAPI {
135
135
  export const ListAuthorsSortEnum = {
136
136
  TotalDownloads: 'total_downloads',
137
137
  TotalDownloads2: '-total_downloads',
138
+ Downloads: 'downloads',
139
+ Downloads2: '-downloads',
138
140
  TotalModels: 'total_models',
139
141
  TotalModels2: '-total_models',
142
+ Models: 'models',
143
+ Models2: '-models',
144
+ TotalLikes: 'total_likes',
145
+ TotalLikes2: '-total_likes',
146
+ Likes: 'likes',
147
+ Likes2: '-likes',
140
148
  };
@@ -32,7 +32,7 @@ export interface ListDatasetsRequest {
32
32
  */
33
33
  license?: string;
34
34
  /**
35
- *
35
+ * 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.
36
36
  */
37
37
  sort?: ListDatasetsSortEnum;
38
38
  /**
@@ -77,7 +77,7 @@ export interface DatasetsApiInterface {
77
77
  * @param {string} [category] Workflow stage, for example heal or extract.
78
78
  * @param {string} [author] Publisher handle, case-insensitive.
79
79
  * @param {string} [license] License string as published.
80
- * @param {'downloads' | '-downloads' | 'created_at' | '-created_at' | 'first_seen_at' | '-first_seen_at'} [sort]
80
+ * @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 &#x3D; most first, dates &#x3D; newest first). A leading &#x60;-&#x60; flips it. &#x60;created&#x60; and &#x60;first_seen&#x60; are aliases for the full column names.
81
81
  * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
82
82
  * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
83
83
  * @throws {RequiredError}
@@ -90,7 +90,7 @@ export interface DatasetsApiInterface {
90
90
  * @param {string} [category] Workflow stage, for example heal or extract.
91
91
  * @param {string} [author] Publisher handle, case-insensitive.
92
92
  * @param {string} [license] License string as published.
93
- * @param {'downloads' | '-downloads' | 'created_at' | '-created_at' | 'first_seen_at' | '-first_seen_at'} [sort]
93
+ * @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 &#x3D; most first, dates &#x3D; newest first). A leading &#x60;-&#x60; flips it. &#x60;created&#x60; and &#x60;first_seen&#x60; are aliases for the full column names.
94
94
  * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
95
95
  * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
96
96
  * @param {*} [options] Override http request option.
@@ -143,8 +143,14 @@ export declare class DatasetsApi extends runtime.BaseAPI implements DatasetsApiI
143
143
  export declare const ListDatasetsSortEnum: {
144
144
  readonly Downloads: "downloads";
145
145
  readonly Downloads2: "-downloads";
146
+ readonly Likes: "likes";
147
+ readonly Likes2: "-likes";
148
+ readonly Created: "created";
149
+ readonly Created2: "-created";
146
150
  readonly CreatedAt: "created_at";
147
151
  readonly CreatedAt2: "-created_at";
152
+ readonly FirstSeen: "first_seen";
153
+ readonly FirstSeen2: "-first_seen";
148
154
  readonly FirstSeenAt: "first_seen_at";
149
155
  readonly FirstSeenAt2: "-first_seen_at";
150
156
  };