@abliteration/sdk 0.1.5 → 0.1.7

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 (74) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +14 -0
  3. package/dist/apis/ModelsApi.d.ts +217 -0
  4. package/dist/apis/ModelsApi.js +225 -1
  5. package/dist/esm/apis/ModelsApi.d.ts +217 -0
  6. package/dist/esm/apis/ModelsApi.js +224 -0
  7. package/dist/esm/models/DeletionSummary.d.ts +52 -0
  8. package/dist/esm/models/DeletionSummary.js +53 -0
  9. package/dist/esm/models/DeletionSummaryTimelineInner.d.ts +34 -0
  10. package/dist/esm/models/DeletionSummaryTimelineInner.js +43 -0
  11. package/dist/esm/models/DeletionSummaryTopByDownloadsInner.d.ts +42 -0
  12. package/dist/esm/models/DeletionSummaryTopByDownloadsInner.js +47 -0
  13. package/dist/esm/models/GetHistoricalDeletionSummary200Response.d.ts +67 -0
  14. package/dist/esm/models/GetHistoricalDeletionSummary200Response.js +79 -0
  15. package/dist/esm/models/GetModelReadmeAt200Response.d.ts +67 -0
  16. package/dist/esm/models/GetModelReadmeAt200Response.js +79 -0
  17. package/dist/esm/models/HistoricalDeletion.d.ts +50 -0
  18. package/dist/esm/models/HistoricalDeletion.js +51 -0
  19. package/dist/esm/models/ListHistoricalDeletions200Response.d.ts +67 -0
  20. package/dist/esm/models/ListHistoricalDeletions200Response.js +79 -0
  21. package/dist/esm/models/ListModelReadmeDrifts200Response.d.ts +67 -0
  22. package/dist/esm/models/ListModelReadmeDrifts200Response.js +79 -0
  23. package/dist/esm/models/ReadmeAt.d.ts +38 -0
  24. package/dist/esm/models/ReadmeAt.js +45 -0
  25. package/dist/esm/models/ReadmeDrift.d.ts +46 -0
  26. package/dist/esm/models/ReadmeDrift.js +49 -0
  27. package/dist/esm/models/index.d.ts +10 -0
  28. package/dist/esm/models/index.js +10 -0
  29. package/dist/models/DeletionSummary.d.ts +52 -0
  30. package/dist/models/DeletionSummary.js +60 -0
  31. package/dist/models/DeletionSummaryTimelineInner.d.ts +34 -0
  32. package/dist/models/DeletionSummaryTimelineInner.js +50 -0
  33. package/dist/models/DeletionSummaryTopByDownloadsInner.d.ts +42 -0
  34. package/dist/models/DeletionSummaryTopByDownloadsInner.js +54 -0
  35. package/dist/models/GetHistoricalDeletionSummary200Response.d.ts +67 -0
  36. package/dist/models/GetHistoricalDeletionSummary200Response.js +87 -0
  37. package/dist/models/GetModelReadmeAt200Response.d.ts +67 -0
  38. package/dist/models/GetModelReadmeAt200Response.js +87 -0
  39. package/dist/models/HistoricalDeletion.d.ts +50 -0
  40. package/dist/models/HistoricalDeletion.js +58 -0
  41. package/dist/models/ListHistoricalDeletions200Response.d.ts +67 -0
  42. package/dist/models/ListHistoricalDeletions200Response.js +87 -0
  43. package/dist/models/ListModelReadmeDrifts200Response.d.ts +67 -0
  44. package/dist/models/ListModelReadmeDrifts200Response.js +87 -0
  45. package/dist/models/ReadmeAt.d.ts +38 -0
  46. package/dist/models/ReadmeAt.js +52 -0
  47. package/dist/models/ReadmeDrift.d.ts +46 -0
  48. package/dist/models/ReadmeDrift.js +56 -0
  49. package/dist/models/index.d.ts +10 -0
  50. package/dist/models/index.js +10 -0
  51. package/docs/DeletionSummary.md +45 -0
  52. package/docs/DeletionSummaryTimelineInner.md +36 -0
  53. package/docs/DeletionSummaryTopByDownloadsInner.md +40 -0
  54. package/docs/GetHistoricalDeletionSummary200Response.md +48 -0
  55. package/docs/GetModelReadmeAt200Response.md +48 -0
  56. package/docs/HistoricalDeletion.md +44 -0
  57. package/docs/ListHistoricalDeletions200Response.md +48 -0
  58. package/docs/ListModelReadmeDrifts200Response.md +48 -0
  59. package/docs/ModelsApi.md +321 -0
  60. package/docs/ReadmeAt.md +39 -0
  61. package/docs/ReadmeDrift.md +43 -0
  62. package/package.json +1 -1
  63. package/src/apis/ModelsApi.ts +436 -0
  64. package/src/models/DeletionSummary.ts +108 -0
  65. package/src/models/DeletionSummaryTimelineInner.ts +69 -0
  66. package/src/models/DeletionSummaryTopByDownloadsInner.ts +81 -0
  67. package/src/models/GetHistoricalDeletionSummary200Response.ts +132 -0
  68. package/src/models/GetModelReadmeAt200Response.ts +132 -0
  69. package/src/models/HistoricalDeletion.ts +93 -0
  70. package/src/models/ListHistoricalDeletions200Response.ts +132 -0
  71. package/src/models/ListModelReadmeDrifts200Response.ts +132 -0
  72. package/src/models/ReadmeAt.ts +75 -0
  73. package/src/models/ReadmeDrift.ts +87 -0
  74. package/src/models/index.ts +10 -0
