@abliteration/sdk 0.1.6 → 0.1.8
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 +12 -0
- package/dist/apis/ModelsApi.d.ts +230 -0
- package/dist/apis/ModelsApi.js +231 -1
- package/dist/esm/apis/ModelsApi.d.ts +230 -0
- package/dist/esm/apis/ModelsApi.js +230 -0
- package/dist/esm/models/DownloadAnomaly.d.ts +66 -0
- package/dist/esm/models/DownloadAnomaly.js +62 -0
- package/dist/esm/models/DownloadPoint.d.ts +34 -0
- package/dist/esm/models/DownloadPoint.js +43 -0
- package/dist/esm/models/GetModelDownloadHistory200Response.d.ts +67 -0
- package/dist/esm/models/GetModelDownloadHistory200Response.js +79 -0
- package/dist/esm/models/GetModelReadmeAt200Response.d.ts +67 -0
- package/dist/esm/models/GetModelReadmeAt200Response.js +79 -0
- package/dist/esm/models/ListAnomalies200Response.d.ts +67 -0
- package/dist/esm/models/ListAnomalies200Response.js +79 -0
- package/dist/esm/models/ListModelReadmeDrifts200Response.d.ts +67 -0
- package/dist/esm/models/ListModelReadmeDrifts200Response.js +79 -0
- package/dist/esm/models/ReadmeAt.d.ts +38 -0
- package/dist/esm/models/ReadmeAt.js +45 -0
- package/dist/esm/models/ReadmeDrift.d.ts +46 -0
- package/dist/esm/models/ReadmeDrift.js +49 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/DownloadAnomaly.d.ts +66 -0
- package/dist/models/DownloadAnomaly.js +70 -0
- package/dist/models/DownloadPoint.d.ts +34 -0
- package/dist/models/DownloadPoint.js +50 -0
- package/dist/models/GetModelDownloadHistory200Response.d.ts +67 -0
- package/dist/models/GetModelDownloadHistory200Response.js +87 -0
- package/dist/models/GetModelReadmeAt200Response.d.ts +67 -0
- package/dist/models/GetModelReadmeAt200Response.js +87 -0
- package/dist/models/ListAnomalies200Response.d.ts +67 -0
- package/dist/models/ListAnomalies200Response.js +87 -0
- package/dist/models/ListModelReadmeDrifts200Response.d.ts +67 -0
- package/dist/models/ListModelReadmeDrifts200Response.js +87 -0
- package/dist/models/ReadmeAt.d.ts +38 -0
- package/dist/models/ReadmeAt.js +52 -0
- package/dist/models/ReadmeDrift.d.ts +46 -0
- package/dist/models/ReadmeDrift.js +56 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/DownloadAnomaly.md +49 -0
- package/docs/DownloadPoint.md +37 -0
- package/docs/GetModelDownloadHistory200Response.md +48 -0
- package/docs/GetModelReadmeAt200Response.md +48 -0
- package/docs/ListAnomalies200Response.md +48 -0
- package/docs/ListModelReadmeDrifts200Response.md +48 -0
- package/docs/ModelsApi.md +332 -0
- package/docs/ReadmeAt.md +39 -0
- package/docs/ReadmeDrift.md +43 -0
- package/package.json +1 -1
- package/src/apis/ModelsApi.ts +462 -0
- package/src/models/DownloadAnomaly.ts +116 -0
- package/src/models/DownloadPoint.ts +69 -0
- package/src/models/GetModelDownloadHistory200Response.ts +132 -0
- package/src/models/GetModelReadmeAt200Response.ts +132 -0
- package/src/models/ListAnomalies200Response.ts +132 -0
- package/src/models/ListModelReadmeDrifts200Response.ts +132 -0
- package/src/models/ReadmeAt.ts +75 -0
- package/src/models/ReadmeDrift.ts +87 -0
- package/src/models/index.ts +8 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -12,6 +12,8 @@ docs/DeletionSummary.md
|
|
|
12
12
|
docs/DeletionSummaryTimelineInner.md
|
|
13
13
|
docs/DeletionSummaryTopByDownloadsInner.md
|
|
14
14
|
docs/DelistedModel.md
|
|
15
|
+
docs/DownloadAnomaly.md
|
|
16
|
+
docs/DownloadPoint.md
|
|
15
17
|
docs/Envelope.md
|
|
16
18
|
docs/Event.md
|
|
17
19
|
docs/GetAuthor200Response.md
|
|
@@ -20,15 +22,19 @@ docs/GetHistoricalDeletionSummary200Response.md
|
|
|
20
22
|
docs/GetIndex200Response.md
|
|
21
23
|
docs/GetMethod200Response.md
|
|
22
24
|
docs/GetModel200Response.md
|
|
25
|
+
docs/GetModelDownloadHistory200Response.md
|
|
26
|
+
docs/GetModelReadmeAt200Response.md
|
|
23
27
|
docs/HistoricalDeletion.md
|
|
24
28
|
docs/IndexDetail.md
|
|
25
29
|
docs/IndicesApi.md
|
|
30
|
+
docs/ListAnomalies200Response.md
|
|
26
31
|
docs/ListAuthors200Response.md
|
|
27
32
|
docs/ListDatasets200Response.md
|
|
28
33
|
docs/ListDelistedModels200Response.md
|
|
29
34
|
docs/ListHistoricalDeletions200Response.md
|
|
30
35
|
docs/ListIndices200Response.md
|
|
31
36
|
docs/ListMethods200Response.md
|
|
37
|
+
docs/ListModelReadmeDrifts200Response.md
|
|
32
38
|
docs/ListModels200Response.md
|
|
33
39
|
docs/ListTimeline200Response.md
|
|
34
40
|
docs/Method.md
|
|
@@ -41,6 +47,8 @@ docs/ModelIndex.md
|
|
|
41
47
|
docs/ModelSummary.md
|
|
42
48
|
docs/ModelsApi.md
|
|
43
49
|
docs/Passport.md
|
|
50
|
+
docs/ReadmeAt.md
|
|
51
|
+
docs/ReadmeDrift.md
|
|
44
52
|
docs/TimelineApi.md
|
|
45
53
|
package.json
|
|
46
54
|
src/apis/AuthorsApi.ts
|
|
@@ -60,6 +68,8 @@ src/models/DeletionSummary.ts
|
|
|
60
68
|
src/models/DeletionSummaryTimelineInner.ts
|
|
61
69
|
src/models/DeletionSummaryTopByDownloadsInner.ts
|
|
62
70
|
src/models/DelistedModel.ts
|
|
71
|
+
src/models/DownloadAnomaly.ts
|
|
72
|
+
src/models/DownloadPoint.ts
|
|
63
73
|
src/models/Envelope.ts
|
|
64
74
|
src/models/Event.ts
|
|
65
75
|
src/models/GetAuthor200Response.ts
|
|
@@ -68,14 +78,18 @@ src/models/GetHistoricalDeletionSummary200Response.ts
|
|
|
68
78
|
src/models/GetIndex200Response.ts
|
|
69
79
|
src/models/GetMethod200Response.ts
|
|
70
80
|
src/models/GetModel200Response.ts
|
|
81
|
+
src/models/GetModelDownloadHistory200Response.ts
|
|
82
|
+
src/models/GetModelReadmeAt200Response.ts
|
|
71
83
|
src/models/HistoricalDeletion.ts
|
|
72
84
|
src/models/IndexDetail.ts
|
|
85
|
+
src/models/ListAnomalies200Response.ts
|
|
73
86
|
src/models/ListAuthors200Response.ts
|
|
74
87
|
src/models/ListDatasets200Response.ts
|
|
75
88
|
src/models/ListDelistedModels200Response.ts
|
|
76
89
|
src/models/ListHistoricalDeletions200Response.ts
|
|
77
90
|
src/models/ListIndices200Response.ts
|
|
78
91
|
src/models/ListMethods200Response.ts
|
|
92
|
+
src/models/ListModelReadmeDrifts200Response.ts
|
|
79
93
|
src/models/ListModels200Response.ts
|
|
80
94
|
src/models/ListTimeline200Response.ts
|
|
81
95
|
src/models/Method.ts
|
|
@@ -86,6 +100,8 @@ src/models/ModelError.ts
|
|
|
86
100
|
src/models/ModelIndex.ts
|
|
87
101
|
src/models/ModelSummary.ts
|
|
88
102
|
src/models/Passport.ts
|
|
103
|
+
src/models/ReadmeAt.ts
|
|
104
|
+
src/models/ReadmeDrift.ts
|
|
89
105
|
src/models/index.ts
|
|
90
106
|
src/runtime.ts
|
|
91
107
|
tsconfig.esm.json
|
package/README.md
CHANGED
|
@@ -64,8 +64,12 @@ All URIs are relative to *https://abliteration.org*
|
|
|
64
64
|
*MethodsApi* | [**listMethods**](docs/MethodsApi.md#listmethods) | **GET** /api/v1/methods | List the method taxonomy
|
|
65
65
|
*ModelsApi* | [**getHistoricalDeletionSummary**](docs/ModelsApi.md#gethistoricaldeletionsummary) | **GET** /api/v1/models/historical-deletions/summary | Historical deletions — aggregate summary
|
|
66
66
|
*ModelsApi* | [**getModel**](docs/ModelsApi.md#getmodel) | **GET** /api/v1/models/{id} | Get one model
|
|
67
|
+
*ModelsApi* | [**getModelDownloadHistory**](docs/ModelsApi.md#getmodeldownloadhistory) | **GET** /api/v1/models/{id}/download-history | Per-model download timeline
|
|
68
|
+
*ModelsApi* | [**getModelReadmeAt**](docs/ModelsApi.md#getmodelreadmeat) | **GET** /api/v1/models/{id}/readme-at/{commit} | README content at one commit (wayback)
|
|
69
|
+
*ModelsApi* | [**listAnomalies**](docs/ModelsApi.md#listanomalies) | **GET** /api/v1/market/anomalies | Anomalies in the download counter (change stream)
|
|
67
70
|
*ModelsApi* | [**listDelistedModels**](docs/ModelsApi.md#listdelistedmodels) | **GET** /api/v1/models/delisted | List delisted models (change stream)
|
|
68
71
|
*ModelsApi* | [**listHistoricalDeletions**](docs/ModelsApi.md#listhistoricaldeletions) | **GET** /api/v1/models/historical-deletions/list | Historical deletions — paged list
|
|
72
|
+
*ModelsApi* | [**listModelReadmeDrifts**](docs/ModelsApi.md#listmodelreadmedrifts) | **GET** /api/v1/models/{id}/drifts | README drift stream for one model
|
|
69
73
|
*ModelsApi* | [**listModels**](docs/ModelsApi.md#listmodels) | **GET** /api/v1/models | List models
|
|
70
74
|
*TimelineApi* | [**listTimeline**](docs/TimelineApi.md#listtimeline) | **GET** /api/v1/timeline | Curated field events
|
|
71
75
|
|
|
@@ -81,6 +85,8 @@ All URIs are relative to *https://abliteration.org*
|
|
|
81
85
|
- [DeletionSummaryTimelineInner](docs/DeletionSummaryTimelineInner.md)
|
|
82
86
|
- [DeletionSummaryTopByDownloadsInner](docs/DeletionSummaryTopByDownloadsInner.md)
|
|
83
87
|
- [DelistedModel](docs/DelistedModel.md)
|
|
88
|
+
- [DownloadAnomaly](docs/DownloadAnomaly.md)
|
|
89
|
+
- [DownloadPoint](docs/DownloadPoint.md)
|
|
84
90
|
- [Envelope](docs/Envelope.md)
|
|
85
91
|
- [Event](docs/Event.md)
|
|
86
92
|
- [GetAuthor200Response](docs/GetAuthor200Response.md)
|
|
@@ -89,14 +95,18 @@ All URIs are relative to *https://abliteration.org*
|
|
|
89
95
|
- [GetIndex200Response](docs/GetIndex200Response.md)
|
|
90
96
|
- [GetMethod200Response](docs/GetMethod200Response.md)
|
|
91
97
|
- [GetModel200Response](docs/GetModel200Response.md)
|
|
98
|
+
- [GetModelDownloadHistory200Response](docs/GetModelDownloadHistory200Response.md)
|
|
99
|
+
- [GetModelReadmeAt200Response](docs/GetModelReadmeAt200Response.md)
|
|
92
100
|
- [HistoricalDeletion](docs/HistoricalDeletion.md)
|
|
93
101
|
- [IndexDetail](docs/IndexDetail.md)
|
|
102
|
+
- [ListAnomalies200Response](docs/ListAnomalies200Response.md)
|
|
94
103
|
- [ListAuthors200Response](docs/ListAuthors200Response.md)
|
|
95
104
|
- [ListDatasets200Response](docs/ListDatasets200Response.md)
|
|
96
105
|
- [ListDelistedModels200Response](docs/ListDelistedModels200Response.md)
|
|
97
106
|
- [ListHistoricalDeletions200Response](docs/ListHistoricalDeletions200Response.md)
|
|
98
107
|
- [ListIndices200Response](docs/ListIndices200Response.md)
|
|
99
108
|
- [ListMethods200Response](docs/ListMethods200Response.md)
|
|
109
|
+
- [ListModelReadmeDrifts200Response](docs/ListModelReadmeDrifts200Response.md)
|
|
100
110
|
- [ListModels200Response](docs/ListModels200Response.md)
|
|
101
111
|
- [ListTimeline200Response](docs/ListTimeline200Response.md)
|
|
102
112
|
- [Method](docs/Method.md)
|
|
@@ -107,6 +117,8 @@ All URIs are relative to *https://abliteration.org*
|
|
|
107
117
|
- [ModelIndex](docs/ModelIndex.md)
|
|
108
118
|
- [ModelSummary](docs/ModelSummary.md)
|
|
109
119
|
- [Passport](docs/Passport.md)
|
|
120
|
+
- [ReadmeAt](docs/ReadmeAt.md)
|
|
121
|
+
- [ReadmeDrift](docs/ReadmeDrift.md)
|
|
110
122
|
|
|
111
123
|
### Authorization
|
|
112
124
|
|
package/dist/apis/ModelsApi.d.ts
CHANGED
|
@@ -12,8 +12,12 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import { type GetHistoricalDeletionSummary200Response } from '../models/GetHistoricalDeletionSummary200Response';
|
|
14
14
|
import { type GetModel200Response } from '../models/GetModel200Response';
|
|
15
|
+
import { type GetModelDownloadHistory200Response } from '../models/GetModelDownloadHistory200Response';
|
|
16
|
+
import { type GetModelReadmeAt200Response } from '../models/GetModelReadmeAt200Response';
|
|
17
|
+
import { type ListAnomalies200Response } from '../models/ListAnomalies200Response';
|
|
15
18
|
import { type ListDelistedModels200Response } from '../models/ListDelistedModels200Response';
|
|
16
19
|
import { type ListHistoricalDeletions200Response } from '../models/ListHistoricalDeletions200Response';
|
|
20
|
+
import { type ListModelReadmeDrifts200Response } from '../models/ListModelReadmeDrifts200Response';
|
|
17
21
|
import { type ListModels200Response } from '../models/ListModels200Response';
|
|
18
22
|
export interface GetModelRequest {
|
|
19
23
|
/**
|
|
@@ -21,6 +25,48 @@ export interface GetModelRequest {
|
|
|
21
25
|
*/
|
|
22
26
|
id: string;
|
|
23
27
|
}
|
|
28
|
+
export interface GetModelDownloadHistoryRequest {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
id: string;
|
|
33
|
+
/**
|
|
34
|
+
* Window in days (max 365). Pass 0 for full history.
|
|
35
|
+
*/
|
|
36
|
+
days?: number;
|
|
37
|
+
}
|
|
38
|
+
export interface GetModelReadmeAtRequest {
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* HF commit sha for the README, from /drifts.
|
|
45
|
+
*/
|
|
46
|
+
commit: string;
|
|
47
|
+
}
|
|
48
|
+
export interface ListAnomaliesRequest {
|
|
49
|
+
/**
|
|
50
|
+
* Baseline distance in days. Default 7, min 1, max 365.
|
|
51
|
+
*/
|
|
52
|
+
windowDays?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Only rows where baseline downloads >= this. Filters `0→10` noise. Default 1000.
|
|
55
|
+
*/
|
|
56
|
+
minBaseline?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Filter to one class. Omit for both.
|
|
59
|
+
*/
|
|
60
|
+
kind?: ListAnomaliesKindEnum;
|
|
61
|
+
/**
|
|
62
|
+
* Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
|
|
63
|
+
*/
|
|
64
|
+
limit?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Rows to skip. Negative and non-numeric values are treated as 0.
|
|
67
|
+
*/
|
|
68
|
+
offset?: number;
|
|
69
|
+
}
|
|
24
70
|
export interface ListDelistedModelsRequest {
|
|
25
71
|
/**
|
|
26
72
|
* 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.
|
|
@@ -61,6 +107,24 @@ export interface ListHistoricalDeletionsRequest {
|
|
|
61
107
|
*/
|
|
62
108
|
offset?: number;
|
|
63
109
|
}
|
|
110
|
+
export interface ListModelReadmeDriftsRequest {
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
id: string;
|
|
115
|
+
/**
|
|
116
|
+
* Unix epoch seconds. Rows with commit_ts >= it only.
|
|
117
|
+
*/
|
|
118
|
+
sinceTs?: number;
|
|
119
|
+
/**
|
|
120
|
+
* Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
|
|
121
|
+
*/
|
|
122
|
+
limit?: number;
|
|
123
|
+
/**
|
|
124
|
+
* Rows to skip. Negative and non-numeric values are treated as 0.
|
|
125
|
+
*/
|
|
126
|
+
offset?: number;
|
|
127
|
+
}
|
|
64
128
|
export interface ListModelsRequest {
|
|
65
129
|
/**
|
|
66
130
|
* M-code, case-insensitive. See GET /api/v1/methods.
|
|
@@ -158,6 +222,81 @@ export interface ModelsApiInterface {
|
|
|
158
222
|
* Get one model
|
|
159
223
|
*/
|
|
160
224
|
getModel(requestParameters: GetModelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetModel200Response>;
|
|
225
|
+
/**
|
|
226
|
+
* Creates request options for getModelDownloadHistory without sending the request
|
|
227
|
+
* @param {string} id
|
|
228
|
+
* @param {number} [days] Window in days (max 365). Pass 0 for full history.
|
|
229
|
+
* @throws {RequiredError}
|
|
230
|
+
* @memberof ModelsApiInterface
|
|
231
|
+
*/
|
|
232
|
+
getModelDownloadHistoryRequestOpts(requestParameters: GetModelDownloadHistoryRequest): Promise<runtime.RequestOpts>;
|
|
233
|
+
/**
|
|
234
|
+
* Cost: 5 credits, flat. Raw signal that /market/anomalies scans over. Callers with a chart or their own anomaly detector pull it once per model.
|
|
235
|
+
* @summary Per-model download timeline
|
|
236
|
+
* @param {string} id
|
|
237
|
+
* @param {number} [days] Window in days (max 365). Pass 0 for full history.
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
* @memberof ModelsApiInterface
|
|
241
|
+
*/
|
|
242
|
+
getModelDownloadHistoryRaw(requestParameters: GetModelDownloadHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetModelDownloadHistory200Response>>;
|
|
243
|
+
/**
|
|
244
|
+
* Cost: 5 credits, flat. Raw signal that /market/anomalies scans over. Callers with a chart or their own anomaly detector pull it once per model.
|
|
245
|
+
* Per-model download timeline
|
|
246
|
+
*/
|
|
247
|
+
getModelDownloadHistory(requestParameters: GetModelDownloadHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetModelDownloadHistory200Response>;
|
|
248
|
+
/**
|
|
249
|
+
* Creates request options for getModelReadmeAt without sending the request
|
|
250
|
+
* @param {string} id
|
|
251
|
+
* @param {string} commit HF commit sha for the README, from /drifts.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
* @memberof ModelsApiInterface
|
|
254
|
+
*/
|
|
255
|
+
getModelReadmeAtRequestOpts(requestParameters: GetModelReadmeAtRequest): Promise<runtime.RequestOpts>;
|
|
256
|
+
/**
|
|
257
|
+
* Cost: 10 credits, flat. The wayback-machine leg of the change-stream. Returns the exact README content for one model at one commit sha — used after spotting a suspicious drift on GET /api/v1/models/{id}/drifts.
|
|
258
|
+
* @summary README content at one commit (wayback)
|
|
259
|
+
* @param {string} id
|
|
260
|
+
* @param {string} commit HF commit sha for the README, from /drifts.
|
|
261
|
+
* @param {*} [options] Override http request option.
|
|
262
|
+
* @throws {RequiredError}
|
|
263
|
+
* @memberof ModelsApiInterface
|
|
264
|
+
*/
|
|
265
|
+
getModelReadmeAtRaw(requestParameters: GetModelReadmeAtRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetModelReadmeAt200Response>>;
|
|
266
|
+
/**
|
|
267
|
+
* Cost: 10 credits, flat. The wayback-machine leg of the change-stream. Returns the exact README content for one model at one commit sha — used after spotting a suspicious drift on GET /api/v1/models/{id}/drifts.
|
|
268
|
+
* README content at one commit (wayback)
|
|
269
|
+
*/
|
|
270
|
+
getModelReadmeAt(requestParameters: GetModelReadmeAtRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetModelReadmeAt200Response>;
|
|
271
|
+
/**
|
|
272
|
+
* Creates request options for listAnomalies without sending the request
|
|
273
|
+
* @param {number} [windowDays] Baseline distance in days. Default 7, min 1, max 365.
|
|
274
|
+
* @param {number} [minBaseline] Only rows where baseline downloads >= this. Filters `0→10` noise. Default 1000.
|
|
275
|
+
* @param {'spike' | 'drop'} [kind] Filter to one class. Omit for both.
|
|
276
|
+
* @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
|
|
277
|
+
* @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
|
|
278
|
+
* @throws {RequiredError}
|
|
279
|
+
* @memberof ModelsApiInterface
|
|
280
|
+
*/
|
|
281
|
+
listAnomaliesRequestOpts(requestParameters: ListAnomaliesRequest): Promise<runtime.RequestOpts>;
|
|
282
|
+
/**
|
|
283
|
+
* Cost: 15 credits, flat. Every row is a model whose downloads-per-window has crossed a threshold: 2× jump = `spike`, 0.5× fall = `drop`. Sorted by absolute delta so biggest movers surface first. Consumers get \"what is happening in the field right now\" without re-implementing the ETL over `download_history`.
|
|
284
|
+
* @summary Anomalies in the download counter (change stream)
|
|
285
|
+
* @param {number} [windowDays] Baseline distance in days. Default 7, min 1, max 365.
|
|
286
|
+
* @param {number} [minBaseline] Only rows where baseline downloads >= this. Filters `0→10` noise. Default 1000.
|
|
287
|
+
* @param {'spike' | 'drop'} [kind] Filter to one class. Omit for both.
|
|
288
|
+
* @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
|
|
289
|
+
* @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
* @memberof ModelsApiInterface
|
|
293
|
+
*/
|
|
294
|
+
listAnomaliesRaw(requestParameters: ListAnomaliesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAnomalies200Response>>;
|
|
295
|
+
/**
|
|
296
|
+
* Cost: 15 credits, flat. Every row is a model whose downloads-per-window has crossed a threshold: 2× jump = `spike`, 0.5× fall = `drop`. Sorted by absolute delta so biggest movers surface first. Consumers get \"what is happening in the field right now\" without re-implementing the ETL over `download_history`.
|
|
297
|
+
* Anomalies in the download counter (change stream)
|
|
298
|
+
*/
|
|
299
|
+
listAnomalies(requestParameters: ListAnomaliesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAnomalies200Response>;
|
|
161
300
|
/**
|
|
162
301
|
* Creates request options for listDelistedModels without sending the request
|
|
163
302
|
* @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.
|
|
@@ -214,6 +353,33 @@ export interface ModelsApiInterface {
|
|
|
214
353
|
* Historical deletions — paged list
|
|
215
354
|
*/
|
|
216
355
|
listHistoricalDeletions(requestParameters: ListHistoricalDeletionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListHistoricalDeletions200Response>;
|
|
356
|
+
/**
|
|
357
|
+
* Creates request options for listModelReadmeDrifts without sending the request
|
|
358
|
+
* @param {string} id
|
|
359
|
+
* @param {number} [sinceTs] Unix epoch seconds. Rows with commit_ts >= it only.
|
|
360
|
+
* @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
|
|
361
|
+
* @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
* @memberof ModelsApiInterface
|
|
364
|
+
*/
|
|
365
|
+
listModelReadmeDriftsRequestOpts(requestParameters: ListModelReadmeDriftsRequest): Promise<runtime.RequestOpts>;
|
|
366
|
+
/**
|
|
367
|
+
* Cost: 5 credits, flat. Every commit that changed the model\'s README on HF, with `size_delta` between commits so a consumer spots growth spurts and hard prunes without fetching each version. Poll with `since_ts=<max commit_ts of your previous run>` for an incremental drift feed.
|
|
368
|
+
* @summary README drift stream for one model
|
|
369
|
+
* @param {string} id
|
|
370
|
+
* @param {number} [sinceTs] Unix epoch seconds. Rows with commit_ts >= it only.
|
|
371
|
+
* @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
|
|
372
|
+
* @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
* @memberof ModelsApiInterface
|
|
376
|
+
*/
|
|
377
|
+
listModelReadmeDriftsRaw(requestParameters: ListModelReadmeDriftsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListModelReadmeDrifts200Response>>;
|
|
378
|
+
/**
|
|
379
|
+
* Cost: 5 credits, flat. Every commit that changed the model\'s README on HF, with `size_delta` between commits so a consumer spots growth spurts and hard prunes without fetching each version. Poll with `since_ts=<max commit_ts of your previous run>` for an incremental drift feed.
|
|
380
|
+
* README drift stream for one model
|
|
381
|
+
*/
|
|
382
|
+
listModelReadmeDrifts(requestParameters: ListModelReadmeDriftsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListModelReadmeDrifts200Response>;
|
|
217
383
|
/**
|
|
218
384
|
* Creates request options for listModels without sending the request
|
|
219
385
|
* @param {string} [method] M-code, case-insensitive. See GET /api/v1/methods.
|
|
@@ -290,6 +456,48 @@ export declare class ModelsApi extends runtime.BaseAPI implements ModelsApiInter
|
|
|
290
456
|
* Get one model
|
|
291
457
|
*/
|
|
292
458
|
getModel(requestParameters: GetModelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetModel200Response>;
|
|
459
|
+
/**
|
|
460
|
+
* Creates request options for getModelDownloadHistory without sending the request
|
|
461
|
+
*/
|
|
462
|
+
getModelDownloadHistoryRequestOpts(requestParameters: GetModelDownloadHistoryRequest): Promise<runtime.RequestOpts>;
|
|
463
|
+
/**
|
|
464
|
+
* Cost: 5 credits, flat. Raw signal that /market/anomalies scans over. Callers with a chart or their own anomaly detector pull it once per model.
|
|
465
|
+
* Per-model download timeline
|
|
466
|
+
*/
|
|
467
|
+
getModelDownloadHistoryRaw(requestParameters: GetModelDownloadHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetModelDownloadHistory200Response>>;
|
|
468
|
+
/**
|
|
469
|
+
* Cost: 5 credits, flat. Raw signal that /market/anomalies scans over. Callers with a chart or their own anomaly detector pull it once per model.
|
|
470
|
+
* Per-model download timeline
|
|
471
|
+
*/
|
|
472
|
+
getModelDownloadHistory(requestParameters: GetModelDownloadHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetModelDownloadHistory200Response>;
|
|
473
|
+
/**
|
|
474
|
+
* Creates request options for getModelReadmeAt without sending the request
|
|
475
|
+
*/
|
|
476
|
+
getModelReadmeAtRequestOpts(requestParameters: GetModelReadmeAtRequest): Promise<runtime.RequestOpts>;
|
|
477
|
+
/**
|
|
478
|
+
* Cost: 10 credits, flat. The wayback-machine leg of the change-stream. Returns the exact README content for one model at one commit sha — used after spotting a suspicious drift on GET /api/v1/models/{id}/drifts.
|
|
479
|
+
* README content at one commit (wayback)
|
|
480
|
+
*/
|
|
481
|
+
getModelReadmeAtRaw(requestParameters: GetModelReadmeAtRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetModelReadmeAt200Response>>;
|
|
482
|
+
/**
|
|
483
|
+
* Cost: 10 credits, flat. The wayback-machine leg of the change-stream. Returns the exact README content for one model at one commit sha — used after spotting a suspicious drift on GET /api/v1/models/{id}/drifts.
|
|
484
|
+
* README content at one commit (wayback)
|
|
485
|
+
*/
|
|
486
|
+
getModelReadmeAt(requestParameters: GetModelReadmeAtRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetModelReadmeAt200Response>;
|
|
487
|
+
/**
|
|
488
|
+
* Creates request options for listAnomalies without sending the request
|
|
489
|
+
*/
|
|
490
|
+
listAnomaliesRequestOpts(requestParameters: ListAnomaliesRequest): Promise<runtime.RequestOpts>;
|
|
491
|
+
/**
|
|
492
|
+
* Cost: 15 credits, flat. Every row is a model whose downloads-per-window has crossed a threshold: 2× jump = `spike`, 0.5× fall = `drop`. Sorted by absolute delta so biggest movers surface first. Consumers get \"what is happening in the field right now\" without re-implementing the ETL over `download_history`.
|
|
493
|
+
* Anomalies in the download counter (change stream)
|
|
494
|
+
*/
|
|
495
|
+
listAnomaliesRaw(requestParameters: ListAnomaliesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAnomalies200Response>>;
|
|
496
|
+
/**
|
|
497
|
+
* Cost: 15 credits, flat. Every row is a model whose downloads-per-window has crossed a threshold: 2× jump = `spike`, 0.5× fall = `drop`. Sorted by absolute delta so biggest movers surface first. Consumers get \"what is happening in the field right now\" without re-implementing the ETL over `download_history`.
|
|
498
|
+
* Anomalies in the download counter (change stream)
|
|
499
|
+
*/
|
|
500
|
+
listAnomalies(requestParameters?: ListAnomaliesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAnomalies200Response>;
|
|
293
501
|
/**
|
|
294
502
|
* Creates request options for listDelistedModels without sending the request
|
|
295
503
|
*/
|
|
@@ -318,6 +526,20 @@ export declare class ModelsApi extends runtime.BaseAPI implements ModelsApiInter
|
|
|
318
526
|
* Historical deletions — paged list
|
|
319
527
|
*/
|
|
320
528
|
listHistoricalDeletions(requestParameters?: ListHistoricalDeletionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListHistoricalDeletions200Response>;
|
|
529
|
+
/**
|
|
530
|
+
* Creates request options for listModelReadmeDrifts without sending the request
|
|
531
|
+
*/
|
|
532
|
+
listModelReadmeDriftsRequestOpts(requestParameters: ListModelReadmeDriftsRequest): Promise<runtime.RequestOpts>;
|
|
533
|
+
/**
|
|
534
|
+
* Cost: 5 credits, flat. Every commit that changed the model\'s README on HF, with `size_delta` between commits so a consumer spots growth spurts and hard prunes without fetching each version. Poll with `since_ts=<max commit_ts of your previous run>` for an incremental drift feed.
|
|
535
|
+
* README drift stream for one model
|
|
536
|
+
*/
|
|
537
|
+
listModelReadmeDriftsRaw(requestParameters: ListModelReadmeDriftsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListModelReadmeDrifts200Response>>;
|
|
538
|
+
/**
|
|
539
|
+
* Cost: 5 credits, flat. Every commit that changed the model\'s README on HF, with `size_delta` between commits so a consumer spots growth spurts and hard prunes without fetching each version. Poll with `since_ts=<max commit_ts of your previous run>` for an incremental drift feed.
|
|
540
|
+
* README drift stream for one model
|
|
541
|
+
*/
|
|
542
|
+
listModelReadmeDrifts(requestParameters: ListModelReadmeDriftsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListModelReadmeDrifts200Response>;
|
|
321
543
|
/**
|
|
322
544
|
* Creates request options for listModels without sending the request
|
|
323
545
|
*/
|
|
@@ -333,6 +555,14 @@ export declare class ModelsApi extends runtime.BaseAPI implements ModelsApiInter
|
|
|
333
555
|
*/
|
|
334
556
|
listModels(requestParameters?: ListModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListModels200Response>;
|
|
335
557
|
}
|
|
558
|
+
/**
|
|
559
|
+
* @export
|
|
560
|
+
*/
|
|
561
|
+
export declare const ListAnomaliesKindEnum: {
|
|
562
|
+
readonly Spike: "spike";
|
|
563
|
+
readonly Drop: "drop";
|
|
564
|
+
};
|
|
565
|
+
export type ListAnomaliesKindEnum = typeof ListAnomaliesKindEnum[keyof typeof ListAnomaliesKindEnum];
|
|
336
566
|
/**
|
|
337
567
|
* @export
|
|
338
568
|
*/
|