@automate.ax/api-contract 0.151.0 → 0.152.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/elevenlabs.d.ts +6 -0
- package/dist/events/elevenlabs.js +16 -0
- package/dist/events/index.d.ts +3 -0
- package/dist/events/index.js +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.js +1 -0
- package/package.json +4 -4
- package/src/events/elevenlabs.ts +18 -0
- package/src/events/index.ts +2 -0
- package/src/runtime.ts +1 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const elevenLabsEventsContract: {
|
|
3
|
+
elevenLabsEvent: 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 elevenLabsEventsContract = {
|
|
4
|
+
elevenLabsEvent: oc
|
|
5
|
+
.route({
|
|
6
|
+
description: "Receives and authenticates callbacks delivered by ElevenLabs webhooks.",
|
|
7
|
+
method: "POST",
|
|
8
|
+
operationId: "receiveElevenLabsEvent",
|
|
9
|
+
path: "/events/elevenlabs/{sourceId}",
|
|
10
|
+
successStatus: 200,
|
|
11
|
+
summary: "Receive an ElevenLabs event",
|
|
12
|
+
tags: ["Events"],
|
|
13
|
+
})
|
|
14
|
+
.input(z.looseObject({ sourceId: z.string() }))
|
|
15
|
+
.output(z.void()),
|
|
16
|
+
};
|
package/dist/events/index.d.ts
CHANGED
|
@@ -4242,6 +4242,9 @@ export declare const eventsContract: {
|
|
|
4242
4242
|
closeEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
4243
4243
|
sourceId: import("zod").ZodString;
|
|
4244
4244
|
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
4245
|
+
elevenLabsEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
4246
|
+
sourceId: import("zod").ZodString;
|
|
4247
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
4245
4248
|
discordEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
4246
4249
|
applicationId: import("zod").ZodString;
|
|
4247
4250
|
application_id: import("zod").ZodString;
|
package/dist/events/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import { brevoEventsContract } from "./brevo.js";
|
|
|
7
7
|
import { calcomEventsContract } from "./calcom.js";
|
|
8
8
|
import { convexEventsContract } from "./convex.js";
|
|
9
9
|
import { discordEventsContract } from "./discord.js";
|
|
10
|
+
import { elevenLabsEventsContract } from "./elevenlabs.js";
|
|
10
11
|
import { closeEventsContract } from "./close.js";
|
|
11
12
|
import { cloudflareEventsContract } from "./cloudflare.js";
|
|
12
13
|
import { clickUpEventsContract } from "./clickup.js";
|
|
@@ -43,6 +44,7 @@ export const eventsContract = {
|
|
|
43
44
|
...calcomEventsContract,
|
|
44
45
|
...convexEventsContract,
|
|
45
46
|
...discordEventsContract,
|
|
47
|
+
...elevenLabsEventsContract,
|
|
46
48
|
...closeEventsContract,
|
|
47
49
|
...cloudflareEventsContract,
|
|
48
50
|
...clickUpEventsContract,
|
package/dist/index.d.ts
CHANGED
|
@@ -7587,6 +7587,9 @@ export declare const contract: {
|
|
|
7587
7587
|
closeEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
7588
7588
|
sourceId: import("zod").ZodString;
|
|
7589
7589
|
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
7590
|
+
elevenLabsEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
7591
|
+
sourceId: import("zod").ZodString;
|
|
7592
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
7590
7593
|
discordEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
7591
7594
|
applicationId: import("zod").ZodString;
|
|
7592
7595
|
application_id: import("zod").ZodString;
|
|
@@ -8210,6 +8213,7 @@ export declare const contract: {
|
|
|
8210
8213
|
roots: import("zod").ZodArray<import("zod").ZodNumber>;
|
|
8211
8214
|
}, import("zod/v4/core").$strip>>;
|
|
8212
8215
|
failure: import("zod").ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, import("zod/v4/core").$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
8216
|
+
outcomeSeq: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8213
8217
|
status: import("zod").ZodLiteral<"failed">;
|
|
8214
8218
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
8215
8219
|
actionDependencyIds: import("zod").ZodArray<import("zod").ZodString>;
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1960,6 +1960,7 @@ export declare const runtimeContract: {
|
|
|
1960
1960
|
roots: z.ZodArray<z.ZodNumber>;
|
|
1961
1961
|
}, z.core.$strip>>;
|
|
1962
1962
|
failure: z.ZodType<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue, z.core.$ZodTypeInternals<import("./errors").AutomationErrorValue, import("./errors").AutomationErrorValue>>;
|
|
1963
|
+
outcomeSeq: z.ZodOptional<z.ZodNumber>;
|
|
1963
1964
|
status: z.ZodLiteral<"failed">;
|
|
1964
1965
|
}, z.core.$strip>, z.ZodObject<{
|
|
1965
1966
|
actionDependencyIds: z.ZodArray<z.ZodString>;
|
package/dist/runtime.js
CHANGED
|
@@ -437,6 +437,7 @@ const SIGNAL_INVOCATION_SCHEMA = z.union([
|
|
|
437
437
|
}),
|
|
438
438
|
SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.extend({
|
|
439
439
|
failure: automationErrorSchema,
|
|
440
|
+
outcomeSeq: OUTCOME_SEQUENCE_SCHEMA.optional(),
|
|
440
441
|
status: z.literal("failed"),
|
|
441
442
|
}),
|
|
442
443
|
SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.extend({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.152.0",
|
|
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.46",
|
|
34
|
-
"@automate.ax/catalog": "0.
|
|
35
|
-
"@automate.ax/codec": "0.
|
|
36
|
-
"@automate.ax/integration-contracts": "0.
|
|
34
|
+
"@automate.ax/catalog": "0.152.0",
|
|
35
|
+
"@automate.ax/codec": "0.152.0",
|
|
36
|
+
"@automate.ax/integration-contracts": "0.152.0",
|
|
37
37
|
"@orpc/contract": "1.15.0",
|
|
38
38
|
"fast-json-stable-stringify": "^2.1.0",
|
|
39
39
|
"zod": "^4.3.6"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract"
|
|
2
|
+
import * as z from "zod"
|
|
3
|
+
|
|
4
|
+
export const elevenLabsEventsContract = {
|
|
5
|
+
elevenLabsEvent: oc
|
|
6
|
+
.route({
|
|
7
|
+
description:
|
|
8
|
+
"Receives and authenticates callbacks delivered by ElevenLabs webhooks.",
|
|
9
|
+
method: "POST",
|
|
10
|
+
operationId: "receiveElevenLabsEvent",
|
|
11
|
+
path: "/events/elevenlabs/{sourceId}",
|
|
12
|
+
successStatus: 200,
|
|
13
|
+
summary: "Receive an ElevenLabs event",
|
|
14
|
+
tags: ["Events"],
|
|
15
|
+
})
|
|
16
|
+
.input(z.looseObject({ sourceId: z.string() }))
|
|
17
|
+
.output(z.void()),
|
|
18
|
+
}
|
package/src/events/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { brevoEventsContract } from "./brevo"
|
|
|
7
7
|
import { calcomEventsContract } from "./calcom"
|
|
8
8
|
import { convexEventsContract } from "./convex"
|
|
9
9
|
import { discordEventsContract } from "./discord"
|
|
10
|
+
import { elevenLabsEventsContract } from "./elevenlabs"
|
|
10
11
|
import { closeEventsContract } from "./close"
|
|
11
12
|
import { cloudflareEventsContract } from "./cloudflare"
|
|
12
13
|
import { clickUpEventsContract } from "./clickup"
|
|
@@ -44,6 +45,7 @@ export const eventsContract = {
|
|
|
44
45
|
...calcomEventsContract,
|
|
45
46
|
...convexEventsContract,
|
|
46
47
|
...discordEventsContract,
|
|
48
|
+
...elevenLabsEventsContract,
|
|
47
49
|
...closeEventsContract,
|
|
48
50
|
...cloudflareEventsContract,
|
|
49
51
|
...clickUpEventsContract,
|
package/src/runtime.ts
CHANGED
|
@@ -544,6 +544,7 @@ const SIGNAL_INVOCATION_SCHEMA = z.union([
|
|
|
544
544
|
}),
|
|
545
545
|
SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.extend({
|
|
546
546
|
failure: automationErrorSchema,
|
|
547
|
+
outcomeSeq: OUTCOME_SEQUENCE_SCHEMA.optional(),
|
|
547
548
|
status: z.literal("failed"),
|
|
548
549
|
}),
|
|
549
550
|
SIGNAL_INVOCATION_DEPENDENCIES_SCHEMA.extend({
|