@supernova-studio/model 0.57.7 → 0.57.9

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
@@ -134376,20 +134376,20 @@ declare const DesignSystemMembership: z.ZodObject<{
134376
134376
  designSystemId: z.ZodString;
134377
134377
  designSystemRole: z.ZodOptional<z.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
134378
134378
  workspaceMembershipId: z.ZodString;
134379
- workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
134379
+ workspaceRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
134380
134380
  }, "strip", z.ZodTypeAny, {
134381
134381
  id: string;
134382
134382
  designSystemId: string;
134383
134383
  userId: string;
134384
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134384
134385
  workspaceMembershipId: string;
134385
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134386
134386
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134387
134387
  }, {
134388
134388
  id: string;
134389
134389
  designSystemId: string;
134390
134390
  userId: string;
134391
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134391
134392
  workspaceMembershipId: string;
134392
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134393
134393
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134394
134394
  }>;
134395
134395
  type DesignSystemMembership = z.infer<typeof DesignSystemMembership>;
@@ -134416,20 +134416,20 @@ declare const DesignSystemMembers: z.ZodObject<{
134416
134416
  designSystemId: z.ZodString;
134417
134417
  designSystemRole: z.ZodOptional<z.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
134418
134418
  workspaceMembershipId: z.ZodString;
134419
- workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
134419
+ workspaceRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
134420
134420
  }, "strip", z.ZodTypeAny, {
134421
134421
  id: string;
134422
134422
  designSystemId: string;
134423
134423
  userId: string;
134424
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134424
134425
  workspaceMembershipId: string;
134425
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134426
134426
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134427
134427
  }, {
134428
134428
  id: string;
134429
134429
  designSystemId: string;
134430
134430
  userId: string;
134431
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134431
134432
  workspaceMembershipId: string;
134432
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134433
134433
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134434
134434
  }>, "many">;
134435
134435
  invitations: z.ZodArray<z.ZodObject<{
@@ -134437,50 +134437,50 @@ declare const DesignSystemMembers: z.ZodObject<{
134437
134437
  designSystemId: z.ZodString;
134438
134438
  workspaceInvitationId: z.ZodString;
134439
134439
  designSystemRole: z.ZodOptional<z.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
134440
- workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
134440
+ workspaceRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
134441
134441
  }, "strip", z.ZodTypeAny, {
134442
134442
  id: string;
134443
134443
  designSystemId: string;
134444
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134444
134445
  workspaceInvitationId: string;
134445
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134446
134446
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134447
134447
  }, {
134448
134448
  id: string;
134449
134449
  designSystemId: string;
134450
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134450
134451
  workspaceInvitationId: string;
134451
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134452
134452
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134453
134453
  }>, "many">;
134454
134454
  }, "strip", z.ZodTypeAny, {
134455
134455
  invitations: {
134456
134456
  id: string;
134457
134457
  designSystemId: string;
134458
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134458
134459
  workspaceInvitationId: string;
134459
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134460
134460
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134461
134461
  }[];
134462
134462
  members: {
134463
134463
  id: string;
134464
134464
  designSystemId: string;
134465
134465
  userId: string;
134466
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134466
134467
  workspaceMembershipId: string;
134467
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134468
134468
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134469
134469
  }[];
134470
134470
  }, {
134471
134471
  invitations: {
134472
134472
  id: string;
134473
134473
  designSystemId: string;
134474
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134474
134475
  workspaceInvitationId: string;
134475
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134476
134476
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134477
134477
  }[];
134478
134478
  members: {
134479
134479
  id: string;
134480
134480
  designSystemId: string;
134481
134481
  userId: string;
134482
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134482
134483
  workspaceMembershipId: string;
134483
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134484
134484
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134485
134485
  }[];
134486
134486
  }>;
@@ -134671,18 +134671,18 @@ declare const DesignSystemInvitation: z.ZodObject<{
134671
134671
  designSystemId: z.ZodString;
134672
134672
  workspaceInvitationId: z.ZodString;
134673
134673
  designSystemRole: z.ZodOptional<z.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
134674
- workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
134674
+ workspaceRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
134675
134675
  }, "strip", z.ZodTypeAny, {
134676
134676
  id: string;
134677
134677
  designSystemId: string;
134678
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134678
134679
  workspaceInvitationId: string;
134679
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134680
134680
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134681
134681
  }, {
134682
134682
  id: string;
134683
134683
  designSystemId: string;
134684
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134684
134685
  workspaceInvitationId: string;
134685
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134686
134686
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134687
134687
  }>;
134688
134688
  type DesignSystemInvitation = z.infer<typeof DesignSystemInvitation>;
package/dist/index.d.ts CHANGED
@@ -134376,20 +134376,20 @@ declare const DesignSystemMembership: z.ZodObject<{
134376
134376
  designSystemId: z.ZodString;
134377
134377
  designSystemRole: z.ZodOptional<z.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
134378
134378
  workspaceMembershipId: z.ZodString;
134379
- workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
134379
+ workspaceRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
134380
134380
  }, "strip", z.ZodTypeAny, {
134381
134381
  id: string;
134382
134382
  designSystemId: string;
134383
134383
  userId: string;
134384
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134384
134385
  workspaceMembershipId: string;
134385
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134386
134386
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134387
134387
  }, {
134388
134388
  id: string;
134389
134389
  designSystemId: string;
134390
134390
  userId: string;
134391
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134391
134392
  workspaceMembershipId: string;
134392
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134393
134393
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134394
134394
  }>;
