@abliteration/sdk 0.1.4 → 0.1.6
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.
- package/.openapi-generator/FILES +16 -0
- package/README.md +11 -0
- package/dist/apis/ModelsApi.d.ts +200 -8
- package/dist/apis/ModelsApi.js +193 -5
- package/dist/esm/apis/ModelsApi.d.ts +200 -8
- package/dist/esm/apis/ModelsApi.js +192 -4
- package/dist/esm/models/DeletionSummary.d.ts +52 -0
- package/dist/esm/models/DeletionSummary.js +53 -0
- package/dist/esm/models/DeletionSummaryTimelineInner.d.ts +34 -0
- package/dist/esm/models/DeletionSummaryTimelineInner.js +43 -0
- package/dist/esm/models/DeletionSummaryTopByDownloadsInner.d.ts +42 -0
- package/dist/esm/models/DeletionSummaryTopByDownloadsInner.js +47 -0
- package/dist/esm/models/DelistedModel.d.ts +54 -0
- package/dist/esm/models/DelistedModel.js +53 -0
- package/dist/esm/models/GetHistoricalDeletionSummary200Response.d.ts +67 -0
- package/dist/esm/models/GetHistoricalDeletionSummary200Response.js +79 -0
- package/dist/esm/models/HistoricalDeletion.d.ts +50 -0
- package/dist/esm/models/HistoricalDeletion.js +51 -0
- package/dist/esm/models/ListDelistedModels200Response.d.ts +67 -0
- package/dist/esm/models/ListDelistedModels200Response.js +79 -0
- package/dist/esm/models/ListHistoricalDeletions200Response.d.ts +67 -0
- package/dist/esm/models/ListHistoricalDeletions200Response.js +79 -0
- package/dist/esm/models/ModelDetail.d.ts +8 -0
- package/dist/esm/models/ModelDetail.js +2 -2
- package/dist/esm/models/ModelSummary.d.ts +8 -0
- package/dist/esm/models/ModelSummary.js +4 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/DeletionSummary.d.ts +52 -0
- package/dist/models/DeletionSummary.js +60 -0
- package/dist/models/DeletionSummaryTimelineInner.d.ts +34 -0
- package/dist/models/DeletionSummaryTimelineInner.js +50 -0
- package/dist/models/DeletionSummaryTopByDownloadsInner.d.ts +42 -0
- package/dist/models/DeletionSummaryTopByDownloadsInner.js +54 -0
- package/dist/models/DelistedModel.d.ts +54 -0
- package/dist/models/DelistedModel.js +60 -0
- package/dist/models/GetHistoricalDeletionSummary200Response.d.ts +67 -0
- package/dist/models/GetHistoricalDeletionSummary200Response.js +87 -0
- package/dist/models/HistoricalDeletion.d.ts +50 -0
- package/dist/models/HistoricalDeletion.js +58 -0
- package/dist/models/ListDelistedModels200Response.d.ts +67 -0
- package/dist/models/ListDelistedModels200Response.js +87 -0
- package/dist/models/ListHistoricalDeletions200Response.d.ts +67 -0
- package/dist/models/ListHistoricalDeletions200Response.js +87 -0
- package/dist/models/ModelDetail.d.ts +8 -0
- package/dist/models/ModelDetail.js +2 -2
- package/dist/models/ModelSummary.d.ts +8 -0
- package/dist/models/ModelSummary.js +4 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/DeletionSummary.md +45 -0
- package/docs/DeletionSummaryTimelineInner.md +36 -0
- package/docs/DeletionSummaryTopByDownloadsInner.md +40 -0
- package/docs/DelistedModel.md +46 -0
- package/docs/GetHistoricalDeletionSummary200Response.md +48 -0
- package/docs/HistoricalDeletion.md +44 -0
- package/docs/ListDelistedModels200Response.md +48 -0
- package/docs/ListHistoricalDeletions200Response.md +48 -0
- package/docs/ModelDetail.md +4 -0
- package/docs/ModelSummary.md +4 -0
- package/docs/ModelsApi.md +247 -3
- package/package.json +1 -1
- package/src/apis/ModelsApi.ts +362 -8
- package/src/models/DeletionSummary.ts +108 -0
- package/src/models/DeletionSummaryTimelineInner.ts +69 -0
- package/src/models/DeletionSummaryTopByDownloadsInner.ts +81 -0
- package/src/models/DelistedModel.ts +99 -0
- package/src/models/GetHistoricalDeletionSummary200Response.ts +132 -0
- package/src/models/HistoricalDeletion.ts +93 -0
- package/src/models/ListDelistedModels200Response.ts +132 -0
- package/src/models/ListHistoricalDeletions200Response.ts +132 -0
- package/src/models/ModelDetail.ts +12 -0
- package/src/models/ModelSummary.ts +12 -0
- package/src/models/index.ts +8 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -8,17 +8,25 @@ docs/DaiPoint.md
|
|
|
8
8
|
docs/Dataset.md
|
|
9
9
|
docs/DatasetDetail.md
|
|
10
10
|
docs/DatasetsApi.md
|
|
11
|
+
docs/DeletionSummary.md
|
|
12
|
+
docs/DeletionSummaryTimelineInner.md
|
|
13
|
+
docs/DeletionSummaryTopByDownloadsInner.md
|
|
14
|
+
docs/DelistedModel.md
|
|
11
15
|
docs/Envelope.md
|
|
12
16
|
docs/Event.md
|
|
13
17
|
docs/GetAuthor200Response.md
|
|
14
18
|
docs/GetDataset200Response.md
|
|
19
|
+
docs/GetHistoricalDeletionSummary200Response.md
|
|
15
20
|
docs/GetIndex200Response.md
|
|
16
21
|
docs/GetMethod200Response.md
|
|
17
22
|
docs/GetModel200Response.md
|
|
23
|
+
docs/HistoricalDeletion.md
|
|
18
24
|
docs/IndexDetail.md
|
|
19
25
|
docs/IndicesApi.md
|
|
20
26
|
docs/ListAuthors200Response.md
|
|
21
27
|
docs/ListDatasets200Response.md
|
|
28
|
+
docs/ListDelistedModels200Response.md
|
|
29
|
+
docs/ListHistoricalDeletions200Response.md
|
|
22
30
|
docs/ListIndices200Response.md
|
|
23
31
|
docs/ListMethods200Response.md
|
|
24
32
|
docs/ListModels200Response.md
|
|
@@ -48,16 +56,24 @@ src/models/AuthorDetail.ts
|
|
|
48
56
|
src/models/DaiPoint.ts
|
|
49
57
|
src/models/Dataset.ts
|
|
50
58
|
src/models/DatasetDetail.ts
|
|
59
|
+
src/models/DeletionSummary.ts
|
|
60
|
+
src/models/DeletionSummaryTimelineInner.ts
|
|
61
|
+
src/models/DeletionSummaryTopByDownloadsInner.ts
|
|
62
|
+
src/models/DelistedModel.ts
|
|
51
63
|
src/models/Envelope.ts
|
|
52
64
|
src/models/Event.ts
|
|
53
65
|
src/models/GetAuthor200Response.ts
|
|
54
66
|
src/models/GetDataset200Response.ts
|
|
67
|
+
src/models/GetHistoricalDeletionSummary200Response.ts
|
|
55
68
|
src/models/GetIndex200Response.ts
|
|
56
69
|
src/models/GetMethod200Response.ts
|
|
57
70
|
src/models/GetModel200Response.ts
|
|
71
|
+
src/models/HistoricalDeletion.ts
|
|
58
72
|
src/models/IndexDetail.ts
|
|
59
73
|
src/models/ListAuthors200Response.ts
|
|
60
74
|
src/models/ListDatasets200Response.ts
|
|
75
|
+
src/models/ListDelistedModels200Response.ts
|
|
76
|
+
src/models/ListHistoricalDeletions200Response.ts
|
|
61
77
|
src/models/ListIndices200Response.ts
|
|
62
78
|
src/models/ListMethods200Response.ts
|
|
63
79
|
src/models/ListModels200Response.ts
|
package/README.md
CHANGED
|
@@ -62,7 +62,10 @@ All URIs are relative to *https://abliteration.org*
|
|
|
62
62
|
*IndicesApi* | [**listIndices**](docs/IndicesApi.md#listindices) | **GET** /api/v1/indices | All four indices
|
|
63
63
|
*MethodsApi* | [**getMethod**](docs/MethodsApi.md#getmethod) | **GET** /api/v1/methods/{id} | Get one method
|
|
64
64
|
*MethodsApi* | [**listMethods**](docs/MethodsApi.md#listmethods) | **GET** /api/v1/methods | List the method taxonomy
|
|
65
|
+
*ModelsApi* | [**getHistoricalDeletionSummary**](docs/ModelsApi.md#gethistoricaldeletionsummary) | **GET** /api/v1/models/historical-deletions/summary | Historical deletions — aggregate summary
|
|
65
66
|
*ModelsApi* | [**getModel**](docs/ModelsApi.md#getmodel) | **GET** /api/v1/models/{id} | Get one model
|
|
67
|
+
*ModelsApi* | [**listDelistedModels**](docs/ModelsApi.md#listdelistedmodels) | **GET** /api/v1/models/delisted | List delisted models (change stream)
|
|
68
|
+
*ModelsApi* | [**listHistoricalDeletions**](docs/ModelsApi.md#listhistoricaldeletions) | **GET** /api/v1/models/historical-deletions/list | Historical deletions — paged list
|
|
66
69
|
*ModelsApi* | [**listModels**](docs/ModelsApi.md#listmodels) | **GET** /api/v1/models | List models
|
|
67
70
|
*TimelineApi* | [**listTimeline**](docs/TimelineApi.md#listtimeline) | **GET** /api/v1/timeline | Curated field events
|
|
68
71
|
|
|
@@ -74,16 +77,24 @@ All URIs are relative to *https://abliteration.org*
|
|
|
74
77
|
- [DaiPoint](docs/DaiPoint.md)
|
|
75
78
|
- [Dataset](docs/Dataset.md)
|
|
76
79
|
- [DatasetDetail](docs/DatasetDetail.md)
|
|
80
|
+
- [DeletionSummary](docs/DeletionSummary.md)
|
|
81
|
+
- [DeletionSummaryTimelineInner](docs/DeletionSummaryTimelineInner.md)
|
|
82
|
+
- [DeletionSummaryTopByDownloadsInner](docs/DeletionSummaryTopByDownloadsInner.md)
|
|
83
|
+
- [DelistedModel](docs/DelistedModel.md)
|
|
77
84
|
- [Envelope](docs/Envelope.md)
|
|
78
85
|
- [Event](docs/Event.md)
|
|
79
86
|
- [GetAuthor200Response](docs/GetAuthor200Response.md)
|
|
80
87
|
- [GetDataset200Response](docs/GetDataset200Response.md)
|
|
88
|
+
- [GetHistoricalDeletionSummary200Response](docs/GetHistoricalDeletionSummary200Response.md)
|
|
81
89
|
- [GetIndex200Response](docs/GetIndex200Response.md)
|
|
82
90
|
- [GetMethod200Response](docs/GetMethod200Response.md)
|
|
83
91
|
- [GetModel200Response](docs/GetModel200Response.md)
|
|
92
|
+
- [HistoricalDeletion](docs/HistoricalDeletion.md)
|
|
84
93
|
- [IndexDetail](docs/IndexDetail.md)
|
|
85
94
|
- [ListAuthors200Response](docs/ListAuthors200Response.md)
|
|
86
95
|
- [ListDatasets200Response](docs/ListDatasets200Response.md)
|
|
96
|
+
- [ListDelistedModels200Response](docs/ListDelistedModels200Response.md)
|
|
97
|
+
- [ListHistoricalDeletions200Response](docs/ListHistoricalDeletions200Response.md)
|
|
87
98
|
- [ListIndices200Response](docs/ListIndices200Response.md)
|
|
88
99
|
- [ListMethods200Response](docs/ListMethods200Response.md)
|
|
89
100
|
- [ListModels200Response](docs/ListModels200Response.md)
|
package/dist/apis/ModelsApi.d.ts
CHANGED
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
+
import { type GetHistoricalDeletionSummary200Response } from '../models/GetHistoricalDeletionSummary200Response';
|
|
13
14
|
import { type GetModel200Response } from '../models/GetModel200Response';
|
|
15
|
+
import { type ListDelistedModels200Response } from '../models/ListDelistedModels200Response';
|
|
16
|
+
import { type ListHistoricalDeletions200Response } from '../models/ListHistoricalDeletions200Response';
|
|
14
17
|
import { type ListModels200Response } from '../models/ListModels200Response';
|
|
15
18
|
export interface GetModelRequest {
|
|
16
19
|
/**
|
|
@@ -18,6 +21,46 @@ export interface GetModelRequest {
|
|
|
18
21
|
*/
|
|
19
22
|
id: string;
|
|
20
23
|
}
|
|
24
|
+
export interface ListDelistedModelsRequest {
|
|
25
|
+
/**
|
|
26
|
+
* ISO-8601 date or timestamp. Rows with last_seen_at >= since only. Use your previous poll's newest last_seen_at to build an incremental feed.
|
|
27
|
+
*/
|
|
28
|
+
since?: string;
|
|
29
|
+
/**
|
|
30
|
+
* `recent` (default, newest disappearance first) or `downloads` (biggest casualties first — best for post-mortem coverage).
|
|
31
|
+
*/
|
|
32
|
+
sort?: ListDelistedModelsSortEnum;
|
|
33
|
+
/**
|
|
34
|
+
* Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
|
|
35
|
+
*/
|
|
36
|
+
limit?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Rows to skip. Negative and non-numeric values are treated as 0.
|
|
39
|
+
*/
|
|
40
|
+
offset?: number;
|
|
41
|
+
}
|
|
42
|
+
export interface ListHistoricalDeletionsRequest {
|
|
43
|
+
/**
|
|
44
|
+
* ISO YYYY-MM. Rows with last_seen_month >= it only.
|
|
45
|
+
*/
|
|
46
|
+
sinceMonth?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Only rows whose peak downloads >= this. `casualties over N` queries.
|
|
49
|
+
*/
|
|
50
|
+
minPeakDownloads?: number;
|
|
51
|
+
/**
|
|
52
|
+
* `downloads` (default, biggest first), `recent` (newest last_seen_month first), `lifespan` (longest-lived first).
|
|
53
|
+
*/
|
|
54
|
+
sort?: ListHistoricalDeletionsSortEnum;
|
|
55
|
+
/**
|
|
56
|
+
* Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
|
|
57
|
+
*/
|
|
58
|
+
limit?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Rows to skip. Negative and non-numeric values are treated as 0.
|
|
61
|
+
*/
|
|
62
|
+
offset?: number;
|
|
63
|
+
}
|
|
21
64
|
export interface ListModelsRequest {
|
|
22
65
|
/**
|
|
23
66
|
* M-code, case-insensitive. See GET /api/v1/methods.
|
|
@@ -51,6 +94,10 @@ export interface ListModelsRequest {
|
|
|
51
94
|
* ISO-8601 date or timestamp, inclusive.
|
|
52
95
|
*/
|
|
53
96
|
createdBefore?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Tombstone filter. `live` (default): HF-visible models only. `dead`: delisted-only (same shape as this endpoint plus is_delisted=1 and last_seen_at). `all`: both, in one page. For a purpose-built change-stream feed, prefer GET /api/v1/models/delisted.
|
|
99
|
+
*/
|
|
100
|
+
delisted?: ListModelsDelistedEnum;
|
|
54
101
|
/**
|
|
55
102
|
* Bare key is the natural direction (downloads/likes = most first, dates = newest first). A leading `-` flips it. `created` and `first_seen` are aliases for the full column names.
|
|
56
103
|
*/
|
|
@@ -71,6 +118,25 @@ export interface ListModelsRequest {
|
|
|
71
118
|
* @interface ModelsApiInterface
|
|
72
119
|
*/
|
|
73
120
|
export interface ModelsApiInterface {
|
|
121
|
+
/**
|
|
122
|
+
* Creates request options for getHistoricalDeletionSummary without sending the request
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
* @memberof ModelsApiInterface
|
|
125
|
+
*/
|
|
126
|
+
getHistoricalDeletionSummaryRequestOpts(): Promise<runtime.RequestOpts>;
|
|
127
|
+
/**
|
|
128
|
+
* Cost: 20 credits, flat. Aggregates from the 24-month HF snapshot analysis: total ever seen, total deleted, deletion rate, average months alive, monthly timeline of losses, top-10 by peak downloads. One call replaces half a dozen separate queries.
|
|
129
|
+
* @summary Historical deletions — aggregate summary
|
|
130
|
+
* @param {*} [options] Override http request option.
|
|
131
|
+
* @throws {RequiredError}
|
|
132
|
+
* @memberof ModelsApiInterface
|
|
133
|
+
*/
|
|
134
|
+
getHistoricalDeletionSummaryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetHistoricalDeletionSummary200Response>>;
|
|
135
|
+
/**
|
|
136
|
+
* Cost: 20 credits, flat. Aggregates from the 24-month HF snapshot analysis: total ever seen, total deleted, deletion rate, average months alive, monthly timeline of losses, top-10 by peak downloads. One call replaces half a dozen separate queries.
|
|
137
|
+
* Historical deletions — aggregate summary
|
|
138
|
+
*/
|
|
139
|
+
getHistoricalDeletionSummary(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetHistoricalDeletionSummary200Response>;
|
|
74
140
|
/**
|
|
75
141
|
* Creates request options for getModel without sending the request
|
|
76
142
|
* @param {string} id
|
|
@@ -79,7 +145,7 @@ export interface ModelsApiInterface {
|
|
|
79
145
|
*/
|
|
80
146
|
getModelRequestOpts(requestParameters: GetModelRequest): Promise<runtime.RequestOpts>;
|
|
81
147
|
/**
|
|
82
|
-
* Cost: 10 credits. Priced above /authors/[id], /methods/[id] and /datasets/[id] because iterating over model ids is functionally a slow dump. The id is author/name and must be percent-encoded.
|
|
148
|
+
* Cost: 10 credits. Priced above /authors/[id], /methods/[id] and /datasets/[id] because iterating over model ids is functionally a slow dump. The id is author/name and must be percent-encoded. Delisted models are served here even though they are hidden from the default catalog list; the response then carries `is_delisted=1` and `days_since_gone`.
|
|
83
149
|
* @summary Get one model
|
|
84
150
|
* @param {string} id
|
|
85
151
|
* @param {*} [options] Override http request option.
|
|
@@ -88,10 +154,66 @@ export interface ModelsApiInterface {
|
|
|
88
154
|
*/
|
|
89
155
|
getModelRaw(requestParameters: GetModelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetModel200Response>>;
|
|
90
156
|
/**
|
|
91
|
-
* Cost: 10 credits. Priced above /authors/[id], /methods/[id] and /datasets/[id] because iterating over model ids is functionally a slow dump. The id is author/name and must be percent-encoded.
|
|
157
|
+
* Cost: 10 credits. Priced above /authors/[id], /methods/[id] and /datasets/[id] because iterating over model ids is functionally a slow dump. The id is author/name and must be percent-encoded. Delisted models are served here even though they are hidden from the default catalog list; the response then carries `is_delisted=1` and `days_since_gone`.
|
|
92
158
|
* Get one model
|
|
93
159
|
*/
|
|
94
160
|
getModel(requestParameters: GetModelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetModel200Response>;
|
|
161
|
+
/**
|
|
162
|
+
* Creates request options for listDelistedModels without sending the request
|
|
163
|
+
* @param {string} [since] ISO-8601 date or timestamp. Rows with last_seen_at >= since only. Use your previous poll\'s newest last_seen_at to build an incremental feed.
|
|
164
|
+
* @param {'recent' | 'downloads'} [sort] `recent` (default, newest disappearance first) or `downloads` (biggest casualties first — best for post-mortem coverage).
|
|
165
|
+
* @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
|
|
166
|
+
* @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
|
|
167
|
+
* @throws {RequiredError}
|
|
168
|
+
* @memberof ModelsApiInterface
|
|
169
|
+
*/
|
|
170
|
+
listDelistedModelsRequestOpts(requestParameters: ListDelistedModelsRequest): Promise<runtime.RequestOpts>;
|
|
171
|
+
/**
|
|
172
|
+
* Cost: 5 credits, flat. Change-stream companion to /models: every row is a tombstone — a model that HF no longer serves, preserved here at its final state. Poll with `since=<last_seen_at of your previous run>` to fetch only new casualties; callers building compliance dashboards, safety-research corpora, or \"wayback\" tools live on this endpoint. See /api#change-stream.
|
|
173
|
+
* @summary List delisted models (change stream)
|
|
174
|
+
* @param {string} [since] ISO-8601 date or timestamp. Rows with last_seen_at >= since only. Use your previous poll\'s newest last_seen_at to build an incremental feed.
|
|
175
|
+
* @param {'recent' | 'downloads'} [sort] `recent` (default, newest disappearance first) or `downloads` (biggest casualties first — best for post-mortem coverage).
|
|
176
|
+
* @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
|
|
177
|
+
* @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
* @memberof ModelsApiInterface
|
|
181
|
+
*/
|
|
182
|
+
listDelistedModelsRaw(requestParameters: ListDelistedModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDelistedModels200Response>>;
|
|
183
|
+
/**
|
|
184
|
+
* Cost: 5 credits, flat. Change-stream companion to /models: every row is a tombstone — a model that HF no longer serves, preserved here at its final state. Poll with `since=<last_seen_at of your previous run>` to fetch only new casualties; callers building compliance dashboards, safety-research corpora, or \"wayback\" tools live on this endpoint. See /api#change-stream.
|
|
185
|
+
* List delisted models (change stream)
|
|
186
|
+
*/
|
|
187
|
+
listDelistedModels(requestParameters: ListDelistedModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDelistedModels200Response>;
|
|
188
|
+
/**
|
|
189
|
+
* Creates request options for listHistoricalDeletions without sending the request
|
|
190
|
+
* @param {string} [sinceMonth] ISO YYYY-MM. Rows with last_seen_month >= it only.
|
|
191
|
+
* @param {number} [minPeakDownloads] Only rows whose peak downloads >= this. `casualties over N` queries.
|
|
192
|
+
* @param {'downloads' | 'recent' | 'lifespan'} [sort] `downloads` (default, biggest first), `recent` (newest last_seen_month first), `lifespan` (longest-lived first).
|
|
193
|
+
* @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
|
|
194
|
+
* @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
|
|
195
|
+
* @throws {RequiredError}
|
|
196
|
+
* @memberof ModelsApiInterface
|
|
197
|
+
*/
|
|
198
|
+
listHistoricalDeletionsRequestOpts(requestParameters: ListHistoricalDeletionsRequest): Promise<runtime.RequestOpts>;
|
|
199
|
+
/**
|
|
200
|
+
* Cost: 5 credits, flat. Paged/filterable window on the 24-month deletion backlog. Rows are frozen at the moment the model was last seen on the Hub — peak_downloads and total_months_alive never change after death. Sort by size (`downloads`, default), recency (`recent`, newest deaths first) or lifespan (`lifespan`, longest-lived first — surprising deaths).
|
|
201
|
+
* @summary Historical deletions — paged list
|
|
202
|
+
* @param {string} [sinceMonth] ISO YYYY-MM. Rows with last_seen_month >= it only.
|
|
203
|
+
* @param {number} [minPeakDownloads] Only rows whose peak downloads >= this. `casualties over N` queries.
|
|
204
|
+
* @param {'downloads' | 'recent' | 'lifespan'} [sort] `downloads` (default, biggest first), `recent` (newest last_seen_month first), `lifespan` (longest-lived first).
|
|
205
|
+
* @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
|
|
206
|
+
* @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
|
|
207
|
+
* @param {*} [options] Override http request option.
|
|
208
|
+
* @throws {RequiredError}
|
|
209
|
+
* @memberof ModelsApiInterface
|
|
210
|
+
*/
|
|
211
|
+
listHistoricalDeletionsRaw(requestParameters: ListHistoricalDeletionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListHistoricalDeletions200Response>>;
|
|
212
|
+
/**
|
|
213
|
+
* Cost: 5 credits, flat. Paged/filterable window on the 24-month deletion backlog. Rows are frozen at the moment the model was last seen on the Hub — peak_downloads and total_months_alive never change after death. Sort by size (`downloads`, default), recency (`recent`, newest deaths first) or lifespan (`lifespan`, longest-lived first — surprising deaths).
|
|
214
|
+
* Historical deletions — paged list
|
|
215
|
+
*/
|
|
216
|
+
listHistoricalDeletions(requestParameters: ListHistoricalDeletionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListHistoricalDeletions200Response>;
|
|
95
217
|
/**
|
|
96
218
|
* Creates request options for listModels without sending the request
|
|
97
219
|
* @param {string} [method] M-code, case-insensitive. See GET /api/v1/methods.
|
|
@@ -102,6 +224,7 @@ export interface ModelsApiInterface {
|
|
|
102
224
|
* @param {number} [downloadsLte]
|
|
103
225
|
* @param {string} [createdAfter] ISO-8601 date or timestamp, inclusive.
|
|
104
226
|
* @param {string} [createdBefore] ISO-8601 date or timestamp, inclusive.
|
|
227
|
+
* @param {'live' | 'dead' | 'all'} [delisted] Tombstone filter. `live` (default): HF-visible models only. `dead`: delisted-only (same shape as this endpoint plus is_delisted=1 and last_seen_at). `all`: both, in one page. For a purpose-built change-stream feed, prefer GET /api/v1/models/delisted.
|
|
105
228
|
* @param {'downloads' | '-downloads' | 'likes' | '-likes' | 'created' | '-created' | 'created_at' | '-created_at' | 'first_seen' | '-first_seen' | 'first_seen_at' | '-first_seen_at'} [sort] Bare key is the natural direction (downloads/likes = most first, dates = newest first). A leading `-` flips it. `created` and `first_seen` are aliases for the full column names.
|
|
106
229
|
* @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
|
|
107
230
|
* @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
|
|
@@ -110,7 +233,7 @@ export interface ModelsApiInterface {
|
|
|
110
233
|
*/
|
|
111
234
|
listModelsRequestOpts(requestParameters: ListModelsRequest): Promise<runtime.RequestOpts>;
|
|
112
235
|
/**
|
|
113
|
-
* Cost: 5-300+ credits, stepped by returned rows and multiplied by `1 + (offset/2500)²`. A filtered lookup up to 200 rows costs 5; a 1000-row page on the first page costs 300; on offset=10000, 5100. Filter cheap, dump expensive. See /api#pricing. Delisted models are excluded
|
|
236
|
+
* Cost: 5-300+ credits, stepped by returned rows and multiplied by `1 + (offset/2500)²`. A filtered lookup up to 200 rows costs 5; a 1000-row page on the first page costs 300; on offset=10000, 5100. Filter cheap, dump expensive. See /api#pricing. Delisted models are excluded by default (`delisted=live`); pass `delisted=dead|all` to include tombstoned records. A dedicated change-stream endpoint is at GET /api/v1/models/delisted.
|
|
114
237
|
* @summary List models
|
|
115
238
|
* @param {string} [method] M-code, case-insensitive. See GET /api/v1/methods.
|
|
116
239
|
* @param {string} [family] Base family, for example qwen or llama.
|
|
@@ -120,6 +243,7 @@ export interface ModelsApiInterface {
|
|
|
120
243
|
* @param {number} [downloadsLte]
|
|
121
244
|
* @param {string} [createdAfter] ISO-8601 date or timestamp, inclusive.
|
|
122
245
|
* @param {string} [createdBefore] ISO-8601 date or timestamp, inclusive.
|
|
246
|
+
* @param {'live' | 'dead' | 'all'} [delisted] Tombstone filter. `live` (default): HF-visible models only. `dead`: delisted-only (same shape as this endpoint plus is_delisted=1 and last_seen_at). `all`: both, in one page. For a purpose-built change-stream feed, prefer GET /api/v1/models/delisted.
|
|
123
247
|
* @param {'downloads' | '-downloads' | 'likes' | '-likes' | 'created' | '-created' | 'created_at' | '-created_at' | 'first_seen' | '-first_seen' | 'first_seen_at' | '-first_seen_at'} [sort] Bare key is the natural direction (downloads/likes = most first, dates = newest first). A leading `-` flips it. `created` and `first_seen` are aliases for the full column names.
|
|
124
248
|
* @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
|
|
125
249
|
* @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
|
|
@@ -129,7 +253,7 @@ export interface ModelsApiInterface {
|
|
|
129
253
|
*/
|
|
130
254
|
listModelsRaw(requestParameters: ListModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListModels200Response>>;
|
|
131
255
|
/**
|
|
132
|
-
* Cost: 5-300+ credits, stepped by returned rows and multiplied by `1 + (offset/2500)²`. A filtered lookup up to 200 rows costs 5; a 1000-row page on the first page costs 300; on offset=10000, 5100. Filter cheap, dump expensive. See /api#pricing. Delisted models are excluded
|
|
256
|
+
* Cost: 5-300+ credits, stepped by returned rows and multiplied by `1 + (offset/2500)²`. A filtered lookup up to 200 rows costs 5; a 1000-row page on the first page costs 300; on offset=10000, 5100. Filter cheap, dump expensive. See /api#pricing. Delisted models are excluded by default (`delisted=live`); pass `delisted=dead|all` to include tombstoned records. A dedicated change-stream endpoint is at GET /api/v1/models/delisted.
|
|
133
257
|
* List models
|
|
134
258
|
*/
|
|
135
259
|
listModels(requestParameters: ListModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListModels200Response>;
|
|
@@ -138,35 +262,103 @@ export interface ModelsApiInterface {
|
|
|
138
262
|
*
|
|
139
263
|
*/
|
|
140
264
|
export declare class ModelsApi extends runtime.BaseAPI implements ModelsApiInterface {
|
|
265
|
+
/**
|
|
266
|
+
* Creates request options for getHistoricalDeletionSummary without sending the request
|
|
267
|
+
*/
|
|
268
|
+
getHistoricalDeletionSummaryRequestOpts(): Promise<runtime.RequestOpts>;
|
|
269
|
+
/**
|
|
270
|
+
* Cost: 20 credits, flat. Aggregates from the 24-month HF snapshot analysis: total ever seen, total deleted, deletion rate, average months alive, monthly timeline of losses, top-10 by peak downloads. One call replaces half a dozen separate queries.
|
|
271
|
+
* Historical deletions — aggregate summary
|
|
272
|
+
*/
|
|
273
|
+
getHistoricalDeletionSummaryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetHistoricalDeletionSummary200Response>>;
|
|
274
|
+
/**
|
|
275
|
+
* Cost: 20 credits, flat. Aggregates from the 24-month HF snapshot analysis: total ever seen, total deleted, deletion rate, average months alive, monthly timeline of losses, top-10 by peak downloads. One call replaces half a dozen separate queries.
|
|
276
|
+
* Historical deletions — aggregate summary
|
|
277
|
+
*/
|
|
278
|
+
getHistoricalDeletionSummary(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetHistoricalDeletionSummary200Response>;
|
|
141
279
|
/**
|
|
142
280
|
* Creates request options for getModel without sending the request
|
|
143
281
|
*/
|
|
144
282
|
getModelRequestOpts(requestParameters: GetModelRequest): Promise<runtime.RequestOpts>;
|
|
145
283
|
/**
|
|
146
|
-
* Cost: 10 credits. Priced above /authors/[id], /methods/[id] and /datasets/[id] because iterating over model ids is functionally a slow dump. The id is author/name and must be percent-encoded.
|
|
284
|
+
* Cost: 10 credits. Priced above /authors/[id], /methods/[id] and /datasets/[id] because iterating over model ids is functionally a slow dump. The id is author/name and must be percent-encoded. Delisted models are served here even though they are hidden from the default catalog list; the response then carries `is_delisted=1` and `days_since_gone`.
|
|
147
285
|
* Get one model
|
|
148
286
|
*/
|
|
149
287
|
getModelRaw(requestParameters: GetModelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetModel200Response>>;
|
|
150
288
|
/**
|
|
151
|
-
* Cost: 10 credits. Priced above /authors/[id], /methods/[id] and /datasets/[id] because iterating over model ids is functionally a slow dump. The id is author/name and must be percent-encoded.
|
|
289
|
+
* Cost: 10 credits. Priced above /authors/[id], /methods/[id] and /datasets/[id] because iterating over model ids is functionally a slow dump. The id is author/name and must be percent-encoded. Delisted models are served here even though they are hidden from the default catalog list; the response then carries `is_delisted=1` and `days_since_gone`.
|
|
152
290
|
* Get one model
|
|
153
291
|
*/
|
|
154
292
|
getModel(requestParameters: GetModelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetModel200Response>;
|
|
293
|
+
/**
|
|
294
|
+
* Creates request options for listDelistedModels without sending the request
|
|
295
|
+
*/
|
|
296
|
+
listDelistedModelsRequestOpts(requestParameters: ListDelistedModelsRequest): Promise<runtime.RequestOpts>;
|
|
297
|
+
/**
|
|
298
|
+
* Cost: 5 credits, flat. Change-stream companion to /models: every row is a tombstone — a model that HF no longer serves, preserved here at its final state. Poll with `since=<last_seen_at of your previous run>` to fetch only new casualties; callers building compliance dashboards, safety-research corpora, or \"wayback\" tools live on this endpoint. See /api#change-stream.
|
|
299
|
+
* List delisted models (change stream)
|
|
300
|
+
*/
|
|
301
|
+
listDelistedModelsRaw(requestParameters: ListDelistedModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDelistedModels200Response>>;
|
|
302
|
+
/**
|
|
303
|
+
* Cost: 5 credits, flat. Change-stream companion to /models: every row is a tombstone — a model that HF no longer serves, preserved here at its final state. Poll with `since=<last_seen_at of your previous run>` to fetch only new casualties; callers building compliance dashboards, safety-research corpora, or \"wayback\" tools live on this endpoint. See /api#change-stream.
|
|
304
|
+
* List delisted models (change stream)
|
|
305
|
+
*/
|
|
306
|
+
listDelistedModels(requestParameters?: ListDelistedModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDelistedModels200Response>;
|
|
307
|
+
/**
|
|
308
|
+
* Creates request options for listHistoricalDeletions without sending the request
|
|
309
|
+
*/
|
|
310
|
+
listHistoricalDeletionsRequestOpts(requestParameters: ListHistoricalDeletionsRequest): Promise<runtime.RequestOpts>;
|
|
311
|
+
/**
|
|
312
|
+
* Cost: 5 credits, flat. Paged/filterable window on the 24-month deletion backlog. Rows are frozen at the moment the model was last seen on the Hub — peak_downloads and total_months_alive never change after death. Sort by size (`downloads`, default), recency (`recent`, newest deaths first) or lifespan (`lifespan`, longest-lived first — surprising deaths).
|
|
313
|
+
* Historical deletions — paged list
|
|
314
|
+
*/
|
|
315
|
+
listHistoricalDeletionsRaw(requestParameters: ListHistoricalDeletionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListHistoricalDeletions200Response>>;
|
|
316
|
+
/**
|
|
317
|
+
* Cost: 5 credits, flat. Paged/filterable window on the 24-month deletion backlog. Rows are frozen at the moment the model was last seen on the Hub — peak_downloads and total_months_alive never change after death. Sort by size (`downloads`, default), recency (`recent`, newest deaths first) or lifespan (`lifespan`, longest-lived first — surprising deaths).
|
|
318
|
+
* Historical deletions — paged list
|
|
319
|
+
*/
|
|
320
|
+
listHistoricalDeletions(requestParameters?: ListHistoricalDeletionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListHistoricalDeletions200Response>;
|
|
155
321
|
/**
|
|
156
322
|
* Creates request options for listModels without sending the request
|
|
157
323
|
*/
|
|
158
324
|
listModelsRequestOpts(requestParameters: ListModelsRequest): Promise<runtime.RequestOpts>;
|
|
159
325
|
/**
|
|
160
|
-
* Cost: 5-300+ credits, stepped by returned rows and multiplied by `1 + (offset/2500)²`. A filtered lookup up to 200 rows costs 5; a 1000-row page on the first page costs 300; on offset=10000, 5100. Filter cheap, dump expensive. See /api#pricing. Delisted models are excluded
|
|
326
|
+
* Cost: 5-300+ credits, stepped by returned rows and multiplied by `1 + (offset/2500)²`. A filtered lookup up to 200 rows costs 5; a 1000-row page on the first page costs 300; on offset=10000, 5100. Filter cheap, dump expensive. See /api#pricing. Delisted models are excluded by default (`delisted=live`); pass `delisted=dead|all` to include tombstoned records. A dedicated change-stream endpoint is at GET /api/v1/models/delisted.
|
|
161
327
|
* List models
|
|
162
328
|
*/
|
|
163
329
|
listModelsRaw(requestParameters: ListModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListModels200Response>>;
|
|
164
330
|
/**
|
|
165
|
-
* Cost: 5-300+ credits, stepped by returned rows and multiplied by `1 + (offset/2500)²`. A filtered lookup up to 200 rows costs 5; a 1000-row page on the first page costs 300; on offset=10000, 5100. Filter cheap, dump expensive. See /api#pricing. Delisted models are excluded
|
|
331
|
+
* Cost: 5-300+ credits, stepped by returned rows and multiplied by `1 + (offset/2500)²`. A filtered lookup up to 200 rows costs 5; a 1000-row page on the first page costs 300; on offset=10000, 5100. Filter cheap, dump expensive. See /api#pricing. Delisted models are excluded by default (`delisted=live`); pass `delisted=dead|all` to include tombstoned records. A dedicated change-stream endpoint is at GET /api/v1/models/delisted.
|
|
166
332
|
* List models
|
|
167
333
|
*/
|
|
168
334
|
listModels(requestParameters?: ListModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListModels200Response>;
|
|
169
335
|
}
|
|
336
|
+
/**
|
|
337
|
+
* @export
|
|
338
|
+
*/
|
|
339
|
+
export declare const ListDelistedModelsSortEnum: {
|
|
340
|
+
readonly Recent: "recent";
|
|
341
|
+
readonly Downloads: "downloads";
|
|
342
|
+
};
|
|
343
|
+
export type ListDelistedModelsSortEnum = typeof ListDelistedModelsSortEnum[keyof typeof ListDelistedModelsSortEnum];
|
|
344
|
+
/**
|
|
345
|
+
* @export
|
|
346
|
+
*/
|
|
347
|
+
export declare const ListHistoricalDeletionsSortEnum: {
|
|
348
|
+
readonly Downloads: "downloads";
|
|
349
|
+
readonly Recent: "recent";
|
|
350
|
+
readonly Lifespan: "lifespan";
|
|
351
|
+
};
|
|
352
|
+
export type ListHistoricalDeletionsSortEnum = typeof ListHistoricalDeletionsSortEnum[keyof typeof ListHistoricalDeletionsSortEnum];
|
|
353
|
+
/**
|
|
354
|
+
* @export
|
|
355
|
+
*/
|
|
356
|
+
export declare const ListModelsDelistedEnum: {
|
|
357
|
+
readonly Live: "live";
|
|
358
|
+
readonly Dead: "dead";
|
|
359
|
+
readonly All: "all";
|
|
360
|
+
};
|
|
361
|
+
export type ListModelsDelistedEnum = typeof ListModelsDelistedEnum[keyof typeof ListModelsDelistedEnum];
|
|
170
362
|
/**
|
|
171
363
|
* @export
|
|
172
364
|
*/
|