@automate.ax/api-contract 0.19.1 → 0.20.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.
@@ -47,6 +47,10 @@ export declare const deploymentContract: {
47
47
  maxAttempts: z.ZodNumber;
48
48
  nextRunAt: z.ZodDate;
49
49
  }, z.core.$strip>>;
50
+ planningProgress: z.ZodObject<{
51
+ completed: z.ZodNumber;
52
+ total: z.ZodNumber;
53
+ }, z.core.$strip>;
50
54
  project: z.ZodObject<{
51
55
  id: z.ZodString;
52
56
  name: z.ZodString;
@@ -21,7 +21,6 @@ export const deploymentContract = {
21
21
  identityKey: z.string().min(1),
22
22
  })
23
23
  .array()
24
- .min(1, "Deployment must include at least one automation.")
25
24
  .superRefine((manifest, context) => {
26
25
  const identityKeys = new Set();
27
26
  for (const [index, entry] of manifest.entries()) {
@@ -61,6 +60,10 @@ export const deploymentContract = {
61
60
  nextRunAt: z.date(),
62
61
  })
63
62
  .nullable(),
63
+ planningProgress: z.object({
64
+ completed: z.number().int().nonnegative(),
65
+ total: z.number().int().nonnegative(),
66
+ }),
64
67
  project: z.object({
65
68
  id: z.string(),
66
69
  name: z.string(),
package/dist/index.d.ts CHANGED
@@ -392,6 +392,10 @@ export declare const firstPartyContract: {
392
392
  maxAttempts: import("zod").ZodNumber;
393
393
  nextRunAt: import("zod").ZodDate;
394
394
  }, import("zod/v4/core").$strip>>;
395
+ planningProgress: import("zod").ZodObject<{
396
+ completed: import("zod").ZodNumber;
397
+ total: import("zod").ZodNumber;
398
+ }, import("zod/v4/core").$strip>;
395
399
  project: import("zod").ZodObject<{
396
400
  id: import("zod").ZodString;
397
401
  name: import("zod").ZodString;
@@ -982,6 +986,10 @@ export declare const contract: {
982
986
  maxAttempts: import("zod").ZodNumber;
983
987
  nextRunAt: import("zod").ZodDate;
984
988
  }, import("zod/v4/core").$strip>>;
989
+ planningProgress: import("zod").ZodObject<{
990
+ completed: import("zod").ZodNumber;
991
+ total: import("zod").ZodNumber;
992
+ }, import("zod/v4/core").$strip>;
985
993
  project: import("zod").ZodObject<{
986
994
  id: import("zod").ZodString;
987
995
  name: import("zod").ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/api-contract",
3
- "version": "0.19.1",
3
+ "version": "0.20.0",
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.19.1",
29
+ "@automate.ax/codec": "0.20.0",
30
30
  "@orpc/contract": "1.13.14",
31
31
  "zod": "^4.3.6"
32
32
  },
package/src/deployment.ts CHANGED
@@ -27,7 +27,6 @@ export const deploymentContract = {
27
27
  identityKey: z.string().min(1),
28
28
  })
29
29
  .array()
30
- .min(1, "Deployment must include at least one automation.")
31
30
  .superRefine((manifest, context) => {
32
31
  const identityKeys = new Set<string>()
33
32
 
@@ -72,6 +71,10 @@ export const deploymentContract = {
72
71
  nextRunAt: z.date(),
73
72
  })
74
73
  .nullable(),
74
+ planningProgress: z.object({
75
+ completed: z.number().int().nonnegative(),
76
+ total: z.number().int().nonnegative(),
77
+ }),
75
78
  project: z.object({
76
79
  id: z.string(),
77
80
  name: z.string(),