@abliteration/sdk 0.1.7 → 0.1.9

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 (62) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +7 -0
  3. package/dist/apis/IndicesApi.d.ts +8 -8
  4. package/dist/apis/IndicesApi.js +4 -4
  5. package/dist/apis/ModelsApi.d.ts +122 -0
  6. package/dist/apis/ModelsApi.js +120 -1
  7. package/dist/esm/apis/IndicesApi.d.ts +8 -8
  8. package/dist/esm/apis/IndicesApi.js +4 -4
  9. package/dist/esm/apis/ModelsApi.d.ts +122 -0
  10. package/dist/esm/apis/ModelsApi.js +119 -0
  11. package/dist/esm/models/DownloadAnomaly.d.ts +66 -0
  12. package/dist/esm/models/DownloadAnomaly.js +62 -0
  13. package/dist/esm/models/DownloadPoint.d.ts +34 -0
  14. package/dist/esm/models/DownloadPoint.js +43 -0
  15. package/dist/esm/models/FreedomVelocityDailyPoint.d.ts +42 -0
  16. package/dist/esm/models/FreedomVelocityDailyPoint.js +47 -0
  17. package/dist/esm/models/GetModelDownloadHistory200Response.d.ts +67 -0
  18. package/dist/esm/models/GetModelDownloadHistory200Response.js +79 -0
  19. package/dist/esm/models/IndexDetail.d.ts +14 -1
  20. package/dist/esm/models/IndexDetail.js +7 -0
  21. package/dist/esm/models/ListAnomalies200Response.d.ts +67 -0
  22. package/dist/esm/models/ListAnomalies200Response.js +79 -0
  23. package/dist/esm/models/ModelIndex.d.ts +9 -1
  24. package/dist/esm/models/ModelIndex.js +4 -0
  25. package/dist/esm/models/index.d.ts +5 -0
  26. package/dist/esm/models/index.js +5 -0
  27. package/dist/models/DownloadAnomaly.d.ts +66 -0
  28. package/dist/models/DownloadAnomaly.js +70 -0
  29. package/dist/models/DownloadPoint.d.ts +34 -0
  30. package/dist/models/DownloadPoint.js +50 -0
  31. package/dist/models/FreedomVelocityDailyPoint.d.ts +42 -0
  32. package/dist/models/FreedomVelocityDailyPoint.js +54 -0
  33. package/dist/models/GetModelDownloadHistory200Response.d.ts +67 -0
  34. package/dist/models/GetModelDownloadHistory200Response.js +87 -0
  35. package/dist/models/IndexDetail.d.ts +14 -1
  36. package/dist/models/IndexDetail.js +7 -0
  37. package/dist/models/ListAnomalies200Response.d.ts +67 -0
  38. package/dist/models/ListAnomalies200Response.js +87 -0
  39. package/dist/models/ModelIndex.d.ts +9 -1
  40. package/dist/models/ModelIndex.js +4 -0
  41. package/dist/models/index.d.ts +5 -0
  42. package/dist/models/index.js +5 -0
  43. package/docs/DownloadAnomaly.md +49 -0
  44. package/docs/DownloadPoint.md +37 -0
  45. package/docs/FreedomVelocityDailyPoint.md +41 -0
  46. package/docs/GetModelDownloadHistory200Response.md +48 -0
  47. package/docs/IndexDetail.md +6 -0
  48. package/docs/IndicesApi.md +2 -2
  49. package/docs/ListAnomalies200Response.md +48 -0
  50. package/docs/ModelIndex.md +4 -0
  51. package/docs/ModelsApi.md +167 -0
  52. package/package.json +3 -2
  53. package/src/apis/IndicesApi.ts +8 -8
  54. package/src/apis/ModelsApi.ts +236 -0
  55. package/src/models/DownloadAnomaly.ts +116 -0
  56. package/src/models/DownloadPoint.ts +69 -0
  57. package/src/models/FreedomVelocityDailyPoint.ts +81 -0
  58. package/src/models/GetModelDownloadHistory200Response.ts +132 -0
  59. package/src/models/IndexDetail.ts +26 -1
  60. package/src/models/ListAnomalies200Response.ts +132 -0
  61. package/src/models/ModelIndex.ts +13 -1
  62. package/src/models/index.ts +5 -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 { DownloadPoint } from './DownloadPoint';
