@abliteration/sdk 0.1.4 → 0.1.5

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 +4 -0
  2. package/README.md +3 -0
  3. package/dist/apis/ModelsApi.d.ts +91 -8
  4. package/dist/apis/ModelsApi.js +80 -5
  5. package/dist/esm/apis/ModelsApi.d.ts +91 -8
  6. package/dist/esm/apis/ModelsApi.js +79 -4
  7. package/dist/esm/models/DelistedModel.d.ts +54 -0
  8. package/dist/esm/models/DelistedModel.js +53 -0
  9. package/dist/esm/models/ListDelistedModels200Response.d.ts +67 -0
  10. package/dist/esm/models/ListDelistedModels200Response.js +79 -0
  11. package/dist/esm/models/ModelDetail.d.ts +8 -0
  12. package/dist/esm/models/ModelDetail.js +2 -2
  13. package/dist/esm/models/ModelSummary.d.ts +8 -0
  14. package/dist/esm/models/ModelSummary.js +4 -0
  15. package/dist/esm/models/index.d.ts +2 -0
  16. package/dist/esm/models/index.js +2 -0
  17. package/dist/models/DelistedModel.d.ts +54 -0
  18. package/dist/models/DelistedModel.js +60 -0
  19. package/dist/models/ListDelistedModels200Response.d.ts +67 -0
  20. package/dist/models/ListDelistedModels200Response.js +87 -0
  21. package/dist/models/ModelDetail.d.ts +8 -0
  22. package/dist/models/ModelDetail.js +2 -2
  23. package/dist/models/ModelSummary.d.ts +8 -0
  24. package/dist/models/ModelSummary.js +4 -0
  25. package/dist/models/index.d.ts +2 -0
  26. package/dist/models/index.js +2 -0
  27. package/docs/DelistedModel.md +46 -0
  28. package/docs/ListDelistedModels200Response.md +48 -0
  29. package/docs/ModelDetail.md +4 -0
  30. package/docs/ModelSummary.md +4 -0
  31. package/docs/ModelsApi.md +91 -3
  32. package/package.json +1 -1
  33. package/src/apis/ModelsApi.ts +152 -8
  34. package/src/models/DelistedModel.ts +99 -0
  35. package/src/models/ListDelistedModels200Response.ts +132 -0
  36. package/src/models/ModelDetail.ts +12 -0
  37. package/src/models/ModelSummary.ts +12 -0
  38. package/src/models/index.ts +2 -0
@@ -8,6 +8,7 @@ docs/DaiPoint.md
8
8
  docs/Dataset.md
9
9
  docs/DatasetDetail.md
10
10
  docs/DatasetsApi.md
11
+ docs/DelistedModel.md
11
12
  docs/Envelope.md
12
13
  docs/Event.md
13
14
  docs/GetAuthor200Response.md
@@ -19,6 +20,7 @@ docs/IndexDetail.md
19
20
  docs/IndicesApi.md
20
21
  docs/ListAuthors200Response.md
21
22
  docs/ListDatasets200Response.md
23
+ docs/ListDelistedModels200Response.md
22
24
  docs/ListIndices200Response.md
23
25
  docs/ListMethods200Response.md
24
26
  docs/ListModels200Response.md
@@ -48,6 +50,7 @@ src/models/AuthorDetail.ts
48
50
  src/models/DaiPoint.ts
49
51
  src/models/Dataset.ts
50
52
  src/models/DatasetDetail.ts
53
+ src/models/DelistedModel.ts
51
54
  src/models/Envelope.ts
52
55
  src/models/Event.ts
53
56
  src/models/GetAuthor200Response.ts
@@ -58,6 +61,7 @@ src/models/GetModel200Response.ts
58
61
  src/models/IndexDetail.ts
59
62
  src/models/ListAuthors200Response.ts
60
63
  src/models/ListDatasets200Response.ts
64
+ src/models/ListDelistedModels200Response.ts
61
65
  src/models/ListIndices200Response.ts
62
66
  src/models/ListMethods200Response.ts
63
67
  src/models/ListModels200Response.ts
