@automate.ax/api-contract 0.6.0 → 0.7.1

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.js CHANGED
@@ -7,19 +7,67 @@ import { orgContract } from "./org.js";
7
7
  import { projectContract } from "./project.js";
8
8
  import { runtimeContract } from "./runtime.js";
9
9
  export { AUTOMATION_SDK_VERSION, deploymentTriggerInfoSchema, } from "./deployment.js";
10
+ export { runtimeContract } from "./runtime.js";
10
11
  export { createdOrganizationApiKeyOutputSchema, organizationApiKeyOutputSchema, } from "./api-key.js";
11
12
  export { integrationServiceManifestSchema, } from "./authorization.js";
12
13
  export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationSummaryOutputSchema, publicOrganizationOutputSchema, } from "./org.js";
13
14
  export { projectOutputSchema, projectWithOrganizationOutputSchema, } from "./project.js";
14
15
  export { reasonableNameSchema } from "./schemas.js";
15
16
  export { userOutputSchema } from "./auth.js";
16
- export const contract = {
17
+ /** Procedures exposed by the public Node client and OpenAPI document. */
18
+ export const publicContract = {
17
19
  apiKey: apiKeyContract,
18
- authorization: authorizationContract,
20
+ org: {
21
+ create: orgContract.create,
22
+ delete: orgContract.delete,
23
+ get: orgContract.get,
24
+ invite: orgContract.invite,
25
+ leave: orgContract.leave,
26
+ list: orgContract.list,
27
+ remove: orgContract.remove,
28
+ update: orgContract.update,
29
+ },
30
+ project: {
31
+ create: projectContract.create,
32
+ delete: projectContract.delete,
33
+ get: projectContract.get,
34
+ list: projectContract.list,
35
+ update: projectContract.update,
36
+ },
37
+ session: {
38
+ me: authContract.me,
39
+ },
40
+ };
41
+ /** Procedures used by first-party control-plane clients. */
42
+ export const firstPartyContract = {
43
+ ...publicContract,
44
+ authorization: {
45
+ beginConnection: authorizationContract.beginConnection,
46
+ get: authorizationContract.get,
47
+ selectAccount: authorizationContract.selectAccount,
48
+ submitCredentials: authorizationContract.submitCredentials,
49
+ },
19
50
  deployment: deploymentContract,
51
+ org: {
52
+ ...publicContract.org,
53
+ canInvite: orgContract.canInvite,
54
+ },
55
+ project: {
56
+ ...publicContract.project,
57
+ canCreate: projectContract.canCreate,
58
+ },
59
+ session: {
60
+ ...publicContract.session,
61
+ linkDeviceSession: authContract.linkDeviceSession,
62
+ },
63
+ };
64
+ /** Complete contract implemented by the API service. */
65
+ export const contract = {
66
+ ...firstPartyContract,
67
+ authorization: {
68
+ ...firstPartyContract.authorization,
69
+ callback: authorizationContract.callback,
70
+ },
20
71
  events: eventsContract,
21
- org: orgContract,
22
- project: projectContract,
23
72
  runtime: runtimeContract,
24
- session: authContract,
25
73
  };
package/dist/runtime.d.ts CHANGED
@@ -5,6 +5,7 @@ export declare const runtimeContract: {
5
5
  actionDependencyIds: z.ZodArray<z.ZodString>;
6
6
  description: z.ZodNullable<z.ZodString>;
7
7
  eventDependencyIds: z.ZodArray<z.ZodString>;
8
+ inputHash: z.ZodString;
8
9
  name: z.ZodString;
9
10
  slot: z.ZodNumber;
10
11
  }, z.core.$strip>>>;
@@ -32,7 +33,11 @@ export declare const runtimeContract: {
32
33
  nextBatch: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
33
34
  context: z.ZodObject<{
34
35
  actionOutputs: z.ZodArray<z.ZodObject<{
36
+ actionDependencyIds: z.ZodArray<z.ZodString>;
35
37
  actionInvocationId: z.ZodString;
38
+ eventDependencyIds: z.ZodArray<z.ZodString>;
39
+ inputHash: z.ZodString;
40
+ name: z.ZodString;
36
41
  slot: z.ZodNumber;
37
42
  }, z.core.$strip>>;
38
43
  contextId: z.ZodString;
package/dist/runtime.js CHANGED
@@ -9,6 +9,7 @@ export const runtimeContract = {
9
9
  actionDependencyIds: z.string().array(),
10
10
  description: z.string().nullable(),
11
11
  eventDependencyIds: z.string().array(),
12
+ inputHash: z.string(),
12
13
  name: z.string(),
13
14
  slot: z.number().int().nonnegative(),
14
15
  })
@@ -46,7 +47,11 @@ export const runtimeContract = {
46
47
  context: z.object({
47
48
  actionOutputs: z
48
49
  .object({
50
+ actionDependencyIds: z.string().array(),
49
51
  actionInvocationId: z.string(),
52
+ eventDependencyIds: z.string().array(),
53
+ inputHash: z.string(),
54
+ name: z.string(),
50
55
  slot: z.number().int(),
51
56
  })
52
57
  .array(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/api-contract",
3
- "version": "0.6.0",
3
+ "version": "0.7.1",
4
4
  "description": "Public oRPC contract for the Automate.ax API.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  "cjs": false
24
24
  },
25
25
  "dependencies": {
26
- "@automate.ax/codec": "0.6.0",
26
+ "@automate.ax/codec": "0.7.1",
27
27
  "@orpc/contract": "1.13.14",
28
28
  "zod": "^4.3.6"
29
29
  },