@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/account.d.ts +1 -5
- package/dist/account.js +2 -3
- package/dist/authorization.d.ts +2 -6
- package/dist/authorization.js +2 -2
- package/dist/automation.d.ts +1 -3
- package/dist/automation.js +1 -3
- package/dist/deployment.d.ts +1 -4
- package/dist/deployment.js +2 -2
- package/dist/events/highlevel.d.ts +1 -541
- package/dist/events/highlevel.js +1 -2
- package/dist/events/index.d.ts +5 -544
- package/dist/events/meta-ads.d.ts +3 -2
- package/dist/events/meta-ads.js +1 -1
- package/dist/events/microsoft.d.ts +1 -1
- package/dist/execution-data.d.ts +3 -3
- package/dist/execution-data.js +2 -2
- package/dist/index.d.ts +31 -628
- package/dist/org.d.ts +1 -3
- package/dist/org.js +1 -1
- package/dist/project.d.ts +2 -7
- package/dist/project.js +3 -6
- package/package.json +5 -13
- package/src/account.ts +2 -3
- package/src/authorization.ts +2 -2
- package/src/automation.ts +1 -5
- package/src/deployment.ts +2 -2
- package/src/events/highlevel.ts +1 -7
- package/src/events/meta-ads.ts +2 -1
- package/src/execution-data.ts +2 -2
- package/src/org.ts +1 -1
- package/src/project.ts +3 -7
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.
|
|
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
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.
|
|
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.
|
|
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
|
|
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(
|
|
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(
|
|
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.
|
|
3
|
+
"version": "0.163.1",
|
|
4
4
|
"description": "Public oRPC contract for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"
|
|
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.
|
|
35
|
-
"@automate.ax/codec": "0.
|
|
36
|
-
"@automate.ax/integration-contracts": "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()
|
|
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.
|
|
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
|
package/src/authorization.ts
CHANGED
|
@@ -110,7 +110,7 @@ export const authorizationContract = {
|
|
|
110
110
|
tags: ["Deployments"],
|
|
111
111
|
})
|
|
112
112
|
.input(z.object({ deploymentId: z.string() }))
|
|
113
|
-
.output(z.
|
|
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.
|
|
127
|
+
.output(z.void()),
|
|
128
128
|
selectAccount: oc
|
|
129
129
|
.input(
|
|
130
130
|
z.object({
|
package/src/automation.ts
CHANGED
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.
|
|
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()
|
|
277
|
+
.output(z.object({ id: z.string() })),
|
|
278
278
|
}
|
package/src/events/highlevel.ts
CHANGED
|
@@ -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
|
}
|
package/src/events/meta-ads.ts
CHANGED
|
@@ -5,7 +5,8 @@ import * as z from "zod"
|
|
|
5
5
|
export const metaAdsEventsContract = {
|
|
6
6
|
metaAdsEvent: oc
|
|
7
7
|
.route({
|
|
8
|
-
description:
|
|
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",
|
package/src/execution-data.ts
CHANGED
|
@@ -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 =
|
|
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
|
|
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
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
|
|
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(
|
|
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(
|
|
110
|
+
.output(z.void()),
|
|
115
111
|
}
|