@malloy-publisher/sdk 0.9.16 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/{RenderedResult-5hOs5XnV.cjs.js → RenderedResult-B5f4qOjp.cjs.js} +1 -1
  2. package/dist/{RenderedResult-DxmHGZNQ.es.js → RenderedResult-vf6tu8tf.es.js} +2 -2
  3. package/dist/{ServerProvider-D7neZcTk.es.js → ServerProvider-B6RLAbgV.es.js} +48 -24
  4. package/dist/builder/index.cjs.js +17 -17
  5. package/dist/builder/index.es.js +278 -266
  6. package/dist/client/api.d.ts +64 -28
  7. package/dist/client/index.es.js +1 -1
  8. package/dist/components/ReportBuilder/TextTileBody.d.ts +9 -2
  9. package/dist/components/legacy/malloynb/CellRunnerView.d.ts +6 -6
  10. package/dist/hooks/useSettled.d.ts +5 -8
  11. package/dist/hooks/useSettledDraft.d.ts +33 -0
  12. package/dist/index.cjs.js +10 -10
  13. package/dist/index.es.js +3769 -3779
  14. package/dist/useCompiledDocument-C995sQ3j.cjs.js +142 -0
  15. package/dist/{useCompiledDocument-CaYP_OYG.es.js → useCompiledDocument-CLbTFtsJ.es.js} +5449 -5294
  16. package/dist/utils/malloyLiteral.d.ts +2 -0
  17. package/package.json +11 -16
  18. package/src/components/ReportBuilder/BuilderGrid.tsx +1 -0
  19. package/src/components/ReportBuilder/TextTileBody.tsx +24 -4
  20. package/src/components/ReportBuilder/placement.spec.ts +27 -0
  21. package/src/components/ReportBuilder/placement.ts +8 -4
  22. package/src/components/given/GivenInput.spec.tsx +447 -2
  23. package/src/components/given/GivenInput.tsx +192 -80
  24. package/src/components/given/GivensPanel.spec.tsx +59 -0
  25. package/src/components/given/GivensPanel.tsx +14 -2
  26. package/src/components/legacy/malloynb/CellRunnerView.tsx +6 -6
  27. package/src/hooks/useDimensionFilters.ts +1 -35
  28. package/src/hooks/useDimensionFiltersQuery.ts +2 -36
  29. package/src/hooks/useDimensionalFilterRangeData.ts +1 -35
  30. package/src/hooks/useGivensState.spec.ts +106 -1
  31. package/src/hooks/useGivensState.ts +48 -13
  32. package/src/hooks/useSettled.ts +5 -8
  33. package/src/hooks/useSettledDraft.ts +127 -0
  34. package/src/utils/malloyLiteral.spec.ts +12 -1
  35. package/src/utils/malloyLiteral.ts +32 -0
  36. package/vite.config.ts +0 -2
  37. package/.eslintrc +0 -36
  38. package/dist/components/DOMElement/DOMElement.d.ts +0 -5
  39. package/dist/components/DOMElement/index.d.ts +0 -1
  40. package/dist/components/Package/FileTreeView.d.ts +0 -9
  41. package/dist/useCompiledDocument-zYEfLogf.cjs.js +0 -142
  42. package/src/components/DOMElement/DOMElement.tsx +0 -22
  43. package/src/components/DOMElement/index.ts +0 -4
  44. package/src/components/Package/FileTreeView.tsx +0 -244
