@wspc/cli 0.0.8 → 0.0.10

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
@@ -1,3 +1,13 @@
1
+ type Comment = {
2
+ id: string;
3
+ todo_id: string;
4
+ user_id: string;
5
+ org_id: string;
6
+ content: string;
7
+ created_at: number;
8
+ updated_at: number;
9
+ deleted_at?: number;
10
+ };
1
11
  type CreateProjectBody = {
2
12
  name: string;
3
13
  default_todo_type_id?: string;
@@ -111,11 +121,41 @@ type TodoType = {
111
121
  updated_at: number;
112
122
  deleted_at?: number;
113
123
  };
124
+ type TodoWithRelations = {
125
+ id: string;
126
+ user_id: string;
127
+ /**
128
+ * Project id this todo belongs to. Use /todo/projects/{id} to inspect the project.
129
+ */
130
+ project_id: string;
131
+ title: string;
132
+ description?: string;
133
+ status: 'open' | 'in_progress' | 'done' | 'cancelled';
134
+ parent_id: string | null;
135
+ child_count: number;
136
+ version: number;
137
+ created_at: number;
138
+ updated_at: number;
139
+ deleted_at?: number;
140
+ due_at?: string;
141
+ type_id: string;
142
+ custom_fields?: {
143
+ [key: string]: string | Array<string>;
144
+ };
145
+ children?: Array<Todo>;
146
+ comments?: Array<Comment>;
147
+ children_next_cursor?: string;
148
+ comments_next_cursor?: string;
149
+ };
114
150
  type ListRecurrenceRulesResponse = {
115
151
  rules: Array<RecurrenceRule>;
116
152
  };
117
153
  type ListTodosResponse = {
118
154
  todos: Array<Todo>;
155
+ /**
156
+ * Opaque cursor for the next page. Absent on the last page.
157
+ */
158
+ next_cursor?: string;
119
159
  };
120
160
  type UpdateTodoBody = {
121
161
  expected_version?: number;
@@ -191,6 +231,14 @@ type TodoListData = {
191
231
  sort_by?: string;
192
232
  order?: 'asc' | 'desc';
193
233
  include_orphan_fields?: string | Array<string>;
234
+ /**
235
+ * Max todos to return. Clamped to [1, 200]. Default 50 server-side.
236
+ */
237
+ limit?: string;
238
+ /**
239
+ * Opaque pagination cursor returned in `next_cursor` of a previous response.
240
+ */
241
+ cursor?: string;
194
242
  };
195
243
  url: '/todo/items';
196
244
  };
@@ -536,9 +584,9 @@ interface TDataShape {
536
584
  type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
537
585
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
538
586
 
539
- declare const VERSION = "0.0.8";
540
- declare const SPEC_SHA = "9735a255";
541
- declare const SPEC_FETCHED_AT = "2026-06-08T08:32:23.241Z";
587
+ declare const VERSION = "0.0.10";
588
+ declare const SPEC_SHA = "e0b67542";
589
+ declare const SPEC_FETCHED_AT = "2026-06-09T03:25:50.002Z";
542
590
  declare const API_BASE = "https://api.wspc.ai";
543
591
 
544
592
  type WspcClientOptions = {
@@ -577,7 +625,7 @@ declare class TodosResource {
577
625
  constructor(client: Client);
578
626
  create(body: TodoCreateData["body"]): Promise<Todo | undefined>;
579
627
  list(query: TodoListData["query"]): Promise<ListTodosResponse | undefined>;
580
- get(id: string): Promise<Todo | undefined>;
628
+ get(id: string): Promise<TodoWithRelations | undefined>;
581
629
  update(id: string, body: TodoUpdateData["body"]): Promise<Todo | undefined>;
582
630
  delete(id: string): Promise<void>;
583
631
  }
package/dist/index.js CHANGED
@@ -902,9 +902,9 @@ var todoUpdate = (options) => (options.client ?? client).patch({
902
902
  });
903
903
 
904
904
  // src/version.ts
905
- var VERSION = "0.0.8";
906
- var SPEC_SHA = "9735a255";
907
- var SPEC_FETCHED_AT = "2026-06-08T08:32:23.241Z";
905
+ var VERSION = "0.0.10";
906
+ var SPEC_SHA = "e0b67542";
907
+ var SPEC_FETCHED_AT = "2026-06-09T03:25:50.002Z";
908
908
  var API_BASE = "https://api.wspc.ai";
909
909
 
910
910
  // src/index.ts