abliteration 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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -0
  3. data/docs/DeletionSummary.md +28 -0
  4. data/docs/DeletionSummaryTimelineInner.md +20 -0
  5. data/docs/DeletionSummaryTopByDownloadsInner.md +24 -0
  6. data/docs/GetHistoricalDeletionSummary200Response.md +32 -0
  7. data/docs/GetModelReadmeAt200Response.md +32 -0
  8. data/docs/HistoricalDeletion.md +28 -0
  9. data/docs/ListHistoricalDeletions200Response.md +32 -0
  10. data/docs/ListModelReadmeDrifts200Response.md +32 -0
  11. data/docs/ModelsApi.md +297 -0
  12. data/docs/ReadmeAt.md +22 -0
  13. data/docs/ReadmeDrift.md +26 -0
  14. data/lib/abliteration/api/models_api.rb +302 -0
  15. data/lib/abliteration/models/deletion_summary.rb +202 -0
  16. data/lib/abliteration/models/deletion_summary_timeline_inner.rb +156 -0
  17. data/lib/abliteration/models/deletion_summary_top_by_downloads_inner.rb +174 -0
  18. data/lib/abliteration/models/get_historical_deletion_summary200_response.rb +384 -0
  19. data/lib/abliteration/models/get_model_readme_at200_response.rb +384 -0
  20. data/lib/abliteration/models/historical_deletion.rb +197 -0
  21. data/lib/abliteration/models/list_historical_deletions200_response.rb +386 -0
  22. data/lib/abliteration/models/list_model_readme_drifts200_response.rb +386 -0
  23. data/lib/abliteration/models/readme_at.rb +169 -0
  24. data/lib/abliteration/models/readme_drift.rb +188 -0
  25. data/lib/abliteration/version.rb +1 -1
  26. data/lib/abliteration.rb +10 -0
  27. data/spec/models/deletion_summary_spec.rb +66 -0
  28. data/spec/models/deletion_summary_timeline_inner_spec.rb +42 -0
  29. data/spec/models/deletion_summary_top_by_downloads_inner_spec.rb +54 -0
  30. data/spec/models/get_historical_deletion_summary200_response_spec.rb +82 -0
  31. data/spec/models/get_model_readme_at200_response_spec.rb +82 -0
  32. data/spec/models/historical_deletion_spec.rb +66 -0
  33. data/spec/models/list_historical_deletions200_response_spec.rb +82 -0
  34. data/spec/models/list_model_readme_drifts200_response_spec.rb +82 -0
  35. data/spec/models/readme_at_spec.rb +48 -0
  36. data/spec/models/readme_drift_spec.rb +60 -0
  37. metadata +41 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4954feb3c086bc804c783fa545d66687cdde13f05e7601c6006d905bee95a71
4
- data.tar.gz: e3f746c6712d3b344e621ed8ec1793cec6a59d2ad52a751f7d048dbda3a42680
3
+ metadata.gz: 9f5e7a1545d6ef3e7437901aecc3151135560cbac829cd581e7cbc7d8249e05a
4
+ data.tar.gz: 62e496c73943df8111fd7bbc9e76181414d147f813e9644b317efd7690db4113
5
5
  SHA512:
