@doist/comms-sdk 3.4.0 → 3.4.1

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.
@@ -58,7 +58,10 @@ export const UserStatusSchema = z.object({
58
58
  activeUntil: z.string().nullable().optional(),
59
59
  effects: z
60
60
  .object({
61
- pauseNotifications: z.object({ scope: z.object({ mode: z.string() }) }).optional(),
61
+ // Clients that don't model `scope` can store `{}`, and the backend omits unset fields.
62
+ pauseNotifications: z
63
+ .object({ scope: z.object({ mode: z.string().optional() }).optional() })
64
+ .optional(),
62
65
  })
63
66
  .optional(),
64
67
  });
@@ -60,9 +60,9 @@ export declare const UserStatusSchema: z.ZodObject<{
60
60
  activeUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
61
  effects: z.ZodOptional<z.ZodObject<{
62
62
  pauseNotifications: z.ZodOptional<z.ZodObject<{
63
- scope: z.ZodObject<{
64
- mode: z.ZodString;
65
- }, z.core.$strip>;
63
+ scope: z.ZodOptional<z.ZodObject<{
64
+ mode: z.ZodOptional<z.ZodString>;
65
+ }, z.core.$strip>>;
66
66
  }, z.core.$strip>>;
67
67
  }, z.core.$strip>>;
68
68
  }, z.core.$strip>;
@@ -89,9 +89,9 @@ export declare const BaseUserSchema: z.ZodObject<{
89
89
  activeUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
90
  effects: z.ZodOptional<z.ZodObject<{
91
91
  pauseNotifications: z.ZodOptional<z.ZodObject<{
92
- scope: z.ZodObject<{
93
- mode: z.ZodString;
94
- }, z.core.$strip>;
92
+ scope: z.ZodOptional<z.ZodObject<{
93
+ mode: z.ZodOptional<z.ZodString>;
94
+ }, z.core.$strip>>;
95
95
  }, z.core.$strip>>;
96
96
  }, z.core.$strip>>;
97
97
  }, z.core.$strip>>>;
@@ -118,9 +118,9 @@ export declare const UserSchema: z.ZodObject<{
118
118
  activeUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
119
  effects: z.ZodOptional<z.ZodObject<{
120
120
  pauseNotifications: z.ZodOptional<z.ZodObject<{
121
- scope: z.ZodObject<{
122
- mode: z.ZodString;
123
- }, z.core.$strip>;
121
+ scope: z.ZodOptional<z.ZodObject<{
122
+ mode: z.ZodOptional<z.ZodString>;
123
+ }, z.core.$strip>>;
124
124
  }, z.core.$strip>>;
125
125
  }, z.core.$strip>>;
126
126
  }, z.core.$strip>>>;
@@ -1634,9 +1634,9 @@ export declare const WorkspaceUserSchema: z.ZodObject<{
1634
1634
  activeUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1635
1635
  effects: z.ZodOptional<z.ZodObject<{
1636
1636
  pauseNotifications: z.ZodOptional<z.ZodObject<{
1637
- scope: z.ZodObject<{
1638
- mode: z.ZodString;
1639
- }, z.core.$strip>;
1637
+ scope: z.ZodOptional<z.ZodObject<{
1638
+ mode: z.ZodOptional<z.ZodString>;
1639
+ }, z.core.$strip>>;
1640
1640
  }, z.core.$strip>>;
1641
1641
  }, z.core.$strip>>;
1642
1642
  }, z.core.$strip>>>;
@@ -1659,9 +1659,9 @@ export declare const RestrictedWorkspaceUserSchema: z.ZodObject<{
1659
1659
  activeUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1660
1660
  effects: z.ZodOptional<z.ZodObject<{
1661
1661
  pauseNotifications: z.ZodOptional<z.ZodObject<{
1662
- scope: z.ZodObject<{
1663
- mode: z.ZodString;
1664
- }, z.core.$strip>;
1662
+ scope: z.ZodOptional<z.ZodObject<{
1663
+ mode: z.ZodOptional<z.ZodString>;
1664
+ }, z.core.$strip>>;
1665
1665
  }, z.core.$strip>>;
1666
1666
  }, z.core.$strip>>;
1667
1667
  }, z.core.$strip>>>;
@@ -1704,9 +1704,9 @@ export declare const VisibleWorkspaceUserSchema: z.ZodUnion<readonly [z.ZodObjec
1704
1704
  activeUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1705
1705
  effects: z.ZodOptional<z.ZodObject<{
1706
1706
  pauseNotifications: z.ZodOptional<z.ZodObject<{
1707
- scope: z.ZodObject<{
1708
- mode: z.ZodString;
1709
- }, z.core.$strip>;
1707
+ scope: z.ZodOptional<z.ZodObject<{
1708
+ mode: z.ZodOptional<z.ZodString>;
1709
+ }, z.core.$strip>>;
1710
1710
  }, z.core.$strip>>;
1711
1711
  }, z.core.$strip>>;
1712
1712
  }, z.core.$strip>>>;
@@ -1727,9 +1727,9 @@ export declare const VisibleWorkspaceUserSchema: z.ZodUnion<readonly [z.ZodObjec
1727
1727
  activeUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1728
1728
  effects: z.ZodOptional<z.ZodObject<{
1729
1729
  pauseNotifications: z.ZodOptional<z.ZodObject<{
1730
- scope: z.ZodObject<{
1731
- mode: z.ZodString;
1732
- }, z.core.$strip>;
1730
+ scope: z.ZodOptional<z.ZodObject<{
1731
+ mode: z.ZodOptional<z.ZodString>;
1732
+ }, z.core.$strip>>;
1733
1733
  }, z.core.$strip>>;
1734
1734
  }, z.core.$strip>>;
1735
1735
  }, z.core.$strip>>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/comms-sdk",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "description": "A TypeScript wrapper for the Comms REST API.",
5
5
  "author": "Doist developers",
6
6
  "homepage": "https://doist.github.io/comms-sdk-typescript/",