@automate.ax/api-contract 0.137.0 → 0.139.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.
@@ -113,7 +113,7 @@ export declare const deploymentContract: {
113
113
  UNSUPPORTED_RUNTIME_PROTOCOL: {
114
114
  readonly data: z.ZodObject<{
115
115
  receivedVersion: z.ZodNullable<z.ZodNumber>;
116
- supportedVersion: z.ZodLiteral<4>;
116
+ supportedVersion: z.ZodLiteral<5>;
117
117
  }, z.core.$strip>;
118
118
  readonly message: "The automation bundle uses an unsupported runtime protocol.";
119
119
  readonly status: 400;
@@ -289,7 +289,7 @@ export declare const deploymentContract: {
289
289
  UNSUPPORTED_RUNTIME_PROTOCOL: {
290
290
  readonly data: z.ZodObject<{
291
291
  receivedVersion: z.ZodNullable<z.ZodNumber>;
292
- supportedVersion: z.ZodLiteral<4>;
292
+ supportedVersion: z.ZodLiteral<5>;
293
293
  }, z.core.$strip>;
294
294
  readonly message: "The automation bundle uses an unsupported runtime protocol.";
295
295
  readonly status: 400;
@@ -0,0 +1,4 @@
1
+ import * as z from "zod";
2
+ export declare const anthropicEventsContract: {
3
+ anthropicEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodUnknown, z.ZodVoid, Record<never, never>, Record<never, never>>;
4
+ };
@@ -0,0 +1,16 @@
1
+ import { oc } from "@orpc/contract";
2
+ import * as z from "zod";
3
+ export const anthropicEventsContract = {
4
+ anthropicEvent: oc
5
+ .route({
6
+ description: "Receives signed lifecycle callbacks from Anthropic Claude Managed Agents.",
7
+ method: "POST",
8
+ operationId: "receiveAnthropicEvent",
9
+ path: "/events/anthropic",
10
+ successStatus: 200,
11
+ summary: "Receive an Anthropic Managed Agents event",
12
+ tags: ["Events"],
13
+ })
14
+ .input(z.unknown())
15
+ .output(z.void()),
16
+ };