@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,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * abliteration.org Public API
6
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfDownloadPoint = instanceOfDownloadPoint;
17
+ exports.DownloadPointFromJSON = DownloadPointFromJSON;
18
+ exports.DownloadPointFromJSONTyped = DownloadPointFromJSONTyped;
19
+ exports.DownloadPointToJSON = DownloadPointToJSON;
20
+ exports.DownloadPointToJSONTyped = DownloadPointToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DownloadPoint interface.
23
+ */
24
+ function instanceOfDownloadPoint(value) {
25
+ return true;
26
+ }
27
+ function DownloadPointFromJSON(json) {
28
+ return DownloadPointFromJSONTyped(json, false);
29
+ }
30
+ function DownloadPointFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'date': json['date'] == null ? undefined : json['date'],
36
+ 'downloads': json['downloads'] == null ? undefined : json['downloads'],
37
+ };
38
+ }
39
+ function DownloadPointToJSON(json) {
40
+ return DownloadPointToJSONTyped(json, false);
41
+ }
42
+ function DownloadPointToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'date': value['date'],
48
+ 'downloads': value['downloads'],
49
+ };
50
+ }
@@ -0,0 +1,42 @@
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
+ * One stored daily Freedom Velocity reading.
14
+ * @export
15
+ * @interface FreedomVelocityDailyPoint
16
+ */
17
+ export interface FreedomVelocityDailyPoint {
18
+ /**
19
+ * UTC date of the snapshot, YYYY-MM-DD.
20
+ */
21
+ date?: string;
22
+ /**
23
+ * Mean days from a base model release to the first derived catalog model, as stored that day.
24
+ */
25
+ value?: number;
26
+ /**
27
+ * Median of the per-base days that day; null when not recorded.
28
+ */
29
+ median?: number | null;
30
+ /**
31
+ * Number of base models in the average that day; null when not recorded.
32
+ */
33
+ bases_count?: number | null;
34
+ }
35
+ /**
36
+ * Check if a given object implements the FreedomVelocityDailyPoint interface.
37
+ */
38
+ export declare function instanceOfFreedomVelocityDailyPoint(value: object): value is FreedomVelocityDailyPoint;
39
+ export declare function FreedomVelocityDailyPointFromJSON(json: any): FreedomVelocityDailyPoint;
40
+ export declare function FreedomVelocityDailyPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): FreedomVelocityDailyPoint;
41
+ export declare function FreedomVelocityDailyPointToJSON(json: any): FreedomVelocityDailyPoint;
42
+ export declare function FreedomVelocityDailyPointToJSONTyped(value?: FreedomVelocityDailyPoint | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * abliteration.org Public API
6
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfFreedomVelocityDailyPoint = instanceOfFreedomVelocityDailyPoint;
17
+ exports.FreedomVelocityDailyPointFromJSON = FreedomVelocityDailyPointFromJSON;
18
+ exports.FreedomVelocityDailyPointFromJSONTyped = FreedomVelocityDailyPointFromJSONTyped;
19
+ exports.FreedomVelocityDailyPointToJSON = FreedomVelocityDailyPointToJSON;
20
+ exports.FreedomVelocityDailyPointToJSONTyped = FreedomVelocityDailyPointToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FreedomVelocityDailyPoint interface.
23
+ */
24
+ function instanceOfFreedomVelocityDailyPoint(value) {
25
+ return true;
26
+ }
27
+ function FreedomVelocityDailyPointFromJSON(json) {
28
+ return FreedomVelocityDailyPointFromJSONTyped(json, false);
29
+ }
30
+ function FreedomVelocityDailyPointFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'date': json['date'] == null ? undefined : json['date'],
36
+ 'value': json['value'] == null ? undefined : json['value'],
37
+ 'median': json['median'] === undefined ? undefined : json['median'] === null ? null : json['median'],
38
+ 'bases_count': json['bases_count'] === undefined ? undefined : json['bases_count'] === null ? null : json['bases_count'],
39
+ };
40
+ }
41
+ function FreedomVelocityDailyPointToJSON(json) {
42
+ return FreedomVelocityDailyPointToJSONTyped(json, false);
43
+ }
44
+ function FreedomVelocityDailyPointToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'date': value['date'],
50
+ 'value': value['value'],
51
+ 'median': value['median'],
52
+ 'bases_count': value['bases_count'],
53
+ };
54
+ }
@@ -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 { DownloadPoint } from './DownloadPoint';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetModelDownloadHistory200Response
17
+ */
18
+ export interface GetModelDownloadHistory200Response {
19
+ /**
20
+ *
21
+ */
22
+ data: Array<DownloadPoint>;
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: GetModelDownloadHistory200ResponseMeteringEnum;
47
+ /**
48
+ * Also returned in the x-request-id header.
49
+ */
50
+ request_id: string;
51
+ }
52
+ /**
53
+ * @export
54
+ */
55
+ export declare const GetModelDownloadHistory200ResponseMeteringEnum: {
56
+ readonly Preview: "preview";
57
+ readonly Billed: "billed";
58
+ };
59
+ export type GetModelDownloadHistory200ResponseMeteringEnum = typeof GetModelDownloadHistory200ResponseMeteringEnum[keyof typeof GetModelDownloadHistory200ResponseMeteringEnum];
60
+ /**
61
+ * Check if a given object implements the GetModelDownloadHistory200Response interface.
62
+ */
63
+ export declare function instanceOfGetModelDownloadHistory200Response(value: object): value is GetModelDownloadHistory200Response;
64
+ export declare function GetModelDownloadHistory200ResponseFromJSON(json: any): GetModelDownloadHistory200Response;
65
+ export declare function GetModelDownloadHistory200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModelDownloadHistory200Response;
66
+ export declare function GetModelDownloadHistory200ResponseToJSON(json: any): GetModelDownloadHistory200Response;
67
+ export declare function GetModelDownloadHistory200ResponseToJSONTyped(value?: GetModelDownloadHistory200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * abliteration.org Public API
6
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetModelDownloadHistory200ResponseMeteringEnum = void 0;
17
+ exports.instanceOfGetModelDownloadHistory200Response = instanceOfGetModelDownloadHistory200Response;
18
+ exports.GetModelDownloadHistory200ResponseFromJSON = GetModelDownloadHistory200ResponseFromJSON;
19
+ exports.GetModelDownloadHistory200ResponseFromJSONTyped = GetModelDownloadHistory200ResponseFromJSONTyped;
20
+ exports.GetModelDownloadHistory200ResponseToJSON = GetModelDownloadHistory200ResponseToJSON;
21
+ exports.GetModelDownloadHistory200ResponseToJSONTyped = GetModelDownloadHistory200ResponseToJSONTyped;
22
+ const DownloadPoint_1 = require("./DownloadPoint");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.GetModelDownloadHistory200ResponseMeteringEnum = {
27
+ Preview: 'preview',
28
+ Billed: 'billed',
29
+ };
30
+ /**
31
+ * Check if a given object implements the GetModelDownloadHistory200Response interface.
32
+ */
33
+ function instanceOfGetModelDownloadHistory200Response(value) {
34
+ if (!('data' in value) || value['data'] === undefined)
35
+ return false;
36
+ if (!('cost' in value) || value['cost'] === undefined)
37
+ return false;
38
+ if (!('credits_remaining' in value) || value['credits_remaining'] === undefined)
39
+ return false;
40
+ if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined)
41
+ return false;
42
+ if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined)
43
+ return false;
44
+ if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined)
45
+ return false;
46
+ if (!('metering' in value) || value['metering'] === undefined)
47
+ return false;
48
+ if (!('request_id' in value) || value['request_id'] === undefined)
49
+ return false;
50
+ return true;
51
+ }
52
+ function GetModelDownloadHistory200ResponseFromJSON(json) {
53
+ return GetModelDownloadHistory200ResponseFromJSONTyped(json, false);
54
+ }
55
+ function GetModelDownloadHistory200ResponseFromJSONTyped(json, ignoreDiscriminator) {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+ 'data': (json['data'].map(DownloadPoint_1.DownloadPointFromJSON)),
61
+ 'cost': json['cost'],
62
+ 'credits_remaining': json['credits_remaining'],
63
+ 'rate_limit_limit': json['rate_limit_limit'],
64
+ 'rate_limit_remaining': json['rate_limit_remaining'],
65
+ 'rate_limit_reset': json['rate_limit_reset'],
66
+ 'metering': json['metering'],
67
+ 'request_id': json['request_id'],
68
+ };
69
+ }
70
+ function GetModelDownloadHistory200ResponseToJSON(json) {
71
+ return GetModelDownloadHistory200ResponseToJSONTyped(json, false);
72
+ }
73
+ function GetModelDownloadHistory200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+ return {
78
+ 'data': (value['data'].map(DownloadPoint_1.DownloadPointToJSON)),
79
+ 'cost': value['cost'],
80
+ 'credits_remaining': value['credits_remaining'],
81
+ 'rate_limit_limit': value['rate_limit_limit'],
82
+ 'rate_limit_remaining': value['rate_limit_remaining'],
83
+ 'rate_limit_reset': value['rate_limit_reset'],
84
+ 'metering': value['metering'],
85
+ 'request_id': value['request_id'],
86
+ };
87
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { DaiPoint } from './DaiPoint';
13
+ import type { FreedomVelocityDailyPoint } from './FreedomVelocityDailyPoint';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -41,7 +42,7 @@ export interface IndexDetail {
41
42
  */
42
43
  source?: string;
43
44
  /**
44
- *
45
+ * true when this index exposes a time series in `history` or `daily_history`
45
46
  */
46
47
  history_available?: boolean;
47
48
  /**
@@ -52,6 +53,14 @@ export interface IndexDetail {
52
53
  *
53
54
  */
54
55
  note?: string;
56
+ /**
57
+ * freedom-velocity only: median of the per-base days, rounded to 0.1.
58
+ */
59
+ median?: number;
60
+ /**
61
+ * freedom-velocity only: number of base models in the average.
62
+ */
63
+ bases_count?: number;
55
64
  /**
56
65
  *
57
66
  */
@@ -60,6 +69,10 @@ export interface IndexDetail {
60
69
  *
61
70
  */
62
71
  history?: Array<DaiPoint>;
72
+ /**
73
+ * 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.
74
+ */
75
+ daily_history?: Array<FreedomVelocityDailyPoint>;
63
76
  }
64
77
  /**
65
78
  * @export
@@ -20,6 +20,7 @@ exports.IndexDetailFromJSONTyped = IndexDetailFromJSONTyped;
20
20
  exports.IndexDetailToJSON = IndexDetailToJSON;
21
21
  exports.IndexDetailToJSONTyped = IndexDetailToJSONTyped;
22
22
  const DaiPoint_1 = require("./DaiPoint");
23
+ const FreedomVelocityDailyPoint_1 = require("./FreedomVelocityDailyPoint");
23
24
  /**
24
25
  * @export
25
26
  */
@@ -59,8 +60,11 @@ function IndexDetailFromJSONTyped(json, ignoreDiscriminator) {
59
60
  'history_available': json['history_available'] == null ? undefined : json['history_available'],
60
61
  'as_of': json['as_of'] == null ? undefined : json['as_of'],
61
62
  'note': json['note'] == null ? undefined : json['note'],
63
+ 'median': json['median'] == null ? undefined : json['median'],
64
+ 'bases_count': json['bases_count'] == null ? undefined : json['bases_count'],
62
65
  'recent_history': json['recent_history'] == null ? undefined : (json['recent_history'].map(DaiPoint_1.DaiPointFromJSON)),
63
66
  'history': json['history'] == null ? undefined : (json['history'].map(DaiPoint_1.DaiPointFromJSON)),
67
+ 'daily_history': json['daily_history'] == null ? undefined : (json['daily_history'].map(FreedomVelocityDailyPoint_1.FreedomVelocityDailyPointFromJSON)),
64
68
  };
65
69
  }
