@automate.ax/integration-contracts 0.55.0
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.
- package/dist/airtable/api.d.ts +19 -0
- package/dist/airtable/api.js +44 -0
- package/dist/airtable/index.d.ts +353 -0
- package/dist/airtable/index.js +32 -0
- package/dist/airtable/schemas.d.ts +716 -0
- package/dist/airtable/schemas.js +184 -0
- package/dist/asana/api.d.ts +70 -0
- package/dist/asana/api.js +119 -0
- package/dist/asana/index.d.ts +384 -0
- package/dist/asana/index.js +38 -0
- package/dist/asana/schemas.d.ts +1060 -0
- package/dist/asana/schemas.js +512 -0
- package/dist/brevo/api.d.ts +31 -0
- package/dist/brevo/api.js +64 -0
- package/dist/brevo/index.d.ts +822 -0
- package/dist/brevo/index.js +51 -0
- package/dist/brevo/schemas.d.ts +1217 -0
- package/dist/brevo/schemas.js +332 -0
- package/dist/github/index.d.ts +37 -0
- package/dist/github/index.js +106 -0
- package/dist/github/schemas.d.ts +8014 -0
- package/dist/github/schemas.js +113 -0
- package/dist/gmail/gmail.d.ts +172 -0
- package/dist/gmail/gmail.js +405 -0
- package/dist/gmail/index.d.ts +262 -0
- package/dist/gmail/index.js +23 -0
- package/dist/gmail/schemas.d.ts +444 -0
- package/dist/gmail/schemas.js +242 -0
- package/dist/google-calendar/event-schemas.d.ts +117 -0
- package/dist/google-calendar/event-schemas.js +13 -0
- package/dist/google-calendar/google-calendar.d.ts +147 -0
- package/dist/google-calendar/google-calendar.js +583 -0
- package/dist/google-calendar/index.d.ts +365 -0
- package/dist/google-calendar/index.js +24 -0
- package/dist/google-calendar/schemas.d.ts +592 -0
- package/dist/google-calendar/schemas.js +379 -0
- package/dist/google-forms/event-schemas.d.ts +105 -0
- package/dist/google-forms/event-schemas.js +20 -0
- package/dist/google-forms/google-forms.d.ts +243 -0
- package/dist/google-forms/google-forms.js +581 -0
- package/dist/google-forms/index.d.ts +141 -0
- package/dist/google-forms/index.js +20 -0
- package/dist/google-forms/schemas.d.ts +618 -0
- package/dist/google-forms/schemas.js +383 -0
- package/dist/linear/api.d.ts +63 -0
- package/dist/linear/api.js +88 -0
- package/dist/linear/index.d.ts +1338 -0
- package/dist/linear/index.js +55 -0
- package/dist/linear/schemas.d.ts +1795 -0
- package/dist/linear/schemas.js +760 -0
- package/dist/outlook/graph.d.ts +34 -0
- package/dist/outlook/graph.js +98 -0
- package/dist/outlook/index.d.ts +115 -0
- package/dist/outlook/index.js +11 -0
- package/dist/outlook/schemas.d.ts +529 -0
- package/dist/outlook/schemas.js +312 -0
- package/dist/resend/index.d.ts +707 -0
- package/dist/resend/index.js +54 -0
- package/dist/resend/schemas.d.ts +1033 -0
- package/dist/resend/schemas.js +377 -0
- package/dist/slack/index.d.ts +151 -0
- package/dist/slack/index.js +22 -0
- package/dist/slack/schemas.d.ts +641 -0
- package/dist/slack/schemas.js +581 -0
- package/dist/teams/graph.d.ts +33 -0
- package/dist/teams/graph.js +95 -0
- package/dist/teams/index.d.ts +164 -0
- package/dist/teams/index.js +21 -0
- package/dist/teams/schemas.d.ts +675 -0
- package/dist/teams/schemas.js +365 -0
- package/dist/trello/api.d.ts +69 -0
- package/dist/trello/api.js +140 -0
- package/dist/trello/event-schemas.d.ts +1101 -0
- package/dist/trello/event-schemas.js +233 -0
- package/dist/trello/index.d.ts +721 -0
- package/dist/trello/index.js +35 -0
- package/dist/trello/schemas.d.ts +283 -0
- package/dist/trello/schemas.js +401 -0
- package/dist/triggers.d.ts +26 -0
- package/dist/triggers.js +33 -0
- package/dist/vercel/index.d.ts +1065 -0
- package/dist/vercel/index.js +114 -0
- package/dist/vercel/schemas.d.ts +1518 -0
- package/dist/vercel/schemas.js +335 -0
- package/dist/whatsapp/api.d.ts +62 -0
- package/dist/whatsapp/api.js +121 -0
- package/dist/whatsapp/index.d.ts +614 -0
- package/dist/whatsapp/index.js +35 -0
- package/dist/whatsapp/schemas.d.ts +926 -0
- package/dist/whatsapp/schemas.js +326 -0
- package/package.json +169 -0
- package/src/airtable/api.ts +66 -0
- package/src/airtable/index.ts +41 -0
- package/src/airtable/schemas.ts +231 -0
- package/src/asana/api.ts +171 -0
- package/src/asana/index.ts +49 -0
- package/src/asana/schemas.ts +655 -0
- package/src/brevo/api.ts +89 -0
- package/src/brevo/index.ts +66 -0
- package/src/brevo/schemas.ts +449 -0
- package/src/github/index.ts +217 -0
- package/src/github/schemas.ts +435 -0
- package/src/gmail/gmail.ts +577 -0
- package/src/gmail/index.ts +26 -0
- package/src/gmail/schemas.ts +327 -0
- package/src/google-calendar/event-schemas.ts +16 -0
- package/src/google-calendar/google-calendar.ts +727 -0
- package/src/google-calendar/index.ts +27 -0
- package/src/google-calendar/schemas.ts +529 -0
- package/src/google-forms/event-schemas.ts +26 -0
- package/src/google-forms/google-forms.ts +683 -0
- package/src/google-forms/index.ts +23 -0
- package/src/google-forms/schemas.ts +499 -0
- package/src/linear/api.ts +141 -0
- package/src/linear/index.ts +71 -0
- package/src/linear/schemas.ts +1060 -0
- package/src/outlook/graph.ts +132 -0
- package/src/outlook/index.ts +14 -0
- package/src/outlook/schemas.ts +388 -0
- package/src/resend/index.ts +70 -0
- package/src/resend/schemas.ts +462 -0
- package/src/slack/index.ts +29 -0
- package/src/slack/schemas.ts +737 -0
- package/src/teams/graph.ts +130 -0
- package/src/teams/index.ts +27 -0
- package/src/teams/schemas.ts +463 -0
- package/src/trello/api.ts +190 -0
- package/src/trello/event-schemas.ts +290 -0
- package/src/trello/index.ts +45 -0
- package/src/trello/schemas.ts +507 -0
- package/src/triggers.ts +68 -0
- package/src/vercel/index.ts +147 -0
- package/src/vercel/schemas.ts +594 -0
- package/src/whatsapp/api.ts +171 -0
- package/src/whatsapp/index.ts +46 -0
- package/src/whatsapp/schemas.ts +341 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Options accepted by the authenticated Outlook Graph request helper. */
|
|
3
|
+
export interface OutlookGraphRequestOptions {
|
|
4
|
+
/** JSON-serializable request body. */
|
|
5
|
+
body?: unknown;
|
|
6
|
+
/** Additional HTTP headers. */
|
|
7
|
+
headers?: RequestInit["headers"];
|
|
8
|
+
/** HTTP method. */
|
|
9
|
+
method?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Creates a small authenticated Microsoft Graph client for Outlook APIs.
|
|
13
|
+
*
|
|
14
|
+
* The raw `fetch` method is an escape hatch for provider features not yet
|
|
15
|
+
* represented by a built-in action. `request` parses JSON and reports Graph
|
|
16
|
+
* errors with their provider code and message.
|
|
17
|
+
*
|
|
18
|
+
* @param secret - Refreshed Microsoft OAuth integration secret.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getOutlookGraphApi(secret: Record<string, unknown>): {
|
|
21
|
+
/** Performs an authenticated request and returns the raw Response. */
|
|
22
|
+
fetch: (path: string, init?: RequestInit) => Promise<Response>;
|
|
23
|
+
/** Performs an authenticated request and returns its untrusted JSON value. */
|
|
24
|
+
request: (path: string, options?: OutlookGraphRequestOptions) => Promise<unknown>;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Reads Graph collection pages until the requested limit is reached.
|
|
28
|
+
*
|
|
29
|
+
* @param request - Authenticated Graph JSON request function.
|
|
30
|
+
* @param path - Initial relative Graph path.
|
|
31
|
+
* @param itemSchema - Schema for one collection item.
|
|
32
|
+
* @param limit - Maximum total items.
|
|
33
|
+
*/
|
|
34
|
+
export declare function listOutlookGraphCollection<T>(request: (path: string) => Promise<unknown>, path: string, itemSchema: z.ZodType<T>, limit: number): Promise<T[]>;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
const GRAPH_BASE_URL = "https://graph.microsoft.com/v1.0/";
|
|
3
|
+
const MICROSOFT_SECRET_SCHEMA = z.object({
|
|
4
|
+
accessToken: z.string().min(1),
|
|
5
|
+
});
|
|
6
|
+
const GRAPH_ERROR_SCHEMA = z.looseObject({
|
|
7
|
+
error: z
|
|
8
|
+
.looseObject({
|
|
9
|
+
code: z.string().optional(),
|
|
10
|
+
message: z.string().optional(),
|
|
11
|
+
})
|
|
12
|
+
.optional(),
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* Creates a small authenticated Microsoft Graph client for Outlook APIs.
|
|
16
|
+
*
|
|
17
|
+
* The raw `fetch` method is an escape hatch for provider features not yet
|
|
18
|
+
* represented by a built-in action. `request` parses JSON and reports Graph
|
|
19
|
+
* errors with their provider code and message.
|
|
20
|
+
*
|
|
21
|
+
* @param secret - Refreshed Microsoft OAuth integration secret.
|
|
22
|
+
*/
|
|
23
|
+
export function getOutlookGraphApi(secret) {
|
|
24
|
+
const { accessToken } = MICROSOFT_SECRET_SCHEMA.parse(secret);
|
|
25
|
+
/**
|
|
26
|
+
* Performs one authenticated Graph request.
|
|
27
|
+
*
|
|
28
|
+
* @param path - Relative or absolute Microsoft Graph URL.
|
|
29
|
+
* @param init - Standard fetch request options.
|
|
30
|
+
*/
|
|
31
|
+
async function graphFetch(path, init) {
|
|
32
|
+
const headers = new Headers(init?.headers);
|
|
33
|
+
headers.set("Accept", "application/json");
|
|
34
|
+
headers.set("Authorization", `Bearer ${accessToken}`);
|
|
35
|
+
if (!headers.has("Prefer"))
|
|
36
|
+
headers.set("Prefer", 'IdType="ImmutableId"');
|
|
37
|
+
return fetch(new URL(path.replace(/^\//, ""), GRAPH_BASE_URL), {
|
|
38
|
+
...init,
|
|
39
|
+
headers,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Performs one authenticated Graph JSON request.
|
|
44
|
+
*
|
|
45
|
+
* @param path - Relative or absolute Microsoft Graph URL.
|
|
46
|
+
* @param options - HTTP method, body, and headers.
|
|
47
|
+
*/
|
|
48
|
+
async function request(path, options = {}) {
|
|
49
|
+
const headers = new Headers(options.headers);
|
|
50
|
+
if (options.body !== undefined) {
|
|
51
|
+
headers.set("Content-Type", "application/json");
|
|
52
|
+
}
|
|
53
|
+
const response = await graphFetch(path, {
|
|
54
|
+
body: options.body === undefined ? undefined : JSON.stringify(options.body),
|
|
55
|
+
headers,
|
|
56
|
+
method: options.method,
|
|
57
|
+
});
|
|
58
|
+
if (!response.ok) {
|
|
59
|
+
const payload = GRAPH_ERROR_SCHEMA.safeParse(await response.json().catch(() => undefined));
|
|
60
|
+
const graphError = payload.success ? payload.data.error : undefined;
|
|
61
|
+
const detail = [graphError?.code, graphError?.message]
|
|
62
|
+
.filter(Boolean)
|
|
63
|
+
.join(": ");
|
|
64
|
+
throw new Error(`Microsoft Graph request failed with ${response.status} ${response.statusText}${detail ? `: ${detail}` : ""}.`);
|
|
65
|
+
}
|
|
66
|
+
if (response.status === 202 || response.status === 204)
|
|
67
|
+
return undefined;
|
|
68
|
+
return response.json();
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
/** Performs an authenticated request and returns the raw Response. */
|
|
72
|
+
fetch: graphFetch,
|
|
73
|
+
/** Performs an authenticated request and returns its untrusted JSON value. */
|
|
74
|
+
request,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Reads Graph collection pages until the requested limit is reached.
|
|
79
|
+
*
|
|
80
|
+
* @param request - Authenticated Graph JSON request function.
|
|
81
|
+
* @param path - Initial relative Graph path.
|
|
82
|
+
* @param itemSchema - Schema for one collection item.
|
|
83
|
+
* @param limit - Maximum total items.
|
|
84
|
+
*/
|
|
85
|
+
export async function listOutlookGraphCollection(request, path, itemSchema, limit) {
|
|
86
|
+
const pageSchema = z.object({
|
|
87
|
+
"@odata.nextLink": z.string().optional(),
|
|
88
|
+
value: itemSchema.array(),
|
|
89
|
+
});
|
|
90
|
+
const items = [];
|
|
91
|
+
let nextPath = path;
|
|
92
|
+
while (nextPath && items.length < limit) {
|
|
93
|
+
const page = pageSchema.parse(await request(nextPath));
|
|
94
|
+
items.push(...page.value);
|
|
95
|
+
nextPath = page["@odata.nextLink"];
|
|
96
|
+
}
|
|
97
|
+
return items.slice(0, limit);
|
|
98
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export * from "./graph.js";
|
|
3
|
+
export * from "./schemas.js";
|
|
4
|
+
export declare const OUTLOOK_TRIGGER_CONFIG_SCHEMA: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
export declare const outlookTriggerContracts: {
|
|
6
|
+
readonly "outlook.email.received": {
|
|
7
|
+
readonly configSchema: z.ZodObject<{}, z.core.$strip>;
|
|
8
|
+
readonly eventSchema: z.ZodObject<{
|
|
9
|
+
categories: z.ZodPrefault<z.ZodArray<z.ZodString>>;
|
|
10
|
+
conversationId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
11
|
+
createdAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>>, z.ZodTransform<Date | undefined, Date | null | undefined>>;
|
|
12
|
+
flag: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
completedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
|
+
dateTime: z.ZodString;
|
|
15
|
+
timeZone: z.ZodString;
|
|
16
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
17
|
+
dateTime: string;
|
|
18
|
+
timeZone: string;
|
|
19
|
+
} | undefined, {
|
|
20
|
+
dateTime: string;
|
|
21
|
+
timeZone: string;
|
|
22
|
+
} | null | undefined>>;
|
|
23
|
+
dueAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
24
|
+
dateTime: z.ZodString;
|
|
25
|
+
timeZone: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
27
|
+
dateTime: string;
|
|
28
|
+
timeZone: string;
|
|
29
|
+
} | undefined, {
|
|
30
|
+
dateTime: string;
|
|
31
|
+
timeZone: string;
|
|
32
|
+
} | null | undefined>>;
|
|
33
|
+
status: z.ZodEnum<{
|
|
34
|
+
notFlagged: "notFlagged";
|
|
35
|
+
complete: "complete";
|
|
36
|
+
flagged: "flagged";
|
|
37
|
+
}>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
from: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
address: z.ZodString;
|
|
41
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
42
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
43
|
+
address: string;
|
|
44
|
+
name: string | undefined;
|
|
45
|
+
} | undefined, {
|
|
46
|
+
address: string;
|
|
47
|
+
name: string | undefined;
|
|
48
|
+
} | null | undefined>>;
|
|
49
|
+
hasAttachments: z.ZodPrefault<z.ZodBoolean>;
|
|
50
|
+
messageId: z.ZodString;
|
|
51
|
+
internetMessageId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
52
|
+
importance: z.ZodPrefault<z.ZodEnum<{
|
|
53
|
+
high: "high";
|
|
54
|
+
normal: "normal";
|
|
55
|
+
low: "low";
|
|
56
|
+
}>>;
|
|
57
|
+
inferenceClassification: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
58
|
+
focused: "focused";
|
|
59
|
+
other: "other";
|
|
60
|
+
}>>>, z.ZodTransform<"focused" | "other" | undefined, "focused" | "other" | null | undefined>>;
|
|
61
|
+
isDraft: z.ZodPrefault<z.ZodBoolean>;
|
|
62
|
+
isRead: z.ZodPrefault<z.ZodBoolean>;
|
|
63
|
+
modifiedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>>, z.ZodTransform<Date | undefined, Date | null | undefined>>;
|
|
64
|
+
parentFolderId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
65
|
+
preview: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
66
|
+
receivedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>>, z.ZodTransform<Date | undefined, Date | null | undefined>>;
|
|
67
|
+
replyTo: z.ZodPrefault<z.ZodArray<z.ZodObject<{
|
|
68
|
+
address: z.ZodString;
|
|
69
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
70
|
+
}, z.core.$strip>>>;
|
|
71
|
+
sender: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
72
|
+
address: z.ZodString;
|
|
73
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
74
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
75
|
+
address: string;
|
|
76
|
+
name: string | undefined;
|
|
77
|
+
} | undefined, {
|
|
78
|
+
address: string;
|
|
79
|
+
name: string | undefined;
|
|
80
|
+
} | null | undefined>>;
|
|
81
|
+
sentAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>>, z.ZodTransform<Date | undefined, Date | null | undefined>>;
|
|
82
|
+
subject: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>;
|
|
83
|
+
to: z.ZodPrefault<z.ZodArray<z.ZodObject<{
|
|
84
|
+
address: z.ZodString;
|
|
85
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
86
|
+
}, z.core.$strip>>>;
|
|
87
|
+
cc: z.ZodPrefault<z.ZodArray<z.ZodObject<{
|
|
88
|
+
address: z.ZodString;
|
|
89
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
90
|
+
}, z.core.$strip>>>;
|
|
91
|
+
bcc: z.ZodPrefault<z.ZodArray<z.ZodObject<{
|
|
92
|
+
address: z.ZodString;
|
|
93
|
+
name: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
94
|
+
}, z.core.$strip>>>;
|
|
95
|
+
webLink: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
96
|
+
body: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
97
|
+
content: z.ZodString;
|
|
98
|
+
contentType: z.ZodPipe<z.ZodUnion<[z.ZodEnum<{
|
|
99
|
+
text: "text";
|
|
100
|
+
html: "html";
|
|
101
|
+
}>, z.ZodEnum<{
|
|
102
|
+
Text: "Text";
|
|
103
|
+
HTML: "HTML";
|
|
104
|
+
}>]>, z.ZodTransform<"text" | "html", "text" | "html" | "Text" | "HTML">>;
|
|
105
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
106
|
+
content: string;
|
|
107
|
+
contentType: "text" | "html";
|
|
108
|
+
} | undefined, {
|
|
109
|
+
content: string;
|
|
110
|
+
contentType: "text" | "html";
|
|
111
|
+
} | null | undefined>>;
|
|
112
|
+
etag: z.ZodOptional<z.ZodString>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { OUTLOOK_MESSAGE_SCHEMA } from "./schemas.js";
|
|
3
|
+
export * from "./graph.js";
|
|
4
|
+
export * from "./schemas.js";
|
|
5
|
+
export const OUTLOOK_TRIGGER_CONFIG_SCHEMA = z.object({});
|
|
6
|
+
export const outlookTriggerContracts = {
|
|
7
|
+
"outlook.email.received": {
|
|
8
|
+
configSchema: OUTLOOK_TRIGGER_CONFIG_SCHEMA,
|
|
9
|
+
eventSchema: OUTLOOK_MESSAGE_SCHEMA,
|
|
10
|
+
},
|
|
11
|
+
};
|