@automate.ax/api-contract 0.74.0 → 0.76.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/account.d.ts +1 -1
- package/dist/account.js +1 -1
- package/dist/api-key.d.ts +1 -1
- package/dist/api-key.js +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +1 -1
- package/dist/authorization.d.ts +1 -1
- package/dist/authorization.js +1 -1
- package/dist/automation.d.ts +1 -1
- package/dist/automation.js +1 -1
- package/dist/deployment.d.ts +1 -1
- package/dist/deployment.js +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +1 -1
- package/dist/events/airtable.d.ts +1 -1
- package/dist/events/airtable.js +1 -1
- package/dist/events/asana.d.ts +1 -1
- package/dist/events/asana.js +1 -1
- package/dist/events/brevo.d.ts +1 -1
- package/dist/events/brevo.js +1 -1
- package/dist/events/github.d.ts +1 -1
- package/dist/events/github.js +1 -1
- package/dist/events/gmail.d.ts +1 -1
- package/dist/events/gmail.js +1 -1
- package/dist/events/google-calendar.d.ts +1 -1
- package/dist/events/google-calendar.js +1 -1
- package/dist/events/google-forms.d.ts +1 -1
- package/dist/events/google-forms.js +1 -1
- package/dist/events/linear.d.ts +1 -1
- package/dist/events/linear.js +1 -1
- package/dist/events/mailhook.d.ts +1 -1
- package/dist/events/mailhook.js +1 -1
- package/dist/events/microsoft.d.ts +1 -1
- package/dist/events/microsoft.js +1 -1
- package/dist/events/resend.d.ts +1 -1
- package/dist/events/resend.js +1 -1
- package/dist/events/slack.d.ts +1 -1
- package/dist/events/slack.js +1 -1
- package/dist/events/trello.d.ts +1 -1
- package/dist/events/trello.js +1 -1
- package/dist/events/vercel.d.ts +1 -1
- package/dist/events/vercel.js +1 -1
- package/dist/events/whatsapp.d.ts +1 -1
- package/dist/events/whatsapp.js +1 -1
- package/dist/org.d.ts +1 -1
- package/dist/org.js +1 -1
- package/dist/project.d.ts +1 -1
- package/dist/project.js +1 -1
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.js +1 -1
- package/package.json +17 -6
- package/src/account.ts +1 -1
- package/src/api-key.ts +1 -1
- package/src/auth.ts +1 -1
- package/src/authorization.ts +1 -1
- package/src/automation.ts +1 -1
- package/src/deployment.ts +1 -1
- package/src/errors.ts +1 -1
- package/src/events/airtable.ts +1 -1
- package/src/events/asana.ts +1 -1
- package/src/events/brevo.ts +1 -1
- package/src/events/github.ts +1 -1
- package/src/events/gmail.ts +1 -1
- package/src/events/google-calendar.ts +1 -1
- package/src/events/google-forms.ts +1 -1
- package/src/events/linear.ts +1 -1
- package/src/events/mailhook.ts +1 -1
- package/src/events/microsoft.ts +1 -1
- package/src/events/resend.ts +1 -1
- package/src/events/slack.ts +1 -1
- package/src/events/trello.ts +1 -1
- package/src/events/vercel.ts +1 -1
- package/src/events/whatsapp.ts +1 -1
- package/src/org.ts +1 -1
- package/src/project.ts +1 -1
- package/src/runtime.ts +3 -1
- package/src/schemas.ts +1 -1
package/dist/account.d.ts
CHANGED
package/dist/account.js
CHANGED
package/dist/api-key.d.ts
CHANGED
package/dist/api-key.js
CHANGED
package/dist/auth.d.ts
CHANGED
package/dist/auth.js
CHANGED
package/dist/authorization.d.ts
CHANGED
package/dist/authorization.js
CHANGED
package/dist/automation.d.ts
CHANGED
package/dist/automation.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { encodableSchema } from "@automate.ax/codec";
|
|
2
2
|
import { oc } from "@orpc/contract";
|
|
3
|
-
import
|
|
3
|
+
import * as z from "zod";
|
|
4
4
|
import { automationErrorSchema } from "./errors.js";
|
|
5
5
|
export const automationExecutionStatusSchema = z.enum([
|
|
6
6
|
"running",
|
package/dist/deployment.d.ts
CHANGED
package/dist/deployment.js
CHANGED
package/dist/errors.d.ts
CHANGED
package/dist/errors.js
CHANGED
package/dist/events/airtable.js
CHANGED
package/dist/events/asana.d.ts
CHANGED
package/dist/events/asana.js
CHANGED
package/dist/events/brevo.d.ts
CHANGED
package/dist/events/brevo.js
CHANGED
package/dist/events/github.d.ts
CHANGED
package/dist/events/github.js
CHANGED
package/dist/events/gmail.d.ts
CHANGED
package/dist/events/gmail.js
CHANGED
package/dist/events/linear.d.ts
CHANGED
package/dist/events/linear.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod";
|
|
2
2
|
export declare const mailhookEventsContract: {
|
|
3
3
|
mailhookEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{}, z.core.$loose>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
4
4
|
};
|
package/dist/events/mailhook.js
CHANGED
package/dist/events/microsoft.js
CHANGED
package/dist/events/resend.d.ts
CHANGED
package/dist/events/resend.js
CHANGED
package/dist/events/slack.d.ts
CHANGED
package/dist/events/slack.js
CHANGED
package/dist/events/trello.d.ts
CHANGED
package/dist/events/trello.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
|
-
import
|
|
2
|
+
import * as z from "zod";
|
|
3
3
|
/** Source path shared by Trello's callback probe and event delivery. */
|
|
4
4
|
const trelloWebhookPathInput = z.looseObject({ sourceId: z.string() });
|
|
5
5
|
export const trelloEventsContract = {
|
package/dist/events/vercel.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod";
|
|
2
2
|
export declare const vercelEventsContract: {
|
|
3
3
|
vercelEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{}, z.core.$loose>, z.ZodObject<{}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
4
4
|
};
|
package/dist/events/vercel.js
CHANGED
package/dist/events/whatsapp.js
CHANGED
package/dist/org.d.ts
CHANGED
package/dist/org.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
|
-
import
|
|
2
|
+
import * as z from "zod";
|
|
3
3
|
import { reasonableNameSchema } from "./schemas.js";
|
|
4
4
|
export const organizationRoleSchema = z.enum(["member", "admin", "owner"]);
|
|
5
5
|
export const publicOrganizationOutputSchema = z.object({
|
package/dist/project.d.ts
CHANGED
package/dist/project.js
CHANGED
package/dist/runtime.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { GatewayModelId } from "@ai-sdk/gateway";
|
|
2
|
-
import
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
export type { GatewayModelId } from "@ai-sdk/gateway";
|
|
3
4
|
/** Default model used by the platform Vercel AI Gateway account. */
|
|
4
5
|
export declare const DEFAULT_GATEWAY_MODEL_ID = "openai/gpt-4.1-nano";
|
|
5
6
|
export declare const AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT = "default";
|
|
@@ -1005,4 +1006,3 @@ export declare const runtimeContract: {
|
|
|
1005
1006
|
id: z.ZodNullable<z.ZodString>;
|
|
1006
1007
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1007
1008
|
};
|
|
1008
|
-
export {};
|
package/dist/runtime.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { encodableSchema } from "@automate.ax/codec";
|
|
2
2
|
import { oc } from "@orpc/contract";
|
|
3
3
|
import stableStringify from "fast-json-stable-stringify";
|
|
4
|
-
import
|
|
4
|
+
import * as z from "zod";
|
|
5
5
|
import { automationErrorSchema } from "./errors.js";
|
|
6
6
|
/** Default model used by the platform Vercel AI Gateway account. */
|
|
7
7
|
export const DEFAULT_GATEWAY_MODEL_ID = "openai/gpt-4.1-nano";
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod";
|
|
2
2
|
export declare const reasonableNameSchema: z.ZodString;
|
package/dist/schemas.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod";
|
|
2
2
|
export const reasonableNameSchema = z.string().min(1).max(255).trim();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.76.0",
|
|
4
4
|
"description": "Public oRPC contract for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -19,7 +19,9 @@
|
|
|
19
19
|
"zshy": {
|
|
20
20
|
"exports": {
|
|
21
21
|
".": "./src/index.ts",
|
|
22
|
-
"./
|
|
22
|
+
"./errors": "./src/errors.ts",
|
|
23
|
+
"./permissions": "./src/permissions.ts",
|
|
24
|
+
"./runtime": "./src/runtime.ts"
|
|
23
25
|
},
|
|
24
26
|
"cjs": false,
|
|
25
27
|
"conditions": {
|
|
@@ -28,7 +30,7 @@
|
|
|
28
30
|
},
|
|
29
31
|
"dependencies": {
|
|
30
32
|
"@ai-sdk/gateway": "^4.0.46",
|
|
31
|
-
"@automate.ax/codec": "0.
|
|
33
|
+
"@automate.ax/codec": "0.76.0",
|
|
32
34
|
"@orpc/contract": "1.15.0",
|
|
33
35
|
"fast-json-stable-stringify": "^2.1.0",
|
|
34
36
|
"zod": "^4.3.6"
|
|
@@ -38,7 +40,6 @@
|
|
|
38
40
|
"@types/bun": "latest",
|
|
39
41
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
40
42
|
"@zachsents/oxlint-config": "^0.4.1",
|
|
41
|
-
"concurrently": "^10.0.4",
|
|
42
43
|
"eslint": "^9.39.5",
|
|
43
44
|
"oxlint": "^1.76.0",
|
|
44
45
|
"oxlint-tsgolint": "^7.0.2001",
|
|
@@ -46,8 +47,8 @@
|
|
|
46
47
|
},
|
|
47
48
|
"scripts": {
|
|
48
49
|
"typecheck": "tsc --noEmit",
|
|
49
|
-
"lint": "
|
|
50
|
-
"lint:fix": "
|
|
50
|
+
"lint": "oxlint --type-aware --threads=2 && bun --bun eslint . --cache --cache-strategy content",
|
|
51
|
+
"lint:fix": "oxlint --type-aware --threads=2 --fix --fix-suggestions && bun --bun eslint . --fix --cache --cache-strategy content",
|
|
51
52
|
"check": "bun run typecheck && bun run lint",
|
|
52
53
|
"build": "zshy",
|
|
53
54
|
"prepublishOnly": "bun run check && bun run build"
|
|
@@ -70,10 +71,20 @@
|
|
|
70
71
|
"types": "./dist/index.d.ts",
|
|
71
72
|
"default": "./dist/index.js"
|
|
72
73
|
},
|
|
74
|
+
"./errors": {
|
|
75
|
+
"bun": "./src/errors.ts",
|
|
76
|
+
"types": "./dist/errors.d.ts",
|
|
77
|
+
"default": "./dist/errors.js"
|
|
78
|
+
},
|
|
73
79
|
"./permissions": {
|
|
74
80
|
"bun": "./src/permissions.ts",
|
|
75
81
|
"types": "./dist/permissions.d.ts",
|
|
76
82
|
"default": "./dist/permissions.js"
|
|
83
|
+
},
|
|
84
|
+
"./runtime": {
|
|
85
|
+
"bun": "./src/runtime.ts",
|
|
86
|
+
"types": "./dist/runtime.d.ts",
|
|
87
|
+
"default": "./dist/runtime.js"
|
|
77
88
|
}
|
|
78
89
|
}
|
|
79
90
|
}
|
package/src/account.ts
CHANGED
package/src/api-key.ts
CHANGED
package/src/auth.ts
CHANGED
package/src/authorization.ts
CHANGED
package/src/automation.ts
CHANGED
package/src/deployment.ts
CHANGED
package/src/errors.ts
CHANGED
package/src/events/airtable.ts
CHANGED
package/src/events/asana.ts
CHANGED
package/src/events/brevo.ts
CHANGED
package/src/events/github.ts
CHANGED
package/src/events/gmail.ts
CHANGED
package/src/events/linear.ts
CHANGED
package/src/events/mailhook.ts
CHANGED
package/src/events/microsoft.ts
CHANGED
package/src/events/resend.ts
CHANGED
package/src/events/slack.ts
CHANGED
package/src/events/trello.ts
CHANGED
package/src/events/vercel.ts
CHANGED
package/src/events/whatsapp.ts
CHANGED
package/src/org.ts
CHANGED
package/src/project.ts
CHANGED
package/src/runtime.ts
CHANGED
|
@@ -2,9 +2,11 @@ import { encodableSchema } from "@automate.ax/codec"
|
|
|
2
2
|
import type { GatewayModelId } from "@ai-sdk/gateway"
|
|
3
3
|
import { oc } from "@orpc/contract"
|
|
4
4
|
import stableStringify from "fast-json-stable-stringify"
|
|
5
|
-
import
|
|
5
|
+
import * as z from "zod"
|
|
6
6
|
import { automationErrorSchema } from "./errors"
|
|
7
7
|
|
|
8
|
+
export type { GatewayModelId } from "@ai-sdk/gateway"
|
|
9
|
+
|
|
8
10
|
/** Default model used by the platform Vercel AI Gateway account. */
|
|
9
11
|
export const DEFAULT_GATEWAY_MODEL_ID =
|
|
10
12
|
"openai/gpt-4.1-nano" satisfies GatewayModelId
|
package/src/schemas.ts
CHANGED