@automate.ax/api-contract 0.40.0 → 0.42.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.
@@ -3,6 +3,7 @@ export declare const eventsContract: {
3
3
  entry: import("zod").ZodArray<import("zod").ZodUnknown>;
4
4
  object: import("zod").ZodLiteral<"whatsapp_business_account">;
5
5
  }, import("zod/v4/core").$loose>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
6
+ vercelEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$loose>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
6
7
  trelloEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
7
8
  sourceId: import("zod").ZodString;
8
9
  action: import("zod").ZodObject<{
@@ -10,6 +10,7 @@ import { microsoftEventsContract } from "./microsoft.js";
10
10
  import { resendEventsContract } from "./resend.js";
11
11
  import { slackEventsContract } from "./slack.js";
12
12
  import { trelloEventsContract } from "./trello.js";
13
+ import { vercelEventsContract } from "./vercel.js";
13
14
  import { whatsappEventsContract } from "./whatsapp.js";
14
15
  export const eventsContract = {
15
16
  ...airtableEventsContract,
@@ -24,5 +25,6 @@ export const eventsContract = {
24
25
  ...resendEventsContract,
25
26
  ...slackEventsContract,
26
27
  ...trelloEventsContract,
28
+ ...vercelEventsContract,
27
29
  ...whatsappEventsContract,
28
30
  };
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ export declare const vercelEventsContract: {
3
+ vercelEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{}, z.core.$loose>, z.ZodObject<{}, z.core.$strip>, Record<never, never>, Record<never, never>>;
4
+ };
@@ -0,0 +1,16 @@
1
+ import { oc } from "@orpc/contract";
2
+ import { z } from "zod";
3
+ export const vercelEventsContract = {
4
+ vercelEvent: oc
5
+ .route({
6
+ method: "POST",
7
+ path: "/events/vercel",
8
+ operationId: "receiveVercelEvent",
9
+ summary: "Receive a Vercel event",
10
+ description: "Receives and authenticates callbacks delivered by a Vercel integration.",
11
+ tags: ["Events"],
12
+ successStatus: 200,
13
+ })
14
+ .input(z.looseObject({}))
15
+ .output(z.object({})),
16
+ };
package/dist/index.d.ts CHANGED
@@ -967,6 +967,7 @@ export declare const contract: {
967
967
  entry: import("zod").ZodArray<import("zod").ZodUnknown>;
968
968
  object: import("zod").ZodLiteral<"whatsapp_business_account">;
969
969
  }, import("zod/v4/core").$loose>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
970
+ vercelEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$loose>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
970
971
  trelloEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
971
972
  sourceId: import("zod").ZodString;
972
973
  action: import("zod").ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/api-contract",
3
- "version": "0.40.0",
3
+ "version": "0.42.0",
4
4
  "description": "Public oRPC contract for the Automate.ax API.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@ai-sdk/gateway": "^4.0.46",
30
- "@automate.ax/codec": "0.40.0",
30
+ "@automate.ax/codec": "0.42.0",
31
31
  "@orpc/contract": "1.13.14",
32
32
  "zod": "^4.3.6"
33
33
  },
@@ -10,6 +10,7 @@ import { microsoftEventsContract } from "./microsoft"
10
10
  import { resendEventsContract } from "./resend"
11
11
  import { slackEventsContract } from "./slack"
12
12
  import { trelloEventsContract } from "./trello"
13
+ import { vercelEventsContract } from "./vercel"
13
14
  import { whatsappEventsContract } from "./whatsapp"
14
15
 
15
16
  export const eventsContract = {
@@ -25,5 +26,6 @@ export const eventsContract = {
25
26
  ...resendEventsContract,
26
27
  ...slackEventsContract,
27
28
  ...trelloEventsContract,
29
+ ...vercelEventsContract,
28
30
  ...whatsappEventsContract,
29
31
  }
@@ -0,0 +1,18 @@
1
+ import { oc } from "@orpc/contract"
2
+ import { z } from "zod"
3
+
4
+ export const vercelEventsContract = {
5
+ vercelEvent: oc
6
+ .route({
7
+ method: "POST",
8
+ path: "/events/vercel",
9
+ operationId: "receiveVercelEvent",
10
+ summary: "Receive a Vercel event",
11
+ description:
12
+ "Receives and authenticates callbacks delivered by a Vercel integration.",
13
+ tags: ["Events"],
14
+ successStatus: 200,
15
+ })
16
+ .input(z.looseObject({}))
17
+ .output(z.object({})),
18
+ }