66
70
  function IndexDetailToJSON(json) {
@@ -80,7 +84,10 @@ function IndexDetailToJSONTyped(value, ignoreDiscriminator = false) {
80
84
  'history_available': value['history_available'],
81
85
  'as_of': value['as_of'],
82
86
  'note': value['note'],
87
+ 'median': value['median'],
88
+ 'bases_count': value['bases_count'],
83
89
  'recent_history': value['recent_history'] == null ? undefined : (value['recent_history'].map(DaiPoint_1.DaiPointToJSON)),
84
90
  'history': value['history'] == null ? undefined : (value['history'].map(DaiPoint_1.DaiPointToJSON)),
91
+ 'daily_history': value['daily_history'] == null ? undefined : (value['daily_history'].map(FreedomVelocityDailyPoint_1.FreedomVelocityDailyPointToJSON)),
85
92
  };
86
93
  }
@@ -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 { DownloadAnomaly } from './DownloadAnomaly';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListAnomalies200Response
17
+ */
18
+ export interface ListAnomalies200Response {
19
+ /**
20
+ *
21
+ */
22
+ data: Array<DownloadAnomaly>;
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: ListAnomalies200ResponseMeteringEnum;
47
+ /**
48
+ * Also returned in the x-request-id header.
49
+ */
50
+ request_id: string;
51
+ }
52
+ /**
53
+ * @export
54
+ */
55
+ export declare const ListAnomalies200ResponseMeteringEnum: {
56
+ readonly Preview: "preview";
57
+ readonly Billed: "billed";
58
+ };
59
+ export type ListAnomalies200ResponseMeteringEnum = typeof ListAnomalies200ResponseMeteringEnum[keyof typeof ListAnomalies200ResponseMeteringEnum];
60
+ /**
61
+ * Check if a given object implements the ListAnomalies200Response interface.
62
+ */
63
+ export declare function instanceOfListAnomalies200Response(value: object): value is ListAnomalies200Response;
64
+ export declare function ListAnomalies200ResponseFromJSON(json: any): ListAnomalies200Response;
65
+ export declare function ListAnomalies200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAnomalies200Response;
66
+ export declare function ListAnomalies200ResponseToJSON(json: any): ListAnomalies200Response;
67
+ export declare function ListAnomalies200ResponseToJSONTyped(value?: ListAnomalies200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * abliteration.org Public API
6
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ListAnomalies200ResponseMeteringEnum = void 0;
17
+ exports.instanceOfListAnomalies200Response = instanceOfListAnomalies200Response;
18
+ exports.ListAnomalies200ResponseFromJSON = ListAnomalies200ResponseFromJSON;
19
+ exports.ListAnomalies200ResponseFromJSONTyped = ListAnomalies200ResponseFromJSONTyped;
20
+ exports.ListAnomalies200ResponseToJSON = ListAnomalies200ResponseToJSON;
21
+ exports.ListAnomalies200ResponseToJSONTyped = ListAnomalies200ResponseToJSONTyped;
22
+ const DownloadAnomaly_1 = require("./DownloadAnomaly");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.ListAnomalies200ResponseMeteringEnum = {
27
+ Preview: 'preview',
28
+ Billed: 'billed',
29
+ };
30
+ /**
31
+ * Check if a given object implements the ListAnomalies200Response interface.
32
+ */
33
+ function instanceOfListAnomalies200Response(value) {
34
+ if (!('data' in value) || value['data'] === undefined)
35
+ return false;
36
+ if (!('cost' in value) || value['cost'] === undefined)
37
+ return false;
38
+ if (!('credits_remaining' in value) || value['credits_remaining'] === undefined)
39
+ return false;
40
+ if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined)
41
+ return false;
42
+ if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined)
43
+ return false;
44
+ if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined)
45
+ return false;
46
+ if (!('metering' in value) || value['metering'] === undefined)
47
+ return false;
48
+ if (!('request_id' in value) || value['request_id'] === undefined)
49
+ return false;
50
+ return true;
51
+ }
52
+ function ListAnomalies200ResponseFromJSON(json) {
53
+ return ListAnomalies200ResponseFromJSONTyped(json, false);
54
+ }
55
+ function ListAnomalies200ResponseFromJSONTyped(json, ignoreDiscriminator) {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+ 'data': (json['data'].map(DownloadAnomaly_1.DownloadAnomalyFromJSON)),
61
+ 'cost': json['cost'],
62
+ 'credits_remaining': json['credits_remaining'],
63
+ 'rate_limit_limit': json['rate_limit_limit'],
64
+ 'rate_limit_remaining': json['rate_limit_remaining'],
65
+ 'rate_limit_reset': json['rate_limit_reset'],
66
+ 'metering': json['metering'],
67
+ 'request_id': json['request_id'],
68
+ };
69
+ }
70
+ function ListAnomalies200ResponseToJSON(json) {
71
+ return ListAnomalies200ResponseToJSONTyped(json, false);
72
+ }
73
+ function ListAnomalies200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+ return {
78
+ 'data': (value['data'].map(DownloadAnomaly_1.DownloadAnomalyToJSON)),
79
+ 'cost': value['cost'],
80
+ 'credits_remaining': value['credits_remaining'],
81
+ 'rate_limit_limit': value['rate_limit_limit'],
82
+ 'rate_limit_remaining': value['rate_limit_remaining'],
83
+ 'rate_limit_reset': value['rate_limit_reset'],
84
+ 'metering': value['metering'],
85
+ 'request_id': value['request_id'],
86
+ };
87
+ }
@@ -41,7 +41,7 @@ export interface ModelIndex {
41
41
  */
42
42
  source?: string;
43
43
  /**
44
- *
44
+ * true when this index exposes a time series in `history` or `daily_history`
45
45
  */
46
46
  history_available?: boolean;
47
47
  /**
@@ -52,6 +52,14 @@ export interface ModelIndex {
52
52
  *
53
53
  */
54
54
  note?: string | null;
55
+ /**
56
+ * freedom-velocity only: median of the per-base days, rounded to 0.1.
57
+ */
58
+ median?: number | null;
59
+ /**
60
+ * freedom-velocity only: number of base models in the average.
61
+ */
62
+ bases_count?: number | null;
55
63
  /**
56
64
  *
57
65
  */
@@ -59,6 +59,8 @@ function ModelIndexFromJSONTyped(json, ignoreDiscriminator) {
59
59
  'history_available': json['history_available'] == null ? undefined : json['history_available'],
60
60
  'as_of': json['as_of'] === undefined ? undefined : json['as_of'] === null ? null : json['as_of'],
61
61
  'note': json['note'] === undefined ? undefined : json['note'] === null ? null : json['note'],
62
+ 'median': json['median'] === undefined ? undefined : json['median'] === null ? null : json['median'],
63
+ 'bases_count': json['bases_count'] === undefined ? undefined : json['bases_count'] === null ? null : json['bases_count'],
62
64
  'recent_history': json['recent_history'] == null ? undefined : (json['recent_history'].map(DaiPoint_1.DaiPointFromJSON)),
63
65
  };
64
66
  }
