@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,153 @@
1
+ # MethodsApi
2
+
3
+ All URIs are relative to *https://abliteration.org*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**getMethod**](MethodsApi.md#getmethod) | **GET** /api/v1/methods/{id} | Get one method |
8
+ | [**listMethods**](MethodsApi.md#listmethods) | **GET** /api/v1/methods | List the method taxonomy |
9
+
10
+
11
+
12
+ ## getMethod
13
+
14
+ > GetMethod200Response getMethod(id)
15
+
16
+ Get one method
17
+
18
+ Cost: 1 credit.
19
+
20
+ ### Example
21
+
22
+ ```ts
23
+ import {
24
+ Configuration,
25
+ MethodsApi,
26
+ } from '@abliteration/sdk';
27
+ import type { GetMethodRequest } 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 MethodsApi(config);
36
+
37
+ const body = {
38
+ // 'M1' | 'M2' | 'M3' | 'M4' | 'M5' | 'M5-frankenstein' | 'M6' | 'M7' | 'M8' | 'M-uncensored' | 'unknown'
39
+ id: id_example,
40
+ } satisfies GetMethodRequest;
41
+
42
+ try {
43
+ const data = await api.getMethod(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** | `M1`, `M2`, `M3`, `M4`, `M5`, `M5-frankenstein`, `M6`, `M7`, `M8`, `M-uncensored`, `unknown` | | [Defaults to `undefined`] [Enum: M1, M2, M3, M4, M5, M5-frankenstein, M6, M7, M8, M-uncensored, unknown] |
60
+
61
+ ### Return type
62
+
63
+ [**GetMethod200Response**](GetMethod200Response.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** | Method with counts, top authors and sample 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
+ ## listMethods
89
+
90
+ > ListMethods200Response listMethods()
91
+
92
+ List the method taxonomy
93
+
94
+ Cost: 5-15 credits. Every code is returned, including ones with no models.
95
+
96
+ ### Example
97
+
98
+ ```ts
99
+ import {
100
+ Configuration,
101
+ MethodsApi,
102
+ } from '@abliteration/sdk';
103
+ import type { ListMethodsRequest } 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 MethodsApi(config);
112
+
113
+ try {
114
+ const data = await api.listMethods();
115
+ console.log(data);
116
+ } catch (error) {
117
+ console.error(error);
118
+ }
119
+ }
120
+
121
+ // Run the test
122
+ example().catch(console.error);
123
+ ```
124
+
125
+ ### Parameters
126
+
127
+ This endpoint does not need any parameter.
128
+
129
+ ### Return type
130
+
131
+ [**ListMethods200Response**](ListMethods200Response.md)
132
+
133
+ ### Authorization
134
+
135
+ [bearerAuth](../README.md#bearerAuth)
136
+
137
+ ### HTTP request headers
138
+
139
+ - **Content-Type**: Not defined
140
+ - **Accept**: `application/json`
141
+
142
+
143
+ ### HTTP response details
144
+ | Status code | Description | Response headers |
145
+ |-------------|-------------|------------------|
146
+ | **200** | The taxonomy with counts. | - |
147
+ | **401** | Missing, unknown or revoked key. | - |
148
+ | **402** | Not enough credits. Only possible while metering is enabled. | - |
149
+ | **429** | Per-key rate limit exceeded. Retry-After header is set. | - |
150
+ | **503** | Catalog temporarily unreadable. Nothing was charged. | - |
151
+
152
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
153
+
@@ -0,0 +1,45 @@
1
+
2
+ # ModelDetail
3
+
4
+ The full catalog record, plus files, benchmarks and an author summary.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `id` | string
11
+ `author` | string
12
+ `name` | string
13
+ `files` | Array<object>
14
+ `benchmarks` | object
15
+ `author_summary` | [Author](Author.md)
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { ModelDetail } from '@abliteration/sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "id": null,
25
+ "author": null,
26
+ "name": null,
27
+ "files": null,
28
+ "benchmarks": null,
29
+ "author_summary": null,
30
+ } satisfies ModelDetail
31
+
32
+ console.log(example)
33
+
34
+ // Convert the instance to a JSON string
35
+ const exampleJSON: string = JSON.stringify(example)
36
+ console.log(exampleJSON)
37
+
38
+ // Parse the JSON string back to an object
39
+ const exampleParsed = JSON.parse(exampleJSON) as ModelDetail
40
+ console.log(exampleParsed)
41
+ ```
42
+
43
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
44
+
45
+
@@ -0,0 +1,42 @@
1
+
2
+ # ModelError
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `error` | string
10
+ `message` | string
11
+ `retry_after` | number
12
+ `credits_remaining` | number
13
+ `request_id` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { ModelError } from '@abliteration/sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "error": null,
23
+ "message": null,
24
+ "retry_after": null,
25
+ "credits_remaining": null,
26
+ "request_id": null,
27
+ } satisfies ModelError
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as ModelError
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,52 @@
1
+
2
+ # ModelIndex
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `name` | string
11
+ `value` | number
12
+ `unit` | string
13
+ `measured` | boolean
14
+ `source` | string
15
+ `history_available` | boolean
16
+ `as_of` | string
17
+ `note` | string
18
+ `recent_history` | [Array<DaiPoint>](DaiPoint.md)
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import type { ModelIndex } from '@abliteration/sdk'
24
+
25
+ // TODO: Update the object below with actual values
26
+ const example = {
27
+ "id": null,
28
+ "name": null,
29
+ "value": null,
30
+ "unit": null,
31
+ "measured": null,
32
+ "source": null,
33
+ "history_available": null,
34
+ "as_of": null,
35
+ "note": null,
36
+ "recent_history": null,
37
+ } satisfies ModelIndex
38
+
39
+ console.log(example)
40
+
41
+ // Convert the instance to a JSON string
42
+ const exampleJSON: string = JSON.stringify(example)
43
+ console.log(exampleJSON)
44
+
45
+ // Parse the JSON string back to an object
46
+ const exampleParsed = JSON.parse(exampleJSON) as ModelIndex
47
+ console.log(exampleParsed)
48
+ ```
49
+
50
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
51
+
52
+
@@ -0,0 +1,58 @@
1
+
2
+ # ModelSummary
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `author` | string
11
+ `name` | string
12
+ `method` | string
13
+ `confidence` | string
14
+ `family` | string
15
+ `params_b` | number
16
+ `license` | string
17
+ `downloads` | number
18
+ `likes` | number
19
+ `is_gguf` | number
20
+ `created_at` | string
21
+ `first_seen_at` | string
22
+
23
+ ## Example
24
+
25
+ ```typescript
26
+ import type { ModelSummary } from '@abliteration/sdk'
27
+
28
+ // TODO: Update the object below with actual values
29
+ const example = {
30
+ "id": null,
31
+ "author": null,
32
+ "name": null,
33
+ "method": null,
34
+ "confidence": null,
35
+ "family": null,
36
+ "params_b": null,
37
+ "license": null,
38
+ "downloads": null,
39
+ "likes": null,
40
+ "is_gguf": null,
41
+ "created_at": null,
42
+ "first_seen_at": null,
43
+ } satisfies ModelSummary
44
+
45
+ console.log(example)
46
+
47
+ // Convert the instance to a JSON string
48
+ const exampleJSON: string = JSON.stringify(example)
49
+ console.log(exampleJSON)
50
+
51
+ // Parse the JSON string back to an object
52
+ const exampleParsed = JSON.parse(exampleJSON) as ModelSummary
53
+ console.log(exampleParsed)
54
+ ```
55
+
56
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
57
+
58
+
@@ -0,0 +1,191 @@
1
+ # ModelsApi
2
+
3
+ All URIs are relative to *https://abliteration.org*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**getModel**](ModelsApi.md#getmodel) | **GET** /api/v1/models/{id} | Get one model |
8
+ | [**listModels**](ModelsApi.md#listmodels) | **GET** /api/v1/models | List models |
9
+
10
+
11
+
12
+ ## getModel
13
+
14
+ > GetModel200Response getModel(id)
15
+
16
+ Get one model
17
+
18
+ Cost: 10 credits. Priced above /authors/[id], /methods/[id] and /datasets/[id] because iterating over model ids is functionally a slow dump. The id is author/name and must be percent-encoded.
19
+
20
+ ### Example
21
+
22
+ ```ts
23
+ import {
24
+ Configuration,
25
+ ModelsApi,
26
+ } from '@abliteration/sdk';
27
+ import type { GetModelRequest } 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 ModelsApi(config);
36
+
37
+ const body = {
38
+ // string
39
+ id: mlabonne/Qwen3-30B-A3B-abliterated,
40
+ } satisfies GetModelRequest;
41
+
42
+ try {
43
+ const data = await api.getModel(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
+ [**GetModel200Response**](GetModel200Response.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** | Full model record. | - |
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
+ ## listModels
89
+
90
+ > ListModels200Response listModels(method, family, author, license, downloadsGte, downloadsLte, createdAfter, createdBefore, sort, limit, offset)
91
+
92
+ List models
93
+
94
+ Cost: 5-300+ credits, stepped by returned rows and multiplied by `1 + (offset/2500)²`. A filtered lookup up to 200 rows costs 5; a 1000-row page on the first page costs 300; on offset=10000, 5100. Filter cheap, dump expensive. See /api#pricing. Delisted models are excluded here but remain reachable by id.
95
+
96
+ ### Example
97
+
98
+ ```ts
99
+ import {
100
+ Configuration,
101
+ ModelsApi,
102
+ } from '@abliteration/sdk';
103
+ import type { ListModelsRequest } 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 ModelsApi(config);
112
+
113
+ const body = {
114
+ // string | M-code, case-insensitive. See GET /api/v1/methods. (optional)
115
+ method: method_example,
116
+ // string | Base family, for example qwen or llama. (optional)
117
+ family: family_example,
118
+ // string | Publisher handle, case-insensitive. (optional)
119
+ author: author_example,
120
+ // string | SPDX-ish license string as published. (optional)
121
+ license: license_example,
122
+ // number (optional)
123
+ downloadsGte: 56,
124
+ // number (optional)
125
+ downloadsLte: 56,
126
+ // string | ISO-8601 date or timestamp, inclusive. (optional)
127
+ createdAfter: createdAfter_example,
128
+ // string | ISO-8601 date or timestamp, inclusive. (optional)
129
+ createdBefore: createdBefore_example,
130
+ // 'downloads' | '-downloads' | 'likes' | '-likes' | 'created' | '-created' | 'created_at' | '-created_at' | 'first_seen' | '-first_seen' | 'first_seen_at' | '-first_seen_at' | 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. (optional)
131
+ sort: sort_example,
132
+ // number | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected. (optional)
133
+ limit: 56,
134
+ // number | Rows to skip. Negative and non-numeric values are treated as 0. (optional)
135
+ offset: 56,
136
+ } satisfies ListModelsRequest;
137
+
138
+ try {
139
+ const data = await api.listModels(body);
140
+ console.log(data);
141
+ } catch (error) {
142
+ console.error(error);
143
+ }
144
+ }
145
+
146
+ // Run the test
147
+ example().catch(console.error);
148
+ ```
149
+
150
+ ### Parameters
151
+
152
+
153
+ | Name | Type | Description | Notes |
154
+ |------------- | ------------- | ------------- | -------------|
155
+ | **method** | `string` | M-code, case-insensitive. See GET /api/v1/methods. | [Optional] [Defaults to `undefined`] |
156
+ | **family** | `string` | Base family, for example qwen or llama. | [Optional] [Defaults to `undefined`] |
157
+ | **author** | `string` | Publisher handle, case-insensitive. | [Optional] [Defaults to `undefined`] |
158
+ | **license** | `string` | SPDX-ish license string as published. | [Optional] [Defaults to `undefined`] |
159
+ | **downloadsGte** | `number` | | [Optional] [Defaults to `undefined`] |
160
+ | **downloadsLte** | `number` | | [Optional] [Defaults to `undefined`] |
161
+ | **createdAfter** | `string` | ISO-8601 date or timestamp, inclusive. | [Optional] [Defaults to `undefined`] |
162
+ | **createdBefore** | `string` | ISO-8601 date or timestamp, inclusive. | [Optional] [Defaults to `undefined`] |
163
+ | **sort** | `downloads`, `-downloads`, `likes`, `-likes`, `created`, `-created`, `created_at`, `-created_at`, `first_seen`, `-first_seen`, `first_seen_at`, `-first_seen_at` | 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. | [Optional] [Defaults to `'downloads'`] [Enum: downloads, -downloads, likes, -likes, created, -created, created_at, -created_at, first_seen, -first_seen, first_seen_at, -first_seen_at] |
164
+ | **limit** | `number` | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected. | [Optional] [Defaults to `50`] |
165
+ | **offset** | `number` | Rows to skip. Negative and non-numeric values are treated as 0. | [Optional] [Defaults to `0`] |
166
+
167
+ ### Return type
168
+
169
+ [**ListModels200Response**](ListModels200Response.md)
170
+
171
+ ### Authorization
172
+
173
+ [bearerAuth](../README.md#bearerAuth)
174
+
175
+ ### HTTP request headers
176
+
177
+ - **Content-Type**: Not defined
178
+ - **Accept**: `application/json`
179
+
180
+
181
+ ### HTTP response details
182
+ | Status code | Description | Response headers |
183
+ |-------------|-------------|------------------|
184
+ | **200** | Matching models. | - |
185
+ | **401** | Missing, unknown or revoked key. | - |
186
+ | **402** | Not enough credits. Only possible while metering is enabled. | - |
187
+ | **429** | Per-key rate limit exceeded. Retry-After header is set. | - |
188
+ | **503** | Catalog temporarily unreadable. Nothing was charged. | - |
189
+
190
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
191
+
@@ -0,0 +1,38 @@
1
+
2
+ # Passport
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `one_liner` | string
10
+ `practitioner` | string
11
+ `research` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { Passport } from '@abliteration/sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "one_liner": null,
21
+ "practitioner": null,
22
+ "research": null,
23
+ } satisfies Passport
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 Passport
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,93 @@
1
+ # TimelineApi
2
+
3
+ All URIs are relative to *https://abliteration.org*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**listTimeline**](TimelineApi.md#listtimeline) | **GET** /api/v1/timeline | Curated field events |
8
+
9
+
10
+
11
+ ## listTimeline
12
+
13
+ > ListTimeline200Response listTimeline(from, to, eventType, limit)
14
+
15
+ Curated field events
16
+
17
+ Cost: 50 credits, flat.
18
+
19
+ ### Example
20
+
21
+ ```ts
22
+ import {
23
+ Configuration,
24
+ TimelineApi,
25
+ } from '@abliteration/sdk';
26
+ import type { ListTimelineRequest } from '@abliteration/sdk';
27
+
28
+ async function example() {
29
+ console.log("🚀 Testing @abliteration/sdk SDK...");
30
+ const config = new Configuration({
31
+ // Configure HTTP bearer authorization: bearerAuth
32
+ accessToken: "YOUR BEARER TOKEN",
33
+ });
34
+ const api = new TimelineApi(config);
35
+
36
+ const body = {
37
+ // string | Inclusive lower bound on the event date, ISO-8601. (optional)
38
+ from: from_example,
39
+ // string | Inclusive upper bound on the event date, ISO-8601. (optional)
40
+ to: to_example,
41
+ // string | Event type, case-insensitive. (optional)
42
+ eventType: eventType_example,
43
+ // number (optional)
44
+ limit: 56,
45
+ } satisfies ListTimelineRequest;
46
+
47
+ try {
48
+ const data = await api.listTimeline(body);
49
+ console.log(data);
50
+ } catch (error) {
51
+ console.error(error);
52
+ }
53
+ }
54
+
55
+ // Run the test
56
+ example().catch(console.error);
57
+ ```
58
+
59
+ ### Parameters
60
+
61
+
62
+ | Name | Type | Description | Notes |
63
+ |------------- | ------------- | ------------- | -------------|
64
+ | **from** | `string` | Inclusive lower bound on the event date, ISO-8601. | [Optional] [Defaults to `undefined`] |
65
+ | **to** | `string` | Inclusive upper bound on the event date, ISO-8601. | [Optional] [Defaults to `undefined`] |
66
+ | **eventType** | `string` | Event type, case-insensitive. | [Optional] [Defaults to `undefined`] |
67
+ | **limit** | `number` | | [Optional] [Defaults to `100`] |
68
+
69
+ ### Return type
70
+
71
+ [**ListTimeline200Response**](ListTimeline200Response.md)
72
+
73
+ ### Authorization
74
+
75
+ [bearerAuth](../README.md#bearerAuth)
76
+
77
+ ### HTTP request headers
78
+
79
+ - **Content-Type**: Not defined
80
+ - **Accept**: `application/json`
81
+
82
+
83
+ ### HTTP response details
84
+ | Status code | Description | Response headers |
85
+ |-------------|-------------|------------------|
86
+ | **200** | Events, newest first. | - |
87
+ | **401** | Missing, unknown or revoked key. | - |
88
+ | **402** | Not enough credits. Only possible while metering is enabled. | - |
89
+ | **429** | Per-key rate limit exceeded. Retry-After header is set. | - |
90
+ | **503** | Catalog temporarily unreadable. Nothing was charged. | - |
91
+
92
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
93
+
@@ -0,0 +1,10 @@
1
+ {
2
+ "npmName": "@abliteration/sdk",
3
+ "npmVersion": "0.1.0",
4
+ "npmRepository": "https://abliteration.org/api",
5
+ "supportsES6": true,
6
+ "typescriptThreePlus": true,
7
+ "modelPropertyNaming": "original",
8
+ "withInterfaces": true,
9
+ "useSingleRequestParameter": true
10
+ }