@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,166 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * abliteration.org Public API
5
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { GetModel200ResponseFromJSON, } from '../models/GetModel200Response';
25
+ import { ListModels200ResponseFromJSON, } from '../models/ListModels200Response';
26
+ /**
27
+ *
28
+ */
29
+ export class ModelsApi extends runtime.BaseAPI {
30
+ /**
31
+ * Creates request options for getModel without sending the request
32
+ */
33
+ getModelRequestOpts(requestParameters) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ if (requestParameters['id'] == null) {
36
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getModel().');
37
+ }
38
+ const queryParameters = {};
39
+ const headerParameters = {};
40
+ if (this.configuration && this.configuration.accessToken) {
41
+ const token = this.configuration.accessToken;
42
+ const tokenString = yield token("bearerAuth", []);
43
+ if (tokenString) {
44
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
45
+ }
46
+ }
47
+ let urlPath = `/api/v1/models/{id}`;
48
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
49
+ return {
50
+ path: urlPath,
51
+ method: 'GET',
52
+ headers: headerParameters,
53
+ query: queryParameters,
54
+ };
55
+ });
56
+ }
57
+ /**
58
+ * 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.
59
+ * Get one model
60
+ */
61
+ getModelRaw(requestParameters, initOverrides) {
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ const requestOptions = yield this.getModelRequestOpts(requestParameters);
64
+ const response = yield this.request(requestOptions, initOverrides);
65
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetModel200ResponseFromJSON(jsonValue));
66
+ });
67
+ }
68
+ /**
69
+ * 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.
70
+ * Get one model
71
+ */
72
+ getModel(requestParameters, initOverrides) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ const response = yield this.getModelRaw(requestParameters, initOverrides);
75
+ return yield response.value();
76
+ });
77
+ }
78
+ /**
79
+ * Creates request options for listModels without sending the request
80
+ */
81
+ listModelsRequestOpts(requestParameters) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ const queryParameters = {};
84
+ if (requestParameters['method'] != null) {
85
+ queryParameters['method'] = requestParameters['method'];
86
+ }
87
+ if (requestParameters['family'] != null) {
88
+ queryParameters['family'] = requestParameters['family'];
89
+ }
90
+ if (requestParameters['author'] != null) {
91
+ queryParameters['author'] = requestParameters['author'];
92
+ }
93
+ if (requestParameters['license'] != null) {
94
+ queryParameters['license'] = requestParameters['license'];
95
+ }
96
+ if (requestParameters['downloadsGte'] != null) {
97
+ queryParameters['downloads_gte'] = requestParameters['downloadsGte'];
98
+ }
99
+ if (requestParameters['downloadsLte'] != null) {
100
+ queryParameters['downloads_lte'] = requestParameters['downloadsLte'];
101
+ }
102
+ if (requestParameters['createdAfter'] != null) {
103
+ queryParameters['created_after'] = requestParameters['createdAfter'];
104
+ }
105
+ if (requestParameters['createdBefore'] != null) {
106
+ queryParameters['created_before'] = requestParameters['createdBefore'];
107
+ }
108
+ if (requestParameters['sort'] != null) {
109
+ queryParameters['sort'] = requestParameters['sort'];
110
+ }
111
+ if (requestParameters['limit'] != null) {
112
+ queryParameters['limit'] = requestParameters['limit'];
113
+ }
114
+ if (requestParameters['offset'] != null) {
115
+ queryParameters['offset'] = requestParameters['offset'];
116
+ }
117
+ const headerParameters = {};
118
+ if (this.configuration && this.configuration.accessToken) {
119
+ const token = this.configuration.accessToken;
120
+ const tokenString = yield token("bearerAuth", []);
121
+ if (tokenString) {
122
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
123
+ }
124
+ }
125
+ let urlPath = `/api/v1/models`;
126
+ return {
127
+ path: urlPath,
128
+ method: 'GET',
129
+ headers: headerParameters,
130
+ query: queryParameters,
131
+ };
132
+ });
133
+ }
134
+ /**
135
+ * 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.
136
+ * List models
137
+ */
138
+ listModelsRaw(requestParameters, initOverrides) {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ const requestOptions = yield this.listModelsRequestOpts(requestParameters);
141
+ const response = yield this.request(requestOptions, initOverrides);
142
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListModels200ResponseFromJSON(jsonValue));
143
+ });
144
+ }
145
+ /**
146
+ * 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.
147
+ * List models
148
+ */
149
+ listModels() {
150
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
151
+ const response = yield this.listModelsRaw(requestParameters, initOverrides);
152
+ return yield response.value();
153
+ });
154
+ }
155
+ }
156
+ /**
157
+ * @export
158
+ */
159
+ export const ListModelsSortEnum = {
160
+ Downloads: 'downloads',
161
+ Downloads2: '-downloads',
162
+ CreatedAt: 'created_at',
163
+ CreatedAt2: '-created_at',
164
+ FirstSeenAt: 'first_seen_at',
165
+ FirstSeenAt2: '-first_seen_at',
166
+ };
@@ -0,0 +1,85 @@
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 ListTimeline200Response } from '../models/ListTimeline200Response';
14
+ export interface ListTimelineRequest {
15
+ /**
16
+ * Inclusive lower bound on the event date, ISO-8601.
17
+ */
18
+ from?: string;
19
+ /**
20
+ * Inclusive upper bound on the event date, ISO-8601.
21
+ */
22
+ to?: string;
23
+ /**
24
+ * Event type, case-insensitive.
25
+ */
26
+ eventType?: string;
27
+ /**
28
+ *
29
+ */
30
+ limit?: number;
31
+ }
32
+ /**
33
+ * TimelineApi - interface
34
+ *
35
+ * @export
36
+ * @interface TimelineApiInterface
37
+ */
38
+ export interface TimelineApiInterface {
39
+ /**
40
+ * Creates request options for listTimeline without sending the request
41
+ * @param {string} [from] Inclusive lower bound on the event date, ISO-8601.
42
+ * @param {string} [to] Inclusive upper bound on the event date, ISO-8601.
43
+ * @param {string} [eventType] Event type, case-insensitive.
44
+ * @param {number} [limit]
45
+ * @throws {RequiredError}
46
+ * @memberof TimelineApiInterface
47
+ */
48
+ listTimelineRequestOpts(requestParameters: ListTimelineRequest): Promise<runtime.RequestOpts>;
49
+ /**
50
+ * Cost: 50 credits, flat.
51
+ * @summary Curated field events
52
+ * @param {string} [from] Inclusive lower bound on the event date, ISO-8601.
53
+ * @param {string} [to] Inclusive upper bound on the event date, ISO-8601.
54
+ * @param {string} [eventType] Event type, case-insensitive.
55
+ * @param {number} [limit]
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ * @memberof TimelineApiInterface
59
+ */
60
+ listTimelineRaw(requestParameters: ListTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListTimeline200Response>>;
61
+ /**
62
+ * Cost: 50 credits, flat.
63
+ * Curated field events
64
+ */
65
+ listTimeline(requestParameters: ListTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListTimeline200Response>;
66
+ }
67
+ /**
68
+ *
69
+ */
70
+ export declare class TimelineApi extends runtime.BaseAPI implements TimelineApiInterface {
71
+ /**
72
+ * Creates request options for listTimeline without sending the request
73
+ */
74
+ listTimelineRequestOpts(requestParameters: ListTimelineRequest): Promise<runtime.RequestOpts>;
75
+ /**
76
+ * Cost: 50 credits, flat.
77
+ * Curated field events
78
+ */
79
+ listTimelineRaw(requestParameters: ListTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListTimeline200Response>>;
80
+ /**
81
+ * Cost: 50 credits, flat.
82
+ * Curated field events
83
+ */
84
+ listTimeline(requestParameters?: ListTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListTimeline200Response>;
85
+ }
@@ -0,0 +1,85 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * abliteration.org Public API
5
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { ListTimeline200ResponseFromJSON, } from '../models/ListTimeline200Response';
25
+ /**
26
+ *
27
+ */
28
+ export class TimelineApi extends runtime.BaseAPI {
29
+ /**
30
+ * Creates request options for listTimeline without sending the request
31
+ */
32
+ listTimelineRequestOpts(requestParameters) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ const queryParameters = {};
35
+ if (requestParameters['from'] != null) {
36
+ queryParameters['from'] = requestParameters['from'];
37
+ }
38
+ if (requestParameters['to'] != null) {
39
+ queryParameters['to'] = requestParameters['to'];
40
+ }
41
+ if (requestParameters['eventType'] != null) {
42
+ queryParameters['event_type'] = requestParameters['eventType'];
43
+ }
44
+ if (requestParameters['limit'] != null) {
45
+ queryParameters['limit'] = requestParameters['limit'];
46
+ }
47
+ const headerParameters = {};
48
+ if (this.configuration && this.configuration.accessToken) {
49
+ const token = this.configuration.accessToken;
50
+ const tokenString = yield token("bearerAuth", []);
51
+ if (tokenString) {
52
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
53
+ }
54
+ }
55
+ let urlPath = `/api/v1/timeline`;
56
+ return {
57
+ path: urlPath,
58
+ method: 'GET',
59
+ headers: headerParameters,
60
+ query: queryParameters,
61
+ };
62
+ });
63
+ }
64
+ /**
65
+ * Cost: 50 credits, flat.
66
+ * Curated field events
67
+ */
68
+ listTimelineRaw(requestParameters, initOverrides) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ const requestOptions = yield this.listTimelineRequestOpts(requestParameters);
71
+ const response = yield this.request(requestOptions, initOverrides);
72
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListTimeline200ResponseFromJSON(jsonValue));
73
+ });
74
+ }
75
+ /**
76
+ * Cost: 50 credits, flat.
77
+ * Curated field events
78
+ */
79
+ listTimeline() {
80
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
81
+ const response = yield this.listTimelineRaw(requestParameters, initOverrides);
82
+ return yield response.value();
83
+ });
84
+ }
85
+ }
@@ -0,0 +1,6 @@
1
+ export * from './AuthorsApi';
2
+ export * from './DatasetsApi';
3
+ export * from './IndicesApi';
4
+ export * from './MethodsApi';
5
+ export * from './ModelsApi';
6
+ export * from './TimelineApi';
@@ -0,0 +1,8 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './AuthorsApi';
4
+ export * from './DatasetsApi';
5
+ export * from './IndicesApi';
6
+ export * from './MethodsApi';
7
+ export * from './ModelsApi';
8
+ export * from './TimelineApi';
@@ -0,0 +1,3 @@
1
+ export * from './runtime';
2
+ export * from './apis/index';
3
+ export * from './models/index';
@@ -0,0 +1,5 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './runtime';
4
+ export * from './apis/index';
5
+ export * from './models/index';
@@ -0,0 +1,46 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface Author
16
+ */
17
+ export interface Author {
18
+ /**
19
+ *
20
+ */
21
+ author?: string;
22
+ /**
23
+ *
24
+ */
25
+ total_models?: number;
26
+ /**
27
+ *
28
+ */
29
+ total_downloads?: number;
30
+ /**
31
+ *
32
+ */
33
+ total_likes?: number;
34
+ /**
35
+ *
36
+ */
37
+ first_seen_at?: string | null;
38
+ }
39
+ /**
40
+ * Check if a given object implements the Author interface.
41
+ */
42
+ export declare function instanceOfAuthor(value: object): value is Author;
43
+ export declare function AuthorFromJSON(json: any): Author;
44
+ export declare function AuthorFromJSONTyped(json: any, ignoreDiscriminator: boolean): Author;
45
+ export declare function AuthorToJSON(json: any): Author;
46
+ export declare function AuthorToJSONTyped(value?: Author | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * abliteration.org Public API
5
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the Author interface.
16
+ */
17
+ export function instanceOfAuthor(value) {
18
+ return true;
19
+ }
20
+ export function AuthorFromJSON(json) {
21
+ return AuthorFromJSONTyped(json, false);
22
+ }
23
+ export function AuthorFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'author': json['author'] == null ? undefined : json['author'],
29
+ 'total_models': json['total_models'] == null ? undefined : json['total_models'],
30
+ 'total_downloads': json['total_downloads'] == null ? undefined : json['total_downloads'],
31
+ 'total_likes': json['total_likes'] == null ? undefined : json['total_likes'],
32
+ 'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'],
33
+ };
34
+ }
35
+ export function AuthorToJSON(json) {
36
+ return AuthorToJSONTyped(json, false);
37
+ }
38
+ export function AuthorToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'author': value['author'],
44
+ 'total_models': value['total_models'],
45
+ 'total_downloads': value['total_downloads'],
46
+ 'total_likes': value['total_likes'],
47
+ 'first_seen_at': value['first_seen_at'],
48
+ };
49
+ }
@@ -0,0 +1,51 @@
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 type { ModelSummary } from './ModelSummary';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AuthorDetail
17
+ */
18
+ export interface AuthorDetail {
19
+ /**
20
+ *
21
+ */
22
+ author?: string;
23
+ /**
24
+ *
25
+ */
26
+ total_models?: number;
27
+ /**
28
+ *
29
+ */
30
+ total_downloads?: number;
31
+ /**
32
+ *
33
+ */
34
+ total_likes?: number;
35
+ /**
36
+ *
37
+ */
38
+ first_seen_at?: string;
39
+ /**
40
+ *
41
+ */
42
+ models?: Array<ModelSummary>;
43
+ }
44
+ /**
45
+ * Check if a given object implements the AuthorDetail interface.
46
+ */
47
+ export declare function instanceOfAuthorDetail(value: object): value is AuthorDetail;
48
+ export declare function AuthorDetailFromJSON(json: any): AuthorDetail;
49
+ export declare function AuthorDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthorDetail;
50
+ export declare function AuthorDetailToJSON(json: any): AuthorDetail;
51
+ export declare function AuthorDetailToJSONTyped(value?: AuthorDetail | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * abliteration.org Public API
5
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ModelSummaryFromJSON, ModelSummaryToJSON, } from './ModelSummary';
15
+ /**
16
+ * Check if a given object implements the AuthorDetail interface.
17
+ */
18
+ export function instanceOfAuthorDetail(value) {
19
+ return true;
20
+ }
21
+ export function AuthorDetailFromJSON(json) {
22
+ return AuthorDetailFromJSONTyped(json, false);
23
+ }
24
+ export function AuthorDetailFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'author': json['author'] == null ? undefined : json['author'],
30
+ 'total_models': json['total_models'] == null ? undefined : json['total_models'],
31
+ 'total_downloads': json['total_downloads'] == null ? undefined : json['total_downloads'],
32
+ 'total_likes': json['total_likes'] == null ? undefined : json['total_likes'],
33
+ 'first_seen_at': json['first_seen_at'] == null ? undefined : json['first_seen_at'],
34
+ 'models': json['models'] == null ? undefined : (json['models'].map(ModelSummaryFromJSON)),
35
+ };
36
+ }
37
+ export function AuthorDetailToJSON(json) {
38
+ return AuthorDetailToJSONTyped(json, false);
39
+ }
40
+ export function AuthorDetailToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'author': value['author'],
46
+ 'total_models': value['total_models'],
47
+ 'total_downloads': value['total_downloads'],
48
+ 'total_likes': value['total_likes'],
49
+ 'first_seen_at': value['first_seen_at'],
50
+ 'models': value['models'] == null ? undefined : (value['models'].map(ModelSummaryToJSON)),
51
+ };
52
+ }
@@ -0,0 +1,38 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface DaiPoint
16
+ */
17
+ export interface DaiPoint {
18
+ /**
19
+ *
20
+ */
21
+ month?: string;
22
+ /**
23
+ *
24
+ */
25
+ weighted_dai_pct?: number;
26
+ /**
27
+ *
28
+ */
29
+ bases_included?: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the DaiPoint interface.
33
+ */
34
+ export declare function instanceOfDaiPoint(value: object): value is DaiPoint;
35
+ export declare function DaiPointFromJSON(json: any): DaiPoint;
36
+ export declare function DaiPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): DaiPoint;
37
+ export declare function DaiPointToJSON(json: any): DaiPoint;
38
+ export declare function DaiPointToJSONTyped(value?: DaiPoint | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * abliteration.org Public API
5
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the DaiPoint interface.
16
+ */
17
+ export function instanceOfDaiPoint(value) {
18
+ return true;
19
+ }
20
+ export function DaiPointFromJSON(json) {
21
+ return DaiPointFromJSONTyped(json, false);
22
+ }
23
+ export function DaiPointFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'month': json['month'] == null ? undefined : json['month'],
29
+ 'weighted_dai_pct': json['weighted_dai_pct'] == null ? undefined : json['weighted_dai_pct'],
30
+ 'bases_included': json['bases_included'] == null ? undefined : json['bases_included'],
31
+ };
32
+ }
33
+ export function DaiPointToJSON(json) {
34
+ return DaiPointToJSONTyped(json, false);
35
+ }
36
+ export function DaiPointToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'month': value['month'],
42
+ 'weighted_dai_pct': value['weighted_dai_pct'],
43
+ 'bases_included': value['bases_included'],
44
+ };
45
+ }