@automate.ax/api-contract 0.121.0 → 0.122.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/{google-sheets.d.ts → google-drive.d.ts} +3 -3
- package/dist/events/{google-sheets.js → google-drive.js} +7 -7
- package/dist/events/index.d.ts +17 -17
- package/dist/events/index.js +2 -2
- package/dist/index.d.ts +17 -17
- package/package.json +4 -4
- package/src/events/{google-sheets.ts → google-drive.ts} +7 -7
- package/src/events/index.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
2
|
+
export declare const googleDriveEventsContract: {
|
|
3
|
+
googleDrivePush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4
4
|
message: z.ZodObject<{
|
|
5
5
|
attributes: z.ZodObject<{
|
|
6
6
|
"ce-datacontenttype": z.ZodLiteral<"application/json">;
|
|
@@ -15,6 +15,6 @@ export declare const googleSheetsEventsContract: {
|
|
|
15
15
|
messageId: z.ZodString;
|
|
16
16
|
publishTime: z.ZodISODateTime;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
|
-
subscription: z.ZodLiteral<"projects/opkitty/subscriptions/automate-ax-google-
|
|
18
|
+
subscription: z.ZodLiteral<"projects/opkitty/subscriptions/automate-ax-google-drive-push">;
|
|
19
19
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
20
20
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
export const
|
|
4
|
-
|
|
3
|
+
export const googleDriveEventsContract = {
|
|
4
|
+
googleDrivePush: oc
|
|
5
5
|
.route({
|
|
6
6
|
method: "POST",
|
|
7
|
-
path: "/events/google-
|
|
8
|
-
operationId: "
|
|
9
|
-
summary: "Receive a Google
|
|
10
|
-
description: "Receives and authenticates Google Drive
|
|
7
|
+
path: "/events/google-drive",
|
|
8
|
+
operationId: "receiveGoogleDrivePush",
|
|
9
|
+
summary: "Receive a Google Drive push notification",
|
|
10
|
+
description: "Receives and authenticates Google Drive CloudEvents delivered by Google Cloud Pub/Sub.",
|
|
11
11
|
tags: ["Events"],
|
|
12
12
|
successStatus: 204,
|
|
13
13
|
})
|
|
@@ -26,7 +26,7 @@ export const googleSheetsEventsContract = {
|
|
|
26
26
|
messageId: z.string().min(1),
|
|
27
27
|
publishTime: z.iso.datetime({ offset: true }),
|
|
28
28
|
}),
|
|
29
|
-
subscription: z.literal("projects/opkitty/subscriptions/automate-ax-google-
|
|
29
|
+
subscription: z.literal("projects/opkitty/subscriptions/automate-ax-google-drive-push"),
|
|
30
30
|
}))
|
|
31
31
|
.output(z.void()),
|
|
32
32
|
};
|
package/dist/events/index.d.ts
CHANGED
|
@@ -3610,23 +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
|
-
googleSheetsPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3614
|
-
message: import("zod").ZodObject<{
|
|
3615
|
-
attributes: import("zod").ZodObject<{
|
|
3616
|
-
"ce-datacontenttype": import("zod").ZodLiteral<"application/json">;
|
|
3617
|
-
"ce-id": import("zod").ZodString;
|
|
3618
|
-
"ce-source": import("zod").ZodString;
|
|
3619
|
-
"ce-specversion": import("zod").ZodLiteral<"1.0">;
|
|
3620
|
-
"ce-subject": import("zod").ZodString;
|
|
3621
|
-
"ce-time": import("zod").ZodISODateTime;
|
|
3622
|
-
"ce-type": import("zod").ZodString;
|
|
3623
|
-
}, import("zod/v4/core").$loose>;
|
|
3624
|
-
data: import("zod").ZodString;
|
|
3625
|
-
messageId: import("zod").ZodString;
|
|
3626
|
-
publishTime: import("zod").ZodISODateTime;
|
|
3627
|
-
}, import("zod/v4/core").$strip>;
|
|
3628
|
-
subscription: import("zod").ZodLiteral<"projects/opkitty/subscriptions/automate-ax-google-sheets-push">;
|
|
3629
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3630
3613
|
hubspotEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodArray<import("zod").ZodObject<{
|
|
3631
3614
|
attemptNumber: import("zod").ZodNumber;
|
|
3632
3615
|
eventId: import("zod").ZodNumber;
|
|
@@ -3667,6 +3650,23 @@ export declare const eventsContract: {
|
|
|
3667
3650
|
}, import("zod/v4/core").$strip>;
|
|
3668
3651
|
subscription: import("zod").ZodLiteral<"projects/opkitty/subscriptions/automate-ax-google-forms-push">;
|
|
3669
3652
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3653
|
+
googleDrivePush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3654
|
+
message: import("zod").ZodObject<{
|
|
3655
|
+
attributes: import("zod").ZodObject<{
|
|
3656
|
+
"ce-datacontenttype": import("zod").ZodLiteral<"application/json">;
|
|
3657
|
+
"ce-id": import("zod").ZodString;
|
|
3658
|
+
"ce-source": import("zod").ZodString;
|
|
3659
|
+
"ce-specversion": import("zod").ZodLiteral<"1.0">;
|
|
3660
|
+
"ce-subject": import("zod").ZodString;
|
|
3661
|
+
"ce-time": import("zod").ZodISODateTime;
|
|
3662
|
+
"ce-type": import("zod").ZodString;
|
|
3663
|
+
}, import("zod/v4/core").$loose>;
|
|
3664
|
+
data: import("zod").ZodString;
|
|
3665
|
+
messageId: import("zod").ZodString;
|
|
3666
|
+
publishTime: import("zod").ZodISODateTime;
|
|
3667
|
+
}, import("zod/v4/core").$strip>;
|
|
3668
|
+
subscription: import("zod").ZodLiteral<"projects/opkitty/subscriptions/automate-ax-google-drive-push">;
|
|
3669
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3670
3670
|
googleCalendarPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodVoid, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3671
3671
|
cloudflareEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3672
3672
|
sourceId: import("zod").ZodString;
|
package/dist/events/index.js
CHANGED
|
@@ -6,9 +6,9 @@ import { closeEventsContract } from "./close.js";
|
|
|
6
6
|
import { cloudflareEventsContract } from "./cloudflare.js";
|
|
7
7
|
import { googleCalendarEventsContract } from "./google-calendar.js";
|
|
8
8
|
import { googleFormsEventsContract } from "./google-forms.js";
|
|
9
|
+
import { googleDriveEventsContract } from "./google-drive.js";
|
|
9
10
|
import { googleMeetEventsContract } from "./google-meet.js";
|
|
10
11
|
import { hubspotEventsContract } from "./hubspot.js";
|
|
11
|
-
import { googleSheetsEventsContract } from "./google-sheets.js";
|
|
12
12
|
import { gmailEventsContract } from "./gmail.js";
|
|
13
13
|
import { githubEventsContract } from "./github.js";
|
|
14
14
|
import { linearEventsContract } from "./linear.js";
|
|
@@ -31,10 +31,10 @@ export const eventsContract = {
|
|
|
31
31
|
...closeEventsContract,
|
|
32
32
|
...cloudflareEventsContract,
|
|
33
33
|
...googleCalendarEventsContract,
|
|
34
|
+
...googleDriveEventsContract,
|
|
34
35
|
...googleFormsEventsContract,
|
|
35
36
|
...googleMeetEventsContract,
|
|
36
37
|
...hubspotEventsContract,
|
|
37
|
-
...googleSheetsEventsContract,
|
|
38
38
|
...gmailEventsContract,
|
|
39
39
|
...githubEventsContract,
|
|
40
40
|
...linearEventsContract,
|
package/dist/index.d.ts
CHANGED
|
@@ -5876,23 +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
|
-
googleSheetsPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
5880
|
-
message: import("zod").ZodObject<{
|
|
5881
|
-
attributes: import("zod").ZodObject<{
|
|
5882
|
-
"ce-datacontenttype": import("zod").ZodLiteral<"application/json">;
|
|
5883
|
-
"ce-id": import("zod").ZodString;
|
|
5884
|
-
"ce-source": import("zod").ZodString;
|
|
5885
|
-
"ce-specversion": import("zod").ZodLiteral<"1.0">;
|
|
5886
|
-
"ce-subject": import("zod").ZodString;
|
|
5887
|
-
"ce-time": import("zod").ZodISODateTime;
|
|
5888
|
-
"ce-type": import("zod").ZodString;
|
|
5889
|
-
}, import("zod/v4/core").$loose>;
|
|
5890
|
-
data: import("zod").ZodString;
|
|
5891
|
-
messageId: import("zod").ZodString;
|
|
5892
|
-
publishTime: import("zod").ZodISODateTime;
|
|
5893
|
-
}, import("zod/v4/core").$strip>;
|
|
5894
|
-
subscription: import("zod").ZodLiteral<"projects/opkitty/subscriptions/automate-ax-google-sheets-push">;
|
|
5895
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
5896
5879
|
hubspotEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodArray<import("zod").ZodObject<{
|
|
5897
5880
|
attemptNumber: import("zod").ZodNumber;
|
|
5898
5881
|
eventId: import("zod").ZodNumber;
|
|
@@ -5933,6 +5916,23 @@ export declare const contract: {
|
|
|
5933
5916
|
}, import("zod/v4/core").$strip>;
|
|
5934
5917
|
subscription: import("zod").ZodLiteral<"projects/opkitty/subscriptions/automate-ax-google-forms-push">;
|
|
5935
5918
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
5919
|
+
googleDrivePush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
5920
|
+
message: import("zod").ZodObject<{
|
|
5921
|
+
attributes: import("zod").ZodObject<{
|
|
5922
|
+
"ce-datacontenttype": import("zod").ZodLiteral<"application/json">;
|
|
5923
|
+
"ce-id": import("zod").ZodString;
|
|
5924
|
+
"ce-source": import("zod").ZodString;
|
|
5925
|
+
"ce-specversion": import("zod").ZodLiteral<"1.0">;
|
|
5926
|
+
"ce-subject": import("zod").ZodString;
|
|
5927
|
+
"ce-time": import("zod").ZodISODateTime;
|
|
5928
|
+
"ce-type": import("zod").ZodString;
|
|
5929
|
+
}, import("zod/v4/core").$loose>;
|
|
5930
|
+
data: import("zod").ZodString;
|
|
5931
|
+
messageId: import("zod").ZodString;
|
|
5932
|
+
publishTime: import("zod").ZodISODateTime;
|
|
5933
|
+
}, import("zod/v4/core").$strip>;
|
|
5934
|
+
subscription: import("zod").ZodLiteral<"projects/opkitty/subscriptions/automate-ax-google-drive-push">;
|
|
5935
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
5936
5936
|
googleCalendarPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodVoid, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
5937
5937
|
cloudflareEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
5938
5938
|
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.122.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.122.0",
|
|
35
|
+
"@automate.ax/integration-contracts": "0.122.0",
|
|
36
36
|
"@orpc/contract": "1.15.0",
|
|
37
37
|
"fast-json-stable-stringify": "^2.1.0",
|
|
38
38
|
"zod": "^4.3.6"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"zshy": "^0.7.2"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
|
-
"typecheck": "tsc --noEmit",
|
|
51
|
+
"typecheck": "resource-broker run --pool automate-ax-validation --limit 2 --weight 1 -- tsc --noEmit",
|
|
52
52
|
"lint": "oxlint --type-aware --threads=2 && bun --bun eslint . --cache --cache-strategy content",
|
|
53
53
|
"lint:fix": "oxlint --type-aware --threads=2 --fix --fix-suggestions && bun --bun eslint . --fix --cache --cache-strategy content",
|
|
54
54
|
"check": "bun run typecheck && bun run lint",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract"
|
|
2
2
|
import { z } from "zod"
|
|
3
3
|
|
|
4
|
-
export const
|
|
5
|
-
|
|
4
|
+
export const googleDriveEventsContract = {
|
|
5
|
+
googleDrivePush: oc
|
|
6
6
|
.route({
|
|
7
7
|
method: "POST",
|
|
8
|
-
path: "/events/google-
|
|
9
|
-
operationId: "
|
|
10
|
-
summary: "Receive a Google
|
|
8
|
+
path: "/events/google-drive",
|
|
9
|
+
operationId: "receiveGoogleDrivePush",
|
|
10
|
+
summary: "Receive a Google Drive push notification",
|
|
11
11
|
description:
|
|
12
|
-
"Receives and authenticates Google Drive
|
|
12
|
+
"Receives and authenticates Google Drive CloudEvents delivered by Google Cloud Pub/Sub.",
|
|
13
13
|
tags: ["Events"],
|
|
14
14
|
successStatus: 204,
|
|
15
15
|
})
|
|
@@ -30,7 +30,7 @@ export const googleSheetsEventsContract = {
|
|
|
30
30
|
publishTime: z.iso.datetime({ offset: true }),
|
|
31
31
|
}),
|
|
32
32
|
subscription: z.literal(
|
|
33
|
-
"projects/opkitty/subscriptions/automate-ax-google-
|
|
33
|
+
"projects/opkitty/subscriptions/automate-ax-google-drive-push",
|
|
34
34
|
),
|
|
35
35
|
}),
|
|
36
36
|
)
|
package/src/events/index.ts
CHANGED
|
@@ -6,9 +6,9 @@ import { closeEventsContract } from "./close"
|
|
|
6
6
|
import { cloudflareEventsContract } from "./cloudflare"
|
|
7
7
|
import { googleCalendarEventsContract } from "./google-calendar"
|
|
8
8
|
import { googleFormsEventsContract } from "./google-forms"
|
|
9
|
+
import { googleDriveEventsContract } from "./google-drive"
|
|
9
10
|
import { googleMeetEventsContract } from "./google-meet"
|
|
10
11
|
import { hubspotEventsContract } from "./hubspot"
|
|
11
|
-
import { googleSheetsEventsContract } from "./google-sheets"
|
|
12
12
|
import { gmailEventsContract } from "./gmail"
|
|
13
13
|
import { githubEventsContract } from "./github"
|
|
14
14
|
import { linearEventsContract } from "./linear"
|
|
@@ -32,10 +32,10 @@ export const eventsContract = {
|
|
|
32
32
|
...closeEventsContract,
|
|
33
33
|
...cloudflareEventsContract,
|
|
34
34
|
...googleCalendarEventsContract,
|
|
35
|
+
...googleDriveEventsContract,
|
|
35
36
|
...googleFormsEventsContract,
|
|
36
37
|
...googleMeetEventsContract,
|
|
37
38
|
...hubspotEventsContract,
|
|
38
|
-
...googleSheetsEventsContract,
|
|
39
39
|
...gmailEventsContract,
|
|
40
40
|
...githubEventsContract,
|
|
41
41
|
...linearEventsContract,
|