@automate.ax/api-contract 0.126.0 → 0.127.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.
- package/dist/events/axiom.d.ts +6 -0
- package/dist/events/axiom.js +16 -0
- package/dist/events/index.d.ts +7 -4
- package/dist/events/index.js +2 -0
- package/dist/events/notion.d.ts +4 -4
- package/dist/index.d.ts +7 -4
- package/package.json +3 -3
- package/src/events/axiom.ts +17 -0
- package/src/events/index.ts +2 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const axiomEventsContract: {
|
|
3
|
+
axiomEvent: 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 axiomEventsContract = {
|
|
4
|
+
axiomEvent: oc
|
|
5
|
+
.route({
|
|
6
|
+
description: "Receives and authenticates Axiom monitor webhooks.",
|
|
7
|
+
method: "POST",
|
|
8
|
+
operationId: "receiveAxiomEvent",
|
|
9
|
+
path: "/events/axiom/{sourceId}",
|
|
10
|
+
successStatus: 200,
|
|
11
|
+
summary: "Receive an Axiom monitor event",
|
|
12
|
+
tags: ["Events"],
|
|
13
|
+
})
|
|
14
|
+
.input(z.looseObject({ sourceId: z.string() }))
|
|
15
|
+
.output(z.void()),
|
|
16
|
+
};
|
package/dist/events/index.d.ts
CHANGED
|
@@ -417,9 +417,9 @@ export declare const eventsContract: {
|
|
|
417
417
|
}, import("zod/v4/core").$strip>;
|
|
418
418
|
updated_properties: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
419
419
|
action: import("zod").ZodEnum<{
|
|
420
|
-
deleted: "deleted";
|
|
421
|
-
updated: "updated";
|
|
422
420
|
created: "created";
|
|
421
|
+
updated: "updated";
|
|
422
|
+
deleted: "deleted";
|
|
423
423
|
}>;
|
|
424
424
|
id: import("zod").ZodString;
|
|
425
425
|
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -1732,7 +1732,7 @@ export declare const eventsContract: {
|
|
|
1732
1732
|
updatedProperties?: {
|
|
1733
1733
|
id: string;
|
|
1734
1734
|
name: string | null;
|
|
1735
|
-
action: "
|
|
1735
|
+
action: "created" | "updated" | "deleted";
|
|
1736
1736
|
}[] | undefined;
|
|
1737
1737
|
};
|
|
1738
1738
|
workspaceId: string;
|
|
@@ -2712,7 +2712,7 @@ export declare const eventsContract: {
|
|
|
2712
2712
|
data_source_id?: string | undefined;
|
|
2713
2713
|
};
|
|
2714
2714
|
updated_properties?: {
|
|
2715
|
-
action: "
|
|
2715
|
+
action: "created" | "updated" | "deleted";
|
|
2716
2716
|
id: string;
|
|
2717
2717
|
name: string | null;
|
|
2718
2718
|
}[] | undefined;
|
|
@@ -3682,6 +3682,9 @@ export declare const eventsContract: {
|
|
|
3682
3682
|
events: import("zod").ZodPrefault<import("zod").ZodArray<import("zod").ZodJSONSchema>>;
|
|
3683
3683
|
sourceId: import("zod").ZodString;
|
|
3684
3684
|
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3685
|
+
axiomEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3686
|
+
sourceId: import("zod").ZodString;
|
|
3687
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3685
3688
|
apifyEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3686
3689
|
sourceId: import("zod").ZodString;
|
|
3687
3690
|
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
package/dist/events/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { airtableEventsContract } from "./airtable.js";
|
|
2
2
|
import { apifyEventsContract } from "./apify.js";
|
|
3
|
+
import { axiomEventsContract } from "./axiom.js";
|
|
3
4
|
import { asanaEventsContract } from "./asana.js";
|
|
4
5
|
import { brevoEventsContract } from "./brevo.js";
|
|
5
6
|
import { convexEventsContract } from "./convex.js";
|
|
@@ -26,6 +27,7 @@ import { whatsappEventsContract } from "./whatsapp.js";
|
|
|
26
27
|
export const eventsContract = {
|
|
27
28
|
...airtableEventsContract,
|
|
28
29
|
...apifyEventsContract,
|
|
30
|
+
...axiomEventsContract,
|
|
29
31
|
...asanaEventsContract,
|
|
30
32
|
...brevoEventsContract,
|
|
31
33
|
...convexEventsContract,
|
package/dist/events/notion.d.ts
CHANGED
|
@@ -376,9 +376,9 @@ export declare const notionEventsContract: {
|
|
|
376
376
|
}, z.core.$strip>;
|
|
377
377
|
updated_properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
378
378
|
action: z.ZodEnum<{
|
|
379
|
-
deleted: "deleted";
|
|
380
|
-
updated: "updated";
|
|
381
379
|
created: "created";
|
|
380
|
+
updated: "updated";
|
|
381
|
+
deleted: "deleted";
|
|
382
382
|
}>;
|
|
383
383
|
id: z.ZodString;
|
|
384
384
|
name: z.ZodNullable<z.ZodString>;
|
|
@@ -1691,7 +1691,7 @@ export declare const notionEventsContract: {
|
|
|
1691
1691
|
updatedProperties?: {
|
|
1692
1692
|
id: string;
|
|
1693
1693
|
name: string | null;
|
|
1694
|
-
action: "
|
|
1694
|
+
action: "created" | "updated" | "deleted";
|
|
1695
1695
|
}[] | undefined;
|
|
1696
1696
|
};
|
|
1697
1697
|
workspaceId: string;
|
|
@@ -2671,7 +2671,7 @@ export declare const notionEventsContract: {
|
|
|
2671
2671
|
data_source_id?: string | undefined;
|
|
2672
2672
|
};
|
|
2673
2673
|
updated_properties?: {
|
|
2674
|
-
action: "
|
|
2674
|
+
action: "created" | "updated" | "deleted";
|
|
2675
2675
|
id: string;
|
|
2676
2676
|
name: string | null;
|
|
2677
2677
|
}[] | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -2683,9 +2683,9 @@ export declare const contract: {
|
|
|
2683
2683
|
}, import("zod/v4/core").$strip>;
|
|
2684
2684
|
updated_properties: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
2685
2685
|
action: import("zod").ZodEnum<{
|
|
2686
|
-
deleted: "deleted";
|
|
2687
|
-
updated: "updated";
|
|
2688
2686
|
created: "created";
|
|
2687
|
+
updated: "updated";
|
|
2688
|
+
deleted: "deleted";
|
|
2689
2689
|
}>;
|
|
2690
2690
|
id: import("zod").ZodString;
|
|
2691
2691
|
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -3998,7 +3998,7 @@ export declare const contract: {
|
|
|
3998
3998
|
updatedProperties?: {
|
|
3999
3999
|
id: string;
|
|
4000
4000
|
name: string | null;
|
|
4001
|
-
action: "
|
|
4001
|
+
action: "created" | "updated" | "deleted";
|
|
4002
4002
|
}[] | undefined;
|
|
4003
4003
|
};
|
|
4004
4004
|
workspaceId: string;
|
|
@@ -4978,7 +4978,7 @@ export declare const contract: {
|
|
|
4978
4978
|
data_source_id?: string | undefined;
|
|
4979
4979
|
};
|
|
4980
4980
|
updated_properties?: {
|
|
4981
|
-
action: "
|
|
4981
|
+
action: "created" | "updated" | "deleted";
|
|
4982
4982
|
id: string;
|
|
4983
4983
|
name: string | null;
|
|
4984
4984
|
}[] | undefined;
|
|
@@ -5948,6 +5948,9 @@ export declare const contract: {
|
|
|
5948
5948
|
events: import("zod").ZodPrefault<import("zod").ZodArray<import("zod").ZodJSONSchema>>;
|
|
5949
5949
|
sourceId: import("zod").ZodString;
|
|
5950
5950
|
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
5951
|
+
axiomEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
5952
|
+
sourceId: import("zod").ZodString;
|
|
5953
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
5951
5954
|
apifyEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
5952
5955
|
sourceId: import("zod").ZodString;
|
|
5953
5956
|
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.127.1",
|
|
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.
|
|
35
|
-
"@automate.ax/integration-contracts": "0.
|
|
34
|
+
"@automate.ax/codec": "0.127.1",
|
|
35
|
+
"@automate.ax/integration-contracts": "0.127.1",
|
|
36
36
|
"@orpc/contract": "1.15.0",
|
|
37
37
|
"fast-json-stable-stringify": "^2.1.0",
|
|
38
38
|
"zod": "^4.3.6"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract"
|
|
2
|
+
import * as z from "zod"
|
|
3
|
+
|
|
4
|
+
export const axiomEventsContract = {
|
|
5
|
+
axiomEvent: oc
|
|
6
|
+
.route({
|
|
7
|
+
description: "Receives and authenticates Axiom monitor webhooks.",
|
|
8
|
+
method: "POST",
|
|
9
|
+
operationId: "receiveAxiomEvent",
|
|
10
|
+
path: "/events/axiom/{sourceId}",
|
|
11
|
+
successStatus: 200,
|
|
12
|
+
summary: "Receive an Axiom monitor event",
|
|
13
|
+
tags: ["Events"],
|
|
14
|
+
})
|
|
15
|
+
.input(z.looseObject({ sourceId: z.string() }))
|
|
16
|
+
.output(z.void()),
|
|
17
|
+
}
|
package/src/events/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { airtableEventsContract } from "./airtable"
|
|
2
2
|
import { apifyEventsContract } from "./apify"
|
|
3
|
+
import { axiomEventsContract } from "./axiom"
|
|
3
4
|
import { asanaEventsContract } from "./asana"
|
|
4
5
|
import { brevoEventsContract } from "./brevo"
|
|
5
6
|
import { convexEventsContract } from "./convex"
|
|
@@ -27,6 +28,7 @@ import { whatsappEventsContract } from "./whatsapp"
|
|
|
27
28
|
export const eventsContract = {
|
|
28
29
|
...airtableEventsContract,
|
|
29
30
|
...apifyEventsContract,
|
|
31
|
+
...axiomEventsContract,
|
|
30
32
|
...asanaEventsContract,
|
|
31
33
|
...brevoEventsContract,
|
|
32
34
|
...convexEventsContract,
|