@supernova-studio/client 0.53.3 → 0.53.5

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.mjs CHANGED
@@ -46,7 +46,6 @@ import { z as z30 } from "zod";
46
46
  import { z as z29 } from "zod";
47
47
  import { z as z33 } from "zod";
48
48
  import { z as z32 } from "zod";
49
- import deepEqual from "deep-equal";
50
49
  import { z as z40 } from "zod";
51
50
  import { z as z34 } from "zod";
52
51
  import slugifyImplementation from "@sindresorhus/slugify";
@@ -791,6 +790,27 @@ function groupBy(items, keyFn) {
791
790
  }
792
791
  return result;
793
792
  }
793
+ function areShallowObjectsEqual(lhs, rhs) {
794
+ if (lhs === void 0 !== (rhs === void 0))
795
+ return false;
796
+ if (lhs === void 0 || rhs === void 0)
797
+ return true;
798
+ if (lhs === null !== (rhs === null))
799
+ return false;
800
+ if (lhs === null || rhs === null)
801
+ return true;
802
+ for (const key in lhs) {
803
+ if (!(key in rhs) || lhs[key] !== rhs[key]) {
804
+ return false;
805
+ }
806
+ }
807
+ for (const key in rhs) {
808
+ if (!(key in lhs)) {
809
+ return false;
810
+ }
811
+ }
812
+ return true;
813
+ }
794
814
  var ContentLoadInstruction = z34.object({
795
815
  from: z34.string(),
796
816
  to: z34.string(),
@@ -1868,7 +1888,7 @@ function areAttributesEqual(lhs, rhs) {
1868
1888
  const lhsMap = mapByUnique(lhs, (i) => i.type);
1869
1889
  for (const rhsAttribute of rhs) {
1870
1890
  const lhsAttribute = lhsMap.get(rhsAttribute.type);
1871
- if (!deepEqual(lhsAttribute, rhsAttribute))
1891
+ if (!areShallowObjectsEqual(lhsAttribute, rhsAttribute))
1872
1892
  return false;
1873
1893
  }
1874
1894
  return true;
@@ -4440,7 +4460,7 @@ var NpmPackage = AnyRecord.and(
4440
4460
  var NpmProxyTokenPayload = z163.object({
4441
4461
  npmProxyRegistryConfigId: z163.string()
4442
4462
  });
4443
- var WorkspaceRoleSchema = z164.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
4463
+ var WorkspaceRoleSchema = z164.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4444
4464
  var WorkspaceRole = WorkspaceRoleSchema.enum;
4445
4465
  var MAX_MEMBERS_COUNT = 100;
4446
4466
  var UserInvite = z165.object({
@@ -6264,7 +6284,7 @@ var DTOWorkspace = z223.object({
6264
6284
  });
6265
6285
 
6266
6286
  // src/api/dto/workspaces/membership.ts
6267
- var DTOWorkspaceRole = z224.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
6287
+ var DTOWorkspaceRole = z224.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
6268
6288
  var DTOUserWorkspaceMembership = z224.object({
6269
6289
  // Workspace the user is a member of
6270
6290
  workspace: DTOWorkspace,