From 4cfebc9f5d8f5660b0c85b2cb9a9a52bd051b8ac Mon Sep 17 00:00:00 2001 From: "hotdata-automation[bot]" <267177015+hotdata-automation[bot]@users.noreply.github.com> Date: Sat, 26 Sep 2026 15:39:38 +0000 Subject: [PATCH] chore: add 403 forbidden response to endpoints --- CHANGELOG.md | 1 + docs/InformationSchemaApi.md | 1 + docs/JobsApi.md | 1 + hotdata/api/information_schema_api.py | 3 +++ hotdata/api/jobs_api.py | 3 +++ 5 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97ce179..a19d8b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- chore: add 403 forbidden response to endpoints - feat(jobs): add database_fork job type ## [0.11.0] - 2026-09-18 diff --git a/docs/InformationSchemaApi.md b/docs/InformationSchemaApi.md index 07723e1..729e1af 100644 --- a/docs/InformationSchemaApi.md +++ b/docs/InformationSchemaApi.md @@ -99,6 +99,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Table metadata | - | +**403** | The credential is limited to one database, and the request does not name that database's connection | - | **404** | Connection not found | - | [[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) diff --git a/docs/JobsApi.md b/docs/JobsApi.md index d1ceaef..feae4b5 100644 --- a/docs/JobsApi.md +++ b/docs/JobsApi.md @@ -90,6 +90,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Job status | - | +**403** | The credential is limited to one database, and the job does not act on it | - | **404** | Job not found | - | [[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) diff --git a/hotdata/api/information_schema_api.py b/hotdata/api/information_schema_api.py index b23be0c..20d6f21 100644 --- a/hotdata/api/information_schema_api.py +++ b/hotdata/api/information_schema_api.py @@ -114,6 +114,7 @@ def information_schema( _response_types_map: Dict[str, Optional[str]] = { '200': "InformationSchemaResponse", + '403': "ApiErrorResponse", '404': "ApiErrorResponse", } response_data = self.api_client.call_api( @@ -202,6 +203,7 @@ def information_schema_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "InformationSchemaResponse", + '403': "ApiErrorResponse", '404': "ApiErrorResponse", } response_data = self.api_client.call_api( @@ -290,6 +292,7 @@ def information_schema_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "InformationSchemaResponse", + '403': "ApiErrorResponse", '404': "ApiErrorResponse", } response_data = self.api_client.call_api( diff --git a/hotdata/api/jobs_api.py b/hotdata/api/jobs_api.py index 77bc033..d608e76 100644 --- a/hotdata/api/jobs_api.py +++ b/hotdata/api/jobs_api.py @@ -96,6 +96,7 @@ def get_job( _response_types_map: Dict[str, Optional[str]] = { '200': "JobStatusResponse", + '403': "ApiErrorResponse", '404': "ApiErrorResponse", } response_data = self.api_client.call_api( @@ -164,6 +165,7 @@ def get_job_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "JobStatusResponse", + '403': "ApiErrorResponse", '404': "ApiErrorResponse", } response_data = self.api_client.call_api( @@ -232,6 +234,7 @@ def get_job_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "JobStatusResponse", + '403': "ApiErrorResponse", '404': "ApiErrorResponse", } response_data = self.api_client.call_api(