@abliteration/sdk 0.1.6 → 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 (38) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +6 -0
  3. package/dist/apis/ModelsApi.d.ts +108 -0
  4. package/dist/apis/ModelsApi.js +111 -0
  5. package/dist/esm/apis/ModelsApi.d.ts +108 -0
  6. package/dist/esm/apis/ModelsApi.js +111 -0
  7. package/dist/esm/models/GetModelReadmeAt200Response.d.ts +67 -0
  8. package/dist/esm/models/GetModelReadmeAt200Response.js +79 -0
  9. package/dist/esm/models/ListModelReadmeDrifts200Response.d.ts +67 -0
  10. package/dist/esm/models/ListModelReadmeDrifts200Response.js +79 -0
  11. package/dist/esm/models/ReadmeAt.d.ts +38 -0
  12. package/dist/esm/models/ReadmeAt.js +45 -0
  13. package/dist/esm/models/ReadmeDrift.d.ts +46 -0
  14. package/dist/esm/models/ReadmeDrift.js +49 -0
  15. package/dist/esm/models/index.d.ts +4 -0
  16. package/dist/esm/models/index.js +4 -0
  17. package/dist/models/GetModelReadmeAt200Response.d.ts +67 -0
  18. package/dist/models/GetModelReadmeAt200Response.js +87 -0
  19. package/dist/models/ListModelReadmeDrifts200Response.d.ts +67 -0
  20. package/dist/models/ListModelReadmeDrifts200Response.js +87 -0
  21. package/dist/models/ReadmeAt.d.ts +38 -0
  22. package/dist/models/ReadmeAt.js +52 -0
  23. package/dist/models/ReadmeDrift.d.ts +46 -0
  24. package/dist/models/ReadmeDrift.js +56 -0
  25. package/dist/models/index.d.ts +4 -0
  26. package/dist/models/index.js +4 -0
  27. package/docs/GetModelReadmeAt200Response.md +48 -0
  28. package/docs/ListModelReadmeDrifts200Response.md +48 -0
  29. package/docs/ModelsApi.md +165 -0
  30. package/docs/ReadmeAt.md +39 -0
  31. package/docs/ReadmeDrift.md +43 -0
  32. package/package.json +1 -1
  33. package/src/apis/ModelsApi.ts +226 -0
  34. package/src/models/GetModelReadmeAt200Response.ts +132 -0
  35. package/src/models/ListModelReadmeDrifts200Response.ts +132 -0
  36. package/src/models/ReadmeAt.ts +75 -0
  37. package/src/models/ReadmeDrift.ts +87 -0
  38. package/src/models/index.ts +4 -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 { ReadmeDrift } from './ReadmeDrift';
