@query-farm/vgi 0.37.0 → 0.37.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@query-farm/vgi",
3
- "version": "0.37.0",
3
+ "version": "0.37.1",
4
4
  "description": "TypeScript framework for extending DuckDB with user-defined functions via the Vector Gateway Interface (VGI) over Arrow IPC.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Query Farm LLC (https://query.farm)",
@@ -82,16 +82,19 @@ export interface AttachOptionSpec {
82
82
  * The option carries a credential: an API key, a token, a password, or
83
83
  * anything else that must not be shown, stored or logged in plain text.
84
84
  *
85
- * Credential options **MUST** be declared `secret: true`. Clients and the
86
- * DuckDB extension use the flag to mask the value, keep it out of result
87
- * cache keys (the extension stores a salted hash instead), `duckdb_databases()`,
88
- * logs, telemetry, shared links and exported configuration. They can also
89
- * supply it from a `vgi_attach` DuckDB secret, so the ATTACH statement never
90
- * carries it:
85
+ * Credential options **MUST** be declared `secret: true`. The value is still
86
+ * passed inline as an ordinary ATTACH option; the flag tells the DuckDB
87
+ * extension to redact it from `duckdb_databases()`, keep only a salted hash
88
+ * of it in its result-cache key, and never log it. Clients use the flag to
89
+ * mask the field and keep the value out of shared links and exported
90
+ * configuration.
91
+ *
92
+ * To keep the credential out of the SQL text itself, pass it as an
93
+ * expression:
91
94
  *
92
95
  * ```sql
93
- * CREATE SECRET (TYPE vgi_attach, SCOPE 'https://worker.example.com', api_key 'sk-...');
94
- * ATTACH 'sales' (TYPE vgi, LOCATION 'https://worker.example.com');
96
+ * ATTACH 'sales' (TYPE vgi, LOCATION 'https://worker.example.com',
97
+ * api_key getenv('SALES_API_KEY'));
95
98
  * ```
96
99
  *
97
100
  * Combines with `required` (a credential the catalog cannot attach without,