@doist/todoist-sdk 15.0.1 → 15.1.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,6 +3,7 @@ export const FilterSchema = z.looseObject({
3
3
  id: z.string(),
4
4
  name: z.string(),
5
5
  query: z.string(),
6
+ description: z.string().nullish(),
6
7
  color: z.string(),
7
8
  isDeleted: z.boolean(),
8
9
  isFavorite: z.boolean(),
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { PREMIUM_STATUSES } from '../../users/types.js';
3
3
  import { BooleanFromZeroOneSchema, DateFormatSchema, DayOfWeekSchema, TimeFormatSchema, } from '../user-preferences.js';
4
4
  export const FeaturesSchema = z.looseObject({
5
- karmaDisabled: z.boolean(),
5
+ karmaDisabled: z.union([z.boolean(), BooleanFromZeroOneSchema]),
6
6
  restriction: z.number().int(),
7
7
  karmaVacation: z.boolean(),
8
8
  dateistLang: z.any(),
@@ -4,6 +4,7 @@ export const WorkspaceFilterSchema = z.looseObject({
4
4
  workspaceId: z.string(),
5
5
  name: z.string(),
6
6
  query: z.string(),
7
+ description: z.string().nullish(),
7
8
  color: z.string(),
8
9
  itemOrder: z.number().int(),
9
10
  isDeleted: z.boolean(),
@@ -45,4 +45,5 @@ export const CurrentUserSchema = z.object({
45
45
  inboxProjectId: z.string(),
46
46
  daysOff: z.array(z.number().int()),
47
47
  weekendStartDay: z.number().int(),
48
+ websocketUrl: z.string().optional(),
48
49
  });
@@ -2,6 +2,7 @@ import type { ColorKey } from '../../../utils/colors.js';
2
2
  export type FilterAddArgs = {
3
3
  name: string;
4
4
  query: string;
5
+ description?: string | null;
5
6
  color?: ColorKey;
6
7
  itemOrder?: number;
7
8
  isFavorite?: boolean;
@@ -10,6 +11,7 @@ export type FilterUpdateArgs = {
10
11
  id: string;
11
12
  name?: string;
12
13
  query?: string;
14
+ description?: string | null;
13
15
  color?: ColorKey;
14
16
  itemOrder?: number;
15
17
  isFavorite?: boolean;
@@ -3,6 +3,7 @@ export type WorkspaceFilterAddArgs = {
3
3
  workspaceId: string;
4
4
  name: string;
5
5
  query: string;
6
+ description?: string | null;
6
7
  color?: ColorKey;
7
8
  itemOrder?: number;
8
9
  isFavorite?: boolean;
@@ -11,6 +12,7 @@ export type WorkspaceFilterUpdateArgs = {
11
12
  id: string;
12
13
  name?: string;
13
14
  query?: string;
15
+ description?: string | null;
14
16
  color?: ColorKey;
15
17
  itemOrder?: number;
16
18
  isFavorite?: boolean;
@@ -3,6 +3,7 @@ export declare const FilterSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
5
5
  query: z.ZodString;
6
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
7
  color: z.ZodString;
7
8
  isDeleted: z.ZodBoolean;
8
9
  isFavorite: z.ZodBoolean;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const FeaturesSchema: z.ZodObject<{
3
- karmaDisabled: z.ZodBoolean;
3
+ karmaDisabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>]>;
4
4
  restriction: z.ZodNumber;
5
5
  karmaVacation: z.ZodBoolean;
6
6
  dateistLang: z.ZodAny;
@@ -52,7 +52,7 @@ export declare const SyncUserSchema: z.ZodObject<{
52
52
  daysOff: z.ZodArray<z.ZodNumber>;
53
53
  featureIdentifier: z.ZodString;
54
54
  features: z.ZodObject<{
55
- karmaDisabled: z.ZodBoolean;
55
+ karmaDisabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>]>;
56
56
  restriction: z.ZodNumber;
57
57
  karmaVacation: z.ZodBoolean;
58
58
  dateistLang: z.ZodAny;
@@ -4,6 +4,7 @@ export declare const WorkspaceFilterSchema: z.ZodObject<{
4
4
  workspaceId: z.ZodString;
5
5
  name: z.ZodString;
6
6
  query: z.ZodString;
7
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
8
  color: z.ZodString;
8
9
  itemOrder: z.ZodNumber;
9
10
  isDeleted: z.ZodBoolean;
@@ -295,6 +295,7 @@ export declare const SyncResponseSchema: z.ZodObject<{
295
295
  id: z.ZodString;
296
296
  name: z.ZodString;
297
297
  query: z.ZodString;
298
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
298
299
  color: z.ZodString;
299
300
  isDeleted: z.ZodBoolean;
300
301
  isFavorite: z.ZodBoolean;
@@ -384,7 +385,7 @@ export declare const SyncResponseSchema: z.ZodObject<{
384
385
  daysOff: z.ZodArray<z.ZodNumber>;
385
386
  featureIdentifier: z.ZodString;
386
387
  features: z.ZodObject<{
387
- karmaDisabled: z.ZodBoolean;
388
+ karmaDisabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>]>;
388
389
  restriction: z.ZodNumber;
389
390
  karmaVacation: z.ZodBoolean;
390
391
  dateistLang: z.ZodAny;
@@ -726,6 +727,7 @@ export declare const SyncResponseSchema: z.ZodObject<{
726
727
  workspaceId: z.ZodString;
727
728
  name: z.ZodString;
728
729
  query: z.ZodString;
730
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
729
731
  color: z.ZodString;
730
732
  itemOrder: z.ZodNumber;
731
733
  isDeleted: z.ZodBoolean;
@@ -58,6 +58,7 @@ export declare const CurrentUserSchema: z.ZodObject<{
58
58
  inboxProjectId: z.ZodString;
59
59
  daysOff: z.ZodArray<z.ZodNumber>;
60
60
  weekendStartDay: z.ZodNumber;
61
+ websocketUrl: z.ZodOptional<z.ZodString>;
61
62
  }, z.core.$strip>;
62
63
  /**
63
64
  * Represents the current authenticated user with detailed information.
@@ -22,6 +22,7 @@ export declare const FilterAddedPayloadSchema: z.ZodObject<{
22
22
  id: z.ZodString;
23
23
  name: z.ZodString;
24
24
  query: z.ZodString;
25
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
26
  color: z.ZodString;
26
27
  isDeleted: z.ZodBoolean;
27
28
  isFavorite: z.ZodBoolean;
@@ -48,6 +49,7 @@ export declare const FilterUpdatedPayloadSchema: z.ZodObject<{
48
49
  id: z.ZodString;
49
50
  name: z.ZodString;
50
51
  query: z.ZodString;
52
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
53
  color: z.ZodString;
52
54
  isDeleted: z.ZodBoolean;
53
55
  isFavorite: z.ZodBoolean;
@@ -74,6 +76,7 @@ export declare const FilterDeletedPayloadSchema: z.ZodObject<{
74
76
  id: z.ZodString;
75
77
  name: z.ZodString;
76
78
  query: z.ZodString;
79
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
80
  color: z.ZodString;
78
81
  isDeleted: z.ZodBoolean;
79
82
  isFavorite: z.ZodBoolean;
@@ -2456,6 +2456,7 @@ export declare const WebhookPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
2456
2456
  id: z.ZodString;
2457
2457
  name: z.ZodString;
2458
2458
  query: z.ZodString;
2459
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2459
2460
  color: z.ZodString;
2460
2461
  isDeleted: z.ZodBoolean;
2461
2462
  isFavorite: z.ZodBoolean;
@@ -2480,6 +2481,7 @@ export declare const WebhookPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
2480
2481
  id: z.ZodString;
2481
2482
  name: z.ZodString;
2482
2483
  query: z.ZodString;
2484
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2483
2485
  color: z.ZodString;
2484
2486
  isDeleted: z.ZodBoolean;
2485
2487
  isFavorite: z.ZodBoolean;
@@ -2504,6 +2506,7 @@ export declare const WebhookPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
2504
2506
  id: z.ZodString;
2505
2507
  name: z.ZodString;
2506
2508
  query: z.ZodString;
2509
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2507
2510
  color: z.ZodString;
2508
2511
  isDeleted: z.ZodBoolean;
2509
2512
  isFavorite: z.ZodBoolean;
@@ -447,6 +447,7 @@ export declare const validateCurrentUser: (input: unknown) => {
447
447
  avatarMedium?: string | null | undefined;
448
448
  avatarS640?: string | null | undefined;
449
449
  avatarSmall?: string | null | undefined;
450
+ websocketUrl?: string | undefined;
450
451
  };
451
452
  export declare const validateActivityEvent: (input: unknown) => {
452
453
  [x: string]: any;
@@ -751,6 +752,7 @@ export declare const validateFilter: (input: unknown) => {
751
752
  isFavorite: boolean;
752
753
  isFrozen: boolean;
753
754
  itemOrder: number;
755
+ description?: string | null | undefined;
754
756
  }, validateFilterArray: (input: unknown) => {
755
757
  [x: string]: unknown;
756
758
  id: string;
@@ -761,6 +763,7 @@ export declare const validateFilter: (input: unknown) => {
761
763
  isFavorite: boolean;
762
764
  isFrozen: boolean;
763
765
  itemOrder: number;
766
+ description?: string | null | undefined;
764
767
  }[];
765
768
  export declare const validateCollaborator: (input: unknown) => {
766
769
  [x: string]: unknown;
@@ -939,6 +942,7 @@ export declare const validateWorkspaceFilter: (input: unknown) => {
939
942
  updaterUid: string;
940
943
  createdAt: Date;
941
944
  updatedAt: Date;
945
+ description?: string | null | undefined;
942
946
  }, validateWorkspaceFilterArray: (input: unknown) => {
943
947
  [x: string]: unknown;
944
948
  id: string;
@@ -954,6 +958,7 @@ export declare const validateWorkspaceFilter: (input: unknown) => {
954
958
  updaterUid: string;
955
959
  createdAt: Date;
956
960
  updatedAt: Date;
961
+ description?: string | null | undefined;
957
962
  }[];
958
963
  export declare const validateCalendar: (input: unknown) => {
959
964
  [x: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/todoist-sdk",
3
- "version": "15.0.1",
3
+ "version": "15.1.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",