@abliteration/sdk 0.1.0 → 0.1.2

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 (114) hide show
  1. package/.openapi-generator/FILES +76 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +140 -49
  5. package/dist/apis/AuthorsApi.d.ts +11 -3
  6. package/dist/apis/AuthorsApi.js +8 -0
  7. package/dist/apis/DatasetsApi.d.ts +9 -3
  8. package/dist/apis/DatasetsApi.js +6 -0
  9. package/dist/apis/IndicesApi.d.ts +9 -3
  10. package/dist/apis/IndicesApi.js +6 -0
  11. package/dist/apis/ModelsApi.d.ts +9 -3
  12. package/dist/apis/ModelsApi.js +6 -0
  13. package/dist/esm/apis/AuthorsApi.d.ts +11 -3
  14. package/dist/esm/apis/AuthorsApi.js +8 -0
  15. package/dist/esm/apis/DatasetsApi.d.ts +9 -3
  16. package/dist/esm/apis/DatasetsApi.js +6 -0
  17. package/dist/esm/apis/IndicesApi.d.ts +9 -3
  18. package/dist/esm/apis/IndicesApi.js +6 -0
  19. package/dist/esm/apis/ModelsApi.d.ts +9 -3
  20. package/dist/esm/apis/ModelsApi.js +6 -0
  21. package/dist/esm/models/Author.d.ts +4 -0
  22. package/dist/esm/models/Author.js +2 -0
  23. package/dist/esm/models/AuthorDetail.d.ts +4 -0
  24. package/dist/esm/models/AuthorDetail.js +2 -0
  25. package/dist/esm/models/Dataset.d.ts +45 -1
  26. package/dist/esm/models/Dataset.js +22 -0
  27. package/dist/esm/models/DatasetDetail.d.ts +85 -2
  28. package/dist/esm/models/DatasetDetail.js +52 -2
  29. package/dist/esm/models/ModelDetail.d.ts +173 -1
  30. package/dist/esm/models/ModelDetail.js +2 -2
  31. package/dist/models/Author.d.ts +4 -0
  32. package/dist/models/Author.js +2 -0
  33. package/dist/models/AuthorDetail.d.ts +4 -0
  34. package/dist/models/AuthorDetail.js +2 -0
  35. package/dist/models/Dataset.d.ts +45 -1
  36. package/dist/models/Dataset.js +22 -0
  37. package/dist/models/DatasetDetail.d.ts +85 -2
  38. package/dist/models/DatasetDetail.js +52 -2
  39. package/dist/models/ModelDetail.d.ts +173 -1
  40. package/dist/models/ModelDetail.js +2 -2
  41. package/docs/Author.md +44 -0
  42. package/docs/AuthorDetail.md +46 -0
  43. package/docs/AuthorsApi.md +167 -0
  44. package/docs/DaiPoint.md +38 -0
  45. package/docs/Dataset.md +76 -0
  46. package/docs/DatasetDetail.md +80 -0
  47. package/docs/DatasetsApi.md +176 -0
  48. package/docs/Envelope.md +48 -0
  49. package/docs/Event.md +46 -0
  50. package/docs/GetAuthor200Response.md +48 -0
  51. package/docs/GetDataset200Response.md +48 -0
  52. package/docs/GetIndex200Response.md +48 -0
  53. package/docs/GetMethod200Response.md +48 -0
  54. package/docs/GetModel200Response.md +48 -0
  55. package/docs/IndexDetail.md +54 -0
  56. package/docs/IndicesApi.md +153 -0
  57. package/docs/ListAuthors200Response.md +48 -0
  58. package/docs/ListDatasets200Response.md +48 -0
  59. package/docs/ListIndices200Response.md +48 -0
  60. package/docs/ListMethods200Response.md +48 -0
  61. package/docs/ListModels200Response.md +48 -0
  62. package/docs/ListTimeline200Response.md +48 -0
  63. package/docs/Method.md +44 -0
  64. package/docs/MethodDetail.md +50 -0
  65. package/docs/MethodDetailAllOfTopAuthors.md +36 -0
  66. package/docs/MethodsApi.md +153 -0
  67. package/docs/ModelDetail.md +131 -0
  68. package/docs/ModelError.md +42 -0
  69. package/docs/ModelIndex.md +52 -0
  70. package/docs/ModelSummary.md +58 -0
  71. package/docs/ModelsApi.md +191 -0
  72. package/docs/Passport.md +38 -0
  73. package/docs/TimelineApi.md +93 -0
  74. package/openapi-generator-config.json +10 -0
  75. package/package.json +14 -16
  76. package/src/apis/AuthorsApi.ts +248 -0
  77. package/src/apis/DatasetsApi.ts +278 -0
  78. package/src/apis/IndicesApi.ts +213 -0
  79. package/src/apis/MethodsApi.ts +214 -0
  80. package/src/apis/ModelsApi.ts +328 -0
  81. package/src/apis/TimelineApi.ts +148 -0
  82. package/src/apis/index.ts +8 -0
  83. package/src/index.ts +5 -0
  84. package/src/models/Author.ts +93 -0
  85. package/src/models/AuthorDetail.ts +107 -0
  86. package/src/models/DaiPoint.ts +75 -0
  87. package/src/models/Dataset.ts +189 -0
  88. package/src/models/DatasetDetail.ts +209 -0
  89. package/src/models/Envelope.ts +124 -0
  90. package/src/models/Event.ts +99 -0
  91. package/src/models/GetAuthor200Response.ts +132 -0
  92. package/src/models/GetDataset200Response.ts +132 -0
  93. package/src/models/GetIndex200Response.ts +132 -0
  94. package/src/models/GetMethod200Response.ts +132 -0
  95. package/src/models/GetModel200Response.ts +132 -0
  96. package/src/models/IndexDetail.ts +153 -0
  97. package/src/models/ListAuthors200Response.ts +132 -0
  98. package/src/models/ListDatasets200Response.ts +132 -0
  99. package/src/models/ListIndices200Response.ts +132 -0
  100. package/src/models/ListMethods200Response.ts +132 -0
  101. package/src/models/ListModels200Response.ts +132 -0
  102. package/src/models/ListTimeline200Response.ts +132 -0
  103. package/src/models/Method.ts +106 -0
  104. package/src/models/MethodDetail.ts +139 -0
  105. package/src/models/MethodDetailAllOfTopAuthors.ts +69 -0
  106. package/src/models/ModelDetail.ts +362 -0
  107. package/src/models/ModelError.ts +89 -0
  108. package/src/models/ModelIndex.ts +147 -0
  109. package/src/models/ModelSummary.ts +135 -0
  110. package/src/models/Passport.ts +75 -0
  111. package/src/models/index.ts +29 -0
  112. package/src/runtime.ts +505 -0
  113. package/tsconfig.esm.json +7 -0
  114. package/tsconfig.json +16 -0
