@abliteration/sdk 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/.openapi-generator/FILES +76 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +140 -49
  5. package/dist/apis/AuthorsApi.d.ts +11 -3
  6. package/dist/apis/AuthorsApi.js +8 -0
  7. package/dist/apis/DatasetsApi.d.ts +9 -3
  8. package/dist/apis/DatasetsApi.js +6 -0
  9. package/dist/apis/IndicesApi.d.ts +9 -3
  10. package/dist/apis/IndicesApi.js +6 -0
  11. package/dist/apis/ModelsApi.d.ts +9 -3
  12. package/dist/apis/ModelsApi.js +6 -0
  13. package/dist/esm/apis/AuthorsApi.d.ts +11 -3
  14. package/dist/esm/apis/AuthorsApi.js +8 -0
  15. package/dist/esm/apis/DatasetsApi.d.ts +9 -3
  16. package/dist/esm/apis/DatasetsApi.js +6 -0
  17. package/dist/esm/apis/IndicesApi.d.ts +9 -3
  18. package/dist/esm/apis/IndicesApi.js +6 -0
  19. package/dist/esm/apis/ModelsApi.d.ts +9 -3
  20. package/dist/esm/apis/ModelsApi.js +6 -0
  21. package/dist/esm/models/Author.d.ts +4 -0
  22. package/dist/esm/models/Author.js +2 -0
  23. package/dist/esm/models/AuthorDetail.d.ts +4 -0
  24. package/dist/esm/models/AuthorDetail.js +2 -0
  25. package/dist/esm/models/Dataset.d.ts +45 -1
  26. package/dist/esm/models/Dataset.js +22 -0
  27. package/dist/esm/models/DatasetDetail.d.ts +85 -2
  28. package/dist/esm/models/DatasetDetail.js +52 -2
  29. package/dist/esm/models/ModelDetail.d.ts +173 -1
  30. package/dist/esm/models/ModelDetail.js +2 -2
  31. package/dist/models/Author.d.ts +4 -0
  32. package/dist/models/Author.js +2 -0
  33. package/dist/models/AuthorDetail.d.ts +4 -0
  34. package/dist/models/AuthorDetail.js +2 -0
  35. package/dist/models/Dataset.d.ts +45 -1
  36. package/dist/models/Dataset.js +22 -0
  37. package/dist/models/DatasetDetail.d.ts +85 -2
  38. package/dist/models/DatasetDetail.js +52 -2
  39. package/dist/models/ModelDetail.d.ts +173 -1
  40. package/dist/models/ModelDetail.js +2 -2
  41. package/docs/Author.md +44 -0
  42. package/docs/AuthorDetail.md +46 -0
  43. package/docs/AuthorsApi.md +167 -0
  44. package/docs/DaiPoint.md +38 -0
  45. package/docs/Dataset.md +76 -0
  46. package/docs/DatasetDetail.md +80 -0
  47. package/docs/DatasetsApi.md +176 -0
  48. package/docs/Envelope.md +48 -0
  49. package/docs/Event.md +46 -0
  50. package/docs/GetAuthor200Response.md +48 -0
  51. package/docs/GetDataset200Response.md +48 -0
  52. package/docs/GetIndex200Response.md +48 -0
  53. package/docs/GetMethod200Response.md +48 -0
  54. package/docs/GetModel200Response.md +48 -0
  55. package/docs/IndexDetail.md +54 -0
  56. package/docs/IndicesApi.md +153 -0
  57. package/docs/ListAuthors200Response.md +48 -0
  58. package/docs/ListDatasets200Response.md +48 -0
  59. package/docs/ListIndices200Response.md +48 -0
  60. package/docs/ListMethods200Response.md +48 -0
  61. package/docs/ListModels200Response.md +48 -0
  62. package/docs/ListTimeline200Response.md +48 -0
  63. package/docs/Method.md +44 -0
  64. package/docs/MethodDetail.md +50 -0
  65. package/docs/MethodDetailAllOfTopAuthors.md +36 -0
  66. package/docs/MethodsApi.md +153 -0
  67. package/docs/ModelDetail.md +131 -0
  68. package/docs/ModelError.md +42 -0
  69. package/docs/ModelIndex.md +52 -0
  70. package/docs/ModelSummary.md +58 -0
  71. package/docs/ModelsApi.md +191 -0
  72. package/docs/Passport.md +38 -0
  73. package/docs/TimelineApi.md +93 -0
  74. package/openapi-generator-config.json +10 -0
  75. package/package.json +14 -16
  76. package/src/apis/AuthorsApi.ts +248 -0
  77. package/src/apis/DatasetsApi.ts +278 -0
  78. package/src/apis/IndicesApi.ts +213 -0
  79. package/src/apis/MethodsApi.ts +214 -0
  80. package/src/apis/ModelsApi.ts +328 -0
  81. package/src/apis/TimelineApi.ts +148 -0
  82. package/src/apis/index.ts +8 -0
  83. package/src/index.ts +5 -0
  84. package/src/models/Author.ts +93 -0
  85. package/src/models/AuthorDetail.ts +107 -0
  86. package/src/models/DaiPoint.ts +75 -0
  87. package/src/models/Dataset.ts +189 -0
  88. package/src/models/DatasetDetail.ts +209 -0
  89. package/src/models/Envelope.ts +124 -0
  90. package/src/models/Event.ts +99 -0
  91. package/src/models/GetAuthor200Response.ts +132 -0
  92. package/src/models/GetDataset200Response.ts +132 -0
  93. package/src/models/GetIndex200Response.ts +132 -0
  94. package/src/models/GetMethod200Response.ts +132 -0
  95. package/src/models/GetModel200Response.ts +132 -0
  96. package/src/models/IndexDetail.ts +153 -0
  97. package/src/models/ListAuthors200Response.ts +132 -0
  98. package/src/models/ListDatasets200Response.ts +132 -0
  99. package/src/models/ListIndices200Response.ts +132 -0
  100. package/src/models/ListMethods200Response.ts +132 -0
  101. package/src/models/ListModels200Response.ts +132 -0
  102. package/src/models/ListTimeline200Response.ts +132 -0
  103. package/src/models/Method.ts +106 -0
  104. package/src/models/MethodDetail.ts +139 -0
  105. package/src/models/MethodDetailAllOfTopAuthors.ts +69 -0
  106. package/src/models/ModelDetail.ts +362 -0
  107. package/src/models/ModelError.ts +89 -0
  108. package/src/models/ModelIndex.ts +147 -0
  109. package/src/models/ModelSummary.ts +135 -0
  110. package/src/models/Passport.ts +75 -0
  111. package/src/models/index.ts +29 -0
  112. package/src/runtime.ts +505 -0
  113. package/tsconfig.esm.json +7 -0
  114. package/tsconfig.json +16 -0
