@supernova-studio/model 0.53.3 → 0.53.4
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 +27 -27
- package/dist/index.d.ts +27 -27
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/workspace/workspace-role.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -160798,7 +160798,7 @@ declare const PersonalAccessToken: z.ZodObject<{
|
|
|
160798
160798
|
id: z.ZodString;
|
|
160799
160799
|
userId: z.ZodString;
|
|
160800
160800
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
160801
|
-
workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>>;
|
|
160801
|
+
workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
|
|
160802
160802
|
name: z.ZodString;
|
|
160803
160803
|
hidden: z.ZodBoolean;
|
|
160804
160804
|
token: z.ZodString;
|
|
@@ -160814,7 +160814,7 @@ declare const PersonalAccessToken: z.ZodObject<{
|
|
|
160814
160814
|
token: string;
|
|
160815
160815
|
scope?: string | undefined;
|
|
160816
160816
|
workspaceId?: string | undefined;
|
|
160817
|
-
workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | undefined;
|
|
160817
|
+
workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
|
|
160818
160818
|
expireAt?: Date | undefined;
|
|
160819
160819
|
}, {
|
|
160820
160820
|
id: string;
|
|
@@ -160825,7 +160825,7 @@ declare const PersonalAccessToken: z.ZodObject<{
|
|
|
160825
160825
|
token: string;
|
|
160826
160826
|
scope?: string | undefined;
|
|
160827
160827
|
workspaceId?: string | undefined;
|
|
160828
|
-
workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | undefined;
|
|
160828
|
+
workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
|
|
160829
160829
|
expireAt?: Date | undefined;
|
|
160830
160830
|
}>;
|
|
160831
160831
|
type PersonalAccessToken = z.infer<typeof PersonalAccessToken>;
|
|
@@ -161982,24 +161982,24 @@ type SsoProvider = z.infer<typeof SsoProvider>;
|
|
|
161982
161982
|
declare const MAX_MEMBERS_COUNT = 100;
|
|
161983
161983
|
declare const UserInvite: z.ZodObject<{
|
|
161984
161984
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
161985
|
-
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>;
|
|
161985
|
+
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
|
|
161986
161986
|
}, "strip", z.ZodTypeAny, {
|
|
161987
161987
|
email: string;
|
|
161988
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
161988
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
161989
161989
|
}, {
|
|
161990
161990
|
email: string;
|
|
161991
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
161991
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
161992
161992
|
}>;
|
|
161993
161993
|
type UserInvite = z.infer<typeof UserInvite>;
|
|
161994
161994
|
declare const UserInvites: z.ZodArray<z.ZodObject<{
|
|
161995
161995
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
161996
|
-
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>;
|
|
161996
|
+
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
|
|
161997
161997
|
}, "strip", z.ZodTypeAny, {
|
|
161998
161998
|
email: string;
|
|
161999
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
161999
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162000
162000
|
}, {
|
|
162001
162001
|
email: string;
|
|
162002
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162002
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162003
162003
|
}>, "many">;
|
|
162004
162004
|
type UserInvites = z.infer<typeof UserInvites>;
|
|
162005
162005
|
|
|
@@ -162439,13 +162439,13 @@ declare const CreateWorkspaceInput: z.ZodObject<{
|
|
|
162439
162439
|
handle: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
162440
162440
|
invites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
162441
162441
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
162442
|
-
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>;
|
|
162442
|
+
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
|
|
162443
162443
|
}, "strip", z.ZodTypeAny, {
|
|
162444
162444
|
email: string;
|
|
162445
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162445
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162446
162446
|
}, {
|
|
162447
162447
|
email: string;
|
|
162448
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162448
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162449
162449
|
}>, "many">>;
|
|
162450
162450
|
promoCode: z.ZodOptional<z.ZodString>;
|
|
162451
162451
|
status: z.ZodOptional<z.ZodEnum<["active", "suspended", "gracePeriod", "cancelled", "downgraded_to_free"]>>;
|
|
@@ -162656,7 +162656,7 @@ declare const CreateWorkspaceInput: z.ZodObject<{
|
|
|
162656
162656
|
billingEmail?: string | undefined;
|
|
162657
162657
|
invites?: {
|
|
162658
162658
|
email: string;
|
|
162659
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162659
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162660
162660
|
}[] | undefined;
|
|
162661
162661
|
promoCode?: string | undefined;
|
|
162662
162662
|
}, {
|
|
@@ -162719,7 +162719,7 @@ declare const CreateWorkspaceInput: z.ZodObject<{
|
|
|
162719
162719
|
billingEmail?: string | undefined;
|
|
162720
162720
|
invites?: {
|
|
162721
162721
|
email: string;
|
|
162722
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162722
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162723
162723
|
}[] | undefined;
|
|
162724
162724
|
promoCode?: string | undefined;
|
|
162725
162725
|
}>;
|
|
@@ -162730,7 +162730,7 @@ declare const WorkspaceInvitation: z.ZodObject<{
|
|
|
162730
162730
|
email: z.ZodString;
|
|
162731
162731
|
createdAt: z.ZodDate;
|
|
162732
162732
|
resentAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
162733
|
-
role: z.ZodNativeEnum<z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>>;
|
|
162733
|
+
role: z.ZodNativeEnum<z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
|
|
162734
162734
|
workspaceId: z.ZodString;
|
|
162735
162735
|
invitedBy: z.ZodString;
|
|
162736
162736
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -162738,7 +162738,7 @@ declare const WorkspaceInvitation: z.ZodObject<{
|
|
|
162738
162738
|
createdAt: Date;
|
|
162739
162739
|
email: string;
|
|
162740
162740
|
workspaceId: string;
|
|
162741
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162741
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162742
162742
|
invitedBy: string;
|
|
162743
162743
|
resentAt?: Date | null | undefined;
|
|
162744
162744
|
}, {
|
|
@@ -162746,7 +162746,7 @@ declare const WorkspaceInvitation: z.ZodObject<{
|
|
|
162746
162746
|
createdAt: Date;
|
|
162747
162747
|
email: string;
|
|
162748
162748
|
workspaceId: string;
|
|
162749
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162749
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162750
162750
|
invitedBy: string;
|
|
162751
162751
|
resentAt?: Date | null | undefined;
|
|
162752
162752
|
}>;
|
|
@@ -162756,7 +162756,7 @@ declare const WorkspaceMembership: z.ZodObject<{
|
|
|
162756
162756
|
id: z.ZodString;
|
|
162757
162757
|
userId: z.ZodString;
|
|
162758
162758
|
workspaceId: z.ZodString;
|
|
162759
|
-
workspaceRole: z.ZodNativeEnum<z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>>;
|
|
162759
|
+
workspaceRole: z.ZodNativeEnum<z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
|
|
162760
162760
|
notificationSettings: z.ZodObject<{
|
|
162761
162761
|
liveblocksNotificationSettings: z.ZodObject<{
|
|
162762
162762
|
sendCommentNotificationEmails: z.ZodBoolean;
|
|
@@ -162778,7 +162778,7 @@ declare const WorkspaceMembership: z.ZodObject<{
|
|
|
162778
162778
|
id: string;
|
|
162779
162779
|
workspaceId: string;
|
|
162780
162780
|
userId: string;
|
|
162781
|
-
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162781
|
+
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162782
162782
|
notificationSettings: {
|
|
162783
162783
|
liveblocksNotificationSettings: {
|
|
162784
162784
|
sendCommentNotificationEmails: boolean;
|
|
@@ -162788,7 +162788,7 @@ declare const WorkspaceMembership: z.ZodObject<{
|
|
|
162788
162788
|
id: string;
|
|
162789
162789
|
workspaceId: string;
|
|
162790
162790
|
userId: string;
|
|
162791
|
-
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162791
|
+
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162792
162792
|
notificationSettings: {
|
|
162793
162793
|
liveblocksNotificationSettings: {
|
|
162794
162794
|
sendCommentNotificationEmails: boolean;
|
|
@@ -162799,30 +162799,30 @@ type WorkspaceMembership = z.infer<typeof WorkspaceMembership>;
|
|
|
162799
162799
|
declare const UpdateMembershipRolesInput: z.ZodObject<{
|
|
162800
162800
|
members: z.ZodArray<z.ZodObject<{
|
|
162801
162801
|
userId: z.ZodString;
|
|
162802
|
-
role: z.ZodNativeEnum<z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>>;
|
|
162802
|
+
role: z.ZodNativeEnum<z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
|
|
162803
162803
|
}, "strip", z.ZodTypeAny, {
|
|
162804
162804
|
userId: string;
|
|
162805
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162805
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162806
162806
|
}, {
|
|
162807
162807
|
userId: string;
|
|
162808
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162808
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162809
162809
|
}>, "many">;
|
|
162810
162810
|
}, "strip", z.ZodTypeAny, {
|
|
162811
162811
|
members: {
|
|
162812
162812
|
userId: string;
|
|
162813
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162813
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162814
162814
|
}[];
|
|
162815
162815
|
}, {
|
|
162816
162816
|
members: {
|
|
162817
162817
|
userId: string;
|
|
162818
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162818
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162819
162819
|
}[];
|
|
162820
162820
|
}>;
|
|
162821
162821
|
type UpdateMembershipRolesInput = z.infer<typeof UpdateMembershipRolesInput>;
|
|
162822
162822
|
|
|
162823
|
-
declare const WorkspaceRoleSchema: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>;
|
|
162823
|
+
declare const WorkspaceRoleSchema: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
|
|
162824
162824
|
type WorkspaceRole = z.infer<typeof WorkspaceRoleSchema>;
|
|
162825
|
-
declare const WorkspaceRole: z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>;
|
|
162825
|
+
declare const WorkspaceRole: z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
|
|
162826
162826
|
|
|
162827
162827
|
declare const WorkspaceProfileUpdate: z.ZodObject<Omit<{
|
|
162828
162828
|
name: z.ZodString;
|
package/dist/index.d.ts
CHANGED
|
@@ -160798,7 +160798,7 @@ declare const PersonalAccessToken: z.ZodObject<{
|
|
|
160798
160798
|
id: z.ZodString;
|
|
160799
160799
|
userId: z.ZodString;
|
|
160800
160800
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
160801
|
-
workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>>;
|
|
160801
|
+
workspaceRole: z.ZodOptional<z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
|
|
160802
160802
|
name: z.ZodString;
|
|
160803
160803
|
hidden: z.ZodBoolean;
|
|
160804
160804
|
token: z.ZodString;
|
|
@@ -160814,7 +160814,7 @@ declare const PersonalAccessToken: z.ZodObject<{
|
|
|
160814
160814
|
token: string;
|
|
160815
160815
|
scope?: string | undefined;
|
|
160816
160816
|
workspaceId?: string | undefined;
|
|
160817
|
-
workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | undefined;
|
|
160817
|
+
workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
|
|
160818
160818
|
expireAt?: Date | undefined;
|
|
160819
160819
|
}, {
|
|
160820
160820
|
id: string;
|
|
@@ -160825,7 +160825,7 @@ declare const PersonalAccessToken: z.ZodObject<{
|
|
|
160825
160825
|
token: string;
|
|
160826
160826
|
scope?: string | undefined;
|
|
160827
160827
|
workspaceId?: string | undefined;
|
|
160828
|
-
workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | undefined;
|
|
160828
|
+
workspaceRole?: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor" | undefined;
|
|
160829
160829
|
expireAt?: Date | undefined;
|
|
160830
160830
|
}>;
|
|
160831
160831
|
type PersonalAccessToken = z.infer<typeof PersonalAccessToken>;
|
|
@@ -161982,24 +161982,24 @@ type SsoProvider = z.infer<typeof SsoProvider>;
|
|
|
161982
161982
|
declare const MAX_MEMBERS_COUNT = 100;
|
|
161983
161983
|
declare const UserInvite: z.ZodObject<{
|
|
161984
161984
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
161985
|
-
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>;
|
|
161985
|
+
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
|
|
161986
161986
|
}, "strip", z.ZodTypeAny, {
|
|
161987
161987
|
email: string;
|
|
161988
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
161988
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
161989
161989
|
}, {
|
|
161990
161990
|
email: string;
|
|
161991
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
161991
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
161992
161992
|
}>;
|
|
161993
161993
|
type UserInvite = z.infer<typeof UserInvite>;
|
|
161994
161994
|
declare const UserInvites: z.ZodArray<z.ZodObject<{
|
|
161995
161995
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
161996
|
-
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>;
|
|
161996
|
+
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
|
|
161997
161997
|
}, "strip", z.ZodTypeAny, {
|
|
161998
161998
|
email: string;
|
|
161999
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
161999
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162000
162000
|
}, {
|
|
162001
162001
|
email: string;
|
|
162002
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162002
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162003
162003
|
}>, "many">;
|
|
162004
162004
|
type UserInvites = z.infer<typeof UserInvites>;
|
|
162005
162005
|
|
|
@@ -162439,13 +162439,13 @@ declare const CreateWorkspaceInput: z.ZodObject<{
|
|
|
162439
162439
|
handle: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
162440
162440
|
invites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
162441
162441
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
162442
|
-
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>;
|
|
162442
|
+
role: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
|
|
162443
162443
|
}, "strip", z.ZodTypeAny, {
|
|
162444
162444
|
email: string;
|
|
162445
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162445
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162446
162446
|
}, {
|
|
162447
162447
|
email: string;
|
|
162448
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162448
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162449
162449
|
}>, "many">>;
|
|
162450
162450
|
promoCode: z.ZodOptional<z.ZodString>;
|
|
162451
162451
|
status: z.ZodOptional<z.ZodEnum<["active", "suspended", "gracePeriod", "cancelled", "downgraded_to_free"]>>;
|
|
@@ -162656,7 +162656,7 @@ declare const CreateWorkspaceInput: z.ZodObject<{
|
|
|
162656
162656
|
billingEmail?: string | undefined;
|
|
162657
162657
|
invites?: {
|
|
162658
162658
|
email: string;
|
|
162659
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162659
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162660
162660
|
}[] | undefined;
|
|
162661
162661
|
promoCode?: string | undefined;
|
|
162662
162662
|
}, {
|
|
@@ -162719,7 +162719,7 @@ declare const CreateWorkspaceInput: z.ZodObject<{
|
|
|
162719
162719
|
billingEmail?: string | undefined;
|
|
162720
162720
|
invites?: {
|
|
162721
162721
|
email: string;
|
|
162722
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162722
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162723
162723
|
}[] | undefined;
|
|
162724
162724
|
promoCode?: string | undefined;
|
|
162725
162725
|
}>;
|
|
@@ -162730,7 +162730,7 @@ declare const WorkspaceInvitation: z.ZodObject<{
|
|
|
162730
162730
|
email: z.ZodString;
|
|
162731
162731
|
createdAt: z.ZodDate;
|
|
162732
162732
|
resentAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
162733
|
-
role: z.ZodNativeEnum<z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>>;
|
|
162733
|
+
role: z.ZodNativeEnum<z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
|
|
162734
162734
|
workspaceId: z.ZodString;
|
|
162735
162735
|
invitedBy: z.ZodString;
|
|
162736
162736
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -162738,7 +162738,7 @@ declare const WorkspaceInvitation: z.ZodObject<{
|
|
|
162738
162738
|
createdAt: Date;
|
|
162739
162739
|
email: string;
|
|
162740
162740
|
workspaceId: string;
|
|
162741
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162741
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162742
162742
|
invitedBy: string;
|
|
162743
162743
|
resentAt?: Date | null | undefined;
|
|
162744
162744
|
}, {
|
|
@@ -162746,7 +162746,7 @@ declare const WorkspaceInvitation: z.ZodObject<{
|
|
|
162746
162746
|
createdAt: Date;
|
|
162747
162747
|
email: string;
|
|
162748
162748
|
workspaceId: string;
|
|
162749
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162749
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162750
162750
|
invitedBy: string;
|
|
162751
162751
|
resentAt?: Date | null | undefined;
|
|
162752
162752
|
}>;
|
|
@@ -162756,7 +162756,7 @@ declare const WorkspaceMembership: z.ZodObject<{
|
|
|
162756
162756
|
id: z.ZodString;
|
|
162757
162757
|
userId: z.ZodString;
|
|
162758
162758
|
workspaceId: z.ZodString;
|
|
162759
|
-
workspaceRole: z.ZodNativeEnum<z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>>;
|
|
162759
|
+
workspaceRole: z.ZodNativeEnum<z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
|
|
162760
162760
|
notificationSettings: z.ZodObject<{
|
|
162761
162761
|
liveblocksNotificationSettings: z.ZodObject<{
|
|
162762
162762
|
sendCommentNotificationEmails: z.ZodBoolean;
|
|
@@ -162778,7 +162778,7 @@ declare const WorkspaceMembership: z.ZodObject<{
|
|
|
162778
162778
|
id: string;
|
|
162779
162779
|
workspaceId: string;
|
|
162780
162780
|
userId: string;
|
|
162781
|
-
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162781
|
+
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162782
162782
|
notificationSettings: {
|
|
162783
162783
|
liveblocksNotificationSettings: {
|
|
162784
162784
|
sendCommentNotificationEmails: boolean;
|
|
@@ -162788,7 +162788,7 @@ declare const WorkspaceMembership: z.ZodObject<{
|
|
|
162788
162788
|
id: string;
|
|
162789
162789
|
workspaceId: string;
|
|
162790
162790
|
userId: string;
|
|
162791
|
-
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162791
|
+
workspaceRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162792
162792
|
notificationSettings: {
|
|
162793
162793
|
liveblocksNotificationSettings: {
|
|
162794
162794
|
sendCommentNotificationEmails: boolean;
|
|
@@ -162799,30 +162799,30 @@ type WorkspaceMembership = z.infer<typeof WorkspaceMembership>;
|
|
|
162799
162799
|
declare const UpdateMembershipRolesInput: z.ZodObject<{
|
|
162800
162800
|
members: z.ZodArray<z.ZodObject<{
|
|
162801
162801
|
userId: z.ZodString;
|
|
162802
|
-
role: z.ZodNativeEnum<z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>>;
|
|
162802
|
+
role: z.ZodNativeEnum<z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>>;
|
|
162803
162803
|
}, "strip", z.ZodTypeAny, {
|
|
162804
162804
|
userId: string;
|
|
162805
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162805
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162806
162806
|
}, {
|
|
162807
162807
|
userId: string;
|
|
162808
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162808
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162809
162809
|
}>, "many">;
|
|
162810
162810
|
}, "strip", z.ZodTypeAny, {
|
|
162811
162811
|
members: {
|
|
162812
162812
|
userId: string;
|
|
162813
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162813
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162814
162814
|
}[];
|
|
162815
162815
|
}, {
|
|
162816
162816
|
members: {
|
|
162817
162817
|
userId: string;
|
|
162818
|
-
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest";
|
|
162818
|
+
role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Guest" | "Contributor";
|
|
162819
162819
|
}[];
|
|
162820
162820
|
}>;
|
|
162821
162821
|
type UpdateMembershipRolesInput = z.infer<typeof UpdateMembershipRolesInput>;
|
|
162822
162822
|
|
|
162823
|
-
declare const WorkspaceRoleSchema: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>;
|
|
162823
|
+
declare const WorkspaceRoleSchema: z.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
|
|
162824
162824
|
type WorkspaceRole = z.infer<typeof WorkspaceRoleSchema>;
|
|
162825
|
-
declare const WorkspaceRole: z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]>;
|
|
162825
|
+
declare const WorkspaceRole: z.Values<["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]>;
|
|
162826
162826
|
|
|
162827
162827
|
declare const WorkspaceProfileUpdate: z.ZodObject<Omit<{
|
|
162828
162828
|
name: z.ZodString;
|
package/dist/index.js
CHANGED
|
@@ -5064,7 +5064,7 @@ var NpmProxyTokenPayload = _zod.z.object({
|
|
|
5064
5064
|
|
|
5065
5065
|
// src/workspace/workspace-role.ts
|
|
5066
5066
|
|
|
5067
|
-
var WorkspaceRoleSchema = _zod.z.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
5067
|
+
var WorkspaceRoleSchema = _zod.z.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
5068
5068
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
5069
5069
|
|
|
5070
5070
|
// src/workspace/user-invite.ts
|