Skip to content

Commit

Permalink
feat: remove user from workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
Ederson committed Aug 19, 2024
1 parent dd942cd commit fdbabeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@internxt/sdk",
"version": "1.5.11",
"version": "1.5.12",
"description": "An sdk for interacting with Internxt's services",
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions src/workspaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ export class Workspaces {
return this.client.patch<void>(`workspaces/${workspaceId}/members/${memberId}/activate`, {}, this.headers());
}

public removeMember(workspaceId: string, memberId: string): Promise<void> {
return this.client.delete<void>(`workspaces/${workspaceId}/members/${memberId}`, this.headers());
}

public acceptInvitation(inviteId: string, token: string): Promise<void> {
return this.client.post<void>(
'workspaces/invitations/accept',
Expand Down

0 comments on commit fdbabeb

Please sign in to comment.