@automate.ax/api-contract 0.22.1 → 0.22.3

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.
@@ -21,6 +21,7 @@ export declare const deploymentContract: {
21
21
  upsert: "upsert";
22
22
  }>;
23
23
  projectId: z.ZodString;
24
+ rebindAccounts: z.ZodDefault<z.ZodBoolean>;
24
25
  }, z.core.$strip>, z.ZodObject<{
25
26
  id: z.ZodString;
26
27
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
@@ -36,6 +36,7 @@ export const deploymentContract = {
36
36
  }),
37
37
  mode: z.enum(["reconcile", "upsert"]),
38
38
  projectId: z.string(),
39
+ rebindAccounts: z.boolean().default(false),
39
40
  }))
40
41
  .output(z.object({ id: z.string() })),
41
42
  get: oc
package/dist/index.d.ts CHANGED
@@ -379,6 +379,7 @@ export declare const firstPartyContract: {
379
379
  upsert: "upsert";
380
380
  }>;
381
381
  projectId: import("zod").ZodString;
382
+ rebindAccounts: import("zod").ZodDefault<import("zod").ZodBoolean>;
382
383
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
383
384
  id: import("zod").ZodString;
384
385
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
@@ -973,7 +974,7 @@ export declare const contract: {
973
974
  sendEmail: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
974
975
  subject: import("zod").ZodString;
975
976
  text: import("zod").ZodString;
976
- to: import("zod").ZodUnion<readonly [import("zod").ZodEmail, import("zod").ZodLiteral<"*">]>;
977
+ to: import("zod").ZodDefault<import("zod").ZodUnion<readonly [import("zod").ZodEmail, import("zod").ZodLiteral<"*">]>>;
977
978
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
978
979
  id: import("zod").ZodNullable<import("zod").ZodString>;
979
980
  }, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
@@ -989,6 +990,7 @@ export declare const contract: {
989
990
  upsert: "upsert";
990
991
  }>;
991
992
  projectId: import("zod").ZodString;
993
+ rebindAccounts: import("zod").ZodDefault<import("zod").ZodBoolean>;
992
994
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
993
995
  id: import("zod").ZodString;
994
996
  }, 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.3",
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.3",
30
30
  "@orpc/contract": "1.13.14",
31
31
  "zod": "^4.3.6"
32
32
  },
package/src/deployment.ts CHANGED
@@ -43,6 +43,7 @@ export const deploymentContract = {
43
43
  }),
44
44
  mode: z.enum(["reconcile", "upsert"]),
45
45
  projectId: z.string(),
46
+ rebindAccounts: z.boolean().default(false),
46
47
  }),
47
48
  )
48
49
  .output(z.object({ id: z.string() })),
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(