@doist/todoist-sdk 15.0.1 → 15.0.2

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.
@@ -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(),
@@ -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
  });
@@ -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;
@@ -384,7 +384,7 @@ export declare const SyncResponseSchema: z.ZodObject<{
384
384
  daysOff: z.ZodArray<z.ZodNumber>;
385
385
  featureIdentifier: z.ZodString;
386
386
  features: z.ZodObject<{
387
- karmaDisabled: z.ZodBoolean;
387
+ karmaDisabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>]>;
388
388
  restriction: z.ZodNumber;
389
389
  karmaVacation: z.ZodBoolean;
390
390
  dateistLang: z.ZodAny;
@@ -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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/todoist-sdk",
3
- "version": "15.0.1",
3
+ "version": "15.0.2",
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",