Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@internxt/sdk",
"author": "Internxt <[email protected]>",
"version": "1.7.0",
"version": "1.7.1",
"description": "An sdk for interacting with Internxt's services",
"repository": {
"type": "git",
Expand Down
16 changes: 0 additions & 16 deletions src/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,22 +350,6 @@ export class Auth {
);
}

/**
* Upgrade hash and salt in the database
* @param newHash
* @param newSalt
*/
public upgradeHash(newHash: string, newSalt: string): Promise<void> {
return this.client.patch(
'/users/:id',
{
newPassword: newHash,
newSalt: newSalt,
},
this.basicHeaders(),
);
}

/**
* Restore password with email link
* @param token
Expand Down
1 change: 0 additions & 1 deletion src/drive/share/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ export type ShareFolderWithUserPayload = {
encryptionAlgorithm?: string;
roleId: string;
persistPreviousSharing?: boolean;
hybridModeEnabled: boolean;
};

export type CreateSharingPayload = {
Expand Down
5 changes: 0 additions & 5 deletions src/workspaces/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ describe('Workspaces service tests', () => {
id: '1',
memberId: 'member1',
key: 'user_key_1',
hybridModeEnabled: false,
workspaceId: 'workspace1',
spaceLimit: '10GB',
driveUsage: '2GB',
Expand Down Expand Up @@ -89,7 +88,6 @@ describe('Workspaces service tests', () => {
id: '2',
memberId: 'member2',
key: 'user_key_2',
hybridModeEnabled: false,
workspaceId: 'workspace2',
spaceLimit: '15GB',
driveUsage: '5GB',
Expand Down Expand Up @@ -175,7 +173,6 @@ describe('Workspaces service tests', () => {
address: 'Workspace Address',
description: 'Workspace Description',
encryptedMnemonic: 'encryptedMnemonic',
hybridModeEnabled: false,
};
const workspaceSetupInfo: WorkspaceSetupInfo = {
workspaceId: 'workspaceId',
Expand Down Expand Up @@ -390,7 +387,6 @@ describe('Workspaces service tests', () => {
const { client, headers } = clientAndHeaders();
const postCall = sinon.stub(httpClient, 'post').resolves();
const message = 'Test message';
const hybridModeEnabled = false;

await client.inviteMemberToWorkspace({
workspaceId,
Expand All @@ -399,7 +395,6 @@ describe('Workspaces service tests', () => {
encryptedMnemonicInBase64,
encryptionAlgorithm,
message,
hybridModeEnabled: hybridModeEnabled,
});

expect(postCall.firstCall.args).toEqual([
Expand Down
3 changes: 1 addition & 2 deletions src/workspaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,10 @@ export class Workspaces {
address,
description,
encryptedMnemonic,
hybridModeEnabled,
}: WorkspaceSetupInfo): Promise<void> {
return this.client.patch<void>(
`workspaces/${workspaceId}/setup`,
{ name, address, description, encryptedMnemonic, hybridModeEnabled },
{ name, address, description, encryptedMnemonic },
this.headers(),
);
}
Expand Down
3 changes: 0 additions & 3 deletions src/workspaces/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export interface WorkspaceUser {
isManager: boolean;
isOwner: boolean;
key: string;
hybridModeEnabled: boolean;
member: Member;
memberId: string;
rootFolderId: string;
Expand Down Expand Up @@ -53,7 +52,6 @@ export type WorkspaceSetupInfo = {
address: string;
description: string;
encryptedMnemonic: string;
hybridModeEnabled: boolean;
};

export type PendingWorkspace = {
Expand Down Expand Up @@ -162,7 +160,6 @@ export type InviteMemberBody = {
encryptedMnemonicInBase64: string;
encryptionAlgorithm: string;
message: string;
hybridModeEnabled: boolean;
};

interface Invite {
Expand Down
Loading