@devpad/api 2.2.14 → 2.2.16

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/index.d.ts CHANGED
@@ -539,6 +539,17 @@ declare class ApiClient {
539
539
  }>>;
540
540
  };
541
541
  readonly user: {
542
+ /**
543
+ * Get the authenticated user's identity (id, name, github_id, task_view).
544
+ * Single source of truth for resolving `owner_id` on task/milestone/goal
545
+ * upserts — the API rejects any owner_id that doesn't match the caller.
546
+ */
547
+ me: () => Promise<ApiResult<{
548
+ id: string;
549
+ name: string | null;
550
+ github_id: number | null;
551
+ task_view: string;
552
+ }>>;
542
553
  /**
543
554
  * Get user activity history
544
555
  */
package/dist/index.js CHANGED
@@ -971,6 +971,16 @@ var ApiClient2 = class {
971
971
  })
972
972
  };
973
973
  this.user = {
974
+ /**
975
+ * Get the authenticated user's identity (id, name, github_id, task_view).
976
+ * Single source of truth for resolving `owner_id` on task/milestone/goal
977
+ * upserts — the API rejects any owner_id that doesn't match the caller.
978
+ */
979
+ me: () => wrap(
980
+ () => this.clients.auth.get(
981
+ "/user/me"
982
+ )
983
+ ),
974
984
  /**
975
985
  * Get user activity history
976
986
  */
@@ -1757,6 +1767,12 @@ var tools = {
1757
1767
  execute: async (client, input) => unwrap(await client.tasks.history.get(input.task_id))
1758
1768
  }),
1759
1769
  // User operations
1770
+ devpad_user_me: define_tool({
1771
+ name: "devpad_user_me",
1772
+ description: "Get the authenticated user's identity (id, name, github_id, task_view)",
1773
+ inputSchema: z.object({}),
1774
+ execute: async (client) => unwrap(await client.user.me())
1775
+ }),
1760
1776
  devpad_user_history: define_tool({
1761
1777
  name: "devpad_user_history",
1762
1778
  description: "Get user activity history",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devpad/api",
3
- "version": "2.2.14",
3
+ "version": "2.2.16",
4
4
  "description": "TypeScript client library for the devpad API - project and task management made simple",
5
5
  "keywords": [
6
6
  "api",
@@ -68,7 +68,7 @@
68
68
  "zod": "^3.22.4"
69
69
  },
70
70
  "devDependencies": {
71
- "@devpad/schema": "^2.2.14",
71
+ "@devpad/schema": "^2.2.16",
72
72
  "@types/node": "^20.11.24",
73
73
  "bun-types": "latest",
74
74
  "tsup": "^8.0.0",