@supernova-studio/model 0.55.32 → 0.55.34

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