@automate.ax/api-contract 0.83.3 → 0.84.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.
@@ -22,6 +22,9 @@ export declare const eventsContract: {
22
22
  trelloWebhookProbe: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
23
23
  sourceId: import("zod").ZodString;
24
24
  }, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
25
+ stripeEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
26
+ sourceId: import("zod").ZodString;
27
+ }, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
25
28
  slackEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
26
29
  type: import("zod").ZodString;
27
30
  }, import("zod/v4/core").$loose>, import("zod").ZodObject<{
@@ -12,6 +12,7 @@ import { mailhookEventsContract } from "./mailhook.js";
12
12
  import { microsoftEventsContract } from "./microsoft.js";
13
13
  import { resendEventsContract } from "./resend.js";
14
14
  import { slackEventsContract } from "./slack.js";
15
+ import { stripeEventsContract } from "./stripe.js";
15
16
  import { trelloEventsContract } from "./trello.js";
16
17
  import { vercelEventsContract } from "./vercel.js";
17
18
  import { whatsappEventsContract } from "./whatsapp.js";
@@ -30,6 +31,7 @@ export const eventsContract = {
30
31
  ...microsoftEventsContract,
31
32
  ...resendEventsContract,
32
33
  ...slackEventsContract,
34
+ ...stripeEventsContract,
33
35
  ...trelloEventsContract,
34
36
  ...vercelEventsContract,
35
37
  ...whatsappEventsContract,
@@ -0,0 +1,6 @@
1
+ import * as z from "zod";
2
+ export declare const stripeEventsContract: {
3
+ stripeEvent: 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 stripeEventsContract = {
4
+ stripeEvent: oc
5
+ .route({
6
+ method: "POST",
7
+ path: "/events/stripe/{sourceId}",
8
+ operationId: "receiveStripeEvent",
9
+ summary: "Receive a Stripe event",
10
+ description: "Receives and authenticates callbacks delivered by Stripe 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
@@ -2148,6 +2148,9 @@ export declare const contract: {
2148
2148
  trelloWebhookProbe: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2149
2149
  sourceId: import("zod").ZodString;
2150
2150
  }, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
2151
+ stripeEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2152
+ sourceId: import("zod").ZodString;
2153
+ }, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
2151
2154
  slackEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
2152
2155
  type: import("zod").ZodString;
2153
2156
  }, 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.83.3",
3
+ "version": "0.84.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.83.3",
35
- "@automate.ax/integration-contracts": "0.83.3",
34
+ "@automate.ax/codec": "0.84.0",
35
+ "@automate.ax/integration-contracts": "0.84.0",
36
36
  "@orpc/contract": "1.15.0",
37
37
  "fast-json-stable-stringify": "^2.1.0",
38
38
  "zod": "^4.3.6"
@@ -12,6 +12,7 @@ import { mailhookEventsContract } from "./mailhook"
12
12
  import { microsoftEventsContract } from "./microsoft"
13
13
  import { resendEventsContract } from "./resend"
14
14
  import { slackEventsContract } from "./slack"
15
+ import { stripeEventsContract } from "./stripe"
15
16
  import { trelloEventsContract } from "./trello"
16
17
  import { vercelEventsContract } from "./vercel"
17
18
  import { whatsappEventsContract } from "./whatsapp"
@@ -31,6 +32,7 @@ export const eventsContract = {
31
32
  ...microsoftEventsContract,
32
33
  ...resendEventsContract,
33
34
  ...slackEventsContract,
35
+ ...stripeEventsContract,
34
36
  ...trelloEventsContract,
35
37
  ...vercelEventsContract,
36
38
  ...whatsappEventsContract,
@@ -0,0 +1,18 @@
1
+ import { oc } from "@orpc/contract"
2
+ import * as z from "zod"
3
+
4
+ export const stripeEventsContract = {
5
+ stripeEvent: oc
6
+ .route({
7
+ method: "POST",
8
+ path: "/events/stripe/{sourceId}",
9
+ operationId: "receiveStripeEvent",
10
+ summary: "Receive a Stripe event",
11
+ description:
12
+ "Receives and authenticates callbacks delivered by Stripe webhooks.",
13
+ tags: ["Events"],
14
+ successStatus: 204,
15
+ })
16
+ .input(z.looseObject({ sourceId: z.string() }))
17
+ .output(z.void()),
18
+ }