@abliteration/sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/README.md +67 -0
  2. package/dist/apis/AuthorsApi.d.ts +131 -0
  3. package/dist/apis/AuthorsApi.js +144 -0
  4. package/dist/apis/DatasetsApi.d.ts +151 -0
  5. package/dist/apis/DatasetsApi.js +155 -0
  6. package/dist/apis/IndicesApi.d.ts +111 -0
  7. package/dist/apis/IndicesApi.js +135 -0
  8. package/dist/apis/MethodsApi.d.ts +118 -0
  9. package/dist/apis/MethodsApi.js +142 -0
  10. package/dist/apis/ModelsApi.d.ts +181 -0
  11. package/dist/apis/ModelsApi.js +170 -0
  12. package/dist/apis/TimelineApi.d.ts +85 -0
  13. package/dist/apis/TimelineApi.js +89 -0
  14. package/dist/apis/index.d.ts +6 -0
  15. package/dist/apis/index.js +24 -0
  16. package/dist/esm/apis/AuthorsApi.d.ts +131 -0
  17. package/dist/esm/apis/AuthorsApi.js +140 -0
  18. package/dist/esm/apis/DatasetsApi.d.ts +151 -0
  19. package/dist/esm/apis/DatasetsApi.js +151 -0
  20. package/dist/esm/apis/IndicesApi.d.ts +111 -0
  21. package/dist/esm/apis/IndicesApi.js +131 -0
  22. package/dist/esm/apis/MethodsApi.d.ts +118 -0
  23. package/dist/esm/apis/MethodsApi.js +138 -0
  24. package/dist/esm/apis/ModelsApi.d.ts +181 -0
  25. package/dist/esm/apis/ModelsApi.js +166 -0
  26. package/dist/esm/apis/TimelineApi.d.ts +85 -0
  27. package/dist/esm/apis/TimelineApi.js +85 -0
  28. package/dist/esm/apis/index.d.ts +6 -0
  29. package/dist/esm/apis/index.js +8 -0
  30. package/dist/esm/index.d.ts +3 -0
  31. package/dist/esm/index.js +5 -0
  32. package/dist/esm/models/Author.d.ts +46 -0
  33. package/dist/esm/models/Author.js +49 -0
  34. package/dist/esm/models/AuthorDetail.d.ts +51 -0
  35. package/dist/esm/models/AuthorDetail.js +52 -0
  36. package/dist/esm/models/DaiPoint.d.ts +38 -0
  37. package/dist/esm/models/DaiPoint.js +45 -0
  38. package/dist/esm/models/Dataset.d.ts +70 -0
  39. package/dist/esm/models/Dataset.js +61 -0
  40. package/dist/esm/models/DatasetDetail.d.ts +40 -0
  41. package/dist/esm/models/DatasetDetail.js +38 -0
  42. package/dist/esm/models/Envelope.d.ts +66 -0
  43. package/dist/esm/models/Envelope.js +78 -0
  44. package/dist/esm/models/Event.d.ts +54 -0
  45. package/dist/esm/models/Event.js +53 -0
  46. package/dist/esm/models/GetAuthor200Response.d.ts +67 -0
  47. package/dist/esm/models/GetAuthor200Response.js +79 -0
  48. package/dist/esm/models/GetDataset200Response.d.ts +67 -0
  49. package/dist/esm/models/GetDataset200Response.js +79 -0
  50. package/dist/esm/models/GetIndex200Response.d.ts +67 -0
  51. package/dist/esm/models/GetIndex200Response.js +79 -0
  52. package/dist/esm/models/GetMethod200Response.d.ts +67 -0
  53. package/dist/esm/models/GetMethod200Response.js +79 -0
  54. package/dist/esm/models/GetModel200Response.d.ts +67 -0
  55. package/dist/esm/models/GetModel200Response.js +79 -0
  56. package/dist/esm/models/IndexDetail.d.ts +89 -0
  57. package/dist/esm/models/IndexDetail.js +78 -0
  58. package/dist/esm/models/ListAuthors200Response.d.ts +67 -0
  59. package/dist/esm/models/ListAuthors200Response.js +79 -0
  60. package/dist/esm/models/ListDatasets200Response.d.ts +67 -0
  61. package/dist/esm/models/ListDatasets200Response.js +79 -0
  62. package/dist/esm/models/ListIndices200Response.d.ts +67 -0
  63. package/dist/esm/models/ListIndices200Response.js +79 -0
  64. package/dist/esm/models/ListMethods200Response.d.ts +67 -0
  65. package/dist/esm/models/ListMethods200Response.js +79 -0
  66. package/dist/esm/models/ListModels200Response.d.ts +67 -0
  67. package/dist/esm/models/ListModels200Response.js +79 -0
  68. package/dist/esm/models/ListTimeline200Response.d.ts +67 -0
  69. package/dist/esm/models/ListTimeline200Response.js +79 -0
  70. package/dist/esm/models/Method.d.ts +60 -0
  71. package/dist/esm/models/Method.js +60 -0
  72. package/dist/esm/models/MethodDetail.d.ts +74 -0
  73. package/dist/esm/models/MethodDetail.js +68 -0
  74. package/dist/esm/models/MethodDetailAllOfTopAuthors.d.ts +34 -0
  75. package/dist/esm/models/MethodDetailAllOfTopAuthors.js +43 -0
  76. package/dist/esm/models/ModelDetail.d.ts +52 -0
  77. package/dist/esm/models/ModelDetail.js +38 -0
  78. package/dist/esm/models/ModelError.d.ts +46 -0
  79. package/dist/esm/models/ModelError.js +53 -0
  80. package/dist/esm/models/ModelIndex.d.ts +85 -0
  81. package/dist/esm/models/ModelIndex.js +76 -0
  82. package/dist/esm/models/ModelSummary.d.ts +78 -0
  83. package/dist/esm/models/ModelSummary.js +65 -0
  84. package/dist/esm/models/Passport.d.ts +38 -0
  85. package/dist/esm/models/Passport.js +45 -0
  86. package/dist/esm/models/index.d.ts +27 -0
  87. package/dist/esm/models/index.js +29 -0
  88. package/dist/esm/runtime.d.ts +196 -0
  89. package/dist/esm/runtime.js +400 -0
  90. package/dist/index.d.ts +3 -0
  91. package/dist/index.js +21 -0
  92. package/dist/models/Author.d.ts +46 -0
  93. package/dist/models/Author.js +56 -0
  94. package/dist/models/AuthorDetail.d.ts +51 -0
  95. package/dist/models/AuthorDetail.js +59 -0
  96. package/dist/models/DaiPoint.d.ts +38 -0
  97. package/dist/models/DaiPoint.js +52 -0
  98. package/dist/models/Dataset.d.ts +70 -0
  99. package/dist/models/Dataset.js +68 -0
  100. package/dist/models/DatasetDetail.d.ts +40 -0
  101. package/dist/models/DatasetDetail.js +45 -0
  102. package/dist/models/Envelope.d.ts +66 -0
  103. package/dist/models/Envelope.js +86 -0
  104. package/dist/models/Event.d.ts +54 -0
  105. package/dist/models/Event.js +60 -0
  106. package/dist/models/GetAuthor200Response.d.ts +67 -0
  107. package/dist/models/GetAuthor200Response.js +87 -0
  108. package/dist/models/GetDataset200Response.d.ts +67 -0
  109. package/dist/models/GetDataset200Response.js +87 -0
  110. package/dist/models/GetIndex200Response.d.ts +67 -0
  111. package/dist/models/GetIndex200Response.js +87 -0
  112. package/dist/models/GetMethod200Response.d.ts +67 -0
  113. package/dist/models/GetMethod200Response.js +87 -0
  114. package/dist/models/GetModel200Response.d.ts +67 -0
  115. package/dist/models/GetModel200Response.js +87 -0
  116. package/dist/models/IndexDetail.d.ts +89 -0
  117. package/dist/models/IndexDetail.js +86 -0
  118. package/dist/models/ListAuthors200Response.d.ts +67 -0
  119. package/dist/models/ListAuthors200Response.js +87 -0
  120. package/dist/models/ListDatasets200Response.d.ts +67 -0
  121. package/dist/models/ListDatasets200Response.js +87 -0
  122. package/dist/models/ListIndices200Response.d.ts +67 -0
  123. package/dist/models/ListIndices200Response.js +87 -0
  124. package/dist/models/ListMethods200Response.d.ts +67 -0
  125. package/dist/models/ListMethods200Response.js +87 -0
  126. package/dist/models/ListModels200Response.d.ts +67 -0
  127. package/dist/models/ListModels200Response.js +87 -0
  128. package/dist/models/ListTimeline200Response.d.ts +67 -0
  129. package/dist/models/ListTimeline200Response.js +87 -0
  130. package/dist/models/Method.d.ts +60 -0
  131. package/dist/models/Method.js +68 -0
  132. package/dist/models/MethodDetail.d.ts +74 -0
  133. package/dist/models/MethodDetail.js +76 -0
  134. package/dist/models/MethodDetailAllOfTopAuthors.d.ts +34 -0
  135. package/dist/models/MethodDetailAllOfTopAuthors.js +50 -0
  136. package/dist/models/ModelDetail.d.ts +52 -0
  137. package/dist/models/ModelDetail.js +45 -0
  138. package/dist/models/ModelError.d.ts +46 -0
  139. package/dist/models/ModelError.js +60 -0
  140. package/dist/models/ModelIndex.d.ts +85 -0
  141. package/dist/models/ModelIndex.js +84 -0
  142. package/dist/models/ModelSummary.d.ts +78 -0
  143. package/dist/models/ModelSummary.js +72 -0
  144. package/dist/models/Passport.d.ts +38 -0
  145. package/dist/models/Passport.js +52 -0
  146. package/dist/models/index.d.ts +27 -0
  147. package/dist/models/index.js +45 -0
  148. package/dist/runtime.d.ts +196 -0
  149. package/dist/runtime.js +421 -0
  150. package/package.json +31 -0
