From 574de03e4205dd38bb08285eec21b09e01a70abb Mon Sep 17 00:00:00 2001 From: Maurus Decimus <11444311+mdecimus@users.noreply.github.com> Date: Sun, 21 Jun 2026 15:33:51 +0200 Subject: [PATCH] Include required JMAP capabilities in `using` --- CHANGELOG.md | 3 ++- src/services/jmap/client.ts | 12 +++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2d7b79..77dfe23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). -## [1.0.5] - 2026-05-XX +## [1.0.5] - 2026-06-21 ### Added @@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file. This projec ### Fixed - Redirect to `/login` when there is no refresh token. +- Include required JMAP capabilities in `using`. - Default scopes omit `offline_access`. ## [1.0.4] - 2026-05-11 diff --git a/src/services/jmap/client.ts b/src/services/jmap/client.ts index e44253d..9d98223 100644 --- a/src/services/jmap/client.ts +++ b/src/services/jmap/client.ts @@ -10,7 +10,17 @@ import { logJmapExchange } from '@/lib/debug'; import type { JmapMethodCall, JmapMethodResponse, JmapQueryResponse, JmapResponse } from '@/types/jmap'; import type { Schema } from '@/types/schema'; -const JMAP_USING = ['urn:ietf:params:jmap:core', 'urn:stalwart:jmap']; +const JMAP_USING = [ + 'urn:ietf:params:jmap:core', + 'urn:stalwart:jmap', + 'urn:ietf:params:jmap:blob', + 'urn:ietf:params:jmap:mail', + 'urn:ietf:params:jmap:calendars', + 'urn:ietf:params:jmap:contacts', + 'urn:ietf:params:jmap:principals', + 'urn:ietf:params:jmap:sieve', + 'urn:ietf:params:jmap:vacationresponse', +]; export function getAccountId(objectType: string): string { const { primaryAccountId, activeAccountId } = useAuthStore.getState();