@automate.ax/api-contract 0.158.0 → 0.159.1

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.
@@ -36,6 +36,9 @@ export declare const eventsContract: {
36
36
  stripeEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
37
37
  sourceId: import("zod").ZodString;
38
38
  }, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
39
+ squareEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
40
+ sourceId: import("zod").ZodString;
41
+ }, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
39
42
  slackEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
40
43
  type: import("zod").ZodString;
41
44
  }, import("zod/v4/core").$loose>, import("zod").ZodObject<{
@@ -28,6 +28,7 @@ import { metaAdsEventsContract } from "./meta-ads.js";
28
28
  import { notionEventsContract } from "./notion.js";
29
29
  import { resendEventsContract } from "./resend.js";
30
30
  import { slackEventsContract } from "./slack.js";
31
+ import { squareEventsContract } from "./square.js";
31
32
  import { stripeEventsContract } from "./stripe.js";
32
33
  import { tallyEventsContract } from "./tally.js";
33
34
  import { trelloEventsContract } from "./trello.js";
@@ -65,6 +66,7 @@ export const eventsContract = {
65
66
  ...notionEventsContract,
66
67
  ...resendEventsContract,
67
68
  ...slackEventsContract,
69
+ ...squareEventsContract,
68
70
  ...stripeEventsContract,
69
71
  ...tallyEventsContract,
70
72
  ...trelloEventsContract,
@@ -0,0 +1,6 @@
1
+ import * as z from "zod";
2
+ export declare const squareEventsContract: {
3
+ squareEvent: 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 squareEventsContract = {
4
+ squareEvent: oc
5
+ .route({
6
+ method: "POST",
7
+ path: "/events/square/{sourceId}",
8
+ operationId: "receiveSquareEvent",
9
+ summary: "Receive a Square event",
10
+ description: "Receives and authenticates callbacks delivered by Square webhooks.",
11
+ tags: ["Events"],
12
+ successStatus: 204,
13
+ })
14
+ .input(z.looseObject({ sourceId: z.string() }))
15
+ .output(z.void()),
16
+ };
package/dist/index.d.ts CHANGED
@@ -3463,6 +3463,9 @@ export declare const contract: {
3463
3463
  stripeEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3464
3464
  sourceId: import("zod").ZodString;
3465
3465
  }, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
3466
+ squareEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3467
+ sourceId: import("zod").ZodString;
3468
+ }, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
3466
3469
  slackEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3467
3470
  type: import("zod").ZodString;
3468
3471
  }, import("zod/v4/core").$loose>, import("zod").ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/api-contract",
3
- "version": "0.158.0",
3
+ "version": "0.159.1",
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.87",
34
- "@automate.ax/catalog": "0.158.0",
35
- "@automate.ax/codec": "0.158.0",
36
- "@automate.ax/integration-contracts": "0.158.0",
34
+ "@automate.ax/catalog": "0.159.1",
35
+ "@automate.ax/codec": "0.159.1",
36
+ "@automate.ax/integration-contracts": "0.159.1",
37
37
  "@orpc/contract": "1.15.0",
38
38
  "fast-json-stable-stringify": "^2.1.0",
39
39
  "zod": "^4.3.6"
@@ -28,6 +28,7 @@ import { metaAdsEventsContract } from "./meta-ads"
28
28
  import { notionEventsContract } from "./notion"
29
29
  import { resendEventsContract } from "./resend"
30
30
  import { slackEventsContract } from "./slack"
31
+ import { squareEventsContract } from "./square"
31
32
  import { stripeEventsContract } from "./stripe"
32
33
  import { tallyEventsContract } from "./tally"
33
34
  import { trelloEventsContract } from "./trello"
@@ -66,6 +67,7 @@ export const eventsContract = {
66
67
  ...notionEventsContract,
67
68
  ...resendEventsContract,
68
69
  ...slackEventsContract,
70
+ ...squareEventsContract,
69
71
  ...stripeEventsContract,
70
72
  ...tallyEventsContract,
71
73
  ...trelloEventsContract,
@@ -0,0 +1,18 @@
1
+ import { oc } from "@orpc/contract"
2
+ import * as z from "zod"
3
+
4
+ export const squareEventsContract = {
5
+ squareEvent: oc
6
+ .route({
7
+ method: "POST",
8
+ path: "/events/square/{sourceId}",
9
+ operationId: "receiveSquareEvent",
10
+ summary: "Receive a Square event",
11
+ description:
12
+ "Receives and authenticates callbacks delivered by Square webhooks.",
13
+ tags: ["Events"],
14
+ successStatus: 204,
15
+ })
16
+ .input(z.looseObject({ sourceId: z.string() }))
17
+ .output(z.void()),
18
+ }