refactor: code cleanup
All checks were successful
JS Unit Tests / test (pull_request) Successful in 29s
Build Test / test (pull_request) Successful in 33s
PHP Unit Tests / test (pull_request) Successful in 54s

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-03-06 22:51:32 -05:00
parent 07fab0873d
commit 006c303917
6 changed files with 501 additions and 809 deletions

View File

@@ -1,5 +1,4 @@
import type { ModuleIntegrations } from "@KTXC/types/moduleTypes";
import type { ProviderMetadata } from "@KTXM/MailManager/types/provider";
import type { ServiceInterface } from "@KTXM/MailManager/types/service";
import { JmapServiceObject } from './models/JmapServiceObject'
@@ -32,25 +31,7 @@ const integrations: ModuleIntegrations = {
label: 'JMAP',
description: 'Modern JSON-based mail API protocol',
icon: 'mdi-api',
auth: {
methods: ['BA', 'OA', 'TA'],
default: 'BA',
allowMethodSelection: true,
oauth: {
// OAuth config will be provider-specific
// Some JMAP providers use OAuth (e.g., Fastmail)
authorizeUrl: '', // Configured per-instance
tokenUrl: '',
scopes: ['mail'],
flowType: 'authorization_code'
}
},
supportsDiscovery: true,
meta: {
protocol: 'JMAP',
wellKnownPath: '/.well-known/jmap'
}
} as ProviderMetadata
}
]
};