@automate.ax/api-contract 0.4.1 → 0.5.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/deployment.d.ts +2 -1
- package/dist/deployment.js +2 -1
- package/dist/index.d.ts +5 -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;
|
|
@@ -29,7 +31,6 @@ export declare const deploymentContract: {
|
|
|
29
31
|
name: z.ZodString;
|
|
30
32
|
}, z.core.$strip>;
|
|
31
33
|
status: z.ZodEnum<{
|
|
32
|
-
snapshotting: "snapshotting";
|
|
33
34
|
planning: "planning";
|
|
34
35
|
awaiting_authorization: "awaiting_authorization";
|
|
35
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({
|
|
@@ -39,7 +41,6 @@ export const deploymentContract = {
|
|
|
39
41
|
name: z.string(),
|
|
40
42
|
}),
|
|
41
43
|
status: z.enum([
|
|
42
|
-
"snapshotting",
|
|
43
44
|
"planning",
|
|
44
45
|
"awaiting_authorization",
|
|
45
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";
|
|
@@ -174,7 +175,6 @@ export declare const contract: {
|
|
|
174
175
|
name: import("zod").ZodString;
|
|
175
176
|
}, import("zod/v4/core").$strip>;
|
|
176
177
|
status: import("zod").ZodEnum<{
|
|
177
|
-
snapshotting: "snapshotting";
|
|
178
178
|
planning: "planning";
|
|
179
179
|
awaiting_authorization: "awaiting_authorization";
|
|
180
180
|
configuring: "configuring";
|
|
@@ -393,19 +393,19 @@ export declare const contract: {
|
|
|
393
393
|
}, import("zod/v4/core").$strip>>>;
|
|
394
394
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
395
395
|
completeInvocation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
396
|
-
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>>;
|
|
397
397
|
}, import("zod/v4/core").$strip>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
398
398
|
loadInvocation: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
399
399
|
context: import("zod").ZodObject<{
|
|
400
400
|
actionOutputs: import("zod").ZodArray<import("zod").ZodObject<{
|
|
401
401
|
actionInvocationId: import("zod").ZodString;
|
|
402
|
-
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>>;
|
|
403
403
|
slot: import("zod").ZodNumber;
|
|
404
404
|
}, import("zod/v4/core").$strip>>;
|
|
405
405
|
contextId: import("zod").ZodString;
|
|
406
406
|
events: import("zod").ZodArray<import("zod").ZodObject<{
|
|
407
407
|
automationEventId: import("zod").ZodString;
|
|
408
|
-
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>>;
|
|
409
409
|
slot: import("zod").ZodNumber;
|
|
410
410
|
}, import("zod/v4/core").$strip>>;
|
|
411
411
|
}, import("zod/v4/core").$strip>;
|
|
@@ -434,7 +434,7 @@ export declare const contract: {
|
|
|
434
434
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
435
435
|
sendOutput: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
436
436
|
output: import("zod").ZodObject<{
|
|
437
|
-
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>>;
|
|
438
438
|
type: import("zod").ZodString;
|
|
439
439
|
}, import("zod/v4/core").$strip>;
|
|
440
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.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.
|
|
26
|
+
"@automate.ax/codec": "0.5.1",
|
|
27
27
|
"@orpc/contract": "1.13.14",
|
|
28
28
|
"zod": "^4.3.6"
|
|
29
29
|
},
|