@lightdash-tools/client 0.1.0 → 0.1.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 (2) hide show
  1. package/README.md +9 -8
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -42,9 +42,9 @@ const client = new LightdashClient({
42
42
  personalAccessToken: 'your-pat-token',
43
43
  });
44
44
 
45
- const project = await client.projects.getProject('project-uuid');
46
- const org = await client.organizations.getCurrentOrganization();
47
- const dashboards = await client.dashboards.listDashboards('project-uuid');
45
+ const project = await client.v1.projects.getProject('project-uuid');
46
+ const org = await client.v1.organizations.getCurrentOrganization();
47
+ const dashboards = await client.v1.dashboards.listDashboards('project-uuid');
48
48
  ```
49
49
 
50
50
  ### With environment variables (e.g. CI)
@@ -56,7 +56,7 @@ export LIGHTDASH_API_KEY=your-pat-token
56
56
 
57
57
  ```typescript
58
58
  const client = new LightdashClient();
59
- const project = await client.projects.getProject('project-uuid');
59
+ const project = await client.v1.projects.getProject('project-uuid');
60
60
  ```
61
61
 
62
62
  ### Request cancellation (AbortController)
@@ -91,12 +91,13 @@ const client = new LightdashClient({
91
91
 
92
92
  - `client.v1.projects` – get project, list projects, list charts
93
93
  - `client.v1.organizations` – get current organization
94
- - `client.v1.charts` – list charts
94
+ - `client.v1.explores` – list explores, get explore
95
+ - `client.v1.charts` – list charts, get/upsert charts-as-code
95
96
  - `client.v1.dashboards` – list dashboards
96
97
  - `client.v1.spaces` – list/get/create/update/delete spaces; grant/revoke user and group access to spaces
97
98
  - `client.v1.projectAccess` – list/grant/get/update/revoke project access for users; list/add/remove/update project access for groups (see [Assign or update project access for a list of users](https://docs.lightdash.com/api-reference/v1/recipes))
98
- - `client.v1.query` – run metric queries
99
- - `client.v1.users` – list/get/update organization members
99
+ - `client.v1.query` – run/compile metric queries
100
+ - `client.v1.users` – list/get/update/delete organization members
100
101
  - `client.v1.groups` – list/create/update groups
101
102
  - `client.v1.aiAgents` – list AI agents (admin), list threads (admin), get/update AI organization settings
102
103
 
@@ -141,4 +142,4 @@ pnpm build --filter @lightdash-tools/client
141
142
 
142
143
  ## License
143
144
 
144
- ISC
145
+ Apache-2.0
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@lightdash-tools/client",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Client library for Lightdash AI.",
5
5
  "keywords": [],
6
- "license": "ISC",
6
+ "license": "Apache-2.0",
7
7
  "author": "",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
10
10
  "dependencies": {
11
11
  "axios": "^1.13.5",
12
12
  "bottleneck": "^2.19.5",
13
- "@lightdash-tools/common": "0.1.0"
13
+ "@lightdash-tools/common": "0.1.1"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/node": "^25.2.3"