Skip to content

Commit c10518b

Browse files
chore: regenerate client from OpenAPI spec
1 parent 711a04a commit c10518b

26 files changed

Lines changed: 738 additions & 125 deletions

.openapi-generator/FILES

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ docs/CreateSecretResponse.md
3838
docs/CreateWorkspaceRequest.md
3939
docs/CreateWorkspaceResponse.md
4040
docs/DatasetSource.md
41+
docs/DatasetSourceOneOf.md
42+
docs/DatasetSourceOneOf1.md
43+
docs/DatasetSourceOneOf2.md
44+
docs/DatasetSourceOneOf3.md
45+
docs/DatasetSourceOneOf4.md
4146
docs/DatasetSummary.md
4247
docs/DatasetVersionSummary.md
4348
docs/DatasetsApi.md
@@ -191,6 +196,11 @@ hotdata/models/create_secret_response.py
191196
hotdata/models/create_workspace_request.py
192197
hotdata/models/create_workspace_response.py
193198
hotdata/models/dataset_source.py
199+
hotdata/models/dataset_source_one_of.py
200+
hotdata/models/dataset_source_one_of1.py
201+
hotdata/models/dataset_source_one_of2.py
202+
hotdata/models/dataset_source_one_of3.py
203+
hotdata/models/dataset_source_one_of4.py
194204
hotdata/models/dataset_summary.py
195205
hotdata/models/dataset_version_summary.py
196206
hotdata/models/delete_sandbox_response.py
@@ -275,14 +285,9 @@ hotdata/rest.py
275285
pyproject.toml
276286
requirements.txt
277287
setup.cfg
278-
setup.py
279288
test-requirements.txt
280289
test/__init__.py
281-
test/test_create_sandbox_request.py
282-
test/test_delete_sandbox_response.py
283-
test/test_list_sandboxes_response.py
284-
test/test_sandbox.py
285-
test/test_sandbox_response.py
286-
test/test_sandboxes_api.py
287-
test/test_update_sandbox_request.py
290+
test/test_dataset_source_one_of2.py
291+
test/test_dataset_source_one_of3.py
292+
test/test_dataset_source_one_of4.py
288293
tox.ini

docs/DatasetSource.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DatasetSource
22

3-
Dataset source specification
3+
Dataset source specification. Internally tagged on `type`, e.g. `{\"type\": \"upload\", \"upload_id\": \"...\"}`. Discriminator values: `upload`, `saved_query`, `sql_query`, `url`, `inline`.
44

55
## Properties
66

@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**columns** | **Dict[str, str]** | Optional explicit column definitions. Keys are column names, values are type specs. | [optional]
1010
**format** | **str** | | [optional]
1111
**upload_id** | **str** | |
12+
**type** | **str** | |
1213
**saved_query_id** | **str** | |
1314
**version** | **int** | | [optional]
1415
**description** | **str** | Optional description for the auto-created saved query. | [optional]

docs/DatasetSourceOneOf.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# DatasetSourceOneOf
22

3-
Create from a previously uploaded file
43

54
## Properties
65

76
Name | Type | Description | Notes
87
------------ | ------------- | ------------- | -------------
9-
**columns** | [**Dict[str, ColumnDefinition]**](ColumnDefinition.md) | Optional explicit column definitions. Keys are column names, values are type specs. When provided, the schema is built from these definitions instead of being inferred. | [optional]
10-
**format** | **object** | | [optional]
8+
**columns** | **Dict[str, str]** | Optional explicit column definitions. Keys are column names, values are type specs. When provided, the schema is built from these definitions instead of being inferred. | [optional]
9+
**format** | **str** | | [optional]
1110
**upload_id** | **str** | |
11+
**type** | **str** | |
1212

1313
## Example
1414

docs/DatasetSourceOneOf1.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# DatasetSourceOneOf1
22

3-
Create from inline data (small payloads)
43

54
## Properties
65

76
Name | Type | Description | Notes
87
------------ | ------------- | ------------- | -------------
9-
**inline** | [**InlineData**](InlineData.md) | |
8+
**saved_query_id** | **str** | |
9+
**version** | **int** | | [optional]
10+
**type** | **str** | |
1011

1112
## Example
1213

docs/DatasetSourceOneOf2.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# DatasetSourceOneOf2
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**description** | **str** | Optional description for the auto-created saved query. | [optional]
9+
**name** | **str** | Optional name for the auto-created saved query. Defaults to the dataset label. | [optional]
10+
**sql** | **str** | |
11+
**type** | **str** | |
12+
13+
## Example
14+
15+
```python
16+
from hotdata.models.dataset_source_one_of2 import DatasetSourceOneOf2
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of DatasetSourceOneOf2 from a JSON string
21+
dataset_source_one_of2_instance = DatasetSourceOneOf2.from_json(json)
22+
# print the JSON string representation of the object
23+
print(DatasetSourceOneOf2.to_json())
24+
25+
# convert the object into a dict
26+
dataset_source_one_of2_dict = dataset_source_one_of2_instance.to_dict()
27+
# create an instance of DatasetSourceOneOf2 from a dict
28+
dataset_source_one_of2_from_dict = DatasetSourceOneOf2.from_dict(dataset_source_one_of2_dict)
29+
```
30+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
31+
32+

