@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,78 @@
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 { DaiPointFromJSON, DaiPointToJSON, } from './DaiPoint';
15
+ /**
16
+ * @export
17
+ */
18
+ export const IndexDetailIdEnum = {
19
+ Dai: 'dai',
20
+ FreedomVelocity: 'freedom-velocity',
21
+ Weaponization: 'weaponization',
22
+ F2wLatency: 'f2w-latency',
23
+ };
24
+ /**
25
+ * @export
26
+ */
27
+ export const IndexDetailUnitEnum = {
28
+ Percent: 'percent',
29
+ Days: 'days',
30
+ };
31
+ /**
32
+ * Check if a given object implements the IndexDetail interface.
33
+ */
34
+ export function instanceOfIndexDetail(value) {
35
+ return true;
36
+ }
37
+ export function IndexDetailFromJSON(json) {
38
+ return IndexDetailFromJSONTyped(json, false);
39
+ }
40
+ export function IndexDetailFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'] == null ? undefined : json['id'],
46
+ 'name': json['name'] == null ? undefined : json['name'],
47
+ 'value': json['value'] == null ? undefined : json['value'],
48
+ 'unit': json['unit'] == null ? undefined : json['unit'],
49
+ 'measured': json['measured'] == null ? undefined : json['measured'],
50
+ 'source': json['source'] == null ? undefined : json['source'],
51
+ 'history_available': json['history_available'] == null ? undefined : json['history_available'],
52
+ 'as_of': json['as_of'] == null ? undefined : json['as_of'],
53
+ 'note': json['note'] == null ? undefined : json['note'],
54
+ 'recent_history': json['recent_history'] == null ? undefined : (json['recent_history'].map(DaiPointFromJSON)),
55
+ 'history': json['history'] == null ? undefined : (json['history'].map(DaiPointFromJSON)),
56
+ };
57
+ }
58
+ export function IndexDetailToJSON(json) {
59
+ return IndexDetailToJSONTyped(json, false);
60
+ }
61
+ export function IndexDetailToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'id': value['id'],
67
+ 'name': value['name'],
68
+ 'value': value['value'],
69
+ 'unit': value['unit'],
70
+ 'measured': value['measured'],
71
+ 'source': value['source'],
72
+ 'history_available': value['history_available'],
73
+ 'as_of': value['as_of'],
74
+ 'note': value['note'],
75
+ 'recent_history': value['recent_history'] == null ? undefined : (value['recent_history'].map(DaiPointToJSON)),
76
+ 'history': value['history'] == null ? undefined : (value['history'].map(DaiPointToJSON)),
77
+ };
78
+ }
@@ -0,0 +1,67 @@
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 { Author } from './Author';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListAuthors200Response
17
+ */
18
+ export interface ListAuthors200Response {
19
+ /**
20
+ *
21
+ */
22
+ data: Array<Author>;
23
+ /**
24
+ * Credits this call costs.
25
+ */
26
+ cost: number;
27
+ /**
28
+ * Wallet balance after the call. Unchanged while metering is preview.
29
+ */
30
+ credits_remaining: number;
31
+ /**
32
+ * Ceiling for the current window. Also returned as X-RateLimit-Limit.
33
+ */
34
+ rate_limit_limit: number;
35
+ /**
36
+ * Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
37
+ */
38
+ rate_limit_remaining: number;
39
+ /**
40
+ * Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
41
+ */
42
+ rate_limit_reset: number;
43
+ /**
44
+ * Whether cost was actually deducted.
45
+ */
46
+ metering: ListAuthors200ResponseMeteringEnum;
47
+ /**
48
+ * Also returned in the x-request-id header.
49
+ */
50
+ request_id: string;
51
+ }
52
+ /**
53
+ * @export
54
+ */
55
+ export declare const ListAuthors200ResponseMeteringEnum: {
56
+ readonly Preview: "preview";
57
+ readonly Billed: "billed";
58
+ };
59
+ export type ListAuthors200ResponseMeteringEnum = typeof ListAuthors200ResponseMeteringEnum[keyof typeof ListAuthors200ResponseMeteringEnum];
60
+ /**
61
+ * Check if a given object implements the ListAuthors200Response interface.
62
+ */
63
+ export declare function instanceOfListAuthors200Response(value: object): value is ListAuthors200Response;
64
+ export declare function ListAuthors200ResponseFromJSON(json: any): ListAuthors200Response;
65
+ export declare function ListAuthors200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAuthors200Response;
66
+ export declare function ListAuthors200ResponseToJSON(json: any): ListAuthors200Response;
67
+ export declare function ListAuthors200ResponseToJSONTyped(value?: ListAuthors200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
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 { AuthorFromJSON, AuthorToJSON, } from './Author';
15
+ /**
16
+ * @export
17
+ */
18
+ export const ListAuthors200ResponseMeteringEnum = {
19
+ Preview: 'preview',
20
+ Billed: 'billed',
21
+ };
22
+ /**
23
+ * Check if a given object implements the ListAuthors200Response interface.
24
+ */
25
+ export function instanceOfListAuthors200Response(value) {
26
+ if (!('data' in value) || value['data'] === undefined)
27
+ return false;
28
+ if (!('cost' in value) || value['cost'] === undefined)
29
+ return false;
30
+ if (!('credits_remaining' in value) || value['credits_remaining'] === undefined)
31
+ return false;
32
+ if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined)
33
+ return false;
34
+ if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined)
35
+ return false;
36
+ if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined)
37
+ return false;
38
+ if (!('metering' in value) || value['metering'] === undefined)
39
+ return false;
40
+ if (!('request_id' in value) || value['request_id'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ export function ListAuthors200ResponseFromJSON(json) {
45
+ return ListAuthors200ResponseFromJSONTyped(json, false);
46
+ }
47
+ export function ListAuthors200ResponseFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'data': (json['data'].map(AuthorFromJSON)),
53
+ 'cost': json['cost'],
54
+ 'credits_remaining': json['credits_remaining'],
55
+ 'rate_limit_limit': json['rate_limit_limit'],
56
+ 'rate_limit_remaining': json['rate_limit_remaining'],
57
+ 'rate_limit_reset': json['rate_limit_reset'],
58
+ 'metering': json['metering'],
59
+ 'request_id': json['request_id'],
60
+ };
61
+ }
62
+ export function ListAuthors200ResponseToJSON(json) {
63
+ return ListAuthors200ResponseToJSONTyped(json, false);
64
+ }
65
+ export function ListAuthors200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+ 'data': (value['data'].map(AuthorToJSON)),
71
+ 'cost': value['cost'],
72
+ 'credits_remaining': value['credits_remaining'],
73
+ 'rate_limit_limit': value['rate_limit_limit'],
74
+ 'rate_limit_remaining': value['rate_limit_remaining'],
75
+ 'rate_limit_reset': value['rate_limit_reset'],
76
+ 'metering': value['metering'],
77
+ 'request_id': value['request_id'],
78
+ };
79
+ }
@@ -0,0 +1,67 @@
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 { Dataset } from './Dataset';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListDatasets200Response
17
+ */
18
+ export interface ListDatasets200Response {
19
+ /**
20
+ *
21
+ */
22
+ data: Array<Dataset>;
23
+ /**
24
+ * Credits this call costs.
25
+ */
26
+ cost: number;
27
+ /**
28
+ * Wallet balance after the call. Unchanged while metering is preview.
29
+ */
30
+ credits_remaining: number;
31
+ /**
32
+ * Ceiling for the current window. Also returned as X-RateLimit-Limit.
33
+ */
34
+ rate_limit_limit: number;
35
+ /**
36
+ * Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
37
+ */
38
+ rate_limit_remaining: number;
39
+ /**
40
+ * Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
41
+ */
42
+ rate_limit_reset: number;
43
+ /**
44
+ * Whether cost was actually deducted.
45
+ */
46
+ metering: ListDatasets200ResponseMeteringEnum;
47
+ /**
48
+ * Also returned in the x-request-id header.
49
+ */
50
+ request_id: string;
51
+ }
52
+ /**
53
+ * @export
54
+ */
55
+ export declare const ListDatasets200ResponseMeteringEnum: {
56
+ readonly Preview: "preview";
57
+ readonly Billed: "billed";
58
+ };
59
+ export type ListDatasets200ResponseMeteringEnum = typeof ListDatasets200ResponseMeteringEnum[keyof typeof ListDatasets200ResponseMeteringEnum];
60
+ /**
61
+ * Check if a given object implements the ListDatasets200Response interface.
62
+ */
63
+ export declare function instanceOfListDatasets200Response(value: object): value is ListDatasets200Response;
64
+ export declare function ListDatasets200ResponseFromJSON(json: any): ListDatasets200Response;
65
+ export declare function ListDatasets200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDatasets200Response;
66
+ export declare function ListDatasets200ResponseToJSON(json: any): ListDatasets200Response;
67
+ export declare function ListDatasets200ResponseToJSONTyped(value?: ListDatasets200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
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 { DatasetFromJSON, DatasetToJSON, } from './Dataset';
15
+ /**
16
+ * @export
17
+ */
18
+ export const ListDatasets200ResponseMeteringEnum = {
19
+ Preview: 'preview',
20
+ Billed: 'billed',
21
+ };
22
+ /**
23
+ * Check if a given object implements the ListDatasets200Response interface.
24
+ */
25
+ export function instanceOfListDatasets200Response(value) {
26
+ if (!('data' in value) || value['data'] === undefined)
27
+ return false;
28
+ if (!('cost' in value) || value['cost'] === undefined)
29
+ return false;
30
+ if (!('credits_remaining' in value) || value['credits_remaining'] === undefined)
31
+ return false;
32
+ if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined)
33
+ return false;
34
+ if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined)
35
+ return false;
36
+ if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined)
37
+ return false;
38
+ if (!('metering' in value) || value['metering'] === undefined)
39
+ return false;
40
+ if (!('request_id' in value) || value['request_id'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ export function ListDatasets200ResponseFromJSON(json) {
45
+ return ListDatasets200ResponseFromJSONTyped(json, false);
46
+ }
47
+ export function ListDatasets200ResponseFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'data': (json['data'].map(DatasetFromJSON)),
53
+ 'cost': json['cost'],
54
+ 'credits_remaining': json['credits_remaining'],
55
+ 'rate_limit_limit': json['rate_limit_limit'],
56
+ 'rate_limit_remaining': json['rate_limit_remaining'],
57
+ 'rate_limit_reset': json['rate_limit_reset'],
58
+ 'metering': json['metering'],
59
+ 'request_id': json['request_id'],
60
+ };
61
+ }
62
+ export function ListDatasets200ResponseToJSON(json) {
63
+ return ListDatasets200ResponseToJSONTyped(json, false);
64
+ }
65
+ export function ListDatasets200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+ 'data': (value['data'].map(DatasetToJSON)),
71
+ 'cost': value['cost'],
72
+ 'credits_remaining': value['credits_remaining'],
73
+ 'rate_limit_limit': value['rate_limit_limit'],
74
+ 'rate_limit_remaining': value['rate_limit_remaining'],
75
+ 'rate_limit_reset': value['rate_limit_reset'],
76
+ 'metering': value['metering'],
77
+ 'request_id': value['request_id'],
78
+ };
79
+ }
@@ -0,0 +1,67 @@
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 { ModelIndex } from './ModelIndex';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListIndices200Response
17
+ */
18
+ export interface ListIndices200Response {
19
+ /**
20
+ *
21
+ */
22
+ data: Array<ModelIndex>;
23
+ /**
24
+ * Credits this call costs.
25
+ */
26
+ cost: number;
27
+ /**
28
+ * Wallet balance after the call. Unchanged while metering is preview.
29
+ */
30
+ credits_remaining: number;
31
+ /**
32
+ * Ceiling for the current window. Also returned as X-RateLimit-Limit.
33
+ */
34
+ rate_limit_limit: number;
35
+ /**
36
+ * Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
37
+ */
38
+ rate_limit_remaining: number;
39
+ /**
40
+ * Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
41
+ */
42
+ rate_limit_reset: number;
43
+ /**
44
+ * Whether cost was actually deducted.
45
+ */
46
+ metering: ListIndices200ResponseMeteringEnum;
47
+ /**
48
+ * Also returned in the x-request-id header.
49
+ */
50
+ request_id: string;
51
+ }
52
+ /**
53
+ * @export
54
+ */
55
+ export declare const ListIndices200ResponseMeteringEnum: {
56
+ readonly Preview: "preview";
57
+ readonly Billed: "billed";
58
+ };
59
+ export type ListIndices200ResponseMeteringEnum = typeof ListIndices200ResponseMeteringEnum[keyof typeof ListIndices200ResponseMeteringEnum];
60
+ /**
61
+ * Check if a given object implements the ListIndices200Response interface.
62
+ */
63
+ export declare function instanceOfListIndices200Response(value: object): value is ListIndices200Response;
64
+ export declare function ListIndices200ResponseFromJSON(json: any): ListIndices200Response;
65
+ export declare function ListIndices200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListIndices200Response;
66
+ export declare function ListIndices200ResponseToJSON(json: any): ListIndices200Response;
67
+ export declare function ListIndices200ResponseToJSONTyped(value?: ListIndices200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
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 { ModelIndexFromJSON, ModelIndexToJSON, } from './ModelIndex';
15
+ /**
16
+ * @export
17
+ */
18
+ export const ListIndices200ResponseMeteringEnum = {
19
+ Preview: 'preview',
20
+ Billed: 'billed',
21
+ };
22
+ /**
23
+ * Check if a given object implements the ListIndices200Response interface.
24
+ */
25
+ export function instanceOfListIndices200Response(value) {
26
+ if (!('data' in value) || value['data'] === undefined)
27
+ return false;
28
+ if (!('cost' in value) || value['cost'] === undefined)
29
+ return false;
30
+ if (!('credits_remaining' in value) || value['credits_remaining'] === undefined)
31
+ return false;
32
+ if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined)
33
+ return false;
34
+ if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined)
35
+ return false;
36
+ if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined)
37
+ return false;
38
+ if (!('metering' in value) || value['metering'] === undefined)
39
+ return false;
40
+ if (!('request_id' in value) || value['request_id'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ export function ListIndices200ResponseFromJSON(json) {
45
+ return ListIndices200ResponseFromJSONTyped(json, false);
46
+ }
47
+ export function ListIndices200ResponseFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'data': (json['data'].map(ModelIndexFromJSON)),
53
+ 'cost': json['cost'],
54
+ 'credits_remaining': json['credits_remaining'],
55
+ 'rate_limit_limit': json['rate_limit_limit'],
56
+ 'rate_limit_remaining': json['rate_limit_remaining'],
57
+ 'rate_limit_reset': json['rate_limit_reset'],
58
+ 'metering': json['metering'],
59
+ 'request_id': json['request_id'],
60
+ };
61
+ }
62
+ export function ListIndices200ResponseToJSON(json) {
63
+ return ListIndices200ResponseToJSONTyped(json, false);
64
+ }
65
+ export function ListIndices200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+ 'data': (value['data'].map(ModelIndexToJSON)),
71
+ 'cost': value['cost'],
72
+ 'credits_remaining': value['credits_remaining'],
73
+ 'rate_limit_limit': value['rate_limit_limit'],
74
+ 'rate_limit_remaining': value['rate_limit_remaining'],
75
+ 'rate_limit_reset': value['rate_limit_reset'],
76
+ 'metering': value['metering'],
77
+ 'request_id': value['request_id'],
78
+ };
79
+ }
@@ -0,0 +1,67 @@
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 { Method } from './Method';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListMethods200Response
17
+ */
18
+ export interface ListMethods200Response {
19
+ /**
20
+ *
21
+ */
22
+ data: Array<Method>;
23
+ /**
24
+ * Credits this call costs.
25
+ */
26
+ cost: number;
27
+ /**
28
+ * Wallet balance after the call. Unchanged while metering is preview.
29
+ */
30
+ credits_remaining: number;
31
+ /**
32
+ * Ceiling for the current window. Also returned as X-RateLimit-Limit.
33
+ */
34
+ rate_limit_limit: number;
35
+ /**
36
+ * Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
37
+ */
38
+ rate_limit_remaining: number;
39
+ /**
40
+ * Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
41
+ */
42
+ rate_limit_reset: number;
43
+ /**
44
+ * Whether cost was actually deducted.
45
+ */
46
+ metering: ListMethods200ResponseMeteringEnum;
47
+ /**
48
+ * Also returned in the x-request-id header.
49
+ */
50
+ request_id: string;
51
+ }
52
+ /**
53
+ * @export
54
+ */
55
+ export declare const ListMethods200ResponseMeteringEnum: {
56
+ readonly Preview: "preview";
57
+ readonly Billed: "billed";
58
+ };
59
+ export type ListMethods200ResponseMeteringEnum = typeof ListMethods200ResponseMeteringEnum[keyof typeof ListMethods200ResponseMeteringEnum];
60
+ /**
61
+ * Check if a given object implements the ListMethods200Response interface.
62
+ */
63
+ export declare function instanceOfListMethods200Response(value: object): value is ListMethods200Response;
64
+ export declare function ListMethods200ResponseFromJSON(json: any): ListMethods200Response;
65
+ export declare function ListMethods200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListMethods200Response;
66
+ export declare function ListMethods200ResponseToJSON(json: any): ListMethods200Response;
67
+ export declare function ListMethods200ResponseToJSONTyped(value?: ListMethods200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
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 { MethodFromJSON, MethodToJSON, } from './Method';
15
+ /**
16
+ * @export
17
+ */
18
+ export const ListMethods200ResponseMeteringEnum = {
19
+ Preview: 'preview',
20
+ Billed: 'billed',
21
+ };
22
+ /**
23
+ * Check if a given object implements the ListMethods200Response interface.
24
+ */
25
+ export function instanceOfListMethods200Response(value) {
26
+ if (!('data' in value) || value['data'] === undefined)
27
+ return false;
28
+ if (!('cost' in value) || value['cost'] === undefined)
29
+ return false;
30
+ if (!('credits_remaining' in value) || value['credits_remaining'] === undefined)
31
+ return false;
32
+ if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined)
33
+ return false;
34
+ if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined)
35
+ return false;
36
+ if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined)
37
+ return false;
38
+ if (!('metering' in value) || value['metering'] === undefined)
39
+ return false;
40
+ if (!('request_id' in value) || value['request_id'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ export function ListMethods200ResponseFromJSON(json) {
45
+ return ListMethods200ResponseFromJSONTyped(json, false);
46
+ }
47
+ export function ListMethods200ResponseFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'data': (json['data'].map(MethodFromJSON)),
53
+ 'cost': json['cost'],
54
+ 'credits_remaining': json['credits_remaining'],
55
+ 'rate_limit_limit': json['rate_limit_limit'],
56
+ 'rate_limit_remaining': json['rate_limit_remaining'],
57
+ 'rate_limit_reset': json['rate_limit_reset'],
58
+ 'metering': json['metering'],
59
+ 'request_id': json['request_id'],
60
+ };
61
+ }
62
+ export function ListMethods200ResponseToJSON(json) {
63
+ return ListMethods200ResponseToJSONTyped(json, false);
64
+ }
65
+ export function ListMethods200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+ 'data': (value['data'].map(MethodToJSON)),
71
+ 'cost': value['cost'],
72
+ 'credits_remaining': value['credits_remaining'],
73
+ 'rate_limit_limit': value['rate_limit_limit'],
74
+ 'rate_limit_remaining': value['rate_limit_remaining'],
75
+ 'rate_limit_reset': value['rate_limit_reset'],
76
+ 'metering': value['metering'],
77
+ 'request_id': value['request_id'],
78
+ };
79
+ }