@automate.ax/api-contract 0.5.1 → 0.6.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 +17 -0
- package/dist/deployment.js +11 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/deployment.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/** SDK compatibility version used to select the immutable runtime image. */
|
|
3
3
|
export declare const AUTOMATION_SDK_VERSION = "1";
|
|
4
|
+
export declare const deploymentTriggerInfoSchema: z.ZodObject<{
|
|
5
|
+
details: z.ZodArray<z.ZodObject<{
|
|
6
|
+
label: z.ZodString;
|
|
7
|
+
value: z.ZodString;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
type: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type DeploymentTriggerInfo = z.infer<typeof deploymentTriggerInfoSchema>;
|
|
4
13
|
export declare const deploymentContract: {
|
|
5
14
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
6
15
|
projectId: z.ZodString;
|
|
@@ -18,6 +27,14 @@ export declare const deploymentContract: {
|
|
|
18
27
|
automations: z.ZodArray<z.ZodObject<{
|
|
19
28
|
description: z.ZodString;
|
|
20
29
|
identityKey: z.ZodString;
|
|
30
|
+
triggers: z.ZodArray<z.ZodObject<{
|
|
31
|
+
details: z.ZodArray<z.ZodObject<{
|
|
32
|
+
label: z.ZodString;
|
|
33
|
+
value: z.ZodString;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
type: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>;
|
|
21
38
|
}, z.core.$strip>>;
|
|
22
39
|
id: z.ZodString;
|
|
23
40
|
job: z.ZodNullable<z.ZodObject<{
|
package/dist/deployment.js
CHANGED
|
@@ -2,6 +2,16 @@ import { oc } from "@orpc/contract";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
/** SDK compatibility version used to select the immutable runtime image. */
|
|
4
4
|
export const AUTOMATION_SDK_VERSION = "1";
|
|
5
|
+
export const deploymentTriggerInfoSchema = z.object({
|
|
6
|
+
details: z
|
|
7
|
+
.object({
|
|
8
|
+
label: z.string(),
|
|
9
|
+
value: z.string(),
|
|
10
|
+
})
|
|
11
|
+
.array(),
|
|
12
|
+
name: z.string(),
|
|
13
|
+
type: z.string(),
|
|
14
|
+
});
|
|
5
15
|
export const deploymentContract = {
|
|
6
16
|
create: oc
|
|
7
17
|
.input(z.object({
|
|
@@ -25,6 +35,7 @@ export const deploymentContract = {
|
|
|
25
35
|
.object({
|
|
26
36
|
description: z.string(),
|
|
27
37
|
identityKey: z.string(),
|
|
38
|
+
triggers: deploymentTriggerInfoSchema.array(),
|
|
28
39
|
})
|
|
29
40
|
.array(),
|
|
30
41
|
id: z.string(),
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AUTOMATION_SDK_VERSION } from "./deployment.js";
|
|
1
|
+
export { AUTOMATION_SDK_VERSION, deploymentTriggerInfoSchema, type DeploymentTriggerInfo, } from "./deployment.js";
|
|
2
2
|
export { createdOrganizationApiKeyOutputSchema, organizationApiKeyOutputSchema, } from "./api-key.js";
|
|
3
3
|
export { integrationServiceManifestSchema, type IntegrationServiceManifest, } from "./authorization.js";
|
|
4
4
|
export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationSummaryOutputSchema, publicOrganizationOutputSchema, } from "./org.js";
|
|
@@ -162,6 +162,14 @@ export declare const contract: {
|
|
|
162
162
|
automations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
163
163
|
description: import("zod").ZodString;
|
|
164
164
|
identityKey: import("zod").ZodString;
|
|
165
|
+
triggers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
166
|
+
details: import("zod").ZodArray<import("zod").ZodObject<{
|
|
167
|
+
label: import("zod").ZodString;
|
|
168
|
+
value: import("zod").ZodString;
|
|
169
|
+
}, import("zod/v4/core").$strip>>;
|
|
170
|
+
name: import("zod").ZodString;
|
|
171
|
+
type: import("zod").ZodString;
|
|
172
|
+
}, import("zod/v4/core").$strip>>;
|
|
165
173
|
}, import("zod/v4/core").$strip>>;
|
|
166
174
|
id: import("zod").ZodString;
|
|
167
175
|
job: import("zod").ZodNullable<import("zod").ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -6,7 +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
|
+
export { AUTOMATION_SDK_VERSION, deploymentTriggerInfoSchema, } from "./deployment.js";
|
|
10
10
|
export { createdOrganizationApiKeyOutputSchema, organizationApiKeyOutputSchema, } from "./api-key.js";
|
|
11
11
|
export { integrationServiceManifestSchema, } from "./authorization.js";
|
|
12
12
|
export { activeSubscriptionOutputSchema, createdInvitationOutputSchema, organizationDetailsOutputSchema, organizationInvitationOutputSchema, organizationMemberOutputSchema, organizationProjectOutputSchema, organizationRoleSchema, organizationSummaryOutputSchema, publicOrganizationOutputSchema, } from "./org.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.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.6.0",
|
|
27
27
|
"@orpc/contract": "1.13.14",
|
|
28
28
|
"zod": "^4.3.6"
|
|
29
29
|
},
|