@@ -0,0 +1,111 @@
1
+ /**
2
+ * abliteration.org Public API
3
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import { type GetIndex200Response } from '../models/GetIndex200Response';
14
+ import { type ListIndices200Response } from '../models/ListIndices200Response';
15
+ export interface GetIndexRequest {
16
+ /**
17
+ *
18
+ */
19
+ id: GetIndexIdEnum;
20
+ }
21
+ /**
22
+ * IndicesApi - interface
23
+ *
24
+ * @export
25
+ * @interface IndicesApiInterface
26
+ */
27
+ export interface IndicesApiInterface {
28
+ /**
29
+ * Creates request options for getIndex without sending the request
30
+ * @param {'dai' | 'freedom-velocity' | 'weaponization' | 'f2w-latency'} id
31
+ * @throws {RequiredError}
32
+ * @memberof IndicesApiInterface
33
+ */
34
+ getIndexRequestOpts(requestParameters: GetIndexRequest): Promise<runtime.RequestOpts>;
35
+ /**
36
+ * Cost: 10 credits. Only dai has a history series; the others return an empty array with history_available false.
37
+ * @summary One index with history
38
+ * @param {'dai' | 'freedom-velocity' | 'weaponization' | 'f2w-latency'} id
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ * @memberof IndicesApiInterface
42
+ */
43
+ getIndexRaw(requestParameters: GetIndexRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetIndex200Response>>;
44
+ /**
45
+ * Cost: 10 credits. Only dai has a history series; the others return an empty array with history_available false.
46
+ * One index with history
47
+ */
48
+ getIndex(requestParameters: GetIndexRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetIndex200Response>;
49
+ /**
50
+ * Creates request options for listIndices without sending the request
51
+ * @throws {RequiredError}
52
+ * @memberof IndicesApiInterface
53
+ */
54
+ listIndicesRequestOpts(): Promise<runtime.RequestOpts>;
55
+ /**
56
+ * Cost: 20 credits. Check the measured flag before treating a value as a finding.
57
+ * @summary All four indices
58
+ * @param {*} [options] Override http request option.
59
+ * @throws {RequiredError}
60
+ * @memberof IndicesApiInterface
61
+ */
62
+ listIndicesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListIndices200Response>>;
63
+ /**
64
+ * Cost: 20 credits. Check the measured flag before treating a value as a finding.
65
+ * All four indices
66
+ */
67
+ listIndices(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListIndices200Response>;
68
+ }
69
+ /**
70
+ *
71
+ */
72
+ export declare class IndicesApi extends runtime.BaseAPI implements IndicesApiInterface {
73
+ /**
74
+ * Creates request options for getIndex without sending the request
75
+ */
76
+ getIndexRequestOpts(requestParameters: GetIndexRequest): Promise<runtime.RequestOpts>;
77
+ /**
78
+ * Cost: 10 credits. Only dai has a history series; the others return an empty array with history_available false.
79
+ * One index with history
80
+ */
81
+ getIndexRaw(requestParameters: GetIndexRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetIndex200Response>>;
82
+ /**
83
+ * Cost: 10 credits. Only dai has a history series; the others return an empty array with history_available false.
84
+ * One index with history
85
+ */
86
+ getIndex(requestParameters: GetIndexRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetIndex200Response>;
87
+ /**
88
+ * Creates request options for listIndices without sending the request
89
+ */
90
+ listIndicesRequestOpts(): Promise<runtime.RequestOpts>;
91
+ /**
92
+ * Cost: 20 credits. Check the measured flag before treating a value as a finding.
93
+ * All four indices
94
+ */
95
+ listIndicesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListIndices200Response>>;
96
+ /**
97
+ * Cost: 20 credits. Check the measured flag before treating a value as a finding.
98
+ * All four indices
99
+ */
100
+ listIndices(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListIndices200Response>;
101
+ }
102
+ /**
103
+ * @export
104
+ */
105
+ export declare const GetIndexIdEnum: {
106
+ readonly Dai: "dai";
107
+ readonly FreedomVelocity: "freedom-velocity";
108
+ readonly Weaponization: "weaponization";
109
+ readonly F2wLatency: "f2w-latency";
110
+ };
111
+ export type GetIndexIdEnum = typeof GetIndexIdEnum[keyof typeof GetIndexIdEnum];
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * abliteration.org Public API
6
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.GetIndexIdEnum = exports.IndicesApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const GetIndex200Response_1 = require("../models/GetIndex200Response");
28
+ const ListIndices200Response_1 = require("../models/ListIndices200Response");
29
+ /**
30
+ *
31
+ */
32
+ class IndicesApi extends runtime.BaseAPI {
33
+ /**
34
+ * Creates request options for getIndex without sending the request
35
+ */
36
+ getIndexRequestOpts(requestParameters) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters['id'] == null) {
39
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getIndex().');
40
+ }
41
+ const queryParameters = {};
42
+ const headerParameters = {};
43
+ if (this.configuration && this.configuration.accessToken) {
44
+ const token = this.configuration.accessToken;
45
+ const tokenString = yield token("bearerAuth", []);
46
+ if (tokenString) {
47
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
48
+ }
49
+ }
50
+ let urlPath = `/api/v1/indices/{id}`;
51
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
52
+ return {
53
+ path: urlPath,
54
+ method: 'GET',
55
+ headers: headerParameters,
56
+ query: queryParameters,
57
+ };
58
+ });
59
+ }
60
+ /**
61
+ * Cost: 10 credits. Only dai has a history series; the others return an empty array with history_available false.
62
+ * One index with history
63
+ */
64
+ getIndexRaw(requestParameters, initOverrides) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ const requestOptions = yield this.getIndexRequestOpts(requestParameters);
67
+ const response = yield this.request(requestOptions, initOverrides);
68
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetIndex200Response_1.GetIndex200ResponseFromJSON)(jsonValue));
69
+ });
70
+ }
71
+ /**
72
+ * Cost: 10 credits. Only dai has a history series; the others return an empty array with history_available false.
73
+ * One index with history
74
+ */
75
+ getIndex(requestParameters, initOverrides) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ const response = yield this.getIndexRaw(requestParameters, initOverrides);
78
+ return yield response.value();
79
+ });
80
+ }
81
+ /**
82
+ * Creates request options for listIndices without sending the request
83
+ */
84
+ listIndicesRequestOpts() {
85
+ return __awaiter(this, void 0, void 0, function* () {
86
+ const queryParameters = {};
87
+ const headerParameters = {};
88
+ if (this.configuration && this.configuration.accessToken) {
89
+ const token = this.configuration.accessToken;
90
+ const tokenString = yield token("bearerAuth", []);
91
+ if (tokenString) {
92
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
93
+ }
94
+ }
95
+ let urlPath = `/api/v1/indices`;
96
+ return {
97
+ path: urlPath,
98
+ method: 'GET',
99
+ headers: headerParameters,
100
+ query: queryParameters,
101
+ };
102
+ });
103
+ }
104
+ /**
105
+ * Cost: 20 credits. Check the measured flag before treating a value as a finding.
106
+ * All four indices
107
+ */
108
+ listIndicesRaw(initOverrides) {
109
+ return __awaiter(this, void 0, void 0, function* () {
110
+ const requestOptions = yield this.listIndicesRequestOpts();
111
+ const response = yield this.request(requestOptions, initOverrides);
112
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ListIndices200Response_1.ListIndices200ResponseFromJSON)(jsonValue));
113
+ });
114
+ }
115
+ /**
116
+ * Cost: 20 credits. Check the measured flag before treating a value as a finding.
117
+ * All four indices
118
+ */
119
+ listIndices(initOverrides) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ const response = yield this.listIndicesRaw(initOverrides);
122
+ return yield response.value();
123
+ });
124
+ }
125
+ }
126
+ exports.IndicesApi = IndicesApi;
127
+ /**
128
+ * @export
129
+ */
130
+ exports.GetIndexIdEnum = {
131
+ Dai: 'dai',
132
+ FreedomVelocity: 'freedom-velocity',
133
+ Weaponization: 'weaponization',
134
+ F2wLatency: 'f2w-latency',
135
+ };
@@ -0,0 +1,118 @@
1
+ /**
2
+ * abliteration.org Public API
3
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import { type GetMethod200Response } from '../models/GetMethod200Response';
14
+ import { type ListMethods200Response } from '../models/ListMethods200Response';
15
+ export interface GetMethodRequest {
16
+ /**
17
+ *
18
+ */
19
+ id: GetMethodIdEnum;
20
+ }
21
+ /**
22
+ * MethodsApi - interface
23
+ *
24
+ * @export
25
+ * @interface MethodsApiInterface
26
+ */
27
+ export interface MethodsApiInterface {
28
+ /**
29
+ * Creates request options for getMethod without sending the request
30
+ * @param {'M1' | 'M2' | 'M3' | 'M4' | 'M5' | 'M5-frankenstein' | 'M6' | 'M7' | 'M8' | 'M-uncensored' | 'unknown'} id
31
+ * @throws {RequiredError}
32
+ * @memberof MethodsApiInterface
33
+ */
34
+ getMethodRequestOpts(requestParameters: GetMethodRequest): Promise<runtime.RequestOpts>;
35
+ /**
36
+ * Cost: 1 credit.
37
+ * @summary Get one method
38
+ * @param {'M1' | 'M2' | 'M3' | 'M4' | 'M5' | 'M5-frankenstein' | 'M6' | 'M7' | 'M8' | 'M-uncensored' | 'unknown'} id
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ * @memberof MethodsApiInterface
42
+ */
43
+ getMethodRaw(requestParameters: GetMethodRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetMethod200Response>>;
44
+ /**
45
+ * Cost: 1 credit.
46
+ * Get one method
47
+ */
48
+ getMethod(requestParameters: GetMethodRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetMethod200Response>;
49
+ /**
50
+ * Creates request options for listMethods without sending the request
51
+ * @throws {RequiredError}
52
+ * @memberof MethodsApiInterface
53
+ */
54
+ listMethodsRequestOpts(): Promise<runtime.RequestOpts>;
55
+ /**
56
+ * Cost: 5-15 credits. Every code is returned, including ones with no models.
57
+ * @summary List the method taxonomy
58
+ * @param {*} [options] Override http request option.
59
+ * @throws {RequiredError}
60
+ * @memberof MethodsApiInterface
61
+ */
62
+ listMethodsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListMethods200Response>>;
63
+ /**
64
+ * Cost: 5-15 credits. Every code is returned, including ones with no models.
65
+ * List the method taxonomy
66
+ */
67
+ listMethods(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListMethods200Response>;
68
+ }
69
+ /**
70
+ *
71
+ */
72
+ export declare class MethodsApi extends runtime.BaseAPI implements MethodsApiInterface {
73
+ /**
74
+ * Creates request options for getMethod without sending the request
75
+ */
76
+ getMethodRequestOpts(requestParameters: GetMethodRequest): Promise<runtime.RequestOpts>;
77
+ /**
78
+ * Cost: 1 credit.
79
+ * Get one method
80
+ */
81
+ getMethodRaw(requestParameters: GetMethodRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetMethod200Response>>;
82
+ /**
83
+ * Cost: 1 credit.
84
+ * Get one method
85
+ */
86
+ getMethod(requestParameters: GetMethodRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetMethod200Response>;
87
+ /**
88
+ * Creates request options for listMethods without sending the request
89
+ */
90
+ listMethodsRequestOpts(): Promise<runtime.RequestOpts>;
91
+ /**
92
+ * Cost: 5-15 credits. Every code is returned, including ones with no models.
93
+ * List the method taxonomy
94
+ */
95
+ listMethodsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListMethods200Response>>;
96
+ /**
97
+ * Cost: 5-15 credits. Every code is returned, including ones with no models.
98
+ * List the method taxonomy
99
+ */
100
+ listMethods(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListMethods200Response>;
101
+ }
102
+ /**
103
+ * @export
104
+ */
105
+ export declare const GetMethodIdEnum: {
106
+ readonly M1: "M1";
107
+ readonly M2: "M2";
108
+ readonly M3: "M3";
109
+ readonly M4: "M4";
110
+ readonly M5: "M5";
111
+ readonly M5Frankenstein: "M5-frankenstein";
112
+ readonly M6: "M6";
113
+ readonly M7: "M7";
114
+ readonly M8: "M8";
115
+ readonly MUncensored: "M-uncensored";
116
+ readonly Unknown: "unknown";
117
+ };
118
+ export type GetMethodIdEnum = typeof GetMethodIdEnum[keyof typeof GetMethodIdEnum];
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * abliteration.org Public API
6
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.GetMethodIdEnum = exports.MethodsApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const GetMethod200Response_1 = require("../models/GetMethod200Response");
28
+ const ListMethods200Response_1 = require("../models/ListMethods200Response");
29
+ /**
30
+ *
31
+ */
32
+ class MethodsApi extends runtime.BaseAPI {
33
+ /**
34
+ * Creates request options for getMethod without sending the request
35
+ */
36
+ getMethodRequestOpts(requestParameters) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters['id'] == null) {
39
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getMethod().');
40
+ }
41
+ const queryParameters = {};
42
+ const headerParameters = {};
43
+ if (this.configuration && this.configuration.accessToken) {
44
+ const token = this.configuration.accessToken;
45
+ const tokenString = yield token("bearerAuth", []);
46
+ if (tokenString) {
47
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
48
+ }
49
+ }
50
+ let urlPath = `/api/v1/methods/{id}`;
51
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
52
+ return {
53
+ path: urlPath,
54
+ method: 'GET',
55
+ headers: headerParameters,
56
+ query: queryParameters,
57
+ };
58
+ });
59
+ }
60
+ /**
61
+ * Cost: 1 credit.
62
+ * Get one method
63
+ */
64
+ getMethodRaw(requestParameters, initOverrides) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ const requestOptions = yield this.getMethodRequestOpts(requestParameters);
67
+ const response = yield this.request(requestOptions, initOverrides);
68
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetMethod200Response_1.GetMethod200ResponseFromJSON)(jsonValue));
69
+ });
70
+ }
71
+ /**
72
+ * Cost: 1 credit.
73
+ * Get one method
74
+ */
75
+ getMethod(requestParameters, initOverrides) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ const response = yield this.getMethodRaw(requestParameters, initOverrides);
78
+ return yield response.value();
79
+ });
80
+ }
81
+ /**
82
+ * Creates request options for listMethods without sending the request
83
+ */
84
+ listMethodsRequestOpts() {
85
+ return __awaiter(this, void 0, void 0, function* () {
86
+ const queryParameters = {};
87
+ const headerParameters = {};
88
+ if (this.configuration && this.configuration.accessToken) {
89
+ const token = this.configuration.accessToken;
90
+ const tokenString = yield token("bearerAuth", []);
91
+ if (tokenString) {
92
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
93
+ }
94
+ }
95
+ let urlPath = `/api/v1/methods`;
96
+ return {
97
+ path: urlPath,
98
+ method: 'GET',
99
+ headers: headerParameters,
100
+ query: queryParameters,
101
+ };
102
+ });
103
+ }
104
+ /**
105
+ * Cost: 5-15 credits. Every code is returned, including ones with no models.
106
+ * List the method taxonomy
107
+ */
108
+ listMethodsRaw(initOverrides) {
109
+ return __awaiter(this, void 0, void 0, function* () {
110
+ const requestOptions = yield this.listMethodsRequestOpts();
111
+ const response = yield this.request(requestOptions, initOverrides);
112
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ListMethods200Response_1.ListMethods200ResponseFromJSON)(jsonValue));
113
+ });
114
+ }
115
+ /**
116
+ * Cost: 5-15 credits. Every code is returned, including ones with no models.
117
+ * List the method taxonomy
118
+ */
119
+ listMethods(initOverrides) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ const response = yield this.listMethodsRaw(initOverrides);
122
+ return yield response.value();
123
+ });
124
+ }
125
+ }
126
+ exports.MethodsApi = MethodsApi;
127
+ /**
128
+ * @export
129
+ */
130
+ exports.GetMethodIdEnum = {
131
+ M1: 'M1',
132
+ M2: 'M2',
133
+ M3: 'M3',
134
+ M4: 'M4',
135
+ M5: 'M5',
136
+ M5Frankenstein: 'M5-frankenstein',
137
+ M6: 'M6',
138
+ M7: 'M7',
139
+ M8: 'M8',
140
+ MUncensored: 'M-uncensored',
141
+ Unknown: 'unknown',
142
+ };