Skip to content

Commit 8843300

Browse files
feat(api): add list-indexes endpoint, remove sandboxes (#50)
* feat(api): add list-indexes endpoint * docs: add 0.1.3 changelog entry --------- Co-authored-by: zfarrell <1420220+zfarrell@users.noreply.github.com> Co-authored-by: Zac Farrell <zac@hotdata.dev>
1 parent c8ad74a commit 8843300

29 files changed

Lines changed: 308 additions & 833 deletions

.openapi-generator/FILES

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ docs/CreateDatasetResponse.md
3535
docs/CreateEmbeddingProviderRequest.md
3636
docs/CreateEmbeddingProviderResponse.md
3737
docs/CreateIndexRequest.md
38-
docs/CreateSandboxRequest.md
3938
docs/CreateSavedQueryRequest.md
4039
docs/CreateSecretRequest.md
4140
docs/CreateSecretResponse.md
@@ -58,7 +57,6 @@ docs/DatasetSourceOneOf4.md
5857
docs/DatasetSummary.md
5958
docs/DatasetVersionSummary.md
6059
docs/DatasetsApi.md
61-
docs/DeleteSandboxResponse.md
6260
docs/DiscoveryStatus.md
6361
docs/EmbeddingProviderResponse.md
6462
docs/EmbeddingProvidersApi.md
@@ -69,6 +67,7 @@ docs/GetDatabaseContextResponse.md
6967
docs/GetDatasetResponse.md
7068
docs/GetResultResponse.md
7169
docs/GetSecretResponse.md
70+
docs/IndexEntryResponse.md
7271
docs/IndexInfoResponse.md
7372
docs/IndexStatus.md
7473
docs/IndexesApi.md
@@ -88,11 +87,11 @@ docs/ListDatabasesResponse.md
8887
docs/ListDatasetVersionsResponse.md
8988
docs/ListDatasetsResponse.md
9089
docs/ListEmbeddingProvidersResponse.md
90+
docs/ListIndexesPageResponse.md
9191
docs/ListIndexesResponse.md
9292
docs/ListJobsResponse.md
9393
docs/ListQueryRunsResponse.md
9494
docs/ListResultsResponse.md
95-
docs/ListSandboxesResponse.md
9695
docs/ListSavedQueriesResponse.md
9796
docs/ListSavedQueryVersionsResponse.md
9897
docs/ListSecretsResponse.md
@@ -116,9 +115,6 @@ docs/RefreshWarning.md
116115
docs/ResultInfo.md
117116
docs/ResultsApi.md
118117
docs/ResultsFormatQuery.md
119-
docs/Sandbox.md
120-
docs/SandboxResponse.md
121-
docs/SandboxesApi.md
122118
docs/SavedQueriesApi.md
123119
docs/SavedQueryDatasetSource.md
124120
docs/SavedQueryDetail.md
@@ -139,7 +135,6 @@ docs/UpdateDatasetRequest.md
139135
docs/UpdateDatasetResponse.md
140136
docs/UpdateEmbeddingProviderRequest.md
141137
docs/UpdateEmbeddingProviderResponse.md
142-
docs/UpdateSandboxRequest.md
143138
docs/UpdateSavedQueryRequest.md
144139
docs/UpdateSecretRequest.md
145140
docs/UpdateSecretResponse.md
@@ -168,7 +163,6 @@ src/apis/query_api.rs
168163
src/apis/query_runs_api.rs
169164
src/apis/refresh_api.rs
170165
src/apis/results_api.rs
171-
src/apis/sandboxes_api.rs
172166
src/apis/saved_queries_api.rs
173167
src/apis/secrets_api.rs
174168
src/apis/uploads_api.rs
@@ -207,7 +201,6 @@ src/models/create_dataset_response.rs
207201
src/models/create_embedding_provider_request.rs
208202
src/models/create_embedding_provider_response.rs
209203
src/models/create_index_request.rs
210-
src/models/create_sandbox_request.rs
211204
src/models/create_saved_query_request.rs
212205
src/models/create_secret_request.rs
213206
src/models/create_secret_response.rs
@@ -227,7 +220,6 @@ src/models/dataset_source_one_of_3.rs
227220
src/models/dataset_source_one_of_4.rs
228221
src/models/dataset_summary.rs
229222
src/models/dataset_version_summary.rs
230-
src/models/delete_sandbox_response.rs
231223
src/models/discovery_status.rs
232224
src/models/embedding_provider_response.rs
233225
src/models/error.rs
@@ -237,6 +229,7 @@ src/models/get_database_context_response.rs
237229
src/models/get_dataset_response.rs
238230
src/models/get_result_response.rs
239231
src/models/get_secret_response.rs
232+
src/models/index_entry_response.rs
240233
src/models/index_info_response.rs
241234
src/models/index_status.rs
242235
src/models/information_schema_response.rs
@@ -253,11 +246,11 @@ src/models/list_databases_response.rs
253246
src/models/list_dataset_versions_response.rs
254247
src/models/list_datasets_response.rs
255248
src/models/list_embedding_providers_response.rs
249+
src/models/list_indexes_page_response.rs
256250
src/models/list_indexes_response.rs
257251
src/models/list_jobs_response.rs
258252
src/models/list_query_runs_response.rs
259253
src/models/list_results_response.rs
260-
src/models/list_sandboxes_response.rs
261254
src/models/list_saved_queries_response.rs
262255
src/models/list_saved_query_versions_response.rs
263256
src/models/list_secrets_response.rs
@@ -278,8 +271,6 @@ src/models/refresh_response.rs
278271
src/models/refresh_warning.rs
279272
src/models/result_info.rs
280273
src/models/results_format_query.rs
281-
src/models/sandbox.rs
282-
src/models/sandbox_response.rs
283274
src/models/saved_query_dataset_source.rs
284275
src/models/saved_query_detail.rs
285276
src/models/saved_query_summary.rs
@@ -298,7 +289,6 @@ src/models/update_dataset_request.rs
298289
src/models/update_dataset_response.rs
299290
src/models/update_embedding_provider_request.rs
300291
src/models/update_embedding_provider_response.rs
301-
src/models/update_sandbox_request.rs
302292
src/models/update_saved_query_request.rs
303293
src/models/update_secret_request.rs
304294
src/models/update_secret_response.rs

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.1.3] - 2026-06-09
11+
12+
### Added
13+
14+
- `list_indexes_collection` (`GET /v1/indexes`) in `hotdata::apis::indexes_api` — lists indexes across every table in a database, scoped by the `X-Database-Id` header — along with the `IndexEntryResponse` and `ListIndexesPageResponse` models.
15+
16+
### Removed
17+
18+
- Sandbox endpoints and their models (`sandboxes_api`, `Sandbox`, `SandboxResponse`, `CreateSandboxRequest`, `UpdateSandboxRequest`, `ListSandboxesResponse`, `DeleteSandboxResponse`), following their removal from the Hotdata OpenAPI spec.
19+
20+
### Changed
21+
22+
- Regenerated the client from the updated Hotdata OpenAPI spec.
23+
1024
## [0.1.2] - 2026-06-06
1125

