@automate.ax/api-contract 0.144.1 → 0.145.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/calcom.d.ts +6 -0
- package/dist/events/calcom.js +16 -0
- package/dist/events/index.d.ts +3 -0
- package/dist/events/index.js +2 -0
- package/dist/index.d.ts +3 -0
- package/package.json +4 -4
- package/src/events/calcom.ts +18 -0
- package/src/events/index.ts +2 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const calcomEventsContract: {
|
|
3
|
+
calcomEvent: 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 calcomEventsContract = {
|
|
4
|
+
calcomEvent: oc
|
|
5
|
+
.route({
|
|
6
|
+
method: "POST",
|
|
7
|
+
path: "/events/calcom/{sourceId}",
|
|
8
|
+
operationId: "receiveCalcomEvent",
|
|
9
|
+
summary: "Receive a Cal.com event",
|
|
10
|
+
description: "Receives and authenticates callbacks delivered by managed Cal.com webhooks.",
|
|
11
|
+
tags: ["Events"],
|
|
12
|
+
successStatus: 204,
|
|
13
|
+
})
|
|
14
|
+
.input(z.looseObject({ sourceId: z.string() }))
|
|
15
|
+
.output(z.void()),
|
|
16
|
+
};
|
package/dist/events/index.d.ts
CHANGED
|
@@ -3713,6 +3713,9 @@ export declare const eventsContract: {
|
|
|
3713
3713
|
name: import("zod").ZodString;
|
|
3714
3714
|
payload: import("zod").ZodJSONSchema;
|
|
3715
3715
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3716
|
+
calcomEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3717
|
+
sourceId: import("zod").ZodString;
|
|
3718
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3716
3719
|
brevoEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3717
3720
|
id: import("zod").ZodNumber;
|
|
3718
3721
|
sourceId: import("zod").ZodString;
|
package/dist/events/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { anthropicEventsContract } from "./anthropic.js";
|
|
|
4
4
|
import { axiomEventsContract } from "./axiom.js";
|
|
5
5
|
import { asanaEventsContract } from "./asana.js";
|
|
6
6
|
import { brevoEventsContract } from "./brevo.js";
|
|
7
|
+
import { calcomEventsContract } from "./calcom.js";
|
|
7
8
|
import { convexEventsContract } from "./convex.js";
|
|
8
9
|
import { discordEventsContract } from "./discord.js";
|
|
9
10
|
import { closeEventsContract } from "./close.js";
|
|
@@ -36,6 +37,7 @@ export const eventsContract = {
|
|
|
36
37
|
...axiomEventsContract,
|
|
37
38
|
...asanaEventsContract,
|
|
38
39
|
...brevoEventsContract,
|
|
40
|
+
...calcomEventsContract,
|
|
39
41
|
...convexEventsContract,
|
|
40
42
|
...discordEventsContract,
|
|
41
43
|
...closeEventsContract,
|
package/dist/index.d.ts
CHANGED
|
@@ -7058,6 +7058,9 @@ export declare const contract: {
|
|
|
7058
7058
|
name: import("zod").ZodString;
|
|
7059
7059
|
payload: import("zod").ZodJSONSchema;
|
|
7060
7060
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
7061
|
+
calcomEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
7062
|
+
sourceId: import("zod").ZodString;
|
|
7063
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
7061
7064
|
brevoEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
7062
7065
|
id: import("zod").ZodNumber;
|
|
7063
7066
|
sourceId: import("zod").ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.145.0",
|
|
4
4
|
"description": "Public oRPC contract for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@ai-sdk/gateway": "4.0.46",
|
|
34
|
-
"@automate.ax/catalog": "0.
|
|
35
|
-
"@automate.ax/codec": "0.
|
|
36
|
-
"@automate.ax/integration-contracts": "0.
|
|
34
|
+
"@automate.ax/catalog": "0.145.0",
|
|
35
|
+
"@automate.ax/codec": "0.145.0",
|
|
36
|
+
"@automate.ax/integration-contracts": "0.145.0",
|
|
37
37
|
"@orpc/contract": "1.15.0",
|
|
38
38
|
"fast-json-stable-stringify": "^2.1.0",
|
|
39
39
|
"zod": "^4.3.6"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract"
|
|
2
|
+
import * as z from "zod"
|
|
3
|
+
|
|
4
|
+
export const calcomEventsContract = {
|
|
5
|
+
calcomEvent: oc
|
|
6
|
+
.route({
|
|
7
|
+
method: "POST",
|
|
8
|
+
path: "/events/calcom/{sourceId}",
|
|
9
|
+
operationId: "receiveCalcomEvent",
|
|
10
|
+
summary: "Receive a Cal.com event",
|
|
11
|
+
description:
|
|
12
|
+
"Receives and authenticates callbacks delivered by managed Cal.com webhooks.",
|
|
13
|
+
tags: ["Events"],
|
|
14
|
+
successStatus: 204,
|
|
15
|
+
})
|
|
16
|
+
.input(z.looseObject({ sourceId: z.string() }))
|
|
17
|
+
.output(z.void()),
|
|
18
|
+
}
|
package/src/events/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { anthropicEventsContract } from "./anthropic"
|
|
|
4
4
|
import { axiomEventsContract } from "./axiom"
|
|
5
5
|
import { asanaEventsContract } from "./asana"
|
|
6
6
|
import { brevoEventsContract } from "./brevo"
|
|
7
|
+
import { calcomEventsContract } from "./calcom"
|
|
7
8
|
import { convexEventsContract } from "./convex"
|
|
8
9
|
import { discordEventsContract } from "./discord"
|
|
9
10
|
import { closeEventsContract } from "./close"
|
|
@@ -37,6 +38,7 @@ export const eventsContract = {
|
|
|
37
38
|
...axiomEventsContract,
|
|
38
39
|
...asanaEventsContract,
|
|
39
40
|
...brevoEventsContract,
|
|
41
|
+
...calcomEventsContract,
|
|
40
42
|
...convexEventsContract,
|
|
41
43
|
...discordEventsContract,
|
|
42
44
|
...closeEventsContract,
|