Skip to content

Commit

Permalink
Merge pull request #237 from internxt/feature/PB-2392-owner-delete-us…
Browse files Browse the repository at this point in the history
…ers-from-my-workspace

[PB-2392] Feat: remove user from workspace
  • Loading branch information
evillalba94 authored Aug 19, 2024
2 parents dd942cd + fdbabeb commit c5a67af
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 c5a67af

Please sign in to comment.