@supernova-studio/model 0.55.31 → 0.55.32

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
@@ -134029,20 +134029,17 @@ declare const DesignSystemMembership: z.ZodObject<{
134029
134029
  designSystemId: z.ZodString;
134030
134030
  designSystemRole: z.ZodOptional<z.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
134031
134031
  workspaceMembershipId: z.ZodString;
134032
- workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
134033
134032
  }, "strip", z.ZodTypeAny, {
134034
134033
  id: string;
134035
134034
  designSystemId: string;
134036
134035
  userId: string;
134037
134036
  workspaceMembershipId: string;
134038
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134039
134037
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134040
134038
  }, {
134041
134039
  id: string;
134042
134040
  designSystemId: string;
134043
134041
  userId: string;
134044
134042
  workspaceMembershipId: string;
134045
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134046
134043
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134047
134044
  }>;
134048
134045
  type DesignSystemMembership = z.infer<typeof DesignSystemMembership>;
@@ -134069,20 +134066,17 @@ declare const DesignSystemMembers: z.ZodObject<{
134069
134066
  designSystemId: z.ZodString;
134070
134067
  designSystemRole: z.ZodOptional<z.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
134071
134068
  workspaceMembershipId: z.ZodString;
134072
- workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
134073
134069
  }, "strip", z.ZodTypeAny, {
134074
134070
  id: string;
134075
134071
  designSystemId: string;
134076
134072
  userId: string;
134077
134073
  workspaceMembershipId: string;
134078
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134079
134074
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134080
134075
  }, {
134081
134076
  id: string;
134082
134077
  designSystemId: string;
134083
134078
  userId: string;
134084
134079
  workspaceMembershipId: string;
134085
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134086
134080
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134087
134081
  }>, "many">;
