@automate.ax/api-contract 0.115.6 → 0.116.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/index.d.ts +9 -0
- package/dist/events/index.js +2 -0
- package/dist/events/millionverifier.d.ts +12 -0
- package/dist/events/millionverifier.js +26 -0
- package/dist/index.d.ts +9 -0
- package/package.json +3 -3
- package/src/events/index.ts +2 -0
- package/src/events/millionverifier.ts +31 -0
package/dist/events/index.d.ts
CHANGED
|
@@ -3579,6 +3579,15 @@ export declare const eventsContract: {
|
|
|
3579
3579
|
}, import("zod/v4/core").$loose>>;
|
|
3580
3580
|
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3581
3581
|
mailhookEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3582
|
+
millionVerifierEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3583
|
+
accountId: import("zod").ZodString;
|
|
3584
|
+
reason: import("zod").ZodEnum<{
|
|
3585
|
+
no_credit: "no_credit";
|
|
3586
|
+
low_credit: "low_credit";
|
|
3587
|
+
file_ready: "file_ready";
|
|
3588
|
+
file_delete: "file_delete";
|
|
3589
|
+
}>;
|
|
3590
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3582
3591
|
linearEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3583
3592
|
action: import("zod").ZodString;
|
|
3584
3593
|
organizationId: import("zod").ZodString;
|
package/dist/events/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import { googleSheetsEventsContract } from "./google-sheets.js";
|
|
|
11
11
|
import { gmailEventsContract } from "./gmail.js";
|
|
12
12
|
import { githubEventsContract } from "./github.js";
|
|
13
13
|
import { linearEventsContract } from "./linear.js";
|
|
14
|
+
import { millionVerifierEventsContract } from "./millionverifier.js";
|
|
14
15
|
import { mailhookEventsContract } from "./mailhook.js";
|
|
15
16
|
import { microsoftEventsContract } from "./microsoft.js";
|
|
16
17
|
import { notionEventsContract } from "./notion.js";
|
|
@@ -35,6 +36,7 @@ export const eventsContract = {
|
|
|
35
36
|
...gmailEventsContract,
|
|
36
37
|
...githubEventsContract,
|
|
37
38
|
...linearEventsContract,
|
|
39
|
+
...millionVerifierEventsContract,
|
|
38
40
|
...mailhookEventsContract,
|
|
39
41
|
...microsoftEventsContract,
|
|
40
42
|
...notionEventsContract,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const millionVerifierEventsContract: {
|
|
3
|
+
millionVerifierEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4
|
+
accountId: z.ZodString;
|
|
5
|
+
reason: z.ZodEnum<{
|
|
6
|
+
no_credit: "no_credit";
|
|
7
|
+
low_credit: "low_credit";
|
|
8
|
+
file_ready: "file_ready";
|
|
9
|
+
file_delete: "file_delete";
|
|
10
|
+
}>;
|
|
11
|
+
}, z.core.$loose>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract";
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
export const millionVerifierEventsContract = {
|
|
4
|
+
millionVerifierEvent: oc
|
|
5
|
+
.route({
|
|
6
|
+
method: "POST",
|
|
7
|
+
path: "/events/millionverifier/{accountId}",
|
|
8
|
+
operationId: "receiveMillionVerifierEvent",
|
|
9
|
+
summary: "Receive a MillionVerifier event",
|
|
10
|
+
description: "Receives account-scoped callbacks delivered by MillionVerifier notifications.",
|
|
11
|
+
tags: ["Events"],
|
|
12
|
+
successStatus: 204,
|
|
13
|
+
})
|
|
14
|
+
.input(z.looseObject({
|
|
15
|
+
/** Account capability encoded in the configured webhook URL. */
|
|
16
|
+
accountId: z.string(),
|
|
17
|
+
/** MillionVerifier notification discriminator. */
|
|
18
|
+
reason: z.enum([
|
|
19
|
+
"no_credit",
|
|
20
|
+
"low_credit",
|
|
21
|
+
"file_ready",
|
|
22
|
+
"file_delete",
|
|
23
|
+
]),
|
|
24
|
+
}))
|
|
25
|
+
.output(z.void()),
|
|
26
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -5845,6 +5845,15 @@ export declare const contract: {
|
|
|
5845
5845
|
}, import("zod/v4/core").$loose>>;
|
|
5846
5846
|
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
5847
5847
|
mailhookEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
5848
|
+
millionVerifierEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
5849
|
+
accountId: import("zod").ZodString;
|
|
5850
|
+
reason: import("zod").ZodEnum<{
|
|
5851
|
+
no_credit: "no_credit";
|
|
5852
|
+
low_credit: "low_credit";
|
|
5853
|
+
file_ready: "file_ready";
|
|
5854
|
+
file_delete: "file_delete";
|
|
5855
|
+
}>;
|
|
5856
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
5848
5857
|
linearEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
5849
5858
|
action: import("zod").ZodString;
|
|
5850
5859
|
organizationId: import("zod").ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.116.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.
|
|
35
|
-
"@automate.ax/integration-contracts": "0.
|
|
34
|
+
"@automate.ax/codec": "0.116.0",
|
|
35
|
+
"@automate.ax/integration-contracts": "0.116.0",
|
|
36
36
|
"@orpc/contract": "1.15.0",
|
|
37
37
|
"fast-json-stable-stringify": "^2.1.0",
|
|
38
38
|
"zod": "^4.3.6"
|
package/src/events/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { googleSheetsEventsContract } from "./google-sheets"
|
|
|
11
11
|
import { gmailEventsContract } from "./gmail"
|
|
12
12
|
import { githubEventsContract } from "./github"
|
|
13
13
|
import { linearEventsContract } from "./linear"
|
|
14
|
+
import { millionVerifierEventsContract } from "./millionverifier"
|
|
14
15
|
import { mailhookEventsContract } from "./mailhook"
|
|
15
16
|
import { microsoftEventsContract } from "./microsoft"
|
|
16
17
|
import { notionEventsContract } from "./notion"
|
|
@@ -36,6 +37,7 @@ export const eventsContract = {
|
|
|
36
37
|
...gmailEventsContract,
|
|
37
38
|
...githubEventsContract,
|
|
38
39
|
...linearEventsContract,
|
|
40
|
+
...millionVerifierEventsContract,
|
|
39
41
|
...mailhookEventsContract,
|
|
40
42
|
...microsoftEventsContract,
|
|
41
43
|
...notionEventsContract,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract"
|
|
2
|
+
import * as z from "zod"
|
|
3
|
+
|
|
4
|
+
export const millionVerifierEventsContract = {
|
|
5
|
+
millionVerifierEvent: oc
|
|
6
|
+
.route({
|
|
7
|
+
method: "POST",
|
|
8
|
+
path: "/events/millionverifier/{accountId}",
|
|
9
|
+
operationId: "receiveMillionVerifierEvent",
|
|
10
|
+
summary: "Receive a MillionVerifier event",
|
|
11
|
+
description:
|
|
12
|
+
"Receives account-scoped callbacks delivered by MillionVerifier notifications.",
|
|
13
|
+
tags: ["Events"],
|
|
14
|
+
successStatus: 204,
|
|
15
|
+
})
|
|
16
|
+
.input(
|
|
17
|
+
z.looseObject({
|
|
18
|
+
/** Account capability encoded in the configured webhook URL. */
|
|
19
|
+
accountId: z.string(),
|
|
20
|
+
|
|
21
|
+
/** MillionVerifier notification discriminator. */
|
|
22
|
+
reason: z.enum([
|
|
23
|
+
"no_credit",
|
|
24
|
+
"low_credit",
|
|
25
|
+
"file_ready",
|
|
26
|
+
"file_delete",
|
|
27
|
+
]),
|
|
28
|
+
}),
|
|
29
|
+
)
|
|
30
|
+
.output(z.void()),
|
|
31
|
+
}
|