@automate.ax/api-contract 0.78.0 → 0.79.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/account.d.ts +2 -0
- package/dist/account.js +1 -0
- package/dist/authorization.d.ts +3 -1
- package/dist/authorization.js +1 -1
- package/dist/index.d.ts +12 -2
- package/dist/runtime.d.ts +4 -0
- package/dist/runtime.js +4 -0
- package/package.json +2 -2
- package/src/account.ts +1 -0
- package/src/authorization.ts +1 -1
- package/src/runtime.ts +4 -0
package/dist/account.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare const integrationServiceOutputSchema: z.ZodObject<{
|
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
type: z.ZodLiteral<"redirect">;
|
|
8
8
|
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
+
credentialUrl: z.ZodOptional<z.ZodURL>;
|
|
9
10
|
description: z.ZodOptional<z.ZodString>;
|
|
10
11
|
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11
12
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -287,6 +288,7 @@ export declare const accountContract: {
|
|
|
287
288
|
name: z.ZodString;
|
|
288
289
|
type: z.ZodLiteral<"redirect">;
|
|
289
290
|
}, z.core.$strip>, z.ZodObject<{
|
|
291
|
+
credentialUrl: z.ZodOptional<z.ZodURL>;
|
|
290
292
|
description: z.ZodOptional<z.ZodString>;
|
|
291
293
|
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
292
294
|
default: z.ZodOptional<z.ZodBoolean>;
|
package/dist/account.js
CHANGED
package/dist/authorization.d.ts
CHANGED
|
@@ -59,7 +59,9 @@ export declare const authorizationContract: {
|
|
|
59
59
|
data: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
60
60
|
deploymentId: z.ZodString;
|
|
61
61
|
serviceId: z.ZodString;
|
|
62
|
-
}, z.core.$strip>, z.
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
txid: z.ZodNumber;
|
|
64
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
63
65
|
selectAccount: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
64
66
|
accountId: z.ZodString;
|
|
65
67
|
binding: z.ZodString;
|
package/dist/authorization.js
CHANGED
|
@@ -99,7 +99,7 @@ export const authorizationContract = {
|
|
|
99
99
|
deploymentId: z.string(),
|
|
100
100
|
serviceId: z.string().min(1),
|
|
101
101
|
}))
|
|
102
|
-
.output(z.
|
|
102
|
+
.output(z.object({ txid: z.number().int().nonnegative() })),
|
|
103
103
|
selectAccount: oc
|
|
104
104
|
.input(z.object({
|
|
105
105
|
accountId: z.string(),
|
package/dist/index.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ export declare const publicContract: {
|
|
|
126
126
|
name: import("zod").ZodString;
|
|
127
127
|
type: import("zod").ZodLiteral<"redirect">;
|
|
128
128
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
129
|
+
credentialUrl: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
129
130
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
130
131
|
fields: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
131
132
|
default: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -1145,7 +1146,9 @@ export declare const firstPartyContract: {
|
|
|
1145
1146
|
data: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>;
|
|
1146
1147
|
deploymentId: import("zod").ZodString;
|
|
1147
1148
|
serviceId: import("zod").ZodString;
|
|
1148
|
-
}, import("zod/v4/core").$strip>, import("zod").
|
|
1149
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1150
|
+
txid: import("zod").ZodNumber;
|
|
1151
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
1149
1152
|
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1150
1153
|
deploymentId: import("zod").ZodString;
|
|
1151
1154
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1786,6 +1789,7 @@ export declare const firstPartyContract: {
|
|
|
1786
1789
|
name: import("zod").ZodString;
|
|
1787
1790
|
type: import("zod").ZodLiteral<"redirect">;
|
|
1788
1791
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1792
|
+
credentialUrl: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
1789
1793
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1790
1794
|
fields: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1791
1795
|
default: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -2038,7 +2042,9 @@ export declare const contract: {
|
|
|
2038
2042
|
data: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>;
|
|
2039
2043
|
deploymentId: import("zod").ZodString;
|
|
2040
2044
|
serviceId: import("zod").ZodString;
|
|
2041
|
-
}, import("zod/v4/core").$strip>, import("zod").
|
|
2045
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2046
|
+
txid: import("zod").ZodNumber;
|
|
2047
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2042
2048
|
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2043
2049
|
deploymentId: import("zod").ZodString;
|
|
2044
2050
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -2501,6 +2507,9 @@ export declare const contract: {
|
|
|
2501
2507
|
type: import("zod").ZodLiteral<"other">;
|
|
2502
2508
|
}, import("zod/v4/core").$strip>], "type">>>;
|
|
2503
2509
|
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
2510
|
+
createAutomationContinuationToken: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2511
|
+
endpointKey: import("zod").ZodString;
|
|
2512
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodString, Record<never, never>, Record<never, never>>;
|
|
2504
2513
|
invokeAutomation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodIntersection<import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
2505
2514
|
entrypoint: import("zod").ZodDefault<import("zod").ZodString>;
|
|
2506
2515
|
payload: import("zod").ZodOptional<import("zod").ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
|
@@ -3716,6 +3725,7 @@ export declare const contract: {
|
|
|
3716
3725
|
name: import("zod").ZodString;
|
|
3717
3726
|
type: import("zod").ZodLiteral<"redirect">;
|
|
3718
3727
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
3728
|
+
credentialUrl: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
3719
3729
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3720
3730
|
fields: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
3721
3731
|
default: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
package/dist/runtime.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export type { GatewayModelId } from "@ai-sdk/gateway";
|
|
|
5
5
|
export declare const DEFAULT_GATEWAY_MODEL_ID = "openai/gpt-4.1-nano";
|
|
6
6
|
export declare const AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT = "default";
|
|
7
7
|
export declare const AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX = "__$";
|
|
8
|
+
export declare const AUTOMATION_CONTINUATION_QUERY_PARAMETER = "_axContinuation";
|
|
8
9
|
export declare const AUTOMATION_LOG_MAX_ENTRIES = 1000;
|
|
9
10
|
export declare const AUTOMATION_TRACE_MAX_SPANS = 250;
|
|
10
11
|
export declare const AUTOMATION_OBSERVABILITY_MAX_FIELDS = 64;
|
|
@@ -608,6 +609,9 @@ export declare const runtimeContract: {
|
|
|
608
609
|
type: z.ZodLiteral<"other">;
|
|
609
610
|
}, z.core.$strip>], "type">>>;
|
|
610
611
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
612
|
+
createAutomationContinuationToken: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
613
|
+
endpointKey: z.ZodString;
|
|
614
|
+
}, z.core.$strip>, z.ZodString, Record<never, never>, Record<never, never>>;
|
|
611
615
|
invokeAutomation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
612
616
|
entrypoint: z.ZodDefault<z.ZodString>;
|
|
613
617
|
payload: z.ZodOptional<z.ZodCustom<import("@automate.ax/codec").Encodable, import("@automate.ax/codec").Encodable>>;
|
package/dist/runtime.js
CHANGED
|
@@ -7,6 +7,7 @@ import { automationErrorSchema } from "./errors.js";
|
|
|
7
7
|
export const DEFAULT_GATEWAY_MODEL_ID = "openai/gpt-4.1-nano";
|
|
8
8
|
export const AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT = "default";
|
|
9
9
|
export const AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX = "__$";
|
|
10
|
+
export const AUTOMATION_CONTINUATION_QUERY_PARAMETER = "_axContinuation";
|
|
10
11
|
export const AUTOMATION_LOG_MAX_ENTRIES = 1_000;
|
|
11
12
|
export const AUTOMATION_TRACE_MAX_SPANS = 250;
|
|
12
13
|
export const AUTOMATION_OBSERVABILITY_MAX_FIELDS = 64;
|
|
@@ -628,6 +629,9 @@ export const runtimeContract = {
|
|
|
628
629
|
generate: oc
|
|
629
630
|
.input(RUNTIME_GENERATION_INPUT_SCHEMA)
|
|
630
631
|
.output(generationResultSchema),
|
|
632
|
+
createAutomationContinuationToken: oc
|
|
633
|
+
.input(z.object({ endpointKey: z.string().min(1) }))
|
|
634
|
+
.output(z.string()),
|
|
631
635
|
invokeAutomation: oc
|
|
632
636
|
.input(automationInvocationInputSchema)
|
|
633
637
|
.output(automationInvocationOutputSchema),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.79.0",
|
|
4
4
|
"description": "Public oRPC contract for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@ai-sdk/gateway": "^4.0.46",
|
|
33
|
-
"@automate.ax/codec": "0.
|
|
33
|
+
"@automate.ax/codec": "0.79.0",
|
|
34
34
|
"@orpc/contract": "1.15.0",
|
|
35
35
|
"fast-json-stable-stringify": "^2.1.0",
|
|
36
36
|
"zod": "^4.3.6"
|
package/src/account.ts
CHANGED
package/src/authorization.ts
CHANGED
package/src/runtime.ts
CHANGED
|
@@ -12,6 +12,7 @@ export const DEFAULT_GATEWAY_MODEL_ID =
|
|
|
12
12
|
"openai/gpt-4.1-nano" satisfies GatewayModelId
|
|
13
13
|
export const AUTOMATION_INVOCATION_DEFAULT_ENTRYPOINT = "default"
|
|
14
14
|
export const AUTOMATION_INVOCATION_RESERVED_ENTRYPOINT_PREFIX = "__$"
|
|
15
|
+
export const AUTOMATION_CONTINUATION_QUERY_PARAMETER = "_axContinuation"
|
|
15
16
|
export const AUTOMATION_LOG_MAX_ENTRIES = 1_000
|
|
16
17
|
export const AUTOMATION_TRACE_MAX_SPANS = 250
|
|
17
18
|
export const AUTOMATION_OBSERVABILITY_MAX_FIELDS = 64
|
|
@@ -729,6 +730,9 @@ export const runtimeContract = {
|
|
|
729
730
|
generate: oc
|
|
730
731
|
.input(RUNTIME_GENERATION_INPUT_SCHEMA)
|
|
731
732
|
.output(generationResultSchema),
|
|
733
|
+
createAutomationContinuationToken: oc
|
|
734
|
+
.input(z.object({ endpointKey: z.string().min(1) }))
|
|
735
|
+
.output(z.string()),
|
|
732
736
|
invokeAutomation: oc
|
|
733
737
|
.input(automationInvocationInputSchema)
|
|
734
738
|
.output(automationInvocationOutputSchema),
|