@@ -79,6 +81,8 @@ function ModelIndexToJSONTyped(value, ignoreDiscriminator = false) {
79
81
  'history_available': value['history_available'],
80
82
  'as_of': value['as_of'],
81
83
  'note': value['note'],
84
+ 'median': value['median'],
85
+ 'bases_count': value['bases_count'],
82
86
  'recent_history': value['recent_history'] == null ? undefined : (value['recent_history'].map(DaiPoint_1.DaiPointToJSON)),
83
87
  };
84
88
  }
@@ -7,17 +7,22 @@ export * from './DeletionSummary';
7
7
  export * from './DeletionSummaryTimelineInner';
8
8
  export * from './DeletionSummaryTopByDownloadsInner';
9
9
  export * from './DelistedModel';
10
+ export * from './DownloadAnomaly';
11
+ export * from './DownloadPoint';
10
12
  export * from './Envelope';
11
13
  export * from './Event';
14
+ export * from './FreedomVelocityDailyPoint';
12
15
  export * from './GetAuthor200Response';
13
16
  export * from './GetDataset200Response';
14
17
  export * from './GetHistoricalDeletionSummary200Response';
15
18
  export * from './GetIndex200Response';
16
19
  export * from './GetMethod200Response';
17
20
  export * from './GetModel200Response';