@@ -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.GetHistoricalDeletionSummary200ResponseMeteringEnum = void 0;
17
+ exports.instanceOfGetHistoricalDeletionSummary200Response = instanceOfGetHistoricalDeletionSummary200Response;
18
+ exports.GetHistoricalDeletionSummary200ResponseFromJSON = GetHistoricalDeletionSummary200ResponseFromJSON;
19
+ exports.GetHistoricalDeletionSummary200ResponseFromJSONTyped = GetHistoricalDeletionSummary200ResponseFromJSONTyped;
20
+ exports.GetHistoricalDeletionSummary200ResponseToJSON = GetHistoricalDeletionSummary200ResponseToJSON;
21
+ exports.GetHistoricalDeletionSummary200ResponseToJSONTyped = GetHistoricalDeletionSummary200ResponseToJSONTyped;
22
+ const DeletionSummary_1 = require("./DeletionSummary");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.GetHistoricalDeletionSummary200ResponseMeteringEnum = {
27
+ Preview: 'preview',
28
+ Billed: 'billed',
29
+ };
30
+ /**
31
+ * Check if a given object implements the GetHistoricalDeletionSummary200Response interface.
32
+ */
33
+ function instanceOfGetHistoricalDeletionSummary200Response(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 GetHistoricalDeletionSummary200ResponseFromJSON(json) {
53
+ return GetHistoricalDeletionSummary200ResponseFromJSONTyped(json, false);
54
+ }
55
+ function GetHistoricalDeletionSummary200ResponseFromJSONTyped(json, ignoreDiscriminator) {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+ 'data': (0, DeletionSummary_1.DeletionSummaryFromJSON)(json['data']),
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 GetHistoricalDeletionSummary200ResponseToJSON(json) {
71
+ return GetHistoricalDeletionSummary200ResponseToJSONTyped(json, false);
72
+ }
73
+ function GetHistoricalDeletionSummary200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+ return {
78
+ 'data': (0, DeletionSummary_1.DeletionSummaryToJSON)(value['data']),
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
+ }
@@ -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 { ReadmeAt } from './ReadmeAt';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetModelReadmeAt200Response
17
+ */
18
+ export interface GetModelReadmeAt200Response {
19
+ /**
20
+ *
21
+ */
22
+ data: ReadmeAt;
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: GetModelReadmeAt200ResponseMeteringEnum;
47
+ /**
48
+ * Also returned in the x-request-id header.
49
+ */
50
+ request_id: string;
51
+ }
52
+ /**
53
+ * @export
54
+ */
55
+ export declare const GetModelReadmeAt200ResponseMeteringEnum: {
56
+ readonly Preview: "preview";
57
+ readonly Billed: "billed";
58
+ };
59
+ export type GetModelReadmeAt200ResponseMeteringEnum = typeof GetModelReadmeAt200ResponseMeteringEnum[keyof typeof GetModelReadmeAt200ResponseMeteringEnum];
60
+ /**
61
+ * Check if a given object implements the GetModelReadmeAt200Response interface.
62
+ */
63
+ export declare function instanceOfGetModelReadmeAt200Response(value: object): value is GetModelReadmeAt200Response;
64
+ export declare function GetModelReadmeAt200ResponseFromJSON(json: any): GetModelReadmeAt200Response;
65
+ export declare function GetModelReadmeAt200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModelReadmeAt200Response;
66
+ export declare function GetModelReadmeAt200ResponseToJSON(json: any): GetModelReadmeAt200Response;
67
+ export declare function GetModelReadmeAt200ResponseToJSONTyped(value?: GetModelReadmeAt200Response | 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.GetModelReadmeAt200ResponseMeteringEnum = void 0;
17
+ exports.instanceOfGetModelReadmeAt200Response = instanceOfGetModelReadmeAt200Response;
18
+ exports.GetModelReadmeAt200ResponseFromJSON = GetModelReadmeAt200ResponseFromJSON;
19
+ exports.GetModelReadmeAt200ResponseFromJSONTyped = GetModelReadmeAt200ResponseFromJSONTyped;
20
+ exports.GetModelReadmeAt200ResponseToJSON = GetModelReadmeAt200ResponseToJSON;
21
+ exports.GetModelReadmeAt200ResponseToJSONTyped = GetModelReadmeAt200ResponseToJSONTyped;
22
+ const ReadmeAt_1 = require("./ReadmeAt");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.GetModelReadmeAt200ResponseMeteringEnum = {
27
+ Preview: 'preview',
28
+ Billed: 'billed',
29
+ };
30
+ /**
31
+ * Check if a given object implements the GetModelReadmeAt200Response interface.
32
+ */
33
+ function instanceOfGetModelReadmeAt200Response(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 GetModelReadmeAt200ResponseFromJSON(json) {
53
+ return GetModelReadmeAt200ResponseFromJSONTyped(json, false);
54
+ }
55
+ function GetModelReadmeAt200ResponseFromJSONTyped(json, ignoreDiscriminator) {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+ 'data': (0, ReadmeAt_1.ReadmeAtFromJSON)(json['data']),
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 GetModelReadmeAt200ResponseToJSON(json) {
71
+ return GetModelReadmeAt200ResponseToJSONTyped(json, false);
72
+ }
73
+ function GetModelReadmeAt200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+ return {
78
+ 'data': (0, ReadmeAt_1.ReadmeAtToJSON)(value['data']),
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
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * abliteration.org Public API
3
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface HistoricalDeletion
16
+ */
17
+ export interface HistoricalDeletion {
18
+ /**
19
+ *
20
+ */
21
+ id?: string;
22
+ /**
23
+ * ISO YYYY-MM of the earliest snapshot the model appears in.
24
+ */
25
+ first_seen_month?: string;
26
+ /**
27
+ * ISO YYYY-MM of the final snapshot before deletion.
28
+ */
29
+ last_seen_month?: string;
30
+ /**
31
+ * Whole months between first and last observation.
32
+ */
33
+ total_months_alive?: number;
34
+ /**
35
+ * Highest downloads count observed during the model's lifetime.
36
+ */
37
+ peak_downloads?: number;
38
+ /**
39
+ * ISO-8601 timestamp the model was originally created on HF (from the frozen snapshot).
40
+ */
41
+ created_at?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the HistoricalDeletion interface.
45
+ */
46
+ export declare function instanceOfHistoricalDeletion(value: object): value is HistoricalDeletion;
47
+ export declare function HistoricalDeletionFromJSON(json: any): HistoricalDeletion;
48
+ export declare function HistoricalDeletionFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistoricalDeletion;
49
+ export declare function HistoricalDeletionToJSON(json: any): HistoricalDeletion;
50
+ export declare function HistoricalDeletionToJSONTyped(value?: HistoricalDeletion | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfHistoricalDeletion = instanceOfHistoricalDeletion;
17
+ exports.HistoricalDeletionFromJSON = HistoricalDeletionFromJSON;
18
+ exports.HistoricalDeletionFromJSONTyped = HistoricalDeletionFromJSONTyped;
19
+ exports.HistoricalDeletionToJSON = HistoricalDeletionToJSON;
20
+ exports.HistoricalDeletionToJSONTyped = HistoricalDeletionToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the HistoricalDeletion interface.
23
+ */
24
+ function instanceOfHistoricalDeletion(value) {
25
+ return true;
26
+ }
27
+ function HistoricalDeletionFromJSON(json) {
28
+ return HistoricalDeletionFromJSONTyped(json, false);
29
+ }
30
+ function HistoricalDeletionFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': json['id'] == null ? undefined : json['id'],
36
+ 'first_seen_month': json['first_seen_month'] == null ? undefined : json['first_seen_month'],
37
+ 'last_seen_month': json['last_seen_month'] == null ? undefined : json['last_seen_month'],
38
+ 'total_months_alive': json['total_months_alive'] == null ? undefined : json['total_months_alive'],
39
+ 'peak_downloads': json['peak_downloads'] == null ? undefined : json['peak_downloads'],
40
+ 'created_at': json['created_at'] == null ? undefined : json['created_at'],
41
+ };
42
+ }
43
+ function HistoricalDeletionToJSON(json) {
44
+ return HistoricalDeletionToJSONTyped(json, false);
45
+ }
46
+ function HistoricalDeletionToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'first_seen_month': value['first_seen_month'],
53
+ 'last_seen_month': value['last_seen_month'],
54
+ 'total_months_alive': value['total_months_alive'],
55
+ 'peak_downloads': value['peak_downloads'],
56
+ 'created_at': value['created_at'],
57
+ };
58
+ }
@@ -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 { HistoricalDeletion } from './HistoricalDeletion';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListHistoricalDeletions200Response
17
+ */
18
+ export interface ListHistoricalDeletions200Response {
19
+ /**
20
+ *
21
+ */
22
+ data: Array<HistoricalDeletion>;
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: ListHistoricalDeletions200ResponseMeteringEnum;
47
+ /**
48
+ * Also returned in the x-request-id header.
49
+ */
50
+ request_id: string;
51
+ }
52
+ /**
53
+ * @export
54
+ */
55
+ export declare const ListHistoricalDeletions200ResponseMeteringEnum: {
56
+ readonly Preview: "preview";
57
+ readonly Billed: "billed";
58
+ };
59
+ export type ListHistoricalDeletions200ResponseMeteringEnum = typeof ListHistoricalDeletions200ResponseMeteringEnum[keyof typeof ListHistoricalDeletions200ResponseMeteringEnum];
60
+ /**
61
+ * Check if a given object implements the ListHistoricalDeletions200Response interface.
62
+ */
63
+ export declare function instanceOfListHistoricalDeletions200Response(value: object): value is ListHistoricalDeletions200Response;
64
+ export declare function ListHistoricalDeletions200ResponseFromJSON(json: any): ListHistoricalDeletions200Response;
65
+ export declare function ListHistoricalDeletions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListHistoricalDeletions200Response;
66
+ export declare function ListHistoricalDeletions200ResponseToJSON(json: any): ListHistoricalDeletions200Response;
67
+ export declare function ListHistoricalDeletions200ResponseToJSONTyped(value?: ListHistoricalDeletions200Response | 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.ListHistoricalDeletions200ResponseMeteringEnum = void 0;
17
+ exports.instanceOfListHistoricalDeletions200Response = instanceOfListHistoricalDeletions200Response;
18
+ exports.ListHistoricalDeletions200ResponseFromJSON = ListHistoricalDeletions200ResponseFromJSON;
19
+ exports.ListHistoricalDeletions200ResponseFromJSONTyped = ListHistoricalDeletions200ResponseFromJSONTyped;
20
+ exports.ListHistoricalDeletions200ResponseToJSON = ListHistoricalDeletions200ResponseToJSON;
21
+ exports.ListHistoricalDeletions200ResponseToJSONTyped = ListHistoricalDeletions200ResponseToJSONTyped;
22
+ const HistoricalDeletion_1 = require("./HistoricalDeletion");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.ListHistoricalDeletions200ResponseMeteringEnum = {
27
+ Preview: 'preview',
28
+ Billed: 'billed',
29
+ };
30
+ /**
31
+ * Check if a given object implements the ListHistoricalDeletions200Response interface.
32
+ */
33
+ function instanceOfListHistoricalDeletions200Response(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 ListHistoricalDeletions200ResponseFromJSON(json) {
53
+ return ListHistoricalDeletions200ResponseFromJSONTyped(json, false);
54
+ }
55
+ function ListHistoricalDeletions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+ 'data': (json['data'].map(HistoricalDeletion_1.HistoricalDeletionFromJSON)),
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 ListHistoricalDeletions200ResponseToJSON(json) {
71
+ return ListHistoricalDeletions200ResponseToJSONTyped(json, false);
72
+ }
73
+ function ListHistoricalDeletions200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+ return {
78
+ 'data': (value['data'].map(HistoricalDeletion_1.HistoricalDeletionToJSON)),
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
+ }
@@ -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 { ReadmeDrift } from './ReadmeDrift';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListModelReadmeDrifts200Response
17
+ */
18
+ export interface ListModelReadmeDrifts200Response {
19
+ /**
20
+ *
21
+ */
22
+ data: Array<ReadmeDrift>;
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: ListModelReadmeDrifts200ResponseMeteringEnum;
47
+ /**
48
+ * Also returned in the x-request-id header.
49
+ */
50
+ request_id: string;
51
+ }
52
+ /**
53
+ * @export
54
+ */
55
+ export declare const ListModelReadmeDrifts200ResponseMeteringEnum: {
56
+ readonly Preview: "preview";
57
+ readonly Billed: "billed";
58
+ };
59
+ export type ListModelReadmeDrifts200ResponseMeteringEnum = typeof ListModelReadmeDrifts200ResponseMeteringEnum[keyof typeof ListModelReadmeDrifts200ResponseMeteringEnum];
60
+ /**
61
+ * Check if a given object implements the ListModelReadmeDrifts200Response interface.
62
+ */
63
+ export declare function instanceOfListModelReadmeDrifts200Response(value: object): value is ListModelReadmeDrifts200Response;
64
+ export declare function ListModelReadmeDrifts200ResponseFromJSON(json: any): ListModelReadmeDrifts200Response;
65
+ export declare function ListModelReadmeDrifts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListModelReadmeDrifts200Response;
66
+ export declare function ListModelReadmeDrifts200ResponseToJSON(json: any): ListModelReadmeDrifts200Response;
67
+ export declare function ListModelReadmeDrifts200ResponseToJSONTyped(value?: ListModelReadmeDrifts200Response | 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.ListModelReadmeDrifts200ResponseMeteringEnum = void 0;
17
+ exports.instanceOfListModelReadmeDrifts200Response = instanceOfListModelReadmeDrifts200Response;
18
+ exports.ListModelReadmeDrifts200ResponseFromJSON = ListModelReadmeDrifts200ResponseFromJSON;
19
+ exports.ListModelReadmeDrifts200ResponseFromJSONTyped = ListModelReadmeDrifts200ResponseFromJSONTyped;
20
+ exports.ListModelReadmeDrifts200ResponseToJSON = ListModelReadmeDrifts200ResponseToJSON;
21
+ exports.ListModelReadmeDrifts200ResponseToJSONTyped = ListModelReadmeDrifts200ResponseToJSONTyped;
22
+ const ReadmeDrift_1 = require("./ReadmeDrift");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.ListModelReadmeDrifts200ResponseMeteringEnum = {
27
+ Preview: 'preview',
28
+ Billed: 'billed',
29
+ };
30
+ /**
31
+ * Check if a given object implements the ListModelReadmeDrifts200Response interface.
32
+ */
33
+ function instanceOfListModelReadmeDrifts200Response(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 ListModelReadmeDrifts200ResponseFromJSON(json) {
53
+ return ListModelReadmeDrifts200ResponseFromJSONTyped(json, false);
54
+ }
55
+ function ListModelReadmeDrifts200ResponseFromJSONTyped(json, ignoreDiscriminator) {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+ 'data': (json['data'].map(ReadmeDrift_1.ReadmeDriftFromJSON)),
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 ListModelReadmeDrifts200ResponseToJSON(json) {
71
+ return ListModelReadmeDrifts200ResponseToJSONTyped(json, false);
72
+ }
73
+ function ListModelReadmeDrifts200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+ return {
78
+ 'data': (value['data'].map(ReadmeDrift_1.ReadmeDriftToJSON)),
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
+ }