1226
### Added

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hotdata"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
authors = ["developers@hotdata.dev"]
55
description = "Powerful data platform API for datasets, queries, and analytics."
66
license = "MIT"

docs/DeleteSandboxResponse.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/IndexEntryResponse.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# IndexEntryResponse
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**columns** | **Vec<String>** | |
8+
**created_at** | **String** | |
9+
**index_name** | **String** | |
10+
**index_type** | **String** | |
11+
**metric** | Option<**String**> | Distance metric this index was built with. Only present for vector indexes. | [optional]
12+
**status** | [**models::IndexStatus**](IndexStatus.md) | |
13+
**updated_at** | **String** | |
14+
**connection_id** | Option<**String**> | | [optional]
15+
**schema_name** | **String** | |
16+
**table_name** | **String** | |
17+
18+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
19+
20+

docs/IndexesApi.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Method | HTTP request | Description
1010
[**delete_index**](IndexesApi.md#delete_index) | **DELETE** /v1/connections/{connection_id}/tables/{schema}/{table}/indexes/{index_name} | Delete an index
1111
[**list_dataset_indexes**](IndexesApi.md#list_dataset_indexes) | **GET** /v1/datasets/{dataset_id}/indexes | List indexes on a dataset
1212
[**list_indexes**](IndexesApi.md#list_indexes) | **GET** /v1/connections/{connection_id}/tables/{schema}/{table}/indexes | List indexes on a table
13+
[**list_indexes_collection**](IndexesApi.md#list_indexes_collection) | **GET** /v1/indexes | List indexes across tables in a database
1314

1415

1516

@@ -202,3 +203,39 @@ Name | Type | Description | Required | Notes
202203

203204
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
204205

206+
207+
## list_indexes_collection
208+
209+
> models::ListIndexesPageResponse list_indexes_collection(x_database_id, connection_id, schema, table, index_type, limit, cursor)
210+
List indexes across tables in a database
211+
212+
List all indexes in the database identified by the required X-Database-Id header, paginated. Optional filters narrow by connection, schema, table, or index type.
213+
214+
### Parameters
215+
216+
217+
Name | Type | Description | Required | Notes
218+
------------- | ------------- | ------------- | ------------- | -------------
219+
**x_database_id** | **String** | Database to scope to (required) | [required] |
220+
**connection_id** | Option<**String**> | Filter to one connection | |
221+
**schema** | Option<**String**> | Filter by schema name | |
222+
**table** | Option<**String**> | Filter by table name | |
223+
**index_type** | Option<**String**> | Filter by index type | |
224+
**limit** | Option<**i32**> | Max indexes per page | |
225+
**cursor** | Option<**String**> | Pagination cursor | |
226+
227+
### Return type
228+
229+
[**models::ListIndexesPageResponse**](ListIndexesPageResponse.md)
230+
231+
### Authorization
232+
233+
[WorkspaceId](../README.md#WorkspaceId), [BearerAuth](../README.md#BearerAuth)
234+
235+
### HTTP request headers
236+
237+
- **Content-Type**: Not defined
238+
- **Accept**: application/json
239+
240+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
241+
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
# CreateSandboxRequest
1+
# ListIndexesPageResponse
22

33
## Properties
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**name** | Option<**String**> | Human-readable name for the sandbox. | [optional]
8-
**markdown** | Option<**String**> | Optional markdown notes. | [optional]
7+
**count** | **i32** | |
8+
**has_more** | **bool** | |
9+
**indexes** | [**Vec<models::IndexEntryResponse>**](IndexEntryResponse.md) | |
10+
**limit** | **i32** | |
11+
**next_cursor** | Option<**String**> | | [optional]
912

1013
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1114

docs/ListSandboxesResponse.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/Sandbox.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/SandboxResponse.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)