@supernova-studio/model 1.16.1 → 1.16.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 +25 -7
- package/dist/index.d.ts +25 -7
- package/dist/index.js +20 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4938,6 +4938,20 @@ import { z as z133 } from "zod";
|
|
|
4938
4938
|
import { z as z132 } from "zod";
|
|
4939
4939
|
var WorkspaceRoleSchema = z132.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
4940
4940
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4941
|
+
var WorkspaceSeatType = z132.enum(["Full", "Builder", "None"]);
|
|
4942
|
+
function deriveWorkspaceSeatTypeFromRole(role) {
|
|
4943
|
+
switch (role) {
|
|
4944
|
+
case "Owner":
|
|
4945
|
+
case "Admin":
|
|
4946
|
+
case "Creator":
|
|
4947
|
+
case "Contributor":
|
|
4948
|
+
return "Full";
|
|
4949
|
+
case "Viewer":
|
|
4950
|
+
case "Billing":
|
|
4951
|
+
case "Guest":
|
|
4952
|
+
return "None";
|
|
4953
|
+
}
|
|
4954
|
+
}
|
|
4941
4955
|
|
|
4942
4956
|
// src/workspace/user-invite.ts
|
|
4943
4957
|
var MAX_MEMBERS_COUNT = 100;
|
|
@@ -5028,6 +5042,7 @@ var WorkspaceInvitation = z138.object({
|
|
|
5028
5042
|
createdAt: z138.coerce.date(),
|
|
5029
5043
|
resentAt: z138.coerce.date().nullish(),
|
|
5030
5044
|
role: z138.nativeEnum(WorkspaceRole),
|
|
5045
|
+
seatType: WorkspaceSeatType,
|
|
5031
5046
|
workspaceId: z138.string(),
|
|
5032
5047
|
invitedBy: z138.string()
|
|
5033
5048
|
});
|
|
@@ -5187,6 +5202,7 @@ var WorkspaceMembership = z147.object({
|
|
|
5187
5202
|
userId: z147.string(),
|
|
5188
5203
|
workspaceId: z147.string(),
|
|
5189
5204
|
workspaceRole: z147.nativeEnum(WorkspaceRole),
|
|
5205
|
+
seatType: WorkspaceSeatType,
|
|
5190
5206
|
notificationSettings: UserNotificationSettings,
|
|
5191
5207
|
isPrimaryOwner: z147.boolean().nullish()
|
|
5192
5208
|
});
|
|
@@ -5195,6 +5211,7 @@ var UpdateMembershipRolesInput = z147.object({
|
|
|
5195
5211
|
z147.object({
|
|
5196
5212
|
userId: z147.string(),
|
|
5197
5213
|
role: z147.nativeEnum(WorkspaceRole),
|
|
5214
|
+
seatType: WorkspaceSeatType.optional(),
|
|
5198
5215
|
isPrimaryOwner: z147.boolean().optional()
|
|
5199
5216
|
})
|
|
5200
5217
|
)
|
|
@@ -7344,6 +7361,7 @@ export {
|
|
|
7344
7361
|
WorkspaceRole,
|
|
7345
7362
|
WorkspaceRoleSchema,
|
|
7346
7363
|
WorkspaceRoom,
|
|
7364
|
+
WorkspaceSeatType,
|
|
7347
7365
|
WorkspaceUntypedData,
|
|
7348
7366
|
WorkspaceWithDesignSystems,
|
|
7349
7367
|
ZIndexTokenData,
|
|
@@ -7362,6 +7380,7 @@ export {
|
|
|
7362
7380
|
defaultDocumentationItemHeaderV1,
|
|
7363
7381
|
defaultDocumentationItemHeaderV2,
|
|
7364
7382
|
defaultNotificationSettings,
|
|
7383
|
+
deriveWorkspaceSeatTypeFromRole,
|
|
7365
7384
|
designTokenImportModelTypeFilter,
|
|
7366
7385
|
designTokenTypeFilter,
|
|
7367
7386
|
extractTokenTypedData,
|