Skip to content

Commit 9a239b2

Browse files
chore: make api doc language end-user focused (#116)
Co-authored-by: hotdata-automation[bot] <267177015+hotdata-automation[bot]@users.noreply.github.com>
1 parent 9cb237c commit 9a239b2

44 files changed

Lines changed: 167 additions & 160 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [0.4.1] - 2026-06-17
11+
12+
### Changed
13+
14+
- chore: make api doc language end-user focused
15+
1016
## [0.4.0] - 2026-06-16
1117

1218
### Added

docs/ConnectionsApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Method | HTTP request | Description
2323
2424
Add managed schema
2525

26-
Declare a new schema (and optionally its tables) on an existing managed catalog after creation. The schema is added to the connection's declaration; declared tables can then be populated via the managed-table load endpoint. Only valid against connections whose source type is `managed`. Identifiers are normalised to lowercase.
26+
Declare a new schema (and optionally its tables) on an existing managed catalog after creation. The schema is added to the connection's declaration; declared tables can then be populated via the managed-table load endpoint. Only valid against connections whose source type is `managed`. Identifiers are normalized to lowercase.
2727

2828
### Example
2929

@@ -114,7 +114,7 @@ Name | Type | Description | Notes
114114
115115
Add managed table
116116

117-
Declare a new table on an existing schema of a managed catalog after creation. The table is added empty (declared-but-unloaded) and can be populated via the managed-table load endpoint. Only valid against connections whose source type is `managed`. Identifiers are normalised to lowercase.
117+
Declare a new table on an existing schema of a managed catalog after creation. The table is added empty (declared-but-unloaded) and can be populated via the managed-table load endpoint. Only valid against connections whose source type is `managed`. Identifiers are normalized to lowercase.
118118

119119
### Example
120120

@@ -465,7 +465,7 @@ void (empty response body)
465465
466466
Delete managed table
467467

468-
Delete a single managed-catalog table. The catalog row is removed and the backing parquet file (if any) is scheduled for deletion. Only valid against connections whose source type is `managed`.
468+
Delete a single managed-catalog table. The table and its data are removed. Only valid against connections whose source type is `managed`.
469469

470470
### Example
471471

@@ -810,7 +810,7 @@ This endpoint does not need any parameter.
810810
811811
Load managed table from upload
812812

813-
Publish a previously-uploaded parquet file as the new generation of a managed table. The upload must reference a parquet file (verified by magic bytes). Only `mode = "replace"` is supported. Concurrent loads against the same upload return 409.
813+
Publish a previously-uploaded parquet file as the new contents of a managed table. The upload must reference a parquet file. Only `mode = "replace"` is supported. Concurrent loads against the same upload return 409.
814814

815815
### Example
816816

@@ -979,7 +979,7 @@ void (empty response body)
979979
| Status code | Description | Response headers |
980980
|-------------|-------------|------------------|
981981
**204** | Cache purged | - |
982-
**400** | Managed catalogs own their parquet generations and cannot be purged | - |
982+
**400** | Managed catalogs own their data and cannot be cache-purged | - |
983983
**404** | Connection not found | - |
984984
**409** | Connection backs a database&#39;s default catalog and cannot be purged directly | - |
985985

docs/CreateConnectionRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Name | Type | Description | Notes
1212
**secret_name** | **str** | Optional reference to a secret by name. If provided, this secret will be used for authentication. Mutually exclusive with &#x60;secret_id&#x60;. | [optional]
1313
**skip_discovery** | **bool** | If true, skip automatic schema discovery after registering the connection. The connection will be created but no tables will be discovered. You can run discovery later via the refresh endpoint. | [optional]
1414
**source_type** | **str** | |
15-
**storage_backend** | **str** | Physical storage backend for tables created under this connection. &#x60;\&quot;parquet\&quot;&#x60; (default) uses the versioned parquet cache. &#x60;\&quot;ducklake\&quot;&#x60; stores data in a DuckLake catalog in the shared metadata DB configured via &#x60;ducklake.metadata_pg_url&#x60;; accepted for any source type and requires that pool to be configured. | [optional]
1615

1716
## Example
1817

docs/CreateDatabaseRequest.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ Name | Type | Description | Notes
99
**default_catalog** | **str** | Optional name the database&#39;s auto-created default catalog answers to inside its query scope. Must be a valid SQL identifier (&#x60;[a-z0-9_]&#x60;, not starting with a digit) and may not collide with the system catalogs &#x60;hotdata&#x60;, &#x60;datasets&#x60;, or &#x60;information_schema&#x60;. Defaults to &#x60;default&#x60; when omitted, so &#x60;default.main.&lt;table&gt;&#x60; keeps working. | [optional]
1010
**expires_at** | **str** | When this database expires. Accepts either an RFC 3339 timestamp (e.g. &#x60;\&quot;2026-06-01T00:00:00Z\&quot;&#x60;) or a relative duration suffixed with &#x60;h&#x60; (hours), &#x60;m&#x60; (minutes), or &#x60;d&#x60; (days) — for example &#x60;\&quot;24h\&quot;&#x60;, &#x60;\&quot;48h\&quot;&#x60;, or &#x60;\&quot;7d\&quot;&#x60;. Omitted (or empty) means the database never expires. Expiry is best-effort: the database will not be deleted before &#x60;expires_at&#x60;, but cleanup may run later than the exact timestamp. | [optional]
1111
**name** | **str** | Optional free-form display label (for UIs/CLIs). Not unique. Not an identifier — databases are always addressed by &#x60;id&#x60;. Accepts the legacy &#x60;description&#x60; key as an alias so clients that predate the rename keep populating this field. | [optional]
12-
**schemas** | [**List[DatabaseDefaultSchemaDecl]**](DatabaseDefaultSchemaDecl.md) | Optional schemas/tables to declare on the database&#39;s auto-created default catalog. Mirrors the &#x60;config.schemas&#x60; field of a managed &#x60;POST /v1/connections&#x60;. Tables declared here can be loaded via the standard managed-table load endpoint targeting &#x60;default_connection_id&#x60;. Omitted or empty means the default catalog starts empty. | [optional]
13-
**storage_backend** | **str** | Physical storage backend for the database&#39;s auto-created &#x60;default&#x60; catalog. &#x60;\&quot;parquet\&quot;&#x60; (default) uses the versioned parquet cache. &#x60;\&quot;ducklake\&quot;&#x60; stores data in a DuckLake catalog in the shared metadata DB configured via &#x60;ducklake.metadata_pg_url&#x60;, which must be configured for that value to be accepted. Omitted means &#x60;\&quot;parquet\&quot;&#x60;. | [optional]
12+
**schemas** | [**List[DatabaseDefaultSchemaDecl]**](DatabaseDefaultSchemaDecl.md) | Optional schemas/tables to declare on the database&#39;s auto-created default catalog. Tables declared here can be loaded via the standard managed-table load endpoint targeting &#x60;default_connection_id&#x60;. Omitted or empty means the default catalog starts empty. | [optional]
1413

1514
## Example
1615

docs/CreateDatasetRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**label** | **str** | |
1010
**source** | [**DatasetSource**](DatasetSource.md) | |
11-
**storage_backend** | **str** | Optional storage backend: &#x60;\&quot;parquet\&quot;&#x60; (default) or &#x60;\&quot;ducklake\&quot;&#x60;. &#x60;\&quot;ducklake\&quot;&#x60; requires &#x60;ducklake.metadata_pg_url&#x60; to be configured at engine boot; the engine also rejects the combo of &#x60;storage_backend: \&quot;ducklake\&quot;&#x60; with a saved-query source or with explicit geometry columns (both deferred to a follow-up). | [optional]
1211
**table_name** | **str** | Optional table_name - if not provided, derived from label | [optional]
1312

1413
## Example

docs/DatabaseDefaultSchemaDecl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DatabaseDefaultSchemaDecl
22

3-
One schema declaration inside the database's default catalog at create time. Mirrors `crate::source::ManagedSchemaDecl`. Tables default to empty so callers can declare just a schema name and add tables later via the managed-tables API on the default connection.
3+
One schema declaration inside the database's default catalog, supplied at create time. `tables` defaults to empty, so you can declare just a schema name and add tables later.
44

55
## Properties
66

docs/DatabaseDefaultTableDecl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DatabaseDefaultTableDecl
22

3-
One table declaration inside a default-catalog schema at database-create time. Mirrors `crate::source::ManagedTableDecl` shape so the controller can convert with a simple `.map`.
3+
One table declaration inside a default-catalog schema, supplied at database-create time.
44

55
## Properties
66

docs/DatabasesApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Method | HTTP request | Description
1919
2020
Add schema to database default catalog
2121

22-
Declare a new schema (and optionally its tables) on the database's auto-created default catalog after creation. The schema becomes reachable inside the database scope (e.g. `default.<schema>.<table>` and `information_schema.schemata`) without the caller addressing the internal default connection directly. Identifiers are normalised to lowercase.
22+
Declare a new schema (and optionally its tables) on the database's auto-created default catalog after creation. The schema becomes reachable inside the database scope (e.g. `default.<schema>.<table>` and `information_schema.schemata`) without the caller addressing the internal default connection directly. Identifiers are normalized to lowercase.
2323

2424
### Example
2525

@@ -110,7 +110,7 @@ Name | Type | Description | Notes
110110
111111
Add table to database default catalog
112112

113-
Declare a new table on an existing schema of the database's default catalog after creation. The table is added empty (declared-but-unloaded) and can be populated via the managed-table load endpoint targeting the default connection. Identifiers are normalised to lowercase.
113+
Declare a new table on an existing schema of the database's default catalog after creation. The table is added empty (declared-but-unloaded) and can be populated via the managed-table load endpoint targeting the default connection. Identifiers are normalized to lowercase.
114114

115115
### Example
116116

@@ -291,7 +291,7 @@ void (empty response body)
291291
292292
Create database
293293

294-
Create a new database (a metadata-only grouping). A managed default catalog is auto-created and addressable inside the database as `default` (or the optional `default_catalog` name), with a `main` schema pre-declared so `default.main.<table>` works out of the box. The optional `name` is a free-form display label and is not required to be unique. Optional `default_catalog` overrides the name the default catalog answers to; it must be a valid SQL identifier and may not collide with the `hotdata`, `datasets`, or `information_schema` system catalogs. Optional `schemas` declares additional schemas/tables on the default catalog at create time; declared tables can be loaded via the standard managed-tables-load endpoint targeting `default_connection_id`. Optional `expires_at` sets when the database expires — accepts either an RFC 3339 timestamp or a relative duration suffixed with `h` (hours), `m` (minutes), or `d` (days), e.g. `24h`, `48h`, `90m`, `7d`. When omitted, the database never expires. Expiry is best-effort: the database will not be deleted before `expires_at`, but cleanup may run later than the exact timestamp. Optional `storage_backend` selects the physical backend for the default catalog — `parquet` (default) or `ducklake` (requires `ducklake.metadata_pg_url` to be configured).
294+
Create a new database (a metadata-only grouping). A managed default catalog is auto-created and addressable inside the database as `default` (or the optional `default_catalog` name), with a `main` schema pre-declared so `default.main.<table>` works out of the box. The optional `name` is a free-form display label and is not required to be unique. Optional `default_catalog` overrides the name the default catalog answers to; it must be a valid SQL identifier and may not collide with the `hotdata`, `datasets`, or `information_schema` system catalogs. Optional `schemas` declares additional schemas/tables on the default catalog at create time; declared tables can be loaded via the standard managed-tables-load endpoint targeting `default_connection_id`. Optional `expires_at` sets when the database expires — accepts either an RFC 3339 timestamp or a relative duration suffixed with `h` (hours), `m` (minutes), or `d` (days), e.g. `24h`, `48h`, `90m`, `7d`. When omitted, the database never expires. Expiry is best-effort: the database will not be deleted before `expires_at`, but cleanup may run later than the exact timestamp.
295295

296296
### Example
297297

docs/IndexesApi.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ configuration = hotdata.Configuration(
6565
with hotdata.ApiClient(configuration) as api_client:
6666
# Create an instance of the API class
6767
api_instance = hotdata.IndexesApi(api_client)
68-
dataset_id = 'dataset_id_example' # str | Dataset identifier
68+
dataset_id = 'dataset_id_example' # str | Dataset ID
6969
create_index_request = hotdata.CreateIndexRequest() # CreateIndexRequest |
7070

7171
try:
@@ -84,7 +84,7 @@ with hotdata.ApiClient(configuration) as api_client:
8484

8585
Name | Type | Description | Notes
8686
------------- | ------------- | ------------- | -------------
87-
**dataset_id** | **str**| Dataset identifier |
87+
**dataset_id** | **str**| Dataset ID |
8888
**create_index_request** | [**CreateIndexRequest**](CreateIndexRequest.md)| |
8989

9090
### Return type
@@ -156,7 +156,7 @@ configuration = hotdata.Configuration(
156156
with hotdata.ApiClient(configuration) as api_client:
157157
# Create an instance of the API class
158158
api_instance = hotdata.IndexesApi(api_client)
159-
connection_id = 'connection_id_example' # str | Connection identifier
159+
connection_id = 'connection_id_example' # str | Connection ID
160160
var_schema = 'var_schema_example' # str | Schema name
161161
table = 'table_example' # str | Table name
162162
create_index_request = hotdata.CreateIndexRequest() # CreateIndexRequest |
@@ -177,7 +177,7 @@ with hotdata.ApiClient(configuration) as api_client:
177177

178178
Name | Type | Description | Notes
179179
------------- | ------------- | ------------- | -------------
180-
**connection_id** | **str**| Connection identifier |
180+
**connection_id** | **str**| Connection ID |
181181
**var_schema** | **str**| Schema name |
182182
**table** | **str**| Table name |
183183
**create_index_request** | [**CreateIndexRequest**](CreateIndexRequest.md)| |
@@ -256,7 +256,7 @@ configuration = hotdata.Configuration(
256256
with hotdata.ApiClient(configuration) as api_client:
257257
# Create an instance of the API class
258258
api_instance = hotdata.IndexesApi(api_client)
259-
dataset_id = 'dataset_id_example' # str | Dataset identifier
259+
dataset_id = 'dataset_id_example' # str | Dataset ID
260260
index_name = 'index_name_example' # str | Index name
261261

262262
try:
@@ -273,7 +273,7 @@ with hotdata.ApiClient(configuration) as api_client:
273273

274274
Name | Type | Description | Notes
275275
------------- | ------------- | ------------- | -------------
276-
**dataset_id** | **str**| Dataset identifier |
276+
**dataset_id** | **str**| Dataset ID |
277277
**index_name** | **str**| Index name |
278278

279279
### Return type
@@ -341,7 +341,7 @@ configuration = hotdata.Configuration(
341341
with hotdata.ApiClient(configuration) as api_client:
342342
# Create an instance of the API class
343343
api_instance = hotdata.IndexesApi(api_client)
344-
connection_id = 'connection_id_example' # str | Connection identifier
344+
connection_id = 'connection_id_example' # str | Connection ID
345345
var_schema = 'var_schema_example' # str | Schema name
346346
table = 'table_example' # str | Table name
347347
index_name = 'index_name_example' # str | Index name
@@ -360,7 +360,7 @@ with hotdata.ApiClient(configuration) as api_client:
360360

361361
Name | Type | Description | Notes
362362
------------- | ------------- | ------------- | -------------
363-
**connection_id** | **str**| Connection identifier |
363+
**connection_id** | **str**| Connection ID |
364364
**var_schema** | **str**| Schema name |
365365
**table** | **str**| Table name |
366366
**index_name** | **str**| Index name |
@@ -439,7 +439,7 @@ configuration = hotdata.Configuration(
439439
with hotdata.ApiClient(configuration) as api_client:
440440
# Create an instance of the API class
441441
api_instance = hotdata.IndexesApi(api_client)
442-
dataset_id = 'dataset_id_example' # str | Dataset identifier
442+
dataset_id = 'dataset_id_example' # str | Dataset ID
443443

444444
try:
445445
# List indexes on a dataset
@@ -457,7 +457,7 @@ with hotdata.ApiClient(configuration) as api_client:
457457

458458
Name | Type | Description | Notes
459459
------------- | ------------- | ------------- | -------------
460-
**dataset_id** | **str**| Dataset identifier |
460+
**dataset_id** | **str**| Dataset ID |
461461

462462
### Return type
463463

@@ -525,7 +525,7 @@ configuration = hotdata.Configuration(
525525
with hotdata.ApiClient(configuration) as api_client:
526526
# Create an instance of the API class
527527
api_instance = hotdata.IndexesApi(api_client)
528-
connection_id = 'connection_id_example' # str | Connection identifier
528+
connection_id = 'connection_id_example' # str | Connection ID
529529
var_schema = 'var_schema_example' # str | Schema name
530530
table = 'table_example' # str | Table name
531531

@@ -545,7 +545,7 @@ with hotdata.ApiClient(configuration) as api_client:
545545

546546
Name | Type | Description | Notes
547547
------------- | ------------- | ------------- | -------------
548-
**connection_id** | **str**| Connection identifier |
548+
**connection_id** | **str**| Connection ID |
549549
**var_schema** | **str**| Schema name |
550550
**table** | **str**| Table name |
551551

docs/JobType.md

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

1717
* `CREATE_DATASET_INDEX` (value: `'create_dataset_index'`)
1818

19+
* `MANAGED_LOAD` (value: `'managed_load'`)
20+
1921
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2022

2123

0 commit comments

Comments
 (0)