17
+ import {
18
+ ReadmeDriftFromJSON,
19
+ ReadmeDriftFromJSONTyped,
20
+ ReadmeDriftToJSON,
21
+ ReadmeDriftToJSONTyped,
22
+ } from './ReadmeDrift';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ListModelReadmeDrifts200Response
28
+ */
29
+ export interface ListModelReadmeDrifts200Response {
30
+ /**
31
+ *
32
+ */
33
+ data: Array<ReadmeDrift>;
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: ListModelReadmeDrifts200ResponseMeteringEnum;
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 ListModelReadmeDrifts200ResponseMeteringEnum = {
69
+ Preview: 'preview',
70
+ Billed: 'billed',
71
+ } as const;
72
+ export type ListModelReadmeDrifts200ResponseMeteringEnum = typeof ListModelReadmeDrifts200ResponseMeteringEnum[keyof typeof ListModelReadmeDrifts200ResponseMeteringEnum];
73
+
74
+
75
+ /**
76
+ * Check if a given object implements the ListModelReadmeDrifts200Response interface.
77
+ */
78
+ export function instanceOfListModelReadmeDrifts200Response(value: object): value is ListModelReadmeDrifts200Response {
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 ListModelReadmeDrifts200ResponseFromJSON(json: any): ListModelReadmeDrifts200Response {
91
+ return ListModelReadmeDrifts200ResponseFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function ListModelReadmeDrifts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListModelReadmeDrifts200Response {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'data': ((json['data'] as Array<any>).map(ReadmeDriftFromJSON)),
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 ListModelReadmeDrifts200ResponseToJSON(json: any): ListModelReadmeDrifts200Response {
112
+ return ListModelReadmeDrifts200ResponseToJSONTyped(json, false);
113
+ }
114
+
115
+ export function ListModelReadmeDrifts200ResponseToJSONTyped(value?: ListModelReadmeDrifts200Response | 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(ReadmeDriftToJSON)),
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,75 @@
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
+ * Wayback-machine view: full README content at one commit.
18
+ * @export
19
+ * @interface ReadmeAt
20
+ */
21
+ export interface ReadmeAt {
22
+ /**
23
+ * Model id (author/name).
24
+ */
25
+ id?: string;
26
+ /**
27
+ * Commit sha (echoes the path param).
28
+ */
29
+ commit?: string;
30
+ /**
31
+ * Full README markdown at that commit. Up to ~100KB.
32
+ */
33
+ content?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ReadmeAt interface.
38
+ */
39
+ export function instanceOfReadmeAt(value: object): value is ReadmeAt {
40
+ return true;
41
+ }
42
+
43
+ export function ReadmeAtFromJSON(json: any): ReadmeAt {
44
+ return ReadmeAtFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function ReadmeAtFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadmeAt {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'id': json['id'] == null ? undefined : json['id'],
54
+ 'commit': json['commit'] == null ? undefined : json['commit'],
55
+ 'content': json['content'] == null ? undefined : json['content'],
56
+ };
57
+ }
58
+
59
+ export function ReadmeAtToJSON(json: any): ReadmeAt {
60
+ return ReadmeAtToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ReadmeAtToJSONTyped(value?: ReadmeAt | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'id': value['id'],
71
+ 'commit': value['commit'],
72
+ 'content': value['content'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,87 @@
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
+ * One commit that changed the model's README on HF.
18
+ * @export
19
+ * @interface ReadmeDrift
20
+ */
21
+ export interface ReadmeDrift {
22
+ /**
23
+ *
24
+ */
25
+ commit_sha?: string;
26
+ /**
27
+ * Unix epoch seconds.
28
+ */
29
+ commit_ts?: number;
30
+ /**
31
+ *
32
+ */
33
+ commit_message?: string | null;
34
+ /**
35
+ * README byte size at this commit.
36
+ */
37
+ content_size?: number;
38
+ /**
39
+ * Bytes added (positive) or removed (negative) since the previous commit. First commit gets 0.
40
+ */
41
+ size_delta?: number;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the ReadmeDrift interface.
46
+ */
47
+ export function instanceOfReadmeDrift(value: object): value is ReadmeDrift {
48
+ return true;
49
+ }
50
+
51
+ export function ReadmeDriftFromJSON(json: any): ReadmeDrift {
52
+ return ReadmeDriftFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function ReadmeDriftFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadmeDrift {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'commit_sha': json['commit_sha'] == null ? undefined : json['commit_sha'],
62
+ 'commit_ts': json['commit_ts'] == null ? undefined : json['commit_ts'],
63
+ 'commit_message': json['commit_message'] === undefined ? undefined : json['commit_message'] === null ? null : json['commit_message'],
64
+ 'content_size': json['content_size'] == null ? undefined : json['content_size'],
65
+ 'size_delta': json['size_delta'] == null ? undefined : json['size_delta'],
66
+ };
67
+ }
68
+
69
+ export function ReadmeDriftToJSON(json: any): ReadmeDrift {
70
+ return ReadmeDriftToJSONTyped(json, false);
71
+ }
72
+
73
+ export function ReadmeDriftToJSONTyped(value?: ReadmeDrift | null, ignoreDiscriminator: boolean = false): any {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+
78
+ return {
79
+
80
+ 'commit_sha': value['commit_sha'],
81
+ 'commit_ts': value['commit_ts'],
82
+ 'commit_message': value['commit_message'],
83
+ 'content_size': value['content_size'],
84
+ 'size_delta': value['size_delta'],
85
+ };
86
+ }
87
+
@@ -17,6 +17,7 @@ export * from './GetHistoricalDeletionSummary200Response';
17
17
  export * from './GetIndex200Response';
18
18
  export * from './GetMethod200Response';
19
19
  export * from './GetModel200Response';
20
+ export * from './GetModelReadmeAt200Response';
20
21
  export * from './HistoricalDeletion';
21
22
  export * from './IndexDetail';
22
23
  export * from './ListAuthors200Response';
@@ -25,6 +26,7 @@ export * from './ListDelistedModels200Response';
25
26
  export * from './ListHistoricalDeletions200Response';
26
27
  export * from './ListIndices200Response';
27
28
  export * from './ListMethods200Response';
29
+ export * from './ListModelReadmeDrifts200Response';
28
30
  export * from './ListModels200Response';
29
31
  export * from './ListTimeline200Response';
30
32
  export * from './Method';
@@ -35,3 +37,5 @@ export * from './ModelError';
35
37
  export * from './ModelIndex';
36
38
  export * from './ModelSummary';
37
39
  export * from './Passport';
40
+ export * from './ReadmeAt';
41
+ export * from './ReadmeDrift';