134088
134082
  invitations: z.ZodArray<z.ZodObject<{
@@ -134090,18 +134084,15 @@ declare const DesignSystemMembers: z.ZodObject<{
134090
134084
  designSystemId: z.ZodString;
134091
134085
  workspaceInvitationId: z.ZodString;
134092
134086
  designSystemRole: z.ZodOptional<z.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
134093
- workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
134094
134087
  }, "strip", z.ZodTypeAny, {
134095
134088
  id: string;
134096
134089
  designSystemId: string;
134097
134090
  workspaceInvitationId: string;
134098
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134099
134091
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134100
134092
  }, {
134101
134093
  id: string;
134102
134094
  designSystemId: string;
134103
134095
  workspaceInvitationId: string;
134104
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134105
134096
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134106
134097
  }>, "many">;
134107
134098
  }, "strip", z.ZodTypeAny, {
@@ -134109,7 +134100,6 @@ declare const DesignSystemMembers: z.ZodObject<{
134109
134100
  id: string;
134110
134101
  designSystemId: string;
134111
134102
  workspaceInvitationId: string;
134112
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134113
134103
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134114
134104
  }[];
134115
134105
  members: {
@@ -134117,7 +134107,6 @@ declare const DesignSystemMembers: z.ZodObject<{
134117
134107
  designSystemId: string;
134118
134108
  userId: string;
134119
134109
  workspaceMembershipId: string;
134120
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134121
134110
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134122
134111
  }[];
134123
134112
  }, {
@@ -134125,7 +134114,6 @@ declare const DesignSystemMembers: z.ZodObject<{
134125
134114
  id: string;
134126
134115
  designSystemId: string;
134127
134116
  workspaceInvitationId: string;
134128
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134129
134117
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134130
134118
  }[];
134131
134119
  members: {
@@ -134133,7 +134121,6 @@ declare const DesignSystemMembers: z.ZodObject<{
134133
134121
  designSystemId: string;
134134
134122
  userId: string;
134135
134123
  workspaceMembershipId: string;
134136
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134137
134124
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134138
134125
  }[];
134139
134126
  }>;
@@ -134324,18 +134311,15 @@ declare const DesignSystemInvitation: z.ZodObject<{
134324
134311
  designSystemId: z.ZodString;
134325
134312
  workspaceInvitationId: z.ZodString;
134326
134313
  designSystemRole: z.ZodOptional<z.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
134327
- workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
134328
134314
  }, "strip", z.ZodTypeAny, {
134329
134315
  id: string;
134330
134316
  designSystemId: string;
134331
134317
  workspaceInvitationId: string;
134332
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134333
134318
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134334
134319
  }, {
134335
134320
  id: string;
134336
134321
  designSystemId: string;
134337
134322
  workspaceInvitationId: string;
134338
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134339
134323
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134340
134324
  }>;
134341
134325
  type DesignSystemInvitation = z.infer<typeof DesignSystemInvitation>;
package/dist/index.d.ts CHANGED
@@ -134029,20 +134029,17 @@ declare const DesignSystemMembership: z.ZodObject<{
134029
134029
  designSystemId: z.ZodString;
134030
134030
  designSystemRole: z.ZodOptional<z.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
134031
134031
  workspaceMembershipId: z.ZodString;
134032
- workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
134033
134032
  }, "strip", z.ZodTypeAny, {
134034
134033
  id: string;
134035
134034
  designSystemId: string;
134036
134035
  userId: string;
134037
134036
  workspaceMembershipId: string;
134038
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134039
134037
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134040
134038
  }, {
134041
134039
  id: string;
134042
134040
  designSystemId: string;
134043
134041
  userId: string;
134044
134042
  workspaceMembershipId: string;
134045
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134046
134043
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134047
134044
  }>;
134048
134045
  type DesignSystemMembership = z.infer<typeof DesignSystemMembership>;
@@ -134069,20 +134066,17 @@ declare const DesignSystemMembers: z.ZodObject<{
134069
134066
  designSystemId: z.ZodString;
134070
134067
  designSystemRole: z.ZodOptional<z.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
134071
134068
  workspaceMembershipId: z.ZodString;
134072
- workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
134073
134069
  }, "strip", z.ZodTypeAny, {
134074
134070
  id: string;
134075
134071
  designSystemId: string;
134076
134072
  userId: string;
134077
134073
  workspaceMembershipId: string;
134078
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134079
134074
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134080
134075
  }, {
134081
134076
  id: string;
134082
134077
  designSystemId: string;
134083
134078
  userId: string;
134084
134079
  workspaceMembershipId: string;
134085
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134086
134080
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134087
134081
  }>, "many">;
134088
134082
  invitations: z.ZodArray<z.ZodObject<{
@@ -134090,18 +134084,15 @@ declare const DesignSystemMembers: z.ZodObject<{
134090
134084
  designSystemId: z.ZodString;
134091
134085
  workspaceInvitationId: z.ZodString;
134092
134086
  designSystemRole: z.ZodOptional<z.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
134093
- workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
134094
134087
  }, "strip", z.ZodTypeAny, {
134095
134088
  id: string;
134096
134089
  designSystemId: string;
134097
134090
  workspaceInvitationId: string;
134098
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134099
134091
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134100
134092
  }, {
134101
134093
  id: string;
134102
134094
  designSystemId: string;
134103
134095
  workspaceInvitationId: string;
134104
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134105
134096
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134106
134097
  }>, "many">;
134107
134098
  }, "strip", z.ZodTypeAny, {
@@ -134109,7 +134100,6 @@ declare const DesignSystemMembers: z.ZodObject<{
134109
134100
  id: string;
134110
134101
  designSystemId: string;
134111
134102
  workspaceInvitationId: string;
134112
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134113
134103
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134114
134104
  }[];
134115
134105
  members: {
@@ -134117,7 +134107,6 @@ declare const DesignSystemMembers: z.ZodObject<{
134117
134107
  designSystemId: string;
134118
134108
  userId: string;
134119
134109
  workspaceMembershipId: string;
134120
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134121
134110
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134122
134111
  }[];
134123
134112
  }, {
@@ -134125,7 +134114,6 @@ declare const DesignSystemMembers: z.ZodObject<{
134125
134114
  id: string;
134126
134115
  designSystemId: string;
134127
134116
  workspaceInvitationId: string;
134128
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134129
134117
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134130
134118
  }[];
134131
134119
  members: {
@@ -134133,7 +134121,6 @@ declare const DesignSystemMembers: z.ZodObject<{
134133
134121
  designSystemId: string;
134134
134122
  userId: string;
134135
134123
  workspaceMembershipId: string;
134136
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134137
134124
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134138
134125
  }[];
134139
134126
  }>;
@@ -134324,18 +134311,15 @@ declare const DesignSystemInvitation: z.ZodObject<{
134324
134311
  designSystemId: z.ZodString;
134325
134312
  workspaceInvitationId: z.ZodString;
134326
134313
  designSystemRole: z.ZodOptional<z.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
134327
- workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
134328
134314
  }, "strip", z.ZodTypeAny, {
134329
134315
  id: string;
134330
134316
  designSystemId: string;
134331
134317
  workspaceInvitationId: string;
134332
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134333
134318
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134334
134319
  }, {
134335
134320
  id: string;
134336
134321
  designSystemId: string;
134337
134322
  workspaceInvitationId: string;
134338
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134339
134323
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134340
134324
  }>;
134341
134325
  type DesignSystemInvitation = z.infer<typeof DesignSystemInvitation>;
package/dist/index.js CHANGED
@@ -4346,8 +4346,7 @@ var DesignSystemInvitation = _zod.z.object({
4346
4346
  id: _zod.z.string(),
4347
4347
  designSystemId: _zod.z.string(),
4348
4348
  workspaceInvitationId: _zod.z.string(),
4349
- designSystemRole: DesignSystemRole.optional(),
4350
- workspaceRole: WorkspaceRoleSchema.optional()
4349
+ designSystemRole: DesignSystemRole.optional()
4351
4350
  });
4352
4351
 
4353
4352
  // src/dsm/membership/design-system-membership.ts
@@ -4356,8 +4355,7 @@ var DesignSystemMembership = _zod.z.object({
4356
4355
  userId: _zod.z.string(),
4357
4356
  designSystemId: _zod.z.string(),
4358
4357
  designSystemRole: DesignSystemRole.optional(),
4359
- workspaceMembershipId: _zod.z.string(),
4360
- workspaceRole: WorkspaceRoleSchema.optional()
4358
+ workspaceMembershipId: _zod.z.string()
4361
4359
  });
4362
4360
  var DesignSystemMembers = _zod.z.object({
4363
4361
  members: DesignSystemMembership.array(),