@wspc/cli 0.0.20 → 0.0.22
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/cli.js +8 -6
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +30 -29
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/spec/openapi.json +3432 -4900
package/dist/index.d.ts
CHANGED
|
@@ -8,10 +8,6 @@ type Comment = {
|
|
|
8
8
|
updated_at: number;
|
|
9
9
|
deleted_at?: number;
|
|
10
10
|
};
|
|
11
|
-
type CreateProjectBody = {
|
|
12
|
-
name: string;
|
|
13
|
-
default_todo_type_id?: string;
|
|
14
|
-
};
|
|
15
11
|
type Project = {
|
|
16
12
|
id: string;
|
|
17
13
|
org_id: string;
|
|
@@ -23,6 +19,10 @@ type Project = {
|
|
|
23
19
|
updated_at: number;
|
|
24
20
|
deleted_at?: number;
|
|
25
21
|
};
|
|
22
|
+
type CreateProjectBody = {
|
|
23
|
+
name: string;
|
|
24
|
+
default_todo_type_id?: string;
|
|
25
|
+
};
|
|
26
26
|
type RecurrenceRule = {
|
|
27
27
|
id: string;
|
|
28
28
|
user_id: string;
|
|
@@ -38,6 +38,28 @@ type RecurrenceRule = {
|
|
|
38
38
|
updated_at: number;
|
|
39
39
|
deleted_at?: number;
|
|
40
40
|
};
|
|
41
|
+
type Todo = {
|
|
42
|
+
id: string;
|
|
43
|
+
user_id: string;
|
|
44
|
+
/**
|
|
45
|
+
* Project id this todo belongs to. Use /todo/projects/{id} to inspect the project.
|
|
46
|
+
*/
|
|
47
|
+
project_id: string;
|
|
48
|
+
title: string;
|
|
49
|
+
description?: string;
|
|
50
|
+
status: 'open' | 'in_progress' | 'done' | 'cancelled';
|
|
51
|
+
parent_id: string | null;
|
|
52
|
+
child_count: number;
|
|
53
|
+
version: number;
|
|
54
|
+
created_at: number;
|
|
55
|
+
updated_at: number;
|
|
56
|
+
deleted_at?: number;
|
|
57
|
+
due_at?: string;
|
|
58
|
+
type_id: string;
|
|
59
|
+
custom_fields?: {
|
|
60
|
+
[key: string]: string | Array<string>;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
41
63
|
type CreateTodoBody = {
|
|
42
64
|
/**
|
|
43
65
|
* Short human-readable summary of the work item. Required, non-empty. Shown as the primary label in CLI list output.
|
|
@@ -63,6 +85,7 @@ type CreateTodoBody = {
|
|
|
63
85
|
* Optional calendar due date in ISO date-only format (`YYYY-MM-DD`). Stored without timezone offsets to represent the same local calendar day globally. Pass `""` or omit the field to skip setting a due date. Passing `null` is strictly rejected.
|
|
64
86
|
*/
|
|
65
87
|
due_at?: string;
|
|
88
|
+
idempotency_key?: string;
|
|
66
89
|
/**
|
|
67
90
|
* Type id this todo belongs to. Omit to use the project's default type. When project_id is also supplied, the type must belong to the same project. New server-generated type ids use typ_<ULID>; legacy ids remain accepted.
|
|
68
91
|
*/
|
|
@@ -74,28 +97,6 @@ type CreateTodoBody = {
|
|
|
74
97
|
[key: string]: string | Array<string>;
|
|
75
98
|
};
|
|
76
99
|
};
|
|
77
|
-
type Todo = {
|
|
78
|
-
id: string;
|
|
79
|
-
user_id: string;
|
|
80
|
-
/**
|
|
81
|
-
* Project id this todo belongs to. Use /todo/projects/{id} to inspect the project.
|
|
82
|
-
*/
|
|
83
|
-
project_id: string;
|
|
84
|
-
title: string;
|
|
85
|
-
description?: string;
|
|
86
|
-
status: 'open' | 'in_progress' | 'done' | 'cancelled';
|
|
87
|
-
parent_id: string | null;
|
|
88
|
-
child_count: number;
|
|
89
|
-
version: number;
|
|
90
|
-
created_at: number;
|
|
91
|
-
updated_at: number;
|
|
92
|
-
deleted_at?: number;
|
|
93
|
-
due_at?: string;
|
|
94
|
-
type_id: string;
|
|
95
|
-
custom_fields?: {
|
|
96
|
-
[key: string]: string | Array<string>;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
100
|
type TodoType = {
|
|
100
101
|
id: string;
|
|
101
102
|
/**
|
|
@@ -621,9 +622,9 @@ interface TDataShape {
|
|
|
621
622
|
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
622
623
|
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'>);
|
|
623
624
|
|
|
624
|
-
declare const VERSION = "0.0.
|
|
625
|
-
declare const SPEC_SHA = "
|
|
626
|
-
declare const SPEC_FETCHED_AT = "2026-06-
|
|
625
|
+
declare const VERSION = "0.0.22";
|
|
626
|
+
declare const SPEC_SHA = "a2dfa511";
|
|
627
|
+
declare const SPEC_FETCHED_AT = "2026-06-20T14:16:47.131Z";
|
|
627
628
|
declare const API_BASE = "https://api.wspc.ai";
|
|
628
629
|
|
|
629
630
|
type WspcClientOptions = {
|
package/dist/index.js
CHANGED
|
@@ -784,9 +784,9 @@ var createClient = (config = {}) => {
|
|
|
784
784
|
};
|
|
785
785
|
|
|
786
786
|
// src/version.ts
|
|
787
|
-
var VERSION = "0.0.
|
|
788
|
-
var SPEC_SHA = "
|
|
789
|
-
var SPEC_FETCHED_AT = "2026-06-
|
|
787
|
+
var VERSION = "0.0.22";
|
|
788
|
+
var SPEC_SHA = "a2dfa511";
|
|
789
|
+
var SPEC_FETCHED_AT = "2026-06-20T14:16:47.131Z";
|
|
790
790
|
var API_BASE = "https://api.wspc.ai";
|
|
791
791
|
|
|
792
792
|
// src/handwritten/auth/sdk-auth.ts
|