@@ -0,0 +1,132 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { ModelIndex } from './ModelIndex';
17
+ import {
18
+ ModelIndexFromJSON,
19
+ ModelIndexFromJSONTyped,
20
+ ModelIndexToJSON,
21
+ ModelIndexToJSONTyped,
22
+ } from './ModelIndex';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ListIndices200Response
28
+ */
29
+ export interface ListIndices200Response {
30
+ /**
31
+ *
32
+ */
33
+ data: Array<ModelIndex>;
34
+ /**
35
+ * Credits this call costs.
36
+ */
37
+ cost: number;
38
+ /**
39
+ * Wallet balance after the call. Unchanged while metering is preview.
40
+ */
41
+ credits_remaining: number;
42
+ /**
43
+ * Ceiling for the current window. Also returned as X-RateLimit-Limit.
44
+ */
45
+ rate_limit_limit: number;
46
+ /**
47
+ * Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
48
+ */
49
+ rate_limit_remaining: number;
50
+ /**
51
+ * Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
52
+ */
53
+ rate_limit_reset: number;
54
+ /**
55
+ * Whether cost was actually deducted.
56
+ */
57
+ metering: ListIndices200ResponseMeteringEnum;
58
+ /**
59
+ * Also returned in the x-request-id header.
60
+ */
61
+ request_id: string;
62
+ }
63
+
64
+
65
+ /**
66
+ * @export
67
+ */
68
+ export const ListIndices200ResponseMeteringEnum = {
69
+ Preview: 'preview',
70
+ Billed: 'billed',
71
+ } as const;
72
+ export type ListIndices200ResponseMeteringEnum = typeof ListIndices200ResponseMeteringEnum[keyof typeof ListIndices200ResponseMeteringEnum];
73
+
74
+
75
+ /**
76
+ * Check if a given object implements the ListIndices200Response interface.
77
+ */
78
+ export function instanceOfListIndices200Response(value: object): value is ListIndices200Response {
79
+ if (!('data' in value) || value['data'] === undefined) return false;
80
+ if (!('cost' in value) || value['cost'] === undefined) return false;
81
+ if (!('credits_remaining' in value) || value['credits_remaining'] === undefined) return false;
82
+ if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined) return false;
83
+ if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined) return false;
84
+ if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined) return false;
85
+ if (!('metering' in value) || value['metering'] === undefined) return false;
86
+ if (!('request_id' in value) || value['request_id'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function ListIndices200ResponseFromJSON(json: any): ListIndices200Response {
91
+ return ListIndices200ResponseFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function ListIndices200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListIndices200Response {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'data': ((json['data'] as Array<any>).map(ModelIndexFromJSON)),
101
+ 'cost': json['cost'],
102
+ 'credits_remaining': json['credits_remaining'],
103
+ 'rate_limit_limit': json['rate_limit_limit'],
104
+ 'rate_limit_remaining': json['rate_limit_remaining'],
105
+ 'rate_limit_reset': json['rate_limit_reset'],
106
+ 'metering': json['metering'],
107
+ 'request_id': json['request_id'],
108
+ };
109
+ }
110
+
111
+ export function ListIndices200ResponseToJSON(json: any): ListIndices200Response {
112
+ return ListIndices200ResponseToJSONTyped(json, false);
113
+ }
114
+
115
+ export function ListIndices200ResponseToJSONTyped(value?: ListIndices200Response | null, ignoreDiscriminator: boolean = false): any {
116
+ if (value == null) {
117
+ return value;
118
+ }
119
+
120
+ return {
121
+
122
+ 'data': ((value['data'] as Array<any>).map(ModelIndexToJSON)),
123
+ 'cost': value['cost'],
124
+ 'credits_remaining': value['credits_remaining'],
125
+ 'rate_limit_limit': value['rate_limit_limit'],
126
+ 'rate_limit_remaining': value['rate_limit_remaining'],
127
+ 'rate_limit_reset': value['rate_limit_reset'],
128
+ 'metering': value['metering'],
129
+ 'request_id': value['request_id'],
130
+ };
131
+ }
132
+
@@ -0,0 +1,132 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { Method } from './Method';
17
+ import {
18
+ MethodFromJSON,
19
+ MethodFromJSONTyped,
20
+ MethodToJSON,
21
+ MethodToJSONTyped,
22
+ } from './Method';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ListMethods200Response
28
+ */
29
+ export interface ListMethods200Response {
30
+ /**
31
+ *
32
+ */
33
+ data: Array<Method>;
34
+ /**
35
+ * Credits this call costs.
36
+ */
37
+ cost: number;
38
+ /**
39
+ * Wallet balance after the call. Unchanged while metering is preview.
40
+ */
41
+ credits_remaining: number;
42
+ /**
43
+ * Ceiling for the current window. Also returned as X-RateLimit-Limit.
44
+ */
45
+ rate_limit_limit: number;
46
+ /**
47
+ * Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
48
+ */
49
+ rate_limit_remaining: number;
50
+ /**
51
+ * Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
52
+ */
53
+ rate_limit_reset: number;
54
+ /**
55
+ * Whether cost was actually deducted.
56
+ */
57
+ metering: ListMethods200ResponseMeteringEnum;
58
+ /**
59
+ * Also returned in the x-request-id header.
60
+ */
61
+ request_id: string;
62
+ }
63
+
64
+
65
+ /**
66
+ * @export
67
+ */
68
+ export const ListMethods200ResponseMeteringEnum = {
69
+ Preview: 'preview',
70
+ Billed: 'billed',
71
+ } as const;
72
+ export type ListMethods200ResponseMeteringEnum = typeof ListMethods200ResponseMeteringEnum[keyof typeof ListMethods200ResponseMeteringEnum];
73
+
74
+
75
+ /**
76
+ * Check if a given object implements the ListMethods200Response interface.
77
+ */
78
+ export function instanceOfListMethods200Response(value: object): value is ListMethods200Response {
79
+ if (!('data' in value) || value['data'] === undefined) return false;
80
+ if (!('cost' in value) || value['cost'] === undefined) return false;
81
+ if (!('credits_remaining' in value) || value['credits_remaining'] === undefined) return false;
82
+ if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined) return false;
83
+ if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined) return false;
84
+ if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined) return false;
85
+ if (!('metering' in value) || value['metering'] === undefined) return false;
86
+ if (!('request_id' in value) || value['request_id'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function ListMethods200ResponseFromJSON(json: any): ListMethods200Response {
91
+ return ListMethods200ResponseFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function ListMethods200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListMethods200Response {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'data': ((json['data'] as Array<any>).map(MethodFromJSON)),
101
+ 'cost': json['cost'],
102
+ 'credits_remaining': json['credits_remaining'],
103
+ 'rate_limit_limit': json['rate_limit_limit'],
104
+ 'rate_limit_remaining': json['rate_limit_remaining'],
105
+ 'rate_limit_reset': json['rate_limit_reset'],
106
+ 'metering': json['metering'],
107
+ 'request_id': json['request_id'],
108
+ };
109
+ }
110
+
111
+ export function ListMethods200ResponseToJSON(json: any): ListMethods200Response {
112
+ return ListMethods200ResponseToJSONTyped(json, false);
113
+ }
114
+
115
+ export function ListMethods200ResponseToJSONTyped(value?: ListMethods200Response | null, ignoreDiscriminator: boolean = false): any {
116
+ if (value == null) {
117
+ return value;
118
+ }
119
+
120
+ return {
121
+
122
+ 'data': ((value['data'] as Array<any>).map(MethodToJSON)),
123
+ 'cost': value['cost'],
124
+ 'credits_remaining': value['credits_remaining'],
125
+ 'rate_limit_limit': value['rate_limit_limit'],
126
+ 'rate_limit_remaining': value['rate_limit_remaining'],
127
+ 'rate_limit_reset': value['rate_limit_reset'],
128
+ 'metering': value['metering'],
129
+ 'request_id': value['request_id'],
130
+ };
131
+ }
132
+
@@ -0,0 +1,132 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { ModelSummary } from './ModelSummary';
17
+ import {
18
+ ModelSummaryFromJSON,
19
+ ModelSummaryFromJSONTyped,
20
+ ModelSummaryToJSON,
21
+ ModelSummaryToJSONTyped,
22
+ } from './ModelSummary';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ListModels200Response
28
+ */
29
+ export interface ListModels200Response {
30
+ /**
31
+ *
32
+ */
33
+ data: Array<ModelSummary>;
34
+ /**
35
+ * Credits this call costs.
36
+ */
37
+ cost: number;
38
+ /**
39
+ * Wallet balance after the call. Unchanged while metering is preview.
40
+ */
41
+ credits_remaining: number;
42
+ /**
43
+ * Ceiling for the current window. Also returned as X-RateLimit-Limit.
44
+ */
45
+ rate_limit_limit: number;
46
+ /**
47
+ * Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
48
+ */
49
+ rate_limit_remaining: number;
50
+ /**
51
+ * Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
52
+ */
53
+ rate_limit_reset: number;
54
+ /**
55
+ * Whether cost was actually deducted.
56
+ */
57
+ metering: ListModels200ResponseMeteringEnum;
58
+ /**
59
+ * Also returned in the x-request-id header.
60
+ */
61
+ request_id: string;
62
+ }
63
+
64
+
65
+ /**
66
+ * @export
67
+ */
68
+ export const ListModels200ResponseMeteringEnum = {
69
+ Preview: 'preview',
70
+ Billed: 'billed',
71
+ } as const;
72
+ export type ListModels200ResponseMeteringEnum = typeof ListModels200ResponseMeteringEnum[keyof typeof ListModels200ResponseMeteringEnum];
73
+
74
+
75
+ /**
76
+ * Check if a given object implements the ListModels200Response interface.
77
+ */
78
+ export function instanceOfListModels200Response(value: object): value is ListModels200Response {
79
+ if (!('data' in value) || value['data'] === undefined) return false;
80
+ if (!('cost' in value) || value['cost'] === undefined) return false;
81
+ if (!('credits_remaining' in value) || value['credits_remaining'] === undefined) return false;
82
+ if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined) return false;
83
+ if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined) return false;
84
+ if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined) return false;
85
+ if (!('metering' in value) || value['metering'] === undefined) return false;
86
+ if (!('request_id' in value) || value['request_id'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function ListModels200ResponseFromJSON(json: any): ListModels200Response {
91
+ return ListModels200ResponseFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function ListModels200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListModels200Response {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'data': ((json['data'] as Array<any>).map(ModelSummaryFromJSON)),
101
+ 'cost': json['cost'],
102
+ 'credits_remaining': json['credits_remaining'],
103
+ 'rate_limit_limit': json['rate_limit_limit'],
104
+ 'rate_limit_remaining': json['rate_limit_remaining'],
105
+ 'rate_limit_reset': json['rate_limit_reset'],
106
+ 'metering': json['metering'],
107
+ 'request_id': json['request_id'],
108
+ };
109
+ }
110
+
111
+ export function ListModels200ResponseToJSON(json: any): ListModels200Response {
112
+ return ListModels200ResponseToJSONTyped(json, false);
113
+ }
114
+
115
+ export function ListModels200ResponseToJSONTyped(value?: ListModels200Response | null, ignoreDiscriminator: boolean = false): any {
116
+ if (value == null) {
117
+ return value;
118
+ }
119
+
120
+ return {
121
+
122
+ 'data': ((value['data'] as Array<any>).map(ModelSummaryToJSON)),
123
+ 'cost': value['cost'],
124
+ 'credits_remaining': value['credits_remaining'],
125
+ 'rate_limit_limit': value['rate_limit_limit'],
126
+ 'rate_limit_remaining': value['rate_limit_remaining'],
127
+ 'rate_limit_reset': value['rate_limit_reset'],
128
+ 'metering': value['metering'],
129
+ 'request_id': value['request_id'],
130
+ };
131
+ }
132
+
@@ -0,0 +1,132 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { Event } from './Event';
17
+ import {
18
+ EventFromJSON,
19
+ EventFromJSONTyped,
20
+ EventToJSON,
21
+ EventToJSONTyped,
22
+ } from './Event';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ListTimeline200Response
28
+ */
29
+ export interface ListTimeline200Response {
30
+ /**
31
+ *
32
+ */
33
+ data: Array<Event>;
34
+ /**
35
+ * Credits this call costs.
36
+ */
37
+ cost: number;
38
+ /**
39
+ * Wallet balance after the call. Unchanged while metering is preview.
40
+ */
41
+ credits_remaining: number;
42
+ /**
43
+ * Ceiling for the current window. Also returned as X-RateLimit-Limit.
44
+ */
45
+ rate_limit_limit: number;
46
+ /**
47
+ * Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
48
+ */
49
+ rate_limit_remaining: number;
50
+ /**
51
+ * Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
52
+ */
53
+ rate_limit_reset: number;
54
+ /**
55
+ * Whether cost was actually deducted.
56
+ */
57
+ metering: ListTimeline200ResponseMeteringEnum;
58
+ /**
59
+ * Also returned in the x-request-id header.
60
+ */
61
+ request_id: string;
62
+ }
63
+
64
+
65
+ /**
66
+ * @export
67
+ */
68
+ export const ListTimeline200ResponseMeteringEnum = {
69
+ Preview: 'preview',
70
+ Billed: 'billed',
71
+ } as const;
72
+ export type ListTimeline200ResponseMeteringEnum = typeof ListTimeline200ResponseMeteringEnum[keyof typeof ListTimeline200ResponseMeteringEnum];
73
+
74
+
75
+ /**
76
+ * Check if a given object implements the ListTimeline200Response interface.
77
+ */
78
+ export function instanceOfListTimeline200Response(value: object): value is ListTimeline200Response {
79
+ if (!('data' in value) || value['data'] === undefined) return false;
80
+ if (!('cost' in value) || value['cost'] === undefined) return false;
81
+ if (!('credits_remaining' in value) || value['credits_remaining'] === undefined) return false;
82
+ if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined) return false;
83
+ if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined) return false;
84
+ if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined) return false;
85
+ if (!('metering' in value) || value['metering'] === undefined) return false;
86
+ if (!('request_id' in value) || value['request_id'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function ListTimeline200ResponseFromJSON(json: any): ListTimeline200Response {
91
+ return ListTimeline200ResponseFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function ListTimeline200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListTimeline200Response {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'data': ((json['data'] as Array<any>).map(EventFromJSON)),
101
+ 'cost': json['cost'],
102
+ 'credits_remaining': json['credits_remaining'],
103
+ 'rate_limit_limit': json['rate_limit_limit'],
104
+ 'rate_limit_remaining': json['rate_limit_remaining'],
105
+ 'rate_limit_reset': json['rate_limit_reset'],
106
+ 'metering': json['metering'],
107
+ 'request_id': json['request_id'],
108
+ };
109
+ }
110
+
111
+ export function ListTimeline200ResponseToJSON(json: any): ListTimeline200Response {
112
+ return ListTimeline200ResponseToJSONTyped(json, false);
113
+ }
114
+
115
+ export function ListTimeline200ResponseToJSONTyped(value?: ListTimeline200Response | null, ignoreDiscriminator: boolean = false): any {
116
+ if (value == null) {
117
+ return value;
118
+ }
119
+
120
+ return {
121
+
122
+ 'data': ((value['data'] as Array<any>).map(EventToJSON)),
123
+ 'cost': value['cost'],
124
+ 'credits_remaining': value['credits_remaining'],
125
+ 'rate_limit_limit': value['rate_limit_limit'],
126
+ 'rate_limit_remaining': value['rate_limit_remaining'],
127
+ 'rate_limit_reset': value['rate_limit_reset'],
128
+ 'metering': value['metering'],
129
+ 'request_id': value['request_id'],
130
+ };
131
+ }
132
+
@@ -0,0 +1,106 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface Method
20
+ */
21
+ export interface Method {
22
+ /**
23
+ *
24
+ */
25
+ id?: string;
26
+ /**
27
+ *
28
+ */
29
+ label?: string;
30
+ /**
31
+ *
32
+ */
33
+ category?: MethodCategoryEnum;
34
+ /**
35
+ *
36
+ */
37
+ wiki_slug?: string | null;
38
+ /**
39
+ *
40
+ */
41
+ model_count?: number;
42
+ /**
43
+ *
44
+ */
45
+ total_downloads?: number;
46
+ }
47
+
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const MethodCategoryEnum = {
53
+ Original: 'original',
54
+ Repackage: 'repackage',
55
+ Merged: 'merged',
56
+ Unclassified: 'unclassified',
57
+ } as const;
58
+ export type MethodCategoryEnum = typeof MethodCategoryEnum[keyof typeof MethodCategoryEnum];
59
+
60
+
61
+ /**
62
+ * Check if a given object implements the Method interface.
63
+ */
64
+ export function instanceOfMethod(value: object): value is Method {
65
+ return true;
66
+ }
67
+
68
+ export function MethodFromJSON(json: any): Method {
69
+ return MethodFromJSONTyped(json, false);
70
+ }
71
+
72
+ export function MethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): Method {
73
+ if (json == null) {
74
+ return json;
75
+ }
76
+ return {
77
+
78
+ 'id': json['id'] == null ? undefined : json['id'],
79
+ 'label': json['label'] == null ? undefined : json['label'],
80
+ 'category': json['category'] == null ? undefined : json['category'],
81
+ 'wiki_slug': json['wiki_slug'] === undefined ? undefined : json['wiki_slug'] === null ? null : json['wiki_slug'],
82
+ 'model_count': json['model_count'] == null ? undefined : json['model_count'],
83
+ 'total_downloads': json['total_downloads'] == null ? undefined : json['total_downloads'],
84
+ };
85
+ }
86
+
87
+ export function MethodToJSON(json: any): Method {
88
+ return MethodToJSONTyped(json, false);
89
+ }
90
+
91
+ export function MethodToJSONTyped(value?: Method | null, ignoreDiscriminator: boolean = false): any {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+
96
+ return {
97
+
98
+ 'id': value['id'],
99
+ 'label': value['label'],
100
+ 'category': value['category'],
101
+ 'wiki_slug': value['wiki_slug'],
102
+ 'model_count': value['model_count'],
103
+ 'total_downloads': value['total_downloads'],
104
+ };
105
+ }
106
+