17
+ import {
18
+ DownloadPointFromJSON,
19
+ DownloadPointFromJSONTyped,
20
+ DownloadPointToJSON,
21
+ DownloadPointToJSONTyped,
22
+ } from './DownloadPoint';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GetModelDownloadHistory200Response
28
+ */
29
+ export interface GetModelDownloadHistory200Response {
30
+ /**
31
+ *
32
+ */
33
+ data: Array<DownloadPoint>;
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: GetModelDownloadHistory200ResponseMeteringEnum;
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 GetModelDownloadHistory200ResponseMeteringEnum = {
69
+ Preview: 'preview',
70
+ Billed: 'billed',
71
+ } as const;
72
+ export type GetModelDownloadHistory200ResponseMeteringEnum = typeof GetModelDownloadHistory200ResponseMeteringEnum[keyof typeof GetModelDownloadHistory200ResponseMeteringEnum];
73
+
74
+
75
+ /**
76
+ * Check if a given object implements the GetModelDownloadHistory200Response interface.
77
+ */
78
+ export function instanceOfGetModelDownloadHistory200Response(value: object): value is GetModelDownloadHistory200Response {
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 GetModelDownloadHistory200ResponseFromJSON(json: any): GetModelDownloadHistory200Response {
91
+ return GetModelDownloadHistory200ResponseFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function GetModelDownloadHistory200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModelDownloadHistory200Response {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'data': ((json['data'] as Array<any>).map(DownloadPointFromJSON)),
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 GetModelDownloadHistory200ResponseToJSON(json: any): GetModelDownloadHistory200Response {
112
+ return GetModelDownloadHistory200ResponseToJSONTyped(json, false);
113
+ }
114
+
115
+ export function GetModelDownloadHistory200ResponseToJSONTyped(value?: GetModelDownloadHistory200Response | 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(DownloadPointToJSON)),
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
+
@@ -20,6 +20,13 @@ import {
20
20
  DaiPointToJSON,
21
21
  DaiPointToJSONTyped,
22
22
  } from './DaiPoint';
23
+ import type { FreedomVelocityDailyPoint } from './FreedomVelocityDailyPoint';
24
+ import {
25
+ FreedomVelocityDailyPointFromJSON,
26
+ FreedomVelocityDailyPointFromJSONTyped,
27
+ FreedomVelocityDailyPointToJSON,
28
+ FreedomVelocityDailyPointToJSONTyped,
29
+ } from './FreedomVelocityDailyPoint';
23
30
 
24
31
  /**
25
32
  *
@@ -52,7 +59,7 @@ export interface IndexDetail {
52
59
  */
53
60
  source?: string;
54
61
  /**
55
- *
62
+ * true when this index exposes a time series in `history` or `daily_history`
56
63
  */
57
64
  history_available?: boolean;
58
65
  /**
@@ -63,6 +70,14 @@ export interface IndexDetail {
63
70
  *
64
71
  */
65
72
  note?: string;
73
+ /**
74
+ * freedom-velocity only: median of the per-base days, rounded to 0.1.
75
+ */
76
+ median?: number;
77
+ /**
78
+ * freedom-velocity only: number of base models in the average.
79
+ */
80
+ bases_count?: number;
66
81
  /**
67
82
  *
68
83
  */
@@ -71,6 +86,10 @@ export interface IndexDetail {
71
86
  *
72
87
  */
73
88
  history?: Array<DaiPoint>;
89
+ /**
90
+ * freedom-velocity only (absent for the other indices): the daily Freedom Velocity readings stored once a day in index_snapshots, oldest first. Empty until the first daily snapshot exists.
91
+ */
92
+ daily_history?: Array<FreedomVelocityDailyPoint>;
74
93
  }
75
94
 
76
95
 
@@ -121,8 +140,11 @@ export function IndexDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean
121
140
  'history_available': json['history_available'] == null ? undefined : json['history_available'],
122
141
  'as_of': json['as_of'] == null ? undefined : json['as_of'],
123
142
  'note': json['note'] == null ? undefined : json['note'],
143
+ 'median': json['median'] == null ? undefined : json['median'],
144
+ 'bases_count': json['bases_count'] == null ? undefined : json['bases_count'],
124
145
  'recent_history': json['recent_history'] == null ? undefined : ((json['recent_history'] as Array<any>).map(DaiPointFromJSON)),
125
146
  'history': json['history'] == null ? undefined : ((json['history'] as Array<any>).map(DaiPointFromJSON)),
147
+ 'daily_history': json['daily_history'] == null ? undefined : ((json['daily_history'] as Array<any>).map(FreedomVelocityDailyPointFromJSON)),
126
148
  };
127
149
  }
128
150
 
@@ -146,8 +168,11 @@ export function IndexDetailToJSONTyped(value?: IndexDetail | null, ignoreDiscrim
146
168
  'history_available': value['history_available'],
147
169
  'as_of': value['as_of'],
148
170
  'note': value['note'],
171
+ 'median': value['median'],
172
+ 'bases_count': value['bases_count'],
149
173
  'recent_history': value['recent_history'] == null ? undefined : ((value['recent_history'] as Array<any>).map(DaiPointToJSON)),
150
174
  'history': value['history'] == null ? undefined : ((value['history'] as Array<any>).map(DaiPointToJSON)),
175
+ 'daily_history': value['daily_history'] == null ? undefined : ((value['daily_history'] as Array<any>).map(FreedomVelocityDailyPointToJSON)),
151
176
  };
152
177
  }
153
178
 
@@ -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 { DownloadAnomaly } from './DownloadAnomaly';
17
+ import {
18
+ DownloadAnomalyFromJSON,
19
+ DownloadAnomalyFromJSONTyped,
20
+ DownloadAnomalyToJSON,
21
+ DownloadAnomalyToJSONTyped,
22
+ } from './DownloadAnomaly';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ListAnomalies200Response
28
+ */
29
+ export interface ListAnomalies200Response {
30
+ /**
31
+ *
32
+ */
33
+ data: Array<DownloadAnomaly>;
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: ListAnomalies200ResponseMeteringEnum;
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 ListAnomalies200ResponseMeteringEnum = {
69
+ Preview: 'preview',
70
+ Billed: 'billed',
71
+ } as const;
72
+ export type ListAnomalies200ResponseMeteringEnum = typeof ListAnomalies200ResponseMeteringEnum[keyof typeof ListAnomalies200ResponseMeteringEnum];
73
+
74
+
75
+ /**
76
+ * Check if a given object implements the ListAnomalies200Response interface.
77
+ */
78
+ export function instanceOfListAnomalies200Response(value: object): value is ListAnomalies200Response {
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 ListAnomalies200ResponseFromJSON(json: any): ListAnomalies200Response {
91
+ return ListAnomalies200ResponseFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function ListAnomalies200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAnomalies200Response {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'data': ((json['data'] as Array<any>).map(DownloadAnomalyFromJSON)),
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 ListAnomalies200ResponseToJSON(json: any): ListAnomalies200Response {
112
+ return ListAnomalies200ResponseToJSONTyped(json, false);
113
+ }
114
+
115
+ export function ListAnomalies200ResponseToJSONTyped(value?: ListAnomalies200Response | 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(DownloadAnomalyToJSON)),
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
+
@@ -52,7 +52,7 @@ export interface ModelIndex {
52
52
  */
53
53
  source?: string;
54
54
  /**
55
- *
55
+ * true when this index exposes a time series in `history` or `daily_history`
56
56
  */
57
57
  history_available?: boolean;
58
58
  /**
@@ -63,6 +63,14 @@ export interface ModelIndex {
63
63
  *
64
64
  */
65
65
  note?: string | null;
66
+ /**
67
+ * freedom-velocity only: median of the per-base days, rounded to 0.1.
68
+ */
69
+ median?: number | null;
70
+ /**
71
+ * freedom-velocity only: number of base models in the average.
72
+ */
73
+ bases_count?: number | null;
66
74
  /**
67
75
  *
68
76
  */
@@ -117,6 +125,8 @@ export function ModelIndexFromJSONTyped(json: any, ignoreDiscriminator: boolean)
117
125
  'history_available': json['history_available'] == null ? undefined : json['history_available'],
118
126
  'as_of': json['as_of'] === undefined ? undefined : json['as_of'] === null ? null : json['as_of'],
119
127
  'note': json['note'] === undefined ? undefined : json['note'] === null ? null : json['note'],
128
+ 'median': json['median'] === undefined ? undefined : json['median'] === null ? null : json['median'],
129
+ 'bases_count': json['bases_count'] === undefined ? undefined : json['bases_count'] === null ? null : json['bases_count'],
120
130
  'recent_history': json['recent_history'] == null ? undefined : ((json['recent_history'] as Array<any>).map(DaiPointFromJSON)),
121
131
  };
122
132
  }
@@ -141,6 +151,8 @@ export function ModelIndexToJSONTyped(value?: ModelIndex | null, ignoreDiscrimin
141
151
  'history_available': value['history_available'],
142
152
  'as_of': value['as_of'],
143
153
  'note': value['note'],
154
+ 'median': value['median'],
155
+ 'bases_count': value['bases_count'],
144
156
  'recent_history': value['recent_history'] == null ? undefined : ((value['recent_history'] as Array<any>).map(DaiPointToJSON)),
145
157
  };
146
158
  }
@@ -9,17 +9,22 @@ export * from './DeletionSummary';
9
9
  export * from './DeletionSummaryTimelineInner';
10
10
  export * from './DeletionSummaryTopByDownloadsInner';
11
11
  export * from './DelistedModel';
12
+ export * from './DownloadAnomaly';
13
+ export * from './DownloadPoint';
12
14
  export * from './Envelope';
13
15
  export * from './Event';
16
+ export * from './FreedomVelocityDailyPoint';
14
17
  export * from './GetAuthor200Response';
15
18
  export * from './GetDataset200Response';
16
19
  export * from './GetHistoricalDeletionSummary200Response';
17
20
  export * from './GetIndex200Response';
18
21
  export * from './GetMethod200Response';
19
22
  export * from './GetModel200Response';
23
+ export * from './GetModelDownloadHistory200Response';
20
24
  export * from './GetModelReadmeAt200Response';
21
25
  export * from './HistoricalDeletion';
22
26
  export * from './IndexDetail';
27
+ export * from './ListAnomalies200Response';
23
28
  export * from './ListAuthors200Response';
24
29
  export * from './ListDatasets200Response';
25
30
  export * from './ListDelistedModels200Response';