@automate.ax/api-contract 0.63.0 → 0.64.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/events/index.d.ts +1 -0
- package/dist/events/index.js +2 -0
- package/dist/events/mailhook.d.ts +4 -0
- package/dist/events/mailhook.js +16 -0
- package/dist/index.d.ts +2 -0
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.js +1 -0
- package/package.json +2 -2
- package/src/events/index.ts +2 -0
- package/src/events/mailhook.ts +18 -0
- package/src/runtime.ts +1 -0
package/dist/events/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export declare const eventsContract: {
|
|
|
45
45
|
subscriptionExpirationDateTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
46
|
}, import("zod/v4/core").$loose>>;
|
|
47
47
|
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
48
|
+
mailhookEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
48
49
|
linearEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
49
50
|
action: import("zod").ZodString;
|
|
50
51
|
organizationId: import("zod").ZodString;
|
package/dist/events/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { googleFormsEventsContract } from "./google-forms.js";
|
|
|
6
6
|
import { gmailEventsContract } from "./gmail.js";
|
|
7
7
|
import { githubEventsContract } from "./github.js";
|
|
8
8
|
import { linearEventsContract } from "./linear.js";
|
|
9
|
+
import { mailhookEventsContract } from "./mailhook.js";
|
|
9
10
|
import { microsoftEventsContract } from "./microsoft.js";
|
|
10
11
|
import { resendEventsContract } from "./resend.js";
|
|
11
12
|
import { slackEventsContract } from "./slack.js";
|
|
@@ -21,6 +22,7 @@ export const eventsContract = {
|
|
|
21
22
|
...gmailEventsContract,
|
|
22
23
|
...githubEventsContract,
|
|
23
24
|
...linearEventsContract,
|
|
25
|
+
...mailhookEventsContract,
|
|
24
26
|
...microsoftEventsContract,
|
|
25
27
|
...resendEventsContract,
|
|
26
28
|
...slackEventsContract,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export const mailhookEventsContract = {
|
|
4
|
+
mailhookEvent: oc
|
|
5
|
+
.route({
|
|
6
|
+
description: "Receives and authenticates inbound platform email delivered by Resend.",
|
|
7
|
+
method: "POST",
|
|
8
|
+
operationId: "receiveMailhookEvent",
|
|
9
|
+
path: "/events/mailhook",
|
|
10
|
+
successStatus: 204,
|
|
11
|
+
summary: "Receive a mailhook event",
|
|
12
|
+
tags: ["Events"],
|
|
13
|
+
})
|
|
14
|
+
.input(z.looseObject({}))
|
|
15
|
+
.output(z.void()),
|
|
16
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1007,6 +1007,7 @@ export declare const contract: {
|
|
|
1007
1007
|
subscriptionExpirationDateTime: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1008
1008
|
}, import("zod/v4/core").$loose>>;
|
|
1009
1009
|
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1010
|
+
mailhookEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1010
1011
|
linearEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1011
1012
|
action: import("zod").ZodString;
|
|
1012
1013
|
organizationId: import("zod").ZodString;
|
|
@@ -1771,6 +1772,7 @@ export declare const contract: {
|
|
|
1771
1772
|
outputIndex: import("zod").ZodNumber;
|
|
1772
1773
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1773
1774
|
sendEmail: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
1775
|
+
replyTo: import("zod").ZodOptional<import("zod").ZodEmail>;
|
|
1774
1776
|
subject: import("zod").ZodString;
|
|
1775
1777
|
to: import("zod").ZodDefault<import("zod").ZodUnion<readonly [import("zod").ZodEmail, import("zod").ZodLiteral<"*">]>>;
|
|
1776
1778
|
}, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1011,6 +1011,7 @@ export declare const runtimeContract: {
|
|
|
1011
1011
|
outputIndex: z.ZodNumber;
|
|
1012
1012
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1013
1013
|
sendEmail: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodIntersection<z.ZodObject<{
|
|
1014
|
+
replyTo: z.ZodOptional<z.ZodEmail>;
|
|
1014
1015
|
subject: z.ZodString;
|
|
1015
1016
|
to: z.ZodDefault<z.ZodUnion<readonly [z.ZodEmail, z.ZodLiteral<"*">]>>;
|
|
1016
1017
|
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
package/dist/runtime.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.64.0",
|
|
4
4
|
"description": "Public oRPC contract for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@ai-sdk/gateway": "^4.0.46",
|
|
31
|
-
"@automate.ax/codec": "0.
|
|
31
|
+
"@automate.ax/codec": "0.64.0",
|
|
32
32
|
"@orpc/contract": "1.15.0",
|
|
33
33
|
"fast-json-stable-stringify": "^2.1.0",
|
|
34
34
|
"zod": "^4.3.6"
|
package/src/events/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { googleFormsEventsContract } from "./google-forms"
|
|
|
6
6
|
import { gmailEventsContract } from "./gmail"
|
|
7
7
|
import { githubEventsContract } from "./github"
|
|
8
8
|
import { linearEventsContract } from "./linear"
|
|
9
|
+
import { mailhookEventsContract } from "./mailhook"
|
|
9
10
|
import { microsoftEventsContract } from "./microsoft"
|
|
10
11
|
import { resendEventsContract } from "./resend"
|
|
11
12
|
import { slackEventsContract } from "./slack"
|
|
@@ -22,6 +23,7 @@ export const eventsContract = {
|
|
|
22
23
|
...gmailEventsContract,
|
|
23
24
|
...githubEventsContract,
|
|
24
25
|
...linearEventsContract,
|
|
26
|
+
...mailhookEventsContract,
|
|
25
27
|
...microsoftEventsContract,
|
|
26
28
|
...resendEventsContract,
|
|
27
29
|
...slackEventsContract,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract"
|
|
2
|
+
import { z } from "zod"
|
|
3
|
+
|
|
4
|
+
export const mailhookEventsContract = {
|
|
5
|
+
mailhookEvent: oc
|
|
6
|
+
.route({
|
|
7
|
+
description:
|
|
8
|
+
"Receives and authenticates inbound platform email delivered by Resend.",
|
|
9
|
+
method: "POST",
|
|
10
|
+
operationId: "receiveMailhookEvent",
|
|
11
|
+
path: "/events/mailhook",
|
|
12
|
+
successStatus: 204,
|
|
13
|
+
summary: "Receive a mailhook event",
|
|
14
|
+
tags: ["Events"],
|
|
15
|
+
})
|
|
16
|
+
.input(z.looseObject({}))
|
|
17
|
+
.output(z.void()),
|
|
18
|
+
}
|