@automate.ax/api-contract 0.147.0 → 0.148.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.
@@ -18,6 +18,7 @@ import { googleMeetEventsContract } from "./google-meet.js";
18
18
  import { gmailEventsContract } from "./gmail.js";
19
19
  import { githubEventsContract } from "./github.js";
20
20
  import { highLevelEventsContract } from "./highlevel.js";
21
+ import { kitEventsContract } from "./kit.js";
21
22
  import { linearEventsContract } from "./linear.js";
22
23
  import { millionVerifierEventsContract } from "./millionverifier.js";
23
24
  import { mailhookEventsContract } from "./mailhook.js";
@@ -53,6 +54,7 @@ export const eventsContract = {
53
54
  ...gmailEventsContract,
54
55
  ...githubEventsContract,
55
56
  ...highLevelEventsContract,
57
+ ...kitEventsContract,
56
58
  ...linearEventsContract,
57
59
  ...millionVerifierEventsContract,
58
60
  ...mailhookEventsContract,
@@ -0,0 +1,6 @@
1
+ import * as z from "zod";
2
+ export declare const kitEventsContract: {
3
+ kitEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
+ sourceId: z.ZodString;
5
+ }, z.core.$loose>, z.ZodVoid, Record<never, never>, Record<never, never>>;
6
+ };
@@ -0,0 +1,16 @@
1
+ import { oc } from "@orpc/contract";
2
+ import * as z from "zod";
3
+ export const kitEventsContract = {
4
+ kitEvent: oc
5
+ .route({
6
+ description: "Receives and authenticates deliveries from managed Kit webhook endpoints.",
7
+ method: "POST",
8
+ operationId: "receiveKitEvent",
9
+ path: "/events/kit/{sourceId}",
10
+ successStatus: 204,
11
+ summary: "Receive a Kit event",
12
+ tags: ["Events"],
13
+ })
14
+ .input(z.looseObject({ sourceId: z.string() }))
15
+ .output(z.void()),
16
+ };