@automate.ax/api-contract 0.22.1 → 0.22.2

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/index.d.ts CHANGED
@@ -973,7 +973,7 @@ export declare const contract: {
973
973
  sendEmail: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
974
974
  subject: import("zod").ZodString;
975
975
  text: import("zod").ZodString;
976
- to: import("zod").ZodUnion<readonly [import("zod").ZodEmail, import("zod").ZodLiteral<"*">]>;
976
+ to: import("zod").ZodDefault<import("zod").ZodUnion<readonly [import("zod").ZodEmail, import("zod").ZodLiteral<"*">]>>;
977
977
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
978
978
  id: import("zod").ZodNullable<import("zod").ZodString>;
979
979
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
package/dist/runtime.d.ts CHANGED
@@ -92,7 +92,7 @@ export declare const runtimeContract: {
92
92
  sendEmail: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
93
93
  subject: z.ZodString;
94
94
  text: z.ZodString;
95
- to: z.ZodUnion<readonly [z.ZodEmail, z.ZodLiteral<"*">]>;
95
+ to: z.ZodDefault<z.ZodUnion<readonly [z.ZodEmail, z.ZodLiteral<"*">]>>;
96
96
  }, z.core.$strip>, z.ZodObject<{
97
97
  id: z.ZodNullable<z.ZodString>;
98
98
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
package/dist/runtime.js CHANGED
@@ -115,7 +115,7 @@ export const runtimeContract = {
115
115
  .input(z.object({
116
116
  subject: z.string().min(1),
117
117
  text: z.string().min(1),
118
- to: z.union([z.email(), z.literal("*")]),
118
+ to: z.union([z.email(), z.literal("*")]).default("*"),
119
119
  }))
120
120
  .output(z.object({
121
121
  id: z.string().nullable(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/api-contract",
3
- "version": "0.22.1",
3
+ "version": "0.22.2",
4
4
  "description": "Public oRPC contract for the Automate.ax API.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "@automate.ax/codec": "0.22.1",
29
+ "@automate.ax/codec": "0.22.2",
30
30
  "@orpc/contract": "1.13.14",
31
31
  "zod": "^4.3.6"
32
32
  },
package/src/runtime.ts CHANGED
@@ -133,7 +133,7 @@ export const runtimeContract = {
133
133
  z.object({
134
134
  subject: z.string().min(1),
135
135
  text: z.string().min(1),
136
- to: z.union([z.email(), z.literal("*")]),
136
+ to: z.union([z.email(), z.literal("*")]).default("*"),
137
137
  }),
138
138
  )
139
139
  .output(