@abraca/dabra 2.0.8 → 2.0.10
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.ts
CHANGED
|
@@ -315,7 +315,8 @@ declare class AbracadabraClient {
|
|
|
315
315
|
deviceName?: string;
|
|
316
316
|
displayName?: string;
|
|
317
317
|
email?: string;
|
|
318
|
-
inviteCode?: string;
|
|
318
|
+
inviteCode?: string; /** X25519 encryption public key paired with the Ed25519 identity key. Required for E2E channels. */
|
|
319
|
+
x25519Key?: string;
|
|
319
320
|
}): Promise<UserProfile>;
|
|
320
321
|
/** Login with username + password. Auto-persists returned token. */
|
|
321
322
|
login(opts: {
|
package/package.json
CHANGED
package/src/AbracadabraClient.ts
CHANGED
|
@@ -175,6 +175,8 @@ export class AbracadabraClient {
|
|
|
175
175
|
displayName?: string;
|
|
176
176
|
email?: string;
|
|
177
177
|
inviteCode?: string;
|
|
178
|
+
/** X25519 encryption public key paired with the Ed25519 identity key. Required for E2E channels. */
|
|
179
|
+
x25519Key?: string;
|
|
178
180
|
}): Promise<UserProfile> {
|
|
179
181
|
const username = opts.username ?? `user-${opts.publicKey.slice(0, 8)}`;
|
|
180
182
|
return this.request<UserProfile>("POST", "/auth/register", {
|
|
@@ -185,6 +187,7 @@ export class AbracadabraClient {
|
|
|
185
187
|
displayName: opts.displayName,
|
|
186
188
|
email: opts.email,
|
|
187
189
|
inviteCode: opts.inviteCode,
|
|
190
|
+
x25519Key: opts.x25519Key,
|
|
188
191
|
},
|
|
189
192
|
auth: false,
|
|
190
193
|
});
|