@supernova-studio/model 0.58.1 → 0.58.3

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/dist/index.d.mts CHANGED
@@ -130722,6 +130722,7 @@ declare const WorkspaceMembership: z.ZodObject<{
130722
130722
  sendCommentNotificationEmails: boolean;
130723
130723
  };
130724
130724
  }>;
130725
+ isPrimaryOwner: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
130725
130726
  }, "strip", z.ZodTypeAny, {
130726
130727
  id: string;
130727
130728
  workspaceId: string;
@@ -130732,6 +130733,7 @@ declare const WorkspaceMembership: z.ZodObject<{
130732
130733
  sendCommentNotificationEmails: boolean;
130733
130734
  };
130734
130735
  };
130736
+ isPrimaryOwner?: boolean | null | undefined;
130735
130737
  }, {
130736
130738
  id: string;
130737
130739
  workspaceId: string;
@@ -130742,6 +130744,7 @@ declare const WorkspaceMembership: z.ZodObject<{
130742
130744
  sendCommentNotificationEmails: boolean;
130743
130745
  };
130744
130746
  };
130747
+ isPrimaryOwner?: boolean | null | undefined;
130745
130748
  }>;
130746
130749
  type WorkspaceMembership = z.infer<typeof WorkspaceMembership>;
130747
130750
  type CreateWorkspaceMembership = DbCreateInputOmit<WorkspaceMembership>;
@@ -130750,22 +130753,27 @@ declare const UpdateMembershipRolesInput: z.ZodObject<{
130750
130753
  members: z.ZodArray<z.ZodObject<{
130751
130754
  userId: z.ZodString;
130752
130755
  role: z.ZodNativeEnum<z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
130756
+ isPrimaryOwner: z.ZodOptional<z.ZodBoolean>;
130753
130757
  }, "strip", z.ZodTypeAny, {
130754
130758
  role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
130755
130759
  userId: string;
130760
+ isPrimaryOwner?: boolean | undefined;
130756
130761
  }, {
130757
130762
  role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
130758
130763
  userId: string;
130764
+ isPrimaryOwner?: boolean | undefined;
130759
130765
  }>, "many">;
130760
130766
  }, "strip", z.ZodTypeAny, {
130761
130767
  members: {
130762
130768
  role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
130763
130769
  userId: string;
130770
+ isPrimaryOwner?: boolean | undefined;
130764
130771
  }[];
130765
130772
  }, {
130766
130773
  members: {
130767
130774
  role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
130768
130775
  userId: string;
130776
+ isPrimaryOwner?: boolean | undefined;
130769
130777
  }[];
130770
130778
  }>;
130771
130779
  type UpdateMembershipRolesInput = z.infer<typeof UpdateMembershipRolesInput>;
package/dist/index.d.ts CHANGED
@@ -130722,6 +130722,7 @@ declare const WorkspaceMembership: z.ZodObject<{
130722
130722
  sendCommentNotificationEmails: boolean;
130723
130723
  };
130724
130724
  }>;
130725
+ isPrimaryOwner: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
130725
130726
  }, "strip", z.ZodTypeAny, {
130726
130727
  id: string;
130727
130728
  workspaceId: string;
@@ -130732,6 +130733,7 @@ declare const WorkspaceMembership: z.ZodObject<{
130732
130733
  sendCommentNotificationEmails: boolean;
130733
130734
  };
130734
130735
  };
130736
+ isPrimaryOwner?: boolean | null | undefined;
130735
130737
  }, {
130736
130738
  id: string;
130737
130739
  workspaceId: string;
@@ -130742,6 +130744,7 @@ declare const WorkspaceMembership: z.ZodObject<{
130742
130744
  sendCommentNotificationEmails: boolean;
130743
130745
  };
130744
130746
  };
130747
+ isPrimaryOwner?: boolean | null | undefined;
130745
130748
  }>;
130746
130749
  type WorkspaceMembership = z.infer<typeof WorkspaceMembership>;
130747
130750
  type CreateWorkspaceMembership = DbCreateInputOmit<WorkspaceMembership>;
@@ -130750,22 +130753,27 @@ declare const UpdateMembershipRolesInput: z.ZodObject<{
130750
130753
  members: z.ZodArray<z.ZodObject<{
130751
130754
  userId: z.ZodString;
130752
130755
  role: z.ZodNativeEnum<z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
130756
+ isPrimaryOwner: z.ZodOptional<z.ZodBoolean>;
130753
130757
  }, "strip", z.ZodTypeAny, {
130754
130758
  role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
130755
130759
  userId: string;
130760
+ isPrimaryOwner?: boolean | undefined;
130756
130761
  }, {
130757
130762
  role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
130758
130763
  userId: string;
130764
+ isPrimaryOwner?: boolean | undefined;
130759
130765
  }>, "many">;
130760
130766
  }, "strip", z.ZodTypeAny, {
130761
130767
  members: {
130762
130768
  role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
130763
130769
  userId: string;
130770
+ isPrimaryOwner?: boolean | undefined;
130764
130771
  }[];
130765
130772
  }, {
130766
130773
  members: {
130767
130774
  role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
130768
130775
  userId: string;
130776
+ isPrimaryOwner?: boolean | undefined;
130769
130777
  }[];
130770
130778
  }>;
130771
130779
  type UpdateMembershipRolesInput = z.infer<typeof UpdateMembershipRolesInput>;
package/dist/index.js CHANGED
@@ -4412,13 +4412,15 @@ var WorkspaceMembership = _zod.z.object({
4412
4412
  userId: _zod.z.string(),
4413
4413
  workspaceId: _zod.z.string(),
4414
4414
  workspaceRole: _zod.z.nativeEnum(WorkspaceRole),
4415
- notificationSettings: UserNotificationSettings
4415
+ notificationSettings: UserNotificationSettings,
4416
+ isPrimaryOwner: _zod.z.boolean().nullish()
4416
4417
  });
4417
4418
  var UpdateMembershipRolesInput = _zod.z.object({
4418
4419
  members: _zod.z.array(
4419
4420
  _zod.z.object({
4420
4421
  userId: _zod.z.string(),
4421
- role: _zod.z.nativeEnum(WorkspaceRole)
4422
+ role: _zod.z.nativeEnum(WorkspaceRole),
4423
+ isPrimaryOwner: _zod.z.boolean().optional()
4422
4424
  })
4423
4425
  )
4424
4426
  });