@doist/todoist-sdk 9.5.0 → 9.6.0

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.
@@ -3,20 +3,10 @@ import { WebhookEventSchema, type WebhookEvent } from '../apps/types.js';
3
3
  /**
4
4
  * A single branch covering every event whose payload has not yet been typed
5
5
  * per resource. Follow-up PRs will replace slices of this with dedicated
6
- * variants (projects, sections, filters, reminders).
6
+ * variants (filters, reminders).
7
7
  */
8
8
  export declare const UntypedWebhookPayloadSchema: z.ZodObject<{
9
9
  eventName: z.ZodEnum<{
10
- "project:added": "project:added";
11
- "project:updated": "project:updated";
12
- "project:deleted": "project:deleted";
13
- "project:archived": "project:archived";
14
- "project:unarchived": "project:unarchived";
15
- "section:added": "section:added";
16
- "section:updated": "section:updated";
17
- "section:deleted": "section:deleted";
18
- "section:archived": "section:archived";
19
- "section:unarchived": "section:unarchived";
20
10
  "filter:added": "filter:added";
21
11
  "filter:updated": "filter:updated";
22
12
  "filter:deleted": "filter:deleted";
@@ -46,9 +36,10 @@ export declare const UntypedWebhookPayloadSchema: z.ZodObject<{
46
36
  *
47
37
  * Typed today: `item:*` events carry a parsed {@link Task}; `note:*` events
48
38
  * carry a parsed comment (item-comment or project-comment); `label:*` events
49
- * carry a parsed label. Other events still expose `eventData` as `unknown`;
50
- * they will be narrowed in follow-up PRs (projects, sections, filters,
51
- * reminders).
39
+ * carry a parsed label; `project:*` events carry a parsed {@link Project}
40
+ * (personal or workspace); `section:*` events carry a parsed
41
+ * {@link WebhookSection}. Other events still expose `eventData` as
42
+ * `unknown`; they will be narrowed in follow-up PRs (filters, reminders).
52
43
  */
53
44
  export declare const WebhookPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
54
45
  eventName: z.ZodLiteral<"item:added">;
@@ -1895,18 +1886,583 @@ export declare const WebhookPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
1895
1886
  isPremium: z.ZodBoolean;
1896
1887
  }, z.core.$strip>;
1897
1888
  triggeredAt: z.ZodCoercedDate<unknown>;
1889
+ }, z.core.$strip>, z.ZodObject<{
1890
+ eventName: z.ZodLiteral<"project:added">;
1891
+ eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
1892
+ url: string;
1893
+ id: string;
1894
+ canAssignTasks: boolean;
1895
+ childOrder: number;
1896
+ color: string;
1897
+ createdAt: Date | null;
1898
+ isArchived: boolean;
1899
+ isDeleted: boolean;
1900
+ isFavorite: boolean;
1901
+ isFrozen: boolean;
1902
+ name: string;
1903
+ updatedAt: Date | null;
1904
+ viewStyle: string;
1905
+ defaultOrder: number;
1906
+ description: string;
1907
+ isCollapsed: boolean;
1908
+ isShared: boolean;
1909
+ parentId: string | null;
1910
+ inboxProject: boolean;
1911
+ } | {
1912
+ url: string;
1913
+ id: string;
1914
+ canAssignTasks: boolean;
1915
+ childOrder: number;
1916
+ color: string;
1917
+ createdAt: Date | null;
1918
+ isArchived: boolean;
1919
+ isDeleted: boolean;
1920
+ isFavorite: boolean;
1921
+ isFrozen: boolean;
1922
+ name: string;
1923
+ updatedAt: Date | null;
1924
+ viewStyle: string;
1925
+ defaultOrder: number;
1926
+ description: string;
1927
+ isCollapsed: boolean;
1928
+ isShared: boolean;
1929
+ collaboratorRoleDefault: string;
1930
+ folderId: string | null;
1931
+ isInviteOnly: boolean | null;
1932
+ isLinkSharingEnabled: boolean;
1933
+ role: string | null;
1934
+ status: string;
1935
+ workspaceId: string;
1936
+ access?: {
1937
+ visibility: "restricted" | "team" | "public";
1938
+ } | undefined;
1939
+ }, unknown>>;
1940
+ version: z.ZodEnum<{
1941
+ 1: "1";
1942
+ }>;
1943
+ userId: z.ZodString;
1944
+ initiator: z.ZodObject<{
1945
+ id: z.ZodString;
1946
+ fullName: z.ZodString;
1947
+ email: z.ZodString;
1948
+ imageId: z.ZodNullable<z.ZodString>;
1949
+ isPremium: z.ZodBoolean;
1950
+ }, z.core.$strip>;
1951
+ triggeredAt: z.ZodCoercedDate<unknown>;
1952
+ }, z.core.$strip>, z.ZodObject<{
1953
+ eventName: z.ZodLiteral<"project:updated">;
1954
+ eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
1955
+ url: string;
1956
+ id: string;
1957
+ canAssignTasks: boolean;
1958
+ childOrder: number;
1959
+ color: string;
1960
+ createdAt: Date | null;
1961
+ isArchived: boolean;
1962
+ isDeleted: boolean;
1963
+ isFavorite: boolean;
1964
+ isFrozen: boolean;
1965
+ name: string;
1966
+ updatedAt: Date | null;
1967
+ viewStyle: string;
1968
+ defaultOrder: number;
1969
+ description: string;
1970
+ isCollapsed: boolean;
1971
+ isShared: boolean;
1972
+ parentId: string | null;
1973
+ inboxProject: boolean;
1974
+ } | {
1975
+ url: string;
1976
+ id: string;
1977
+ canAssignTasks: boolean;
1978
+ childOrder: number;
1979
+ color: string;
1980
+ createdAt: Date | null;
1981
+ isArchived: boolean;
1982
+ isDeleted: boolean;
1983
+ isFavorite: boolean;
1984
+ isFrozen: boolean;
1985
+ name: string;
1986
+ updatedAt: Date | null;
1987
+ viewStyle: string;
1988
+ defaultOrder: number;
1989
+ description: string;
1990
+ isCollapsed: boolean;
1991
+ isShared: boolean;
1992
+ collaboratorRoleDefault: string;
1993
+ folderId: string | null;
1994
+ isInviteOnly: boolean | null;
1995
+ isLinkSharingEnabled: boolean;
1996
+ role: string | null;
1997
+ status: string;
1998
+ workspaceId: string;
1999
+ access?: {
2000
+ visibility: "restricted" | "team" | "public";
2001
+ } | undefined;
2002
+ }, unknown>>;
2003
+ version: z.ZodEnum<{
2004
+ 1: "1";
2005
+ }>;
2006
+ userId: z.ZodString;
2007
+ initiator: z.ZodObject<{
2008
+ id: z.ZodString;
2009
+ fullName: z.ZodString;
2010
+ email: z.ZodString;
2011
+ imageId: z.ZodNullable<z.ZodString>;
2012
+ isPremium: z.ZodBoolean;
2013
+ }, z.core.$strip>;
2014
+ triggeredAt: z.ZodCoercedDate<unknown>;
2015
+ }, z.core.$strip>, z.ZodObject<{
2016
+ eventName: z.ZodLiteral<"project:deleted">;
2017
+ eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
2018
+ url: string;
2019
+ id: string;
2020
+ canAssignTasks: boolean;
2021
+ childOrder: number;
2022
+ color: string;
2023
+ createdAt: Date | null;
2024
+ isArchived: boolean;
2025
+ isDeleted: boolean;
2026
+ isFavorite: boolean;
2027
+ isFrozen: boolean;
2028
+ name: string;
2029
+ updatedAt: Date | null;
2030
+ viewStyle: string;
2031
+ defaultOrder: number;
2032
+ description: string;
2033
+ isCollapsed: boolean;
2034
+ isShared: boolean;
2035
+ parentId: string | null;
2036
+ inboxProject: boolean;
2037
+ } | {
2038
+ url: string;
2039
+ id: string;
2040
+ canAssignTasks: boolean;
2041
+ childOrder: number;
2042
+ color: string;
2043
+ createdAt: Date | null;
2044
+ isArchived: boolean;
2045
+ isDeleted: boolean;
2046
+ isFavorite: boolean;
2047
+ isFrozen: boolean;
2048
+ name: string;
2049
+ updatedAt: Date | null;
2050
+ viewStyle: string;
2051
+ defaultOrder: number;
2052
+ description: string;
2053
+ isCollapsed: boolean;
2054
+ isShared: boolean;
2055
+ collaboratorRoleDefault: string;
2056
+ folderId: string | null;
2057
+ isInviteOnly: boolean | null;
2058
+ isLinkSharingEnabled: boolean;
2059
+ role: string | null;
2060
+ status: string;
2061
+ workspaceId: string;
2062
+ access?: {
2063
+ visibility: "restricted" | "team" | "public";
2064
+ } | undefined;
2065
+ }, unknown>>;
2066
+ version: z.ZodEnum<{
2067
+ 1: "1";
2068
+ }>;
2069
+ userId: z.ZodString;
2070
+ initiator: z.ZodObject<{
2071
+ id: z.ZodString;
2072
+ fullName: z.ZodString;
2073
+ email: z.ZodString;
2074
+ imageId: z.ZodNullable<z.ZodString>;
2075
+ isPremium: z.ZodBoolean;
2076
+ }, z.core.$strip>;
2077
+ triggeredAt: z.ZodCoercedDate<unknown>;
2078
+ }, z.core.$strip>, z.ZodObject<{
2079
+ eventName: z.ZodLiteral<"project:archived">;
2080
+ eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
2081
+ url: string;
2082
+ id: string;
2083
+ canAssignTasks: boolean;
2084
+ childOrder: number;
2085
+ color: string;
2086
+ createdAt: Date | null;
2087
+ isArchived: boolean;
2088
+ isDeleted: boolean;
2089
+ isFavorite: boolean;
2090
+ isFrozen: boolean;
2091
+ name: string;
2092
+ updatedAt: Date | null;
2093
+ viewStyle: string;
2094
+ defaultOrder: number;
2095
+ description: string;
2096
+ isCollapsed: boolean;
2097
+ isShared: boolean;
2098
+ parentId: string | null;
2099
+ inboxProject: boolean;
2100
+ } | {
2101
+ url: string;
2102
+ id: string;
2103
+ canAssignTasks: boolean;
2104
+ childOrder: number;
2105
+ color: string;
2106
+ createdAt: Date | null;
2107
+ isArchived: boolean;
2108
+ isDeleted: boolean;
2109
+ isFavorite: boolean;
2110
+ isFrozen: boolean;
2111
+ name: string;
2112
+ updatedAt: Date | null;
2113
+ viewStyle: string;
2114
+ defaultOrder: number;
2115
+ description: string;
2116
+ isCollapsed: boolean;
2117
+ isShared: boolean;
2118
+ collaboratorRoleDefault: string;
2119
+ folderId: string | null;
2120
+ isInviteOnly: boolean | null;
2121
+ isLinkSharingEnabled: boolean;
2122
+ role: string | null;
2123
+ status: string;
2124
+ workspaceId: string;
2125
+ access?: {
2126
+ visibility: "restricted" | "team" | "public";
2127
+ } | undefined;
2128
+ }, unknown>>;
2129
+ version: z.ZodEnum<{
2130
+ 1: "1";
2131
+ }>;
2132
+ userId: z.ZodString;
2133
+ initiator: z.ZodObject<{
2134
+ id: z.ZodString;
2135
+ fullName: z.ZodString;
2136
+ email: z.ZodString;
2137
+ imageId: z.ZodNullable<z.ZodString>;
2138
+ isPremium: z.ZodBoolean;
2139
+ }, z.core.$strip>;
2140
+ triggeredAt: z.ZodCoercedDate<unknown>;
2141
+ }, z.core.$strip>, z.ZodObject<{
2142
+ eventName: z.ZodLiteral<"project:unarchived">;
2143
+ eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
2144
+ url: string;
2145
+ id: string;
2146
+ canAssignTasks: boolean;
2147
+ childOrder: number;
2148
+ color: string;
2149
+ createdAt: Date | null;
2150
+ isArchived: boolean;
2151
+ isDeleted: boolean;
2152
+ isFavorite: boolean;
2153
+ isFrozen: boolean;
2154
+ name: string;
2155
+ updatedAt: Date | null;
2156
+ viewStyle: string;
2157
+ defaultOrder: number;
2158
+ description: string;
2159
+ isCollapsed: boolean;
2160
+ isShared: boolean;
2161
+ parentId: string | null;
2162
+ inboxProject: boolean;
2163
+ } | {
2164
+ url: string;
2165
+ id: string;
2166
+ canAssignTasks: boolean;
2167
+ childOrder: number;
2168
+ color: string;
2169
+ createdAt: Date | null;
2170
+ isArchived: boolean;
2171
+ isDeleted: boolean;
2172
+ isFavorite: boolean;
2173
+ isFrozen: boolean;
2174
+ name: string;
2175
+ updatedAt: Date | null;
2176
+ viewStyle: string;
2177
+ defaultOrder: number;
2178
+ description: string;
2179
+ isCollapsed: boolean;
2180
+ isShared: boolean;
2181
+ collaboratorRoleDefault: string;
2182
+ folderId: string | null;
2183
+ isInviteOnly: boolean | null;
2184
+ isLinkSharingEnabled: boolean;
2185
+ role: string | null;
2186
+ status: string;
2187
+ workspaceId: string;
2188
+ access?: {
2189
+ visibility: "restricted" | "team" | "public";
2190
+ } | undefined;
2191
+ }, unknown>>;
2192
+ version: z.ZodEnum<{
2193
+ 1: "1";
2194
+ }>;
2195
+ userId: z.ZodString;
2196
+ initiator: z.ZodObject<{
2197
+ id: z.ZodString;
2198
+ fullName: z.ZodString;
2199
+ email: z.ZodString;
2200
+ imageId: z.ZodNullable<z.ZodString>;
2201
+ isPremium: z.ZodBoolean;
2202
+ }, z.core.$strip>;
2203
+ triggeredAt: z.ZodCoercedDate<unknown>;
2204
+ }, z.core.$strip>, z.ZodObject<{
2205
+ eventName: z.ZodLiteral<"section:added">;
2206
+ eventData: z.ZodPipe<z.ZodObject<{
2207
+ id: z.ZodString;
2208
+ userId: z.ZodString;
2209
+ projectId: z.ZodString;
2210
+ addedAt: z.ZodCoercedDate<unknown>;
2211
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2212
+ name: z.ZodString;
2213
+ sectionOrder: z.ZodNumber;
2214
+ isArchived: z.ZodBoolean;
2215
+ isDeleted: z.ZodBoolean;
2216
+ isCollapsed: z.ZodBoolean;
2217
+ updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
2218
+ }, z.core.$strip>, z.ZodTransform<{
2219
+ url: string;
2220
+ id: string;
2221
+ userId: string;
2222
+ projectId: string;
2223
+ addedAt: Date;
2224
+ archivedAt: Date | null;
2225
+ name: string;
2226
+ sectionOrder: number;
2227
+ isArchived: boolean;
2228
+ isDeleted: boolean;
2229
+ isCollapsed: boolean;
2230
+ updatedAt: Date | null;
2231
+ }, {
2232
+ id: string;
2233
+ userId: string;
2234
+ projectId: string;
2235
+ addedAt: Date;
2236
+ archivedAt: Date | null;
2237
+ name: string;
2238
+ sectionOrder: number;
2239
+ isArchived: boolean;
2240
+ isDeleted: boolean;
2241
+ isCollapsed: boolean;
2242
+ updatedAt: Date | null;
2243
+ }>>;
2244
+ version: z.ZodEnum<{
2245
+ 1: "1";
2246
+ }>;
2247
+ userId: z.ZodString;
2248
+ initiator: z.ZodObject<{
2249
+ id: z.ZodString;
2250
+ fullName: z.ZodString;
2251
+ email: z.ZodString;
2252
+ imageId: z.ZodNullable<z.ZodString>;
2253
+ isPremium: z.ZodBoolean;
2254
+ }, z.core.$strip>;
2255
+ triggeredAt: z.ZodCoercedDate<unknown>;
2256
+ }, z.core.$strip>, z.ZodObject<{
2257
+ eventName: z.ZodLiteral<"section:updated">;
2258
+ eventData: z.ZodPipe<z.ZodObject<{
2259
+ id: z.ZodString;
2260
+ userId: z.ZodString;
2261
+ projectId: z.ZodString;
2262
+ addedAt: z.ZodCoercedDate<unknown>;
2263
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2264
+ name: z.ZodString;
2265
+ sectionOrder: z.ZodNumber;
2266
+ isArchived: z.ZodBoolean;
2267
+ isDeleted: z.ZodBoolean;
2268
+ isCollapsed: z.ZodBoolean;
2269
+ updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
2270
+ }, z.core.$strip>, z.ZodTransform<{
2271
+ url: string;
2272
+ id: string;
2273
+ userId: string;
2274
+ projectId: string;
2275
+ addedAt: Date;
2276
+ archivedAt: Date | null;
2277
+ name: string;
2278
+ sectionOrder: number;
2279
+ isArchived: boolean;
2280
+ isDeleted: boolean;
2281
+ isCollapsed: boolean;
2282
+ updatedAt: Date | null;
2283
+ }, {
2284
+ id: string;
2285
+ userId: string;
2286
+ projectId: string;
2287
+ addedAt: Date;
2288
+ archivedAt: Date | null;
2289
+ name: string;
2290
+ sectionOrder: number;
2291
+ isArchived: boolean;
2292
+ isDeleted: boolean;
2293
+ isCollapsed: boolean;
2294
+ updatedAt: Date | null;
2295
+ }>>;
2296
+ version: z.ZodEnum<{
2297
+ 1: "1";
2298
+ }>;
2299
+ userId: z.ZodString;
2300
+ initiator: z.ZodObject<{
2301
+ id: z.ZodString;
2302
+ fullName: z.ZodString;
2303
+ email: z.ZodString;
2304
+ imageId: z.ZodNullable<z.ZodString>;
2305
+ isPremium: z.ZodBoolean;
2306
+ }, z.core.$strip>;
2307
+ triggeredAt: z.ZodCoercedDate<unknown>;
2308
+ }, z.core.$strip>, z.ZodObject<{
2309
+ eventName: z.ZodLiteral<"section:deleted">;
2310
+ eventData: z.ZodPipe<z.ZodObject<{
2311
+ id: z.ZodString;
2312
+ userId: z.ZodString;
2313
+ projectId: z.ZodString;
2314
+ addedAt: z.ZodCoercedDate<unknown>;
2315
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2316
+ name: z.ZodString;
2317
+ sectionOrder: z.ZodNumber;
2318
+ isArchived: z.ZodBoolean;
2319
+ isDeleted: z.ZodBoolean;
2320
+ isCollapsed: z.ZodBoolean;
2321
+ updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
2322
+ }, z.core.$strip>, z.ZodTransform<{
2323
+ url: string;
2324
+ id: string;
2325
+ userId: string;
2326
+ projectId: string;
2327
+ addedAt: Date;
2328
+ archivedAt: Date | null;
2329
+ name: string;
2330
+ sectionOrder: number;
2331
+ isArchived: boolean;
2332
+ isDeleted: boolean;
2333
+ isCollapsed: boolean;
2334
+ updatedAt: Date | null;
2335
+ }, {
2336
+ id: string;
2337
+ userId: string;
2338
+ projectId: string;
2339
+ addedAt: Date;
2340
+ archivedAt: Date | null;
2341
+ name: string;
2342
+ sectionOrder: number;
2343
+ isArchived: boolean;
2344
+ isDeleted: boolean;
2345
+ isCollapsed: boolean;
2346
+ updatedAt: Date | null;
2347
+ }>>;
2348
+ version: z.ZodEnum<{
2349
+ 1: "1";
2350
+ }>;
2351
+ userId: z.ZodString;
2352
+ initiator: z.ZodObject<{
2353
+ id: z.ZodString;
2354
+ fullName: z.ZodString;
2355
+ email: z.ZodString;
2356
+ imageId: z.ZodNullable<z.ZodString>;
2357
+ isPremium: z.ZodBoolean;
2358
+ }, z.core.$strip>;
2359
+ triggeredAt: z.ZodCoercedDate<unknown>;
2360
+ }, z.core.$strip>, z.ZodObject<{
2361
+ eventName: z.ZodLiteral<"section:archived">;
2362
+ eventData: z.ZodPipe<z.ZodObject<{
2363
+ id: z.ZodString;
2364
+ userId: z.ZodString;
2365
+ projectId: z.ZodString;
2366
+ addedAt: z.ZodCoercedDate<unknown>;
2367
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2368
+ name: z.ZodString;
2369
+ sectionOrder: z.ZodNumber;
2370
+ isArchived: z.ZodBoolean;
2371
+ isDeleted: z.ZodBoolean;
2372
+ isCollapsed: z.ZodBoolean;
2373
+ updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
2374
+ }, z.core.$strip>, z.ZodTransform<{
2375
+ url: string;
2376
+ id: string;
2377
+ userId: string;
2378
+ projectId: string;
2379
+ addedAt: Date;
2380
+ archivedAt: Date | null;
2381
+ name: string;
2382
+ sectionOrder: number;
2383
+ isArchived: boolean;
2384
+ isDeleted: boolean;
2385
+ isCollapsed: boolean;
2386
+ updatedAt: Date | null;
2387
+ }, {
2388
+ id: string;
2389
+ userId: string;
2390
+ projectId: string;
2391
+ addedAt: Date;
2392
+ archivedAt: Date | null;
2393
+ name: string;
2394
+ sectionOrder: number;
2395
+ isArchived: boolean;
2396
+ isDeleted: boolean;
2397
+ isCollapsed: boolean;
2398
+ updatedAt: Date | null;
2399
+ }>>;
2400
+ version: z.ZodEnum<{
2401
+ 1: "1";
2402
+ }>;
2403
+ userId: z.ZodString;
2404
+ initiator: z.ZodObject<{
2405
+ id: z.ZodString;
2406
+ fullName: z.ZodString;
2407
+ email: z.ZodString;
2408
+ imageId: z.ZodNullable<z.ZodString>;
2409
+ isPremium: z.ZodBoolean;
2410
+ }, z.core.$strip>;
2411
+ triggeredAt: z.ZodCoercedDate<unknown>;
2412
+ }, z.core.$strip>, z.ZodObject<{
2413
+ eventName: z.ZodLiteral<"section:unarchived">;
2414
+ eventData: z.ZodPipe<z.ZodObject<{
2415
+ id: z.ZodString;
2416
+ userId: z.ZodString;
2417
+ projectId: z.ZodString;
2418
+ addedAt: z.ZodCoercedDate<unknown>;
2419
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2420
+ name: z.ZodString;
2421
+ sectionOrder: z.ZodNumber;
2422
+ isArchived: z.ZodBoolean;
2423
+ isDeleted: z.ZodBoolean;
2424
+ isCollapsed: z.ZodBoolean;
2425
+ updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
2426
+ }, z.core.$strip>, z.ZodTransform<{
2427
+ url: string;
2428
+ id: string;
2429
+ userId: string;
2430
+ projectId: string;
2431
+ addedAt: Date;
2432
+ archivedAt: Date | null;
2433
+ name: string;
2434
+ sectionOrder: number;
2435
+ isArchived: boolean;
2436
+ isDeleted: boolean;
2437
+ isCollapsed: boolean;
2438
+ updatedAt: Date | null;
2439
+ }, {
2440
+ id: string;
2441
+ userId: string;
2442
+ projectId: string;
2443
+ addedAt: Date;
2444
+ archivedAt: Date | null;
2445
+ name: string;
2446
+ sectionOrder: number;
2447
+ isArchived: boolean;
2448
+ isDeleted: boolean;
2449
+ isCollapsed: boolean;
2450
+ updatedAt: Date | null;
2451
+ }>>;
2452
+ version: z.ZodEnum<{
2453
+ 1: "1";
2454
+ }>;
2455
+ userId: z.ZodString;
2456
+ initiator: z.ZodObject<{
2457
+ id: z.ZodString;
2458
+ fullName: z.ZodString;
2459
+ email: z.ZodString;
2460
+ imageId: z.ZodNullable<z.ZodString>;
2461
+ isPremium: z.ZodBoolean;
2462
+ }, z.core.$strip>;
2463
+ triggeredAt: z.ZodCoercedDate<unknown>;
1898
2464
  }, z.core.$strip>, z.ZodObject<{
1899
2465
  eventName: z.ZodEnum<{
1900
- "project:added": "project:added";
1901
- "project:updated": "project:updated";
1902
- "project:deleted": "project:deleted";
1903
- "project:archived": "project:archived";
1904
- "project:unarchived": "project:unarchived";
1905
- "section:added": "section:added";
1906
- "section:updated": "section:updated";
1907
- "section:deleted": "section:deleted";
1908
- "section:archived": "section:archived";
1909
- "section:unarchived": "section:unarchived";
1910
2466
  "filter:added": "filter:added";
1911
2467
  "filter:updated": "filter:updated";
1912
2468
  "filter:deleted": "filter:deleted";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/todoist-sdk",
3
- "version": "9.5.0",
3
+ "version": "9.6.0",
4
4
  "description": "The official TypeScript SDK for the Todoist REST API.",
5
5
  "author": "Doist developers",
6
6
  "repository": "https://github.com/Doist/todoist-sdk-typescript",