21
+ export * from './GetModelDownloadHistory200Response';
18
22
  export * from './GetModelReadmeAt200Response';
19
23
  export * from './HistoricalDeletion';
20
24
  export * from './IndexDetail';
25
+ export * from './ListAnomalies200Response';
21
26
  export * from './ListAuthors200Response';
22
27
  export * from './ListDatasets200Response';
23
28
  export * from './ListDelistedModels200Response';
@@ -25,17 +25,22 @@ __exportStar(require("./DeletionSummary"), exports);
25
25
  __exportStar(require("./DeletionSummaryTimelineInner"), exports);
26
26
  __exportStar(require("./DeletionSummaryTopByDownloadsInner"), exports);
27
27
  __exportStar(require("./DelistedModel"), exports);
28
+ __exportStar(require("./DownloadAnomaly"), exports);
29
+ __exportStar(require("./DownloadPoint"), exports);
28
30
  __exportStar(require("./Envelope"), exports);
29
31
  __exportStar(require("./Event"), exports);
32
+ __exportStar(require("./FreedomVelocityDailyPoint"), exports);
30
33
  __exportStar(require("./GetAuthor200Response"), exports);
31
34
  __exportStar(require("./GetDataset200Response"), exports);
32
35
  __exportStar(require("./GetHistoricalDeletionSummary200Response"), exports);
33
36
  __exportStar(require("./GetIndex200Response"), exports);
34
37
  __exportStar(require("./GetMethod200Response"), exports);
35
38
  __exportStar(require("./GetModel200Response"), exports);
39
+ __exportStar(require("./GetModelDownloadHistory200Response"), exports);
36
40
  __exportStar(require("./GetModelReadmeAt200Response"), exports);
37
41
  __exportStar(require("./HistoricalDeletion"), exports);
38
42
  __exportStar(require("./IndexDetail"), exports);
43
+ __exportStar(require("./ListAnomalies200Response"), exports);
39
44
  __exportStar(require("./ListAuthors200Response"), exports);
40
45
  __exportStar(require("./ListDatasets200Response"), exports);
41
46
  __exportStar(require("./ListDelistedModels200Response"), exports);