@automate.ax/api-contract 0.122.2 → 0.123.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 +0 -8
- package/dist/events/index.js +0 -2
- package/dist/index.d.ts +0 -8
- package/package.json +3 -3
- package/src/events/index.ts +0 -2
- package/dist/events/hubspot.d.ts +0 -11
- package/dist/events/hubspot.js +0 -26
- package/src/events/hubspot.ts +0 -30
package/dist/events/index.d.ts
CHANGED
|
@@ -3610,14 +3610,6 @@ export declare const eventsContract: {
|
|
|
3610
3610
|
}, import("zod/v4/core").$strip>;
|
|
3611
3611
|
subscription: import("zod").ZodLiteral<"projects/opkitty/subscriptions/automate-ax-gmail-push">;
|
|
3612
3612
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3613
|
-
hubspotEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodArray<import("zod").ZodObject<{
|
|
3614
|
-
attemptNumber: import("zod").ZodNumber;
|
|
3615
|
-
eventId: import("zod").ZodNumber;
|
|
3616
|
-
objectId: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>>;
|
|
3617
|
-
portalId: import("zod").ZodNumber;
|
|
3618
|
-
subscriptionId: import("zod").ZodNumber;
|
|
3619
|
-
subscriptionType: import("zod").ZodString;
|
|
3620
|
-
}, import("zod/v4/core").$loose>>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
3621
3613
|
googleMeetPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3622
3614
|
message: import("zod").ZodObject<{
|
|
3623
3615
|
attributes: import("zod").ZodObject<{
|
package/dist/events/index.js
CHANGED
|
@@ -8,7 +8,6 @@ import { googleCalendarEventsContract } from "./google-calendar.js";
|
|
|
8
8
|
import { googleFormsEventsContract } from "./google-forms.js";
|
|
9
9
|
import { googleDriveEventsContract } from "./google-drive.js";
|
|
10
10
|
import { googleMeetEventsContract } from "./google-meet.js";
|
|
11
|
-
import { hubspotEventsContract } from "./hubspot.js";
|
|
12
11
|
import { gmailEventsContract } from "./gmail.js";
|
|
13
12
|
import { githubEventsContract } from "./github.js";
|
|
14
13
|
import { linearEventsContract } from "./linear.js";
|
|
@@ -34,7 +33,6 @@ export const eventsContract = {
|
|
|
34
33
|
...googleDriveEventsContract,
|
|
35
34
|
...googleFormsEventsContract,
|
|
36
35
|
...googleMeetEventsContract,
|
|
37
|
-
...hubspotEventsContract,
|
|
38
36
|
...gmailEventsContract,
|
|
39
37
|
...githubEventsContract,
|
|
40
38
|
...linearEventsContract,
|
package/dist/index.d.ts
CHANGED
|
@@ -5876,14 +5876,6 @@ export declare const contract: {
|
|
|
5876
5876
|
}, import("zod/v4/core").$strip>;
|
|
5877
5877
|
subscription: import("zod").ZodLiteral<"projects/opkitty/subscriptions/automate-ax-gmail-push">;
|
|
5878
5878
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
5879
|
-
hubspotEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodArray<import("zod").ZodObject<{
|
|
5880
|
-
attemptNumber: import("zod").ZodNumber;
|
|
5881
|
-
eventId: import("zod").ZodNumber;
|
|
5882
|
-
objectId: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodString]>>;
|
|
5883
|
-
portalId: import("zod").ZodNumber;
|
|
5884
|
-
subscriptionId: import("zod").ZodNumber;
|
|
5885
|
-
subscriptionType: import("zod").ZodString;
|
|
5886
|
-
}, import("zod/v4/core").$loose>>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
5887
5879
|
googleMeetPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
5888
5880
|
message: import("zod").ZodObject<{
|
|
5889
5881
|
attributes: import("zod").ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.123.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.123.0",
|
|
35
|
+
"@automate.ax/integration-contracts": "0.123.0",
|
|
36
36
|
"@orpc/contract": "1.15.0",
|
|
37
37
|
"fast-json-stable-stringify": "^2.1.0",
|
|
38
38
|
"zod": "^4.3.6"
|
package/src/events/index.ts
CHANGED
|
@@ -8,7 +8,6 @@ import { googleCalendarEventsContract } from "./google-calendar"
|
|
|
8
8
|
import { googleFormsEventsContract } from "./google-forms"
|
|
9
9
|
import { googleDriveEventsContract } from "./google-drive"
|
|
10
10
|
import { googleMeetEventsContract } from "./google-meet"
|
|
11
|
-
import { hubspotEventsContract } from "./hubspot"
|
|
12
11
|
import { gmailEventsContract } from "./gmail"
|
|
13
12
|
import { githubEventsContract } from "./github"
|
|
14
13
|
import { linearEventsContract } from "./linear"
|
|
@@ -35,7 +34,6 @@ export const eventsContract = {
|
|
|
35
34
|
...googleDriveEventsContract,
|
|
36
35
|
...googleFormsEventsContract,
|
|
37
36
|
...googleMeetEventsContract,
|
|
38
|
-
...hubspotEventsContract,
|
|
39
37
|
...gmailEventsContract,
|
|
40
38
|
...githubEventsContract,
|
|
41
39
|
...linearEventsContract,
|
package/dist/events/hubspot.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
export declare const hubspotEventsContract: {
|
|
3
|
-
hubspotEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodArray<z.ZodObject<{
|
|
4
|
-
attemptNumber: z.ZodNumber;
|
|
5
|
-
eventId: z.ZodNumber;
|
|
6
|
-
objectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
7
|
-
portalId: z.ZodNumber;
|
|
8
|
-
subscriptionId: z.ZodNumber;
|
|
9
|
-
subscriptionType: z.ZodString;
|
|
10
|
-
}, z.core.$loose>>, z.ZodObject<{}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
11
|
-
};
|
package/dist/events/hubspot.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { oc } from "@orpc/contract";
|
|
2
|
-
import * as z from "zod";
|
|
3
|
-
export const hubspotEventsContract = {
|
|
4
|
-
hubspotEvent: oc
|
|
5
|
-
.route({
|
|
6
|
-
description: "Receives and authenticates callbacks delivered by HubSpot webhooks.",
|
|
7
|
-
method: "POST",
|
|
8
|
-
operationId: "receiveHubSpotEvent",
|
|
9
|
-
path: "/events/hubspot",
|
|
10
|
-
successStatus: 200,
|
|
11
|
-
summary: "Receive HubSpot events",
|
|
12
|
-
tags: ["Events"],
|
|
13
|
-
})
|
|
14
|
-
.input(z
|
|
15
|
-
.looseObject({
|
|
16
|
-
attemptNumber: z.number(),
|
|
17
|
-
eventId: z.number(),
|
|
18
|
-
objectId: z.union([z.number(), z.string()]).optional(),
|
|
19
|
-
portalId: z.number(),
|
|
20
|
-
subscriptionId: z.number(),
|
|
21
|
-
subscriptionType: z.string(),
|
|
22
|
-
})
|
|
23
|
-
.array()
|
|
24
|
-
.max(100))
|
|
25
|
-
.output(z.object({})),
|
|
26
|
-
};
|
package/src/events/hubspot.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { oc } from "@orpc/contract"
|
|
2
|
-
import * as z from "zod"
|
|
3
|
-
|
|
4
|
-
export const hubspotEventsContract = {
|
|
5
|
-
hubspotEvent: oc
|
|
6
|
-
.route({
|
|
7
|
-
description:
|
|
8
|
-
"Receives and authenticates callbacks delivered by HubSpot webhooks.",
|
|
9
|
-
method: "POST",
|
|
10
|
-
operationId: "receiveHubSpotEvent",
|
|
11
|
-
path: "/events/hubspot",
|
|
12
|
-
successStatus: 200,
|
|
13
|
-
summary: "Receive HubSpot events",
|
|
14
|
-
tags: ["Events"],
|
|
15
|
-
})
|
|
16
|
-
.input(
|
|
17
|
-
z
|
|
18
|
-
.looseObject({
|
|
19
|
-
attemptNumber: z.number(),
|
|
20
|
-
eventId: z.number(),
|
|
21
|
-
objectId: z.union([z.number(), z.string()]).optional(),
|
|
22
|
-
portalId: z.number(),
|
|
23
|
-
subscriptionId: z.number(),
|
|
24
|
-
subscriptionType: z.string(),
|
|
25
|
-
})
|
|
26
|
-
.array()
|
|
27
|
-
.max(100),
|
|
28
|
-
)
|
|
29
|
-
.output(z.object({})),
|
|
30
|
-
}
|