@automate.ax/api-contract 0.161.0 → 0.163.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/org.d.ts CHANGED
@@ -213,9 +213,7 @@ export declare const orgContract: {
213
213
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
214
214
  delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
215
215
  organizationId: z.ZodString;
216
- }, z.core.$strip>, z.ZodObject<{
217
- txid: z.ZodNumber;
218
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
216
+ }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
219
217
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
220
218
  organizationId: z.ZodString;
221
219
  }, z.core.$strip>, z.ZodObject<{
package/dist/org.js CHANGED
@@ -120,7 +120,7 @@ export const orgContract = {
120
120
  tags: ["Organizations"],
121
121
  })
122
122
  .input(z.object({ organizationId: z.string() }))
123
- .output(z.object({ txid: z.number().int().nonnegative() })),
123
+ .output(z.void()),
124
124
  get: oc
125
125
  .route({
126
126
  method: "GET",
package/dist/project.d.ts CHANGED
@@ -40,7 +40,6 @@ export declare const projectContract: {
40
40
  id: z.ZodString;
41
41
  identityKey: z.ZodString;
42
42
  }, z.core.$strip>>;
43
- txid: z.ZodNumber;
44
43
  }, z.core.$strip>, Record<never, never>, Record<never, never>>;
45
44
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodPrefault<z.ZodObject<{
46
45
  cursor: z.ZodOptional<z.ZodString>;
@@ -92,12 +91,8 @@ export declare const projectContract: {
92
91
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
93
92
  projectId: z.ZodString;
94
93
  name: z.ZodString;
95
- }, z.core.$strip>, z.ZodObject<{
96
- txid: z.ZodNumber;
97
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
94
+ }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
98
95
  delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
99
96
  projectId: z.ZodString;
100
- }, z.core.$strip>, z.ZodObject<{
101
- txid: z.ZodNumber;
102
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
97
+ }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
103
98
  };
package/dist/project.js CHANGED
@@ -1,9 +1,6 @@
1
1
  import { oc } from "@orpc/contract";
2
2
  import * as z from "zod";
3
3
  import { cursorPageOutputSchema, cursorPaginationInputSchema, reasonableNameSchema, } from "./schemas.js";
4
- const TRANSACTION_OUTPUT_SCHEMA = z.object({
5
- txid: z.number().int().nonnegative(),
6
- });
7
4
  export const projectOutputSchema = z.object({
8
5
  activeDeploymentId: z.string().nullable(),
9
6
  id: z.string(),
@@ -43,7 +40,7 @@ export const projectContract = {
43
40
  organizationId: z.string(),
44
41
  name: reasonableNameSchema,
45
42
  }))
46
- .output(projectOutputSchema.extend(TRANSACTION_OUTPUT_SCHEMA.shape)),
43
+ .output(projectOutputSchema),
47
44
  list: oc
48
45
  .route({
49
46
  method: "GET",
@@ -84,7 +81,7 @@ export const projectContract = {
84
81
  projectId: z.string(),
85
82
  name: reasonableNameSchema,
86
83
  }))
87
- .output(TRANSACTION_OUTPUT_SCHEMA),
84
+ .output(z.void()),
88
85
  delete: oc
89
86
  .route({
90
87
  method: "DELETE",
@@ -95,5 +92,5 @@ export const projectContract = {
95
92
  tags: ["Projects"],
96
93
  })
97
94
  .input(z.object({ projectId: z.string() }))
98
- .output(TRANSACTION_OUTPUT_SCHEMA),
95
+ .output(z.void()),
99
96
  };
package/package.json CHANGED
@@ -1,17 +1,9 @@
1
1
  {
2
2
  "name": "@automate.ax/api-contract",
3
- "version": "0.161.0",
3
+ "version": "0.163.1",
4
4
  "description": "Public oRPC contract for the Automate.ax API.",
5
5
  "license": "MIT",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/zachsents/automate.ax.git",
9
- "directory": "packages/api-contract"
10
- },
11
- "homepage": "https://automate.ax",
12
- "bugs": {
13
- "url": "https://github.com/zachsents/automate.ax/issues"
14
- },
6
+ "homepage": "https://docs.automate.ax",
15
7
  "type": "module",