@@ -513,6 +513,10 @@ export interface Connection {
513
513
  * Read-only. Dotted paths of the fields this connection has stored that this response does not return. In practice that is its credentials, but it is any stored field the response withholds, so a field the server does not publish appears here too. Names only, never a value. It exists because a client otherwise cannot tell a credential that is set from one that is absent, and so cannot tell whether leaving a box empty keeps something or leaves the connection without a credential. An editor should read it to label the boxes that are already filled. Ignored on write.
514
514
  */
515
515
  'withheldFields'?: Array<string>;
516
+ /**
517
+ * Serve this DuckLake connection as a catalog of its own tables, as an orchestrator that provisions catalogs does. Two effects. Its session gets `SET search_path = \'<name>.main\'` after the attach, so a model\'s `<name>.table(\'t\')`, which compiles to the bare table name, resolves inside the catalog: DuckDB does not search an attached catalog for an unqualified name otherwise. And each statement run on it emits a `statement_usage` log record and counts in `publisher_statement_usage_total`, for whoever meters the catalog. Absent or false is the pre-existing behavior.
518
+ */
519
+ 'managed'?: boolean;
516
520
  /**
517
521
  * Optional, opaque, stable fingerprint of this connection\'s data identity. It is a hash of the configuration that determines *which data* the connection reaches (its data-locating settings), and deliberately excludes credentials and other secret values, so it stays constant across credential rotation and changes only when the connection is pointed at different data. When present, it is used as this connection\'s contribution to content-addressed build identifiers so that builds re-address only when the underlying data identity actually changes; consumers should treat it as an opaque token and use the supplied value verbatim rather than deriving their own. This field is optional — when omitted, a connection identity is derived locally instead. Because the fingerprint replaces the derived digest verbatim, it must vary with anything that changes which data the connection can reach — including the impersonated identity: two environments on the same project with different impersonateServiceAccount values but the same fingerprint would share persisted-table ids.
518
522
  */
@@ -925,8 +929,16 @@ export interface DuckdbConnection {
925
929
  * DuckLake lakehouse connection configuration
926
930
  */
927
931
  export interface DucklakeConnection {
928
- 'storage': DucklakeConnectionStorage;
932
+ 'storage'?: DucklakeConnectionStorage;
929
933
  'catalog': DucklakeConnectionCatalog;
934
+ /**
935
+ * Storage destinations only; ignored on a connection. The schema a destination builds its tables into and binds them from, so an orchestrator can keep the tables it owns apart from a catalog\'s `main` (where people put their own). Absent means `main`, the pre-existing layout. The schema must already exist in the catalog: a build does not create it. A `#@ persist name=` that already names a schema keeps that schema. Must be a plain identifier (`[A-Za-z_][A-Za-z0-9_]*`). Serving reads the schema configured now, not the one a table was built into, so changing it on a destination re-points every bound table at once: rebuild or rebind as you change it.
936
+ */
937
+ 'destinationSchema'?: string;
938
+ /**
939
+ * Whether the serve-path attach is read-only. Absent or true keeps the pre-existing read-only attach, which every DuckLake connection a person registers should keep. False attaches the connection read-write, and then everything that runs on it runs read-write: every query, `.sql()` source, `sql_*` expression and the connection\'s SQL endpoints can create, drop and overwrite tables, write files with the storage credential (`COPY … TO`) and change the catalog\'s settings. Set it only where something else decides who may run SQL on the connection. A storage destination\'s build sessions attach read-write regardless; this field governs only the connection.
940
+ */
941
+ 'readOnly'?: boolean;
930
942
  }
931
943
  /**
932
944
  * Catalog metadata connection configuration
@@ -937,7 +949,7 @@ export interface DucklakeConnectionCatalog {
937
949
  */
938
950
  'postgresConnection': PostgresConnection;
939
951
  /**
940
- * Optional schema in the catalog database holding this DuckLake\'s metadata (`ducklake_*`) tables, passed to ATTACH as METADATA_SCHEMA. Absent means DuckLake\'s default — the catalog connection\'s default schema, typically `public` — which is the pre-existing behavior. Set it to run several independent DuckLake catalogs against ONE catalog database: each keeps its metadata in its own schema, so a catalog reads only the tables recorded in the schema it names. DuckLake creates the schema on a read-write attach if it does not exist; a read-only attach cannot, and fails until it does. Separating metadata does not separate data — give each catalog its own `storage.bucketUrl` prefix as well, since data-path-based maintenance (e.g. `ducklake_delete_orphaned_files`) treats a co-tenant catalog\'s files under a shared prefix as orphaned. This is an ORGANIZATIONAL boundary, not an access-control one. The separation is which schema a configuration names, so any config whose catalog role can reach a sibling schema could name it and read that catalog\'s metadata — and therefore its data-file paths. Where catalogs must be isolated from one another rather than merely kept tidy, grant each its own role with `USAGE` limited to its own schema; a database-per-catalog remains the strongest separation. Setting this on a catalog whose metadata already lives elsewhere does not move it: a read-write attach CREATES a new empty catalog in the named schema (and materializes into it), while a read-only attach fails because there is nothing there yet. Must be a plain identifier (`[A-Za-z_][A-Za-z0-9_]*`) — the value reaches both a quoted string literal in the ATTACH and an identifier position in the catalog-format preflight, so it is validated at config load rather than escaped for two different contexts.
952
+ * Optional schema in the catalog database holding this DuckLake\'s metadata (`ducklake_*`) tables, passed to ATTACH as METADATA_SCHEMA. Absent means DuckLake\'s default — the catalog connection\'s default schema, typically `public` — which is the pre-existing behavior. Set it to run several independent DuckLake catalogs against ONE catalog database: each keeps its metadata in its own schema, so a catalog reads only the tables recorded in the schema it names. DuckLake creates the schema on a read-write attach if it does not exist; a read-only attach cannot, and fails until it does. Separating metadata does not separate data — give each catalog its own `storage.bucketUrl` prefix as well, since data-path-based maintenance (e.g. `ducklake_delete_orphaned_files`) treats a co-tenant catalog\'s files under a shared prefix as orphaned. This is an ORGANIZATIONAL boundary, not an access-control one. The separation is which schema a configuration names, so any config whose catalog role can reach a sibling schema could name it and read that catalog\'s metadata — and therefore its data-file paths. Where catalogs must be isolated from one another rather than merely kept tidy, grant each its own role with `USAGE` limited to its own schema; a database-per-catalog remains the strongest separation. Setting this on a catalog whose metadata already lives elsewhere does not move it: a read-write attach with a configured `storage.bucketUrl` CREATES a new empty catalog in the named schema (and materializes into it), while any other attach fails because there is nothing there yet. Must be a plain identifier (`[A-Za-z_][A-Za-z0-9_]*`) — the value reaches both a quoted string literal in the ATTACH and an identifier position in the catalog-format preflight, so it is validated at config load rather than escaped for two different contexts.
941
953
  */
942
954
  'metadataSchema'?: string;
943
955
  }
@@ -946,9 +958,9 @@ export interface DucklakeConnectionCatalog {
946
958
  */
947
959
  export interface DucklakeConnectionStorage {
948
960
  /**
949
- * URL of the storage bucket (e.g. s3://my-bucket/path or gs://my-bucket/path)
961
+ * The catalog\'s data path, a URL of the storage location (e.g. s3://my-bucket/path or gs://my-bucket/path). Given, it is the path every attach uses, and the first read-write attach of a catalog that does not exist yet creates it there: the pre-existing behavior. Omitted, the catalog must already exist, every attach uses the data path the catalog recorded at its creation, and no attach ever creates a catalog: the shape for a catalog created elsewhere, through the admin API (admin-api-doc.yaml) or by another tool.
950
962
  */
951
- 'bucketUrl': string;
963
+ 'bucketUrl'?: string;
952
964
  /**
953
965
  * AWS S3 connection configuration for data storage
954
966
  */
@@ -5884,33 +5896,36 @@ export declare class SkillsApi extends BaseAPI {
5884
5896
  */
5885
5897
  export declare const StorageDestinationsApiAxiosParamCreator: (configuration?: Configuration) => {
5886
5898
  /**
5887
- * Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
5899
+ * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/snapshots?olderThan=…` (`admin-api-doc.yaml`), whose file-deletion grace is the catalog\'s own setting; this route is removed in a later release. Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
5888
5900
  * @summary Reclaim storage behind dropped tables in a DuckLake destination
5889
5901
  * @param {string} environmentName Name of the environment
5890
5902
  * @param {string} destinationName Name of a storage destination configured on the environment
5891
5903
  * @param {StorageFileCleanupRequest} storageFileCleanupRequest
5892
5904
  * @param {*} [options] Override http request option.
5905
+ * @deprecated
5893
5906
  * @throws {RequiredError}
5894
5907
  */
5895
5908
  createStorageDestinationFileCleanup: (environmentName: string, destinationName: string, storageFileCleanupRequest: StorageFileCleanupRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5896
5909
  /**
5897
- * Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
5910
+ * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
5898
5911
  * @summary Drop a table from a storage destination
5899
5912
  * @param {string} environmentName Name of the environment
5900
5913
  * @param {string} destinationName Name of a storage destination configured on the environment
5901
5914
  * @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in &#x60;main&#x60;.
5902
5915
  * @param {string} tableName Name of the table
5903
5916
  * @param {*} [options] Override http request option.
5917
+ * @deprecated
5904
5918
  * @throws {RequiredError}
5905
5919
  */
5906
5920
  deleteStorageDestinationTable: (environmentName: string, destinationName: string, schemaName: string, tableName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5907
5921
  /**
5908
- * Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
5922
+ * **DEPRECATED**: use the admin API\'s `GET /catalogs/{catalogName}/schemas/{schemaName}/tables` (`admin-api-doc.yaml`); this route is removed in a later release. Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
5909
5923
  * @summary List tables in a storage destination
5910
5924
  * @param {string} environmentName Name of the environment
5911
5925
  * @param {string} destinationName Name of a storage destination configured on the environment
5912
5926
  * @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in &#x60;main&#x60;.
5913
5927
  * @param {*} [options] Override http request option.
5928
+ * @deprecated
5914
5929
  * @throws {RequiredError}
5915
5930
  */
5916
5931
  listStorageDestinationTables: (environmentName: string, destinationName: string, schemaName: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
@@ -5920,33 +5935,36 @@ export declare const StorageDestinationsApiAxiosParamCreator: (configuration?: C
5920
5935
  */
5921
5936
  export declare const StorageDestinationsApiFp: (configuration?: Configuration) => {
5922
5937
  /**
5923
- * Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
5938
+ * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/snapshots?olderThan=…` (`admin-api-doc.yaml`), whose file-deletion grace is the catalog\'s own setting; this route is removed in a later release. Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
5924
5939
  * @summary Reclaim storage behind dropped tables in a DuckLake destination
5925
5940
  * @param {string} environmentName Name of the environment
5926
5941
  * @param {string} destinationName Name of a storage destination configured on the environment
5927
5942
  * @param {StorageFileCleanupRequest} storageFileCleanupRequest
5928
5943
  * @param {*} [options] Override http request option.
5944
+ * @deprecated
5929
5945
  * @throws {RequiredError}
5930
5946
  */
5931
5947
  createStorageDestinationFileCleanup(environmentName: string, destinationName: string, storageFileCleanupRequest: StorageFileCleanupRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StorageFileCleanup>>;
5932
5948
  /**
5933
- * Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
5949
+ * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
5934
5950
  * @summary Drop a table from a storage destination
5935
5951
  * @param {string} environmentName Name of the environment
5936
5952
  * @param {string} destinationName Name of a storage destination configured on the environment
5937
5953
  * @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in &#x60;main&#x60;.
5938
5954
  * @param {string} tableName Name of the table
5939
5955
  * @param {*} [options] Override http request option.
5956
+ * @deprecated
5940
5957
  * @throws {RequiredError}
5941
5958
  */
5942
5959
  deleteStorageDestinationTable(environmentName: string, destinationName: string, schemaName: string, tableName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5943
5960
  /**
5944
- * Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
5961
+ * **DEPRECATED**: use the admin API\'s `GET /catalogs/{catalogName}/schemas/{schemaName}/tables` (`admin-api-doc.yaml`); this route is removed in a later release. Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
5945
5962
  * @summary List tables in a storage destination
5946
5963
  * @param {string} environmentName Name of the environment
5947
5964
  * @param {string} destinationName Name of a storage destination configured on the environment
5948
5965
  * @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in &#x60;main&#x60;.
5949
5966
  * @param {*} [options] Override http request option.
5967
+ * @deprecated
5950
5968
  * @throws {RequiredError}
5951
5969
  */
5952
5970
  listStorageDestinationTables(environmentName: string, destinationName: string, schemaName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<StorageTable>>>;
@@ -5956,33 +5974,36 @@ export declare const StorageDestinationsApiFp: (configuration?: Configuration) =
5956
5974
  */
5957
5975
  export declare const StorageDestinationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5958
5976
  /**
5959
- * Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
5977
+ * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/snapshots?olderThan=…` (`admin-api-doc.yaml`), whose file-deletion grace is the catalog\'s own setting; this route is removed in a later release. Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
5960
5978
  * @summary Reclaim storage behind dropped tables in a DuckLake destination
5961
5979
  * @param {string} environmentName Name of the environment
5962
5980
  * @param {string} destinationName Name of a storage destination configured on the environment
5963
5981
  * @param {StorageFileCleanupRequest} storageFileCleanupRequest
5964
5982
  * @param {*} [options] Override http request option.
5983
+ * @deprecated
5965
5984
  * @throws {RequiredError}
5966
5985
  */
5967
5986
  createStorageDestinationFileCleanup(environmentName: string, destinationName: string, storageFileCleanupRequest: StorageFileCleanupRequest, options?: RawAxiosRequestConfig): AxiosPromise<StorageFileCleanup>;
5968
5987
  /**
5969
- * Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
5988
+ * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
5970
5989
  * @summary Drop a table from a storage destination
5971
5990
  * @param {string} environmentName Name of the environment
5972
5991
  * @param {string} destinationName Name of a storage destination configured on the environment
5973
5992
  * @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in &#x60;main&#x60;.
5974
5993
  * @param {string} tableName Name of the table
5975
5994
  * @param {*} [options] Override http request option.
5995
+ * @deprecated
5976
5996
  * @throws {RequiredError}
5977
5997
  */
5978
5998
  deleteStorageDestinationTable(environmentName: string, destinationName: string, schemaName: string, tableName: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
5979
5999
  /**
5980
- * Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
6000
+ * **DEPRECATED**: use the admin API\'s `GET /catalogs/{catalogName}/schemas/{schemaName}/tables` (`admin-api-doc.yaml`); this route is removed in a later release. Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
5981
6001
  * @summary List tables in a storage destination
5982
6002
  * @param {string} environmentName Name of the environment
5983
6003
  * @param {string} destinationName Name of a storage destination configured on the environment
5984
6004
  * @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in &#x60;main&#x60;.
5985
6005
  * @param {*} [options] Override http request option.
6006
+ * @deprecated
5986
6007
  * @throws {RequiredError}
5987
6008
  */
5988
6009
  listStorageDestinationTables(environmentName: string, destinationName: string, schemaName: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<StorageTable>>;
@@ -5992,33 +6013,36 @@ export declare const StorageDestinationsApiFactory: (configuration?: Configurati
5992
6013
  */
5993
6014
  export declare class StorageDestinationsApi extends BaseAPI {
5994
6015
  /**
5995
- * Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
6016
+ * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/snapshots?olderThan=…` (`admin-api-doc.yaml`), whose file-deletion grace is the catalog\'s own setting; this route is removed in a later release. Reclaims the object-storage bytes that dropped and rewritten tables leave behind in a DuckLake destination. Runs, in order: 1. `ducklake_expire_snapshots(older_than => snapshotsOlderThan)` — forgets snapshots older than the cutoff (never the latest) and schedules for deletion the files only they referenced. Snapshots that remain are what time travel can still read, so this cutoff is the recovery window for a dropped table. 2. `ducklake_cleanup_old_files(older_than => filesOlderThan)` — deletes the files scheduled for deletion before the cutoff. The age counts from when step 1 scheduled the file, so this protects readers still scanning a file from a snapshot that was just expired. Only files the catalog itself recorded and then retired are deleted. It does not run `CHECKPOINT` or `ducklake_delete_orphaned_files`, which also delete untracked files — another catalog\'s, when two share a data path, or a concurrent build\'s not-yet-committed output. Synchronous. Refused with 400 for a destination that is not DuckLake.
5996
6017
  * @summary Reclaim storage behind dropped tables in a DuckLake destination
5997
6018
  * @param {string} environmentName Name of the environment
5998
6019
  * @param {string} destinationName Name of a storage destination configured on the environment
5999
6020
  * @param {StorageFileCleanupRequest} storageFileCleanupRequest
6000
6021
  * @param {*} [options] Override http request option.
6022
+ * @deprecated
6001
6023
  * @throws {RequiredError}
6002
6024
  */
6003
6025
  createStorageDestinationFileCleanup(environmentName: string, destinationName: string, storageFileCleanupRequest: StorageFileCleanupRequest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<StorageFileCleanup, any, {}, any>>;
6004
6026
  /**
6005
- * Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
6027
+ * **DEPRECATED**: use the admin API\'s `DELETE /catalogs/{catalogName}/schemas/{schemaName}/tables/{tableName}` (`admin-api-doc.yaml`); this route is removed in a later release. Drops one named table from a storage destination. Idempotent: a table that does not exist answers 204 as well, so a retried drop is free. For a DuckLake destination this retires the table in the catalog; its data files stay in storage until a file cleanup reclaims them (see `create-storage-destination-file-cleanup`), which is also the window in which the table can still be read at an earlier snapshot.
6006
6028
  * @summary Drop a table from a storage destination
6007
6029
  * @param {string} environmentName Name of the environment
6008
6030
  * @param {string} destinationName Name of a storage destination configured on the environment
6009
6031
  * @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in &#x60;main&#x60;.
6010
6032
  * @param {string} tableName Name of the table
6011
6033
  * @param {*} [options] Override http request option.
6034
+ * @deprecated
6012
6035
  * @throws {RequiredError}
6013
6036
  */
6014
6037
  deleteStorageDestinationTable(environmentName: string, destinationName: string, schemaName: string, tableName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<void, any, {}, any>>;
6015
6038
  /**
6016
- * Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
6039
+ * **DEPRECATED**: use the admin API\'s `GET /catalogs/{catalogName}/schemas/{schemaName}/tables` (`admin-api-doc.yaml`); this route is removed in a later release. Lists the tables in one schema of a storage destination, in name order. Storage destinations are never reachable through the connection routes, so this is how an orchestrator finds tables it has lost track of. A DuckLake destination is attached read-only for the listing.
6017
6040
  * @summary List tables in a storage destination
6018
6041
  * @param {string} environmentName Name of the environment
6019
6042
  * @param {string} destinationName Name of a storage destination configured on the environment
6020
6043
  * @param {string} schemaName Schema within the storage destination. A table built from a bare physical name lives in &#x60;main&#x60;.
6021
6044
  * @param {*} [options] Override http request option.
6045
+ * @deprecated
6022
6046
  * @throws {RequiredError}
6023
6047
  */
6024
6048
  listStorageDestinationTables(environmentName: string, destinationName: string, schemaName: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<StorageTable[], any, {}, any>>;
@@ -6028,24 +6052,27 @@ export declare class StorageDestinationsApi extends BaseAPI {
6028
6052
  */
6029
6053
  export declare const WatchModeApiAxiosParamCreator: (configuration?: Configuration) => {
6030
6054
  /**
6031
- * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
6055
+ * **DEPRECATED**: use the admin API\'s `GET /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
6032
6056
  * @summary Get watch mode status
6033
6057
  * @param {*} [options] Override http request option.
6058
+ * @deprecated
6034
6059
  * @throws {RequiredError}
6035
6060
  */
6036
6061
  getWatchStatus: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6037
6062
  /**
6038
- * Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
6063
+ * **DEPRECATED**: use the admin API\'s `PUT /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
6039
6064
  * @summary Start file watching
6040
6065
  * @param {StartWatchRequest} startWatchRequest
6041
6066
  * @param {*} [options] Override http request option.
6067
+ * @deprecated
6042
6068
  * @throws {RequiredError}
6043
6069
  */
6044
6070
  startWatching: (startWatchRequest: StartWatchRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
6045
6071
  /**
6046
- * Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
6072
+ * **DEPRECATED**: use the admin API\'s `DELETE /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
6047
6073
  * @summary Stop file watching
6048
6074
  * @param {*} [options] Override http request option.
6075
+ * @deprecated
6049
6076
  * @throws {RequiredError}
6050
6077
  */
6051
6078
  stopWatching: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
@@ -6064,24 +6091,27 @@ export declare const WatchModeApiAxiosParamCreator: (configuration?: Configurati
6064
6091
  */
6065
6092
  export declare const WatchModeApiFp: (configuration?: Configuration) => {
6066
6093
  /**
6067
- * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
6094
+ * **DEPRECATED**: use the admin API\'s `GET /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
6068
6095
  * @summary Get watch mode status
6069
6096
  * @param {*} [options] Override http request option.
6097
+ * @deprecated
6070
6098
  * @throws {RequiredError}
6071
6099
  */
6072
6100
  getWatchStatus(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WatchStatus>>;
6073
6101
  /**
6074
- * Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
6102
+ * **DEPRECATED**: use the admin API\'s `PUT /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
6075
6103
  * @summary Start file watching
6076
6104
  * @param {StartWatchRequest} startWatchRequest
6077
6105
  * @param {*} [options] Override http request option.
6106
+ * @deprecated
6078
6107
  * @throws {RequiredError}
6079
6108
  */
6080
6109
  startWatching(startWatchRequest: StartWatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
6081
6110
  /**
6082
- * Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
6111
+ * **DEPRECATED**: use the admin API\'s `DELETE /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
6083
6112
  * @summary Stop file watching
6084
6113
  * @param {*} [options] Override http request option.
6114
+ * @deprecated
6085
6115
  * @throws {RequiredError}
6086
6116
  */
6087
6117
  stopWatching(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
@@ -6100,24 +6130,27 @@ export declare const WatchModeApiFp: (configuration?: Configuration) => {
6100
6130
  */
6101
6131
  export declare const WatchModeApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
6102
6132
  /**
6103
- * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
6133
+ * **DEPRECATED**: use the admin API\'s `GET /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
6104
6134
  * @summary Get watch mode status
6105
6135
  * @param {*} [options] Override http request option.
6136
+ * @deprecated
6106
6137
  * @throws {RequiredError}
6107
6138
  */
6108
6139
  getWatchStatus(options?: RawAxiosRequestConfig): AxiosPromise<WatchStatus>;
6109
6140
  /**
6110
- * Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
6141
+ * **DEPRECATED**: use the admin API\'s `PUT /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
6111
6142
  * @summary Start file watching
6112
6143
  * @param {StartWatchRequest} startWatchRequest
6113
6144
  * @param {*} [options] Override http request option.
6145
+ * @deprecated
6114
6146
  * @throws {RequiredError}
6115
6147
  */
6116
6148
  startWatching(startWatchRequest: StartWatchRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
6117
6149
  /**
6118
- * Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
6150
+ * **DEPRECATED**: use the admin API\'s `DELETE /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
6119
6151
  * @summary Stop file watching
6120
6152
  * @param {*} [options] Override http request option.
6153
+ * @deprecated
6121
6154
  * @throws {RequiredError}
6122
6155
  */
6123
6156
  stopWatching(options?: RawAxiosRequestConfig): AxiosPromise<void>;
@@ -6136,24 +6169,27 @@ export declare const WatchModeApiFactory: (configuration?: Configuration, basePa
6136
6169
  */
6137
6170
  export declare class WatchModeApi extends BaseAPI {
6138
6171
  /**
6139
- * Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
6172
+ * **DEPRECATED**: use the admin API\'s `GET /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
6140
6173
  * @summary Get watch mode status
6141
6174
  * @param {*} [options] Override http request option.
6175
+ * @deprecated
6142
6176
  * @throws {RequiredError}
6143
6177
  */
6144
6178
  getWatchStatus(options?: RawAxiosRequestConfig): Promise< AxiosResponse<WatchStatus, any, {}, any>>;
6145
6179
  /**
6146
- * Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
6180
+ * **DEPRECATED**: use the admin API\'s `PUT /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
6147
6181
  * @summary Start file watching
6148
6182
  * @param {StartWatchRequest} startWatchRequest
6149
6183
  * @param {*} [options] Override http request option.
6184
+ * @deprecated
6150
6185
  * @throws {RequiredError}
6151
6186
  */
6152
6187
  startWatching(startWatchRequest: StartWatchRequest, options?: RawAxiosRequestConfig): Promise< AxiosResponse<void, any, {}, any>>;
6153
6188
  /**
6154
- * Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
6189
+ * **DEPRECATED**: use the admin API\'s `DELETE /watch-mode` (`admin-api-doc.yaml`); watch mode is an operator\'s control, not part of serving. This route is removed in a later release. Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
6155
6190
  * @summary Stop file watching
6156
6191
  * @param {*} [options] Override http request option.
6192
+ * @deprecated
6157
6193
  * @throws {RequiredError}
6158
6194
  */
6159
6195
  stopWatching(options?: RawAxiosRequestConfig): Promise< AxiosResponse<void, any, {}, any>>;
@@ -1,4 +1,4 @@
1
- import { A as e, a as i, b as o, c as t, d as n, e as r, C as p, f as u, g as m, h as A, i as l, j as E, k as c, l as b, m as y, n as C, o as d, p as g, q as F, r as P, s as S, t as k, u as D, D as M, v as R, w as h, x, y as T, z as v, B as f, E as N, F as z, G as L, H as K, I as O, J as Q, K as I, L as W, M as B, N as w, O as G, P as q, Q as U, R as j, S as H, T as J, U as V, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as ia, a2 as oa, a3 as ta, a4 as na, a5 as ra, a6 as pa, a7 as ua, a8 as ma, a9 as Aa, aa as la, ab as Ea, ac as ca, ad as ba, ae as ya, af as Ca, ag as da, ah as ga, ai as Fa, aj as Pa, ak as Sa, al as ka, am as Da, an as Ma, ao as Ra, ap as ha, aq as xa, ar as Ta, as as va, at as fa, au as Na, av as za, aw as La, ax as Ka, ay as Oa, az as Qa, aA as Ia, aB as Wa, aC as Ba, aD as wa, aE as Ga, aF as qa, aG as Ua, aH as ja, aI as Ha, aJ as Ja, aK as Va, aL as Xa, aM as Ya, aN as Za, aO as _a, aP as $a, aQ as as, aR as ss, aS as es, aT as is, aU as os, aV as ts, aW as ns, aX as rs, aY as ps, aZ as us, a_ as ms, a$ as As, b0 as ls, b1 as Es, b2 as cs, b3 as bs, b4 as ys, b5 as Cs, b6 as ds, b7 as gs, b8 as Fs, b9 as Ps } from "../ServerProvider-D7neZcTk.es.js";
1
+ import { A as e, a as i, b as o, c as t, d as n, e as r, C as p, f as u, g as m, h as A, i as l, j as E, k as c, l as b, m as y, n as C, o as d, p as g, q as F, r as P, s as S, t as k, u as D, D as M, v as R, w as h, x, y as T, z as v, B as f, E as N, F as z, G as L, H as K, I as O, J as Q, K as I, L as W, M as B, N as w, O as G, P as q, Q as U, R as j, S as H, T as J, U as V, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as ia, a2 as oa, a3 as ta, a4 as na, a5 as ra, a6 as pa, a7 as ua, a8 as ma, a9 as Aa, aa as la, ab as Ea, ac as ca, ad as ba, ae as ya, af as Ca, ag as da, ah as ga, ai as Fa, aj as Pa, ak as Sa, al as ka, am as Da, an as Ma, ao as Ra, ap as ha, aq as xa, ar as Ta, as as va, at as fa, au as Na, av as za, aw as La, ax as Ka, ay as Oa, az as Qa, aA as Ia, aB as Wa, aC as Ba, aD as wa, aE as Ga, aF as qa, aG as Ua, aH as ja, aI as Ha, aJ as Ja, aK as Va, aL as Xa, aM as Ya, aN as Za, aO as _a, aP as $a, aQ as as, aR as ss, aS as es, aT as is, aU as os, aV as ts, aW as ns, aX as rs, aY as ps, aZ as us, a_ as ms, a$ as As, b0 as ls, b1 as Es, b2 as cs, b3 as bs, b4 as ys, b5 as Cs, b6 as ds, b7 as gs, b8 as Fs, b9 as Ps } from "../ServerProvider-B6RLAbgV.es.js";
2
2
  export {
3
3
  e as AgentsApi,
4
4
  i as AgentsApiAxiosParamCreator,
@@ -1,7 +1,14 @@
1
1
  import { TextTile } from './document';
2
2
  export declare const TEXT_TILE_PLACEHOLDER = "Write markdown: # heading, **bold**, - list";
3
- /** A text tile as the builder draws it: the reader's prose frame, its markdown edited in place. */
4
- export declare function TextTileBody({ tile, onChange, }: {
3
+ /**
4
+ * A text tile as the builder draws it: the reader's prose frame, its markdown edited in place.
5
+ *
6
+ * `sized`: the tile has a set height (a `rowspan`, or a placed report's rows), so prose taller
7
+ * than it scrolls inside, as the reader scrolls it, rather than running on under the tiles
8
+ * below. Left to flow, the frame is as tall as the prose and nothing clips.
9
+ */
10
+ export declare function TextTileBody({ tile, sized, onChange, }: {
5
11
  tile: TextTile;
12
+ sized?: boolean;
6
13
  onChange: (markdown: string) => void;
7
14
  }): import("react/jsx-runtime").JSX.Element;
@@ -36,12 +36,12 @@ export interface CellReportProps {
36
36
  *
37
37
  * That is every committed change. Under `## autorun=false` a change is
38
38
  * committed on Apply, so reports are batched; otherwise every change is
39
- * committed and typing in a text control reports per keystroke. It does NOT
40
- * run per keystroke: a changed value waits `GIVEN_SETTLE_MS` before
41
- * anything is dispatched, so a burst of typing produces one run. A run that
42
- * does start supersedes and aborts the one before it. The REPORTS are still
43
- * per keystroke, so a host doing something expensive per call should
44
- * debounce.
39
+ * committed. A changed value waits `GIVEN_SETTLE_MS` before anything is
40
+ * dispatched, so a burst of changes produces one run. A run that
41
+ * does start supersedes and aborts the one before it. A text, number, date
42
+ * or slider control commits once it settles, so typed text runs after both
43
+ * waits; the wait here still covers pickers, keyboard slider steps, drill
44
+ * and Reset, which commit at once.
45
45
  *
46
46
  * `managed` names every given this report declares, set or not. A host
47
47
  * writing to a shared query string needs it: `givens` alone says which
@@ -1,13 +1,10 @@
1
1
  /**
2
- * How long a changed parameter has to stay changed before the notebook runs.
2
+ * How long a changed value has to stay changed before it is acted on: a given
3
+ * input commits after it, and the notebook waits it again before running.
3
4
  *
4
- * Aborting the superseded run is not enough on its own: an abort cancels the
5
- * HTTP request, but the cells already dispatched have reached the server and go
6
- * on compiling and running against the customer's warehouse, and their answers
7
- * are then thrown away. So autorun on a text control put one wave of doomed
8
- * queries on that warehouse per keystroke. `origin/main` bounded the load by
9
- * refusing to start a second run at all, which dropped the newest values;
10
- * waiting for the value to settle bounds it without making that trade.
5
+ * Aborting a superseded run is not enough on its own: an abort cancels the
6
+ * HTTP request, but cells already dispatched have reached the server and go on
7
+ * running against the customer's warehouse, and their answers are thrown away.
11
8
  */
12
9
  export declare const GIVEN_SETTLE_MS = 400;
13
10
  /** `value`, once it has stayed the same for `ms`; the first value is returned at once. */
@@ -0,0 +1,33 @@
1
+ import { KeyboardEvent } from 'react';
2
+ /**
3
+ * A control's own copy of a value that is applied the moment it is committed.
4
+ *
5
+ * A draft the reader has edited is the source of truth while the field is
6
+ * focused, so a value echoing back from the URL cannot overwrite keystrokes
7
+ * typed since; a field the reader has not edited follows `committed`. An edited
8
+ * draft commits on blur, on Enter, and once it has settled (not mid-IME
9
+ * composition), each only if it differs from `committed`. A change made while
10
+ * the field is not focused (a calendar pick) commits at once. Mount and an
11
+ * untouched focus never commit.
12
+ *
13
+ * `unset` says `committed` is the empty display of a value that was never
14
+ * set, so an edit that lands back on that display still commits it: the
15
+ * reader emptied the field on purpose.
16
+ */
17
+ export declare function useSettledDraft<T>(committed: T, commit: (draft: T) => void, { same, unset, }?: {
18
+ same?: (a: T, b: T) => boolean;
19
+ unset?: boolean;
20
+ }): {
21
+ draft: T;
22
+ /** Show `next` as typed; applies it now if the field is not focused. */
23
+ change: (next: T) => void;
24
+ /** Drop the draft for `next` without committing, for a clear. */
25
+ reset: (next: T) => void;
26
+ bind: {
27
+ onFocus: () => void;
28
+ onBlur: () => void;
29
+ onKeyDown: (e: KeyboardEvent) => void;
30
+ onCompositionStart: () => void;
31
+ onCompositionEnd: () => void;
32
+ };
33
+ };