@lightdash/cli 2.122.1 → 2.124.0

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.
@@ -5,6 +5,7 @@
5
5
  If the app is linked to one or more **external connections** (third-party HTTP APIs the project admin configured), you'll see a `[Linked external connections — each file in /tmp/external-data/ ...]` block at the top of this prompt and one JSON file per connection at **`/tmp/external-data/{alias}.json`**.
6
6
 
7
7
  Each file documents one connection:
8
+
8
9
  - `instructions` — admin-authored notes on how to use this API (auth quirks, pagination, which endpoints matter, response caveats). Present only when the admin wrote them; when present, read and follow them.
9
10
  - `signature` / `howToCall` — the exact typed SDK call. Auth is injected by Lightdash — never include credentials or API keys.
10
11
  - `origin` / `requestUrl` — the connection's base origin (host only) and how the URL is formed: **the full request URL is `origin + path`.** Your `path` is appended to the origin verbatim — the origin and the path prefix are NOT auto-prepended.
@@ -24,20 +25,24 @@ Lightdash that stores the origin (host) and credentials. The app references it b
24
25
 
25
26
  ```tsx
26
27
  const res = await lightdash.externalFetch('stripe', {
27
- method: 'GET', // 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' — defaults to 'GET'. Must be one of the connection's allowed methods.
28
- path: '/v1/charges', // COMPLETE path appended to the connection's origin (host). Full URL = origin + path. Must start with an allowed prefix; it is NOT relative to the prefix.
28
+ method: 'GET', // 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' — defaults to 'GET'. Must be one of the connection's allowed methods.
29
+ path: '/v1/charges', // COMPLETE path appended to the connection's origin (host). Full URL = origin + path. Must start with an allowed prefix; it is NOT relative to the prefix.
29
30
  query: { limit: '10' }, // Record<string, string> — values MUST be strings
30
31
  // body: { ... }, // JSON body — sent for every method except GET
31
32
  });
32
33
 
33
34
  // res.status — upstream HTTP status (number)
34
35
  // res.contentType — upstream Content-Type
36
+ // res.headers — safe upstream response headers (lowercase names)
35
37
  // res.body — parsed JSON (or raw text for non-JSON)
36
38
  // res.truncated — true if Lightdash truncated an oversized response
37
39
  ```
38
40
 
39
41
  Lightdash resolves the alias to the stored connection, attaches its
40
42
  credentials, makes the request server-side, and returns the response.
43
+ `res.headers` includes lowercase cache, pagination, and rate-limit headers such
44
+ as `retry-after`, `ratelimit-*`, `x-ratelimit-*`, `etag`, and `link`. Other
45
+ upstream headers are deliberately omitted.
41
46
 
42
47
  **Rules — follow exactly:**
43
48
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/cli",
3
- "version": "2.122.1",
3
+ "version": "2.124.0",
4
4
  "description": "Lightdash CLI tool",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -45,8 +45,8 @@
45
45
  "unique-names-generator": "4.7.1",
46
46
  "uuid": "11.1.1",
47
47
  "yaml": "2.8.3",
48
- "@lightdash/common": "2.122.1",
49
- "@lightdash/warehouses": "2.122.1"
48
+ "@lightdash/common": "2.124.0",
49
+ "@lightdash/warehouses": "2.124.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/inquirer": "8.2.4",