@thingd/cli 0.49.2 → 0.49.4

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.
@@ -41,16 +41,16 @@ export async function createProject(config, name, organizationId) {
41
41
  return request(config, "/projects", { method: "POST", body });
42
42
  }
43
43
  export async function listInstances(config, projectId) {
44
- return request(config, `/api/projects/${projectId}/instances`);
44
+ return request(config, `/projects/${projectId}/instances`);
45
45
  }
46
46
  export async function createInstance(config, projectId, name) {
47
- return request(config, `/api/projects/${projectId}/instances`, {
47
+ return request(config, `/projects/${projectId}/instances`, {
48
48
  method: "POST",
49
49
  body: { name },
50
50
  });
51
51
  }
52
52
  export async function createApiKey(config, projectId, name) {
53
- return request(config, `/api/projects/${projectId}/api-keys`, {
53
+ return request(config, `/projects/${projectId}/api-keys`, {
54
54
  method: "POST",
55
55
  body: { name: name ?? "CLI key" },
56
56
  });
@@ -63,19 +63,19 @@ export async function listOrganizations(config) {
63
63
  return request(config, "/organizations");
64
64
  }
65
65
  export async function getOrganization(config, orgId) {
66
- return request(config, `/api/organizations/${orgId}`);
66
+ return request(config, `/organizations/${orgId}`);
67
67
  }
68
68
  export async function listOrganizationMembers(config, orgId) {
69
- return request(config, `/api/organizations/${orgId}/members`);
69
+ return request(config, `/organizations/${orgId}/members`);
70
70
  }
71
71
  export async function addOrganizationMember(config, orgId, userId, role = "member") {
72
- return request(config, `/api/organizations/${orgId}/members`, {
72
+ return request(config, `/organizations/${orgId}/members`, {
73
73
  method: "POST",
74
74
  body: { userId, role },
75
75
  });
76
76
  }
77
77
  export async function removeOrganizationMember(config, orgId, userId) {
78
- return request(config, `/api/organizations/${orgId}/members/${userId}`, {
78
+ return request(config, `/organizations/${orgId}/members/${userId}`, {
79
79
  method: "DELETE",
80
80
  });
81
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thingd/cli",
3
- "version": "0.49.2",
3
+ "version": "0.49.4",
4
4
  "description": "CLI, Interactive TUI Dashboard, and MCP server for thingd — a fast object-first data engine for applications and AI agents.",
5
5
  "type": "module",
6
6
  "homepage": "https://engine.thingd.cloud",
@@ -45,7 +45,7 @@
45
45
  "cli-table3": "^0.6.5",
46
46
  "picocolors": "^1.1.1",
47
47
  "zod": "^4.4.3",
48
- "@thingd/sdk": "0.49.2"
48
+ "@thingd/sdk": "0.49.4"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=24.0.0"