@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.d.mts +17 -17
- package/dist/index.d.ts +17 -17
- package/dist/index.js +24 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/workspaces/membership.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -34243,7 +34243,7 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
|
|
|
34243
34243
|
}>;
|
|
34244
34244
|
type DTOIntegrationsGetListResponse = z.infer<typeof DTOIntegrationsGetListResponse>;
|
|
34245
34245
|
|
|
34246
|
-
declare const DTOWorkspaceRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing"]>;
|
|
34246
|
+
declare const DTOWorkspaceRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]>;
|
|
34247
34247
|
type DTOWorkspaceRole = z.infer<typeof DTOWorkspaceRole>;
|
|
34248
34248
|
declare const DTOUserWorkspaceMembership: z.ZodObject<{
|
|
34249
34249
|
workspace: z.ZodObject<{
|
|
@@ -35537,10 +35537,10 @@ declare const DTOUserWorkspaceMembership: z.ZodObject<{
|
|
|
35537
35537
|
password?: string | undefined;
|
|
35538
35538
|
} | undefined;
|
|
35539
35539
|
}>;
|
|
35540
|
-
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing"]>;
|
|
35541
|
-
effectiveRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing"]>;
|
|
35540
|
+
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]>;
|
|
35541
|
+
effectiveRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]>;
|
|
35542
35542
|
}, "strip", z.ZodTypeAny, {
|
|
35543
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
35543
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
35544
35544
|
workspace: {
|
|
35545
35545
|
id: string;
|
|
35546
35546
|
profile: {
|
|
@@ -35716,9 +35716,9 @@ declare const DTOUserWorkspaceMembership: z.ZodObject<{
|
|
|
35716
35716
|
password?: string | undefined;
|
|
35717
35717
|
} | undefined;
|
|
35718
35718
|
};
|
|
35719
|
-
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
35719
|
+
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
35720
35720
|
}, {
|
|
35721
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
35721
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
35722
35722
|
workspace: {
|
|
35723
35723
|
id: string;
|
|
35724
35724
|
profile: {
|
|
@@ -35894,7 +35894,7 @@ declare const DTOUserWorkspaceMembership: z.ZodObject<{
|
|
|
35894
35894
|
password?: string | undefined;
|
|
35895
35895
|
} | undefined;
|
|
35896
35896
|
};
|
|
35897
|
-
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
35897
|
+
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
35898
35898
|
}>;
|
|
35899
35899
|
type DTOUserWorkspaceMembership = z.infer<typeof DTOUserWorkspaceMembership>;
|
|
35900
35900
|
declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
|
|
@@ -37190,10 +37190,10 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
|
|
|
37190
37190
|
password?: string | undefined;
|
|
37191
37191
|
} | undefined;
|
|
37192
37192
|
}>;
|
|
37193
|
-
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing"]>;
|
|
37194
|
-
effectiveRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing"]>;
|
|
37193
|
+
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]>;
|
|
37194
|
+
effectiveRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]>;
|
|
37195
37195
|
}, "strip", z.ZodTypeAny, {
|
|
37196
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
37196
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
37197
37197
|
workspace: {
|
|
37198
37198
|
id: string;
|
|
37199
37199
|
profile: {
|
|
@@ -37369,9 +37369,9 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
|
|
|
37369
37369
|
password?: string | undefined;
|
|
37370
37370
|
} | undefined;
|
|
37371
37371
|
};
|
|
37372
|
-
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
37372
|
+
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
37373
37373
|
}, {
|
|
37374
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
37374
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
37375
37375
|
workspace: {
|
|
37376
37376
|
id: string;
|
|
37377
37377
|
profile: {
|
|
@@ -37547,11 +37547,11 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
|
|
|
37547
37547
|
password?: string | undefined;
|
|
37548
37548
|
} | undefined;
|
|
37549
37549
|
};
|
|
37550
|
-
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
37550
|
+
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
37551
37551
|
}>, "many">;
|
|
37552
37552
|
}, "strip", z.ZodTypeAny, {
|
|
37553
37553
|
membership: {
|
|
37554
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
37554
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
37555
37555
|
workspace: {
|
|
37556
37556
|
id: string;
|
|
37557
37557
|
profile: {
|
|
@@ -37727,11 +37727,11 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
|
|
|
37727
37727
|
password?: string | undefined;
|
|
37728
37728
|
} | undefined;
|
|
37729
37729
|
};
|
|
37730
|
-
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
37730
|
+
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
37731
37731
|
}[];
|
|
37732
37732
|
}, {
|
|
37733
37733
|
membership: {
|
|
37734
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
37734
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
37735
37735
|
workspace: {
|
|
37736
37736
|
id: string;
|
|
37737
37737
|
profile: {
|
|
@@ -37907,7 +37907,7 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
|
|
|
37907
37907
|
password?: string | undefined;
|
|
37908
37908
|
} | undefined;
|
|
37909
37909
|
};
|
|
37910
|
-
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
37910
|
+
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
37911
37911
|
}[];
|
|
37912
37912
|
}>;
|
|
37913
37913
|
type DTOUserWorkspaceMembershipsResponse = z.infer<typeof DTOUserWorkspaceMembershipsResponse>;
|
package/dist/index.d.ts
CHANGED
|
@@ -34243,7 +34243,7 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
|
|
|
34243
34243
|
}>;
|
|
34244
34244
|
type DTOIntegrationsGetListResponse = z.infer<typeof DTOIntegrationsGetListResponse>;
|
|
34245
34245
|
|
|
34246
|
-
declare const DTOWorkspaceRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing"]>;
|
|
34246
|
+
declare const DTOWorkspaceRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]>;
|
|
34247
34247
|
type DTOWorkspaceRole = z.infer<typeof DTOWorkspaceRole>;
|
|
34248
34248
|
declare const DTOUserWorkspaceMembership: z.ZodObject<{
|
|
34249
34249
|
workspace: z.ZodObject<{
|
|
@@ -35537,10 +35537,10 @@ declare const DTOUserWorkspaceMembership: z.ZodObject<{
|
|
|
35537
35537
|
password?: string | undefined;
|
|
35538
35538
|
} | undefined;
|
|
35539
35539
|
}>;
|
|
35540
|
-
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing"]>;
|
|
35541
|
-
effectiveRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing"]>;
|
|
35540
|
+
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]>;
|
|
35541
|
+
effectiveRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]>;
|
|
35542
35542
|
}, "strip", z.ZodTypeAny, {
|
|
35543
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
35543
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
35544
35544
|
workspace: {
|
|
35545
35545
|
id: string;
|
|
35546
35546
|
profile: {
|
|
@@ -35716,9 +35716,9 @@ declare const DTOUserWorkspaceMembership: z.ZodObject<{
|
|
|
35716
35716
|
password?: string | undefined;
|
|
35717
35717
|
} | undefined;
|
|
35718
35718
|
};
|
|
35719
|
-
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
35719
|
+
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
35720
35720
|
}, {
|
|
35721
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
35721
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
35722
35722
|
workspace: {
|
|
35723
35723
|
id: string;
|
|
35724
35724
|
profile: {
|
|
@@ -35894,7 +35894,7 @@ declare const DTOUserWorkspaceMembership: z.ZodObject<{
|
|
|
35894
35894
|
password?: string | undefined;
|
|
35895
35895
|
} | undefined;
|
|
35896
35896
|
};
|
|
35897
|
-
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
35897
|
+
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
35898
35898
|
}>;
|
|
35899
35899
|
type DTOUserWorkspaceMembership = z.infer<typeof DTOUserWorkspaceMembership>;
|
|
35900
35900
|
declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
|
|
@@ -37190,10 +37190,10 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
|
|
|
37190
37190
|
password?: string | undefined;
|
|
37191
37191
|
} | undefined;
|
|
37192
37192
|
}>;
|
|
37193
|
-
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing"]>;
|
|
37194
|
-
effectiveRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing"]>;
|
|
37193
|
+
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]>;
|
|
37194
|
+
effectiveRole: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]>;
|
|
37195
37195
|
}, "strip", z.ZodTypeAny, {
|
|
37196
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
37196
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
37197
37197
|
workspace: {
|
|
37198
37198
|
id: string;
|
|
37199
37199
|
profile: {
|
|
@@ -37369,9 +37369,9 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
|
|
|
37369
37369
|
password?: string | undefined;
|
|
37370
37370
|
} | undefined;
|
|
37371
37371
|
};
|
|
37372
|
-
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
37372
|
+
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
37373
37373
|
}, {
|
|
37374
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
37374
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
37375
37375
|
workspace: {
|
|
37376
37376
|
id: string;
|
|
37377
37377
|
profile: {
|
|
@@ -37547,11 +37547,11 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
|
|
|
37547
37547
|
password?: string | undefined;
|
|
37548
37548
|
} | undefined;
|
|
37549
37549
|
};
|
|
37550
|
-
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
37550
|
+
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
37551
37551
|
}>, "many">;
|
|
37552
37552
|
}, "strip", z.ZodTypeAny, {
|
|
37553
37553
|
membership: {
|
|
37554
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
37554
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
37555
37555
|
workspace: {
|
|
37556
37556
|
id: string;
|
|
37557
37557
|
profile: {
|
|
@@ -37727,11 +37727,11 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
|
|
|
37727
37727
|
password?: string | undefined;
|
|
37728
37728
|
} | undefined;
|
|
37729
37729
|
};
|
|
37730
|
-
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
37730
|
+
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
37731
37731
|
}[];
|
|
37732
37732
|
}, {
|
|
37733
37733
|
membership: {
|
|
37734
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
37734
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
37735
37735
|
workspace: {
|
|
37736
37736
|
id: string;
|
|
37737
37737
|
profile: {
|
|
@@ -37907,7 +37907,7 @@ declare const DTOUserWorkspaceMembershipsResponse: z.ZodObject<{
|
|
|
37907
37907
|
password?: string | undefined;
|
|
37908
37908
|
} | undefined;
|
|
37909
37909
|
};
|
|
37910
|
-
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing";
|
|
37910
|
+
effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
|
|
37911
37911
|
}[];
|
|
37912
37912
|
}>;
|
|
37913
37913
|
type DTOUserWorkspaceMembershipsResponse = z.infer<typeof DTOUserWorkspaceMembershipsResponse>;
|
package/dist/index.js
CHANGED
|
@@ -46,7 +46,6 @@ var _zod = require('zod');
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var _deepequal = require('deep-equal'); var _deepequal2 = _interopRequireDefault(_deepequal);
|
|
50
49
|
|
|
51
50
|
|
|
52
51
|
var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequireDefault(_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 = _zod.z.object({
|
|
795
815
|
from: _zod.z.string(),
|
|
796
816
|
to: _zod.z.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 (!
|
|
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 = _zod.z.object({
|
|
4441
4461
|
npmProxyRegistryConfigId: _zod.z.string()
|
|
4442
4462
|
});
|
|
4443
|
-
var WorkspaceRoleSchema = _zod.z.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
4463
|
+
var WorkspaceRoleSchema = _zod.z.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 = _zod.z.object({
|
|
@@ -6264,7 +6284,7 @@ var DTOWorkspace = _zod.z.object({
|
|
|
6264
6284
|
});
|
|
6265
6285
|
|
|
6266
6286
|
// src/api/dto/workspaces/membership.ts
|
|
6267
|
-
var DTOWorkspaceRole = _zod.z.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
|
|
6287
|
+
var DTOWorkspaceRole = _zod.z.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6268
6288
|
var DTOUserWorkspaceMembership = _zod.z.object({
|
|
6269
6289
|
// Workspace the user is a member of
|
|
6270
6290
|
workspace: DTOWorkspace,
|