@automate.ax/api-contract 0.87.7 → 0.88.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/close.d.ts +6 -0
- package/dist/events/close.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 +3 -3
- package/src/events/close.ts +18 -0
- package/src/events/index.ts +2 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const closeEventsContract: {
|
|
3
|
+
closeEvent: 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 closeEventsContract = {
|
|
4
|
+
closeEvent: oc
|
|
5
|
+
.route({
|
|
6
|
+
description: "Receives and authenticates callbacks from managed Close webhooks.",
|
|
7
|
+
method: "POST",
|
|
8
|
+
operationId: "receiveCloseEvent",
|
|
9
|
+
path: "/events/close/{sourceId}",
|
|
10
|
+
successStatus: 204,
|
|
11
|
+
summary: "Receive a Close event",
|
|
12
|
+
tags: ["Events"],
|
|
13
|
+
})
|
|
14
|
+
.input(z.looseObject({ sourceId: z.string() }))
|
|
15
|
+
.output(z.void()),
|
|
16
|
+
};
|
package/dist/events/index.d.ts
CHANGED
|
@@ -103,6 +103,9 @@ export declare const eventsContract: {
|
|
|
103
103
|
subscription: import("zod").ZodLiteral<"projects/opkitty/subscriptions/automate-ax-google-forms-push">;
|
|
104
104
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
105
105
|
googleCalendarPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodVoid, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
106
|
+
closeEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
107
|
+
sourceId: import("zod").ZodString;
|
|
108
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
106
109
|
convexEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
107
110
|
emittedAt: import("zod").ZodISODateTime;
|
|
108
111
|
endpointKey: import("zod").ZodString;
|
package/dist/events/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { airtableEventsContract } from "./airtable.js";
|
|
|
2
2
|
import { asanaEventsContract } from "./asana.js";
|
|
3
3
|
import { brevoEventsContract } from "./brevo.js";
|
|
4
4
|
import { convexEventsContract } from "./convex.js";
|
|
5
|
+
import { closeEventsContract } from "./close.js";
|
|
5
6
|
import { googleCalendarEventsContract } from "./google-calendar.js";
|
|
6
7
|
import { googleFormsEventsContract } from "./google-forms.js";
|
|
7
8
|
import { googleMeetEventsContract } from "./google-meet.js";
|
|
@@ -22,6 +23,7 @@ export const eventsContract = {
|
|
|
22
23
|
...asanaEventsContract,
|
|
23
24
|
...brevoEventsContract,
|
|
24
25
|
...convexEventsContract,
|
|
26
|
+
...closeEventsContract,
|
|
25
27
|
...googleCalendarEventsContract,
|
|
26
28
|
...googleFormsEventsContract,
|
|
27
29
|
...googleMeetEventsContract,
|
package/dist/index.d.ts
CHANGED
|
@@ -2231,6 +2231,9 @@ export declare const contract: {
|
|
|
2231
2231
|
subscription: import("zod").ZodLiteral<"projects/opkitty/subscriptions/automate-ax-google-forms-push">;
|
|
2232
2232
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
2233
2233
|
googleCalendarPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodVoid, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
2234
|
+
closeEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2235
|
+
sourceId: import("zod").ZodString;
|
|
2236
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
2234
2237
|
convexEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2235
2238
|
emittedAt: import("zod").ZodISODateTime;
|
|
2236
2239
|
endpointKey: 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.88.0",
|
|
4
4
|
"description": "Public oRPC contract for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@ai-sdk/gateway": "4.0.46",
|
|
34
|
-
"@automate.ax/codec": "0.
|
|
35
|
-
"@automate.ax/integration-contracts": "0.
|
|
34
|
+
"@automate.ax/codec": "0.88.0",
|
|
35
|
+
"@automate.ax/integration-contracts": "0.88.0",
|
|
36
36
|
"@orpc/contract": "1.15.0",
|
|
37
37
|
"fast-json-stable-stringify": "^2.1.0",
|
|
38
38
|
"zod": "^4.3.6"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract"
|
|
2
|
+
import * as z from "zod"
|
|
3
|
+
|
|
4
|
+
export const closeEventsContract = {
|
|
5
|
+
closeEvent: oc
|
|
6
|
+
.route({
|
|
7
|
+
description:
|
|
8
|
+
"Receives and authenticates callbacks from managed Close webhooks.",
|
|
9
|
+
method: "POST",
|
|
10
|
+
operationId: "receiveCloseEvent",
|
|
11
|
+
path: "/events/close/{sourceId}",
|
|
12
|
+
successStatus: 204,
|
|
13
|
+
summary: "Receive a Close event",
|
|
14
|
+
tags: ["Events"],
|
|
15
|
+
})
|
|
16
|
+
.input(z.looseObject({ sourceId: z.string() }))
|
|
17
|
+
.output(z.void()),
|
|
18
|
+
}
|
package/src/events/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { airtableEventsContract } from "./airtable"
|
|
|
2
2
|
import { asanaEventsContract } from "./asana"
|
|
3
3
|
import { brevoEventsContract } from "./brevo"
|
|
4
4
|
import { convexEventsContract } from "./convex"
|
|
5
|
+
import { closeEventsContract } from "./close"
|
|
5
6
|
import { googleCalendarEventsContract } from "./google-calendar"
|
|
6
7
|
import { googleFormsEventsContract } from "./google-forms"
|
|
7
8
|
import { googleMeetEventsContract } from "./google-meet"
|
|
@@ -23,6 +24,7 @@ export const eventsContract = {
|
|
|
23
24
|
...asanaEventsContract,
|
|
24
25
|
...brevoEventsContract,
|
|
25
26
|
...convexEventsContract,
|
|
27
|
+
...closeEventsContract,
|
|
26
28
|
...googleCalendarEventsContract,
|
|
27
29
|
...googleFormsEventsContract,
|
|
28
30
|
...googleMeetEventsContract,
|