@automate.ax/api-contract 0.77.2 → 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 +24 -14
- package/dist/org.d.ts +8 -8
- package/dist/org.js +2 -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/org.ts +2 -2
- 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>;
|
|
@@ -729,13 +730,13 @@ export declare const publicContract: {
|
|
|
729
730
|
}>;
|
|
730
731
|
limits: import("zod").ZodObject<{
|
|
731
732
|
aiSpendUsd: import("zod").ZodNumber;
|
|
732
|
-
|
|
733
|
+
emailSends: import("zod").ZodNumber;
|
|
733
734
|
projects: import("zod").ZodNumber;
|
|
734
735
|
seats: import("zod").ZodNumber;
|
|
735
736
|
}, import("zod/v4/core").$strip>;
|
|
736
737
|
usage: import("zod").ZodObject<{
|
|
737
738
|
aiSpendUsd: import("zod").ZodNumber;
|
|
738
|
-
|
|
739
|
+
emailSends: import("zod").ZodNumber;
|
|
739
740
|
}, import("zod/v4/core").$strip>;
|
|
740
741
|
members: import("zod").ZodArray<import("zod").ZodObject<{
|
|
741
742
|
id: import("zod").ZodString;
|
|
@@ -823,13 +824,13 @@ export declare const publicContract: {
|
|
|
823
824
|
}>;
|
|
824
825
|
limits: import("zod").ZodObject<{
|
|
825
826
|
aiSpendUsd: import("zod").ZodNumber;
|
|
826
|
-
|
|
827
|
+
emailSends: import("zod").ZodNumber;
|
|
827
828
|
projects: import("zod").ZodNumber;
|
|
828
829
|
seats: import("zod").ZodNumber;
|
|
829
830
|
}, import("zod/v4/core").$strip>;
|
|
830
831
|
usage: import("zod").ZodObject<{
|
|
831
832
|
aiSpendUsd: import("zod").ZodNumber;
|
|
832
|
-
|
|
833
|
+
emailSends: import("zod").ZodNumber;
|
|
833
834
|
}, import("zod/v4/core").$strip>;
|
|
834
835
|
}, import("zod/v4/core").$strip>>;
|
|
835
836
|
pageInfo: import("zod").ZodObject<{
|
|
@@ -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<{
|
|
@@ -1460,13 +1463,13 @@ export declare const firstPartyContract: {
|
|
|
1460
1463
|
}>;
|
|
1461
1464
|
limits: import("zod").ZodObject<{
|
|
1462
1465
|
aiSpendUsd: import("zod").ZodNumber;
|
|
1463
|
-
|
|
1466
|
+
emailSends: import("zod").ZodNumber;
|
|
1464
1467
|
projects: import("zod").ZodNumber;
|
|
1465
1468
|
seats: import("zod").ZodNumber;
|
|
1466
1469
|
}, import("zod/v4/core").$strip>;
|
|
1467
1470
|
usage: import("zod").ZodObject<{
|
|
1468
1471
|
aiSpendUsd: import("zod").ZodNumber;
|
|
1469
|
-
|
|
1472
|
+
emailSends: import("zod").ZodNumber;
|
|
1470
1473
|
}, import("zod/v4/core").$strip>;
|
|
1471
1474
|
members: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1472
1475
|
id: import("zod").ZodString;
|
|
@@ -1554,13 +1557,13 @@ export declare const firstPartyContract: {
|
|
|
1554
1557
|
}>;
|
|
1555
1558
|
limits: import("zod").ZodObject<{
|
|
1556
1559
|
aiSpendUsd: import("zod").ZodNumber;
|
|
1557
|
-
|
|
1560
|
+
emailSends: import("zod").ZodNumber;
|
|
1558
1561
|
projects: import("zod").ZodNumber;
|
|
1559
1562
|
seats: import("zod").ZodNumber;
|
|
1560
1563
|
}, import("zod/v4/core").$strip>;
|
|
1561
1564
|
usage: import("zod").ZodObject<{
|
|
1562
1565
|
aiSpendUsd: import("zod").ZodNumber;
|
|
1563
|
-
|
|
1566
|
+
emailSends: import("zod").ZodNumber;
|
|
1564
1567
|
}, import("zod/v4/core").$strip>;
|
|
1565
1568
|
}, import("zod/v4/core").$strip>>;
|
|
1566
1569
|
pageInfo: 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>>;
|
|
@@ -3390,13 +3399,13 @@ export declare const contract: {
|
|
|
3390
3399
|
}>;
|
|
3391
3400
|
limits: import("zod").ZodObject<{
|
|
3392
3401
|
aiSpendUsd: import("zod").ZodNumber;
|
|
3393
|
-
|
|
3402
|
+
emailSends: import("zod").ZodNumber;
|
|
3394
3403
|
projects: import("zod").ZodNumber;
|
|
3395
3404
|
seats: import("zod").ZodNumber;
|
|
3396
3405
|
}, import("zod/v4/core").$strip>;
|
|
3397
3406
|
usage: import("zod").ZodObject<{
|
|
3398
3407
|
aiSpendUsd: import("zod").ZodNumber;
|
|
3399
|
-
|
|
3408
|
+
emailSends: import("zod").ZodNumber;
|
|
3400
3409
|
}, import("zod/v4/core").$strip>;
|
|
3401
3410
|
members: import("zod").ZodArray<import("zod").ZodObject<{
|
|
3402
3411
|
id: import("zod").ZodString;
|
|
@@ -3484,13 +3493,13 @@ export declare const contract: {
|
|
|
3484
3493
|
}>;
|
|
3485
3494
|
limits: import("zod").ZodObject<{
|
|
3486
3495
|
aiSpendUsd: import("zod").ZodNumber;
|
|
3487
|
-
|
|
3496
|
+
emailSends: import("zod").ZodNumber;
|
|
3488
3497
|
projects: import("zod").ZodNumber;
|
|
3489
3498
|
seats: import("zod").ZodNumber;
|
|
3490
3499
|
}, import("zod/v4/core").$strip>;
|
|
3491
3500
|
usage: import("zod").ZodObject<{
|
|
3492
3501
|
aiSpendUsd: import("zod").ZodNumber;
|
|
3493
|
-
|
|
3502
|
+
emailSends: import("zod").ZodNumber;
|
|
3494
3503
|
}, import("zod/v4/core").$strip>;
|
|
3495
3504
|
}, import("zod/v4/core").$strip>>;
|
|
3496
3505
|
pageInfo: import("zod").ZodObject<{
|
|
@@ -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/org.d.ts
CHANGED
|
@@ -43,13 +43,13 @@ export declare const organizationSummaryOutputSchema: z.ZodObject<{
|
|
|
43
43
|
}>;
|
|
44
44
|
limits: z.ZodObject<{
|
|
45
45
|
aiSpendUsd: z.ZodNumber;
|
|
46
|
-
|
|
46
|
+
emailSends: z.ZodNumber;
|
|
47
47
|
projects: z.ZodNumber;
|
|
48
48
|
seats: z.ZodNumber;
|
|
49
49
|
}, z.core.$strip>;
|
|
50
50
|
usage: z.ZodObject<{
|
|
51
51
|
aiSpendUsd: z.ZodNumber;
|
|
52
|
-
|
|
52
|
+
emailSends: z.ZodNumber;
|
|
53
53
|
}, z.core.$strip>;
|
|
54
54
|
}, z.core.$strip>;
|
|
55
55
|
export declare const organizationMemberOutputSchema: z.ZodObject<{
|
|
@@ -110,13 +110,13 @@ export declare const organizationDetailsOutputSchema: z.ZodObject<{
|
|
|
110
110
|
}>;
|
|
111
111
|
limits: z.ZodObject<{
|
|
112
112
|
aiSpendUsd: z.ZodNumber;
|
|
113
|
-
|
|
113
|
+
emailSends: z.ZodNumber;
|
|
114
114
|
projects: z.ZodNumber;
|
|
115
115
|
seats: z.ZodNumber;
|
|
116
116
|
}, z.core.$strip>;
|
|
117
117
|
usage: z.ZodObject<{
|
|
118
118
|
aiSpendUsd: z.ZodNumber;
|
|
119
|
-
|
|
119
|
+
emailSends: z.ZodNumber;
|
|
120
120
|
}, z.core.$strip>;
|
|
121
121
|
members: z.ZodArray<z.ZodObject<{
|
|
122
122
|
id: z.ZodString;
|
|
@@ -221,13 +221,13 @@ export declare const orgContract: {
|
|
|
221
221
|
}>;
|
|
222
222
|
limits: z.ZodObject<{
|
|
223
223
|
aiSpendUsd: z.ZodNumber;
|
|
224
|
-
|
|
224
|
+
emailSends: z.ZodNumber;
|
|
225
225
|
projects: z.ZodNumber;
|
|
226
226
|
seats: z.ZodNumber;
|
|
227
227
|
}, z.core.$strip>;
|
|
228
228
|
usage: z.ZodObject<{
|
|
229
229
|
aiSpendUsd: z.ZodNumber;
|
|
230
|
-
|
|
230
|
+
emailSends: z.ZodNumber;
|
|
231
231
|
}, z.core.$strip>;
|
|
232
232
|
members: z.ZodArray<z.ZodObject<{
|
|
233
233
|
id: z.ZodString;
|
|
@@ -315,13 +315,13 @@ export declare const orgContract: {
|
|
|
315
315
|
}>;
|
|
316
316
|
limits: z.ZodObject<{
|
|
317
317
|
aiSpendUsd: z.ZodNumber;
|
|
318
|
-
|
|
318
|
+
emailSends: z.ZodNumber;
|
|
319
319
|
projects: z.ZodNumber;
|
|
320
320
|
seats: z.ZodNumber;
|
|
321
321
|
}, z.core.$strip>;
|
|
322
322
|
usage: z.ZodObject<{
|
|
323
323
|
aiSpendUsd: z.ZodNumber;
|
|
324
|
-
|
|
324
|
+
emailSends: z.ZodNumber;
|
|
325
325
|
}, z.core.$strip>;
|
|
326
326
|
}, z.core.$strip>>;
|
|
327
327
|
pageInfo: z.ZodObject<{
|
package/dist/org.js
CHANGED
|
@@ -27,13 +27,13 @@ export const organizationSummaryOutputSchema = z.object({
|
|
|
27
27
|
plan: z.enum(["free", "pro", "enterprise"]),
|
|
28
28
|
limits: z.object({
|
|
29
29
|
aiSpendUsd: z.number(),
|
|
30
|
-
|
|
30
|
+
emailSends: z.number(),
|
|
31
31
|
projects: z.number(),
|
|
32
32
|
seats: z.number(),
|
|
33
33
|
}),
|
|
34
34
|
usage: z.object({
|
|
35
35
|
aiSpendUsd: z.number(),
|
|
36
|
-
|
|
36
|
+
emailSends: z.number(),
|
|
37
37
|
}),
|
|
38
38
|
});
|
|
39
39
|
export const organizationMemberOutputSchema = z.object({
|
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/org.ts
CHANGED
|
@@ -35,13 +35,13 @@ export const organizationSummaryOutputSchema = z.object({
|
|
|
35
35
|
plan: z.enum(["free", "pro", "enterprise"]),
|
|
36
36
|
limits: z.object({
|
|
37
37
|
aiSpendUsd: z.number(),
|
|
38
|
-
|
|
38
|
+
emailSends: z.number(),
|
|
39
39
|
projects: z.number(),
|
|
40
40
|
seats: z.number(),
|
|
41
41
|
}),
|
|
42
42
|
usage: z.object({
|
|
43
43
|
aiSpendUsd: z.number(),
|
|
44
|
-
|
|
44
|
+
emailSends: z.number(),
|
|
45
45
|
}),
|
|
46
46
|
})
|
|
47
47
|
|
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),
|