@@ -0,0 +1,147 @@
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 { DaiPoint } from './DaiPoint';
17
+ import {
18
+ DaiPointFromJSON,
19
+ DaiPointFromJSONTyped,
20
+ DaiPointToJSON,
21
+ DaiPointToJSONTyped,
22
+ } from './DaiPoint';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ModelIndex
28
+ */
29
+ export interface ModelIndex {
30
+ /**
31
+ *
32
+ */
33
+ id?: ModelIndexIdEnum;
34
+ /**
35
+ *
36
+ */
37
+ name?: string;
38
+ /**
39
+ *
40
+ */
41
+ value?: number | null;
42
+ /**
43
+ *
44
+ */
45
+ unit?: ModelIndexUnitEnum;
46
+ /**
47
+ * False when the value is a placeholder constant rather than a measurement.
48
+ */
49
+ measured?: boolean;
50
+ /**
51
+ * Where the number is produced.
52
+ */
53
+ source?: string;
54
+ /**
55
+ *
56
+ */
57
+ history_available?: boolean;
58
+ /**
59
+ *
60
+ */
61
+ as_of?: string | null;
62
+ /**
63
+ *
64
+ */
65
+ note?: string | null;
66
+ /**
67
+ *
68
+ */
69
+ recent_history?: Array<DaiPoint>;
70
+ }
71
+
72
+
73
+ /**
74
+ * @export
75
+ */
76
+ export const ModelIndexIdEnum = {
77
+ Dai: 'dai',
78
+ FreedomVelocity: 'freedom-velocity',
79
+ Weaponization: 'weaponization',
80
+ F2wLatency: 'f2w-latency',
81
+ } as const;
82
+ export type ModelIndexIdEnum = typeof ModelIndexIdEnum[keyof typeof ModelIndexIdEnum];
83
+
84
+ /**
85
+ * @export
86
+ */
87
+ export const ModelIndexUnitEnum = {
88
+ Percent: 'percent',
89
+ Days: 'days',
90
+ } as const;
91
+ export type ModelIndexUnitEnum = typeof ModelIndexUnitEnum[keyof typeof ModelIndexUnitEnum];
92
+
93
+
94
+ /**
95
+ * Check if a given object implements the ModelIndex interface.
96
+ */
97
+ export function instanceOfModelIndex(value: object): value is ModelIndex {
98
+ return true;
99
+ }
100
+
101
+ export function ModelIndexFromJSON(json: any): ModelIndex {
102
+ return ModelIndexFromJSONTyped(json, false);
103
+ }
104
+
105
+ export function ModelIndexFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelIndex {
106
+ if (json == null) {
107
+ return json;
108
+ }
109
+ return {
110
+
111
+ 'id': json['id'] == null ? undefined : json['id'],
112
+ 'name': json['name'] == null ? undefined : json['name'],
113
+ 'value': json['value'] === undefined ? undefined : json['value'] === null ? null : json['value'],
114
+ 'unit': json['unit'] == null ? undefined : json['unit'],
115
+ 'measured': json['measured'] == null ? undefined : json['measured'],
116
+ 'source': json['source'] == null ? undefined : json['source'],
117
+ 'history_available': json['history_available'] == null ? undefined : json['history_available'],
118
+ 'as_of': json['as_of'] === undefined ? undefined : json['as_of'] === null ? null : json['as_of'],
119
+ 'note': json['note'] === undefined ? undefined : json['note'] === null ? null : json['note'],
120
+ 'recent_history': json['recent_history'] == null ? undefined : ((json['recent_history'] as Array<any>).map(DaiPointFromJSON)),
121
+ };
122
+ }
123
+
124
+ export function ModelIndexToJSON(json: any): ModelIndex {
125
+ return ModelIndexToJSONTyped(json, false);
126
+ }
127
+
128
+ export function ModelIndexToJSONTyped(value?: ModelIndex | null, ignoreDiscriminator: boolean = false): any {
129
+ if (value == null) {
130
+ return value;
131
+ }
132
+
133
+ return {
134
+
135
+ 'id': value['id'],
136
+ 'name': value['name'],
137
+ 'value': value['value'],
138
+ 'unit': value['unit'],
139
+ 'measured': value['measured'],
140
+ 'source': value['source'],
141
+ 'history_available': value['history_available'],
142
+ 'as_of': value['as_of'],
143
+ 'note': value['note'],
144
+ 'recent_history': value['recent_history'] == null ? undefined : ((value['recent_history'] as Array<any>).map(DaiPointToJSON)),
145
+ };
146
+ }
147
+
@@ -0,0 +1,135 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * abliteration.org Public API
5
+ * Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ModelSummary
20
+ */
21
+ export interface ModelSummary {
22
+ /**
23
+ *
24
+ */
25
+ id?: string;
26
+ /**
27
+ *
28
+ */
29
+ author?: string;
30
+ /**
31
+ *
32
+ */
33
+ name?: string;
34
+ /**
35
+ *
36
+ */
37
+ method?: string | null;
38
+ /**
39
+ *
40
+ */
41
+ confidence?: string | null;
42
+ /**
43
+ *
44
+ */
45
+ family?: string | null;
46
+ /**
47
+ *
48
+ */
49
+ params_b?: number | null;
50
+ /**
51
+ *
52
+ */
53
+ license?: string | null;
54
+ /**
55
+ *
56
+ */
57
+ downloads?: number | null;
58
+ /**
59
+ *
60
+ */
61
+ likes?: number | null;
62
+ /**
63
+ *
64
+ */
65
+ is_gguf?: number | null;
66
+ /**
67
+ *
68
+ */
69
+ created_at?: string | null;
70
+ /**
71
+ *
72
+ */
73
+ first_seen_at?: string | null;
74
+ }
75
+
76
+ /**
77
+ * Check if a given object implements the ModelSummary interface.
78
+ */
79
+ export function instanceOfModelSummary(value: object): value is ModelSummary {
80
+ return true;
81
+ }
82
+
83
+ export function ModelSummaryFromJSON(json: any): ModelSummary {
84
+ return ModelSummaryFromJSONTyped(json, false);
85
+ }
86
+
87
+ export function ModelSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelSummary {
88
+ if (json == null) {
89
+ return json;
90
+ }
91
+ return {
92
+
93
+ 'id': json['id'] == null ? undefined : json['id'],
94
+ 'author': json['author'] == null ? undefined : json['author'],
95
+ 'name': json['name'] == null ? undefined : json['name'],
96
+ 'method': json['method'] === undefined ? undefined : json['method'] === null ? null : json['method'],
97
+ 'confidence': json['confidence'] === undefined ? undefined : json['confidence'] === null ? null : json['confidence'],
98
+ 'family': json['family'] === undefined ? undefined : json['family'] === null ? null : json['family'],
99
+ 'params_b': json['params_b'] === undefined ? undefined : json['params_b'] === null ? null : json['params_b'],
100
+ 'license': json['license'] === undefined ? undefined : json['license'] === null ? null : json['license'],
101
+ 'downloads': json['downloads'] === undefined ? undefined : json['downloads'] === null ? null : json['downloads'],
102
+ 'likes': json['likes'] === undefined ? undefined : json['likes'] === null ? null : json['likes'],
103
+ 'is_gguf': json['is_gguf'] === undefined ? undefined : json['is_gguf'] === null ? null : json['is_gguf'],
104
+ 'created_at': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : json['created_at'],
105
+ 'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'],
106
+ };
107
+ }
108
+
109
+ export function ModelSummaryToJSON(json: any): ModelSummary {
110
+ return ModelSummaryToJSONTyped(json, false);
111
+ }
112
+
113
+ export function ModelSummaryToJSONTyped(value?: ModelSummary | null, ignoreDiscriminator: boolean = false): any {
114
+ if (value == null) {
115
+ return value;
116
+ }
117
+
118
+ return {
119
+
120
+ 'id': value['id'],
121
+ 'author': value['author'],
122
+ 'name': value['name'],
123
+ 'method': value['method'],
124
+ 'confidence': value['confidence'],
125
+ 'family': value['family'],
126
+ 'params_b': value['params_b'],
127
+ 'license': value['license'],
128
+ 'downloads': value['downloads'],
129
+ 'likes': value['likes'],
130
+ 'is_gguf': value['is_gguf'],
131
+ 'created_at': value['created_at'],
132
+ 'first_seen_at': value['first_seen_at'],
133
+ };
134
+ }
135
+
@@ -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
+ *
18
+ * @export
19
+ * @interface Passport
20
+ */
21
+ export interface Passport {
22
+ /**
23
+ *
24
+ */
25
+ one_liner?: string;
26
+ /**
27
+ *
28
+ */
29
+ practitioner?: string;
30
+ /**
31
+ *
32
+ */
33
+ research?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the Passport interface.
38
+ */
39
+ export function instanceOfPassport(value: object): value is Passport {
40
+ return true;
41
+ }
42
+
43
+ export function PassportFromJSON(json: any): Passport {
44
+ return PassportFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function PassportFromJSONTyped(json: any, ignoreDiscriminator: boolean): Passport {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'one_liner': json['one_liner'] == null ? undefined : json['one_liner'],
54
+ 'practitioner': json['practitioner'] == null ? undefined : json['practitioner'],
55
+ 'research': json['research'] == null ? undefined : json['research'],
56
+ };
57
+ }
58
+
59
+ export function PassportToJSON(json: any): Passport {
60
+ return PassportToJSONTyped(json, false);
61
+ }
62
+
63
+ export function PassportToJSONTyped(value?: Passport | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'one_liner': value['one_liner'],
71
+ 'practitioner': value['practitioner'],
72
+ 'research': value['research'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,29 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './Author';
4
+ export * from './AuthorDetail';
5
+ export * from './DaiPoint';
6
+ export * from './Dataset';
7
+ export * from './DatasetDetail';
8
+ export * from './Envelope';
9
+ export * from './Event';
10
+ export * from './GetAuthor200Response';
11
+ export * from './GetDataset200Response';
12
+ export * from './GetIndex200Response';
13
+ export * from './GetMethod200Response';
14
+ export * from './GetModel200Response';
15
+ export * from './IndexDetail';
16
+ export * from './ListAuthors200Response';
17
+ export * from './ListDatasets200Response';
18
+ export * from './ListIndices200Response';
19
+ export * from './ListMethods200Response';
20
+ export * from './ListModels200Response';
21
+ export * from './ListTimeline200Response';
22
+ export * from './Method';
23
+ export * from './MethodDetail';
24
+ export * from './MethodDetailAllOfTopAuthors';
25
+ export * from './ModelDetail';
26
+ export * from './ModelError';
27
+ export * from './ModelIndex';
28
+ export * from './ModelSummary';
29
+ export * from './Passport';