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.9.0",
"version": "1.9.1",
"description": "An sdk for interacting with Internxt's services",
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion src/drive/users/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ export type UpdateProfilePayload = Partial<Pick<UserSettings, 'name' | 'lastname

export type PreCreateUserResponse = {
publicKey: string;
publicKyberKey: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can make this parameter optional for now. Wdyt? @sg-gs

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, as long as the backend is not offering it for sure we need to reflect the reality of the types

user: { uuid: UUID; email: string };
};

export type FriendInvite = { guestEmail: string; host: number; accepted: boolean; id: number };

export type UserPublicKeyResponse = { publicKey: string };
export type UserPublicKeyResponse = { publicKey: string, publicKyberKey: string };

export type VerifyEmailChangeResponse = {
oldEmail: string;
Expand Down
2 changes: 2 additions & 0 deletions test/drive/users/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ describe('# users service tests', () => {
const email = '[email protected]';
const callStub = sinon.stub(httpClient, 'post').resolves({
publicKey: 'publicKey',
publicKyberKey: 'publicKeyberKey',
user: { uuid: 'exampleUuid', email },
});

Expand All @@ -110,6 +111,7 @@ describe('# users service tests', () => {
expect(callStub.firstCall.args).toEqual(['/users/pre-create', { email }, headers]);
expect(body).toEqual({
publicKey: 'publicKey',
publicKyberKey: 'publicKeyberKey',
user: { uuid: 'exampleUuid', email },
});
});
Expand Down
Loading