@automate.ax/api-contract 0.75.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.
Files changed (79) hide show
  1. package/dist/account.d.ts +1 -1
  2. package/dist/account.js +1 -1
  3. package/dist/api-key.d.ts +1 -1
  4. package/dist/api-key.js +1 -1
  5. package/dist/auth.d.ts +1 -1
  6. package/dist/auth.js +1 -1
  7. package/dist/authorization.d.ts +1 -1
  8. package/dist/authorization.js +1 -1
  9. package/dist/automation.d.ts +1 -1
  10. package/dist/automation.js +1 -1
  11. package/dist/deployment.d.ts +1 -1
  12. package/dist/deployment.js +1 -1
  13. package/dist/errors.d.ts +1 -1
  14. package/dist/errors.js +1 -1
  15. package/dist/events/airtable.d.ts +1 -1
  16. package/dist/events/airtable.js +1 -1
  17. package/dist/events/asana.d.ts +1 -1
  18. package/dist/events/asana.js +1 -1
  19. package/dist/events/brevo.d.ts +1 -1
  20. package/dist/events/brevo.js +1 -1
  21. package/dist/events/github.d.ts +1 -1
  22. package/dist/events/github.js +1 -1
  23. package/dist/events/gmail.d.ts +1 -1
  24. package/dist/events/gmail.js +1 -1
  25. package/dist/events/google-calendar.d.ts +1 -1
  26. package/dist/events/google-calendar.js +1 -1
  27. package/dist/events/google-forms.d.ts +1 -1
  28. package/dist/events/google-forms.js +1 -1
  29. package/dist/events/linear.d.ts +1 -1
  30. package/dist/events/linear.js +1 -1
  31. package/dist/events/mailhook.d.ts +1 -1
  32. package/dist/events/mailhook.js +1 -1
  33. package/dist/events/microsoft.d.ts +1 -1
  34. package/dist/events/microsoft.js +1 -1
  35. package/dist/events/resend.d.ts +1 -1
  36. package/dist/events/resend.js +1 -1
  37. package/dist/events/slack.d.ts +1 -1
  38. package/dist/events/slack.js +1 -1
  39. package/dist/events/trello.d.ts +1 -1
  40. package/dist/events/trello.js +1 -1
  41. package/dist/events/vercel.d.ts +1 -1
  42. package/dist/events/vercel.js +1 -1
  43. package/dist/events/whatsapp.d.ts +1 -1
  44. package/dist/events/whatsapp.js +1 -1
  45. package/dist/org.d.ts +1 -1
  46. package/dist/org.js +1 -1
  47. package/dist/project.d.ts +1 -1
  48. package/dist/project.js +1 -1
  49. package/dist/runtime.d.ts +2 -2
  50. package/dist/runtime.js +1 -1
  51. package/dist/schemas.d.ts +1 -1
  52. package/dist/schemas.js +1 -1
  53. package/package.json +17 -6
  54. package/src/account.ts +1 -1
  55. package/src/api-key.ts +1 -1
  56. package/src/auth.ts +1 -1
  57. package/src/authorization.ts +1 -1
  58. package/src/automation.ts +1 -1
  59. package/src/deployment.ts +1 -1
  60. package/src/errors.ts +1 -1
  61. package/src/events/airtable.ts +1 -1
  62. package/src/events/asana.ts +1 -1
  63. package/src/events/brevo.ts +1 -1
  64. package/src/events/github.ts +1 -1
  65. package/src/events/gmail.ts +1 -1
  66. package/src/events/google-calendar.ts +1 -1
  67. package/src/events/google-forms.ts +1 -1
  68. package/src/events/linear.ts +1 -1
  69. package/src/events/mailhook.ts +1 -1
  70. package/src/events/microsoft.ts +1 -1
  71. package/src/events/resend.ts +1 -1
  72. package/src/events/slack.ts +1 -1
  73. package/src/events/trello.ts +1 -1
  74. package/src/events/vercel.ts +1 -1
  75. package/src/events/whatsapp.ts +1 -1
  76. package/src/org.ts +1 -1
  77. package/src/project.ts +1 -1
  78. package/src/runtime.ts +3 -1
  79. package/src/schemas.ts +1 -1
