refactor: code cleanup
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user