@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.
- package/dist/deployment.d.ts +2 -2
- package/dist/events/anthropic.d.ts +4 -0
- package/dist/events/anthropic.js +16 -0
- package/dist/events/index.d.ts +151 -150
- package/dist/events/index.js +2 -0
- package/dist/events/notion.d.ts +150 -150
- package/dist/index.d.ts +262 -155
- package/dist/runtime-protocol.d.ts +1 -1
- package/dist/runtime-protocol.js +1 -1
- package/dist/runtime.d.ts +212 -0
- package/dist/runtime.js +46 -0
- package/package.json +3 -3
- package/src/events/anthropic.ts +18 -0
- package/src/events/index.ts +2 -0
- package/src/runtime-protocol.ts +1 -1
- package/src/runtime.ts +60 -0
package/dist/deployment.d.ts
CHANGED
|
@@ -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<
|
|
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<
|
|
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,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
|
+
};
|