package/dist/account.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const integrationAccountOutputSchema: z.ZodObject<{
3
3
  checkedAt: z.ZodNullable<z.ZodDate>;
4
4
  connectionId: z.ZodString;
package/dist/account.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const integrationAccountOutputSchema = z.object({
4
4
  checkedAt: z.date().nullable(),
5
5
  connectionId: z.string().min(1),
package/dist/api-key.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const organizationApiKeyOutputSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodNullable<z.ZodString>;
package/dist/api-key.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  import { reasonableNameSchema } from "./schemas.js";
4
4
  export const organizationApiKeyOutputSchema = z.object({
5
5
  id: z.string(),
package/dist/auth.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const userOutputSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
package/dist/auth.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const userOutputSchema = z.object({
4
4
  id: z.string(),
5
5
  name: z.string(),
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  type ScopeRequirement = string | {
3
3
  requirements: ScopeRequirement[];
4
4
  type: "and" | "or";
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  const SCOPE_REQUIREMENT_SCHEMA = z.lazy(() => z.union([
4
4
  z.string(),
5
5
  z.strictObject({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const automationExecutionStatusSchema: z.ZodEnum<{
3
3
  failed: "failed";
4
4
  running: "running";
@@ -1,6 +1,6 @@
1
1
  import { encodableSchema } from "@automate.ax/codec";
2
2
  import { oc } from "@orpc/contract";
3
- import { z } from "zod";
3
+ import * as z from "zod";
4
4
  import { automationErrorSchema } from "./errors.js";
5
5
  export const automationExecutionStatusSchema = z.enum([
6
6
  "running",
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  /** SDK compatibility version used to select the immutable runtime image. */
3
3
  export declare const AUTOMATION_SDK_VERSION = "2";
4
4
  export declare const deploymentContract: {
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  /** SDK compatibility version used to select the immutable runtime image. */
4
4
  export const AUTOMATION_SDK_VERSION = "2";
5
5
  const DEPLOYMENT_STATUS_SCHEMA = z.enum([
package/dist/errors.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const AUTOMATION_ERROR_CAUSE_DEPTH = 3;
3
3
  export interface AutomationErrorValue {
4
4
  /** Normalized and depth-limited underlying failure. */
package/dist/errors.js CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  const AUTOMATION_ERROR_BASE_SCHEMA = z.object({
3
3
  code: z.string().min(1),
4
4
  details: z.json().optional(),
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const airtableEventsContract: {
3
3
  airtableEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  base: z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const airtableEventsContract = {
4
4
  airtableEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const asanaEventsContract: {
3
3
  asanaEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  callbackToken: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const asanaEventsContract = {
4
4
  asanaEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const brevoEventsContract: {
3
3
  brevoEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  event: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const brevoEventsContract = {
4
4
  brevoEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const githubEventsContract: {
3
3
  githubEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  installation: z.ZodOptional<z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const githubEventsContract = {
4
4
  githubEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const gmailEventsContract: {
3
3
  gmailPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  message: z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const gmailEventsContract = {
4
4
  gmailPush: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const googleCalendarEventsContract: {
3
3
  googleCalendarPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodVoid, z.ZodVoid, Record<never, never>, Record<never, never>>;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const googleCalendarEventsContract = {
4
4
  googleCalendarPush: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const googleFormsEventsContract: {
3
3
  googleFormsPush: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  message: z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const googleFormsEventsContract = {
4
4
  googleFormsPush: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const linearEventsContract: {
3
3
  linearEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  action: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const linearEventsContract = {
4
4
  linearEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
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
  };
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const mailhookEventsContract = {
4
4
  mailhookEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const microsoftEventsContract: {
3
3
  microsoftGraphNotification: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  sourceId: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const microsoftEventsContract = {
4
4
  microsoftGraphNotification: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const resendEventsContract: {
3
3
  resendEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  sourceId: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const resendEventsContract = {
4
4
  resendEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const slackEventsContract: {
3
3
  slackEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  type: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const slackEventsContract = {
4
4
  slackEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const trelloEventsContract: {
3
3
  trelloEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  sourceId: z.ZodString;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
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 = {
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
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
  };
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const vercelEventsContract = {
4
4
  vercelEvent: oc
5
5
  .route({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const whatsappEventsContract: {
3
3
  whatsappEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
4
  entry: z.ZodArray<z.ZodUnknown>;
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  export const whatsappEventsContract = {
4
4
  whatsappEvent: oc
5
5
  .route({
package/dist/org.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const organizationRoleSchema: z.ZodEnum<{
3
3
  member: "member";
4
4
  admin: "admin";
package/dist/org.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
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
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const projectOutputSchema: z.ZodObject<{
3
3
  activeDeploymentId: z.ZodNullable<z.ZodString>;
4
4
  id: z.ZodString;
package/dist/project.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  import { reasonableNameSchema } from "./schemas.js";
4
4
  const TRANSACTION_OUTPUT_SCHEMA = z.object({
5
5
  txid: z.number().int().nonnegative(),
package/dist/runtime.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { GatewayModelId } from "@ai-sdk/gateway";
2
- import { z } from "zod";
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 { z } from "zod";
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 { z } from "zod";
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 { z } from "zod";
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.75.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
- "./permissions": "./src/permissions.ts"
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.75.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": "concurrently --success all --kill-others-on-fail \"oxlint --type-aware\" \"bun --bun eslint .\"",
50
- "lint:fix": "concurrently --success all --kill-others-on-fail \"oxlint --type-aware --fix --fix-suggestions\" \"bun --bun eslint . --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
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const integrationAccountOutputSchema = z.object({
5
5
  checkedAt: z.date().nullable(),
package/src/api-key.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
  import { reasonableNameSchema } from "./schemas"
4
4
 
5
5
  export const organizationApiKeyOutputSchema = z.object({
package/src/auth.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const userOutputSchema = z.object({
5
5
  id: z.string(),
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  type ScopeRequirement =
5
5
  | string
package/src/automation.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { encodableSchema } from "@automate.ax/codec"
2
2
  import { oc } from "@orpc/contract"
3
- import { z } from "zod"
3
+ import * as z from "zod"
4
4
  import { automationErrorSchema } from "./errors"
5
5
 
6
6
  export const automationExecutionStatusSchema = z.enum([
package/src/deployment.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  /** SDK compatibility version used to select the immutable runtime image. */
5
5
  export const AUTOMATION_SDK_VERSION = "2"
package/src/errors.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from "zod"
1
+ import * as z from "zod"
2
2
 
3
3
  const AUTOMATION_ERROR_BASE_SCHEMA = z.object({
4
4
  code: z.string().min(1),
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const airtableEventsContract = {
5
5
  airtableEvent: oc
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const asanaEventsContract = {
5
5
  asanaEvent: oc
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const brevoEventsContract = {
5
5
  brevoEvent: oc
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const githubEventsContract = {
5
5
  githubEvent: oc
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const gmailEventsContract = {
5
5
  gmailPush: oc
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const googleCalendarEventsContract = {
5
5
  googleCalendarPush: oc
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const googleFormsEventsContract = {
5
5
  googleFormsPush: oc
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const linearEventsContract = {
5
5
  linearEvent: oc
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const mailhookEventsContract = {
5
5
  mailhookEvent: oc
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const microsoftEventsContract = {
5
5
  microsoftGraphNotification: oc
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const resendEventsContract = {
5
5
  resendEvent: oc
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const slackEventsContract = {
5
5
  slackEvent: oc
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  /** Source path shared by Trello's callback probe and event delivery. */
5
5
  const trelloWebhookPathInput = z.looseObject({ sourceId: z.string() })
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const vercelEventsContract = {
5
5
  vercelEvent: oc
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
 
4
4
  export const whatsappEventsContract = {
5
5
  whatsappEvent: oc
package/src/org.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
  import { reasonableNameSchema } from "./schemas"
4
4
 
5
5
  export const organizationRoleSchema = z.enum(["member", "admin", "owner"])
package/src/project.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { oc } from "@orpc/contract"
2
- import { z } from "zod"
2
+ import * as z from "zod"
3
3
  import { reasonableNameSchema } from "./schemas"
4
4
 
5
5
  const TRANSACTION_OUTPUT_SCHEMA = z.object({
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 { z } from "zod"
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
@@ -1,3 +1,3 @@
1
- import { z } from "zod"
1
+ import * as z from "zod"
2
2
 
3
3
  export const reasonableNameSchema = z.string().min(1).max(255).trim()