@automate.ax/api-contract 0.7.0 → 0.8.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/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # `@automate.ax/api-contract`
2
2
 
3
- Public oRPC contract shared by the Automate.ax API and typed client.
3
+ Shared oRPC procedure contracts for the Automate.ax API. The public contract
4
+ used by `@automate.ax/client` excludes first-party and runtime procedures.
4
5
 
5
6
  Most applications should install `@automate.ax/client` instead.
@@ -11,10 +11,6 @@ export declare const deploymentTriggerInfoSchema: z.ZodObject<{
11
11
  }, z.core.$strip>;
12
12
  export type DeploymentTriggerInfo = z.infer<typeof deploymentTriggerInfoSchema>;
13
13
  export declare const deploymentContract: {
14
- cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
15
- deploymentId: z.ZodString;
16
- projectId: z.ZodString;
17
- }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
18
14
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
19
15
  artifact: z.ZodCustom<Blob, Blob>;
20
16
  manifest: z.ZodArray<z.ZodObject<{
@@ -63,7 +59,6 @@ export declare const deploymentContract: {
63
59
  publishing: "publishing";
64
60
  succeeded: "succeeded";
65
61
  failed: "failed";
66
- cancelled: "cancelled";
67
62
  }>;
68
63
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
69
64
  };
@@ -13,12 +13,6 @@ export const deploymentTriggerInfoSchema = z.object({
13
13
  type: z.string(),
14
14
  });
15
15
  export const deploymentContract = {
16
- cancel: oc
17
- .input(z.object({
18
- deploymentId: z.string(),
19
- projectId: z.string(),
20
- }))
21
- .output(z.void()),
22
16
  create: oc
23
17
  .input(z.object({
24
18
  artifact: z.instanceof(Blob),
@@ -90,7 +84,6 @@ export const deploymentContract = {
90
84
  "publishing",
91
85
  "succeeded",
92
86
  "failed",
93
- "cancelled",
94
87
  ]),
95
88
  })),
96
89
  };