134395
134395
  type DesignSystemMembership = z.infer<typeof DesignSystemMembership>;
@@ -134416,20 +134416,20 @@ declare const DesignSystemMembers: z.ZodObject<{
134416
134416
  designSystemId: z.ZodString;
134417
134417
  designSystemRole: z.ZodOptional<z.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
134418
134418
  workspaceMembershipId: z.ZodString;
134419
- workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
134419
+ workspaceRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
134420
134420
  }, "strip", z.ZodTypeAny, {
134421
134421
  id: string;
134422
134422
  designSystemId: string;
134423
134423
  userId: string;
134424
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134424
134425
  workspaceMembershipId: string;
134425
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134426
134426
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134427
134427
  }, {
134428
134428
  id: string;
134429
134429
  designSystemId: string;
134430
134430
  userId: string;
134431
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134431
134432
  workspaceMembershipId: string;
134432
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134433
134433
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134434
134434
  }>, "many">;
134435
134435
  invitations: z.ZodArray<z.ZodObject<{
@@ -134437,50 +134437,50 @@ declare const DesignSystemMembers: z.ZodObject<{
134437
134437
  designSystemId: z.ZodString;
134438
134438
  workspaceInvitationId: z.ZodString;
134439
134439
  designSystemRole: z.ZodOptional<z.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
134440
- workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
134440
+ workspaceRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
134441
134441
  }, "strip", z.ZodTypeAny, {
134442
134442
  id: string;
134443
134443
  designSystemId: string;
134444
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134444
134445
  workspaceInvitationId: string;
134445
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134446
134446
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134447
134447
  }, {
134448
134448
  id: string;
134449
134449
  designSystemId: string;
134450
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134450
134451
  workspaceInvitationId: string;
134451
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134452
134452
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134453
134453
  }>, "many">;
134454
134454
  }, "strip", z.ZodTypeAny, {
134455
134455
  invitations: {
134456
134456
  id: string;
134457
134457
  designSystemId: string;
134458
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134458
134459
  workspaceInvitationId: string;
134459
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134460
134460
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134461
134461
  }[];
134462
134462
  members: {
134463
134463
  id: string;
134464
134464
  designSystemId: string;
134465
134465
  userId: string;
134466
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134466
134467
  workspaceMembershipId: string;
134467
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134468
134468
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134469
134469
  }[];
134470
134470
  }, {
134471
134471
  invitations: {
134472
134472
  id: string;
134473
134473
  designSystemId: string;
134474
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134474
134475
  workspaceInvitationId: string;
134475
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134476
134476
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134477
134477
  }[];
134478
134478
  members: {
134479
134479
  id: string;
134480
134480
  designSystemId: string;
134481
134481
  userId: string;
134482
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134482
134483
  workspaceMembershipId: string;
134483
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134484
134484
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134485
134485
  }[];
134486
134486
  }>;
@@ -134671,18 +134671,18 @@ declare const DesignSystemInvitation: z.ZodObject<{
134671
134671
  designSystemId: z.ZodString;
134672
134672
  workspaceInvitationId: z.ZodString;
134673
134673
  designSystemRole: z.ZodOptional<z.ZodEnum<["Admin", "Contributor", "Creator", "Viewer"]>>;
134674
- workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
134674
+ workspaceRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
134675
134675
  }, "strip", z.ZodTypeAny, {
134676
134676
  id: string;
134677
134677
  designSystemId: string;
134678
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134678
134679
  workspaceInvitationId: string;
134679
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134680
134680
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134681
134681
  }, {
134682
134682
  id: string;
134683
134683
  designSystemId: string;
134684
+ workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
134684
134685
  workspaceInvitationId: string;
134685
- workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
134686
134686
  designSystemRole?: "Admin" | "Creator" | "Viewer" | "Contributor" | undefined;
134687
134687
  }>;
134688
134688
  type DesignSystemInvitation = z.infer<typeof DesignSystemInvitation>;
package/dist/index.js CHANGED
@@ -4393,7 +4393,7 @@ var DesignSystemInvitation = _zod.z.object({
4393
4393
  designSystemId: _zod.z.string(),
4394
4394
  workspaceInvitationId: _zod.z.string(),
4395
4395
  designSystemRole: DesignSystemRole.optional(),
4396
- workspaceRole: WorkspaceRoleSchema.optional()
4396
+ workspaceRole: WorkspaceRoleSchema
4397
4397
  });
4398
4398
 
4399
4399
  // src/dsm/membership/design-system-membership.ts
@@ -4403,7 +4403,7 @@ var DesignSystemMembership = _zod.z.object({
4403
4403
  designSystemId: _zod.z.string(),
4404
4404
  designSystemRole: DesignSystemRole.optional(),
4405
4405
  workspaceMembershipId: _zod.z.string(),
4406
- workspaceRole: WorkspaceRoleSchema.optional()
4406
+ workspaceRole: WorkspaceRoleSchema
4407
4407
  });
4408
4408
  var DesignSystemMembers = _zod.z.object({
4409
4409
  members: DesignSystemMembership.array(),