Include required JMAP capabilities in using

This commit is contained in:
Maurus Decimus
2026-06-21 15:33:51 +02:00
parent a7fda8bd6b
commit 574de03e42
2 changed files with 13 additions and 2 deletions
+2 -1
View File
@@ -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/). 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 ### Added
@@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file. This projec
### Fixed ### Fixed
- Redirect to `/login` when there is no refresh token. - Redirect to `/login` when there is no refresh token.
- Include required JMAP capabilities in `using`.
- Default scopes omit `offline_access`. - Default scopes omit `offline_access`.
## [1.0.4] - 2026-05-11 ## [1.0.4] - 2026-05-11
+11 -1
View File
@@ -10,7 +10,17 @@ import { logJmapExchange } from '@/lib/debug';
import type { JmapMethodCall, JmapMethodResponse, JmapQueryResponse, JmapResponse } from '@/types/jmap'; import type { JmapMethodCall, JmapMethodResponse, JmapQueryResponse, JmapResponse } from '@/types/jmap';
import type { Schema } from '@/types/schema'; 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 { export function getAccountId(objectType: string): string {
const { primaryAccountId, activeAccountId } = useAuthStore.getState(); const { primaryAccountId, activeAccountId } = useAuthStore.getState();