listDelistedModelsWithHttpInfo method

Future<Response> listDelistedModelsWithHttpInfo({
  1. String? since,
  2. String? sort,
  3. int? limit,
  4. int? offset,
  5. Future<void>? abortTrigger,
})

List delisted models (change stream)

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.

Note: This method returns the HTTP Response.

Parameters:

  • 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.

  • String sort: recent (default, newest disappearance first) or downloads (biggest casualties first — best for post-mortem coverage).

  • int limit: Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.

  • int offset: Rows to skip. Negative and non-numeric values are treated as 0.

Implementation

Future<Response> listDelistedModelsWithHttpInfo({ String? since, String? sort, int? limit, int? offset, Future<void>? abortTrigger, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/models/delisted';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (since != null) {
    queryParams.addAll(_queryParams('', 'since', since));
  }
  if (sort != null) {
    queryParams.addAll(_queryParams('', 'sort', sort));
  }
  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }
  if (offset != null) {
    queryParams.addAll(_queryParams('', 'offset', offset));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    abortTrigger: abortTrigger,
  );
}