@automate.ax/api-contract 0.4.0 → 0.5.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/dist/deployment.d.ts +6 -1
- package/dist/deployment.js +8 -1
- package/dist/index.d.ts +9 -5
- package/dist/index.js +1 -0
- package/dist/runtime.d.ts +4 -4
- package/package.json +2 -2
package/dist/deployment.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
/** SDK compatibility version used to select the immutable runtime image. */
|
|
3
|
+
export declare const AUTOMATION_SDK_VERSION = "1";
|
|
2
4
|
export declare const deploymentContract: {
|
|
3
5
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4
6
|
projectId: z.ZodString;
|
|
@@ -13,6 +15,10 @@ export declare const deploymentContract: {
|
|
|
13
15
|
deploymentId: z.ZodString;
|
|
14
16
|
projectId: z.ZodString;
|
|
15
17
|
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
+
automations: z.ZodArray<z.ZodObject<{
|
|
19
|
+
description: z.ZodString;
|
|
20
|
+
identityKey: z.ZodString;
|
|
21
|
+
}, z.core.$strip>>;
|
|
16
22
|
id: z.ZodString;
|
|
17
23
|
job: z.ZodNullable<z.ZodObject<{
|
|
18
24
|
attempts: z.ZodNumber;
|
|
@@ -25,7 +31,6 @@ export declare const deploymentContract: {
|
|
|
25
31
|
name: z.ZodString;
|
|
26
32
|
}, z.core.$strip>;
|
|
27
33
|
status: z.ZodEnum<{
|
|
28
|
-
snapshotting: "snapshotting";
|
|
29
34
|
planning: "planning";
|
|
30
35
|
awaiting_authorization: "awaiting_authorization";
|
|
31
36
|
configuring: "configuring";
|
package/dist/deployment.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
/** SDK compatibility version used to select the immutable runtime image. */
|
|
4
|
+
export const AUTOMATION_SDK_VERSION = "1";
|
|
3
5
|
export const deploymentContract = {
|
|
4
6
|
create: oc
|
|
5
7
|
.input(z.object({
|
|
@@ -19,6 +21,12 @@ export const deploymentContract = {
|
|
|
19
21
|
projectId: z.string(),
|
|
20
22
|
}))
|
|
21
23
|
.output(z.object({
|
|
24
|
+
automations: z
|
|
25
|
+
.object({
|
|
26
|
+
description: z.string(),
|
|
27
|
+
identityKey: z.string(),
|
|
28
|
+
})
|
|
29
|
+
.array(),
|
|
22
30
|
id: z.string(),
|
|
23
31
|
job: z
|
|
24
32
|
.object({
|
|
@@ -33,7 +41,6 @@ export const deploymentContract = {
|
|
|
33
41
|
name: z.string(),
|
|
34
42
|
}),
|
|
35
43
|
status: z.enum([
|
|
36
|
-
"snapshotting",
|
|
37
44
|
"planning",
|
|
38
45
|
"awaiting_authorization",
|
|
39
46
|
"configuring",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { AUTOMATION_SDK_VERSION } from "./deployment.js";
|
|
1
2
|
export { createdOrganizationApiKeyOutputSchema, organizationApiKeyOutputSchema, } from "./api-key.js";
|
|
2
3
|
export { integrationServiceManifestSchema, type IntegrationServiceManifest, } from "./authorization.js";
|
|
3
4
|
export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationSummaryOutputSchema, publicOrganizationOutputSchema, } from "./org.js";
|
|
@@ -158,6 +159,10 @@ export declare const contract: {
|
|
|
158
159
|
deploymentId: import("zod").ZodString;
|
|
159
160
|
projectId: import("zod").ZodString;
|
|
160
161
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
162
|
+
automations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
163
|
+
description: import("zod").ZodString;
|
|
164
|
+
identityKey: import("zod").ZodString;
|
|
165
|
+
}, import("zod/v4/core").$strip>>;
|
|
161
166
|
id: import("zod").ZodString;
|
|
162
167
|
job: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
163
168
|
attempts: import("zod").ZodNumber;
|
|
@@ -170,7 +175,6 @@ export declare const contract: {
|
|
|
170
175
|
name: import("zod").ZodString;
|
|
171
176
|
}, import("zod/v4/core").$strip>;
|
|
172
177
|
status: import("zod").ZodEnum<{
|
|
173
|
-
snapshotting: "snapshotting";
|
|
174
178
|
planning: "planning";
|
|
175
179
|
awaiting_authorization: "awaiting_authorization";
|
|
176
180
|
configuring: "configuring";
|
|
@@ -389,19 +393,19 @@ export declare const contract: {
|
|
|
389
393
|
}, import("zod/v4/core").$strip>>>;
|
|
390
394
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
391
395
|
completeInvocation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
392
|
-
output: import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable
|
|
396
|
+
output: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
393
397
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
394
398
|
loadInvocation: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
395
399
|
context: import("zod").ZodObject<{
|
|
396
400
|
actionOutputs: import("zod").ZodArray<import("zod").ZodObject<{
|
|
397
401
|
actionInvocationId: import("zod").ZodString;
|
|
398
|
-
output: import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable
|
|
402
|
+
output: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
399
403
|
slot: import("zod").ZodNumber;
|
|
400
404
|
}, import("zod/v4/core").$strip>>;
|
|
401
405
|
contextId: import("zod").ZodString;
|
|
402
406
|
events: import("zod").ZodArray<import("zod").ZodObject<{
|
|
403
407
|
automationEventId: import("zod").ZodString;
|
|
404
|
-
payload: import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable
|
|
408
|
+
payload: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
405
409
|
slot: import("zod").ZodNumber;
|
|
406
410
|
}, import("zod/v4/core").$strip>>;
|
|
407
411
|
}, import("zod/v4/core").$strip>;
|
|
@@ -430,7 +434,7 @@ export declare const contract: {
|
|
|
430
434
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
431
435
|
sendOutput: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
432
436
|
output: import("zod").ZodObject<{
|
|
433
|
-
data: import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable
|
|
437
|
+
data: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
434
438
|
type: import("zod").ZodString;
|
|
435
439
|
}, import("zod/v4/core").$strip>;
|
|
436
440
|
outputIndex: import("zod").ZodNumber;
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { eventsContract } from "./events/index.js";
|
|
|
6
6
|
import { orgContract } from "./org.js";
|
|
7
7
|
import { projectContract } from "./project.js";
|
|
8
8
|
import { runtimeContract } from "./runtime.js";
|
|
9
|
+
export { AUTOMATION_SDK_VERSION } from "./deployment.js";
|
|
9
10
|
export { createdOrganizationApiKeyOutputSchema, organizationApiKeyOutputSchema, } from "./api-key.js";
|
|
10
11
|
export { integrationServiceManifestSchema, } from "./authorization.js";
|
|
11
12
|
export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationSummaryOutputSchema, publicOrganizationOutputSchema, } from "./org.js";
|
package/dist/runtime.d.ts
CHANGED
|
@@ -10,19 +10,19 @@ export declare const runtimeContract: {
|
|
|
10
10
|
}, z.core.$strip>>>;
|
|
11
11
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
12
12
|
completeInvocation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
13
|
-
output: z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable
|
|
13
|
+
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
14
14
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
15
15
|
loadInvocation: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
16
16
|
context: z.ZodObject<{
|
|
17
17
|
actionOutputs: z.ZodArray<z.ZodObject<{
|
|
18
18
|
actionInvocationId: z.ZodString;
|
|
19
|
-
output: z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable
|
|
19
|
+
output: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
20
20
|
slot: z.ZodNumber;
|
|
21
21
|
}, z.core.$strip>>;
|
|
22
22
|
contextId: z.ZodString;
|
|
23
23
|
events: z.ZodArray<z.ZodObject<{
|
|
24
24
|
automationEventId: z.ZodString;
|
|
25
|
-
payload: z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable
|
|
25
|
+
payload: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
26
26
|
slot: z.ZodNumber;
|
|
27
27
|
}, z.core.$strip>>;
|
|
28
28
|
}, z.core.$strip>;
|
|
@@ -51,7 +51,7 @@ export declare const runtimeContract: {
|
|
|
51
51
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
52
52
|
sendOutput: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
53
53
|
output: z.ZodObject<{
|
|
54
|
-
data: z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable
|
|
54
|
+
data: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
55
55
|
type: z.ZodString;
|
|
56
56
|
}, z.core.$strip>;
|
|
57
57
|
outputIndex: z.ZodNumber;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
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.
|
|
26
|
+
"@automate.ax/codec": "0.5.0",
|
|
27
27
|
"@orpc/contract": "1.13.14",
|
|
28
28
|
"zod": "^4.3.6"
|
|
29
29
|
},
|