@supernova-studio/model 1.47.0 → 1.47.2
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 +13 -10
- package/dist/index.d.ts +13 -10
- package/dist/index.js +38 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -961,7 +961,13 @@ var SupernovaException = class _SupernovaException extends Error {
|
|
|
961
961
|
}
|
|
962
962
|
};
|
|
963
963
|
function errorToString(error) {
|
|
964
|
-
|
|
964
|
+
if (error instanceof Error) {
|
|
965
|
+
const errorAny = error;
|
|
966
|
+
const stderr = errorAny.result?.stderr ?? errorAny.stderr ?? "";
|
|
967
|
+
return stderr ? `${error.message}
|
|
968
|
+
${stderr}` : error.message;
|
|
969
|
+
}
|
|
970
|
+
return String(error);
|
|
965
971
|
}
|
|
966
972
|
|
|
967
973
|
// src/utils/common.ts
|
|
@@ -4979,6 +4985,25 @@ function deriveWorkspaceSeatTypeFromRole(role) {
|
|
|
4979
4985
|
return "None";
|
|
4980
4986
|
}
|
|
4981
4987
|
}
|
|
4988
|
+
var fullSeatTypeRoles = /* @__PURE__ */ new Set([
|
|
4989
|
+
WorkspaceRole.Owner,
|
|
4990
|
+
WorkspaceRole.Admin,
|
|
4991
|
+
WorkspaceRole.Creator,
|
|
4992
|
+
WorkspaceRole.Contributor
|
|
4993
|
+
]);
|
|
4994
|
+
var builderSeatTypeRoles = /* @__PURE__ */ new Set([WorkspaceRole.Owner, WorkspaceRole.Admin, WorkspaceRole.Creator]);
|
|
4995
|
+
var noneSeatTypeRoles = /* @__PURE__ */ new Set([WorkspaceRole.Viewer, WorkspaceRole.Billing]);
|
|
4996
|
+
function isValidRoleSeatPair(role, seatType) {
|
|
4997
|
+
switch (seatType) {
|
|
4998
|
+
case "Full":
|
|
4999
|
+
return fullSeatTypeRoles.has(role);
|
|
5000
|
+
case "Builder":
|
|
5001
|
+
return builderSeatTypeRoles.has(role);
|
|
5002
|
+
case "None":
|
|
5003
|
+
return noneSeatTypeRoles.has(role);
|
|
5004
|
+
}
|
|
5005
|
+
return true;
|
|
5006
|
+
}
|
|
4982
5007
|
|
|
4983
5008
|
// src/workspace/user-invite.ts
|
|
4984
5009
|
var MAX_MEMBERS_COUNT = 100;
|
|
@@ -6554,7 +6579,8 @@ var FlaggedFeature = z206.enum([
|
|
|
6554
6579
|
"PulsarConcurrency",
|
|
6555
6580
|
"PulsarProfilerMode",
|
|
6556
6581
|
"ForgeE2BTemplate",
|
|
6557
|
-
"ForgeOnDemandIterations"
|
|
6582
|
+
"ForgeOnDemandIterations",
|
|
6583
|
+
"ForgeAutoRetryOnErrors"
|
|
6558
6584
|
]);
|
|
6559
6585
|
var FeatureFlagDefaults = {
|
|
6560
6586
|
DocumentationIgnoreSnapshotsOnPublish: "route-bff+route-p3"
|
|
@@ -7542,6 +7568,7 @@ export {
|
|
|
7542
7568
|
isNullish,
|
|
7543
7569
|
isSlugReserved,
|
|
7544
7570
|
isTokenType,
|
|
7571
|
+
isValidRoleSeatPair,
|
|
7545
7572
|
joinRepeatingSpans,
|
|
7546
7573
|
mapByUnique,
|
|
7547
7574
|
mapPageBlockItemValuesV2,
|