docs/DatasetSourceOneOf3.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# DatasetSourceOneOf3
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**columns** | **Dict[str, str]** | Optional explicit column definitions. Keys are column names, values are type specs. | [optional]
9+
**format** | **str** | | [optional]
10+
**url** | **str** | |
11+
**type** | **str** | |
12+
13+
## Example
14+
15+
```python
16+
from hotdata.models.dataset_source_one_of3 import DatasetSourceOneOf3
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of DatasetSourceOneOf3 from a JSON string
21+
dataset_source_one_of3_instance = DatasetSourceOneOf3.from_json(json)
22+
# print the JSON string representation of the object
23+
print(DatasetSourceOneOf3.to_json())
24+
25+
# convert the object into a dict
26+
dataset_source_one_of3_dict = dataset_source_one_of3_instance.to_dict()
27+
# create an instance of DatasetSourceOneOf3 from a dict
28+
dataset_source_one_of3_from_dict = DatasetSourceOneOf3.from_dict(dataset_source_one_of3_dict)
29+
```
30+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
31+
32+

docs/DatasetSourceOneOf4.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# DatasetSourceOneOf4
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**inline** | [**InlineData**](InlineData.md) | |
9+
**type** | **str** | |
10+
11+
## Example
12+
13+
```python
14+
from hotdata.models.dataset_source_one_of4 import DatasetSourceOneOf4
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of DatasetSourceOneOf4 from a JSON string
19+
dataset_source_one_of4_instance = DatasetSourceOneOf4.from_json(json)
20+
# print the JSON string representation of the object
21+
print(DatasetSourceOneOf4.to_json())
22+
23+
# convert the object into a dict
24+
dataset_source_one_of4_dict = dataset_source_one_of4_instance.to_dict()
25+
# create an instance of DatasetSourceOneOf4 from a dict
26+
dataset_source_one_of4_from_dict = DatasetSourceOneOf4.from_dict(dataset_source_one_of4_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

docs/JobResult.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ Name | Type | Description | Notes
1616
**tables_failed** | **int** | |
1717
**tables_refreshed** | **int** | |
1818
**total_rows** | **int** | |
19-
**columns** | **List[str]** | |
2019
**created_at** | **datetime** | |
20+
**id** | **str** | |
21+
**status** | [**IndexStatus**](IndexStatus.md) | |
22+
**version** | **int** | |
23+
**columns** | **List[str]** | |
2124
**index_name** | **str** | |
2225
**index_type** | **str** | |
2326
**metric** | **str** | Distance metric this index was built with. Only present for vector indexes. | [optional]
24-
**status** | [**IndexStatus**](IndexStatus.md) | |
2527
**updated_at** | **datetime** | |
2628

2729
## Example

docs/JobType.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Background job types returned by the API.
1010

1111
* `DATA_REFRESH_CONNECTION` (value: `'data_refresh_connection'`)
1212

13+
* `DATASET_REFRESH` (value: `'dataset_refresh'`)
14+
1315
* `CREATE_INDEX` (value: `'create_index'`)
1416

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

docs/RefreshApi.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ Method | HTTP request | Description
1212
1313
Refresh connection data
1414

15-
Refresh schema metadata or table data. The behavior depends on the request fields:
15+
Refresh schema metadata, table data, or dataset data. The behavior depends on the request fields:
1616

1717
- **Schema refresh (all)**: omit all fields — re-discovers tables for every connection.
1818
- **Schema refresh (single)**: set `connection_id` — re-discovers tables for one connection.
1919
- **Data refresh (single table)**: set `connection_id`, `schema_name`, `table_name`, and `data: true`.
2020
- **Data refresh (connection)**: set `connection_id` and `data: true` — refreshes all cached tables. Set `include_uncached: true` to also sync tables that haven't been cached yet.
21+
- **Dataset refresh**: set `dataset_id` — re-runs the dataset's source (URL fetch or saved query) and creates a new version. Mutually exclusive with `connection_id`.
2122

22-
Set `async: true` on data refresh operations to run in the background and return a job ID for polling.
23+
Set `async: true` on data or dataset refresh operations to run in the background and return a job ID for polling.
2324

2425
### Example
2526

0 commit comments

Comments
 (0)