From 1e073a734d7ecb4150f13a380ab09d6e5a72858d Mon Sep 17 00:00:00 2001 From: jzunigax2 <125698953+jzunigax2@users.noreply.github.com> Date: Thu, 16 Jul 2026 12:15:19 -0300 Subject: [PATCH 1/2] refactor: update encryption schema descriptions and keys for clarity --- src/mail/schema.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/mail/schema.ts b/src/mail/schema.ts index 1ed106c5..6f0fd563 100644 --- a/src/mail/schema.ts +++ b/src/mail/schema.ts @@ -431,7 +431,7 @@ export interface components { EncryptedSummaryDto: { /** @description Encrypted preview snippet (base64) */ encryptedPreview: string; - /** @description Wrapped keys that unlock the preview, labeled per recipient; the caller picks theirs by address */ + /** @description Wrapped session keys, labeled per recipient; the caller picks theirs by address */ wrappedKeys: components['schemas']['EncryptedWrappedKeyDto'][]; }; EmailSummaryResponseDto: { @@ -620,16 +620,16 @@ export interface components { recipients: components['schemas']['RecipientKeyDto'][]; }; EncryptionBlockDto: { - /** @example v2 */ + /** @example v3 */ version: string; - /** @description Encrypted body payload (base64); decrypts to JSON { body, attachmentsSessionKey } */ + /** @description Encrypted body (base64) */ encryptedText: string; - /** @description Wrapped keys that unlock the body payload, labeled per recipient */ - wrappedKeys: components['schemas']['EncryptedWrappedKeyDto'][]; - /** @description Encrypted preview snippet (base64), ~256 chars plaintext, sealed separately from the body */ + /** @description Encrypted preview snippet (base64), ~256 chars plaintext, same session key as the body */ encryptedPreview: string; - /** @description Wrapped keys that unlock the preview, labeled per recipient */ - previewWrappedKeys: components['schemas']['EncryptedWrappedKeyDto'][]; + /** @description Encrypted attachments session key (base64), same session key as the body */ + encryptedAttachmentsSessionKey: string; + /** @description Wrapped session keys, labeled per recipient; one entry unlocks body, preview and attachments key */ + wrappedKeys: components['schemas']['EncryptedWrappedKeyDto'][]; }; AttachmentRefDto: { /** @example T1a2b3c… */ @@ -696,7 +696,7 @@ export interface components { textBody?: string; /** @example
Still working on this…
*/ htmlBody?: string; - /** @description When present, the draft body is stored encrypted. Only the sender can decrypt it later, so wrappedKeys / previewWrappedKeys should contain a single entry built from the sender's own public key. */ + /** @description When present, the draft body is stored encrypted. Only the sender can decrypt it later, so wrappedKeys should contain a single entry built from the sender's own public key. */ encryption?: components['schemas']['EncryptionBlockDto']; attachments?: components['schemas']['AttachmentRefDto'][]; }; From f921f041dc45ecb20bd7c7d56fd961d24b5662c8 Mon Sep 17 00:00:00 2001 From: jzunigax2 <125698953+jzunigax2@users.noreply.github.com> Date: Thu, 16 Jul 2026 12:28:05 -0300 Subject: [PATCH 2/2] chore: update SDK version to 1.17.17 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3bbe99c0..581563b9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@internxt/sdk", "author": "Internxt