diff --git a/package.json b/package.json index d9e122c1..581563b9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@internxt/sdk", "author": "Internxt ", - "version": "1.17.16", + "version": "1.17.17", "description": "An sdk for interacting with Internxt's services", "repository": { "type": "git", 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'][]; };