@thingd/cli 0.47.2 → 0.47.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.
- package/dist/lib/cloud-api.js +7 -7
- package/package.json +2 -2
package/dist/lib/cloud-api.js
CHANGED
|
@@ -28,17 +28,17 @@ async function request(config, path, opts = {}) {
|
|
|
28
28
|
return res.json();
|
|
29
29
|
}
|
|
30
30
|
export async function getMe(config) {
|
|
31
|
-
return request(config, "/
|
|
31
|
+
return request(config, "/users/me");
|
|
32
32
|
}
|
|
33
33
|
export async function listProjects(config) {
|
|
34
|
-
return request(config, "/
|
|
34
|
+
return request(config, "/projects");
|
|
35
35
|
}
|
|
36
36
|
export async function createProject(config, name, organizationId) {
|
|
37
37
|
const body = { name };
|
|
38
38
|
if (organizationId) {
|
|
39
39
|
body.organizationId = organizationId;
|
|
40
40
|
}
|
|
41
|
-
return request(config, "/
|
|
41
|
+
return request(config, "/projects", { method: "POST", body });
|
|
42
42
|
}
|
|
43
43
|
export async function listInstances(config, projectId) {
|
|
44
44
|
return request(config, `/api/projects/${projectId}/instances`);
|
|
@@ -57,10 +57,10 @@ export async function createApiKey(config, projectId, name) {
|
|
|
57
57
|
}
|
|
58
58
|
// ── Organization API ─────────────────────────────────────────────────
|
|
59
59
|
export async function createOrganization(config, name) {
|
|
60
|
-
return request(config, "/
|
|
60
|
+
return request(config, "/organizations", { method: "POST", body: { name } });
|
|
61
61
|
}
|
|
62
62
|
export async function listOrganizations(config) {
|
|
63
|
-
return request(config, "/
|
|
63
|
+
return request(config, "/organizations");
|
|
64
64
|
}
|
|
65
65
|
export async function getOrganization(config, orgId) {
|
|
66
66
|
return request(config, `/api/organizations/${orgId}`);
|
|
@@ -94,8 +94,8 @@ async function requestUnauthenticated(apiUrl, path, body) {
|
|
|
94
94
|
return res.json();
|
|
95
95
|
}
|
|
96
96
|
export async function startCliAuth(config) {
|
|
97
|
-
return requestUnauthenticated(config.url ?? DEFAULT_API_URL, "/
|
|
97
|
+
return requestUnauthenticated(config.url ?? DEFAULT_API_URL, "/auth/cli/start", {});
|
|
98
98
|
}
|
|
99
99
|
export async function pollCliAuth(config, code) {
|
|
100
|
-
return requestUnauthenticated(config.url ?? DEFAULT_API_URL, "/
|
|
100
|
+
return requestUnauthenticated(config.url ?? DEFAULT_API_URL, "/auth/cli/poll", { code });
|
|
101
101
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thingd/cli",
|
|
3
|
-
"version": "0.47.
|
|
3
|
+
"version": "0.47.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.47.
|
|
48
|
+
"@thingd/sdk": "0.47.4"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=24.0.0"
|