@supernova-studio/client 0.55.32 → 0.55.33
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 +68 -1
- package/dist/index.d.ts +68 -1
- package/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/workspaces/invitations.ts +10 -0
- package/src/api/endpoints/workspaces/workspace-invites.ts +17 -1
package/dist/index.mjs
CHANGED
|
@@ -3817,14 +3817,16 @@ var DesignSystemInvitation = z132.object({
|
|
|
3817
3817
|
id: z132.string(),
|
|
3818
3818
|
designSystemId: z132.string(),
|
|
3819
3819
|
workspaceInvitationId: z132.string(),
|
|
3820
|
-
designSystemRole: DesignSystemRole.optional()
|
|
3820
|
+
designSystemRole: DesignSystemRole.optional(),
|
|
3821
|
+
workspaceRole: WorkspaceRoleSchema.optional()
|
|
3821
3822
|
});
|
|
3822
3823
|
var DesignSystemMembership = z133.object({
|
|
3823
3824
|
id: z133.string(),
|
|
3824
3825
|
userId: z133.string(),
|
|
3825
3826
|
designSystemId: z133.string(),
|
|
3826
3827
|
designSystemRole: DesignSystemRole.optional(),
|
|
3827
|
-
workspaceMembershipId: z133.string()
|
|
3828
|
+
workspaceMembershipId: z133.string(),
|
|
3829
|
+
workspaceRole: WorkspaceRoleSchema.optional()
|
|
3828
3830
|
});
|
|
3829
3831
|
var DesignSystemMembers = z133.object({
|
|
3830
3832
|
members: DesignSystemMembership.array(),
|
|
@@ -5633,6 +5635,12 @@ var DTOWorkspaceInvitationsListInput = z199.object({
|
|
|
5633
5635
|
var DTOWorkspaceInvitationsResponse = z199.object({
|
|
5634
5636
|
invitations: WorkspaceInvitation.array()
|
|
5635
5637
|
});
|
|
5638
|
+
var DTOWorkspaceInviteUpdate = z199.object({
|
|
5639
|
+
role: WorkspaceRoleSchema
|
|
5640
|
+
});
|
|
5641
|
+
var DTOWorkspaceInvitationUpdateResponse = z199.object({
|
|
5642
|
+
invitation: WorkspaceInvitation
|
|
5643
|
+
});
|
|
5636
5644
|
|
|
5637
5645
|
// src/api/dto/workspaces/membership.ts
|
|
5638
5646
|
import { z as z202 } from "zod";
|
|
@@ -6789,6 +6797,16 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
6789
6797
|
constructor(requestExecutor) {
|
|
6790
6798
|
this.requestExecutor = requestExecutor;
|
|
6791
6799
|
}
|
|
6800
|
+
update(workspaceId, invitationId, body) {
|
|
6801
|
+
return this.requestExecutor.json(
|
|
6802
|
+
`/workspaces/${workspaceId}/invitations/${invitationId}/role`,
|
|
6803
|
+
DTOWorkspaceInvitationUpdateResponse,
|
|
6804
|
+
{
|
|
6805
|
+
method: "PUT",
|
|
6806
|
+
body
|
|
6807
|
+
}
|
|
6808
|
+
);
|
|
6809
|
+
}
|
|
6792
6810
|
list(workspaceId) {
|
|
6793
6811
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/invitations`, DTOWorkspaceInvitationsResponse, {
|
|
6794
6812
|
method: "GET"
|
|
@@ -12144,8 +12162,10 @@ export {
|
|
|
12144
12162
|
DTOWorkspaceIntegrationOauthInput,
|
|
12145
12163
|
DTOWorkspaceIntegrationPATInput,
|
|
12146
12164
|
DTOWorkspaceInvitationInput,
|
|
12165
|
+
DTOWorkspaceInvitationUpdateResponse,
|
|
12147
12166
|
DTOWorkspaceInvitationsListInput,
|
|
12148
12167
|
DTOWorkspaceInvitationsResponse,
|
|
12168
|
+
DTOWorkspaceInviteUpdate,
|
|
12149
12169
|
DTOWorkspaceMember,
|
|
12150
12170
|
DTOWorkspaceMembersListResponse,
|
|
12151
12171
|
DTOWorkspaceResponse,
|