16
8
  "publishConfig": {
17
9
  "access": "public"
@@ -31,9 +23,9 @@
31
23
  },
32
24
  "dependencies": {
33
25
  "@ai-sdk/gateway": "4.0.87",
34
- "@automate.ax/catalog": "0.161.0",
35
- "@automate.ax/codec": "0.161.0",
36
- "@automate.ax/integration-contracts": "0.161.0",
26
+ "@automate.ax/catalog": "0.163.1",
27
+ "@automate.ax/codec": "0.163.1",
28
+ "@automate.ax/integration-contracts": "0.163.1",
37
29
  "@orpc/contract": "1.15.0",
38
30
  "fast-json-stable-stringify": "^2.1.0",
39
31
  "zod": "^4.3.6"
package/src/account.ts CHANGED
@@ -196,7 +196,7 @@ export const accountContract = {
196
196
  tags: ["Integration Accounts"],
197
197
  })
198
198
  .input(z.object({ organizationId: z.string(), token: z.uuid() }))
199
- .output(z.object({ accountId: z.string(), txid: z.number().int() })),
199
+ .output(z.object({ accountId: z.string() })),
200
200
  beginConnection: oc
201
201
  .route({
202
202
  description: "Starts an OAuth-style organization account connection.",
@@ -252,7 +252,7 @@ export const accountContract = {
252
252
  tags: ["Integration Accounts"],
253
253
  })
254
254
  .input(organizationAccountInputSchema)
255
- .output(z.object({ txid: z.number().int().nonnegative() })),
255
+ .output(z.void()),
256
256
  get: oc
257
257
  .route({
258
258
  description: "Returns one integration account linked to an organization.",
@@ -318,7 +318,6 @@ export const accountContract = {
318
318
  .output(
319
319
  z.object({
320
320
  revocation: integrationAccountRevocationOutputSchema,
321
- txid: z.number().int().nonnegative(),
322
321
  }),
323
322
  ),
324
323
  submitCredentials: oc
@@ -110,7 +110,7 @@ export const authorizationContract = {
110
110
  tags: ["Deployments"],
111
111
  })
112
112
  .input(z.object({ deploymentId: z.string() }))
113
- .output(z.object({ txid: z.number().int().nonnegative() })),
113
+ .output(z.void()),
114
114
  submitCredentials: oc
115
115
  .input(
116
116
  z.object({
@@ -124,7 +124,7 @@ export const authorizationContract = {
124
124
  serviceId: z.string().min(1),
125
125
  }),
126
126
  )
127
- .output(z.object({ txid: z.number().int().nonnegative() })),
127
+ .output(z.void()),
128
128
  selectAccount: oc
129
129
  .input(
130
130
  z.object({
package/src/automation.ts CHANGED
@@ -244,9 +244,5 @@ export const automationContract = {
244
244
  enabled: z.boolean(),
245
245
  }),
246
246
  )
247
- .output(
248
- z.object({
249
- txid: z.number().int().nonnegative(),
250
- }),
251
- ),
247
+ .output(z.void()),
252
248
  }
package/src/deployment.ts CHANGED
@@ -150,7 +150,7 @@ export const deploymentContract = {
150
150
  values: DEPLOYMENT_PARAMETER_VALUES_SCHEMA,
151
151
  }),
152
152
  )
153
- .output(z.object({ txid: z.number().int().nonnegative() })),
153
+ .output(z.void()),
154
154
  create: oc
155
155
  .errors({
156
156
  DEPLOYMENT_IN_PROGRESS: DEPLOYMENT_IN_PROGRESS_ERROR,
@@ -274,5 +274,5 @@ export const deploymentContract = {
274
274
  projectId: z.string(),
275
275
  }),
276
276
  )
277
- .output(z.object({ id: z.string(), txid: z.number().int().nonnegative() })),
277
+ .output(z.object({ id: z.string() })),
278
278
  }
@@ -1,7 +1,3 @@
1
- import {
2
- HIGH_LEVEL_APP_LIFECYCLE_EVENT_SCHEMA,
3
- HIGH_LEVEL_EVENT_SCHEMA,
4
- } from "@automate.ax/integration-contracts/highlevel"
5
1
  import { oc } from "@orpc/contract"
6
2
  import * as z from "zod"
7
3
 
@@ -16,8 +12,6 @@ export const highLevelEventsContract = {
16
12
  summary: "Receive a HighLevel event",
17
13
  tags: ["Events"],
18
14
  })
