@diskd-ai/email-client-mcp 0.1.44 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
import type { DeliveryDisposition, DeliveryProcessor } from "./deliveryProcessor.js";
|
|
3
3
|
export declare const EXCHANGE_DELIVERY_REQUEST_METHOD: "exchange/deliver";
|
|
4
4
|
declare const exchangeDeliveryRequestSchema: z.ZodObject<{
|
|
@@ -9,38 +9,8 @@ declare const exchangeDeliveryRequestSchema: z.ZodObject<{
|
|
|
9
9
|
mailboxId: z.ZodString;
|
|
10
10
|
externalId: z.ZodString;
|
|
11
11
|
revision: z.ZodString;
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
externalId: string;
|
|
15
|
-
eventId: string;
|
|
16
|
-
mailboxId: string;
|
|
17
|
-
revision: string;
|
|
18
|
-
}, {
|
|
19
|
-
account: string;
|
|
20
|
-
externalId: string;
|
|
21
|
-
eventId: string;
|
|
22
|
-
mailboxId: string;
|
|
23
|
-
revision: string;
|
|
24
|
-
}>;
|
|
25
|
-
}, "strict", z.ZodTypeAny, {
|
|
26
|
-
params: {
|
|
27
|
-
account: string;
|
|
28
|
-
externalId: string;
|
|
29
|
-
eventId: string;
|
|
30
|
-
mailboxId: string;
|
|
31
|
-
revision: string;
|
|
32
|
-
};
|
|
33
|
-
method: "exchange/deliver";
|
|
34
|
-
}, {
|
|
35
|
-
params: {
|
|
36
|
-
account: string;
|
|
37
|
-
externalId: string;
|
|
38
|
-
eventId: string;
|
|
39
|
-
mailboxId: string;
|
|
40
|
-
revision: string;
|
|
41
|
-
};
|
|
42
|
-
method: "exchange/deliver";
|
|
43
|
-
}>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
}, z.core.$strip>;
|
|
44
14
|
type ExchangeDeliveryRequest = z.infer<typeof exchangeDeliveryRequestSchema>;
|
|
45
15
|
export type ExchangeDeliveryProtocol = {
|
|
46
16
|
readonly setRequestHandler: (schema: typeof exchangeDeliveryRequestSchema, handler: (request: ExchangeDeliveryRequest) => Promise<DeliveryDisposition>) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RequestSchema } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
+
import * as z from "zod/v4";
|
|
2
3
|
export const EXCHANGE_DELIVERY_REQUEST_METHOD = "exchange/deliver";
|
|
3
|
-
const exchangeDeliveryRequestSchema =
|
|
4
|
-
.object({
|
|
4
|
+
const exchangeDeliveryRequestSchema = RequestSchema.extend({
|
|
5
5
|
method: z.literal(EXCHANGE_DELIVERY_REQUEST_METHOD),
|
|
6
6
|
params: z
|
|
7
7
|
.object({
|
|
@@ -12,8 +12,7 @@ const exchangeDeliveryRequestSchema = z
|
|
|
12
12
|
revision: z.string().min(1),
|
|
13
13
|
})
|
|
14
14
|
.strict(),
|
|
15
|
-
})
|
|
16
|
-
.strict();
|
|
15
|
+
});
|
|
17
16
|
/** Register a custom MCP request; this method is intentionally absent from the tool catalog. */
|
|
18
17
|
export const registerExchangeDeliveryHandler = (protocol, processor) => {
|
|
19
18
|
protocol.setRequestHandler(exchangeDeliveryRequestSchema, async (request) => processor.process({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deliveryProtocol.js","sourceRoot":"","sources":["../../../src/delivery/infrastructure/deliveryProtocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"deliveryProtocol.js","sourceRoot":"","sources":["../../../src/delivery/infrastructure/deliveryProtocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,CAAC,MAAM,gCAAgC,GAAG,kBAA2B,CAAC;AAE5E,MAAM,6BAA6B,GAAG,aAAa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