package/README.md CHANGED
@@ -63,6 +63,7 @@ All URIs are relative to *https://abliteration.org*
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
65
  *ModelsApi* | [**getModel**](docs/ModelsApi.md#getmodel) | **GET** /api/v1/models/{id} | Get one model
66
+ *ModelsApi* | [**listDelistedModels**](docs/ModelsApi.md#listdelistedmodels) | **GET** /api/v1/models/delisted | List delisted models (change stream)
66
67
  *ModelsApi* | [**listModels**](docs/ModelsApi.md#listmodels) | **GET** /api/v1/models | List models
67
68
  *TimelineApi* | [**listTimeline**](docs/TimelineApi.md#listtimeline) | **GET** /api/v1/timeline | Curated field events
68
69
 
@@ -74,6 +75,7 @@ All URIs are relative to *https://abliteration.org*
74
75
  - [DaiPoint](docs/DaiPoint.md)
75
76
  - [Dataset](docs/Dataset.md)
76
77
  - [DatasetDetail](docs/DatasetDetail.md)
78
+ - [DelistedModel](docs/DelistedModel.md)
77
79
  - [Envelope](docs/Envelope.md)
78
80
  - [Event](docs/Event.md)
79
81
  - [GetAuthor200Response](docs/GetAuthor200Response.md)
@@ -84,6 +86,7 @@ All URIs are relative to *https://abliteration.org*
84
86
  - [IndexDetail](docs/IndexDetail.md)
85
87
  - [ListAuthors200Response](docs/ListAuthors200Response.md)
86
88
  - [ListDatasets200Response](docs/ListDatasets200Response.md)
89
+ - [ListDelistedModels200Response](docs/ListDelistedModels200Response.md)
87
90
  - [ListIndices200Response](docs/ListIndices200Response.md)
88
91
  - [ListMethods200Response](docs/ListMethods200Response.md)
89
92
  - [ListModels200Response](docs/ListModels200Response.md)
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import { type GetModel200Response } from '../models/GetModel200Response';
14
+ import { type ListDelistedModels200Response } from '../models/ListDelistedModels200Response';
14
15
  import { type ListModels200Response } from '../models/ListModels200Response';
15
16
  export interface GetModelRequest {
16
17
  /**
@@ -18,6 +19,24 @@ export interface GetModelRequest {
18
19
  */
19
20
  id: string;
20
21
  }
22
+ export interface ListDelistedModelsRequest {
23
+ /**
24
+ * 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.
25
+ */
26
+ since?: string;
27
+ /**
28
+ * `recent` (default, newest disappearance first) or `downloads` (biggest casualties first — best for post-mortem coverage).
29
+ */
30
+ sort?: ListDelistedModelsSortEnum;
31
+ /**
32
+ * Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
33
+ */
34
+ limit?: number;
35
+ /**
36
+ * Rows to skip. Negative and non-numeric values are treated as 0.
37
+ */
38
+ offset?: number;
39
+ }
21
40
  export interface ListModelsRequest {
22
41
  /**
23
42
  * M-code, case-insensitive. See GET /api/v1/methods.
@@ -51,6 +70,10 @@ export interface ListModelsRequest {
51
70
  * ISO-8601 date or timestamp, inclusive.
52
71
  */
53
72
  createdBefore?: string;
73
+ /**
74
+ * 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.
75
+ */
76
+ delisted?: ListModelsDelistedEnum;
54
77
  /**
55
78
  * 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
79
  */
@@ -79,7 +102,7 @@ export interface ModelsApiInterface {
79
102
  */
80
103
  getModelRequestOpts(requestParameters: GetModelRequest): Promise<runtime.RequestOpts>;
81
104
  /**
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.
105
+ * 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
106
  * @summary Get one model
84
107
  * @param {string} id
85
108
  * @param {*} [options] Override http request option.
@@ -88,10 +111,37 @@ export interface ModelsApiInterface {
88
111
  */
89
112
  getModelRaw(requestParameters: GetModelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetModel200Response>>;
90
113
  /**
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.
114
+ * 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
115
  * Get one model
93
116
  */
94
117
  getModel(requestParameters: GetModelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetModel200Response>;
118
+ /**
119
+ * Creates request options for listDelistedModels without sending the request
120
+ * @param {string} [since] ISO-8601 date or timestamp. Rows with last_seen_at &gt;&#x3D; since only. Use your previous poll\&#39;s newest last_seen_at to build an incremental feed.
121
+ * @param {'recent' | 'downloads'} [sort] &#x60;recent&#x60; (default, newest disappearance first) or &#x60;downloads&#x60; (biggest casualties first — best for post-mortem coverage).
122
+ * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
123
+ * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
124
+ * @throws {RequiredError}
125
+ * @memberof ModelsApiInterface
126
+ */
127
+ listDelistedModelsRequestOpts(requestParameters: ListDelistedModelsRequest): Promise<runtime.RequestOpts>;
128
+ /**
129
+ * 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.
130
+ * @summary List delisted models (change stream)
131
+ * @param {string} [since] ISO-8601 date or timestamp. Rows with last_seen_at &gt;&#x3D; since only. Use your previous poll\&#39;s newest last_seen_at to build an incremental feed.
132
+ * @param {'recent' | 'downloads'} [sort] &#x60;recent&#x60; (default, newest disappearance first) or &#x60;downloads&#x60; (biggest casualties first — best for post-mortem coverage).
133
+ * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
134
+ * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ * @memberof ModelsApiInterface
138
+ */
139
+ listDelistedModelsRaw(requestParameters: ListDelistedModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDelistedModels200Response>>;
140
+ /**
141
+ * 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.
142
+ * List delisted models (change stream)
143
+ */
144
+ listDelistedModels(requestParameters: ListDelistedModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDelistedModels200Response>;
95
145
  /**
96
146
  * Creates request options for listModels without sending the request
97
147
  * @param {string} [method] M-code, case-insensitive. See GET /api/v1/methods.
@@ -102,6 +152,7 @@ export interface ModelsApiInterface {
102
152
  * @param {number} [downloadsLte]
103
153
  * @param {string} [createdAfter] ISO-8601 date or timestamp, inclusive.
104
154
  * @param {string} [createdBefore] ISO-8601 date or timestamp, inclusive.
155
+ * @param {'live' | 'dead' | 'all'} [delisted] Tombstone filter. &#x60;live&#x60; (default): HF-visible models only. &#x60;dead&#x60;: delisted-only (same shape as this endpoint plus is_delisted&#x3D;1 and last_seen_at). &#x60;all&#x60;: both, in one page. For a purpose-built change-stream feed, prefer GET /api/v1/models/delisted.
105
156
  * @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 &#x3D; most first, dates &#x3D; newest first). A leading &#x60;-&#x60; flips it. &#x60;created&#x60; and &#x60;first_seen&#x60; are aliases for the full column names.
106
157
  * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
107
158
  * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
@@ -110,7 +161,7 @@ export interface ModelsApiInterface {
110
161
  */
111
162
  listModelsRequestOpts(requestParameters: ListModelsRequest): Promise<runtime.RequestOpts>;
112
163
  /**
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 here but remain reachable by id.
164
+ * 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
165
  * @summary List models
115
166
  * @param {string} [method] M-code, case-insensitive. See GET /api/v1/methods.
116
167
  * @param {string} [family] Base family, for example qwen or llama.
@@ -120,6 +171,7 @@ export interface ModelsApiInterface {
120
171
  * @param {number} [downloadsLte]
121
172
  * @param {string} [createdAfter] ISO-8601 date or timestamp, inclusive.
122
173
  * @param {string} [createdBefore] ISO-8601 date or timestamp, inclusive.
174
+ * @param {'live' | 'dead' | 'all'} [delisted] Tombstone filter. &#x60;live&#x60; (default): HF-visible models only. &#x60;dead&#x60;: delisted-only (same shape as this endpoint plus is_delisted&#x3D;1 and last_seen_at). &#x60;all&#x60;: both, in one page. For a purpose-built change-stream feed, prefer GET /api/v1/models/delisted.
123
175
  * @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 &#x3D; most first, dates &#x3D; newest first). A leading &#x60;-&#x60; flips it. &#x60;created&#x60; and &#x60;first_seen&#x60; are aliases for the full column names.
124
176
  * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
125
177
  * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
@@ -129,7 +181,7 @@ export interface ModelsApiInterface {
129
181
  */
130
182
  listModelsRaw(requestParameters: ListModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListModels200Response>>;
131
183
  /**
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 here but remain reachable by id.
184
+ * 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
185
  * List models
134
186
  */
135
187
  listModels(requestParameters: ListModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListModels200Response>;
@@ -143,30 +195,61 @@ export declare class ModelsApi extends runtime.BaseAPI implements ModelsApiInter
143
195
  */
144
196
  getModelRequestOpts(requestParameters: GetModelRequest): Promise<runtime.RequestOpts>;
145
197
  /**
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.
198
+ * 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
199
  * Get one model
148
200
  */
149
201
  getModelRaw(requestParameters: GetModelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetModel200Response>>;
150
202
  /**
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.
203
+ * 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
204
  * Get one model
153
205
  */
154
206
  getModel(requestParameters: GetModelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetModel200Response>;
207
+ /**
208
+ * Creates request options for listDelistedModels without sending the request
209
+ */
210
+ listDelistedModelsRequestOpts(requestParameters: ListDelistedModelsRequest): Promise<runtime.RequestOpts>;
211
+ /**
212
+ * 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.
213
+ * List delisted models (change stream)
214
+ */
215
+ listDelistedModelsRaw(requestParameters: ListDelistedModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDelistedModels200Response>>;
216
+ /**
217
+ * 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.
218
+ * List delisted models (change stream)
219
+ */
220
+ listDelistedModels(requestParameters?: ListDelistedModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDelistedModels200Response>;
155
221
  /**
156
222
  * Creates request options for listModels without sending the request
157
223
  */
158
224
  listModelsRequestOpts(requestParameters: ListModelsRequest): Promise<runtime.RequestOpts>;
159
225
  /**
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 here but remain reachable by id.
226
+ * 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
227
  * List models
162
228
  */
163
229
  listModelsRaw(requestParameters: ListModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListModels200Response>>;
164
230
  /**
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 here but remain reachable by id.
231
+ * 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
232
  * List models
167
233
  */
168
234
  listModels(requestParameters?: ListModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListModels200Response>;
169
235
  }
236
+ /**
237
+ * @export
238
+ */
239
+ export declare const ListDelistedModelsSortEnum: {
240
+ readonly Recent: "recent";
241
+ readonly Downloads: "downloads";
242
+ };
243
+ export type ListDelistedModelsSortEnum = typeof ListDelistedModelsSortEnum[keyof typeof ListDelistedModelsSortEnum];
244
+ /**
245
+ * @export
246
+ */
247
+ export declare const ListModelsDelistedEnum: {
248
+ readonly Live: "live";
249
+ readonly Dead: "dead";
250
+ readonly All: "all";
251
+ };
252
+ export type ListModelsDelistedEnum = typeof ListModelsDelistedEnum[keyof typeof ListModelsDelistedEnum];
170
253
  /**
171
254
  * @export
172
255
  */
@@ -22,9 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ListModelsSortEnum = exports.ModelsApi = void 0;
25
+ exports.ListModelsSortEnum = exports.ListModelsDelistedEnum = exports.ListDelistedModelsSortEnum = exports.ModelsApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const GetModel200Response_1 = require("../models/GetModel200Response");
28
+ const ListDelistedModels200Response_1 = require("../models/ListDelistedModels200Response");
28
29
  const ListModels200Response_1 = require("../models/ListModels200Response");
29
30
  /**
30
31
  *
@@ -58,7 +59,7 @@ class ModelsApi extends runtime.BaseAPI {
58
59
  });
59
60
  }
60
61
  /**
61
- * 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.
62
+ * 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`.
62
63
  * Get one model
63
64
  */
64
65
  getModelRaw(requestParameters, initOverrides) {
@@ -69,7 +70,7 @@ class ModelsApi extends runtime.BaseAPI {
69
70
  });
70
71
  }
71
72
  /**
72
- * 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.
73
+ * 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`.
73
74
  * Get one model
74
75
  */
75
76
  getModel(requestParameters, initOverrides) {
@@ -78,6 +79,62 @@ class ModelsApi extends runtime.BaseAPI {
78
79
  return yield response.value();
79
80
  });
80
81
  }
82
+ /**
83
+ * Creates request options for listDelistedModels without sending the request
84
+ */
85
+ listDelistedModelsRequestOpts(requestParameters) {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ const queryParameters = {};
88
+ if (requestParameters['since'] != null) {
89
+ queryParameters['since'] = requestParameters['since'];
90
+ }
91
+ if (requestParameters['sort'] != null) {
92
+ queryParameters['sort'] = requestParameters['sort'];
93
+ }
94
+ if (requestParameters['limit'] != null) {
95
+ queryParameters['limit'] = requestParameters['limit'];
96
+ }
97
+ if (requestParameters['offset'] != null) {
98
+ queryParameters['offset'] = requestParameters['offset'];
99
+ }
100
+ const headerParameters = {};
101
+ if (this.configuration && this.configuration.accessToken) {
102
+ const token = this.configuration.accessToken;
103
+ const tokenString = yield token("bearerAuth", []);
104
+ if (tokenString) {
105
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
106
+ }
107
+ }
108
+ let urlPath = `/api/v1/models/delisted`;
109
+ return {
110
+ path: urlPath,
111
+ method: 'GET',
112
+ headers: headerParameters,
113
+ query: queryParameters,
114
+ };
115
+ });
116
+ }
117
+ /**
118
+ * 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.
119
+ * List delisted models (change stream)
120
+ */
121
+ listDelistedModelsRaw(requestParameters, initOverrides) {
122
+ return __awaiter(this, void 0, void 0, function* () {
123
+ const requestOptions = yield this.listDelistedModelsRequestOpts(requestParameters);
124
+ const response = yield this.request(requestOptions, initOverrides);
125
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ListDelistedModels200Response_1.ListDelistedModels200ResponseFromJSON)(jsonValue));
126
+ });
127
+ }
128
+ /**
129
+ * 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.
130
+ * List delisted models (change stream)
131
+ */
132
+ listDelistedModels() {
133
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
134
+ const response = yield this.listDelistedModelsRaw(requestParameters, initOverrides);
135
+ return yield response.value();
136
+ });
137
+ }
81
138
  /**
82
139
  * Creates request options for listModels without sending the request
83
140
  */
@@ -108,6 +165,9 @@ class ModelsApi extends runtime.BaseAPI {
108
165
  if (requestParameters['createdBefore'] != null) {
109
166
  queryParameters['created_before'] = requestParameters['createdBefore'];
110
167
  }
168
+ if (requestParameters['delisted'] != null) {
169
+ queryParameters['delisted'] = requestParameters['delisted'];
170
+ }
111
171
  if (requestParameters['sort'] != null) {
112
172
  queryParameters['sort'] = requestParameters['sort'];
113
173
  }
@@ -135,7 +195,7 @@ class ModelsApi extends runtime.BaseAPI {
135
195
  });
136
196
  }
137
197
  /**
138
- * 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 here but remain reachable by id.
198
+ * 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.
139
199
  * List models
140
200
  */
141
201
  listModelsRaw(requestParameters, initOverrides) {
@@ -146,7 +206,7 @@ class ModelsApi extends runtime.BaseAPI {
146
206
  });
147
207
  }
148
208
  /**
149
- * 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 here but remain reachable by id.
209
+ * 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.
150
210
  * List models
151
211
  */
152
212
  listModels() {
@@ -157,6 +217,21 @@ class ModelsApi extends runtime.BaseAPI {
157
217
  }
158
218
  }
159
219
  exports.ModelsApi = ModelsApi;
220
+ /**
221
+ * @export
222
+ */
223
+ exports.ListDelistedModelsSortEnum = {
224
+ Recent: 'recent',
225
+ Downloads: 'downloads',
226
+ };
227
+ /**
228
+ * @export
229
+ */
230
+ exports.ListModelsDelistedEnum = {
231
+ Live: 'live',
232
+ Dead: 'dead',
233
+ All: 'all',
234
+ };
160
235
  /**
161
236
  * @export
162
237
  */
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import { type GetModel200Response } from '../models/GetModel200Response';
14
+ import { type ListDelistedModels200Response } from '../models/ListDelistedModels200Response';
14
15
  import { type ListModels200Response } from '../models/ListModels200Response';
15
16
  export interface GetModelRequest {
16
17
  /**
@@ -18,6 +19,24 @@ export interface GetModelRequest {
18
19
  */
19
20
  id: string;
20
21
  }
22
+ export interface ListDelistedModelsRequest {
23
+ /**
24
+ * 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.
25
+ */
26
+ since?: string;
27
+ /**
28
+ * `recent` (default, newest disappearance first) or `downloads` (biggest casualties first — best for post-mortem coverage).
29
+ */
30
+ sort?: ListDelistedModelsSortEnum;
31
+ /**
32
+ * Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
33
+ */
34
+ limit?: number;
35
+ /**
36
+ * Rows to skip. Negative and non-numeric values are treated as 0.
37
+ */
38
+ offset?: number;
39
+ }
21
40
  export interface ListModelsRequest {
22
41
  /**
23
42
  * M-code, case-insensitive. See GET /api/v1/methods.
@@ -51,6 +70,10 @@ export interface ListModelsRequest {
51
70
  * ISO-8601 date or timestamp, inclusive.
52
71
  */
53
72
  createdBefore?: string;
73
+ /**
74
+ * 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.
75
+ */
76
+ delisted?: ListModelsDelistedEnum;
54
77
  /**
55
78
  * 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
79
  */
@@ -79,7 +102,7 @@ export interface ModelsApiInterface {
79
102
  */
80
103
  getModelRequestOpts(requestParameters: GetModelRequest): Promise<runtime.RequestOpts>;
81
104
  /**
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.
105
+ * 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
106
  * @summary Get one model
84
107
  * @param {string} id
85
108
  * @param {*} [options] Override http request option.
@@ -88,10 +111,37 @@ export interface ModelsApiInterface {
88
111
  */
89
112
  getModelRaw(requestParameters: GetModelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetModel200Response>>;
90
113
  /**
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.
114
+ * 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
115
  * Get one model
93
116
  */
94
117
  getModel(requestParameters: GetModelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetModel200Response>;
118
+ /**
119
+ * Creates request options for listDelistedModels without sending the request
120
+ * @param {string} [since] ISO-8601 date or timestamp. Rows with last_seen_at &gt;&#x3D; since only. Use your previous poll\&#39;s newest last_seen_at to build an incremental feed.
121
+ * @param {'recent' | 'downloads'} [sort] &#x60;recent&#x60; (default, newest disappearance first) or &#x60;downloads&#x60; (biggest casualties first — best for post-mortem coverage).
122
+ * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
123
+ * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
124
+ * @throws {RequiredError}
125
+ * @memberof ModelsApiInterface
126
+ */
127
+ listDelistedModelsRequestOpts(requestParameters: ListDelistedModelsRequest): Promise<runtime.RequestOpts>;
128
+ /**
129
+ * 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.
130
+ * @summary List delisted models (change stream)
131
+ * @param {string} [since] ISO-8601 date or timestamp. Rows with last_seen_at &gt;&#x3D; since only. Use your previous poll\&#39;s newest last_seen_at to build an incremental feed.
132
+ * @param {'recent' | 'downloads'} [sort] &#x60;recent&#x60; (default, newest disappearance first) or &#x60;downloads&#x60; (biggest casualties first — best for post-mortem coverage).
133
+ * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
134
+ * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ * @memberof ModelsApiInterface
138
+ */
139
+ listDelistedModelsRaw(requestParameters: ListDelistedModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDelistedModels200Response>>;
140
+ /**
141
+ * 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.
142
+ * List delisted models (change stream)
143
+ */
144
+ listDelistedModels(requestParameters: ListDelistedModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDelistedModels200Response>;
95
145
  /**
96
146
  * Creates request options for listModels without sending the request
97
147
  * @param {string} [method] M-code, case-insensitive. See GET /api/v1/methods.
@@ -102,6 +152,7 @@ export interface ModelsApiInterface {
102
152
  * @param {number} [downloadsLte]
103
153
  * @param {string} [createdAfter] ISO-8601 date or timestamp, inclusive.
104
154
  * @param {string} [createdBefore] ISO-8601 date or timestamp, inclusive.
155
+ * @param {'live' | 'dead' | 'all'} [delisted] Tombstone filter. &#x60;live&#x60; (default): HF-visible models only. &#x60;dead&#x60;: delisted-only (same shape as this endpoint plus is_delisted&#x3D;1 and last_seen_at). &#x60;all&#x60;: both, in one page. For a purpose-built change-stream feed, prefer GET /api/v1/models/delisted.
105
156
  * @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 &#x3D; most first, dates &#x3D; newest first). A leading &#x60;-&#x60; flips it. &#x60;created&#x60; and &#x60;first_seen&#x60; are aliases for the full column names.
106
157
  * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
107
158
  * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
@@ -110,7 +161,7 @@ export interface ModelsApiInterface {
110
161
  */
111
162
  listModelsRequestOpts(requestParameters: ListModelsRequest): Promise<runtime.RequestOpts>;
112
163
  /**
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 here but remain reachable by id.
164
+ * 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
165
  * @summary List models
115
166
  * @param {string} [method] M-code, case-insensitive. See GET /api/v1/methods.
116
167
  * @param {string} [family] Base family, for example qwen or llama.
@@ -120,6 +171,7 @@ export interface ModelsApiInterface {
120
171
  * @param {number} [downloadsLte]
121
172
  * @param {string} [createdAfter] ISO-8601 date or timestamp, inclusive.
122
173
  * @param {string} [createdBefore] ISO-8601 date or timestamp, inclusive.
174
+ * @param {'live' | 'dead' | 'all'} [delisted] Tombstone filter. &#x60;live&#x60; (default): HF-visible models only. &#x60;dead&#x60;: delisted-only (same shape as this endpoint plus is_delisted&#x3D;1 and last_seen_at). &#x60;all&#x60;: both, in one page. For a purpose-built change-stream feed, prefer GET /api/v1/models/delisted.
123
175
  * @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 &#x3D; most first, dates &#x3D; newest first). A leading &#x60;-&#x60; flips it. &#x60;created&#x60; and &#x60;first_seen&#x60; are aliases for the full column names.
124
176
  * @param {number} [limit] Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
125
177
  * @param {number} [offset] Rows to skip. Negative and non-numeric values are treated as 0.
@@ -129,7 +181,7 @@ export interface ModelsApiInterface {
129
181
  */
130
182
  listModelsRaw(requestParameters: ListModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListModels200Response>>;
131
183
  /**
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 here but remain reachable by id.
184
+ * 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
185
  * List models
134
186
  */
135
187
  listModels(requestParameters: ListModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListModels200Response>;
@@ -143,30 +195,61 @@ export declare class ModelsApi extends runtime.BaseAPI implements ModelsApiInter
143
195
  */
144
196
  getModelRequestOpts(requestParameters: GetModelRequest): Promise<runtime.RequestOpts>;
145
197
  /**
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.
198
+ * 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
199
  * Get one model
148
200
  */
149
201
  getModelRaw(requestParameters: GetModelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetModel200Response>>;
150
202
  /**
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.
203
+ * 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
204
  * Get one model
153
205
  */
154
206
  getModel(requestParameters: GetModelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetModel200Response>;
207
+ /**
208
+ * Creates request options for listDelistedModels without sending the request
209
+ */
210
+ listDelistedModelsRequestOpts(requestParameters: ListDelistedModelsRequest): Promise<runtime.RequestOpts>;
211
+ /**
212
+ * 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.
213
+ * List delisted models (change stream)
214
+ */
215
+ listDelistedModelsRaw(requestParameters: ListDelistedModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDelistedModels200Response>>;
216
+ /**
217
+ * 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.
218
+ * List delisted models (change stream)
219
+ */
220
+ listDelistedModels(requestParameters?: ListDelistedModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDelistedModels200Response>;
155
221
  /**
156
222
  * Creates request options for listModels without sending the request
157
223
  */
158
224
  listModelsRequestOpts(requestParameters: ListModelsRequest): Promise<runtime.RequestOpts>;
159
225
  /**
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 here but remain reachable by id.
226
+ * 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
227
  * List models
162
228
  */
163
229
  listModelsRaw(requestParameters: ListModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListModels200Response>>;
164
230
  /**
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 here but remain reachable by id.
231
+ * 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
232
  * List models
167
233
  */
168
234
  listModels(requestParameters?: ListModelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListModels200Response>;
169
235
  }
236
+ /**
237
+ * @export
238
+ */
239
+ export declare const ListDelistedModelsSortEnum: {
240
+ readonly Recent: "recent";
241
+ readonly Downloads: "downloads";
242
+ };
243
+ export type ListDelistedModelsSortEnum = typeof ListDelistedModelsSortEnum[keyof typeof ListDelistedModelsSortEnum];
244
+ /**
245
+ * @export
246
+ */
247
+ export declare const ListModelsDelistedEnum: {
248
+ readonly Live: "live";
249
+ readonly Dead: "dead";
250
+ readonly All: "all";
251
+ };
252
+ export type ListModelsDelistedEnum = typeof ListModelsDelistedEnum[keyof typeof ListModelsDelistedEnum];
170
253
  /**
171
254
  * @export
172
255
  */