19
- .input(
20
- z.union([HIGH_LEVEL_EVENT_SCHEMA, HIGH_LEVEL_APP_LIFECYCLE_EVENT_SCHEMA]),
21
- )
15
+ .input(z.looseObject({}))
22
16
  .output(z.object({})),
23
17
  }
@@ -5,7 +5,8 @@ import * as z from "zod"
5
5
  export const metaAdsEventsContract = {
6
6
  metaAdsEvent: oc
7
7
  .route({
8
- description: "Receives and authenticates Meta Ads and Lead Ads webhooks.",
8
+ description:
9
+ "Receives and authenticates Meta Ads, Lead Ads, Page, Messenger, and Instagram webhooks.",
9
10
  method: "POST",
10
11
  operationId: "receiveMetaAdsEvent",
11
12
  path: "/events/meta-ads",
@@ -1,7 +1,7 @@
1
1
  import { oc } from "@orpc/contract"
2
2
  import { z } from "zod"
3
3
 
4
- export const EXECUTION_DATASET_VERSION = 11
4
+ export const EXECUTION_DATASET_VERSION = 12
5
5
 
6
6
  export const executionDatasetResourceSchema = z.enum([
7
7
  "projects",
@@ -63,7 +63,7 @@ export const executionDataContract = {
63
63
  operationId: "getExecutionDataManifest",
64
64
  summary: "Get execution data manifest",
65
65
  description:
66
- "Returns authenticated Electric shape resources for a validated execution-data scope.",
66
+ "Returns authenticated JSON snapshot resources for a validated execution-data scope.",
67
67
  tags: ["Execution data"],
68
68
  })
69
69
  .input(
package/src/org.ts CHANGED
@@ -144,7 +144,7 @@ export const orgContract = {
144
144
  tags: ["Organizations"],
145
145
  })
146
146
  .input(z.object({ organizationId: z.string() }))
147
- .output(z.object({ txid: z.number().int().nonnegative() })),
147
+ .output(z.void()),
148
148
  get: oc
149
149
  .route({
150
150
  method: "GET",
package/src/project.ts CHANGED
@@ -6,10 +6,6 @@ import {
6
6
  reasonableNameSchema,
7
7
  } from "./schemas"
8
8
 
9
- const TRANSACTION_OUTPUT_SCHEMA = z.object({
10
- txid: z.number().int().nonnegative(),
11
- })
12
-
13
9
  export const projectOutputSchema = z.object({
14
10
  activeDeploymentId: z.string().nullable(),
15
11
  id: z.string(),
@@ -53,7 +49,7 @@ export const projectContract = {
53
49
  name: reasonableNameSchema,
54
50
  }),
55
51
  )
56
- .output(projectOutputSchema.extend(TRANSACTION_OUTPUT_SCHEMA.shape)),
52
+ .output(projectOutputSchema),
57
53
  list: oc
58
54
  .route({
59
55
  method: "GET",
@@ -100,7 +96,7 @@ export const projectContract = {
100
96
  name: reasonableNameSchema,
101
97
  }),
102
98
  )
103
- .output(TRANSACTION_OUTPUT_SCHEMA),
99
+ .output(z.void()),
104
100
  delete: oc
105
101
  .route({
106
102
  method: "DELETE",
@@ -111,5 +107,5 @@ export const projectContract = {
111
107
  tags: ["Projects"],
112
108
  })
113
109
  .input(z.object({ projectId: z.string() }))
114
- .output(TRANSACTION_OUTPUT_SCHEMA),
110
+ .output(z.void()),
115
111
  }