6
- metadata.gz: 450a0f75eb10f2ee3386305af5eec41eebae627c4c04b9e2ba4fc0f93c8bbd8e343f936cdd9645435664bc8b9a9f98d685b9b3456cd1d135de0dd6ca8611b105
7
- data.tar.gz: da5db6f4dd8925c982278808e5c7d803a63fb510802bea3abbd0a8c9fe2bf0b142a5f67b667c4333434a96873d9102cdfe676da5689fb101ec211229799d3e27
6
+ metadata.gz: 8a8489069ee2886e5eade18511c30747070f610ea60baa91af41a0ceb5291674b746b340563c6bf1103f8a54ad83c8eb00b2640b543dd3914c26135348978588
7
+ data.tar.gz: baa7e9bccc443655d3ac515029cd896dfe65f257b1bafa2e4f846cbe47da4651164e9bd867da0b5c85864ba882a8e8b214af06a969a0eafbf3a9156f55477ae4
data/README.md CHANGED
@@ -97,8 +97,12 @@ Class | Method | HTTP request | Description
97
97
  *Abliteration::IndicesApi* | [**list_indices**](docs/IndicesApi.md#list_indices) | **GET** /api/v1/indices | All four indices
98
98
  *Abliteration::MethodsApi* | [**get_method**](docs/MethodsApi.md#get_method) | **GET** /api/v1/methods/{id} | Get one method
99
99
  *Abliteration::MethodsApi* | [**list_methods**](docs/MethodsApi.md#list_methods) | **GET** /api/v1/methods | List the method taxonomy
100
+ *Abliteration::ModelsApi* | [**get_historical_deletion_summary**](docs/ModelsApi.md#get_historical_deletion_summary) | **GET** /api/v1/models/historical-deletions/summary | Historical deletions — aggregate summary
100
101
  *Abliteration::ModelsApi* | [**get_model**](docs/ModelsApi.md#get_model) | **GET** /api/v1/models/{id} | Get one model
102
+ *Abliteration::ModelsApi* | [**get_model_readme_at**](docs/ModelsApi.md#get_model_readme_at) | **GET** /api/v1/models/{id}/readme-at/{commit} | README content at one commit (wayback)
101
103
  *Abliteration::ModelsApi* | [**list_delisted_models**](docs/ModelsApi.md#list_delisted_models) | **GET** /api/v1/models/delisted | List delisted models (change stream)
104
+ *Abliteration::ModelsApi* | [**list_historical_deletions**](docs/ModelsApi.md#list_historical_deletions) | **GET** /api/v1/models/historical-deletions/list | Historical deletions — paged list
105
+ *Abliteration::ModelsApi* | [**list_model_readme_drifts**](docs/ModelsApi.md#list_model_readme_drifts) | **GET** /api/v1/models/{id}/drifts | README drift stream for one model
102
106
  *Abliteration::ModelsApi* | [**list_models**](docs/ModelsApi.md#list_models) | **GET** /api/v1/models | List models
103
107
  *Abliteration::TimelineApi* | [**list_timeline**](docs/TimelineApi.md#list_timeline) | **GET** /api/v1/timeline | Curated field events
104
108
 
@@ -110,22 +114,30 @@ Class | Method | HTTP request | Description
110
114
  - [Abliteration::DaiPoint](docs/DaiPoint.md)
111
115
  - [Abliteration::Dataset](docs/Dataset.md)
112
116
  - [Abliteration::DatasetDetail](docs/DatasetDetail.md)
117
+ - [Abliteration::DeletionSummary](docs/DeletionSummary.md)
118
+ - [Abliteration::DeletionSummaryTimelineInner](docs/DeletionSummaryTimelineInner.md)
119
+ - [Abliteration::DeletionSummaryTopByDownloadsInner](docs/DeletionSummaryTopByDownloadsInner.md)
113
120
  - [Abliteration::DelistedModel](docs/DelistedModel.md)
114
121
  - [Abliteration::Envelope](docs/Envelope.md)
115
122
  - [Abliteration::Error](docs/Error.md)
116
123
  - [Abliteration::Event](docs/Event.md)
117
124
  - [Abliteration::GetAuthor200Response](docs/GetAuthor200Response.md)
118
125
  - [Abliteration::GetDataset200Response](docs/GetDataset200Response.md)
126
+ - [Abliteration::GetHistoricalDeletionSummary200Response](docs/GetHistoricalDeletionSummary200Response.md)
119
127
  - [Abliteration::GetIndex200Response](docs/GetIndex200Response.md)
120
128
  - [Abliteration::GetMethod200Response](docs/GetMethod200Response.md)
121
129
  - [Abliteration::GetModel200Response](docs/GetModel200Response.md)
130
+ - [Abliteration::GetModelReadmeAt200Response](docs/GetModelReadmeAt200Response.md)
131
+ - [Abliteration::HistoricalDeletion](docs/HistoricalDeletion.md)
122
132
  - [Abliteration::Index](docs/Index.md)
123
133
  - [Abliteration::IndexDetail](docs/IndexDetail.md)
124
134
  - [Abliteration::ListAuthors200Response](docs/ListAuthors200Response.md)
125
135
  - [Abliteration::ListDatasets200Response](docs/ListDatasets200Response.md)
126
136
  - [Abliteration::ListDelistedModels200Response](docs/ListDelistedModels200Response.md)
137
+ - [Abliteration::ListHistoricalDeletions200Response](docs/ListHistoricalDeletions200Response.md)
127
138
  - [Abliteration::ListIndices200Response](docs/ListIndices200Response.md)
128
139
  - [Abliteration::ListMethods200Response](docs/ListMethods200Response.md)
140
+ - [Abliteration::ListModelReadmeDrifts200Response](docs/ListModelReadmeDrifts200Response.md)
129
141
  - [Abliteration::ListModels200Response](docs/ListModels200Response.md)
130
142
  - [Abliteration::ListTimeline200Response](docs/ListTimeline200Response.md)
131
143
  - [Abliteration::Method](docs/Method.md)
@@ -134,6 +146,8 @@ Class | Method | HTTP request | Description
134
146
  - [Abliteration::ModelDetail](docs/ModelDetail.md)
135
147
  - [Abliteration::ModelSummary](docs/ModelSummary.md)
136
148
  - [Abliteration::Passport](docs/Passport.md)
149
+ - [Abliteration::ReadmeAt](docs/ReadmeAt.md)
150
+ - [Abliteration::ReadmeDrift](docs/ReadmeDrift.md)
137
151
 
138
152
 
139
153
  ## Documentation for Authorization
@@ -0,0 +1,28 @@
1
+ # Abliteration::DeletionSummary
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **total_ever_seen** | **Integer** | Live catalog size plus historical deletions. | [optional] |
8
+ | **total_deleted** | **Integer** | | [optional] |
9
+ | **deletion_rate_pct** | **Float** | Percentage of ever-seen models that are now gone. | [optional] |
10
+ | **avg_months_alive** | **Float** | Average lifespan of deleted models, in months. | [optional] |
11
+ | **timeline** | [**Array<DeletionSummaryTimelineInner>**](DeletionSummaryTimelineInner.md) | Deletions grouped by last_seen_month, ascending. | [optional] |
12
+ | **top_by_downloads** | [**Array<DeletionSummaryTopByDownloadsInner>**](DeletionSummaryTopByDownloadsInner.md) | Top-10 biggest casualties by peak downloads. | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'abliteration'
18
+
19
+ instance = Abliteration::DeletionSummary.new(
20
+ total_ever_seen: null,
21
+ total_deleted: null,
22
+ deletion_rate_pct: null,
23
+ avg_months_alive: null,
24
+ timeline: null,
25
+ top_by_downloads: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,20 @@
1
+ # Abliteration::DeletionSummaryTimelineInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **month** | **String** | | [optional] |
8
+ | **count** | **Integer** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'abliteration'
14
+
15
+ instance = Abliteration::DeletionSummaryTimelineInner.new(
16
+ month: null,
17
+ count: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,24 @@
1
+ # Abliteration::DeletionSummaryTopByDownloadsInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **peak_downloads** | **Integer** | | [optional] |
9
+ | **last_seen_month** | **String** | | [optional] |
10
+ | **months_alive** | **Integer** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'abliteration'
16
+
17
+ instance = Abliteration::DeletionSummaryTopByDownloadsInner.new(
18
+ id: null,
19
+ peak_downloads: null,
20
+ last_seen_month: null,
21
+ months_alive: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,32 @@
1
+ # Abliteration::GetHistoricalDeletionSummary200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**DeletionSummary**](DeletionSummary.md) | | |
8
+ | **cost** | **Integer** | Credits this call costs. | |
9
+ | **credits_remaining** | **Integer** | Wallet balance after the call. Unchanged while metering is preview. | |
10
+ | **rate_limit_limit** | **Integer** | Ceiling for the current window. Also returned as X-RateLimit-Limit. | |
11
+ | **rate_limit_remaining** | **Integer** | Calls left in the current window for this key. Also returned as X-RateLimit-Remaining. | |
12
+ | **rate_limit_reset** | **Integer** | Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset. | |
13
+ | **metering** | **String** | Whether cost was actually deducted. | |
14
+ | **request_id** | **String** | Also returned in the x-request-id header. | |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'abliteration'
20
+
21
+ instance = Abliteration::GetHistoricalDeletionSummary200Response.new(
22
+ data: null,
23
+ cost: null,
24
+ credits_remaining: null,
25
+ rate_limit_limit: null,
26
+ rate_limit_remaining: null,
27
+ rate_limit_reset: null,
28
+ metering: null,
29
+ request_id: null
30
+ )
31
+ ```
32
+
@@ -0,0 +1,32 @@
1
+ # Abliteration::GetModelReadmeAt200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**ReadmeAt**](ReadmeAt.md) | | |
8
+ | **cost** | **Integer** | Credits this call costs. | |
9
+ | **credits_remaining** | **Integer** | Wallet balance after the call. Unchanged while metering is preview. | |
10
+ | **rate_limit_limit** | **Integer** | Ceiling for the current window. Also returned as X-RateLimit-Limit. | |
11
+ | **rate_limit_remaining** | **Integer** | Calls left in the current window for this key. Also returned as X-RateLimit-Remaining. | |
12
+ | **rate_limit_reset** | **Integer** | Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset. | |
13
+ | **metering** | **String** | Whether cost was actually deducted. | |
14
+ | **request_id** | **String** | Also returned in the x-request-id header. | |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'abliteration'
20
+
21
+ instance = Abliteration::GetModelReadmeAt200Response.new(
22
+ data: null,
23
+ cost: null,
24
+ credits_remaining: null,
25
+ rate_limit_limit: null,
26
+ rate_limit_remaining: null,
27
+ rate_limit_reset: null,
28
+ metering: null,
29
+ request_id: null
30
+ )
31
+ ```
32
+
@@ -0,0 +1,28 @@
1
+ # Abliteration::HistoricalDeletion
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **first_seen_month** | **String** | ISO YYYY-MM of the earliest snapshot the model appears in. | [optional] |
9
+ | **last_seen_month** | **String** | ISO YYYY-MM of the final snapshot before deletion. | [optional] |
10
+ | **total_months_alive** | **Integer** | Whole months between first and last observation. | [optional] |
11
+ | **peak_downloads** | **Integer** | Highest downloads count observed during the model's lifetime. | [optional] |
12
+ | **created_at** | **String** | ISO-8601 timestamp the model was originally created on HF (from the frozen snapshot). | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'abliteration'
18
+
19
+ instance = Abliteration::HistoricalDeletion.new(
20
+ id: null,
21
+ first_seen_month: null,
22
+ last_seen_month: null,
23
+ total_months_alive: null,
24
+ peak_downloads: null,
25
+ created_at: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,32 @@
1
+ # Abliteration::ListHistoricalDeletions200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<HistoricalDeletion>**](HistoricalDeletion.md) | | |
8
+ | **cost** | **Integer** | Credits this call costs. | |
9
+ | **credits_remaining** | **Integer** | Wallet balance after the call. Unchanged while metering is preview. | |
10
+ | **rate_limit_limit** | **Integer** | Ceiling for the current window. Also returned as X-RateLimit-Limit. | |
11
+ | **rate_limit_remaining** | **Integer** | Calls left in the current window for this key. Also returned as X-RateLimit-Remaining. | |
12
+ | **rate_limit_reset** | **Integer** | Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset. | |
13
+ | **metering** | **String** | Whether cost was actually deducted. | |
14
+ | **request_id** | **String** | Also returned in the x-request-id header. | |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'abliteration'
20
+
21
+ instance = Abliteration::ListHistoricalDeletions200Response.new(
22
+ data: null,
23
+ cost: null,
24
+ credits_remaining: null,
25
+ rate_limit_limit: null,
26
+ rate_limit_remaining: null,
27
+ rate_limit_reset: null,
28
+ metering: null,
29
+ request_id: null
30
+ )
31
+ ```
32
+
@@ -0,0 +1,32 @@
1
+ # Abliteration::ListModelReadmeDrifts200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<ReadmeDrift>**](ReadmeDrift.md) | | |
8
+ | **cost** | **Integer** | Credits this call costs. | |
9
+ | **credits_remaining** | **Integer** | Wallet balance after the call. Unchanged while metering is preview. | |
10
+ | **rate_limit_limit** | **Integer** | Ceiling for the current window. Also returned as X-RateLimit-Limit. | |
11
+ | **rate_limit_remaining** | **Integer** | Calls left in the current window for this key. Also returned as X-RateLimit-Remaining. | |
12
+ | **rate_limit_reset** | **Integer** | Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset. | |
13
+ | **metering** | **String** | Whether cost was actually deducted. | |
14
+ | **request_id** | **String** | Also returned in the x-request-id header. | |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'abliteration'
20
+
21
+ instance = Abliteration::ListModelReadmeDrifts200Response.new(
22
+ data: null,
23
+ cost: null,
24
+ credits_remaining: null,
25
+ rate_limit_limit: null,
26
+ rate_limit_remaining: null,
27
+ rate_limit_reset: null,
28
+ metering: null,
29
+ request_id: null
30
+ )
31
+ ```
32
+
data/docs/ModelsApi.md CHANGED
@@ -4,11 +4,81 @@ All URIs are relative to *https://abliteration.org*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
+ | [**get_historical_deletion_summary**](ModelsApi.md#get_historical_deletion_summary) | **GET** /api/v1/models/historical-deletions/summary | Historical deletions — aggregate summary |
7
8
  | [**get_model**](ModelsApi.md#get_model) | **GET** /api/v1/models/{id} | Get one model |
9
+ | [**get_model_readme_at**](ModelsApi.md#get_model_readme_at) | **GET** /api/v1/models/{id}/readme-at/{commit} | README content at one commit (wayback) |
8
10
  | [**list_delisted_models**](ModelsApi.md#list_delisted_models) | **GET** /api/v1/models/delisted | List delisted models (change stream) |
11
+ | [**list_historical_deletions**](ModelsApi.md#list_historical_deletions) | **GET** /api/v1/models/historical-deletions/list | Historical deletions — paged list |
12
+ | [**list_model_readme_drifts**](ModelsApi.md#list_model_readme_drifts) | **GET** /api/v1/models/{id}/drifts | README drift stream for one model |
9
13
  | [**list_models**](ModelsApi.md#list_models) | **GET** /api/v1/models | List models |
10
14
 
11
15
 
16
+ ## get_historical_deletion_summary
17
+
18
+ > <GetHistoricalDeletionSummary200Response> get_historical_deletion_summary
19
+
20
+ Historical deletions — aggregate summary
21
+
22
+ 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.
23
+
24
+ ### Examples
25
+
26
+ ```ruby
27
+ require 'time'
28
+ require 'abliteration'
29
+ # setup authorization
30
+ Abliteration.configure do |config|
31
+ # Configure Bearer authorization: bearerAuth
32
+ config.access_token = 'YOUR_BEARER_TOKEN'
33
+ end
34
+
35
+ api_instance = Abliteration::ModelsApi.new
36
+
37
+ begin
38
+ # Historical deletions — aggregate summary
39
+ result = api_instance.get_historical_deletion_summary
40
+ p result
41
+ rescue Abliteration::ApiError => e
42
+ puts "Error when calling ModelsApi->get_historical_deletion_summary: #{e}"
43
+ end
44
+ ```
45
+
46
+ #### Using the get_historical_deletion_summary_with_http_info variant
47
+
48
+ This returns an Array which contains the response data, status code and headers.
49
+
50
+ > <Array(<GetHistoricalDeletionSummary200Response>, Integer, Hash)> get_historical_deletion_summary_with_http_info
51
+
52
+ ```ruby
53
+ begin
54
+ # Historical deletions — aggregate summary
55
+ data, status_code, headers = api_instance.get_historical_deletion_summary_with_http_info
56
+ p status_code # => 2xx
57
+ p headers # => { ... }
58
+ p data # => <GetHistoricalDeletionSummary200Response>
59
+ rescue Abliteration::ApiError => e
60
+ puts "Error when calling ModelsApi->get_historical_deletion_summary_with_http_info: #{e}"
61
+ end
62
+ ```
63
+
64
+ ### Parameters
65
+
66
+ This endpoint does not need any parameter.
67
+
68
+ ### Return type
69
+
70
+ [**GetHistoricalDeletionSummary200Response**](GetHistoricalDeletionSummary200Response.md)
71
+
72
+ ### Authorization
73
+
74
+ [bearerAuth](../README.md#bearerAuth)
75
+
76
+ ### HTTP request headers
77
+
78
+ - **Content-Type**: Not defined
79
+ - **Accept**: application/json
80
+
81
+
12
82
  ## get_model
13
83
 
14
84
  > <GetModel200Response> get_model(id)
@@ -78,6 +148,77 @@ end
78
148
  - **Accept**: application/json
79
149
 
80
150
 
151
+ ## get_model_readme_at
152
+
153
+ > <GetModelReadmeAt200Response> get_model_readme_at(id, commit)
154
+
155
+ README content at one commit (wayback)
156
+
157
+ 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.
158
+
159
+ ### Examples
160
+
161
+ ```ruby
162
+ require 'time'
163
+ require 'abliteration'
164
+ # setup authorization
165
+ Abliteration.configure do |config|
166
+ # Configure Bearer authorization: bearerAuth
167
+ config.access_token = 'YOUR_BEARER_TOKEN'
168
+ end
169
+
170
+ api_instance = Abliteration::ModelsApi.new
171
+ id = 'id_example' # String |
172
+ commit = 'commit_example' # String | HF commit sha for the README, from /drifts.
173
+
174
+ begin
175
+ # README content at one commit (wayback)
176
+ result = api_instance.get_model_readme_at(id, commit)
177
+ p result
178
+ rescue Abliteration::ApiError => e
179
+ puts "Error when calling ModelsApi->get_model_readme_at: #{e}"
180
+ end
181
+ ```
182
+
183
+ #### Using the get_model_readme_at_with_http_info variant
184
+
185
+ This returns an Array which contains the response data, status code and headers.
186
+
187
+ > <Array(<GetModelReadmeAt200Response>, Integer, Hash)> get_model_readme_at_with_http_info(id, commit)
188
+
189
+ ```ruby
190
+ begin
191
+ # README content at one commit (wayback)
192
+ data, status_code, headers = api_instance.get_model_readme_at_with_http_info(id, commit)
193
+ p status_code # => 2xx
194
+ p headers # => { ... }
195
+ p data # => <GetModelReadmeAt200Response>
196
+ rescue Abliteration::ApiError => e
197
+ puts "Error when calling ModelsApi->get_model_readme_at_with_http_info: #{e}"
198
+ end
199
+ ```
200
+
201
+ ### Parameters
202
+
203
+ | Name | Type | Description | Notes |
204
+ | ---- | ---- | ----------- | ----- |
205
+ | **id** | **String** | | |
206
+ | **commit** | **String** | HF commit sha for the README, from /drifts. | |
207
+
208
+ ### Return type
209
+
210
+ [**GetModelReadmeAt200Response**](GetModelReadmeAt200Response.md)
211
+
212
+ ### Authorization
213
+
214
+ [bearerAuth](../README.md#bearerAuth)
215
+
216
+ ### HTTP request headers
217
+
218
+ - **Content-Type**: Not defined
219
+ - **Accept**: application/json
220
+
221
+
81
222
  ## list_delisted_models
82
223
 
83
224
  > <ListDelistedModels200Response> list_delisted_models(opts)
@@ -155,6 +296,162 @@ end
155
296
  - **Accept**: application/json
156
297
 
157
298
 
299
+ ## list_historical_deletions
300
+
301
+ > <ListHistoricalDeletions200Response> list_historical_deletions(opts)
302
+
303
+ Historical deletions — paged list
304
+
305
+ 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).
306
+
307
+ ### Examples
308
+
309
+ ```ruby
310
+ require 'time'
311
+ require 'abliteration'
312
+ # setup authorization
313
+ Abliteration.configure do |config|
314
+ # Configure Bearer authorization: bearerAuth
315
+ config.access_token = 'YOUR_BEARER_TOKEN'
316
+ end
317
+
318
+ api_instance = Abliteration::ModelsApi.new
319
+ opts = {
320
+ since_month: 'since_month_example', # String | ISO YYYY-MM. Rows with last_seen_month >= it only.
321
+ min_peak_downloads: 56, # Integer | Only rows whose peak downloads >= this. `casualties over N` queries.
322
+ sort: 'downloads', # String | `downloads` (default, biggest first), `recent` (newest last_seen_month first), `lifespan` (longest-lived first).
323
+ limit: 56, # Integer | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
324
+ offset: 56 # Integer | Rows to skip. Negative and non-numeric values are treated as 0.
325
+ }
326
+
327
+ begin
328
+ # Historical deletions — paged list
329
+ result = api_instance.list_historical_deletions(opts)
330
+ p result
331
+ rescue Abliteration::ApiError => e
332
+ puts "Error when calling ModelsApi->list_historical_deletions: #{e}"
333
+ end
334
+ ```
335
+
336
+ #### Using the list_historical_deletions_with_http_info variant
337
+
338
+ This returns an Array which contains the response data, status code and headers.
339
+
340
+ > <Array(<ListHistoricalDeletions200Response>, Integer, Hash)> list_historical_deletions_with_http_info(opts)
341
+
342
+ ```ruby
343
+ begin
344
+ # Historical deletions — paged list
345
+ data, status_code, headers = api_instance.list_historical_deletions_with_http_info(opts)
346
+ p status_code # => 2xx
347
+ p headers # => { ... }
348
+ p data # => <ListHistoricalDeletions200Response>
349
+ rescue Abliteration::ApiError => e
350
+ puts "Error when calling ModelsApi->list_historical_deletions_with_http_info: #{e}"
351
+ end
352
+ ```
353
+
354
+ ### Parameters
355
+
356
+ | Name | Type | Description | Notes |
357
+ | ---- | ---- | ----------- | ----- |
358
+ | **since_month** | **String** | ISO YYYY-MM. Rows with last_seen_month &gt;&#x3D; it only. | [optional] |
359
+ | **min_peak_downloads** | **Integer** | Only rows whose peak downloads &gt;&#x3D; this. &#x60;casualties over N&#x60; queries. | [optional] |
360
+ | **sort** | **String** | &#x60;downloads&#x60; (default, biggest first), &#x60;recent&#x60; (newest last_seen_month first), &#x60;lifespan&#x60; (longest-lived first). | [optional][default to &#39;downloads&#39;] |
361
+ | **limit** | **Integer** | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected. | [optional][default to 50] |
362
+ | **offset** | **Integer** | Rows to skip. Negative and non-numeric values are treated as 0. | [optional][default to 0] |
363
+
364
+ ### Return type
365
+
366
+ [**ListHistoricalDeletions200Response**](ListHistoricalDeletions200Response.md)
367
+
368
+ ### Authorization
369
+
370
+ [bearerAuth](../README.md#bearerAuth)
371
+
372
+ ### HTTP request headers
373
+
374
+ - **Content-Type**: Not defined
375
+ - **Accept**: application/json
376
+
377
+
378
+ ## list_model_readme_drifts
379
+
380
+ > <ListModelReadmeDrifts200Response> list_model_readme_drifts(id, opts)
381
+
382
+ README drift stream for one model
383
+
384
+ 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.
385
+
386
+ ### Examples
387
+
388
+ ```ruby
389
+ require 'time'
390
+ require 'abliteration'
391
+ # setup authorization
392
+ Abliteration.configure do |config|
393
+ # Configure Bearer authorization: bearerAuth
394
+ config.access_token = 'YOUR_BEARER_TOKEN'
395
+ end
396
+
397
+ api_instance = Abliteration::ModelsApi.new
398
+ id = 'mlabonne/Qwen3-30B-A3B-abliterated' # String |
399
+ opts = {
400
+ since_ts: 789, # Integer | Unix epoch seconds. Rows with commit_ts >= it only.
401
+ limit: 56, # Integer | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
402
+ offset: 56 # Integer | Rows to skip. Negative and non-numeric values are treated as 0.
403
+ }
404
+
405
+ begin
406
+ # README drift stream for one model
407
+ result = api_instance.list_model_readme_drifts(id, opts)
408
+ p result
409
+ rescue Abliteration::ApiError => e
410
+ puts "Error when calling ModelsApi->list_model_readme_drifts: #{e}"
411
+ end
412
+ ```
413
+
414
+ #### Using the list_model_readme_drifts_with_http_info variant
415
+
416
+ This returns an Array which contains the response data, status code and headers.
417
+
418
+ > <Array(<ListModelReadmeDrifts200Response>, Integer, Hash)> list_model_readme_drifts_with_http_info(id, opts)
419
+
420
+ ```ruby
421
+ begin
422
+ # README drift stream for one model
423
+ data, status_code, headers = api_instance.list_model_readme_drifts_with_http_info(id, opts)
424
+ p status_code # => 2xx
425
+ p headers # => { ... }
426
+ p data # => <ListModelReadmeDrifts200Response>
427
+ rescue Abliteration::ApiError => e
428
+ puts "Error when calling ModelsApi->list_model_readme_drifts_with_http_info: #{e}"
429
+ end
430
+ ```
431
+
432
+ ### Parameters
433
+
434
+ | Name | Type | Description | Notes |
435
+ | ---- | ---- | ----------- | ----- |
436
+ | **id** | **String** | | |
437
+ | **since_ts** | **Integer** | Unix epoch seconds. Rows with commit_ts &gt;&#x3D; it only. | [optional] |
438
+ | **limit** | **Integer** | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected. | [optional][default to 50] |
439
+ | **offset** | **Integer** | Rows to skip. Negative and non-numeric values are treated as 0. | [optional][default to 0] |
440
+
441
+ ### Return type
442
+
443
+ [**ListModelReadmeDrifts200Response**](ListModelReadmeDrifts200Response.md)
444
+
445
+ ### Authorization
446
+
447
+ [bearerAuth](../README.md#bearerAuth)
448
+
449
+ ### HTTP request headers
450
+
451
+ - **Content-Type**: Not defined
452
+ - **Accept**: application/json
453
+
454
+
158
455
  ## list_models
159
456
 
160
457
  > <ListModels200Response> list_models(opts)
data/docs/ReadmeAt.md ADDED
@@ -0,0 +1,22 @@
1
+ # Abliteration::ReadmeAt
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Model id (author/name). | [optional] |
8
+ | **commit** | **String** | Commit sha (echoes the path param). | [optional] |
9
+ | **content** | **String** | Full README markdown at that commit. Up to ~100KB. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'abliteration'
15
+
16
+ instance = Abliteration::ReadmeAt.new(
17
+ id: null,
18
+ commit: null,
19
+ content: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,26 @@
1
+ # Abliteration::ReadmeDrift
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **commit_sha** | **String** | | [optional] |
8
+ | **commit_ts** | **Integer** | Unix epoch seconds. | [optional] |
9
+ | **commit_message** | **String** | | [optional] |
10
+ | **content_size** | **Integer** | README byte size at this commit. | [optional] |
11
+ | **size_delta** | **Integer** | Bytes added (positive) or removed (negative) since the previous commit. First commit gets 0. | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'abliteration'
17
+
18
+ instance = Abliteration::ReadmeDrift.new(
19
+ commit_sha: null,
20
+ commit_ts: null,
21
+ commit_message: null,
22
+ content_size: null,
23
+ size_delta: null
24
+ )
25
+ ```
26
+