Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/target
/target/
**/*.rs.bk
Cargo.lock
182 changes: 182 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
.gitignore
Cargo.toml
docs/ApiErrorDetail.md
docs/ApiErrorResponse.md
docs/BooleanProfileDetail.md
docs/CategoricalProfileDetail.md
docs/CategoryValueInfo.md
docs/ColumnInfo.md
docs/ColumnProfileDetail.md
docs/ColumnProfileDetailOneOf.md
docs/ColumnProfileDetailOneOf1.md
docs/ColumnProfileDetailOneOf2.md
docs/ColumnProfileDetailOneOf3.md
docs/ColumnProfileDetailOneOf4.md
docs/ColumnProfileInfo.md
docs/ColumnTypeSpec.md
docs/ConnectionHealthResponse.md
docs/ConnectionInfo.md
docs/ConnectionRefreshResult.md
docs/ConnectionSchemaError.md
docs/ConnectionsApi.md
docs/CreateConnectionRequest.md
docs/CreateConnectionResponse.md
docs/CreateDatasetRequest.md
docs/CreateDatasetResponse.md
docs/CreateSavedQueryRequest.md
docs/CreateSecretRequest.md
docs/CreateSecretResponse.md
docs/CreateWorkspaceRequest.md
docs/CreateWorkspaceResponse.md
docs/DatasetSource.md
docs/DatasetSummary.md
docs/DatasetsApi.md
docs/DiscoveryStatus.md
docs/Error.md
docs/ExecuteSavedQueryRequest.md
docs/GetConnectionResponse.md
docs/GetDatasetResponse.md
docs/GetResultResponse.md
docs/GetSecretResponse.md
docs/InformationSchemaApi.md
docs/InformationSchemaResponse.md
docs/InlineData.md
docs/InlineDatasetSource.md
docs/ListConnectionsResponse.md
docs/ListDatasetsResponse.md
docs/ListQueryRunsResponse.md
docs/ListResultsResponse.md
docs/ListSavedQueriesResponse.md
docs/ListSavedQueryVersionsResponse.md
docs/ListSecretsResponse.md
docs/ListUploadsResponse.md
docs/ListWorkspacesResponse.md
docs/NumericProfileDetail.md
docs/QueryApi.md
docs/QueryRequest.md
docs/QueryResponse.md
docs/QueryRunInfo.md
docs/QueryRunsApi.md
docs/RefreshApi.md
docs/RefreshRequest.md
docs/RefreshResponse.md
docs/RefreshWarning.md
docs/ResultInfo.md
docs/ResultsApi.md
docs/SavedQueriesApi.md
docs/SavedQueryDetail.md
docs/SavedQuerySummary.md
docs/SavedQueryVersionInfo.md
docs/SchemaRefreshResult.md
docs/SecretMetadataResponse.md
docs/SecretsApi.md
docs/TableInfo.md
docs/TableProfileResponse.md
docs/TableRefreshError.md
docs/TableRefreshResult.md
docs/TemporalProfileDetail.md
docs/TextProfileDetail.md
docs/UpdateDatasetRequest.md
docs/UpdateDatasetResponse.md
docs/UpdateSavedQueryRequest.md
docs/UpdateSecretRequest.md
docs/UpdateSecretResponse.md
docs/UploadDatasetSource.md
docs/UploadInfo.md
docs/UploadResponse.md
docs/UploadsApi.md
docs/WorkspaceDetail.md
docs/WorkspaceListItem.md
docs/WorkspacesApi.md
src/apis/configuration.rs
src/apis/connections_api.rs
src/apis/datasets_api.rs
src/apis/information_schema_api.rs
src/apis/mod.rs
src/apis/query_api.rs
src/apis/query_runs_api.rs
src/apis/refresh_api.rs
src/apis/results_api.rs
src/apis/saved_queries_api.rs
src/apis/secrets_api.rs
src/apis/uploads_api.rs
src/apis/workspaces_api.rs
src/lib.rs
src/models/api_error_detail.rs
src/models/api_error_response.rs
src/models/boolean_profile_detail.rs
src/models/categorical_profile_detail.rs
src/models/category_value_info.rs
src/models/column_info.rs
src/models/column_profile_detail.rs
src/models/column_profile_detail_one_of.rs
src/models/column_profile_detail_one_of_1.rs
src/models/column_profile_detail_one_of_2.rs
src/models/column_profile_detail_one_of_3.rs
src/models/column_profile_detail_one_of_4.rs
src/models/column_profile_info.rs
src/models/column_type_spec.rs
src/models/connection_health_response.rs
src/models/connection_info.rs
src/models/connection_refresh_result.rs
src/models/connection_schema_error.rs
src/models/create_connection_request.rs
src/models/create_connection_response.rs
src/models/create_dataset_request.rs
src/models/create_dataset_response.rs
src/models/create_saved_query_request.rs
src/models/create_secret_request.rs
src/models/create_secret_response.rs
src/models/create_workspace_request.rs
src/models/create_workspace_response.rs
src/models/dataset_source.rs
src/models/dataset_summary.rs
src/models/discovery_status.rs
src/models/error.rs
src/models/execute_saved_query_request.rs
src/models/get_connection_response.rs
src/models/get_dataset_response.rs
src/models/get_result_response.rs
src/models/get_secret_response.rs
src/models/information_schema_response.rs
src/models/inline_data.rs
src/models/inline_dataset_source.rs
src/models/list_connections_response.rs
src/models/list_datasets_response.rs
src/models/list_query_runs_response.rs
src/models/list_results_response.rs
src/models/list_saved_queries_response.rs
src/models/list_saved_query_versions_response.rs
src/models/list_secrets_response.rs
src/models/list_uploads_response.rs
src/models/list_workspaces_response.rs
src/models/mod.rs
src/models/numeric_profile_detail.rs
src/models/query_request.rs
src/models/query_response.rs
src/models/query_run_info.rs
src/models/refresh_request.rs
src/models/refresh_response.rs
src/models/refresh_warning.rs
src/models/result_info.rs
src/models/saved_query_detail.rs
src/models/saved_query_summary.rs
src/models/saved_query_version_info.rs
src/models/schema_refresh_result.rs
src/models/secret_metadata_response.rs
src/models/table_info.rs
src/models/table_profile_response.rs
src/models/table_refresh_error.rs
src/models/table_refresh_result.rs
src/models/temporal_profile_detail.rs
src/models/text_profile_detail.rs
src/models/update_dataset_request.rs
src/models/update_dataset_response.rs
src/models/update_saved_query_request.rs
src/models/update_secret_request.rs
src/models/update_secret_response.rs
src/models/upload_dataset_source.rs
src/models/upload_info.rs
src/models/upload_response.rs
src/models/workspace_detail.rs
src/models/workspace_list_item.rs
1 change: 1 addition & 0 deletions .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.20.0
27 changes: 17 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
[package]
name = "hotdata"
version = "0.1.0"
edition = "2024"
description = "Rust client for the HotData API"
license = "MIT"
version = "1.0.0"
authors = ["OpenAPI Generator team and contributors"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generator default — should be removed or replaced with the actual project author(s). Publishing with "OpenAPI Generator team and contributors" is misleading.

Suggested change
authors = ["OpenAPI Generator team and contributors"]
authors = ["HotData"]

description = "Powerful data platform API for datasets, queries, and analytics."
# Override this license by providing a License Object in the OpenAPI.
license = "Unlicense"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 — Unintentional license change. The generator template defaults to Unlicense and even leaves a breadcrumb comment saying to override it. The original project license was MIT. Shipping this would silently change the legal terms of the published crate.

Suggested change
license = "Unlicense"
license = "MIT"

edition = "2021"

[dependencies]
reqwest = { version = "0.12", features = ["json"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1", features = ["full"] }
thiserror = "2"
url = "2"
serde = { version = "^1.0", features = ["derive"] }
serde_with = { version = "^3.8", default-features = false, features = ["base64", "std", "macros"] }
serde_json = "^1.0"
serde_repr = "^0.1"
url = "^2.5"
reqwest = { version = "^0.13", default-features = false, features = ["json", "multipart", "query", "form"] }

[features]
default = ["native-tls"]
native-tls = ["reqwest/native-tls"]
rustls = ["reqwest/rustls"]
12 changes: 12 additions & 0 deletions docs/ApiErrorDetail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ApiErrorDetail

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**code** | **String** | |
**message** | **String** | |

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


11 changes: 11 additions & 0 deletions docs/ApiErrorResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ApiErrorResponse

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**error** | [**models::ApiErrorDetail**](ApiErrorDetail.md) | |

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


12 changes: 12 additions & 0 deletions docs/BooleanProfileDetail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# BooleanProfileDetail

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**false_count** | **i64** | Number of false values |
**true_count** | **i64** | Number of true values |

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


11 changes: 11 additions & 0 deletions docs/CategoricalProfileDetail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# CategoricalProfileDetail

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**values** | [**Vec<models::CategoryValueInfo>**](CategoryValueInfo.md) | Distinct values with their counts, ordered by count descending |

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


12 changes: 12 additions & 0 deletions docs/CategoryValueInfo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# CategoryValueInfo

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**count** | **i64** | Number of occurrences |
**value** | Option<**String**> | The distinct value (as a string, or null) | [optional]

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


13 changes: 13 additions & 0 deletions docs/ColumnInfo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ColumnInfo

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data_type** | **String** | |
**name** | **String** | |
**nullable** | **bool** | |

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


15 changes: 15 additions & 0 deletions docs/ColumnProfileDetail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ColumnProfileDetail

## Enum Variants

| Name | Description |
|---- | -----|
| ColumnProfileDetailOneOf | |
| ColumnProfileDetailOneOf1 | |
| ColumnProfileDetailOneOf2 | |
| ColumnProfileDetailOneOf3 | |
| ColumnProfileDetailOneOf4 | |

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


12 changes: 12 additions & 0 deletions docs/ColumnProfileDetailOneOf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ColumnProfileDetailOneOf

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**values** | [**Vec<models::CategoryValueInfo>**](CategoryValueInfo.md) | Distinct values with their counts, ordered by count descending |
**r#type** | **Type** | (enum: categorical) |

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


14 changes: 14 additions & 0 deletions docs/ColumnProfileDetailOneOf1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ColumnProfileDetailOneOf1

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**avg_length** | **f64** | Average string length |
**max_length** | **i64** | Longest string length in the column |
**min_length** | **i64** | Shortest string length in the column |
**r#type** | **Type** | (enum: text) |

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


14 changes: 14 additions & 0 deletions docs/ColumnProfileDetailOneOf2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ColumnProfileDetailOneOf2

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**max** | **String** | Maximum value (string to preserve precision for large integers and decimals) |
**mean** | **f64** | Arithmetic mean |
**min** | **String** | Minimum value (string to preserve precision for large integers and decimals) |
**r#type** | **Type** | (enum: numeric) |

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


13 changes: 13 additions & 0 deletions docs/ColumnProfileDetailOneOf3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ColumnProfileDetailOneOf3

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**max** | **String** | Latest value as ISO-8601 string |
**min** | **String** | Earliest value as ISO-8601 string |
**r#type** | **Type** | (enum: temporal) |

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


13 changes: 13 additions & 0 deletions docs/ColumnProfileDetailOneOf4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ColumnProfileDetailOneOf4

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**false_count** | **i64** | Number of false values |
**true_count** | **i64** | Number of true values |
**r#type** | **Type** | (enum: boolean) |

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


Loading
Loading