@malloy-publisher/sdk 0.10.4 → 0.10.6

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.
@@ -514,7 +514,7 @@ export interface Connection {
514
514
  */
515
515
  'withheldFields'?: Array<string>;
516
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. Each statement run on it emits a `statement_usage` log record and counts in `publisher_statement_usage_total`, for whoever meters the catalog. And raw SQL on it runs only as a single SELECT: `sqlQuery` and `sqlSource` answer 400 for anything else (another statement type, or more than one statement), and `sqlTemporaryTable` answers 400 always. This is a rule on statements, not on what a SELECT reads: that is bounded by the session\'s storage secret and catalog role. Absent or false is the pre-existing behavior.
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. Each statement run on it emits a `statement_usage` log record and counts in `publisher_statement_usage_total`, for whoever meters the catalog. And raw SQL on it runs only as a single SELECT: `sqlQuery` and `sqlSource` answer 400 for anything else (another statement type, or more than one statement), and `sqlTemporaryTable` answers 400 always. This is a rule on statements, not on what a SELECT reads: that is bounded by the catalog role and by the session\'s storage secret, which on a managed connection attached read-only is scoped to the `main` schema\'s recorded path, so a SELECT reads only that schema\'s files; another schema\'s files, and any other object in the bucket, are unsigned (403). Absent or false is the pre-existing behavior.
518
518
  */
519
519
  'managed'?: boolean;
520
520
  /**
@@ -958,7 +958,7 @@ export interface DucklakeConnectionCatalog {
958
958
  */
959
959
  export interface DucklakeConnectionStorage {
960
960
  /**
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.
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. Either way the storage secret is scoped to the data path, the given one or the recorded one: a read of any other object through this connection is unsigned, and on S3 the host\'s AWS_* environment never signs it either. A catalog with neither is not attached.
962
962
  */
963
963
  'bucketUrl'?: string;
964
964
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@malloy-publisher/sdk",
3
3
  "description": "Malloy Publisher SDK",
4
- "version": "0.10.4",
4
+ "version": "0.10.6",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.es.js",