@supernova-studio/model 0.55.21 → 0.55.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/model",
3
- "version": "0.55.21",
3
+ "version": "0.55.23",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -57,11 +57,27 @@ export const DesignSystemInvite = z.object({
57
57
  designSystemRole: DesignSystemRole.optional(),
58
58
  });
59
59
 
60
+ export const DesignSystemMemberUpdate = z.object({
61
+ userId: z.string(),
62
+ designSystemRole: DesignSystemRole.nullable(),
63
+ });
64
+
65
+ export const DesignSystemInviteUpdate = z.object({
66
+ /**
67
+ * Workspace invitation id
68
+ */
69
+ inviteId: z.string(),
70
+ designSystemRole: DesignSystemRole.nullable(),
71
+ });
72
+
60
73
  export const DesignSystemMembershipUpdates = z.object({
61
74
  usersToInvite: DesignSystemUserInvitation.array().optional(),
62
75
  invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
63
76
  emailsToInvite: DesignSystemInvite.array().optional(),
64
77
 
78
+ usersToUpdate: DesignSystemMemberUpdate.array().optional(),
79
+ invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
80
+
65
81
  removeUserIds: z.string().array().optional(),
66
82
  deleteInvitationIds: z.string().array().optional(),
67
83
  });
@@ -69,6 +85,8 @@ export const DesignSystemMembershipUpdates = z.object({
69
85
  export type DesignSystemRole = z.infer<typeof DesignSystemRole>;
70
86
  export type DesignSystemMembers = z.infer<typeof DesignSystemMembers>;
71
87
  export type DesignSystemInvite = z.infer<typeof DesignSystemInvite>;
88
+ export type DesignSystemMemberUpdate = z.infer<typeof DesignSystemMemberUpdate>;
89
+ export type DesignSystemInviteUpdate = z.infer<typeof DesignSystemInviteUpdate>;
72
90
  export type DesignSystemPendingMemberInvite = z.infer<typeof DesignSystemPendingMemberInvitation>;
73
91
  export type DesignSystemUserInvitation = z.infer<typeof DesignSystemUserInvitation>;
74
92
  export type DesignSystemMembershipUpdates = z.infer<typeof DesignSystemMembershipUpdates>;